:root {
    /* Color System */
    --bg-dark: #181A20;
    --bg-darker: #12151A;
    --bg-table: #1E2026;
    --text-primary: #ECF5FF;
    --text-secondary: #B0BEC5;
    --text-secondary-pressed: #8A9BAE;
    --accent-primary: #3AFFA3;
    --accent-primary-pressed: #29ba6d;
    --accent-secondary: #00C8FF;
    --border-color: #2B3139;
    --highlight: rgba(58, 255, 163, 0.1);
    --positive: #3AFFA3;
    --negative: #FF5E5E;
    --negative-pressed: #b34242;

    --secondary-bg-color: #2B3139;
    --secondary-text-color: #B0BEC5;
    --secondary-hover: #29ba6d;

    /* Typography System */
    /* Font Families */
    --font-body: 'Onest', 'Inter', sans-serif;
    --font-heading: 'Onest', sans-serif;

    /* Font Sizes - Desktop */
    --font-h1-desktop: 46px;
    --font-h2-desktop: 36px;
    --font-h3-desktop: 28px;
    --font-body-desktop: 16px;
    --font-small-desktop: 14px;
    --font-button-desktop: 16px;

    /* Font Sizes - Mobile */
    --font-h1-mobile: 32px;
    --font-h2-mobile: 28px;
    --font-h3-mobile: 24px;
    --font-body-mobile: 14px;
    --font-small-mobile: 12px;
    --font-button-mobile: 14px;

    /* Font Weights */
    --font-weight-bold: 700;
    --font-weight-semibold: 600;
    --font-weight-medium: 500;
    --font-weight-regular: 400;
    --font-weight-light: 300;

    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;

    /* Letter Spacing */
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.5px;
    --letter-spacing-button: 0.5px;
}
.button-primary {
    font-family: var(--font-body);
    font-size: var(--font-button-desktop);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-button);
    background-color: var(--accent-primary);
    color: var(--bg-darker);
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .button-primary:hover {
        background-color: var(--accent-primary-pressed);
        color: var(--bg-darker);
    }
}

.button-primary:focus {
    outline: none;
}

.button-primary-small {
    font-family: var(--font-body);
    font-size: var(--font-button-mobile);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-button);
    background-color: var(--accent-primary);
    color: var(--bg-darker);
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .button-primary-small:hover {
        background-color: var(--accent-primary-pressed);
        color: var(--bg-darker);
    }
}

.button-primary-small:focus {
    outline: none;
}

.button-error {
    font-family: var(--font-body);
    font-size: var(--font-button-desktop);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-button);
    background-color: var(--negative);
    color: var(--bg-darker);
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .button-error:hover {
        background-color: var(--negative-pressed);
        color: var(--bg-darker);
    }
}

.button-error:focus {
    outline: none;
}

.button-error-small {
    font-family: var(--font-body);
    font-size: var(--font-button-mobile);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-button);
    background-color: var(--negative);
    color: var(--bg-darker);
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .button-error-small:hover {
        background-color: var(--negative-pressed);
        color: var(--bg-darker);
    }
}

.button-error-small:focus {
    outline: none;
}

.button-warning-small {
    font-family: var(--font-body);
    font-size: var(--font-button-mobile);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-button);
    background-color: #FFB800;
    color: var(--bg-darker);
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (hover: hover) and (pointer: fine) {
    .button-warning-small:hover {
        background-color: #FF8C00;
        color: var(--bg-darker);
    }
}

.button-warning-small:focus {
    outline: none;
}

.button-close {
    background-color: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .button-close:hover {
        background-color: var(--highlight);
        color: var(--accent-primary);
    }
}

.button-close:focus {
    outline: none;
}

.button-back {
    font-family: var(--font-body);
    font-size: var(--font-button-desktop);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-button);
    position: absolute;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    top: 20px;
    left: 20px;
    padding: 10px 16px;
    color: var(--text-primary);
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    gap: 8px;
}

@media (hover: hover) and (pointer: fine) {
    .button-back:hover {
        background-color: var(--highlight);
        color: var(--accent-primary);
        border-color: var(--accent-primary);
    }

    .button-back:hover svg path {
        stroke: var(--accent-primary);
    }
}

.button-back:focus {
    outline: none;
}

.button-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-primary);
    color: var(--bg-darker);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .button-fab:hover {
        background-color: var(--accent-primary-pressed);
        color: var(--bg-darker);
    }
}

.button-fab:focus {
    outline: none;
}

.button-icon {
    background-color: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .button-icon:hover {
        background-color: var(--highlight);
        color: var(--accent-primary);
    }
}

.button-icon:focus {
    outline: none;
}

.button-link {
    font-family: var(--font-body);
    font-size: var(--font-button-desktop);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-button);
    background-color: transparent;
    color: var(--accent-primary-pressed);
    border: none;
    padding: 0;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .button-link:hover {
        color: var(--accent-primary);
        text-decoration: underline;
    }
}

.button-link:focus {
    outline: none;
}

/* button-action-small for compact action buttons */
.button-action-small {
    font-family: var(--font-body);
    font-size: var(--font-button-mobile);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-button);
    background-color: transparent;
    color: var(--accent-primary);
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .button-action-small:hover {
        color: var(--accent-primary-pressed);
    }
}

.button-action-small:focus {
    outline: none;
}

