/* ==========================================================================
   STUDENT.CSS  —  Student Portal Stylesheet
   ──────────────────────────────────────────────────────────────────────────
   Architecture (mirrors style.css but uses a Teal / Emerald palette):
     1. CSS Custom Properties (Design Tokens)
     2. Reset & Base
     3. Utility Classes  (buttons, status, notes)
     4. Layout — Sidebar Shell  (dashboard pages)
     5. Auth Pages  —  Ocean-Wave Gradient Theme
     6. Home / Session Pages
     7. Settings Page
     8. Media Queries
   ========================================================================== */


/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* --- Brand palette — teal / emerald instead of indigo/violet --- */
    --color-primary:        #0d9488;   /* Teal-600 */
    --color-primary-dark:   #0f766e;   /* Teal-700 */
    --color-primary-light:  #ccfbf1;   /* Teal-100 */
    --color-accent:         #059669;   /* Emerald-600 */
    --color-success:        #16a34a;   /* Green-600 */
    --color-danger:         #ef4444;
    --color-warning:        #f59e0b;

    /* --- Neutral palette --- */
    --color-white:          #ffffff;
    --color-bg:             #f0fdfa;   /* teal-tinted surface */
    --color-text:           #134e4a;   /* teal-900 */
    --color-text-muted:     #5eead4;   /* teal-300 */
    --color-text-dark:      #1e293b;
    --color-border:         #99f6e4;   /* teal-200 */
    --color-border-dark:    #5eead4;
    --color-surface:        #f0fdfa;
    --color-surface-dark:   #ccfbf1;

    /* --- Auth gradient — ocean wave (teal / cyan / sky) --- */
    --auth-gradient: linear-gradient(135deg,
        #0f766e 0%,
        #0e7490 30%,
        #155e75 65%,
        #1e3a5f 100%);
    --glass-bg:     rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.28);
    --glass-text:   #ffffff;
    --glass-text-muted: rgba(255, 255, 255, 0.85);

    /* --- Border radii --- */
    --radius-sm:   8px;
    --radius-md:   14px;
    --radius-lg:   22px;
    --radius-pill: 50px;

    /* --- Transitions --- */
    --transition: 0.25s ease;
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Sarabun for Thai glyph support; Poppins for Latin fallback */
    font-family: 'Sarabun', 'Poppins', sans-serif;
}

body {
    color: var(--color-text-dark);
}


/* ==========================================================================
   3. UTILITY CLASSES
   ========================================================================== */

.hidden { display: none !important; }

