/* Courses APP yönetim paneli — tasarım sistemi (stitch "Modern Language Academy Operations").
   Sayfalar çoğunlukla çıplak öğe (h1, table, label, button…) ve az sayıda sınıf kullanır;
   görünüm bu dosyadaki token'lardan gelir. Koyu tema aynı token'ları yeniden tanımlar. */

:root {
    --primary: #fb923c;
    --primary-hover: #f97316;
    --primary-strong: #c2410c;
    --primary-soft: #fff7ed;
    --secondary: #6366f1;
    --secondary-soft: #eef2ff;
    --secondary-strong: #3730a3;
    --bg: #fdfcfb;
    --fg: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --card: #ffffff;
    --surface: #f8fafc;
    --ok-bg: #ecfdf5; --ok-fg: #065f46; --ok-border: #a7f3d0;
    --warn-bg: #fffbeb; --warn-fg: #92400e; --warn-border: #fde68a;
    --bad-bg: #fef2f2; --bad-fg: #991b1b; --bad-border: #fecaca;
    --radius: .75rem;
    --radius-sm: .5rem;
    --shadow-1: 0 1px 3px rgba(15, 23, 42, .04), 0 1px 2px rgba(15, 23, 42, .02);
    --shadow-2: 0 4px 6px -1px rgba(15, 23, 42, .06), 0 2px 4px -2px rgba(15, 23, 42, .04);
    --shadow-3: 0 10px 15px -3px rgba(15, 23, 42, .08), 0 4px 6px -4px rgba(15, 23, 42, .04);
    --sidebar-w: 260px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-soft: #3b2412;
        --primary-strong: #fdba74;
        --secondary-soft: #25274d;
        --secondary-strong: #c7d2fe;
        --bg: #0b1120;
        --fg: #e2e8f0;
        --muted: #94a3b8;
        --border: #263247;
        --card: #111a2e;
        --surface: #16213a;
        --ok-bg: #0f2a22; --ok-fg: #6ee7b7; --ok-border: #14532d;
        --warn-bg: #2b2210; --warn-fg: #fcd34d; --warn-border: #78350f;
        --bad-bg: #2d1416; --bad-fg: #fca5a5; --bad-border: #7f1d1d;
        --shadow-1: 0 1px 3px rgba(0, 0, 0, .3);
        --shadow-2: 0 4px 6px -1px rgba(0, 0, 0, .35);
        --shadow-3: 0 10px 15px -3px rgba(0, 0, 0, .45);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 2px solid var(--primary); outline-offset: 2px; border-radius: .35rem;
}

/* ---------- Uygulama iskeleti: sabit sol menü + üst çubuk + içerik ---------- */
.app { display: flex; min-height: 100vh; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-scrim { display: none; }
.menu-btn { display: none; }

.sidebar {
    flex: 0 0 var(--sidebar-w); width: var(--sidebar-w);
    position: sticky; top: 0; align-self: flex-start; height: 100vh;
    display: flex; flex-direction: column; gap: .15rem; padding: 1rem .75rem;
    background: var(--card); border-right: 1px solid var(--border);
    overflow-y: auto; scrollbar-width: thin;
}
.side-brand { display: flex; align-items: center; gap: .7rem; padding: .25rem .5rem 1rem; text-decoration: none; color: var(--fg); }
.side-brand:hover { text-decoration: none; }
.brand-mark {
    display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none;
    background: var(--primary); color: #fff; border-radius: .65rem;
    box-shadow: 0 4px 10px -3px rgba(251, 146, 60, .6);
}
.brand-mark svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-size: .7rem; font-weight: 500; color: var(--muted); }
.brand { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; color: var(--fg); }
.brand span { color: var(--primary); }