/* SVG icon button */
.button-svg-icon {
    background: transparent;
    border: none;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.button-svg-icon:focus {
    outline: none;
    fill: var(--text-secondary);
    transition: fill 0.3s ease;
}

.button-svg-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
    transition: fill 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .button-svg-icon:hover svg {
        fill: var(--accent-primary);
    }
}

.sidebar .button-svg-icon.active svg {
    fill: var(--accent-primary);
}

/* SVG icon button */
.button-svg-icon-stroke {
    background: transparent;
    border: none;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: fill 0.3s ease;
}

.button-svg-icon-stroke:focus {
    outline: none;
    stroke: var(--text-secondary);
}

.button-svg-icon-stroke svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
}

@media (hover: hover) and (pointer: fine) {
    .button-svg-icon-stroke:hover svg {
        stroke: var(--accent-primary);
    }
}

.sidebar .button-svg-icon-stroke.active svg {
    stroke: var(--accent-primary);
}

.button-secondary {
    font-family: var(--font-body);
    font-size: var(--font-button-desktop);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-button);
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (hover: hover) and (pointer: fine) {
    .button-secondary:hover {
        background-color: var(--highlight);
        border-color: var(--accent-primary);
        color: var(--accent-primary);
    }
}

.button-secondary:focus {
    outline: none;
}

.button-secondary-small {
    font-family: var(--font-body);
    font-size: var(--font-button-mobile);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-button);
    background-color: var(--secondary-bg-color);
    color: var(--secondary-text-color);
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .button-secondary-small:hover {
        background-color: var(--secondary-hover);
        color: var(--bg-darker);
    }
}

.button-secondary-small:focus {
    outline: none;
}

.button-text-small {
    font-family: var(--font-body);
    font-size: var(--font-button-mobile);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-button);
    background-color: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .button-text-small:hover {
        color: var(--accent-primary-pressed);
    }
}

.button-text-small:focus {
    outline: none;
}

.button-list-item {
    font-family: var(--font-body);
    font-size: var(--font-button-desktop);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-button);
    width: 100%;
    background-color: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 4px;
    padding: 5px 16px;
    cursor: pointer;
    transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .button-list-item:hover {
        color: var(--accent-primary-pressed);
    }
}

.button-list-item:focus {
    outline: none;
}

.button-menu-item {
    font-family: var(--font-body);
    font-size: var(--font-button-desktop);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-button);
    width: 100%;
    background-color: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 4px;
    padding: 5px 16px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.button-menu-item:focus {
    outline: none;
}