/* ── Shared button base ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 10px 20px;
}
.btn--primary:hover { background: var(--color-primary-dark); }

.btn--success {
    background: var(--color-success);
    color: var(--color-white);
    padding: 12px 24px;
    width: 100%;
    margin-top: 20px;
}
.btn--success:hover { filter: brightness(1.08); }

.btn--danger {
    background: var(--color-danger);
    color: var(--color-white);
    padding: 10px 20px;
}
.btn--danger:hover { filter: brightness(1.08); }

.btn--secondary {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    padding: 6px 14px;
    font-size: 13px;
}
.btn--secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Auth submit button — white pill */
.btn--auth {
    width: 100%;
    height: 46px;
    background: var(--color-white);
    color: var(--color-primary-dark);
    border: none;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    margin-top: 12px;
    transition: all var(--transition);
}
.btn--auth:hover {
    background: #e0fdf4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}
.btn--auth:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ── Feedback messages ──────────────────────────────────────────────────── */
.message-error {
    color: #fee2e2;
    font-size: 13px;
    margin-top: 10px;
    font-weight: 500;
    min-height: 18px;
}
.message-success {
    color: #a7f3d0;
    font-size: 13px;
    margin-top: 10px;
    font-weight: 500;
    min-height: 18px;
}

/* ── Annotation text ────────────────────────────────────────────────────── */
.note {
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.6;
}
.note--muted   { color: var(--color-text-muted); font-style: italic; }
.note--danger  { color: var(--color-danger); font-weight: 500; margin-top: 12px; }

/* Hint text below inputs */
.hint-text {
    display: block;
    color: var(--glass-text-muted);
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 14px;
    font-style: italic;
}

/* Save status indicator */
.save-status { font-size: 0.8rem; font-style: italic; color: #94a3b8; }
.save-status.saving  { color: #0d9488; }
.save-status.saved   { color: #16a34a; }
.save-status.error   { color: #ef4444; }


/* ==========================================================================
   4. LAYOUT — SIDEBAR SHELL
   ========================================================================== */

.layout-body {
    background-color: var(--color-bg);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
    width: 272px;
    background: linear-gradient(180deg, #134e4a 0%, #0f766e 100%);
    border-right: none;
    display: flex;
    flex-direction: column;
    z-index: 50;
    transition: all var(--transition);
    color: #e0fdf4;
}

.sidebar__header {
    padding: 24px 20px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.sidebar__nav {
    flex: 1;
    padding: 12px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar__footer {
    padding: 14px 12px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.sidebar__menu-icon {
    display: none;
    width: 24px;
    height: 24px;
    color: rgba(255,255,255,0.7);
}

/* ── Nav items ──────────────────────────────────────────────────────────── */
.s-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: background var(--transition), color var(--transition);
}
.s-nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.s-nav-item.active {
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-weight: 700;
}
.s-nav-item--danger {
    color: #fca5a5;
}
.s-nav-item--danger:hover {
    background: rgba(239,68,68,0.15);
    color: #f87171;
}

/* ── Main content area ──────────────────────────────────────────────────── */
.main-content {
    flex: 1;
    overflow-y: auto;
    background: var(--color-bg);
    padding: 32px;
}


/* ==========================================================================
   5. AUTH PAGES — OCEAN-WAVE GRADIENT THEME
   ========================================================================== */

body.auth-page {
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--auth-gradient);
    background-size: cover;
    background-attachment: fixed;
}

/* Subtle animated wave effect */
body.auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(6,182,212,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(20,184,166,0.12) 0%, transparent 60%);
    pointer-events: none;
}

/* ── Auth card ──────────────────────────────────────────────────────────── */
.login-card {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 860px;
    min-height: 490px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* ── Glass panel (form side) ────────────────────────────────────────────── */
.login-card__glass {
    flex: 1.3;
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    padding: clamp(24px, 5vw, 44px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-card__glass--full {
    flex: 1;
    border-radius: var(--radius-lg);
}

.login-card__glass h2 {
    color: var(--glass-text);
    font-weight: 700;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 28px;
    text-transform: uppercase;
    font-size: 1.25rem;
}

/* ── Brand panel (right side) ───────────────────────────────────────────── */
.login-card__brand {
    flex: 1;
    background: rgba(255,255,255,0.97);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    gap: 20px;
}

.login-card__brand .brand-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    text-align: center;
    letter-spacing: 1px;
}

.login-card__brand .brand-sub {
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
}

.brand-logo {
    max-width: 130px;
    height: auto;
    object-fit: contain;
}

/* ── Glass form fields ──────────────────────────────────────────────────── */
.field { margin-bottom: 18px; }

.field__label {
    display: block;
    color: var(--glass-text-muted);
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-bottom: 7px;
    text-transform: uppercase;
    font-weight: 600;
}

.field__input {
    width: 100%;
    height: 44px;
    background: rgba(255,255,255,0.10);
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: var(--radius-pill);
    padding: 0 18px;
    color: var(--color-white);
    font-size: 0.95rem;
    transition: border var(--transition), background var(--transition);
}
.field__input::placeholder { color: rgba(255,255,255,0.4); }
.field__input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.14);
}

/* Select inside glass panel */
.field__select {
    width: 100%;
    height: 44px;
    background: rgba(255,255,255,0.10);
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: var(--radius-pill);
    padding: 0 18px;
    color: var(--color-white);
    font-size: 0.95rem;
    appearance: none;
    cursor: pointer;
    transition: border var(--transition), background var(--transition);
}
.field__select option { color: #134e4a; background: #fff; }
.field__select:focus {
    outline: none;
    border-color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.14);
}

/* Name row */
.name-row {
    display: flex;
    gap: 14px;
    margin-bottom: 0;
}
.name-row .field { flex: 1; }

/* Remember me */
.remember-me {
    display: flex;
    align-items: center;
    margin: 14px 0;
    gap: 8px;
}
.remember-me input[type="checkbox"] { accent-color: #5eead4; cursor: pointer; }
.remember-me label { color: var(--glass-text-muted); font-size: 13px; cursor: pointer; }

/* Auth navigation links */
.auth-links     { margin-top: 18px; text-align: center; }
.forgot-link    { margin-bottom: 12px; }
.forgot-link a  { color: var(--glass-text); font-size: 13px; text-decoration: none; opacity: 0.9; }
.forgot-link a:hover { opacity: 1; text-decoration: underline; }
.signup-text    { color: var(--glass-text-muted); font-size: 13px; margin-top: 10px; }
.signup-text a  { color: #5eead4; font-weight: 700; text-decoration: none; }
.signup-text a:hover { text-decoration: underline; }

/* Step 1/2 in recovery */
#step1, #step2 { transition: opacity var(--transition); }
#step1.hidden, #step2.hidden { display: none; }


/* ==========================================================================
   6. HOME / SESSION PAGES
   ========================================================================== */

/* ── Page header ────────────────────────────────────────────────────────── */
.page-header {
    margin-bottom: 28px;
}
.page-header h1 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 4px;
}
.page-header p {
    color: #64748b;
    font-size: 0.95rem;
}

/* ── Session cards grid ─────────────────────────────────────────────────── */
.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.session-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 1px 4px rgba(13,148,136,0.06);
}
.session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13,148,136,0.14);
    border-color: var(--color-primary);
}

.session-card__pin {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    font-family: 'Courier New', monospace;
    color: var(--color-primary-dark);
    margin-bottom: 10px;
}

.session-card__tooth {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.session-card__meta {
    font-size: 0.82rem;
    color: #64748b;
    display: flex;
    gap: 12px;
}

.session-card__badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    margin-top: 10px;
}

/* ── Add new tooth modal / inline panel ─────────────────────────────────── */
.add-tooth-panel {
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(13,148,136,0.08);
}

.add-tooth-panel h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
    border-bottom: 2px solid var(--color-primary-light);
    padding-bottom: 10px;
}

.s-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.s-input,
.s-select {
    width: 100%;
    max-width: 340px;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    color: #1e293b;
    background: #fff;
    transition: border-color var(--transition);
}
.s-input:focus,
.s-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}

.mi-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 4px;
}
.mi-radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    color: #374151;
}
.mi-radio-group input[type="radio"] { accent-color: var(--color-primary); }