.sidebar .ico { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: currentColor;
                stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.sidebar .nav-top, .sidebar summary {
    display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: var(--radius-sm);
    color: var(--muted); font-weight: 600; font-size: .9rem; text-decoration: none;
    cursor: pointer; user-select: none; transition: background .15s, color .15s;
}
.sidebar .nav-top:hover, .sidebar summary:hover { background: var(--surface); color: var(--fg); text-decoration: none; }
.sidebar .nav-top.active { background: var(--primary-soft); color: var(--primary-strong); }
.sidebar .nav-top.active .ico { color: var(--primary); }

.sidebar summary { list-style: none; }
.sidebar summary::-webkit-details-marker { display: none; }
.sidebar summary span { flex: 1; }
.sidebar summary::after {
    content: ""; width: .4rem; height: .4rem; margin-right: .2rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(-45deg); opacity: .5; transition: transform .25s ease;
}
.sidebar details[open] > summary { color: var(--fg); }
.sidebar details[open] > summary .ico { color: var(--primary); }
.sidebar details[open] > summary::after { transform: rotate(45deg); opacity: .8; }

/* Yumuşak açılma (destekleyen tarayıcılarda; diğerlerinde anında açılır). */
.sidebar { interpolate-size: allow-keywords; }
.sidebar details::details-content { block-size: 0; overflow: hidden; transition: block-size .25s ease, content-visibility .25s allow-discrete; }
.sidebar details[open]::details-content { block-size: auto; }

.sidebar .items { display: flex; flex-direction: column; gap: .1rem; margin: .1rem 0 .5rem 1.45rem; padding-left: .6rem; border-left: 1.5px solid var(--border); }
.sidebar .items a {
    position: relative; display: block; padding: .4rem .7rem; border-radius: var(--radius-sm);
    color: var(--muted); text-decoration: none; font-weight: 500; font-size: .86rem;
    transition: background .15s, color .15s;
}
.sidebar .items a:hover { color: var(--fg); background: var(--surface); }
.sidebar .items a.active { color: var(--primary-strong); background: var(--primary-soft); font-weight: 600; }
.sidebar .items a.active::before {
    content: ""; position: absolute; left: calc(-.6rem - 1.5px); top: .35rem; bottom: .35rem;
    width: 3px; border-radius: 3px; background: var(--primary);
}

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: flex-end; gap: 1rem;
    min-height: 3.75rem; padding: .6rem 2rem; background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.userbox { margin-left: auto; display: flex; align-items: center; gap: .75rem; font-size: .85rem; color: var(--muted); }
.userbox form { display: contents; }
.avatar {
    display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; flex: none; border-radius: 50%;
    background: var(--primary-soft); color: var(--primary-strong); font-weight: 700; font-size: .8rem;
}
.userbox .who { color: var(--fg); font-weight: 600; }

main { flex: 1; width: 100%; max-width: 1600px; margin: 0 auto; padding: 1.75rem 2rem 4rem; }

/* ---------- Tipografi ---------- */
h1 { font-size: 1.5rem; line-height: 2rem; font-weight: 700; letter-spacing: -.015em; margin: 0 0 .5rem; }
h2 { font-size: 1.1rem; line-height: 1.6rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 1rem; }
h3 { font-size: 1rem; font-weight: 600; margin: 0 0 .35rem; }
.lead { color: var(--muted); margin: 0 0 1.5rem; font-size: 1rem; }
.hint { color: var(--muted); }
small { color: var(--muted); }
code { background: var(--surface); border: 1px solid var(--border); padding: .1rem .4rem; border-radius: .35rem; font-size: .8rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ---------- Kartlar ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.card {
    display: block; padding: 1.25rem; background: var(--card); color: inherit;
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1);
    text-decoration: none; transition: box-shadow .15s, border-color .15s, transform .15s;
}
a.card:hover { border-color: var(--primary); box-shadow: var(--shadow-2); text-decoration: none; transform: translateY(-1px); }
.card h3 { display: flex; align-items: center; gap: .6rem; }
.card p { margin: 0; color: var(--muted); font-size: .85rem; }
.card.muted { opacity: .5; }
.card .card-ico {
    display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .6rem;
    background: var(--primary-soft); color: var(--primary); flex: none;
}
.card .card-ico svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(3n+2) .card-ico { background: var(--secondary-soft); color: var(--secondary); }
.card:nth-child(3n) .card-ico { background: var(--ok-bg); color: #10b981; }

.hero { margin-bottom: 1.5rem; }
.hero h1 { font-size: 1.75rem; }

/* ---------- Tablolar ---------- */
table {
    width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card);
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden;
    margin-bottom: 1.5rem;
}
th, td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--border); font-size: .875rem; vertical-align: middle; }
th { background: var(--surface); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: color-mix(in srgb, var(--primary) 5%, var(--card)); }
tbody tr:last-child td { border-bottom: none; }
td .actions, td form { margin: 0; }

/* ---------- Formlar ---------- */
.toolbar { margin: 1rem 0 1.5rem; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
label {
    display: flex; flex-direction: column; gap: .35rem; font-size: .72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
}
input, select, textarea {
    font: inherit; font-size: .9rem; text-transform: none; letter-spacing: 0; font-weight: 400;
    color: var(--fg); background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: .55rem .8rem; min-height: 2.375rem;
}
textarea { min-height: 5rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(251, 146, 60, .18);
}
input[type=checkbox], input[type=radio] { min-height: 0; accent-color: var(--primary); }
.form {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-1); padding: 1.25rem 1.5rem; margin: 0 0 1.5rem;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }

button {
    font: inherit; font-size: .875rem; font-weight: 600; color: #fff; background: var(--primary);
    border: 1px solid transparent; border-radius: var(--radius-sm); padding: .55rem 1.1rem; min-height: 2.375rem;
    cursor: pointer; transition: background .15s, transform .05s, box-shadow .15s;
}
button:hover { background: var(--primary-hover); }
button:active { transform: scale(.98); }
button:disabled { opacity: .6; cursor: progress; }
button.secondary { background: var(--card); color: var(--fg); border-color: var(--border); }
button.secondary:hover { background: var(--surface); }
button.link { background: none; color: var(--secondary); padding: .25rem .5rem; min-height: 0; font-weight: 600; }
button.link:hover { background: none; text-decoration: underline; }
td button, .actions button { padding: .3rem .75rem; min-height: 0; font-size: .8rem; }

a.button {
    display: inline-block; padding: .4rem .9rem; background: var(--primary); color: #fff;
    border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; font-size: .85rem;
}
a.button:hover { background: var(--primary-hover); text-decoration: none; }

/* ---------- Bildirimler ve rozetler ---------- */
.notice { padding: .85rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: .875rem;
          background: var(--surface); border: 1px solid var(--border); }
.notice.success { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok-fg); }
.notice.error { background: var(--bad-bg); border-color: var(--bad-border); color: var(--bad-fg); }
.notice.warning { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-fg); }
.secret { margin: .75rem 0 .5rem; font-size: 1.1rem; }
.secret code { font-size: 1.15rem; padding: .3rem .7rem; user-select: all; }