@media (hover: hover) and (pointer: fine) {
    .button-menu-item:hover {
        color: var(--accent-primary-pressed);
    }
}
.modal-content {
    color: white;
    background-color: #181A20;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.modal-header,
.modal-footer {
    border-color: #6c757d;
}

/* Dark‐mode form controls inside any .modal-content */
.modal-content .form-control {
    background-color: #181A20;
    border-color: #495057;
    color: #cdcdcd;
}

/* Placeholder text */
.modal-content .form-control::placeholder {
    color: #393939; /* lighter gray */
    opacity: 1; /* ensure full visibility */
}

/* For older WebKit browsers */
.modal-content .form-control::-webkit-input-placeholder {
    color: #393939;
}

.modal-content .form-control:-ms-input-placeholder {
    color: #393939;
}

.modal-content .form-control::-ms-input-placeholder {
    color: #393939;
}
.dyor-switch {
    /* —— CONFIGURABLE VARS —— */
    --switch-width: 30px;
    --switch-height: 15px;
    --knob-size: 13px;
    --knob-offset: 1px;
    /* ———————————————— */

    position: relative;
    display: inline-block;
    width: var(--switch-width);
    height: var(--switch-height);
}

.dyor-switch-container {
    display: inline-flex;
    align-items: center;
}

.dyor-switch-text {
    margin-right: 0.5em; /* space between text and switch */
    user-select: none;
    font-size: 0.9em;
    color: var(--text-primary);
}

.dyor-switch .dyor-switch-input {
    /* hide the native checkbox */
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.dyor-switch .dyor-switch-label {
    /* the track */
    display: block;
    width: 100%;
    height: 100%;
    background-color: #6c757d;
    border-radius: calc(var(--switch-height) / 2);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dyor-switch .dyor-switch-label::before {
    /* the knob */
    content: "";
    position: absolute;
    width: var(--knob-size);
    height: var(--knob-size);
    left: var(--knob-offset);
    top: var(--knob-offset);
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

/* checked = active state */
.dyor-switch .dyor-switch-input:checked ~ .dyor-switch-label {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.dyor-switch .dyor-switch-input:checked ~ .dyor-switch-label::before {
    transform: translateX(calc(var(--switch-width) - var(--knob-size) - 2 * var(--knob-offset)));
}
.auth-error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 26, 32, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.auth-error-dialog {
    background-color: var(--bg-darker, #12151A);
    border: 1px solid var(--border-color, #2B3139);
    border-radius: 12px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-error-title {
    color: var(--negative, #FF5E5E);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-error-message {
    color: var(--text-primary, #ECF5FF);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.auth-error-warning {
    background-color: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.auth-error-warning > div {
    color: var(--text-primary, #ECF5FF);
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.auth-error-warning-link {
    color: var(--accent-primary, #3AFFA3);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.auth-error-warning-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.auth-error-details {
    margin-bottom: 24px;
}

.auth-error-details summary {
    color: var(--text-secondary, #B0BEC5);
    font-size: 14px;
    cursor: pointer;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    user-select: none;
    transition: background-color 0.2s;
}

.auth-error-details summary:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.auth-error-details-content {
    color: var(--text-secondary, #B0BEC5);
    font-size: 13px;
    font-family: 'Courier New', monospace;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color, #2B3139);
    border-radius: 6px;
    padding: 16px;
    margin-top: 12px;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 200px;
    overflow-y: auto;
}

.auth-error-copy-button {
    margin-top: 12px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #ECF5FF);
    border: 1px solid var(--border-color, #2B3139);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.auth-error-copy-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.auth-error-copy-button.copied {
    background-color: rgba(58, 255, 163, 0.2);
    border-color: var(--accent-primary, #3AFFA3);
    color: var(--accent-primary, #3AFFA3);
}

.auth-error-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.auth-error-actions button {
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-weight: 500;
}

@media (max-width: 600px) {
    .auth-error-dialog {
        padding: 24px;
        width: 95%;
    }

    .auth-error-title {
        font-size: 20px;
    }

    .auth-error-message {
        font-size: 14px;
    }

    .auth-error-actions {
        flex-direction: column;
    }

    .auth-error-actions button {
        width: 100%;
    }
}

.slow-request-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.slow-request-modal {
    background: #1E2026;
    border-radius: 12px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slowRequestSlideIn 0.3s ease-out;
}

@keyframes slowRequestSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slow-request-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.slow-request-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #ECF5FF;
    display: flex;
    align-items: center;
    gap: 10px;
}

.slow-request-modal-header h3::before {
    content: "⚠️";
    font-size: 24px;
}

.slow-request-modal-body {
    padding: 24px;
    color: #B8C5D6;
    line-height: 1.6;
}

.slow-request-modal-body p {
    margin: 0 0 12px 0;
}

.slow-request-modal-body p:last-child {
    margin-bottom: 0;
    color: #ECF5FF;
    font-weight: 500;
}

.slow-request-modal-actions {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.slow-request-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    outline: none;
}

.slow-request-btn-primary {
    background: #3B82F6;
    color: white;
}

.slow-request-btn-primary:hover {
    background: #2563EB;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.slow-request-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ECF5FF;
}

.slow-request-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

* {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

body label {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    color: white;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
}

.button-back {
    position: unset;
}

.page-header {
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px;
}

.header-actions {
    display: flex;
    gap: 8px;
}
.dyor-settings-header {
    background: var(--bg-dark, #1E2028);
    border-bottom: 1px solid var(--border-color, #2A2D36);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.dyor-settings-header .header-content {
    position: relative;
    margin: 0 auto;
    padding: 16px 0;
}

.dyor-settings-header .back-button-container {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.dyor-settings-header .back-button {
    background: transparent;
    border: 1px solid var(--border-color, #2A2D36);
    border-radius: 8px;
    color: var(--text-primary, #FFFFFF);
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Onest", serif;
    font-size: 14px;
    font-weight: 500;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}

@media (hover: hover) and (pointer: fine) {
    .dyor-settings-header .back-button:hover {
        background-color: var(--highlight, #2A2D36);
        color: var(--accent-primary, #3AFFA3);
        border-color: var(--accent-primary, #3AFFA3);
    }
}

.dyor-settings-header .back-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(58, 255, 163, 0.3);
}

.dyor-settings-header .back-button:active {
    transform: translateY(1px);
}

.dyor-settings-header .header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.dyor-settings-header .header-logo {
    height: 32px;
    width: auto;
    flex-shrink: 0;
}

.dyor-settings-header .header-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    white-space: nowrap;
    font-family: "Onest", sans-serif;
}

.dyor-settings-header .header-actions {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.dyor-settings-header .user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border: 1px solid var(--border-color, #2A2D36);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    min-height: 44px;
}

@media (hover: hover) and (pointer: fine) {
    .dyor-settings-header .user-menu:hover {
        border-color: var(--accent-primary, #3AFFA3);
        background: var(--highlight, #2A2D36);
    }
}

.dyor-settings-header .user-menu:focus-within {
    outline: none;
    box-shadow: 0 0 0 2px rgba(58, 255, 163, 0.3);
}

.dyor-settings-header .user-icon {
    width: 28px;
    height: 28px;
    background: var(--accent-primary, #3AFFA3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-darker, #181A20);
    font-size: 14px;
    flex-shrink: 0;
}

.dyor-settings-header .username {
    color: var(--text-primary, #FFFFFF);
    font-weight: 500;
    font-size: 14px;
    font-family: "Onest", serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.dyor-settings-header .dropdown-arrow {
    color: var(--text-secondary, #B0BEC5);
    font-size: 12px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.dyor-settings-header .login-button {
    padding: 8px 16px;
    background: var(--accent-primary, #3AFFA3);
    color: #181A20;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.dyor-settings-header .user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-dark, #1E2028);
    border: 1px solid var(--border-color, #2A2D36);
    border-radius: 12px;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1100;
    overflow: hidden;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.dyor-settings-header .user-dropdown:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.dyor-settings-header .user-dropdown ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.dyor-settings-header .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary, #FFFFFF);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-family: "Onest", serif;
}

@media (hover: hover) and (pointer: fine) {
    .dyor-settings-header .dropdown-item:hover {
        background: var(--highlight, #2A2D36);
        color: var(--accent-primary, #3AFFA3);
    }
}

.dyor-settings-header .dropdown-item:active {
    background: var(--secondary-bg-color, #242730);
}

.dyor-settings-header .dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.dyor-settings-header .dropdown-separator {
    height: 1px;
    background: var(--border-color, #2A2D36);
    margin: 8px 0;
    padding: 0;
    cursor: default;
}

.dyor-settings-header .dropdown-separator:hover {
    background: var(--border-color, #2A2D36);
}

.dyor-settings-header .logout-btn {
    color: var(--negative, #FF5E5E);
}

@media (hover: hover) and (pointer: fine) {
    .dyor-settings-header .logout-btn:hover {
        background: rgba(255, 94, 94, 0.1);
        color: var(--negative, #FF5E5E);
    }
}

.dyor-settings-header .hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .dyor-settings-header .header-content {
        padding: 20px 12px;
        gap: 10px;
        min-height: 64px;
        display: flex;
        align-items: center;
    }

    .dyor-settings-header .back-button-container {
        left: 8px;
    }

    .dyor-settings-header .back-button {
        padding: 8px 10px;
        min-width: 40px;
        min-height: 40px;
    }

    .dyor-settings-header .back-button span {
        display: none;
    }

    .dyor-settings-header .header-center {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .dyor-settings-header .header-logo {
        height: 24px;
    }

    .dyor-settings-header .header-title {
        font-size: 1.25rem;
    }

    .dyor-settings-header .header-actions {
        right: 8px;
    }

    .dyor-settings-header .user-menu {
        padding: 6px 12px;
        gap: 8px;
        min-height: 40px;
    }

    .dyor-settings-header .user-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .dyor-settings-header .username {
        font-size: 13px;
        max-width: 80px;
    }

    .dyor-settings-header .user-dropdown {
        right: -8px;
        min-width: 180px;
        max-width: calc(100vw - 32px);
    }
}

@media (max-width: 480px) {
    .dyor-settings-header .header-content {
        padding: 12px;
        gap: 10px;
        min-height: 56px;
        display: flex;
        align-items: center;
    }

    .dyor-settings-header .header-center {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .dyor-settings-header .header-logo {
        height: 20px;
    }

    .dyor-settings-header .header-title {
        font-size: 1.1rem;
    }

    .dyor-settings-header .username {
        display: none;
    }

    .dyor-settings-header .user-menu {
        padding: 6px 10px;
        gap: 6px;
    }

    .dyor-settings-header .user-dropdown {
        right: 0;
        left: auto;
        width: 220px;
        max-width: calc(100vw - 24px);
        transform-origin: top right;
    }

    .dyor-settings-header .back-button {
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
    }

    .dyor-settings-header .back-button span {
        display: none;
    }
}

@media (prefers-contrast: high) {
    .dyor-settings-header .back-button,
    .dyor-settings-header .user-menu {
        border-width: 2px;
    }

    .dyor-settings-header .user-dropdown {
        border-width: 2px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dyor-settings-header .back-button,
    .dyor-settings-header .user-menu,
    .dyor-settings-header .dropdown-arrow,
    .dyor-settings-header .user-dropdown,
    .dyor-settings-header .dropdown-item {
        transition: none;
    }
}

.dyor-settings-header .header-snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.dyor-settings-header .header-snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 0.8em;
    opacity: 0.4;
    animation: header-snow-fall 8s linear infinite;
}

.dyor-settings-header .header-snowflake:nth-child(1) { left: 5%; animation-duration: 10s; animation-delay: -1s; }
.dyor-settings-header .header-snowflake:nth-child(2) { left: 15%; animation-duration: 12s; animation-delay: -4s; font-size: 0.6em; }
.dyor-settings-header .header-snowflake:nth-child(3) { left: 30%; animation-duration: 9s; animation-delay: -2s; }
.dyor-settings-header .header-snowflake:nth-child(4) { left: 45%; animation-duration: 11s; animation-delay: -6s; font-size: 0.7em; }
.dyor-settings-header .header-snowflake:nth-child(5) { left: 60%; animation-duration: 10s; animation-delay: -3s; }
.dyor-settings-header .header-snowflake:nth-child(6) { left: 75%; animation-duration: 13s; animation-delay: -7s; font-size: 0.6em; }
.dyor-settings-header .header-snowflake:nth-child(7) { left: 85%; animation-duration: 9s; animation-delay: -5s; }
.dyor-settings-header .header-snowflake:nth-child(8) { left: 95%; animation-duration: 11s; animation-delay: -8s; font-size: 0.7em; }

@keyframes header-snow-fall {
    0% { top: -10px; opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { top: calc(100% + 10px); opacity: 0; }
}

.dyor-settings-header .reindeer-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -120px;
    pointer-events: none;
    z-index: 1;
    animation: reindeer-run 20s linear forwards;
    font-size: 24px;
    white-space: nowrap;
}

.dyor-settings-header .reindeer-sleigh {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.dyor-settings-header .reindeer {
    transform: scaleX(-1);
    animation: reindeer-bounce 0.4s ease-in-out infinite;
}

.dyor-settings-header .sleigh {
    animation: sleigh-bounce 0.4s ease-in-out infinite;
    animation-delay: 0.1s;
}

.dyor-settings-header .sparkle-trail {
    display: flex;
    gap: 4px;
    margin-right: 4px;
}

.dyor-settings-header .sparkle {
    font-size: 10px;
    opacity: 0;
    animation: sparkle-fade 0.9s ease-out infinite;
}

.dyor-settings-header .sparkle:nth-child(1) { animation-delay: 0.45s; }
.dyor-settings-header .sparkle:nth-child(2) { animation-delay: 0.22s; }
.dyor-settings-header .sparkle:nth-child(3) { animation-delay: 0s; }

@keyframes reindeer-run {
    0% {
        left: -120px;
    }
    100% {
        left: calc(100% + 120px);
    }
}

@keyframes reindeer-bounce {
    0%, 100% {
        transform: scaleX(-1) translateY(0);
    }
    50% {
        transform: scaleX(-1) translateY(-3px);
    }
}

@keyframes sleigh-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

@keyframes sparkle-fade {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

@media (max-width: 768px) {
    .dyor-settings-header .reindeer-container {
        font-size: 18px;
        animation-duration: 15s;
    }

    .dyor-settings-header .header-snowflake:nth-child(even) {
        display: none;
    }
}

@media (max-width: 480px) {
    .dyor-settings-header .reindeer-container {
        font-size: 16px;
        animation-duration: 12s;
    }

    .dyor-settings-header .sparkle-trail {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dyor-settings-header .reindeer-container,
    .dyor-settings-header .header-snowflakes {
        display: none;
    }
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Toast Message */
.toast {
    background-color: #333;
    color: white;
    padding: 16px;
    margin-top: 10px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.5s;
}

/* Success Toast */
.toast-success {
    background-color: #4CAF50;
}

/* Error Toast */
.toast-error {
    background-color: #f44336;
}

/* Container: stacked column */
.toast-container-v2 {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    overflow-y: auto;
    gap: 10px;
}

/* Base toast */
.toast-v2 {
    position: relative;
    background-color: #333;
    color: #fff;
    padding: 16px;
    height: auto;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.5s;
    overflow: hidden; /* for progress bar */
}

/* Types */
.toast-success-v2 {
    background-color: #4CAF50;
}

.toast-error-v2 {
    background-color: #f44336;
}

.toast-warning-v2 {
    background-color: #ff9800;
}

.toast-info-v2 {
    background-color: #2196f3;
}

/* Inner message */
.toast-message-v2 {
    display: block;
}

/* Progress bar */
.toast-progress-v2 {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    width: 100%;
    transition: width linear;
    /* transition-duration will be inherited from inline style duration */
}
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dialog-overlay.visible {
    opacity: 1;
}

.dialog-container {
    background: #181A20;
    border: 1px solid #515860;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.dialog-overlay.visible .dialog-container {
    transform: scale(1);
}

.dialog-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dialog-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dialog-icon.warning {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.dialog-icon.error {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.dialog-icon.info {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
}

.dialog-icon.success {
    background: rgba(58, 255, 163, 0.15);
    color: #3AFFA3;
}

.dialog-icon svg {
    width: 20px;
    height: 20px;
}

.dialog-title {
    font-size: 18px;
    font-weight: 600;
    color: #f8f9fa;
    margin: 0;
}

.dialog-body {
    color: #aab6c1;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.dialog-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.dialog-btn-primary {
    background: #3AFFA3;
    color: #181A20;
}

.dialog-btn-primary:hover {
    background: #2ee090;
}

.dialog-btn-secondary {
    background: transparent;
    border: 1px solid #515860;
    color: #f8f9fa;
}

.dialog-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #6c757d;
}

.bot-modal-content {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
}

.bot-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.bot-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-modal-header .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.bot-modal-help-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--bg-lighter);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bot-modal-help-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background-color: var(--highlight);
}

.bot-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: var(--bg-lighter);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bot-modal-close:hover {
    border-color: var(--accent-error);
    color: var(--accent-error);
    background-color: rgba(239, 68, 68, 0.1);
}

.bot-modal-body {
    padding: 24px 20px;
}

.bot-form-group {
    margin-bottom: 20px;
}

.bot-form-group:last-child {
    margin-bottom: 0;
}

.bot-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.bot-form-input {
    width: 100%;
    padding: 12px 14px;
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bot-form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 200, 117, 0.1);
}

.bot-form-input::placeholder {
    color: #3a3f47;
}

.bot-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.bot-modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bot-modal-btn-save {
    background-color: var(--accent-primary);
    color: var(--bg-darker);
    border: none;
}

.bot-modal-btn-save:hover {
    background-color: var(--accent-primary-pressed);
}

.bot-modal-btn-delete {
    background-color: transparent;
    color: var(--accent-error);
    border: 1px solid var(--accent-error);
}

.bot-modal-btn-delete:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

/* make sure it’s on top, covers entire screen, and allows text-selection */
.copy-overlay {
    position: fixed;
    inset: 0; /* shorthand for top:0;left:0;right:0;bottom:0 */
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    z-index: 9999;
    /* ensure selections inside can happen */
    user-select: text !important;
    -webkit-user-select: text !important;
}

.copy-overlay-textarea {
    flex: 1;
    width: 100%;
    margin-bottom: 1rem;
    font-family: monospace;
    font-size: 0.9rem;
    /* give it a light background so selection is obvious */
    background: #fff;
    color: #000;
    border: none;
    resize: none;
    padding: 0.5rem;
    overflow: auto;
    /* ensure mobile will let you select */
    user-select: text !important;
    -webkit-user-select: text !important;
}

.copy-overlay-close {
    align-self: flex-end;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
}
.notification-item {
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    grid-template-rows: auto auto;
    row-gap: 16px;
    column-gap: 12px;
    align-items: center;
    width: 100%;
    background: var(--bg-table, #1E2026);
    border: 1px solid var(--border-color, #2B3139);
    border-radius: 12px;
    padding: 14px 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (hover: hover) {
    .notification-item:hover {
        transform: translateY(-2px);
        border-color: var(--accent-primary, #3AFFA3);
        box-shadow: 0 8px 24px rgba(58, 255, 163, 0.12);
    }
}

.notification-checkbox {
    grid-row: 1;
    grid-column: 1;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background-color: #2B3139;
    border: 1px solid #515860;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
    position: relative;
}

.notification-checkbox:checked {
    background-color: var(--accent-primary, #3AFFA3);
    border-color: var(--accent-primary, #3AFFA3);
}

.notification-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #181A20;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.notification-checkbox:hover {
    border-color: #6c757d;
}

.notification-checkbox:focus {
    outline: none;
}

.notification-status-dot {
    grid-row: 1;
    grid-column: 2;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #515860;
    transition: background-color 0.2s ease;
}

.notification-status-dot.active {
    background-color: var(--accent-primary, #3AFFA3);
    box-shadow: 0 0 8px rgba(58, 255, 163, 0.5);
}

.notification-title-row {
    grid-row: 1;
    grid-column: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.notification-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #ECF5FF);
    word-break: break-word;
}

.notification-mark {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    flex-shrink: 0;
}

.notification-actions {
    grid-row: 1;
    grid-column: 4;
    display: flex;
    align-items: center;
    gap: 4px;
}

.notification-actions .dyor-switch-container {
    margin-right: 8px;
}

.notification-actions .button-svg-icon {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.15s ease;
}

.notification-actions .button-svg-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #515860;
    color: var(--text-primary, #ECF5FF);
}

.notification-actions .button-svg-icon:focus {
    outline: none;
}

.notification-actions .button-svg-icon svg {
    width: 16px;
    height: 16px;
}

.notification-overflow-btn {
    display: none;
    width: 28px;
    height: 28px;
    padding: 0;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.notification-overflow-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #515860;
    color: var(--text-primary, #ECF5FF);
}

.notification-overflow-btn:focus {
    outline: none;
}

.notification-overflow-menu {
    position: fixed;
    background: #2a2e38;
    border: 1px solid #4a5568;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    z-index: 99999;
    min-width: 130px;
    padding: 4px 0;
    visibility: hidden;
    opacity: 0;
    transform: scale(0.95);
    transform-origin: top right;
    transition: visibility 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.notification-overflow-menu.open {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

.notification-overflow-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    color: #c9d1d9;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.notification-overflow-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.notification-overflow-menu-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #8b949e;
}

.notification-overflow-menu-item:hover svg {
    color: #c9d1d9;
}

.notification-secondary-row {
    grid-row: 2;
    grid-column: 3 / 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.notification-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.notification-tag {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.notification-tags-overflow {
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    background: #2B3139;
    color: #888;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary, #888);
    white-space: nowrap;
    flex-shrink: 0;
}

.notification-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: default;
}

.notification-meta-item i {
    font-size: 10px;
    opacity: 0.7;
}

.notification-meta-separator {
    color: #515860;
}

mark {
    background-color: #fffa91;
    padding: 0 2px;
    border-radius: 2px;
    color: #181A20;
}

.logic {
    color: #555;
    font-weight: bold;
    margin: 0 4px;
}

@media (max-width: 768px) {
    .notification-item {
        padding: 12px 12px;
        row-gap: 12px;
        column-gap: 10px;
        border-radius: 10px;
    }

    .notification-checkbox {
        width: 16px;
        height: 16px;
    }

    .notification-checkbox:checked::after {
        left: 4px;
        top: 1px;
        width: 4px;
        height: 8px;
    }

    .notification-name {
        font-size: 13px;
    }

    .notification-actions .button-svg-icon {
        width: 26px;
        height: 26px;
    }

    .notification-actions .button-svg-icon svg {
        width: 14px;
        height: 14px;
    }

    .notification-tag {
        font-size: 9px;
        padding: 2px 6px;
    }

    .notification-meta {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .notification-item {
        padding: 10px 10px;
        row-gap: 10px;
        column-gap: 8px;
    }

    .notification-actions .button-svg-icon {
        width: 24px;
        height: 24px;
    }

    .notification-actions .button-svg-icon svg {
        width: 12px;
        height: 12px;
    }
}

.panel .notification-item {
    padding: 12px 12px;
    row-gap: 12px;
    column-gap: 8px;
    border-radius: 10px;
}

.panel .notification-checkbox {
    width: 16px;
    height: 16px;
}

.panel .notification-checkbox:checked::after {
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
}

.panel .notification-status-dot {
    width: 6px;
    height: 6px;
}

.panel .notification-name {
    font-size: 12px;
}

.panel .notification-mark {
    font-size: 10px;
    padding: 1px 4px;
}

.panel .notification-actions .dyor-switch-container {
    margin-right: 4px;
}

.panel .notification-actions .button-svg-icon {
    width: 24px;
    height: 24px;
}

.panel .notification-actions .button-svg-icon svg {
    width: 12px;
    height: 12px;
}

.panel .notification-actions .button-svg-icon.action-delete,
.panel .notification-actions .button-svg-icon.action-duplicate,
.panel .notification-actions .button-svg-icon.action-logs {
    display: none;
}

.panel .notification-overflow-btn {
    display: flex;
    width: 24px;
    height: 24px;
}

.panel .notification-secondary-row {
    grid-column: 3 / 6;
}

.panel .notification-tag {
    font-size: 9px;
    padding: 2px 6px;
}

.panel .notification-meta {
    font-size: 10px;
}

.modal-content {
    background: var(--bg-dark);
}

.modal-header {
    border-bottom: 1px solid #6c757d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.modal-title {
    margin: 0;
}

#notificationLogsModal .modal-dialog {
    /* force it to 80% of viewport width */
    width: 80%;
    max-width: none;
}

#notificationLogsModal .modal-body {
    /* make the body scrollable */
    max-height: 70vh;
    overflow-y: auto;
    padding: 0;
}

#notificationLogsText, #sentNotificationsText {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #6c757d;
}

#notificationLogsModal .modal-body,
#notificationLogsModal .modal-body pre {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

#notificationLogsModal .log-entry {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 10px;
    border: 1px dashed #6c757d;
    border-radius: 5px;
    color: #b3b3b3;
}

#notificationLogsModal .log-header {
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
}

#notificationLogsModal .log-conditions {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#notificationLogsModal .log-condition {
    margin: 0;
    padding: 0;
    line-height: 1;
    display: block;
    align-items: center;
    gap: 0.5rem;
}

#notificationLogsModal .log-overall,
#notificationLogsModal .log-expression {
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.log-true-notification {
    color: #11ff92;
}

.log-false-notification {
    color: #ff2929;
}

.log-true-condition {
    color: #008e4c;
}

.log-false-condition {
    color: #b63535;
}

.log-entry-label {
    font-weight: bold;
    color: #cddce3;
}

.log-entry-condition-value {
    color: #e6f2f6;
}

.tabs-header {
    padding: 0;
    display: flex;
    border-bottom: 1px solid #555;
}

.tabs-header .tab {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    color: #ccc;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
}

.tabs-header .tab:hover {
    background-color: var(--highlight);
    color: #fff;
}

.tabs-header .tab.active {
    color: #fff;
    border-bottom: 2px solid var(--accent-primary-pressed);
}

/* content panes */
.tabs-content .tab-pane {
    display: none;
}

.tabs-content .tab-pane.active {
    display: block;
}

.tab-pane {
    padding-left: 1rem;
    padding-right: 1rem;
}

.logs-container {
    padding-top: 16px;
    padding-bottom: 16px;
}

.nav, .nav-tabs {
    display: none !important;
}

.log-group {
    display: flex;
    flex-direction: column;
}

.log-group-children {
    display: flex;
    flex-direction: column;
}

.sent-message-condition {
    display: block;
}

@media (max-width: 768px) {
    #notificationLogsModal .modal-dialog {
        width: 100%;
        max-width: 100vw;
        margin: 0;
        height: 100%;
    }

    #notificationLogsModal .modal-content {
        height: 100%;
        border-radius: 0;
    }

    #notificationLogsModal .modal-body {
        max-height: none;
        flex: 1;
    }
}
.notification-toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #181A20;
    border-bottom: 1px solid #2B3139;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-wrap: wrap;
}

.toolbar-spacer {
    flex: 1;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.batch-button {
    height: 28px;
    padding: 0 8px;
    background: #2B3139;
    border: none;
    border-radius: 4px;
    color: #888;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    outline: none;
}

.batch-button:hover {
    background: #3a4149;
    color: #ECF5FF;
}

.batch-button:focus {
    outline: none;
}

.batch-button-primary {
    background: var(--accent-primary, #3AFFA3);
    color: #181A20;
}

.batch-button-primary:hover {
    background: var(--accent-primary-pressed, #29ba6d);
}

.batch-button-danger {
    background: #dc3545;
    color: #fff;
}

.batch-button-danger:hover {
    background: #c82333;
}

.toolbar-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid #2B3139;
    border-radius: 4px;
    color: #888;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 12px;
}

.button-icon:hover {
    border-color: #515860;
    color: #ECF5FF;
}

.button-icon-primary {
    background: var(--accent-primary, #3AFFA3);
    border-color: var(--accent-primary, #3AFFA3);
    color: #181A20;
}

.button-icon-primary:hover {
    background: var(--accent-primary-pressed, #29ba6d);
    border-color: var(--accent-primary-pressed, #29ba6d);
    color: #181A20;
}

.filter-select {
    height: 28px;
    padding: 4px 20px 4px 6px;
    background-color: #1F2024;
    border: 1px solid #2B3139;
    border-radius: 4px;
    color: #ECF5FF;
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.15s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%278%27 height=%278%27 viewBox=%270 0 8 8%27%3E%3Cpath fill=%27%23888%27 d=%27M0 2l4 4 4-4z%27/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    box-shadow: none;
    box-sizing: border-box;
    line-height: normal;
}

.filter-select:hover {
    border-color: #515860;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary, #3AFFA3);
    box-shadow: none;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 120px;
    max-width: 200px;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 8px;
    color: #666;
    font-size: 11px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 28px;
    padding: 0 24px 0 26px;
    background: #1F2024;
    border: 1px solid #2B3139;
    border-radius: 4px;
    color: #ECF5FF;
    font-size: 12px;
    transition: border-color 0.15s ease;
    box-shadow: none;
    line-height: 28px;
}

.search-input::placeholder {
    color: #555;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary, #3AFFA3);
    box-shadow: none;
    background: #1F2024;
}

.search-clear {
    position: absolute;
    right: 4px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 10px;
    transition: color 0.15s ease;
}

.search-clear:hover {
    color: #ECF5FF;
}

.notifications-list {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 16px;
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(58, 255, 163, 0.3) #181A20;
}

.notifications-list::-webkit-scrollbar {
    width: 10px;
}

.notifications-list::-webkit-scrollbar-track {
    background: #181A20;
    border-radius: 10px;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: rgba(58, 255, 163, 0.3);
    border-radius: 10px;
    border: 2px solid #181A20;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
    background: rgba(58, 255, 163, 0.5);
}

.notifications-list::-webkit-scrollbar-thumb:active {
    background: #3AFFA3;
}

.sort-controls {
    display: flex;
    gap: 2px;
    height: 28px;
    background: #1F2024;
    border-radius: 4px;
    padding: 2px;
    align-items: center;
}

.sort-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: 22px;
    padding: 0 6px;
    border-radius: 3px;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    color: #666;
    font-size: 11px;
    font-weight: 500;
}

.sort-control:hover {
    color: #ECF5FF;
    background: rgba(255, 255, 255, 0.05);
}

.sort-control.active {
    color: #ECF5FF;
    background: #2B3139;
}

.sort-control .sort-icon {
    margin-left: 2px;
    font-size: 9px;
    opacity: 0.5;
}

.sort-control .sort-icon::before {
    content: '⇅';
}

.sort-control.active .sort-icon {
    opacity: 1;
    color: var(--accent-primary, #3AFFA3);
}

.sort-control.active.asc .sort-icon::before {
    content: '↑';
}

.sort-control.active.desc .sort-icon::before {
    content: '↓';
}

.block-empty, .block-error, .block-loader {
    align-self: center;
    align-items: center;
    text-align: center;
}

.block-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.divider {
    border-top: 1px solid #515860;
    height: auto;
    margin: 10px 0;
}

.delay-text {
    font-size: 1rem;
    color: #aab6c1;
    margin: 0;
}

.form-control {
    background-color: #495057;
    color: #f8f9fa;
    border-color: #6c757d;
}

.list-background {
    width: 100%;
    flex: 1;
    min-height: 0;
    background-color: #181A20;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.page-content {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    color: white;
}

@media (max-width: 768px) {
    .notification-toolbar {
        padding: 6px 8px;
        gap: 6px;
    }

    .toolbar-spacer {
        display: none;
    }

    .toolbar-buttons {
        margin-left: auto;
    }

    .search-container {
        flex: 1;
        min-width: 100px;
        max-width: none;
    }

    .filter-select {
        flex: 1;
        height: 26px;
        padding: 3px 18px 3px 6px;
        font-size: 11px;
    }

    .search-input {
        height: 26px;
    }

    .sort-controls {
        height: 26px;
        padding: 1px;
    }

    .sort-control {
        height: 22px;
        font-size: 10px;
    }

    .button-icon {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .batch-button {
        height: 26px;
        font-size: 10px;
    }

    .notifications-list {
        padding: 8px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .notification-toolbar {
        padding: 4px 6px;
        gap: 4px;
    }

    .search-container {
        min-width: 80px;
    }

    .search-input {
        height: 24px;
        padding: 0 20px 0 22px;
        font-size: 11px;
    }

    .search-icon {
        left: 6px;
        font-size: 10px;
    }

    .filter-select {
        height: 24px;
        padding: 2px 18px 2px 6px;
        font-size: 10px;
    }

    .sort-controls {
        height: 24px;
    }

    .sort-control {
        height: 20px;
        font-size: 9px;
    }

    .button-icon {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .batch-button {
        height: 24px;
        padding: 0 6px;
        font-size: 9px;
    }

    .toolbar-buttons {
        gap: 2px;
    }

    .notifications-list {
        padding: 6px;
        gap: 6px;
    }
}

.panel .notification-toolbar {
    padding: 6px 8px;
    gap: 6px;
}

.panel .search-container {
    min-width: 80px;
    max-width: 140px;
    flex: 1;
}

.panel .search-input {
    height: 26px;
    line-height: 26px;
    font-size: 11px;
}

.panel .filter-select {
    height: 26px;
    font-size: 10px;
    padding: 3px 18px 3px 4px;
}

.panel .sort-controls {
    height: 26px;
    padding: 1px;
}

.panel .sort-control {
    height: 22px;
    font-size: 9px;
    padding: 0 4px;
}

.panel .button-icon {
    width: 26px;
    height: 26px;
    font-size: 10px;
}

.panel .batch-button {
    height: 26px;
    font-size: 9px;
    padding: 0 6px;
}

.panel .toolbar-spacer {
    flex: 0;
    min-width: 0;
}

.panel .toolbar-buttons {
    gap: 2px;
}

.panel .notifications-list {
    padding: 8px;
    gap: 8px;
}

/*# sourceMappingURL=notificationsV2.b13060f6.css.map*/