/* ── Canal section (edit canal data) ───────────────────────────────────── */
.canal-section {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 20px;
}

.canal-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 6px;
}

.pin-badge {
    display: inline-block;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    font-family: 'Courier New', monospace;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 4px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.canal-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 700px;
    font-size: 0.84rem;
}
.canal-table th,
.canal-table td {
    border: 1px solid #e2e8f0;
    padding: 7px 8px;
    vertical-align: middle;
}
.canal-table th {
    background: var(--color-surface);
    font-weight: 600;
    font-size: 0.78rem;
    text-align: center;
    white-space: nowrap;
}
.canal-table input,
.canal-table select {
    width: 100%;
    padding: 5px 7px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-family: inherit;
    font-size: inherit;
    box-sizing: border-box;
}
.canal-table input:focus,
.canal-table select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(13,148,136,0.1);
}

.canal-table tr.selected-row td { background: #f0fdfa; }

.canal-table-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ── Empty state ────────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}
.empty-state svg, .empty-state i {
    opacity: 0.3;
    margin-bottom: 16px;
}
.empty-state p {
    font-size: 1rem;
    margin-bottom: 20px;
}


/* ==========================================================================
   7. SETTINGS PAGE
   ========================================================================== */

.settings-wrap {
    display: flex;
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(13,148,136,0.08);
}

