/* GeraDocs theme layer: light is the product default; dark preserves the original workspace. */
:root,
html[data-theme="light"] {
    color-scheme: light;
    --bg-body: #eef3f8;
    --bg-panel: #ffffff;
    --text-dark: #122033;
    --text-muted: #64748b;
    --border-color: #d7e0ea;
    --primary: #075985;
    --primary-dark: #064568;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-md: 0 18px 45px -28px rgba(15, 35, 58, 0.32), 0 5px 16px rgba(15, 35, 58, 0.06);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg-body: #0b0f19;
    --bg-panel: #111827;
    --text-dark: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
    --primary: #0b6aa6;
    --primary-dark: #075985;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-md: 0 18px 45px -24px rgba(0, 0, 0, 0.65);
}

html[data-theme="light"] {
    --bg-dark-app: #eef3f8;
    --bg-dark-card: #ffffff;
    --border-dark: #dbe4ee;
    --text-light-primary: #122033;
    --text-light-secondary: #52657a;
    --text-light-muted: #718096;
    --shadow-premium: 0 16px 38px -28px rgba(15, 35, 58, 0.38), 0 4px 14px rgba(15, 35, 58, 0.05);
}

html[data-theme="light"] body {
    background:
        radial-gradient(circle at 12% -5%, rgba(14, 116, 144, 0.08), transparent 32rem),
        linear-gradient(180deg, #f7f9fc 0%, #edf2f7 100%);
    color: var(--text-light-primary);
}

html[data-theme="light"] ::-webkit-scrollbar-track { background: #edf2f7; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #b9c6d5; }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

html[data-theme="light"] .app-header {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: 0 8px 26px -22px rgba(15, 35, 58, 0.55);
}

html[data-theme="light"] .brand-text h1,
html[data-theme="light"] .panel-section h2,
html[data-theme="light"] .ai-review-header strong,
html[data-theme="light"] .settings-card-header h2,
html[data-theme="light"] .meta-value strong,
html[data-theme="light"] .settings-grid label.settings-checkbox-label,
html[data-theme="light"] .settings-check {
    color: #122033 !important;
}

html[data-theme="light"] .brand-text p { color: #64748b; }

html[data-theme="light"] .btn-secondary,
html[data-theme="light"] .btn-outline {
    background: #ffffff;
    border-color: #ced9e5;
    color: #26384c;
    box-shadow: 0 2px 7px rgba(15, 35, 58, 0.04);
}

html[data-theme="light"] .btn-secondary:hover,
html[data-theme="light"] .btn-outline:hover {
    background: #f0f5f9;
    border-color: #9fb1c4;
}

html[data-theme="light"] .preview-panel {
    background: linear-gradient(145deg, #e2e9f1, #f0f4f8);
    border-color: #d1dbe6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html[data-theme="light"] .panel-section,
html[data-theme="light"] .settings-card {
    background: rgba(255, 255, 255, 0.96);
    border-color: #dbe4ee;
    box-shadow: var(--shadow-premium);
    backdrop-filter: none;
}

html[data-theme="light"] .panel-section h2,
html[data-theme="light"] .section-header-inline,
html[data-theme="light"] .settings-card-header,
html[data-theme="light"] .settings-actions-footer {
    border-color: #e1e8f0;
}

html[data-theme="light"] .form-group input[type="text"],
html[data-theme="light"] .form-group input[type="number"],
html[data-theme="light"] .form-group input[type="date"],
html[data-theme="light"] .form-group input[type="email"],
html[data-theme="light"] .form-group select,
html[data-theme="light"] .form-group textarea,
html[data-theme="light"] .settings-grid input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] .settings-grid select,
html[data-theme="light"] .settings-grid textarea {
    background: #fbfcfe;
    border-color: #cfdae6;
    color: #142337;
    box-shadow: inset 0 1px 2px rgba(15, 35, 58, 0.025);
}

html[data-theme="light"] .form-group input:focus,
html[data-theme="light"] .form-group select:focus,
html[data-theme="light"] .form-group textarea:focus,
html[data-theme="light"] .settings-grid input:focus,
html[data-theme="light"] .settings-grid select:focus,
html[data-theme="light"] .settings-grid textarea:focus {
    background: #ffffff;
    border-color: #0b6a9d;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.13);
}

html[data-theme="light"] .form-group input[readonly] { background: #f2f5f8; color: #64748b; }

html[data-theme="light"] .checkbox-control {
    background: #fbfcfe;
    border-color: #d2dce7;
    color: #24364a !important;
}

html[data-theme="light"] .checkbox-control:hover { background: #f2f7fa; border-color: #a9bacb; }
html[data-theme="light"] .checkbox-box { background: #ffffff; border-color: #9fb0c2; }

html[data-theme="light"] .ai-panel {
    border-color: #b9d9e9;
    background: linear-gradient(180deg, #f7fcff 0%, #eef8fc 100%);
}

html[data-theme="light"] .ai-review { background: #effaff; border-color: #bae2f3; }
html[data-theme="light"] .ai-review-header span,
html[data-theme="light"] .ai-status { color: #52657a; }
html[data-theme="light"] .ai-status.recording,
html[data-theme="light"] .ai-status.error { color: #b42318; }
html[data-theme="light"] .ai-status.loading,
html[data-theme="light"] .ai-status.info { color: #075985; }
html[data-theme="light"] .ai-status.success { color: #067647; }
html[data-theme="light"] .ai-validation-warnings {
    color: #714b09;
    background: #fffbeb;
    border-color: #f4cf72;
}
html[data-theme="light"] .ai-validation-warnings > strong { color: #653f05; }
html[data-theme="light"] .ai-validation-warning-action:hover,
html[data-theme="light"] .ai-validation-warning-action:focus-visible { color: #7c4a03; }
html[data-theme="light"] .ai-enrichment-copy small,
html[data-theme="light"] .ai-enrichment-meta { color: #60758a; }
html[data-theme="light"] .ai-enrichment-badge {
    color: #05638f;
    background: #eef8fc;
    border-color: #c5e1ed;
}
html[data-theme="light"] .ai-enrichment-review {
    color: #18354a;
    background: #f5fafc;
    border-color: #c9dee8;
}
html[data-theme="light"] .ai-enrichment-review p,
html[data-theme="light"] .ai-enrichment-review ul { color: #52697c; }
html[data-theme="light"] .ai-credit-usage {
    color: #142337;
    background: #ffffff;
    border-color: #cbd9e5;
    box-shadow: 0 8px 20px -18px rgba(15, 23, 42, 0.35);
}
html[data-theme="light"] .ai-credit-usage-header { border-bottom-color: #dfe7ef; }
html[data-theme="light"] .ai-credit-usage-header > strong,
html[data-theme="light"] .ai-credit-history-item strong { color: #142337; }
html[data-theme="light"] .ai-credit-history-heading > span,
html[data-theme="light"] .ai-credit-history-item > span { color: #52657a; }
html[data-theme="light"] .ai-credit-history-heading > small,
html[data-theme="light"] .ai-credit-history-item small,
html[data-theme="light"] #ai-credit-note { color: #718096; }
html[data-theme="light"] .ai-credit-history {
    background: #fbfcfe;
    border-color: #d9e3ec;
}
html[data-theme="light"] .ai-credit-history-item + .ai-credit-history-item {
    border-top-color: #e5ebf1;
}
html[data-theme="light"] .item-editor-row {
    background: #f7f9fc;
    border-color: #e0e7ef;
}

/* Settings */
html[data-theme="light"] .settings-page { background: transparent; }
html[data-theme="light"] .settings-sidebar {
    background: rgba(255, 255, 255, 0.9);
    border-color: #dbe4ee;
    box-shadow: var(--shadow-premium);
}

html[data-theme="light"] .tab-btn { color: #52657a; }
html[data-theme="light"] .tab-btn:hover { background: #eef4f8; color: #122033; }
html[data-theme="light"] .tab-btn.active { color: #ffffff; }
html[data-theme="light"] .settings-grid label { color: #52657a; }
html[data-theme="light"] .settings-grid small { color: #718096; }

html[data-theme="light"] .inline-logo-preview {
    background: #ffffff;
    border-color: #dbe4ee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .settings-quill-editor { background: #ffffff; border-color: #cfdae6 !important; color: #142337; }
html[data-theme="light"] .ql-toolbar.ql-snow { background: #f3f6f9; border-color: #cfdae6 !important; }
html[data-theme="light"] .ql-snow .ql-picker { color: #334155 !important; }
html[data-theme="light"] .ql-snow .ql-stroke { stroke: #334155 !important; }
html[data-theme="light"] .ql-snow .ql-fill { fill: #334155 !important; }

html[data-theme="light"] .meta-label { color: #718096; }
html[data-theme="light"] .meta-value,
html[data-theme="light"] .meta-value em { color: #3e5064; }

html[data-theme="light"] .settings-alert-success { background: #ecfdf3; border-color: #abefc6; color: #067647; }
html[data-theme="light"] .settings-alert-error { background: #fef3f2; border-color: #fecdca; color: #b42318; }

/* Theme selection */
.theme-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.theme-choice {
    position: relative;
    display: block !important;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
}

.theme-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-choice-card {
    display: grid;
    gap: 14px;
    min-height: 190px;
    padding: 18px;
    border: 2px solid var(--border-dark);
    border-radius: 14px;
    background: var(--bg-dark-card);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.theme-choice:hover .theme-choice-card { transform: translateY(-2px); }
.theme-choice input:focus-visible + .theme-choice-card { outline: 3px solid rgba(14, 165, 233, 0.3); outline-offset: 3px; }
.theme-choice input:checked + .theme-choice-card { border-color: #0b6a9d; box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.12); }

.theme-preview {
    display: grid;
    grid-template-columns: 28% 1fr;
    min-height: 105px;
    overflow: hidden;
    border: 1px solid rgba(100, 116, 139, 0.25);
    border-radius: 10px;
}

.theme-preview-sidebar { padding: 10px 7px; }
.theme-preview-sidebar::before,
.theme-preview-sidebar::after,
.theme-preview-main::before,
.theme-preview-main::after { content: ""; display: block; border-radius: 4px; }
.theme-preview-sidebar::before { width: 70%; height: 8px; margin-bottom: 13px; }
.theme-preview-sidebar::after { width: 100%; height: 30px; }
.theme-preview-main { padding: 12px; }
.theme-preview-main::before { width: 45%; height: 10px; margin-bottom: 15px; }
.theme-preview-main::after { width: 100%; height: 52px; border: 1px solid; }

.theme-preview-light { background: #e9eef4; }
.theme-preview-light .theme-preview-sidebar { background: #ffffff; }
.theme-preview-light .theme-preview-sidebar::before { background: #075985; }
.theme-preview-light .theme-preview-sidebar::after { background: #e7f3f8; }
.theme-preview-light .theme-preview-main { background: #f6f8fb; }
.theme-preview-light .theme-preview-main::before { background: #22364a; }
.theme-preview-light .theme-preview-main::after { background: #ffffff; border-color: #d6e0e9; }

.theme-preview-dark { background: #0b0f19; }
.theme-preview-dark .theme-preview-sidebar { background: #111827; }
.theme-preview-dark .theme-preview-sidebar::before { background: #38bdf8; }
.theme-preview-dark .theme-preview-sidebar::after { background: #1b283a; }
.theme-preview-dark .theme-preview-main { background: #0f172a; }
.theme-preview-dark .theme-preview-main::before { background: #e5edf6; }
.theme-preview-dark .theme-preview-main::after { background: #111827; border-color: #2a3748; }

.theme-choice-copy { display: grid; gap: 4px; }
.theme-choice-copy strong { color: var(--text-light-primary); font-size: 1rem; }
.theme-choice-copy span { color: var(--text-light-secondary); font-size: 0.82rem; font-weight: 500; line-height: 1.45; }

html[data-theme="light"] .rich-text-editor-group .ql-toolbar.ql-snow {
    background: #f3f6f9;
    border-color: #cfdae6;
    box-shadow: none;
}

html[data-theme="light"] .rich-text-editor-group .ql-container.ql-snow {
    background: #ffffff;
    border-color: #cfdae6;
    color: #142337;
}

html[data-theme="light"] .rich-text-editor-group .ql-toolbar.ql-snow button { color: #465a70; }
html[data-theme="light"] .rich-text-editor-group .ql-toolbar.ql-snow button:hover,
html[data-theme="light"] .rich-text-editor-group .ql-toolbar.ql-snow button:focus,
html[data-theme="light"] .rich-text-editor-group .ql-toolbar.ql-snow button.ql-active { color: #075985; background: #e0f2fe; }
html[data-theme="light"] .rich-text-editor-group .ql-editor .document-heading { color: #122033; }
html[data-theme="light"] .settings-option-select { color: #122033; }
html[data-theme="light"] .settings-option-select span { color: #64748b; }

.login-container .form-group input {
    background: var(--bg-panel);
    border-color: var(--border-color);
    color: var(--text-dark);
}

.login-container .form-group input::placeholder { color: var(--text-muted); }
html[data-theme="light"] .editor-panel {
    background: rgba(244, 247, 250, 0.92);
    border-color: #dbe4ee;
}

html[data-theme="light"] .form-group input:hover,
html[data-theme="light"] .form-group select:hover,
html[data-theme="light"] .form-group textarea:hover { border-color: #9fb1c4; }

html[data-theme="light"] .item-editor-row:hover {
    background: #f1f6f9;
    border-color: #c9d7e3;
}

html[data-theme="light"] .settings-shell { width: min(1320px, calc(100% - 48px)); }
html[data-theme="light"] .settings-card { border-radius: 16px; }
/* Premium form typography: labels lead quietly; entered values stay neutral. */
.settings-grid label {
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.045em;
    line-height: 1.3;
}

.settings-grid input:not([type="checkbox"]):not([type="radio"]),
.settings-grid select,
.settings-grid textarea {
    min-height: 44px;
    padding: 0.68rem 0.82rem;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}

.settings-grid textarea {
    min-height: 116px;
    padding-block: 0.75rem;
}

.settings-grid select { cursor: pointer; }
.settings-grid input::placeholder,
.settings-grid textarea::placeholder { color: #8492a3; font-weight: 400; opacity: 1; }

.settings-grid small {
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.45;
}

.settings-field-counter {
    display: block;
    margin-top: -1px;
    color: #7f91a7;
    font-size: 0.71rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
    text-align: right;
    text-transform: none;
    transition: color 160ms ease;
}

.settings-field-counter.is-warning { color: #d69e2e; }
.settings-field-counter.is-near-limit { color: #f97066; font-weight: 650; }

.settings-context-budget {
    display: grid;
    gap: 8px;
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid #2a3b50;
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.54);
}

.settings-context-budget-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #dce7f3;
    font-size: 0.79rem;
}

.settings-context-budget-copy strong { font-size: 0.82rem; font-weight: 650; }
.settings-context-budget-copy span { color: #9fb0c3; font-variant-numeric: tabular-nums; }

.settings-context-budget-track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #263548;
}

.settings-context-budget-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #0ea5e9;
    transition: width 180ms ease, background-color 180ms ease;
}

.settings-context-budget small { color: #8496aa; font-size: 0.74rem; line-height: 1.45; }
.settings-context-budget.is-warning { border-color: rgba(217, 158, 46, 0.5); }
.settings-context-budget.is-warning .settings-context-budget-track span { background: #d69e2e; }
.settings-context-budget.is-invalid { border-color: rgba(249, 112, 102, 0.72); }
.settings-context-budget.is-invalid .settings-context-budget-track span { background: #f97066; }

.settings-form.was-validated .settings-grid input:invalid,
.settings-form.was-validated .settings-grid select:invalid,
.settings-form.was-validated .settings-grid textarea:invalid {
    border-color: #f97066;
    box-shadow: 0 0 0 3px rgba(249, 112, 102, 0.13);
}

.settings-quill-editor.is-invalid {
    border-color: #f97066 !important;
    box-shadow: 0 0 0 3px rgba(249, 112, 102, 0.13);
}

html[data-theme="light"] .settings-field-counter { color: #718096; }
html[data-theme="light"] .settings-field-counter.is-warning { color: #9a6700; }
html[data-theme="light"] .settings-field-counter.is-near-limit { color: #b42318; }
html[data-theme="light"] .settings-context-budget { background: #f7fafc; border-color: #d5e0ea; }
html[data-theme="light"] .settings-context-budget-copy { color: #24364b; }
html[data-theme="light"] .settings-context-budget-copy span,
html[data-theme="light"] .settings-context-budget small { color: #64748b; }
html[data-theme="light"] .settings-context-budget-track { background: #dfe8f0; }

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    font-weight: 400;
    letter-spacing: 0;
}

@media (min-width: 681px) {
    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group input[type="date"],
    .form-group input[type="email"],
    .form-group select,
    .form-group textarea { font-size: 0.875rem; }
}

html[data-theme="dark"] .settings-grid input::placeholder,
html[data-theme="dark"] .settings-grid textarea::placeholder { color: #708096; }
@media (max-width: 680px) {
    .theme-choice-grid { grid-template-columns: 1fr; }
}

/* The active settings item must retain contrast on hover and keyboard focus. */
html[data-theme="light"] .tab-btn.active,
html[data-theme="light"] .tab-btn.active:hover,
html[data-theme="light"] .tab-btn.active:focus-visible {
    color: #075985;
    background: #e6f4fc;
    box-shadow: inset 3px 0 0 #0ea5e9, 0 4px 12px rgba(15, 35, 58, .08);
}
html[data-theme="light"] .tab-btn.active i,
html[data-theme="light"] .tab-btn.active:hover i,
html[data-theme="light"] .tab-btn.active:focus-visible i { color: #0782bf; }

/* Settings workspace — structured, responsive and consistent with the application shell. */
.settings-shell {
    width: min(1440px, calc(100% - 48px));
    padding: 32px 0 56px;
}

.settings-layout {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.settings-sidebar {
    width: auto;
    padding: 10px;
    border-radius: 16px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.settings-tabs {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0;
    overflow: visible;
}

.settings-nav-label {
    display: block;
    margin: 14px 12px 5px;
    color: var(--text-muted);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.settings-nav-label:first-child { margin-top: 5px; }

.tab-btn,
.settings-help-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--text-muted);
    text-decoration: none;
    white-space: normal;
}

.tab-btn > i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--border-color) 55%, transparent);
    color: var(--primary);
    font-size: .9rem;
}

.tab-btn > span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.tab-btn > span strong {
    color: inherit;
    font-size: .82rem;
    font-weight: 750;
    line-height: 1.2;
}

.tab-btn > span small {
    color: var(--text-muted);
    font-size: .65rem;
    font-weight: 500;
    line-height: 1.25;
}

.tab-btn:hover,
.tab-btn:focus-visible {
    outline: none;
    border-color: color-mix(in srgb, var(--primary) 18%, var(--border-color));
    background: color-mix(in srgb, var(--primary) 6%, var(--bg-panel));
    color: var(--text-dark);
}

.tab-btn.active,
.tab-btn.active:hover,
.tab-btn.active:focus-visible,
html[data-theme="light"] .tab-btn.active,
html[data-theme="light"] .tab-btn.active:hover,
html[data-theme="light"] .tab-btn.active:focus-visible {
    border-color: color-mix(in srgb, var(--primary) 22%, var(--border-color));
    background: color-mix(in srgb, var(--primary) 10%, var(--bg-panel));
    color: var(--primary);
    box-shadow: inset 3px 0 0 var(--primary);
}

.tab-btn.active > i,
.tab-btn.active:hover > i {
    background: var(--primary);
    color: #fff;
}

.settings-mobile-nav { display: none; }

.settings-nav-route {
    position: relative;
    padding-right: 30px;
}

.settings-nav-route::after {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
    content: '\203A';
    font-size: 1.05rem;
    font-weight: 800;
    opacity: .65;
}

.settings-nav-route:hover::after,
.settings-nav-route:focus-visible::after {
    color: var(--primary);
    opacity: 1;
}

.settings-support-link {
    margin-top: 13px;
}

.settings-support-link::before {
    position: absolute;
    top: -8px;
    right: 8px;
    left: 8px;
    height: 1px;
    background: var(--border-color);
    content: '';
    pointer-events: none;
}

.settings-mobile-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.settings-mobile-shortcuts a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 8px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    background: color-mix(in srgb, var(--bg-panel) 86%, var(--bg-body));
    color: var(--text-muted);
    font-size: .67rem;
    font-weight: 700;
    text-decoration: none;
}

.settings-mobile-shortcuts a:hover,
.settings-mobile-shortcuts a:focus-visible {
    outline: none;
    border-color: var(--primary);
    color: var(--primary);
}

.settings-content { min-width: 0; }

.settings-route-page-body { min-height: 100vh; background: var(--bg-body); }
.settings-route-shell .settings-layout { align-items: start; }
.settings-route-content > :first-child { margin-top: 0; }
.settings-route-content .account-security-form { width: 100%; margin: 0; }
.settings-route-content .billing-page,
.settings-route-content .team-audit-shell,
.settings-route-content .dt-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 56px;
}
.settings-mobile-shortcuts a.active {
    border-color: color-mix(in srgb, var(--primary) 28%, var(--border-color));
    background: color-mix(in srgb, var(--primary) 10%, var(--bg-panel));
    color: var(--primary);
}

.settings-card {
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.settings-card-header {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    justify-content: initial;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 25px 28px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 7%, var(--bg-panel)), var(--bg-panel) 72%);
}

.settings-card-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 9px 20px -10px color-mix(in srgb, var(--primary) 70%, transparent);
}

.settings-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.settings-card-header h2 {
    display: block;
    margin: 0;
    color: var(--text-dark);
    font-size: clamp(1.28rem, 2vw, 1.55rem);
    letter-spacing: -.02em;
}

.account-security-form .settings-card-header h1 {
    display: block;
    margin: 0;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: clamp(1.28rem, 2vw, 1.55rem);
    line-height: 1.2;
    letter-spacing: -.02em;
}

.account-security-form .settings-grid {
    padding: 24px 28px 30px;
}

.account-security-form .settings-alert {
    margin: 20px 28px 0;
}

.account-security-form .settings-actions-footer {
    margin-left: 0;
}

.account-password-input {
    position: relative;
    display: block;
}

.account-password-input input {
    padding-right: 46px !important;
}

.account-password-visibility {
    position: absolute;
    top: 50%;
    right: 5px;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.account-password-visibility:hover,
.account-password-visibility:focus-visible {
    outline: none;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
}

.account-password-generator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 4%, var(--bg-panel));
}

.account-password-generator .btn {
    flex: 0 0 auto;
    min-height: 40px;
}

.account-password-generator .btn:disabled {
    opacity: .48;
    cursor: not-allowed;
}

.account-password-generator-status {
    margin-left: 2px;
    color: var(--text-muted);
    font-size: .72rem;
    line-height: 1.45;
}

.account-password-generator-status.is-success { color: #15803d; }
.account-password-generator-status.is-error { color: #b42318; }

.settings-card-header p {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: .84rem;
    line-height: 1.5;
}

.settings-sections {
    display: grid;
    gap: 18px;
    padding: 24px 28px 30px;
}

.settings-form-section {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: color-mix(in srgb, var(--bg-panel) 96%, var(--bg-body));
}

.settings-form-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 17px;
}

.settings-form-section-heading h3 {
    margin: 0;
    color: var(--text-dark);
    font: 700 1rem/1.25 var(--font-heading);
}

.settings-form-section-heading p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: .75rem;
    line-height: 1.45;
}

.settings-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: color-mix(in srgb, #16a34a 10%, var(--bg-panel));
    color: #15803d;
    font-size: .67rem;
    font-weight: 750;
}

.settings-grid { gap: 17px 18px; }

.settings-grid label {
    color: var(--text-muted);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .055em;
}

.settings-grid input:not([type="checkbox"]):not([type="radio"]),
.settings-grid select,
.settings-grid textarea,
.settings-option-select select {
    width: 100%;
    min-height: 46px;
    padding: .72rem .82rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: color-mix(in srgb, var(--bg-panel) 82%, var(--bg-body));
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
}

.settings-grid textarea { min-height: 112px; }

.settings-grid input:focus,
.settings-grid select:focus,
.settings-grid textarea:focus,
.settings-option-select select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-panel);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}

.settings-grid small {
    color: var(--text-muted);
    font-size: .7rem;
    line-height: 1.45;
}

.identity-sections { gap: 12px; }

.identity-assist-banner {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 15px 17px;
    border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border-color));
    border-radius: 13px;
    background: color-mix(in srgb, var(--primary) 5%, var(--bg-panel));
}

.identity-assist-icon,
.identity-accordion-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary) 10%, var(--bg-panel));
    color: var(--primary);
}

.identity-assist-banner strong { color: var(--text-dark); font-size: .82rem; }
.identity-assist-banner p { margin: 3px 0 0; color: var(--text-muted); font-size: .7rem; line-height: 1.45; }
.identity-assist-banner .btn { min-height: 40px; white-space: nowrap; }

.identity-accordion {
    min-width: 0;
    overflow: clip;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    background: color-mix(in srgb, var(--bg-panel) 97%, var(--bg-body));
    transition: border-color .18s ease, box-shadow .18s ease;
}

.identity-accordion[hidden],
.identity-accordion [hidden] { display: none !important; }

.identity-accordion[open] {
    border-color: color-mix(in srgb, var(--primary) 28%, var(--border-color));
    box-shadow: 0 10px 25px -22px color-mix(in srgb, var(--primary) 45%, transparent);
}

.identity-accordion-summary {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 13px;
    min-height: 70px;
    padding: 14px 17px;
    color: var(--text-dark);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.identity-accordion-summary::-webkit-details-marker { display: none; }
.identity-accordion-summary:hover { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.identity-accordion-summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 22%, transparent); outline-offset: -3px; }
.identity-accordion-title { display: grid; gap: 3px; min-width: 0; }
.identity-accordion-title strong { font: 700 .9rem/1.25 var(--font-heading); }
.identity-accordion-title small { color: var(--text-muted); font-size: .68rem; line-height: 1.35; }
.identity-accordion-chevron { color: var(--text-muted); font-size: .72rem; transition: transform .18s ease; }
.identity-accordion[open] .identity-accordion-chevron { transform: rotate(180deg); }

.identity-section-status {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    background: color-mix(in srgb, #d97706 10%, var(--bg-panel));
    color: #b45309;
    font-size: .62rem;
    font-weight: 800;
    white-space: nowrap;
}

.identity-section-status.is-complete { background: color-mix(in srgb, #16a34a 10%, var(--bg-panel)); color: #15803d; }
.identity-section-status.is-optional { background: color-mix(in srgb, var(--text-muted) 9%, var(--bg-panel)); color: var(--text-muted); }
.identity-accordion-body { padding: 18px 17px 20px; border-top: 1px solid var(--border-color); }
.identity-accordion-body.settings-grid { display: grid; }
.identity-accordion-body > .settings-grid { margin: 0; }

.settings-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.settings-field-label em,
.settings-optional-inline {
    color: var(--primary);
    font-size: .58rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: none;
}

.settings-field-label em.is-optional,
.settings-optional-inline { color: var(--text-muted); }

.identity-legal-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 16px;
    padding: 11px 12px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--primary) 6%, var(--bg-panel));
    color: var(--text-muted);
    font-size: .69rem;
    line-height: 1.45;
}

.identity-legal-note i { margin-top: 2px; color: var(--primary); }
.identity-money-field { position: relative; display: block; }
.identity-money-field input { padding-right: 54px !important; }
.identity-money-field b { position: absolute; top: 50%; right: 13px; color: var(--text-muted); font-size: .65rem; transform: translateY(-50%); pointer-events: none; }
.identity-logo-group { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-color); }

.document-subtabs {
    display: flex;
    gap: 8px;
    padding: 14px 28px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
    border-bottom: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--bg-panel) 94%, var(--primary) 6%);
}

.document-subtab {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 122px;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.document-subtab i { color: color-mix(in srgb, var(--primary) 72%, var(--text-muted)); }
.document-subtab:hover { color: var(--text-dark); background: color-mix(in srgb, var(--primary) 7%, var(--bg-panel)); }
.document-subtab.active {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 26%, var(--border-color));
    background: var(--bg-panel);
    box-shadow: 0 4px 13px color-mix(in srgb, var(--primary) 10%, transparent);
}
.document-subtab.active i { color: var(--primary); }
.document-subtab:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 22%, transparent); outline-offset: 2px; }

.document-settings-panel[hidden],
.settings-document-type-card[hidden],
.document-content-panel label[hidden] { display: none !important; }

.document-behavior-panel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.document-behavior-panel > .settings-form-section-heading { display: none; }
.document-behavior-panel .docs-options-grid { grid-template-columns: minmax(0, 1fr); }
.document-behavior-panel .settings-document-type-card { padding: 20px; }

.docs-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.settings-document-type-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    background: var(--bg-panel);
}

.settings-document-type-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--border-color);
}

.settings-document-type-heading > span {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--primary) 10%, var(--bg-panel));
    color: var(--primary);
}

.settings-document-type-heading div { display: grid; gap: 2px; }
.settings-document-type-heading strong { color: var(--text-dark); font-size: .84rem; }
.settings-document-type-heading small { color: var(--text-muted); font-size: .66rem; }

.settings-option-select {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.settings-document-type-card .checkbox-control {
    width: 100%;
    min-height: 39px;
    margin: 0 0 7px;
    padding: 8px 0;
    padding-inline: 9px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    background: color-mix(in srgb, var(--bg-panel) 83%, var(--bg-body));
    color: var(--text-dark) !important;
    font-size: .72rem;
    font-weight: 550;
    line-height: 1.35;
}

.settings-document-type-card .checkbox-control:last-child { margin-bottom: 0; }
.settings-document-type-card .checkbox-control:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--border-color)); background: color-mix(in srgb, var(--primary) 5%, var(--bg-panel)); }
.settings-document-type-card .checkbox-box { border-color: color-mix(in srgb, var(--text-muted) 55%, transparent); background: var(--bg-panel); }

.settings-context-budget {
    margin: 22px 28px 0;
}

.settings-card > .theme-choice-grid {
    padding: 24px 28px 30px;
}

#tab-plan-usage > .usage-plan-overview,
#tab-plan-usage > .usage-forecast-card,
#tab-plan-usage > .usage-toolbar,
#tab-plan-usage > .usage-summary-grid {
    margin-right: 28px;
    margin-left: 28px;
}

#tab-plan-usage > .usage-plan-overview { margin-top: 24px; }
#tab-plan-usage > .usage-summary-grid { margin-bottom: 30px; }

.logo-upload-group { gap: 14px; }
.logo-upload-label { display: grid; gap: 8px; color: var(--text-muted); font-size: .7rem; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.logo-upload-label small { color: var(--text-muted); font-size: .7rem; font-weight: 500; letter-spacing: 0; line-height: 1.45; text-transform: none; }
.logo-drop-zone > strong { color: var(--text-dark); }
.logo-drop-zone > span { color: var(--text-muted); }

.inline-logo-preview {
    justify-content: space-between;
    margin: 0;
    padding: 14px;
    background: color-mix(in srgb, var(--bg-panel) 82%, var(--bg-body));
    border-color: var(--border-color);
}

.settings-editor-section .settings-field-counter {
    display: block;
    margin-top: 8px;
    text-align: right;
}

.settings-quill-editor {
    min-height: 260px;
    background: var(--bg-panel);
    border-color: var(--border-color) !important;
    color: var(--text-dark);
}

.settings-actions-footer {
    position: sticky;
    bottom: 12px;
    z-index: 30;
    align-items: center;
    margin: 0 0 0 296px;
    padding: 13px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: color-mix(in srgb, var(--bg-panel) 92%, transparent);
    box-shadow: 0 16px 36px -24px rgba(15, 35, 58, .5);
    backdrop-filter: blur(14px);
}

.settings-save-note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-right: auto;
    color: var(--text-muted);
    font-size: .7rem;
}

@media (max-width: 1180px) {
    .settings-layout { grid-template-columns: 238px minmax(0, 1fr); gap: 20px; }
    .settings-actions-footer { margin-left: 258px; }
    .docs-options-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .settings-shell {
        width: min(100% - 28px, 760px);
        padding: 18px 0 96px;
    }

    .settings-layout { display: block; }

    .settings-sidebar {
        position: relative;
        top: auto;
        z-index: 30;
        margin-bottom: 14px;
        padding: 12px;
    }

    .settings-tabs { display: none; }

    .settings-mobile-nav {
        display: grid;
        gap: 9px;
    }

    .settings-mobile-nav > label {
        color: var(--text-muted);
        font-size: .66rem;
        font-weight: 800;
        letter-spacing: .09em;
        text-transform: uppercase;
    }

    .settings-mobile-select-wrap {
        position: relative;
        display: flex;
        align-items: center;
    }

    .settings-mobile-select-wrap > i {
        position: absolute;
        left: 14px;
        z-index: 1;
        color: var(--primary);
        pointer-events: none;
    }

    .settings-mobile-select-wrap select {
        width: 100%;
        min-height: 48px;
        padding: 0 42px;
        border: 1px solid var(--border-color);
        border-radius: 11px;
        background: var(--bg-panel);
        color: var(--text-dark);
        font: 700 .86rem var(--font-body);
    }

    .settings-card-header { padding: 21px; }
    .document-subtabs {
        padding: 11px 18px;
        scroll-padding-inline: 18px;
        -webkit-overflow-scrolling: touch;
    }
    .document-subtab { flex: 0 0 auto; min-width: 128px; scroll-snap-align: start; }
    .settings-sections { padding: 18px; }
    .settings-form-section { padding: 17px; }
    .settings-context-budget { margin: 18px 18px 0; }
    .settings-card > .theme-choice-grid { padding: 18px; }
    #tab-plan-usage > .usage-plan-overview,
    #tab-plan-usage > .usage-forecast-card,
    #tab-plan-usage > .usage-toolbar,
    #tab-plan-usage > .usage-summary-grid {
        margin-right: 18px;
        margin-left: 18px;
    }

    .usage-header-actions { grid-column: 1 / -1; width: 100%; }
    .usage-header-actions .usage-refresh-btn { margin-left: auto; }

    .settings-actions-footer {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 120;
        display: grid;
        grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
        gap: 9px;
        margin: 0;
        padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
        border-width: 1px 0 0;
        border-radius: 0;
        background: color-mix(in srgb, var(--bg-panel) 96%, transparent);
    }

    .settings-actions-footer .btn { width: 100%; min-width: 0; }
    .settings-save-note { display: none; }

    .account-security-form {
        width: min(100% - 28px, 760px);
        margin-top: 18px;
        padding-bottom: 84px;
    }

    .account-security-form .settings-grid {
        padding: 20px 21px 24px;
    }

    .account-security-form .settings-alert {
        margin: 18px 21px 0;
    }

    .account-password-generator {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .account-password-generator-status {
        flex: 1 0 100%;
        margin: 0;
    }
}

@media (max-width: 640px) {
    .settings-shell { width: 100%; padding-top: 10px; }
    .settings-sidebar { margin: 0 10px 10px; border-radius: 13px; }
    .settings-card { border-right: 0; border-left: 0; border-radius: 0; }

    .settings-card-header {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 11px;
        padding: 18px 16px;
    }

    .settings-card-icon { width: 40px; height: 40px; border-radius: 11px; }
    .settings-card-header h2 { font-size: 1.18rem; }
    .account-security-form .settings-card-header h1 { font-size: 1.18rem; }
    .settings-card-header p { font-size: .76rem; }
    .account-security-form .settings-card {
        border: 1px solid var(--border-color);
        border-radius: 16px;
    }
    .account-security-form .settings-grid { padding: 17px 16px 20px; }
    .account-security-form .settings-alert { margin: 16px 16px 0; }
    .account-password-generator .btn:first-child { flex: 1 1 auto; }
    .document-subtabs {
        gap: 6px;
        padding: 9px 12px;
        scroll-padding-inline: 12px;
    }
    .document-subtab {
        min-width: auto;
        min-height: 40px;
        padding: 8px 11px;
        font-size: .7rem;
    }
    .document-subtab i { font-size: .76rem; }
    .settings-sections { gap: 12px; padding: 13px 12px 18px; }
    .settings-form-section { padding: 15px 13px; border-radius: 12px; }
    .settings-form-section-heading { margin-bottom: 14px; }
    .settings-form-section-heading h3 { font-size: .92rem; }
    .settings-form-section-heading p { font-size: .7rem; }
    .settings-security-badge { display: none; }
    .settings-grid { grid-template-columns: 1fr; gap: 14px; }
    .settings-span-2 { grid-column: auto; }
    .identity-assist-banner { grid-template-columns: 38px minmax(0, 1fr); padding: 13px; }
    .identity-assist-banner .btn { grid-column: 1 / -1; width: 100%; }
    .identity-accordion-summary { grid-template-columns: 34px minmax(0, 1fr) 16px; gap: 10px; min-height: 64px; padding: 12px 13px; }
    .identity-accordion-icon { width: 34px; height: 34px; }
    .identity-section-status { display: none; }
    .identity-accordion-body { padding: 15px 13px 17px; }
    .settings-context-budget { margin: 13px 12px 0; }
    .theme-choice-grid { grid-template-columns: 1fr; }
    .settings-card > .theme-choice-grid { padding: 14px 12px 18px; }
    #tab-plan-usage > .usage-plan-overview,
    #tab-plan-usage > .usage-forecast-card,
    #tab-plan-usage > .usage-toolbar,
    #tab-plan-usage > .usage-summary-grid {
        margin-right: 12px;
        margin-left: 12px;
    }

    .inline-logo-preview { align-items: stretch; }
    .inline-logo-img-box { width: 100%; }
    .btn-remove-logo { justify-content: center; }

    .settings-quill-editor { min-height: 220px; }
    .ql-toolbar.ql-snow { overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 380px) {
    .settings-mobile-shortcuts a span { font-size: .62rem; }
    .settings-actions-footer { grid-template-columns: 44px minmax(0, 1fr); }
    .settings-actions-footer .btn-secondary { padding-inline: 0; font-size: 0; }
    .settings-actions-footer .btn-secondary i { margin: 0; font-size: .9rem; }
}

/* Custom SMTP Premium Upsell Banner */
.settings-premium-banner {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin: 20px 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.12) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 14px;
}
.settings-premium-banner-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.settings-premium-banner-content h3 {
    margin: 6px 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}
.settings-premium-banner-content p {
    margin: 0 0 14px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #475569;
}
.settings-premium-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.settings-active-smtp-banner {
    margin: 20px 24px 0;
}
.settings-active-badge {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}
.settings-section-locked {
    opacity: 0.75;
    pointer-events: none;
}
html[data-theme="dark"] .settings-premium-banner-content h3 {
    color: #f8fafc;
}
html[data-theme="dark"] .settings-premium-banner-content p {
    color: #cbd5e1;
}
html[data-theme="dark"] .settings-premium-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.18) 100%);
    border-color: rgba(245, 158, 11, 0.4);
}