.badge {
    display: inline-flex; align-items: center; padding: .15rem .55rem; border-radius: 999px;
    font-size: .72rem; font-weight: 600; border: 1px solid transparent;
}
.badge.ok { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-border); }
.badge.off { background: var(--surface); color: var(--muted); border-color: var(--border); }
.badge.warn { background: var(--bad-bg); color: var(--bad-fg); border-color: var(--bad-border); }
.validation-message { color: var(--bad-fg); font-size: .75rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
.err { color: var(--bad-fg); font-size: .8rem; }
.warn-text { color: var(--warn-fg); font-size: .8rem; }

.actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.actions-bar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.block { margin: 0 0 2rem; }
.block h2 small { display: block; margin-top: .25rem; font-size: .8rem; font-weight: 400; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem; }
.stack button { margin-top: .5rem; min-height: 2.75rem; }
.center { text-align: center; margin-top: 1rem; }
label.check { flex-direction: row; align-items: center; gap: .6rem; text-transform: none; letter-spacing: 0;
              font-size: .9rem; font-weight: 500; color: var(--fg); margin: .5rem 0 1rem; }
label.check input { width: auto; }

/* ---------- Excel aktarma ---------- */
.steps { padding-left: 1.25rem; line-height: 1.7; }
.steps li { margin-bottom: .75rem; }
.upload { margin-top: .5rem; }
.summary { display: flex; gap: 1.5rem; margin: 1rem 0; font-size: 1rem; }
.summary .ok { color: var(--ok-fg); } .summary .bad { color: var(--bad-fg); } .summary .warn { color: var(--warn-fg); }
tr.invalid td { background: var(--bad-bg); }

/* ---------- Sayfa bileşenleri (stitch ekranlarından ortak parçalar) ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { margin: 0; }
.page-head .lead { margin: .25rem 0 0; font-size: .9rem; }
.page-head .head-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 1rem 1.25rem; }
.stat .stat-label { display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.stat .stat-value { display: block; margin-top: .25rem; font-size: 1.6rem; line-height: 2rem; font-weight: 700; letter-spacing: -.015em; }
.stat .stat-note { display: block; margin-top: .25rem; font-size: .78rem; color: var(--muted); }
.stat.accent { border-left: 3px solid var(--primary); }
.stat.indigo { border-left: 3px solid var(--secondary); }

.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 1.25rem; margin-bottom: 1.5rem; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel-head h2, .panel-head h3 { margin: 0; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; padding: .85rem 1rem; margin-bottom: 1rem;
              background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.filter-bar label { flex: 1 1 11rem; }
.filter-bar .grow { flex: 2 1 16rem; }

.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 500;
        background: var(--secondary-soft); color: var(--secondary-strong); border: 1px solid transparent; }
.chip.orange { background: var(--primary-soft); color: var(--primary-strong); }
.chip.green { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-border); }
.chip.amber { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-border); }
.chip.red { background: var(--bad-bg); color: var(--bad-fg); border-color: var(--bad-border); }
.chip.gray { background: var(--surface); color: var(--muted); border-color: var(--border); }

.tabs { display: inline-flex; gap: .25rem; padding: .25rem; margin-bottom: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); flex-wrap: wrap; }
.tab { padding: .4rem .9rem; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none; background: none; border: 0; min-height: 0; cursor: pointer; }
.tab:hover { color: var(--fg); background: none; text-decoration: none; }
.tab.active { background: var(--card); color: var(--primary-strong); box-shadow: var(--shadow-1); }

.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.segmented button { background: var(--card); color: var(--muted); border: 0; border-radius: 0; border-right: 1px solid var(--border); min-height: 0; padding: .3rem .75rem; font-size: .8rem; }
.segmented button:last-child { border-right: 0; }
.segmented button:hover { background: var(--surface); }
.segmented button.on-ok { background: var(--ok-bg); color: var(--ok-fg); }
.segmented button.on-bad { background: var(--bad-bg); color: var(--bad-fg); }
.segmented button.on-warn { background: var(--warn-bg); color: var(--warn-fg); }

.person { display: flex; align-items: center; gap: .65rem; }
.person .meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.person .meta small { font-size: .75rem; }
.avatar.lg { width: 3rem; height: 3rem; font-size: 1rem; }
.avatar.indigo { background: var(--secondary-soft); color: var(--secondary-strong); }
img.avatar { object-fit: cover; padding: 0; }

.split { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.card-grid > .panel { margin-bottom: 0; }

.empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 0; }
.kv dt { color: var(--muted); font-size: .8rem; }
.kv dd { margin: 0; font-weight: 500; }

@media (max-width: 1100px) {
    .split, .cols-2, .cols-3 { grid-template-columns: 1fr; }
}

/* ---------- Giriş / şifre sayfaları (EmptyLayout) ---------- */
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-aside {
    position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 3rem;
    color: #fff; background: linear-gradient(160deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%); overflow: hidden;
}
.auth-aside::after {
    content: ""; position: absolute; right: -8rem; bottom: -8rem; width: 26rem; height: 26rem; border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 146, 60, .45), transparent 65%); pointer-events: none;
}
.auth-aside .side-brand { padding: 0; color: #fff; }
.auth-aside .brand { color: #fff; font-size: 1.4rem; }
.auth-aside .brand-text small { color: #c7d2fe; }
.auth-aside h2 { font-size: 2rem; line-height: 2.5rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 1rem; max-width: 24rem; }
.auth-aside p { margin: 0; color: #c7d2fe; font-size: 1rem; max-width: 26rem; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; position: relative; z-index: 1; }
.auth-points li { display: flex; align-items: center; gap: .7rem; color: #e0e7ff; font-size: .9rem; }
.auth-points svg { width: 1.2rem; height: 1.2rem; flex: none; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-aside > div { position: relative; z-index: 1; }
main.auth { display: grid; place-items: center; padding: 2rem; max-width: none; margin: 0; min-height: 100vh; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .brand { display: none; }
.auth-card h1 { font-size: 1.75rem; line-height: 2.25rem; font-weight: 700; margin-bottom: .5rem; }
.auth-card .stack input { min-height: 2.75rem; }
.auth-card .stack button { font-size: 1rem; box-shadow: 0 4px 12px -4px rgba(251, 146, 60, .7); }
.auth-foot { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .78rem; color: var(--muted); }

/* ---------- Duyarlı ---------- */
@media (max-width: 1100px) {
    .menu-btn {
        display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; cursor: pointer;
        border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: var(--fg);
    }
    .menu-btn svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
    .topbar { padding: .6rem 1rem; justify-content: space-between; }
    .sidebar {
        position: fixed; z-index: 40; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease;
        box-shadow: var(--shadow-3);
    }
    .nav-toggle:checked ~ .sidebar { transform: none; }
    .nav-toggle:checked ~ .nav-scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(15, 23, 42, .4); }
    .nav-toggle:focus-visible ~ .content .menu-btn { outline: 2px solid var(--primary); outline-offset: 2px; }
    main { padding: 1.25rem 1rem 3rem; }
    table { display: block; overflow-x: auto; }
}

@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-card .brand { display: inline-block; margin-bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