.settings-nav {
    width: 220px;
    flex-shrink: 0;
    background: #f0fdfa;
    border-right: 1px solid var(--color-border);
    padding: 16px 0;
}
.settings-nav button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 13px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: inherit;
    color: #475569;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.settings-nav button:hover {
    background: #ccfbf1;
    color: var(--color-primary-dark);
}
.settings-nav button.active {
    background: #ccfbf1;
    color: var(--color-primary-dark);
    border-left-color: var(--color-primary);
    font-weight: 700;
}

.settings-pane {
    flex: 1;
    padding: 32px 36px;
}
.settings-pane h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.field-group { margin-bottom: 16px; }
.field-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.field-group input {
    width: 100%;
    max-width: 340px;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #1e293b;
    background: white;
    transition: border-color var(--transition);
    box-sizing: border-box;
}
.field-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}

.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    align-items: center;
}

.panel-error {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #dc2626;
    font-weight: 500;
    min-height: 1.2em;
}

/* ── Confirm modal ──────────────────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal-box {
    background: white;
    border-radius: var(--radius-md);
    padding: 28px 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-box h3 { margin: 0 0 10px; font-size: 1.05rem; color: #1e293b; }
.modal-box p  { margin: 0 0 8px; font-size: 0.88rem; color: #475569; line-height: 1.5; }

.modal-note {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 14px 0;
    font-size: 0.85rem;
    color: #92400e;
    font-weight: 500;
}
.modal-btn-row {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}


/* ==========================================================================
   7b. JC TOPIC VIEW
   ========================================================================== */

/* Results box (similar/duplicate topic hits) */
.jc-results-box {
    background: #f8fafc;
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 14px;
    font-size: 0.875rem;
    color: var(--color-text-dark);
    line-height: 1.6;
}
.jc-results-box--ok     { border-left-color: var(--color-success);  background: #f0fdf4; }
.jc-results-box--warn   { border-left-color: var(--color-danger);   background: #fff5f5; }

.jc-results-box strong  { display: block; margin-bottom: 6px; font-size: 0.85rem; }
.jc-results-box ul      { margin: 6px 0 0 16px; }
.jc-results-box li      { margin-bottom: 4px; color: #374151; }

/* JC message feedback line */
.jc-msg--error   { color: var(--color-danger); }
.jc-msg--success { color: var(--color-success); font-weight: 600; }

/* Past submissions list */
.jc-past-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}
.jc-past-item strong { color: var(--color-primary-dark); }
.jc-past-item small  { color: #94a3b8; display: block; margin-top: 2px; font-size: 0.78rem; }


/* ==========================================================================
   8. MEDIA QUERIES
   ========================================================================== */

@media (max-width: 768px) {
    /* Auth card stacks vertically */
    .login-card {
        flex-direction: column-reverse;
        position: relative;
        top: 16px;
        margin: 0 auto 40px;
        width: 95%;
        border-radius: var(--radius-md);
    }

    .login-card__brand {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        padding: 24px;
        min-height: 0;
    }
    .login-card__brand .brand-logo { max-width: 80px; }

    /* Name row stacks on narrow screens */
    .name-row { flex-direction: column; gap: 0; }

    /* Sidebar goes to top drawer */
    .layout-body { flex-direction: column; }

    .sidebar {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        border-radius: 0;
    }

    .sidebar__menu-icon { display: block; }

    .sidebar-collapsed {
        max-height: 72px;
        overflow: hidden;
    }
    .sidebar-expanded {
        max-height: 80vh;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

    .main-content { padding-top: 90px; padding-left: 16px; padding-right: 16px; }

    /* Settings stacks */
    .settings-wrap { flex-direction: column; }
    .settings-nav { width: 100%; border-right: none; border-bottom: 1px solid var(--color-border); display: flex; padding: 0; overflow-x: auto; }
    .settings-nav button { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
    .settings-nav button.active { border-bottom-color: var(--color-primary); border-left-color: transparent; }
    .settings-pane { padding: 20px; }
}
