:root {
    --red: #d3132a;
    --red-dark: #a90f22;
    --red-soft: #fff0f2;
    --red-glow: rgba(211, 19, 42, .18);
    --ink: #17181c;
    --ink-soft: #2c2e34;
    --muted: #70747d;
    --line: #e5e7eb;
    --line-strong: #d7d9df;
    --surface: #ffffff;
    --surface-soft: #f8f8f9;
    --bg: #f3f4f6;
    --success: #147a55;
    --warning: #a86300;
    --danger: #b42318;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 6px 20px rgba(18, 20, 24, .055);
    --shadow: 0 18px 45px rgba(18, 20, 24, .09);
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, .30);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 88% 3%, rgba(211, 19, 42, .055), transparent 25rem),
        var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
svg { display: block; }

.app-shell { min-height: 100vh; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: 268px;
    padding: 26px 18px 20px;
    display: flex;
    flex-direction: column;
    color: #fff;
    background:
        linear-gradient(155deg, rgba(211, 19, 42, .12), transparent 34%),
        #15161a;
    border-right: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 16px 0 42px rgba(17, 18, 22, .08);
}
.sidebar::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 3px;
    height: 145px;
    background: linear-gradient(var(--red), transparent);
}
.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 64px;
    padding: 0 9px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.brand-logo-shell {
    flex: 0 0 108px;
    width: 108px;
    min-height: 48px;
    padding: 8px 9px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2), 0 0 0 3px rgba(211, 19, 42, .13);
}
.brand-logo { display: block; width: 100%; height: auto; object-fit: contain; }
.brand-copy { min-width: 0; }
.brand strong, .brand small, .sidebar-user strong, .sidebar-user small { display: block; }
.brand strong { font-size: 12px; letter-spacing: .045em; line-height: 1.3; }
.brand small { margin-top: 3px; color: #aeb1b8; font-size: 11px; letter-spacing: .02em; }
.nav-list { display: grid; gap: 7px; margin-top: 27px; }
.nav-list a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 11px 13px;
    overflow: hidden;
    color: #b7bac1;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    transition: color .18s ease, background .18s ease, transform .18s ease, border-color .18s ease;
}
.nav-list a:hover { color: #fff; background: rgba(255, 255, 255, .06); transform: translateX(2px); }
.nav-list a.active {
    color: #fff;
    background: linear-gradient(110deg, var(--red), #b90e24);
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 10px 24px rgba(211, 19, 42, .25);
}
.nav-list a.active::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 42px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12));
}
.nav-icon { flex: 0 0 20px; width: 20px; height: 20px; display: grid; place-items: center; }
.nav-icon svg { width: 18px; height: 18px; fill: currentColor; }
.sidebar-user {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 17px 8px 13px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}
.sidebar-user > span:last-child { min-width: 0; }
.sidebar-user strong { max-width: 165px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.sidebar-user small { max-width: 165px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #969aa3; font-size: 11px; }
.avatar {
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    color: #fff;
    background: #292b31;
    font-weight: 850;
}
.logout-link { margin: 0 6px; padding: 9px 11px; border-radius: 9px; color: #a8abb3; font-size: 12px; font-weight: 650; }
.logout-link:hover { color: #fff; background: rgba(255, 255, 255, .055); }

.main-content { min-height: 100vh; margin-left: 268px; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 25;
    min-height: 94px;
    padding: 20px clamp(24px, 4vw, 54px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(221, 223, 228, .9);
    box-shadow: 0 4px 20px rgba(18, 20, 24, .035);
    backdrop-filter: blur(16px);
}
.page-heading { min-width: 0; }
.topbar h1 { margin: 4px 0 0; font-size: clamp(23px, 3vw, 30px); letter-spacing: -.035em; line-height: 1.12; }
.eyebrow { margin: 0; color: var(--red); font-size: 10px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 35px;
    padding: 7px 12px;
    border: 1px solid #b9e0d2;
    border-radius: 999px;
    color: var(--success);
    background: #f0faf6;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #19a06f; box-shadow: 0 0 0 4px rgba(25, 160, 111, .12); animation: livePulse 2.2s infinite; }
@keyframes livePulse { 50% { box-shadow: 0 0 0 7px rgba(25, 160, 111, 0); } }
.sound-control {
    min-height: 35px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: #3f4249;
    background: #fff;
    font-size: 11px;
    font-weight: 800;
    transition: .18s ease;
}
.sound-control svg { width: 15px; height: 15px; fill: currentColor; }
.sound-control:hover { border-color: #b9bcc4; box-shadow: 0 5px 14px rgba(18, 20, 24, .07); }
.sound-control[data-sound-state="on"] { color: var(--success); border-color: #b9e0d2; background: #f0faf6; }
.sound-control[data-sound-state="locked"] { color: var(--red); border-color: #f0afb8; background: var(--red-soft); animation: soundPulse 2s infinite; }
.sound-control[data-sound-state="off"] { color: #777b84; background: #f5f5f6; }
@keyframes soundPulse { 50% { box-shadow: 0 0 0 5px rgba(211, 19, 42, 0); } 0%, 100% { box-shadow: 0 0 0 1px rgba(211, 19, 42, .12); } }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 20px; }
.page-content { max-width: 1500px; margin: 0 auto; padding: clamp(24px, 4vw, 50px); }
.alert { margin: 18px clamp(24px, 4vw, 54px) 0; padding: 13px 16px; border: 1px solid; border-radius: 11px; box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 600; }
.alert.success { color: #116447; border-color: #b7e4d3; background: #eefbf6; }
.alert.error { color: var(--danger); border-color: #ffcdc7; background: #fff2f0; }
.alert.info { color: #1d4e89; border-color: #bfd7f5; background: #eff6ff; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card, .panel { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.stat-card {
    position: relative;
    min-height: 145px;
    padding: 23px 22px 20px;
    overflow: hidden;
    border-radius: var(--radius);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.stat-card::before { content: ""; position: absolute; left: 0; top: 23px; width: 4px; height: 45px; border-radius: 0 5px 5px 0; background: var(--red); }
.stat-card::after { content: ""; position: absolute; right: -34px; top: -42px; width: 100px; height: 100px; border-radius: 50%; background: rgba(211, 19, 42, .055); }
.stat-card:hover { transform: translateY(-2px); border-color: #ddd0d3; box-shadow: var(--shadow); }
.stat-card span { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.stat-card strong { position: relative; display: block; margin-top: 10px; font-size: 33px; letter-spacing: -.04em; }
.stat-card small { display: block; margin-top: 5px; color: #92969e; font-size: 11px; }
.panel { padding: clamp(21px, 3vw, 30px); margin-bottom: 22px; border-radius: var(--radius-lg); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.panel-head h2 { margin: 0; font-size: 17px; letter-spacing: -.015em; }
.panel-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-group { display: grid; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label, .field-label { color: #44474e; font-size: 11px; font-weight: 800; letter-spacing: .015em; }
.form-control {
    width: 100%;
    min-height: 45px;
    padding: 10px 13px;
    border: 1px solid #d5d7dc;
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.form-control:hover { border-color: #bfc2c9; }
.form-control:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(211, 19, 42, .095); }
input[type="file"].form-control { padding: 7px 8px; color: var(--muted); font-size: 12px; }
input[type="file"]::file-selector-button { margin-right: 10px; padding: 7px 11px; border: 0; border-radius: 7px; color: #fff; background: var(--ink); font-weight: 750; cursor: pointer; }
textarea.form-control { min-height: 118px; resize: vertical; line-height: 1.55; }
.helper { color: var(--muted); font-size: 10px; line-height: 1.5; }
.sound-note { margin: 0 0 17px; padding: 12px 13px; border: 1px solid #f0c2c8; border-left: 4px solid var(--red); border-radius: 9px; color: #5b4548 !important; background: var(--red-soft); font-size: 11px; line-height: 1.55 !important; }
.sound-note strong { color: var(--red-dark); }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.account-grid { align-items: stretch; }
.account-grid > .panel { height: calc(100% - 22px); }
.account-summary { display: grid; gap: 11px; }
.account-summary div { padding: 14px 15px; border: 1px solid #eceef1; border-radius: 11px; background: var(--surface-soft); }
.account-summary span, .account-summary strong { display: block; }
.account-summary span { margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.account-summary strong { font-size: 14px; }
.password-panel { max-width: 820px; }
.btn {
    min-height: 42px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #e21b35, var(--red-dark)); box-shadow: 0 8px 18px rgba(211, 19, 42, .18); }
.btn-primary:hover { box-shadow: 0 11px 24px rgba(211, 19, 42, .27); }
.btn-secondary { color: #35383e; border-color: #d6d8dd; background: #fff; }
.btn-secondary:hover { border-color: #b9bcc3; box-shadow: 0 7px 17px rgba(18, 20, 24, .07); }
.btn-danger { color: var(--danger); border-color: #ffcdc7; background: #fff4f2; }
.btn-small { min-height: 34px; padding: 7px 11px; border-radius: 8px; font-size: 11px; }
.btn-block { width: 100%; }

.table-wrap { overflow-x: auto; border: 1px solid #eceef1; border-radius: 13px; }
.data-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.data-table th { padding: 12px 14px; color: #777b84; background: #f8f8f9; border-bottom: 1px solid var(--line); text-align: left; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.data-table td { padding: 14px; border-bottom: 1px solid #eceef1; font-size: 12px; line-height: 1.45; vertical-align: middle; }
.data-table tbody tr { transition: background .15s ease; }
.data-table tbody tr:hover { background: #fffafb; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table small { color: var(--muted); }
.badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.badge.success { color: #116447; background: #e9f8f2; }
.badge.muted { color: #62666e; background: #eef0f3; }
.badge.warning { color: #8a5700; background: #fff4dd; }
.empty-state { padding: 38px 18px; border: 1px dashed #d9dbe0; border-radius: 13px; color: var(--muted); background: #fafafa; text-align: center; font-size: 12px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 285px; overflow: auto; padding: 3px; }
.check-card { display: flex; align-items: flex-start; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; transition: .15s ease; }
.check-card:hover { border-color: #e1a4ad; background: #fffafb; }
.check-card:has(input:checked) { border-color: var(--red); background: var(--red-soft); box-shadow: 0 0 0 2px rgba(211, 19, 42, .07); }
.check-card input { margin-top: 3px; accent-color: var(--red); }
.check-card strong, .check-card small { display: block; }
.check-card strong { font-size: 12px; }
.check-card small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.image-thumb { width: 76px; height: 50px; object-fit: cover; border-radius: 8px; background: #111; }
.task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.task-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 4px 14px rgba(18, 20, 24, .045); transition: transform .18s ease, box-shadow .18s ease; }
.task-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.task-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #111; }
.task-card-body { padding: 14px; border-top: 3px solid var(--red); }
.task-card-body strong { display: block; font-size: 13px; }
.task-card-body small { display: block; margin: 5px 0 11px; color: var(--muted); font-size: 10px; }

.announcement-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(8, 9, 12, .78);
    backdrop-filter: blur(9px);
    animation: backdropIn .22s ease both;
}
.announcement-backdrop[hidden] { display: none; }
.announcement-modal {
    position: relative;
    width: min(590px, 100%);
    padding: clamp(27px, 5vw, 43px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    animation: modalIn .28s cubic-bezier(.2, .8, .2, 1) both;
}
.announcement-modal::before { content: ""; position: absolute; inset: 0 0 auto; height: 7px; background: linear-gradient(90deg, var(--red-dark), #ec2440, var(--red-dark)); }
.announcement-modal::after { content: ""; position: absolute; z-index: 0; right: -90px; top: -110px; width: 230px; height: 230px; border-radius: 50%; background: rgba(211, 19, 42, .055); }
.announcement-modal > * { position: relative; z-index: 1; }
.announcement-topline { display: flex; align-items: center; gap: 13px; }
.announcement-sound { margin-left: auto; }
.announcement-topline small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.announcement-icon { flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #ed2942, var(--red-dark)); box-shadow: 0 8px 20px rgba(211, 19, 42, .23); }
.announcement-icon svg { width: 24px; height: 24px; fill: currentColor; }
.announcement-badge { color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.announcement-modal h2 { margin: 23px 0 10px; font-size: clamp(25px, 4vw, 36px); letter-spacing: -.035em; line-height: 1.15; }
.announcement-modal > p { max-height: 35vh; margin: 0; overflow-y: auto; color: #50535a; white-space: pre-line; font-size: 14px; line-height: 1.7; }
.countdown-row { display: flex; justify-content: space-between; padding: 13px 0 9px; margin-top: 21px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.countdown-row strong { color: var(--red); font-size: 12px; }
.announcement-progress { height: 4px; margin-bottom: 18px; overflow: hidden; border-radius: 999px; background: #eceef1; }
.announcement-progress span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red-dark), #f02b46); transform-origin: left; }
@keyframes backdropIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } }

.login-page, .setup-page {
    min-height: 100vh;
    padding: 30px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(115deg, rgba(10, 10, 12, .93), rgba(20, 21, 25, .86)),
        radial-gradient(circle at 78% 20%, var(--red), transparent 36%),
        #111216;
}
.login-page::before, .setup-page::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .3; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 34px 34px; }
.auth-card { position: relative; width: min(445px, 100%); padding: 38px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .7); border-radius: 24px; background: rgba(255, 255, 255, .98); box-shadow: 0 32px 90px rgba(0, 0, 0, .38); }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--red-dark), #ed2942); }
.auth-brand { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
.auth-brand .brand-logo-shell { flex-basis: 160px; width: 160px; min-height: 60px; padding: 10px 12px; border-color: var(--line); box-shadow: 0 10px 25px rgba(18, 20, 24, .09), 0 0 0 3px var(--red-soft); }
.auth-brand > span:last-child strong, .auth-brand > span:last-child small { display: block; }
.auth-brand > span:last-child strong { font-size: 13px; letter-spacing: .09em; }
.auth-brand > span:last-child small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.auth-card h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.035em; }
.auth-card > p { margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.auth-card .form-group { margin-bottom: 16px; }
.auth-footer { margin-top: 21px; color: #8b8f97; font-size: 10px; text-align: center; letter-spacing: .04em; }
.setup-card { width: min(810px, 100%); }
.diagnostic-list { display: grid; gap: 9px; padding: 0; list-style: none; }
.diagnostic-list li { display: flex; justify-content: space-between; gap: 15px; padding: 13px; border: 1px solid #eceef1; border-radius: 10px; background: #fafafa; font-size: 12px; }
.diagnostic-list small { color: var(--muted); }

.fullscreen-display { overflow: hidden; color: #fff; background: #050506; }
.fullscreen-display::after { content: ""; position: fixed; z-index: 2; inset: 0; pointer-events: none; box-shadow: inset 0 0 90px rgba(0, 0, 0, .34); }
.display-stage { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at center, #16171b, #050506 68%); }
.display-stage img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s ease; }
.display-stage img.visible { opacity: 1; }
.display-toolbar { position: fixed; z-index: 7; top: 22px; left: 24px; display: flex; align-items: center; gap: 9px; }
.display-exit, .display-clock { color: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .14); background: rgba(10, 11, 14, .72); backdrop-filter: blur(10px); }
.display-exit { padding: 9px 12px; border-radius: 9px; font-size: 11px; font-weight: 750; opacity: .55; transition: .18s ease; }
.display-exit:hover { color: #fff; opacity: 1; border-color: rgba(255, 255, 255, .3); }
.display-clock { position: fixed; z-index: 7; top: 22px; right: 25px; padding: 9px 12px; border-radius: 9px; font-size: 11px; font-variant-numeric: tabular-nums; }
.display-assignee { position: fixed; z-index: 6; left: 28px; bottom: 27px; max-width: calc(100vw - 56px); padding: 12px 17px; border: 1px solid rgba(255, 255, 255, .13); border-left: 5px solid var(--red); border-radius: 9px; color: #fff; background: rgba(8, 9, 12, .8); box-shadow: 0 10px 28px rgba(0, 0, 0, .24); font-size: clamp(15px, 2vw, 24px); font-weight: 850; backdrop-filter: blur(9px); }
.display-empty { text-align: center; color: #aeb2ba; }
.display-empty::before { content: ""; width: 190px; height: 68px; margin: 0 auto 18px; display: block; border: 1px solid rgba(255, 255, 255, .78); border-radius: 13px; background: #fff url('../images/rs8-logo-black.png') center / calc(100% - 24px) auto no-repeat; box-shadow: 0 10px 30px rgba(0, 0, 0, .34), 0 0 0 3px rgba(211, 19, 42, .25); }
.display-empty strong { display: block; margin-bottom: 7px; color: #fff; font-size: 24px; }
.display-empty span { font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 1050px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .task-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
    body.menu-open .sidebar { transform: translateX(0); box-shadow: 18px 0 55px rgba(0, 0, 0, .27); }
    body.menu-open::after { content: ""; position: fixed; z-index: 35; inset: 0; background: rgba(10, 11, 14, .52); }
    .main-content { margin-left: 0; }
    .menu-toggle { display: grid; place-items: center; }
    .topbar { justify-content: flex-start; }
    .topbar-actions { margin-left: auto; }
    .grid-2, .form-grid { grid-template-columns: 1fr; }
    .form-group.full { grid-column: auto; }
}
@media (max-width: 600px) {
    .stats-grid, .task-grid, .checkbox-grid { grid-template-columns: 1fr; }
    .page-content { padding: 18px; }
    .topbar { min-height: 80px; padding: 15px 18px; }
    .topbar h1 { font-size: 21px; }
    .eyebrow { font-size: 9px; }
    .live-pill { display: none; }
    .sound-control span { display: none; }
    .sound-control { width: 38px; justify-content: center; padding: 7px; }
    .alert { margin-left: 18px; margin-right: 18px; }
    .auth-card { padding: 29px 21px; }
    .auth-brand { align-items: flex-start; flex-direction: column; }
    .auth-brand .brand-logo-shell { width: 170px; }
    .login-page, .setup-page { padding: 18px; }
    .panel { border-radius: 17px; }
    .announcement-modal { padding: 28px 23px 24px; border-radius: 20px; }
    .display-toolbar { top: 14px; left: 14px; }
    .display-clock { top: 14px; right: 14px; }
    .form-actions .btn { flex: 1 1 140px; }
}
