:root { font-family: Segoe UI, Tahoma, sans-serif; }
* { box-sizing: border-box; }
html[data-theme=dark] { --bg:#111a29; --surface:#1a2638; --surface-2:#243247; --text:#f2f6fc; --muted:#b7c3d2; --border:#34455b; --gold:#e0aa21; --gold-soft:#3c321c; --danger:#e35a64; --shadow:0 12px 30px #050b1680; color-scheme:dark; }
html[data-theme=light] { --bg:#f7f9fc; --surface:#fff; --surface-2:#f2f5f9; --text:#0c192d; --muted:#61718a; --border:#e1e7ef; --gold:#d49909; --gold-soft:#fff4d8; --danger:#c52c39; --shadow:0 10px 28px #2130480a; color-scheme:light; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.55 Segoe UI,Tahoma,sans-serif; }
a { color:inherit; text-decoration:none; } button,input,select,textarea { font:inherit; } button { cursor:pointer; }
:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }
.app-shell { display:flex; min-height:100vh; }
.sidebar { width:258px; flex:none; background:var(--surface); border-inline-end:1px solid var(--border); padding:22px 14px; position:sticky; top:0; height:100vh; overflow:auto; }
.brand { display:flex; align-items:center; gap:11px; padding:0 8px 22px; border-bottom:1px solid var(--border); font-size:1.18rem; font-weight:750; letter-spacing:-.02em; }
.brand-mark { width:38px; height:38px; border-radius:11px; display:grid; place-items:center; background:var(--gold-soft); color:var(--gold); font-size:1.5rem; }
.brand-mark svg { width:27px; height:27px; }
.user-card { display:flex; align-items:center; gap:11px; margin:22px 0 18px; padding:12px; background:var(--surface-2); border:1px solid var(--border); border-radius:15px; min-width:0; }
.user-card>span:last-child { display:grid; min-width:0; }
.user-card strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.93rem; }
.user-card small,.muted { color:var(--muted); }
.user-avatar { width:40px; height:40px; object-fit:cover; border-radius:50%; flex:none; }
.user-avatar-fallback { display:grid; place-items:center; background:var(--gold-soft); color:var(--gold); font-weight:700; }
.sidebar nav { display:grid; gap:4px; }
.sidebar nav a,.nav-logout { display:flex; align-items:center; gap:12px; width:100%; text-align:start; padding:10px 12px; border:0; border-radius:12px; background:transparent; color:var(--muted); font-weight:600; }
.nav-icon { display:grid; place-items:center; width:31px; height:31px; flex:none; border-radius:9px; background:var(--surface-2); color:var(--muted); font-size:1.2rem; font-weight:500; }
.sidebar nav a.active,.sidebar nav a:hover,.nav-logout:hover { background:var(--gold-soft); color:var(--text); }
.sidebar nav a.active .nav-icon,.sidebar nav a:hover .nav-icon { background:var(--gold); color:#172238; }
.nav-logout { margin-top:20px; color:var(--danger); }
.main-area { min-width:0; flex:1; }
.topbar { min-height:76px; background:var(--surface); display:flex; justify-content:space-between; align-items:center; padding:12px 36px; border-bottom:1px solid var(--border); gap:20px; }
.topbar-title { display:grid; line-height:1.2; }
.topbar-title span { color:var(--muted); font-size:.77rem; font-weight:650; letter-spacing:.04em; }
.topbar-title strong { font-size:1.1rem; }
.topbar-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; font-size:.88rem; }
.language-switch { display:flex; gap:3px; padding:4px; background:var(--surface-2); border:1px solid var(--border); border-radius:11px; }
.language-switch a { min-width:34px; padding:5px 7px; border-radius:8px; text-align:center; color:var(--muted); font-weight:700; }
.language-switch a.selected { background:var(--surface); color:var(--text); box-shadow:0 1px 4px #0001; }
.theme-toggle,.read-only-badge { padding:8px 12px; border:1px solid var(--border); border-radius:10px; color:var(--muted); }
.theme-toggle:hover { border-color:var(--gold); color:var(--text); }
.page-content { max-width:1320px; margin:auto; padding:34px 36px 70px; }
h1 { font-size:clamp(1.8rem,3vw,2.45rem); line-height:1.25; margin:0 0 14px; letter-spacing:-.025em; }
.page-content>h1 { margin-bottom:24px; }
h2 { margin:32px 0 16px; font-size:1.38rem; line-height:1.3; }
h3 { margin:0 0 8px; font-size:1.12rem; }
p { margin:0 0 14px; }
.home-hero { display:grid; grid-template-columns:minmax(0,1fr) 41%; min-height:240px; overflow:hidden; border:1px solid var(--border); border-radius:22px; background:var(--surface); box-shadow:var(--shadow); }
.home-hero-copy { display:flex; flex-direction:column; justify-content:center; align-items:flex-start; padding:32px 38px; }
.home-hero .eyebrow { display:inline-block; margin-bottom:14px; padding:5px 10px; border-radius:8px; background:var(--gold-soft); color:var(--gold); font-size:.83rem; font-weight:750; }
.home-hero h1 { margin:0 0 10px; }
.home-hero p { color:var(--muted); margin:0; }
.home-hero img { width:100%; height:100%; min-height:240px; object-fit:cover; }
.card,.list-card { background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:22px; box-shadow:var(--shadow); }
.card .card { box-shadow:none; background:var(--surface-2); }
.card h2:first-child,.card h3:first-child { margin-top:0; }
.card>p:last-child { margin-bottom:0; }
.page-content>section.card+section.card { margin-top:18px; }
.quick-grid,.stats,.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:16px; }
.grid>.card { display:flex; flex-direction:column; gap:10px; }
.grid>.card h2,.grid>.card p { margin:0; }
.grid>.card .actions { margin-top:auto; padding-top:12px; }
.quick-grid a { min-height:92px; display:flex; align-items:center; justify-content:space-between; gap:12px; font-weight:700; font-size:1.04rem; }
.quick-grid a::after { content:'↗'; display:grid; place-items:center; width:32px; height:32px; border-radius:9px; background:var(--gold-soft); color:var(--gold); font-size:1rem; }
.quick-grid a:hover,.list-card:is(a):hover { border-color:var(--gold); transform:translateY(-2px); }
.stats .card { min-height:114px; border-top:3px solid var(--gold); }
.stats .stat-featured { background:var(--gold-soft); border-color:var(--gold); }
.stats strong { display:block; color:var(--text); font-size:1.8rem; line-height:1.3; overflow-wrap:anywhere; }
.stats span { display:block; margin-top:5px; color:var(--muted); font-size:.89rem; }
.list-card { display:flex; justify-content:space-between; gap:14px; margin:12px 0; align-items:center; transition:border-color .15s,transform .15s; }
.list-card strong { display:block; font-size:1.03rem; }
.list-card small { display:block; color:var(--muted); margin-top:4px; }
.toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; margin:0 0 24px; }
.toolbar h1,.toolbar h2 { margin:0; }
.toolbar input:not([type=checkbox]) { width:min(100%,340px); }
.toolbar select { width:auto; min-width:160px; }
.actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.primary,.secondary,.danger { display:inline-flex; justify-content:center; align-items:center; min-height:44px; border:1px solid transparent; border-radius:11px; padding:9px 17px; font-weight:700; transition:background .15s,border-color .15s,transform .15s; }
.primary { background:var(--gold); color:#172238; box-shadow:0 5px 14px #d4990926; }
.primary:hover { background:#c38a05; }
.secondary { background:var(--surface); color:var(--text); border-color:var(--border); }
.secondary:hover { border-color:var(--gold); color:var(--text); }
.danger { background:var(--danger); color:#fff; }
.danger:hover { filter:brightness(.92); }
button:disabled { opacity:.5; cursor:wait; }
input:not([type=checkbox]),select,textarea { display:block; width:100%; min-height:46px; border:1px solid var(--border); border-radius:11px; padding:10px 12px; background:var(--surface); color:var(--text); }
input[type=checkbox] { accent-color:var(--gold); width:18px; height:18px; }
input:focus,select:focus,textarea:focus { outline:2px solid var(--gold); outline-offset:1px; }
textarea { resize:vertical; }
label { display:grid; gap:7px; margin:8px 0; color:var(--muted); font-size:.91rem; font-weight:650; }
label.check { display:flex; align-items:center; gap:8px; color:var(--text); }
.form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:12px 20px; }
.form-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.alert,.notice { padding:13px 16px; margin:16px 0; border-radius:12px; font-weight:550; }
.alert { background:#d33b451a; border:1px solid var(--danger); }
.notice { background:var(--gold-soft); border:1px solid var(--gold); }
.table-wrap { overflow:auto; border:1px solid var(--border); border-radius:17px; margin:16px 0 28px; background:var(--surface); box-shadow:var(--shadow); }
.finance-table-scroll { max-height:390px; }
.finance-table-scroll th { position:sticky; top:0; z-index:1; }
table { width:100%; border-collapse:collapse; min-width:680px; }
th,td { padding:13px 16px; text-align:start; border-bottom:1px solid var(--border); }
th { background:var(--surface-2); color:var(--muted); font-size:.85rem; font-weight:700; white-space:nowrap; }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover { background:var(--gold-soft); }
td a { color:var(--gold); font-weight:700; }
.empty-state { padding:35px 20px; border:1px dashed var(--border); border-radius:16px; background:var(--surface); color:var(--muted); text-align:center; }
.status-pill { display:inline-flex; width:max-content; padding:4px 10px; border-radius:999px; background:var(--surface-2); color:var(--muted); font-size:.82rem; font-weight:700; }
.status-active { background:#e1f5eb; color:#18764a; }
.status-inactive { background:#fde8ea; color:#b12332; }
.page-content.login-content { max-width:none; padding:0; }
.auth-wrap { min-height:100svh; display:grid; place-items:center; background:#f8fafc; color:#0c192d; color-scheme:light; }
.auth-panel { width:min(100%,520px); padding:36px 24px 28px; }
.auth-brand { text-align:center; margin-bottom:38px; }
.auth-mark { width:80px; height:80px; margin:0 auto 20px; border-radius:20px; background:#f9ebc8; color:#d49909; display:grid; place-items:center; }
.auth-mark svg { width:52px; height:52px; }
.auth-brand h1 { margin:0; font-size:clamp(1.9rem,5vw,2.35rem); font-weight:700; letter-spacing:-.025em; }
.auth-brand h1:focus { outline:none; }
.auth-brand p { margin:18px 0 0; color:#536177; font-size:1rem; }
.auth-form { display:grid; gap:22px; }
.auth-field { display:grid; gap:10px; }
.auth-field label { display:block; margin:0; color:#536177; font-weight:500; }
.auth-input { min-height:60px; display:flex; align-items:center; gap:14px; padding:0 16px; border:1px solid #cbd5e1; border-radius:14px; background:#fff; box-shadow:0 2px 5px #0c192d06; color:#51647e; }
.auth-input:focus-within { border-color:#d49909; box-shadow:0 0 0 3px #d4990933; }
.auth-input>svg { width:22px; height:22px; flex:none; }
.auth-input input:not([type=checkbox]),.auth-input select { min-width:0; min-height:58px; flex:1; padding:0; border:0; outline:0; background:transparent; color:#0c192d; box-shadow:none; }
.auth-input input:focus,.auth-input select:focus { outline:0; }
.password-toggle { border:0; background:transparent; color:#51647e; width:38px; height:38px; padding:8px; display:grid; place-items:center; border-radius:8px; }
.password-toggle:hover,.password-toggle:focus-visible { background:#f1f5f9; color:#8a6204; }
.password-toggle svg { width:22px; height:22px; }
.remember-row { display:flex; align-items:center; gap:10px; margin:0; cursor:pointer; color:#0c192d; }
.remember-row input { width:20px; height:20px; margin:0; accent-color:#d49909; cursor:pointer; }
.auth-select select { appearance:none; cursor:pointer; }
.auth-select .select-chevron { width:18px; height:18px; pointer-events:none; }
.auth-submit { min-height:60px; border:0; border-radius:14px; background:#d49909; color:#172238; font-weight:700; font-size:1.08rem; display:flex; align-items:center; justify-content:center; gap:11px; margin-top:4px; box-shadow:0 8px 18px #d499092b; }
.auth-submit:hover { background:#c78e06; }
.auth-submit:focus-visible { outline:3px solid #8a6204; outline-offset:3px; }
.auth-submit svg { width:21px; height:21px; }
.auth-copyright { margin:34px 0 0; text-align:center; color:#8190a3; font-size:.88rem; }
.field-row { display:flex; gap:12px; align-items:end; flex-wrap:wrap; }
.field-row>* { flex:1; min-width:140px; }
.page-content>.field-row { margin-bottom:20px; padding:18px 20px; border:1px solid var(--border); border-radius:17px; background:var(--surface); box-shadow:var(--shadow); }
.profile-card { display:flex; align-items:center; gap:22px; }
.profile-card h2 { margin:0 0 5px; }
.profile-card p { margin:0; color:var(--muted); }
.avatar { width:86px; height:86px; object-fit:cover; border-radius:50%; }
.avatar-fallback { display:grid; place-items:center; background:var(--gold-soft); color:var(--gold); font-size:2rem; }
.permission-row { flex-wrap:wrap; }
.permission-row strong { min-width:140px; }
.permission-row label { margin:0; }
@media(max-width:800px) {
    .app-shell { display:block; }
    .sidebar { width:auto; height:auto; position:static; padding:8px 12px; border-inline-end:0; border-bottom:1px solid var(--border); }
    .brand,.user-card,.sidebar form { display:none; }
    .sidebar nav { display:flex; overflow:auto; gap:6px; scrollbar-width:thin; }
    .sidebar nav a { white-space:nowrap; width:auto; padding:6px 10px; }
    .nav-icon { width:28px; height:28px; }
    .topbar { min-height:64px; padding:10px 18px; }
    .page-content { padding:24px 18px 55px; }
    .quick-grid,.stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
    .home-hero { grid-template-columns:1fr; }
    .home-hero-copy { padding:24px; }
    .home-hero img { height:135px; min-height:0; }
    .list-card { align-items:flex-start; flex-direction:column; }
    .toolbar { align-items:stretch; }
    .toolbar input:not([type=checkbox]),.toolbar select { max-width:none; width:100%; }
    .toolbar .actions { width:100%; }
    .card,.list-card { padding:17px; }
}
@media(max-width:440px) {
    .topbar { align-items:flex-start; flex-direction:column; }
    .topbar-actions { width:100%; justify-content:space-between; }
    .stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .stats strong { font-size:1.42rem; }
    .quick-grid { grid-template-columns:1fr; }
    .profile-card { flex-direction:column; align-items:flex-start; }
}
@media print { html,body { background:#fff; color:#111; color-scheme:light; }.sidebar,.topbar,.toolbar,.form-actions,button,input,select { display:none!important; }.page-content { max-width:none; padding:0; }.card { border:1px solid #bbb; }.table-wrap { overflow:visible; border:0; }.finance-table-scroll { max-height:none; }.finance-table-scroll th { position:static; } table { min-width:0; width:100%; } th,td { color:#111; border-bottom:1px solid #bbb; padding:6px; } tr { break-inside:avoid; } a { color:#111; } }

/* AKZ visual refresh — CSS only; existing routes, bindings and classes preserved.
   Accent/theme tokens are centralized here. No remote fonts or assets required. */
:root,
html[data-theme=light] {
    --bg:#f4f6fa; --surface:#ffffff; --surface-2:#f0f3f8;
    --text:#17243a; --muted:#5d6c82; --border:#e1e6ee;
    --gold:#e4b44f; --gold-soft:#fcf3df; --danger:#b82e43;
    --shadow:0 4px 20px #17243a06;
    --accent-ink:#805b0e; --nav-bg:#14243b; --nav-text:#c0cad9;
    --ring:#a8781c; --success-bg:#e7f5ee; --success-text:#216449;
    --error-bg:#fcecf0; --error-text:#a42c43;
    color-scheme:light;
}
html[data-theme=dark] {
    --bg:#0e1828; --surface:#17253a; --surface-2:#1e2e45;
    --text:#ecf1f8; --muted:#aab8ce; --border:#30415b;
    --gold:#e9bd64; --gold-soft:#342f25; --danger:#f17d90;
    --shadow:0 6px 24px #0000001a;
    --accent-ink:#f0c777; --nav-bg:#101c2e; --nav-text:#bac8dd;
    --ring:#e9bd64; --success-bg:#193c33; --success-text:#9de1bc;
    --error-bg:#422732; --error-text:#ffa4b4;
    color-scheme:dark;
}
body { font-family:"Segoe UI",Tahoma,Arial,sans-serif; font-size:15px; line-height:1.65; }
::selection { background:var(--gold); color:#17243a; }
:focus-visible { outline:3px solid var(--ring); outline-offset:4px; }
input:focus,select:focus,textarea:focus { outline:2px solid var(--ring); outline-offset:2px; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button,a { touch-action:manipulation; }
.sidebar {
    width:252px; padding:28px 16px 20px; background:var(--nav-bg);
    color:var(--nav-text); border:0; display:flex; flex-direction:column;
    scrollbar-width:thin; scrollbar-color:#40516a transparent;
}
.brand { color:#fff; font-size:1.08rem; padding:0 8px 25px; border-color:#ffffff12; gap:10px; }
.brand-mark { width:40px; height:40px; border-radius:12px; background:var(--gold); color:#14243b; }
.user-card { background:#ffffff05; border-color:#ffffff13; border-radius:12px; padding:13px 10px; margin:24px 0; flex-shrink:0; }
.user-card strong { color:#f1f5fb; font-size:.9rem; }
.user-card small { color:#a9b9cf; font-size:.75rem; }
.user-avatar-fallback { background:#ffffff13; color:#f0c777; }
.sidebar nav { gap:6px; }
.sidebar nav a { position:relative; padding:9px 12px; border-radius:9px; color:var(--nav-text); font-size:.88rem; font-weight:550; transition:background .18s,color .18s; }
.nav-icon { background:transparent; color:#9cadc5; width:28px; height:28px; border-radius:7px; }
.sidebar nav a:hover { background:#ffffff0a; color:#fff; }
.sidebar nav a:hover .nav-icon { background:transparent; color:var(--gold); }
.sidebar nav a.active { background:#e4b44f16; color:#f6cb79; }
.sidebar nav a.active::before { content:""; position:absolute; inset-inline-start:0; top:11px; bottom:11px; width:3px; background:var(--gold); border-radius:3px; }
.sidebar nav a.active .nav-icon { color:#f6cb79; background:transparent; }
.sidebar>form { margin-top:auto; padding-top:28px; }
.nav-logout { margin-top:0; border:1px solid #ffffff16; border-radius:9px; min-height:44px; justify-content:center; color:#e6b5bb; font-size:.85rem; }
.nav-logout:hover { background:#ffffff08; color:#fff; }
.topbar { padding:16px 38px; min-height:83px; gap:16px; }
.topbar-title { gap:6px; }
.topbar-title span { font-size:.69rem; letter-spacing:.06em; }
.topbar-title strong { font-size:1rem; font-weight:650; }
.topbar-actions { gap:10px; font-size:.8rem; }
.language-switch { border:0; padding:4px; border-radius:9px; }
.language-switch a { min-width:32px; min-height:36px; display:grid; place-items:center; font-size:.75rem; }
.theme-toggle { min-height:44px; display:flex; align-items:center; gap:8px; border-radius:9px; }
.theme-toggle::before { content:"◐"; font-size:1.15rem; color:var(--accent-ink); }
.read-only-badge { color:var(--accent-ink); background:var(--gold-soft); border-color:transparent; }
.page-content { max-width:1440px; padding:32px 38px 64px; }
h1 { font-weight:700; font-size:clamp(1.7rem,2.8vw,2.25rem); letter-spacing:-.035em; }
h2 { margin:30px 0 16px; font-size:1.08rem; font-weight:650; letter-spacing:-.015em; }
h3 { font-size:1rem; }
html[dir=rtl] h1,html[dir=rtl] h2,html[dir=rtl] .brand { letter-spacing:0; }
.home-hero { position:relative; min-height:238px; grid-template-columns:minmax(0,1fr) 40%; border:0; border-radius:16px; background:var(--nav-bg); color:#fff; box-shadow:0 8px 24px #14243b0d; }
.home-hero-copy { padding:34px; position:relative; z-index:1; }
.home-hero .eyebrow { background:#e4b44f18; color:#f1c772; font-size:.74rem; font-weight:600; padding:5px 11px; border:1px solid #e4b44f25; border-radius:6px; margin-bottom:16px; }
.home-hero h1 { font-size:clamp(1.7rem,2.5vw,2.4rem); }
.home-hero p { color:#c0ccdd; max-width:38ch; font-size:.91rem; }
.home-hero img { min-height:238px; max-height:290px; object-position:center; }
.card,.list-card { border-radius:13px; padding:22px; box-shadow:var(--shadow); }
.quick-grid,.stats,.grid { gap:16px; grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr)); }
.stats .card { position:relative; min-height:126px; border-top:1px solid var(--border); padding:24px; }
.stats .card::before { content:""; display:block; width:22px; height:3px; border-radius:4px; background:var(--gold); margin-bottom:14px; }
.stats strong { font-size:1.9rem; font-weight:700; font-variant-numeric:tabular-nums; letter-spacing:-.035em; }
.stats span { font-size:.81rem; margin-top:5px; }
.stats .stat-featured { background:var(--nav-bg); border-color:var(--nav-bg); }
.stats .stat-featured strong { color:#f1c772; }
.stats .stat-featured span { color:#c0ccdd; }
.quick-grid a { min-height:90px; font-size:.94rem; font-weight:600; transition:transform .18s,border-color .18s,box-shadow .18s; }
.quick-grid a::after { width:36px; height:36px; border-radius:10px; color:var(--accent-ink); background:var(--gold-soft); flex-shrink:0; }
html[dir=rtl] .quick-grid a::after { content:"↖"; }
.quick-grid a:hover,.list-card:is(a):hover { border-color:var(--gold); box-shadow:0 8px 24px #17243a0c; }
.list-card { margin:10px 0; min-width:0; padding:18px 22px; }
.list-card>* { min-width:0; overflow-wrap:anywhere; }
.list-card strong { font-size:.94rem; }
.list-card small { font-size:.79rem; }
.list-card>.status-pill { flex-shrink:0; margin:0; }
.toolbar { margin-bottom:22px; gap:12px; }
.primary,.secondary,.danger { border-radius:9px; min-height:44px; padding:10px 17px; font-size:.87rem; font-weight:650; line-height:1.45; }
.primary { color:#17243a; background:var(--gold); box-shadow:0 3px 8px #b17a1114; }
.primary:hover { background:#f0c570; box-shadow:0 4px 12px #b17a1126; }
.secondary:hover { background:var(--surface-2); border-color:var(--muted); }
.danger { background:var(--error-bg); color:var(--error-text); border-color:var(--danger); }
.danger:hover { background:var(--error-bg); filter:brightness(.96); }
button:disabled { cursor:not-allowed; opacity:.55; }
input:not([type=checkbox]),select,textarea { min-width:0; min-height:47px; border-radius:9px; background:var(--surface); padding:10px 13px; transition:border-color .15s,box-shadow .15s; font-size:.92rem; }
input::placeholder,textarea::placeholder { color:var(--muted); opacity:1; }
input[type=checkbox] { accent-color:var(--ring); flex-shrink:0; }
input[type=file] { padding:7px; }
input[type=file]::file-selector-button { border:0; border-radius:6px; background:var(--surface-2); color:var(--text); padding:7px 12px; margin-inline-end:10px; cursor:pointer; }
input.invalid,select.invalid,textarea.invalid { border-color:var(--danger); }
.validation-message { color:var(--danger); font-size:.85rem; }
label { color:var(--muted); font-size:.83rem; font-weight:600; gap:8px; }
.form-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:12px 22px; }
.form-grid>* { min-width:0; }
.form-actions { border-top:1px solid var(--border); padding-top:20px; margin-top:24px; }
.field-row>* { min-width:min(100%,140px); }
.actions { min-width:0; }
.actions select { width:auto; max-width:100%; }
.alert { color:var(--error-text); background:var(--error-bg); border:1px solid var(--danger); border-inline-start-width:3px; font-size:.9rem; }
.notice { color:var(--accent-ink); background:var(--gold-soft); border:1px solid var(--gold); border-inline-start-width:3px; font-size:.9rem; }
.table-wrap { border-radius:13px; scrollbar-width:thin; scrollbar-color:var(--muted) var(--surface-2); }
th,td { padding:16px 20px; font-size:.87rem; }
th { font-size:.76rem; font-weight:650; padding-block:13px; }
td { font-variant-numeric:tabular-nums; }
td a { color:var(--accent-ink); }
td a:hover { text-decoration:underline; }
tbody tr:hover { background:var(--surface-2); }
.status-pill { font-size:.75rem; padding:4px 10px; font-weight:600; }
.status-active { background:var(--success-bg); color:var(--success-text); }
.status-inactive { background:var(--error-bg); color:var(--error-text); }
.empty-state { padding:44px 24px; font-size:.92rem; }
.avatar-fallback { color:var(--accent-ink); }
/* Login inherits theme and remains usable without JavaScript. */
.auth-wrap { padding:40px 20px; background-color:var(--nav-bg); background-image:radial-gradient(ellipse at 15% 15%,#e4b44f1f,transparent 50%),radial-gradient(ellipse at 90% 85%,#6688bd26,transparent 50%),linear-gradient(135deg,#ffffff03 25%,transparent 25%,transparent 75%,#ffffff03 75%); background-size:auto,auto,48px 48px; color:var(--text); color-scheme:inherit; }
.auth-panel { width:min(100%,470px); background:var(--surface); border:1px solid var(--border); border-radius:22px; padding:34px 38px 26px; box-shadow:0 24px 70px #00000030; }
.auth-brand { margin-bottom:28px; }
.auth-mark { width:64px; height:64px; border-radius:17px; background:var(--gold-soft); color:var(--accent-ink); margin-bottom:17px; }
.auth-mark svg { width:42px; height:42px; }
.auth-brand h1 { font-size:1.85rem; color:var(--text); }
.auth-brand p { margin-top:10px; font-size:.85rem; color:var(--muted); }
.auth-form { gap:19px; }
.auth-field { gap:8px; }
.auth-field label { font-size:.83rem; color:var(--muted); font-weight:600; }
.auth-input { min-height:52px; border-radius:10px; border-color:var(--border); background:var(--surface); color:var(--muted); box-shadow:none; padding:0 13px; gap:11px; }
.auth-input input:not([type=checkbox]),.auth-input select { min-height:50px; color:var(--text); font-size:.91rem; }
.auth-input:focus-within { border-color:var(--ring); box-shadow:0 0 0 3px #e4b44f26; }
.auth-input>svg { width:20px; height:20px; }
.password-toggle { color:var(--muted); width:44px; height:44px; flex-shrink:0; }
.password-toggle:hover,.password-toggle:focus-visible { background:var(--surface-2); color:var(--accent-ink); }
.remember-row { color:var(--text); font-size:.85rem; min-height:30px; }
.remember-row input { accent-color:var(--ring); width:18px; height:18px; }
.auth-submit { min-height:52px; border-radius:10px; background:var(--gold); color:#17243a; font-size:.97rem; margin-top:3px; box-shadow:0 5px 14px #b17a1126; }
.auth-submit:hover { background:#f0c570; }
.auth-submit:focus-visible { outline-color:var(--ring); }
.auth-copyright { margin-top:24px; color:var(--muted); font-size:.74rem; }
@media(min-width:1400px) { .page-content { padding-top:40px; } .home-hero { min-height:260px; } }
@media(max-width:1000px) and (min-width:801px) { .sidebar { width:220px; } .page-content { padding:26px 24px 50px; } .topbar { padding-inline:24px; } .home-hero-copy { padding:26px; } }
@media(max-width:800px) {
    .app-shell { display:block; }
    .sidebar { width:auto; height:auto; position:static; padding:10px 12px; display:block; }
    .sidebar nav { display:flex; overflow-x:auto; gap:6px; padding-bottom:4px; }
    .sidebar nav a { flex-shrink:0; padding:7px 10px; min-height:44px; }
    .sidebar nav a.active::before { top:auto; bottom:0; inset-inline:12px; width:auto; height:2px; }
    /* Keep sign-out reachable on mobile. */
    .sidebar>form { display:block; margin:8px 0 0; padding:8px 0 0; border-top:1px solid #ffffff12; }
    .nav-logout { width:auto; margin-inline-start:auto; min-height:44px; padding:8px 18px; }
    .topbar { min-height:70px; padding:13px 20px; }
    .page-content { padding:24px 20px 48px; }
    .stats,.quick-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
    .home-hero { grid-template-columns:1fr; }
    .home-hero-copy { padding:26px; }
    .home-hero img { height:145px; min-height:0; max-height:none; object-position:center 72%; }
    .card,.list-card { padding:18px; }
    .stats .card { padding:18px; min-height:118px; }
    .stats strong { font-size:1.6rem; }
    .list-card { gap:8px; }
    .auth-wrap { padding:24px 16px; }
    .auth-panel { padding:28px 24px 24px; border-radius:18px; }
    .toolbar .actions>* { flex:1; }
}
@media(max-width:440px) {
    .topbar { flex-direction:column; align-items:stretch; gap:12px; }
    .topbar-title { display:flex; justify-content:space-between; align-items:center; }
    .topbar-actions { justify-content:space-between; gap:8px; }
    .page-content { padding-inline:16px; }
    .quick-grid { grid-template-columns:1fr; }
    .stats strong { font-size:1.4rem; }
    .stats span { font-size:.77rem; }
    .auth-panel { padding-inline:20px; }
    .auth-brand h1 { font-size:1.65rem; }
}
@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
    .quick-grid a:hover,.list-card:is(a):hover { transform:none; }
}
@media print {
    html[data-theme],body { --bg:#fff; --surface:#fff; --surface-2:#f5f5f5; --text:#111; --muted:#444; --border:#bbb; --shadow:none; color-scheme:light; }
    .sidebar,.topbar { display:none!important; }
    .home-hero,.stats .stat-featured { background:#fff; color:#111; border:1px solid #bbb; box-shadow:none; }
    .home-hero p,.stats .stat-featured strong,.stats .stat-featured span { color:#111; }
    .page-content { padding:0; }
    .table-wrap { overflow:visible; box-shadow:none; }
    table { min-width:0; } th,td { padding:6px; }
}

/* Reference dashboard: coordinated Razor markup, SVG icons and responsive layout. */
.ui-icon { width:24px; height:24px; display:block; flex-shrink:0; }
.sidebar { width:276px; padding:28px 16px 24px; }
.brand { font-size:1.3rem; padding-bottom:28px; justify-content:center; gap:18px; }
.brand-mark { background:transparent; color:var(--gold); width:43px; height:38px; }
.brand-mark svg { width:43px; height:38px; }
.user-card { border:0; background:transparent; padding:0 8px; margin:24px 0 32px; gap:16px; }
.user-card strong { font-size:1.05rem; }
.user-card small { font-size:.85rem; }
.user-avatar { width:50px; height:50px; }
.user-avatar-fallback { background:#ffffff16; color:#cbd5e3; }
.sidebar nav { gap:9px; }
.sidebar nav a { padding:13px 12px; min-height:54px; font-size:.95rem; font-weight:500; }
.nav-icon { width:28px; height:28px; color:#cad5e5; }
.sidebar nav a.active { background:#e4b44f26; }
.sidebar nav a.active::before { top:0; bottom:0; width:3px; }
.sidebar nav a.active .nav-icon { color:var(--gold); }
.nav-logout { gap:16px; min-height:56px; color:#ecf1f8; font-size:.98rem; }
.topbar { min-height:76px; padding:14px 28px; }
.topbar-title { display:flex; flex-direction:row; align-items:center; gap:12px; }
.topbar-title strong { font-size:.97rem; }
.topbar-avatar { width:38px; height:38px; background:var(--surface-2); border-radius:50%; display:grid; place-items:center; color:var(--muted); }
html[dir=rtl] .topbar-title { flex-direction:row-reverse; }
.language-switch { background:transparent; padding:0; gap:5px; }
.language-switch a { min-width:46px; min-height:44px; background:var(--surface-2); border-radius:9px; font-size:.9rem; color:var(--text); }
.language-switch a.selected { background:var(--gold); color:#17243a; box-shadow:none; }
.theme-toggle { background:var(--surface); color:var(--text); font-size:.9rem; padding:8px 14px; }
.theme-toggle::before { content:none; }
.theme-toggle .ui-icon { width:20px; height:20px; }
.page-content { padding:32px 28px 50px; }
.home-hero { min-height:256px; display:block; border-radius:13px; isolation:isolate; overflow:hidden; }
.home-hero-copy { width:60%; min-height:256px; padding:38px; margin-inline-end:auto; align-items:flex-start; }
.home-hero .eyebrow { padding:0; border:0; background:transparent; color:#f0c36b; font-size:1rem; margin-bottom:14px; }
.home-hero h1 { font-size:clamp(1.9rem,3.15vw,3rem); margin-bottom:12px; color:#fff; }
.home-hero p { max-width:none; font-size:1.08rem; color:#c5cfde; }
.home-hero img { position:absolute; top:0; inset-inline-end:0; width:60%; height:100%; min-height:0; max-height:none; object-fit:cover; object-position:center 72%; z-index:-2; }
.home-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(to right,transparent 20%,#14243b40 40%,#14243b 64%); z-index:-1; pointer-events:none; }
html[dir=ltr] .home-hero::after { background:linear-gradient(to left,transparent 20%,#14243b40 40%,#14243b 64%); }
.page-content>h2 { font-size:1.65rem; font-weight:750; margin:28px 0 18px; }
.dashboard-stats { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:16px; }
.dashboard-stats>.dashboard-stat { grid-column:span 3; min-height:140px; padding:24px; }
.dashboard-stats>.dashboard-stat:nth-child(n+5) { grid-column:span 4; }
.dashboard-stat { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.dashboard-stat:is(a):hover { border-color:var(--gold); transform:translateY(-2px); }
.stats .dashboard-stat::before { content:none; }
.stat-copy { min-width:0; text-align:start; }
.stat-copy::before { content:none; }
.stats .dashboard-stat strong { font-size:clamp(1.3rem,2vw,1.95rem); line-height:1.4; direction:ltr; unicode-bidi:isolate; white-space:nowrap; letter-spacing:-.025em; }
.stats .dashboard-stat .stat-copy>span { font-size:.9rem; margin-top:8px; }
.stats .stat-icon { width:58px; height:58px; border-radius:50%; display:grid; place-items:center; margin:0; flex-shrink:0; }
.stat-icon .ui-icon { width:28px; height:28px; }
.tone-blue { color:#2b66c5!important; background:#edf3ff; }
.tone-green { color:#228451!important; background:#e9f8ee; }
.tone-red { color:#c64150!important; background:#fdebef; }
.tone-gold { color:#ac7619!important; background:#fff5df; }
.tone-purple { color:#8951ba!important; background:#f3ebfc; }
html[data-theme=dark] .tone-blue { background:#243a5c; color:#98bfff!important; }
html[data-theme=dark] .tone-green { background:#203e34; color:#98ddb7!important; }
html[data-theme=dark] .tone-red { background:#472c38; color:#ffb0bc!important; }
html[data-theme=dark] .tone-gold { background:#403827; color:#f2c877!important; }
html[data-theme=dark] .tone-purple { background:#3b3054; color:#ceacff!important; }
.dashboard-stat.stat-featured .stat-icon { background:#e4b44f30; color:#e4b44f!important; }
.quick-grid:has(.dashboard-quick) { grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.quick-grid .dashboard-quick { position:relative; display:flex; flex-direction:column; align-items:stretch; justify-content:center; gap:7px; min-height:126px; padding:22px 20px; padding-inline-end:65px; }
.dashboard-quick::after { content:none!important; }
.quick-heading { display:flex; align-items:center; gap:12px; }
.quick-heading>.ui-icon { width:28px; height:28px; color:var(--accent-ink); }
.quick-heading strong { font-size:1.05rem; font-weight:650; }
.dashboard-quick small { font-size:.82rem; font-weight:400; color:var(--muted); }
.quick-arrow { position:absolute; inset-inline-end:20px; top:50%; transform:translateY(-50%); width:42px; height:42px; border-radius:9px; display:grid; place-items:center; background:var(--gold-soft); color:var(--accent-ink); }
.quick-arrow .ui-icon { width:23px; height:23px; }
@media(min-width:801px) and (max-width:1250px) {
    .sidebar { width:240px; }
    .dashboard-stats>.dashboard-stat { padding:18px; gap:8px; }
    .stats .stat-icon { width:44px; height:44px; }
    .stat-icon .ui-icon { width:24px; height:24px; }
    .quick-grid:has(.dashboard-quick) { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:1050px) {
    .dashboard-stats>.dashboard-stat,.dashboard-stats>.dashboard-stat:nth-child(n+5) { grid-column:span 6; }
    .dashboard-stats>.dashboard-stat:last-child { grid-column:1/-1; }
    .home-hero-copy { width:70%; padding:28px; }
    .home-hero p { font-size:.94rem; }
}
@media(max-width:800px) {
    .sidebar { width:auto; padding:10px 12px; }
    .sidebar nav { gap:6px; }
    .sidebar nav a { min-height:44px; padding:8px 10px; font-size:.86rem; }
    .sidebar nav a.active::before { top:auto; bottom:0; inset-inline:12px; height:2px; width:auto; }
    .nav-logout { min-height:44px; font-size:.86rem; gap:10px; }
    .topbar { padding:12px 20px; }
    .page-content { padding:24px 20px 48px; }
    .quick-grid:has(.dashboard-quick) { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
    .home-hero { display:flex; flex-direction:column; }
    .home-hero-copy { width:100%; min-height:215px; padding:26px; }
    .home-hero img { position:static; height:160px; width:100%; z-index:0; }
    .home-hero::after { display:none; }
    .home-hero .eyebrow { font-size:.86rem; }
    .home-hero h1 { font-size:2rem; }
    .page-content>h2 { font-size:1.35rem; }
    .dashboard-stats>.dashboard-stat,.dashboard-stats>.dashboard-stat:nth-child(n+5) { padding:16px; min-height:135px; align-items:flex-start; flex-direction:column; gap:10px; }
    .dashboard-stats>.dashboard-stat:last-child { grid-column:1/-1; flex-direction:row; align-items:center; }
    .stats .stat-icon { width:38px; height:38px; }
    .stat-icon .ui-icon { width:21px; height:21px; }
    .stat-copy::before { display:none; }
    .stats .dashboard-stat strong { font-size:1.45rem; white-space:normal; }
    .stats .dashboard-stat .stat-copy>span { font-size:.82rem; }
    .quick-grid:has(.dashboard-quick) { grid-template-columns:1fr; }
    .quick-grid .dashboard-quick { min-height:105px; }
}
@media(max-width:440px) {
    .page-content { padding-inline:16px; }
    .topbar-title { justify-content:flex-start; }
    .language-switch a { min-width:40px; }
    .theme-toggle { font-size:.82rem; }
}
@media print {
    .home-hero-copy { width:100%; min-height:0; padding:16px; }
    .home-hero h1 { color:#111; }
    .home-hero img,.home-hero::after { display:none; }
    .dashboard-stat { break-inside:avoid; }
}
@media(min-width:1051px) {
    .dashboard-stats>.dashboard-stat:nth-child(5) { grid-row:2; grid-column:9 / 13; }
    .dashboard-stats>.dashboard-stat:nth-child(6) { grid-row:2; grid-column:5 / 9; }
    .dashboard-stats>.dashboard-stat:nth-child(7) { grid-row:2; grid-column:1 / 5; }
}

/* Student screens follow the app's section order and account tools. */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.student-intro { margin-top:-8px; margin-bottom:24px; max-width:70ch; }
.student-editor-sections { display:grid; gap:20px; }
.student-section { padding:24px; }
.student-section h2 { margin:0 0 18px; font-size:1.1rem; font-weight:650; }
.student-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 24px; }
.student-fields label,.account-fields label { margin:0; gap:8px; font-weight:450; }
.student-fields input,.student-fields select,.account-fields input { min-height:50px; }
.account-section { max-width:none; }
.account-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; }
.account-heading h2 { margin-bottom:3px; }
.account-heading p { margin:0; font-size:.85rem; }
.account-switch { position:relative; display:block; width:44px; height:26px; flex:none; margin:0; cursor:pointer; }
.account-switch input { position:absolute; inset:0; width:100%; height:100%; opacity:0; margin:0; z-index:1; cursor:pointer; }
.account-switch>span { display:block; width:44px; height:26px; background:var(--border); border-radius:999px; }
.account-switch>span::before { content:""; position:absolute; top:3px; inset-inline-start:3px; width:20px; height:20px; background:var(--surface); border-radius:50%; box-shadow:0 1px 4px #0002; }
.account-switch input:checked+span { background:var(--gold); }
.account-switch input:checked+span::before { inset-inline-start:21px; }
.account-switch input:focus-visible+span { outline:3px solid var(--ring); outline-offset:4px; }
.account-fields { display:grid; gap:12px; max-width:570px; }
.account-fields .account-button { width:100%; min-height:46px; gap:9px; }
.account-button.secondary { border-color:var(--accent-ink); color:var(--accent-ink); }
.account-hint { font-size:.82rem; line-height:1.55; margin:0; }
.student-save-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.student-save-actions .primary { gap:8px; }
.student-search { position:relative; display:flex; align-items:center; gap:14px; padding:10px 16px; background:var(--surface); border:1px solid var(--border); border-radius:12px; max-width:100%; margin:0; }
.student-payment-filter { max-width:320px; margin:18px 0; }
.student-search input { border:0; box-shadow:none; background:transparent; padding:6px 0; }
.student-search:focus-within { outline:2px solid var(--ring); outline-offset:2px; }
.student-search input:focus { outline:0; }
.student-sort { max-width:320px; margin:18px 0 24px; font-size:.95rem; }
.student-list { display:grid; gap:14px; }
.student-row { display:flex; flex-direction:row; align-items:center; margin:0; padding:16px; gap:18px; min-height:106px; }
.student-row-main { display:flex; align-items:center; gap:18px; flex:1; min-width:0; }
.student-row-main:hover strong { color:var(--gold); }
.student-initials { width:74px; height:74px; display:grid; place-items:center; flex-shrink:0; border-radius:11px; background:var(--gold-soft); color:var(--accent-ink); font-size:1.5rem; font-weight:600; }
.student-row-copy { flex:1; min-width:0; }
.student-row-copy strong { font-size:1.12rem; font-weight:600; line-height:1.4; }
.student-row-copy p { margin:4px 0 0; font-size:.93rem; color:var(--muted); }
.student-row-copy>span { display:block; margin:4px 0 0; font-size:.93rem; color:var(--muted); }
.student-row-copy small { color:var(--muted); font-size:.88rem; margin-top:2px; }
.student-status.is-active { color:var(--success-text); }
.student-chevron { display:grid; place-items:center; width:30px; min-height:40px; flex-shrink:0; color:var(--muted); }
.student-chevron .ui-icon { width:18px; height:18px; }
html[dir=rtl] .student-chevron { transform:rotate(180deg); }
@media(max-width:600px) {
    .student-fields { grid-template-columns:1fr; gap:18px; }
    .student-section { padding:20px 16px; }
    .student-editor-sections { gap:16px; }
    .student-save-actions { display:grid; grid-template-columns:1fr; }
    .student-save-actions>* { width:100%; }
    .student-row,.student-row-main { gap:12px; }
    .student-row { flex-direction:row; align-items:center; padding:13px; }
    .student-initials { width:58px; height:65px; font-size:1.2rem; }
    .student-row-copy strong { font-size:1rem; }
    .student-row-copy p,.student-row-copy>span,.student-row-copy small { font-size:.8rem; }
    .student-row-copy small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .student-chevron { width:16px; }
    .student-row>.primary { padding:9px 12px; }
}
@media print { .student-save-actions,.account-button,.account-switch { display:none!important; } }
.student-extra { margin-top:20px; padding-top:16px; border-top:1px solid var(--border); }
.student-extra summary { cursor:pointer; color:var(--muted); font-size:.86rem; }
.student-extra[open] summary { margin-bottom:16px; }

/* Teacher centre, account status and class permissions. */
.teacher-filter { margin:22px 0; max-width:520px; font-size:.92rem; font-weight:450; }
.teacher-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.teacher-card { display:flex; flex-direction:column; align-items:flex-start; gap:12px; padding:24px; }
.teacher-card-heading { display:flex; align-items:center; gap:18px; width:100%; }
.teacher-card-heading>div { min-width:0; }
.teacher-card-heading h2 { margin:0 0 2px; font-size:1.2rem; overflow-wrap:anywhere; }
.teacher-card-heading p,.teacher-card>p { margin:0; font-size:.95rem; overflow-wrap:anywhere; }
.teacher-avatar { display:block; width:80px; height:80px; object-fit:cover; border-radius:50%; flex-shrink:0; }
.teacher-avatar-fallback { display:grid; place-items:center; background:var(--gold-soft); color:var(--accent-ink); font-size:1.4rem; }
.teacher-card .status-pill { font-size:.87rem; padding:4px 12px; }
.teacher-card-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:auto; padding-top:4px; width:100%; }
.teacher-card-actions>* { min-height:48px; }
.teacher-photo-row { display:flex; align-items:center; gap:20px; margin:0 0 22px; }
.teacher-photo-row p { font-size:.85rem; margin:5px 0 0; }
.teacher-switch-row { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:46px; margin:10px 0 16px; }
.teacher-switch-row>div { min-width:0; }
.teacher-switch-row strong { font-weight:550; }
.teacher-switch-row .account-hint { margin-top:5px; }
.teacher-class-actions { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.teacher-class-actions>* { flex:1; min-width:180px; }
.teacher-permission-hint { margin-bottom:20px; }
.teacher-permission-list { display:grid; gap:14px; }
.teacher-class-card { border:1px solid var(--border); border-radius:13px; padding:18px 22px; background:var(--surface); }
.teacher-class-select { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0; cursor:pointer; color:var(--text); min-height:32px; }
.teacher-class-select input { width:22px; height:22px; margin:0; }
.teacher-class-permissions { margin-top:18px; padding-inline-start:20px; }
.teacher-class-permissions .teacher-switch-row { margin:8px 0; font-size:.94rem; }
@media(max-width:800px) { .teacher-list { grid-template-columns:1fr; } }
@media(max-width:600px) {
    .teacher-card { padding:20px; gap:12px; }
    .teacher-card-heading { gap:14px; }
    .teacher-avatar { width:68px; height:68px; }
    .teacher-card-heading h2 { font-size:1.08rem; }
    .teacher-card-actions { gap:10px; }
    .teacher-card-actions>* { padding-inline:10px; font-size:.87rem; }
    .teacher-class-actions { display:grid; grid-template-columns:1fr; }
    .teacher-class-actions>* { width:100%; min-width:0; }
    .teacher-class-card { padding:16px; }
    .teacher-class-permissions { padding-inline-start:8px; }
}
@media print { .teacher-card-actions,.teacher-class-actions { display:none!important; } }
.teacher-editor .account-button { background:var(--gold); color:#17243a; border-color:transparent; }
.teacher-editor .account-button:hover { background:#f0c570; }
