:root {
    --navy: #0c447c;
    --navy-deep: #082d53;
    --emerald: #0f6e56;
    --emerald-soft: #e2f1eb;
    --gold: #ba7517;
    --gold-soft: #f7ecd9;
    --paper: #f1efe8;
    --white: #fffdf8;
    --ink: #2c2c2a;
    --muted: #6f746f;
    --line: #deded6;
    --danger: #a53f36;
    --shadow: 0 16px 40px rgba(8, 45, 83, .09);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--ink);
    font-size: 13px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.login-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.login-shell { flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); max-width: 1180px; width: 100%; margin: auto; padding: 36px 6vw; gap: clamp(36px, 8vw, 120px); align-items: center; }
.login-intro { padding: 24px 0; }
.brand-lockup { display: flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 700; letter-spacing: .2px; }
.brand-lockup--light { color: var(--white); }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px 8px 8px 2px; background: #03371e; color: var(--navy-deep); font-weight: 800; position: relative; overflow: hidden; }
.brand-mark img { background: transparent; }
.brand-mark::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.25) 50%, transparent 60%); transform: translateX(-100%); animation: shimmer 3s ease-in-out infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.login-intro { background: var(--navy); color: var(--white); padding: 34px; border-radius: 10px; min-height: 480px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.login-intro::before { content: ''; position: absolute; top: -50%; right: -20%; width: 80%; height: 120%; background: radial-gradient(ellipse at center, rgba(3, 55, 30, 0.15) 0%, transparent 70%); pointer-events: none; }
.login-intro::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(3, 55, 30, 0.4), transparent); }
.eyebrow { margin: 48px 0 12px; color: #a9d8c6; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; }
.intro-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(186, 117, 23, 0.3); border-radius: 100px; padding: 8px 14px; font-size: 11px; font-weight: 600; letter-spacing: .3px; color: #f0e6d2; max-width: fit-content; backdrop-filter: blur(10px); }
.badge-icon { width: 16px; height: 16px; color: var(--gold); filter: drop-shadow(0 0 4px rgba(186, 117, 23, 0.5)); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 550px; margin-bottom: 18px; font-size: clamp(29px, 4.3vw, 52px); line-height: 1.04; letter-spacing: -.6px; position: relative; z-index: 1; }
.intro-copy { max-width: 480px; color: #d9e4e6; line-height: 1.7; font-size: 14px; position: relative; z-index: 1; }
.intro-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 35px; position: relative; z-index: 1; }
.intro-points span { border: 1px solid rgba(255,255,255,.26); padding: 7px 10px; border-radius: 100px; color: #e5efe8; font-size: 11px; background: rgba(255,255,255,.05); transition: all 0.2s ease; }
.intro-points span:hover { border-color: var(--gold); background: rgba(186, 117, 23, 0.15); transform: translateY(-1px); }
.intro-trust { display: flex; align-items: center; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); position: relative; z-index: 1; }
.trust-label { font-size: 11px; color: #9ab0b5; font-weight: 500; }
.trust-indicators { display: flex; gap: 6px; }
.trust-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #e8b440); box-shadow: 0 0 8px rgba(186, 117, 23, 0.5); animation: pulse 2s ease-in-out infinite; }
.trust-dot:nth-child(2) { animation-delay: 0.3s; }
.trust-dot:nth-child(3) { animation-delay: 0.6s; }
@keyframes pulse { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }
.login-panel { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(25px, 4vw, 42px); box-shadow: var(--shadow); position: relative; }
.login-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--emerald), var(--gold), var(--emerald)); border-radius: 10px 10px 0 0; opacity: 0.6; }
.panel-heading { display: flex; align-items: center; gap: 8px; color: var(--emerald); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; margin-bottom: 26px; }
.status-dot { width: 7px; height: 7px; background: var(--emerald); border-radius: 50%; }
h2 { font-size: 27px; margin-bottom: 7px; color: var(--navy-deep); }
.muted, .login-note { color: var(--muted); font-size: 12px; line-height: 1.6; }
.login-form { display: grid; gap: 8px; margin-top: 27px; }
label { font-size: 11px; font-weight: 700; color: var(--ink); }
input { width: 100%; border: 1px solid #cdd0c9; background: #fff; border-radius: 5px; padding: 10px 11px; outline: none; color: var(--ink); font-size: 12px; margin-bottom: 9px; }
input:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-soft); }
.button { border: 0; border-radius: 5px; padding: 11px 14px; cursor: pointer; font-size: 12px; font-weight: 700; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--emerald); color: #fff; }
.button--primary:hover { background: #0b5b47; }
.button--full { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 5px; }
.button--small { padding: 7px 11px; font-size: 11px; }
.button--danger { background: var(--danger); color: #fff; }
.button--danger:hover { background: #8a352d; }
.action-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.compact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.split-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 15px; }
.form-section { min-width: 0; }
.table-section { min-width: 0; }
.scrollable-table { max-height: 300px; overflow-y: auto; }
.scrollable-table tbody tr:nth-child(n+6) { border-top: 1px solid var(--line); }
.scrollable-dashboard { max-height: calc(100vh - 120px); overflow-y: auto; }

/* Setup checklist styles */
.setup-checklist { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.setup-item { display: flex; gap: 12px; align-items: flex-start; }
.setup-indicator { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.setup-indicator--pending { border: 2px solid var(--muted); color: var(--muted); }
.setup-indicator--complete { background: var(--emerald); color: #fff; }
.setup-item strong { display: block; margin-bottom: 4px; font-size: 13px; }
.setup-item p { margin: 0; margin-bottom: 8px; }
.setup-item .button { margin-top: 4px; }
.login-note { margin: 20px 0 0; text-align: center; font-size: 11px; }
.alert { padding: 10px 12px; border-radius: 5px; font-size: 11px; margin-top: 18px; }
.alert--error { background: #f8e5e2; color: var(--danger); border: 1px solid #edc5c0; }
.alert--success { background: var(--emerald-soft); color: var(--emerald); border: 1px solid #a9d8c6; }
.site-footer { color: var(--muted); font-size: 11px; }
.site-footer--login { padding: 0 6vw 22px; text-align: center; }
.site-footer span { padding: 0 5px; color: var(--gold); }
.site-footer a { color: var(--muted); text-decoration: none; transition: color 0.15s ease; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }

/* The shell is exactly one screen tall; the main column scrolls inside it so
   nothing is clipped off the bottom of the viewport. */
.admin-layout { height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); overflow: hidden; }
.sidebar { background: var(--navy-deep); color: #dce8e8; padding: 22px 14px; display: flex; flex-direction: column; height: 100vh; overflow-y: auto; overflow-x: hidden; }
.sidebar .brand-lockup { padding: 0 10px 28px; }
.sidebar .brand-mark { background: transparent; }
.sidebar .brand-mark img { display: block; width: 31px; height: auto; }
.brand-mark img { background: transparent; }
.side-label { padding: 15px 10px 7px; color: #86b4bb; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.side-nav { display: grid; gap: 3px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 5px; color: #c3d2d6; font-size: 12px; }
.nav-item:hover, .nav-item--active { background: rgba(255,255,255,.1); color: #fff; }
.nav-item--metallic {
    background: linear-gradient(135deg, #c9a227 0%, #a08015 100%);
    color: #000;
    border: 1px solid #e8c448;
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: metallic-pulse 2s ease-in-out infinite;
}
.nav-item--metallic:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 162, 39, 0.5);
}
@keyframes metallic-pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3); }
    50% { box-shadow: 0 4px 12px rgba(201, 162, 39, 0.5); }
}
/* Sidebar glyphs are inline SVG carrying a metallic gradient, so the colour
   comes from the <defs> in nav_icons.php rather than from `color`. */
.nav-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}
.nav-glyph {
    width: 18px;
    height: 18px;
    display: block;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45));
    transition: filter .18s ease, transform .18s ease;
}
/* Lift and brighten the metal on hover and on the current page. */
.nav-item:hover .nav-glyph,
.nav-item--active .nav-glyph {
    transform: translateY(-1px);
    filter: drop-shadow(0 0 6px rgba(233, 197, 106, .45)) drop-shadow(0 1px 1px rgba(0, 0, 0, .5));
}
.nav-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    margin-left: 6px;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}
.badge { margin-left: 7px; background: var(--emerald); color: #fff; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 100px; }
.sidebar-bottom { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.14); }
.profile-mini { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.avatar { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); font-weight: 800; font-size: 11px; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-mini strong { display: block; color: white; font-size: 11px; }
.profile-mini span { color: #97b3b8; font-size: 10px; }
.logout { color: #a9d8c6; font-size: 11px; }
.main-content { min-width: 0; padding: 27px clamp(18px, 4vw, 52px); height: 100vh; overflow-y: auto; overflow-x: hidden; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 27px; }
.topbar-meta { display: flex; align-items: center; gap: 12px; }
.topbar h1 { color: var(--navy-deep); font-size: 27px; margin: 0 0 5px; letter-spacing: -.3px; }
.topbar p { margin: 0; color: var(--muted); font-size: 12px; }
.topbar-date { color: var(--muted); font-size: 11px; white-space: nowrap; padding-top: 6px; }
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.metric { background: var(--white); border: 1px solid var(--line); border-radius: 7px; padding: 16px; min-width: 0; }
.metric-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
.metric-icon { color: var(--emerald); font-size: 17px; }
.metric strong { display: block; margin: 11px 0 5px; color: var(--navy-deep); font-size: 27px; }
.metric small { color: var(--emerald); font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 15px; align-items: start; }
.content-card { background: var(--white); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.card-heading { display: flex; justify-content: space-between; align-items: center; padding: 16px 17px; border-bottom: 1px solid var(--line); }
.card-heading h2 { margin: 0; font-size: 15px; }
.card-link { color: var(--navy); font-size: 11px; font-weight: 700; }
.school-table { width: 100%; border-collapse: collapse; text-align: left; }
.school-table th, .school-table td { padding: 12px 17px; border-bottom: 1px solid #e9e9e2; font-size: 11px; }
.school-table th { color: var(--muted); font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: .4px; }
.school-table tr:last-child td { border-bottom: 0; }
.empty-state { display: block; padding: 8px 0; color: var(--muted); font-size: 11px; }
.activity-log-card { margin-top: 8px; }
.activity-table-wrap { overflow-x: auto; }
.activity-table { min-width: 760px; }
.activity-table td { vertical-align: top; }
.school-name { color: var(--navy-deep); font-weight: 700; }
.school-location { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; font-weight: 400; }
.pill { display: inline-block; padding: 4px 7px; border-radius: 100px; font-size: 10px; font-weight: 700; }
.pill--active { background: var(--emerald-soft); color: var(--emerald); }
.pill--review { background: var(--gold-soft); color: #8d5a10; }
.activity-list { padding: 5px 17px 10px; }
.activity { display: grid; grid-template-columns: 9px 1fr; gap: 11px; padding: 13px 0; border-bottom: 1px solid #e9e9e2; }
.activity:last-child { border-bottom: 0; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; background: var(--emerald); }
.activity-dot--gold { background: var(--gold); }
.activity p { margin: 0 0 4px; font-size: 11px; line-height: 1.45; }
.activity time { color: var(--muted); font-size: 10px; }
.quick-actions { display: grid; gap: 8px; padding: 15px 17px 18px; }
.action-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 5px; color: var(--navy-deep); font-size: 11px; font-weight: 700; }
.action-link:hover { border-color: var(--emerald); background: var(--emerald-soft); }
.action-link span { color: var(--emerald); font-size: 16px; }

.preset-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 17px 0; }
.preset-bar .muted { font-size: 10px; }
.preset-btn { background: transparent; border: 1px solid var(--line); border-radius: 5px; padding: 6px 10px; cursor: pointer; font-size: 10px; font-weight: 700; color: var(--navy-deep); }
.preset-btn:hover { background: var(--emerald-soft); color: var(--emerald); }
.plan-form { padding: 15px 17px 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label { font-size: 11px; font-weight: 700; color: var(--ink); }
.form-field input, .form-field select { width: 100%; padding: 8px 10px; border: 1px solid #cdd0c9; border-radius: 5px; font-size: 12px; outline: none; }
.form-field input:focus, .form-field select:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-soft); }
.form-field--checkbox { flex-direction: row; align-items: center; gap: 6px; }
.form-field--checkbox input { width: auto; }
.form-actions { display: flex; justify-content: flex-end; padding: 0 17px 18px; }
.form-section { padding: 0 17px 18px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.form-section-title { font-size: 12px; font-weight: 700; color: var(--navy-deep); margin: 0 0 15px; }
.form-section .muted { margin-bottom: 8px; }
.password-box { margin-top: 10px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; }
.password-box code { display: inline-block; margin: 4px 8px; padding: 4px 10px; background: var(--emerald-soft); border-radius: 4px; font-weight: 700; font-size: 13px; letter-spacing: 1px; }
.copy-btn { background: var(--navy); color: #fff; border: 0; border-radius: 4px; padding: 3px 8px; font-size: 9px; cursor: pointer; }

@media (max-width: 820px) {
    .login-shell { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
    .login-intro { min-height: 360px; padding: 26px; }
    .eyebrow { margin-top: 35px; }
    .intro-badge { font-size: 10px; padding: 6px 12px; }
    .trust-label { font-size: 10px; }
    .admin-layout { grid-template-columns: 1fr; height: auto; overflow-x: hidden; }
    .sidebar { padding: 13px 15px; height: auto; overflow-x: hidden; }
    .sidebar .brand-lockup { padding: 0 0 13px; }
    .side-label, .sidebar-bottom { display: none; }
    .side-nav { display: flex; overflow-x: auto; gap: 4px; }
    .nav-item { white-space: nowrap; padding: 8px 10px; }
    .main-content { padding-top: 21px; height: auto; overflow-x: hidden; }
    .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .topbar { display: block; }
    .topbar-date { margin-top: 8px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .school-table th:nth-child(3), .school-table td:nth-child(3) { display: none; }
    .metric strong { font-size: 23px; }
    .table-wrap { max-height: none; }
    .intro-trust { flex-direction: column; align-items: flex-start; gap: 6px; }
    .trust-indicators { gap: 4px; }
    .trust-dot { width: 6px; height: 6px; }
}

.plan-table td { vertical-align: middle; }
.scrollable-section { overflow-y: auto; max-height: calc(100vh - 120px); padding-bottom: 16px; }
.assistant { position: fixed; bottom: 20px; right: 20px; z-index: 9999; font-family: "Trebuchet MS", "Segoe UI", sans-serif; }
.assistant-toggle { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--emerald); color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 4px 16px rgba(15, 110, 86, 0.4); position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.assistant-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(15, 110, 86, 0.5); }
.assistant-toggle-badge { position: absolute; top: -4px; right: -4px; background: var(--gold); color: #fff; font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 100px; min-width: 18px; text-align: center; }
.assistant-panel { position: absolute; bottom: 62px; right: 0; width: 320px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.18); overflow: hidden; display: none; max-height: 480px; flex-direction: column; }
.assistant-panel.open { display: flex; }
.assistant-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 18px 10px; background: var(--navy); color: #fff; }
.assistant-header strong { font-size: 13px; }
.assistant-subtitle { margin: 2px 0 0; font-size: 10px; color: #a9d8c6; }
.assistant-close { background: none; border: 0; color: #dce8e8; font-size: 20px; cursor: pointer; line-height: 1; padding: 0; }
.assistant-close:hover { color: #fff; }
.assistant-steps { padding: 6px 12px 10px; overflow-y: auto; flex: 1; }
.assistant-step { display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-bottom: 1px solid var(--line); transition: background .15s ease; }
.assistant-step:last-child { border-bottom: 0; }
.assistant-step.checked { opacity: .65; }
.assistant-step.unlocked { background: var(--emerald-soft); }
.assistant-step-number { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); color: var(--muted); font-size: 10px; font-weight: 700; flex-shrink: 0; }
.assistant-step.checked .assistant-step-number { background: var(--emerald); color: #fff; }
.assistant-step-label { display: flex; align-items: center; gap: 6px; flex: 1; cursor: pointer; font-size: 12px; color: var(--ink); }
.assistant-check { display: none; }
.assistant-step-label .checkmark { font-size: 14px; color: var(--muted); width: 16px; text-align: center; flex-shrink: 0; transition: color .15s ease; }
.assistant-step.checked .assistant-step-label .checkmark { color: var(--emerald); }
.step-icon { font-size: 12px; }
.step-text { flex: 1; }
.assistant-step-link { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); color: var(--navy); font-size: 11px; font-weight: 700; text-decoration: none; flex-shrink: 0; transition: background .15s ease; }
.assistant-step-link:hover { background: var(--emerald); color: #fff; }
.assistant-progress { height: 4px; background: var(--paper); }
.assistant-progress-bar { height: 100%; background: var(--emerald); transition: width .3s ease; width: 0%; }
@media (max-width: 480px) { .assistant-panel { width: 280px; right: -40px; } }
.plan-name { color: var(--navy-deep); font-weight: 700; }
.table-wrap { overflow: auto; max-height: calc(100vh - 170px); }

[data-theme="dark"] {
    --paper: #0d1117;
    --white: #161b22;
    --ink: #e6edf3;
    --muted: #8b949e;
    --line: #30363d;
    --navy: #1a2744;
    --navy-deep: #0d1117;
    --emerald: #3fb950;
    --emerald-soft: #1a3a2a;
    --gold: #d4a030;
    --gold-soft: #3a2f14;
    --danger: #f85149;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .login-intro { background: var(--navy-deep); color: #e6edf3; }
[data-theme="dark"] .brand-lockup--light { color: #e6edf3; }
[data-theme="dark"] .login-intro .eyebrow { color: #8b949e; }
[data-theme="dark"] .intro-copy { color: #8b949e; }
[data-theme="dark"] .intro-badge { background: rgba(255,255,255,.05); border-color: rgba(212, 160, 48, 0.3); color: #f0e6d2; }
[data-theme="dark"] .badge-icon { color: var(--gold); }
[data-theme="dark"] .intro-points span { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.03); color: #e5efe8; }
[data-theme="dark"] .intro-points span:hover { border-color: var(--gold); background: rgba(212, 160, 48, 0.15); }
[data-theme="dark"] .intro-trust { border-top-color: rgba(255,255,255,.08); }
[data-theme="dark"] .trust-label { color: #8b949e; }
[data-theme="dark"] .trust-dot { background: linear-gradient(135deg, var(--gold), #e8b440); box-shadow: 0 0 8px rgba(212, 160, 48, 0.5); }
[data-theme="dark"] .login-panel { background: var(--white); }
[data-theme="dark"] .login-note { color: var(--muted); }

[data-theme="dark"] h2 { color: var(--ink); }
[data-theme="dark"] .topbar h1 { color: var(--ink); }
[data-theme="dark"] .card-heading h2 { color: var(--ink); }
[data-theme="dark"] .school-name { color: var(--ink); }
[data-theme="dark"] .plan-name { color: var(--ink); }
[data-theme="dark"] .form-section-title { color: var(--ink); }
[data-theme="dark"] .metric strong { color: var(--ink); }
[data-theme="dark"] .card-link { color: var(--emerald); }
[data-theme="dark"] .pill--review { background: var(--gold-soft); color: var(--gold); }
[data-theme="dark"] .action-link { color: var(--ink); }
[data-theme="dark"] .preset-btn { color: var(--ink); border-color: var(--line); }
[data-theme="dark"] input { background: var(--white); border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .password-box { background: var(--white); border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .alert--success { border-color: var(--emerald); }
[data-theme="dark"] .school-table th, [data-theme="dark"] .school-table td { border-bottom-color: var(--line); }
[data-theme="dark"] .form-field input, .form-field select { background: var(--white); border-color: var(--line); color: var(--ink); }

html[data-font-size="small"] { font-size: 12px; }
html[data-font-size="large"] { font-size: 15px; }

html[data-dense="yes"] .metric { padding: 10px; }
html[data-dense="yes"] .card-heading { padding: 12px 14px; }
html[data-dense="yes"] .activity { padding: 8px 0; }
html[data-dense="yes"] .nav-item { padding: 7px 10px; }
html[data-dense="yes"] .form-grid { gap: 10px; }
html[data-dense="yes"] .form-section { padding: 0 14px 14px; }
html[data-dense="yes"] .form-actions { padding: 0 14px 14px; }
html[data-dense="yes"] .plan-form { padding: 12px 14px 14px; }
html[data-dense="yes"] .quick-actions { padding: 12px 14px 14px; }
html[data-dense="yes"] .activity-list { padding: 4px 14px 8px; }
html[data-dense="yes"] .preset-bar { padding: 0 14px 0; }
html[data-dense="yes"] .school-table th, html[data-dense="yes"] .school-table td { padding: 8px 14px; }
html[data-dense="yes"] .login-shell { padding: 20px 5vw; gap: 14px; }
html[data-dense="yes"] .login-intro { padding: 20px; min-height: 400px; }

html[data-show-border-radius="no"] .content-card { border-radius: 0; }
html[data-show-border-radius="no"] .button { border-radius: 0; }
html[data-show-border-radius="no"] .nav-item { border-radius: 0; }
html[data-show-border-radius="no"] .metric { border-radius: 0; }
html[data-show-border-radius="no"] .pill { border-radius: 0; }
html[data-show-border-radius="no"] .action-link { border-radius: 0; }
html[data-show-border-radius="no"] .preset-btn { border-radius: 0; }
html[data-show-border-radius="no"] .alert { border-radius: 0; }
html[data-show-border-radius="no"] .login-panel { border-radius: 0; }
html[data-show-border-radius="no"] .login-intro { border-radius: 0; }