:root {
    --navy-950: #0b1720;
    --navy-900: #102431;
    --navy-800: #173443;
    --teal-700: #0d726c;
    --teal-600: #11877e;
    --teal-100: #dff5f1;
    --lime: #c9df54;
    --ink: #17242d;
    --muted: #6a7881;
    --line: #dfe6e7;
    --surface: #ffffff;
    --canvas: #f3f6f5;
    --danger: #bc4148;
    --warning: #bd7a18;
    --shadow: 0 18px 50px rgba(16, 36, 49, .08);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid rgba(17,135,126,.25); outline-offset: 2px; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.12fr) minmax(440px, .88fr); background: white; }
.auth-visual { position: relative; min-height: 100vh; overflow: hidden; padding: 42px 7vw 60px; color: white; background: radial-gradient(circle at 72% 18%, rgba(201, 223, 84, .16), transparent 27%), linear-gradient(145deg, #07151e 5%, #102c38 57%, #0a4645 130%); }
.auth-visual::before { content: ""; position: absolute; width: 340px; height: 340px; right: -150px; bottom: -70px; border: 1px solid rgba(201, 223, 84, .25); border-radius: 50%; box-shadow: 0 0 0 70px rgba(201, 223, 84, .025), 0 0 0 140px rgba(201, 223, 84, .02); }
.visual-grid { position: absolute; inset: 0; pointer-events: none; opacity: .11; background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(125deg, transparent 20%, black 95%); }
.brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px 3px 12px 3px; background: var(--lime); color: var(--navy-950); font-size: 22px; font-weight: 900; font-family: Georgia, serif; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { font-size: 20px; letter-spacing: .13em; }
.brand small { color: rgba(255,255,255,.64); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.auth-copy { position: relative; z-index: 1; max-width: 650px; margin-top: clamp(120px, 19vh, 210px); }
.issue-kicker { display: inline-flex; padding: 8px 12px; color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: .16em; border: 1px solid rgba(201,223,84,.3); border-radius: 999px; }
.auth-copy h1 { margin: 26px 0 22px; max-width: 640px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 5vw, 76px); line-height: .98; letter-spacing: -.045em; font-weight: 400; }
.auth-copy h1 em { color: var(--lime); font-style: italic; }
.auth-copy > p { max-width: 540px; margin: 0; color: rgba(255,255,255,.7); font-size: 18px; line-height: 1.65; }
.auth-metric { display: flex; align-items: center; gap: 18px; margin-top: 58px; }
.auth-metric strong { color: var(--lime); font-family: Georgia, serif; font-size: 38px; font-weight: 400; }
.auth-metric span { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.64); font-size: 12px; line-height: 1.55; text-transform: uppercase; letter-spacing: .12em; }
.auth-panel { display: grid; place-items: center; padding: 48px; background: #fbfcfc; }
.login-card { width: min(430px, 100%); }
.mobile-brand { display: none; }
.eyebrow { display: block; margin-bottom: 8px; color: var(--teal-700); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.login-card h2 { margin: 0; font-family: Georgia, serif; font-size: 44px; font-weight: 400; letter-spacing: -.03em; }
.muted { color: var(--muted); }
.login-card > .muted { margin: 10px 0 34px; }
.form-stack { display: grid; gap: 20px; }
label { display: grid; gap: 8px; color: #3b4b54; font-size: 12px; font-weight: 750; letter-spacing: .02em; }
input, select { width: 100%; min-height: 46px; padding: 0 14px; color: var(--ink); background: white; border: 1px solid #ced8da; border-radius: 9px; outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus { border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(17,135,126,.1); }
input::placeholder { color: #a1adb2; }
.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.password-field button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--teal-700); background: none; border: 0; font-size: 11px; font-weight: 800; cursor: pointer; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 0 20px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 800; letter-spacing: .025em; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { color: white; background: var(--teal-700); box-shadow: 0 9px 25px rgba(13,114,108,.18); }
.button--primary:hover { background: #095f5a; box-shadow: 0 12px 30px rgba(13,114,108,.25); }
.button--secondary { color: var(--navy-900); background: #eef3f2; border-color: #d7e0df; box-shadow: none; }
.button--block { width: 100%; }
.button--tall { min-height: 72px; }
.security-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; color: #849097; font-size: 11px; }
.security-note span { width: 18px; height: 18px; display: grid; place-items: center; color: var(--teal-700); background: var(--teal-100); border-radius: 50%; }
.auth-alert { position: fixed; z-index: 20; top: 18px; left: 50%; transform: translateX(-50%); }
.auth-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; color: var(--teal-700); font-size: 11px; font-weight: 800; }
.resume-link { margin: 18px 0 0; text-align: center; font-size: 11px; font-weight: 800; }
.text-link { color: var(--teal-700); text-decoration: underline; text-decoration-color: rgba(13,114,108,.28); text-underline-offset: 3px; }
.public-card { width: min(560px, 100%); }
.public-card .muted { margin: 10px 0 28px; line-height: 1.55; }
.public-card h2 { font-size: 38px; }
.centered { margin-top: 18px; text-align: center; }
.inline-center { display: flex; justify-content: center; margin-top: 20px; }
.code-input { height: 64px; font-size: 28px; font-weight: 800; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.password-rules { margin: -6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 245px minmax(0, 1fr); }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 245px; display: flex; flex-direction: column; overflow-y: auto; padding: 28px 18px 20px; color: white; background: var(--navy-950); }
.brand--sidebar { padding: 0 12px; }
.brand--sidebar .brand-mark { width: 38px; height: 38px; }
.brand--sidebar strong { font-size: 17px; }
.side-nav { display: grid; gap: 6px; margin-top: 58px; }
.side-nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 13px; color: rgba(255,255,255,.62); border-radius: 9px; font-size: 13px; font-weight: 650; transition: color .16s ease, background-color .16s ease; }
.side-nav a:hover { color: white; background: rgba(255,255,255,.055); }
.side-nav a.is-active { color: white; background: #1a2d38; box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.side-nav a.is-active .nav-icon { color: var(--navy-950); background: var(--lime); border-color: var(--lime); }
.nav-icon { width: 26px; height: 22px; display: grid; place-items: center; color: var(--lime); background: rgba(201,223,84,.08); border: 1px solid rgba(201,223,84,.16); border-radius: 5px; font-size: 8px; font-weight: 900; letter-spacing: .05em; }
.sidebar-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 18px 4px 0; border-top: 1px solid rgba(255,255,255,.1); }
.avatar { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; color: var(--navy-950); background: var(--lime); border-radius: 50%; font-weight: 900; }
.user-mini { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.user-mini strong, .user-mini small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-mini strong { font-size: 11px; }
.user-mini small { margin-top: 3px; color: rgba(255,255,255,.48); font-size: 9px; text-transform: uppercase; }
.icon-button, .menu-button { color: inherit; background: none; border: 0; cursor: pointer; }
.icon-button { padding: 5px 2px; color: rgba(255,255,255,.62); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.main-area { grid-column: 2; min-width: 0; }
.topbar { position: sticky; z-index: 20; top: 0; height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar > div:first-of-type { display: flex; flex-direction: column; }
.topbar .eyebrow { margin: 0 0 3px; font-size: 9px; }
.topbar strong { font-size: 14px; }
.menu-button { display: none; padding: 8px 10px; color: var(--ink); background: #eef3f2; border-radius: 7px; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.gmt-clock { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.live-dot { width: 7px; height: 7px; background: #45af79; border-radius: 50%; box-shadow: 0 0 0 5px rgba(69,175,121,.12); }
.page-content { width: min(1550px, 100%); margin: 0 auto; padding: 36px 34px 70px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.page-heading h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(32px, 3vw, 46px); font-weight: 400; letter-spacing: -.035em; }
.page-heading h1 em { color: var(--teal-700); font-style: normal; }
.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.heading-actions { display: flex; align-items: flex-end; gap: 12px; }
.compact-heading { align-items: center; }
.step-pill { padding: 8px 13px; color: var(--teal-700); background: var(--teal-100); border-radius: 999px; font-size: 11px; font-weight: 800; }
.issue-meta { display: flex; gap: 34px; padding: 0 0 4px; }
.issue-meta span { display: flex; flex-direction: column; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.issue-meta strong { margin-top: 5px; color: var(--ink); font-size: 14px; text-transform: none; letter-spacing: 0; }
.alert { margin-bottom: 18px; padding: 13px 16px; border: 1px solid; border-radius: 10px; font-size: 13px; font-weight: 650; }
.alert--success { color: #176342; background: #e9f7ef; border-color: #bde4cd; }
.alert--error { color: #922f36; background: #fff0f0; border-color: #f0c4c7; }
.window-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; min-height: 82px; margin-bottom: 22px; padding: 15px 20px; border: 1px solid; border-radius: 13px; }
.window-banner.is-open { background: #eef8f2; border-color: #c7e7d3; }
.window-banner.is-closed { background: #fff6ea; border-color: #ecd6b0; }
.window-icon { width: 40px; height: 40px; display: grid; place-items: center; color: white; background: #319066; border-radius: 50%; font-size: 18px; font-weight: 900; }
.is-closed .window-icon { background: var(--warning); }
.window-banner > div:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.window-banner strong { font-size: 13px; }
.status-label { color: #247a55; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.is-closed .status-label { color: #94601a; }
.countdown { display: flex; flex-direction: column; align-items: flex-end; padding-left: 22px; border-left: 1px solid rgba(0,0,0,.1); }
.countdown small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.countdown strong { margin-top: 2px; font-size: 20px; font-variant-numeric: tabular-nums; }
.metric-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.metric-card { min-width: 0; min-height: 137px; display: flex; flex-direction: column; justify-content: center; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.metric-card--dark { color: white; background: var(--navy-900); border-color: var(--navy-900); }
.metric-card--alert { background: #fff8ed; border-color: #ebca91; }
.metric-label { margin-bottom: 12px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.metric-card--dark .metric-label { color: rgba(255,255,255,.52); }
.metric-card > strong { overflow: hidden; text-overflow: ellipsis; font-family: Georgia, serif; font-size: clamp(23px, 2vw, 32px); font-weight: 400; white-space: nowrap; }
.trend { width: fit-content; margin-top: 11px; padding: 4px 7px; color: #19754e; background: #e9f7ef; border-radius: 5px; font-size: 9px; font-weight: 800; }
.trend--light { color: var(--lime); background: rgba(201,223,84,.1); }
.metric-foot { margin-top: 11px; color: var(--muted); font-size: 10px; }
.operation-card { margin-bottom: 22px; overflow: hidden; box-shadow: none; }
.operation-characteristics { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); }
.operation-characteristics > div { min-width: 0; padding: 17px 18px; border-right: 1px solid var(--line); }
.operation-characteristics > div:last-child { border-right: 0; }
.operation-characteristics small { display: block; margin-bottom: 7px; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.operation-characteristics strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.progress-track { height: 5px; margin-top: 18px; overflow: hidden; background: #e6eceb; border-radius: 999px; }
.progress-track span { display: block; height: 100%; background: var(--teal-600); border-radius: inherit; }
.card, .entry-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.entry-panel { margin-bottom: 22px; overflow: hidden; }
.entry-panel summary { min-height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; list-style: none; cursor: pointer; }
.entry-panel summary::-webkit-details-marker { display: none; }
.entry-panel summary span:first-child { display: flex; flex-direction: column; gap: 5px; }
.entry-panel summary strong { font-size: 16px; }
.entry-panel summary small { color: var(--muted); font-size: 11px; }
.summary-action { color: var(--teal-700); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.entry-form { padding: 24px 22px 22px; border-top: 1px solid var(--line); background: #fbfcfc; }
.import-form { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr) auto; align-items: center; gap: 20px; }
.import-form p { margin: 0 0 8px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.form-grid { display: grid; gap: 17px; }
.form-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.upload-row { display: grid; grid-template-columns: minmax(300px, 1.4fr) minmax(220px, .7fr) auto; align-items: stretch; gap: 16px; margin-top: 20px; }
.amount-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(155px, 1fr)); gap: 8px; }
.dropzone { min-height: 84px; display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: white; border: 1px dashed #aababc; border-radius: 10px; cursor: pointer; }
.dropzone.is-dragging { background: var(--teal-100); border-color: var(--teal-600); }
.dropzone input { display: none; }
.upload-icon { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; color: var(--teal-700); background: var(--teal-100); border-radius: 9px; font-size: 22px; }
.dropzone > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dropzone strong { font-size: 12px; }
.dropzone small { color: var(--muted); font-size: 10px; }
.dropzone em { overflow: hidden; color: var(--teal-700); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.amount-preview { display: flex; flex-direction: column; justify-content: center; padding: 13px 16px; background: var(--navy-900); border-radius: 10px; color: white; }
.amount-preview small { color: rgba(255,255,255,.55); font-size: 9px; text-transform: uppercase; }
.amount-preview strong { margin: 6px 0; color: var(--lime); font-size: 18px; }
.amount-preview span { color: rgba(255,255,255,.48); font-size: 9px; }
.locked-callout { display: flex; gap: 16px; margin-bottom: 22px; padding: 19px 22px; color: #5c4a2a; background: #fff9ef; border: 1px dashed #d9c195; border-radius: 13px; }
.locked-callout > span { font-size: 24px; }
.locked-callout p { margin: 5px 0 0; color: #806f50; font-size: 12px; }
.table-card { margin-bottom: 22px; overflow: hidden; box-shadow: none; }
.card-head { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.card-head .eyebrow { margin-bottom: 3px; font-size: 8px; }
.card-head h2 { margin: 0; font-family: Georgia, serif; font-size: 23px; font-weight: 400; }
.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.table-count { padding: 6px 9px; color: var(--muted); background: #f1f4f4; border-radius: 6px; font-size: 10px; font-weight: 750; }
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; min-width: 1220px; border-collapse: collapse; font-size: 10px; }
.data-table th { position: sticky; top: 0; padding: 11px 12px; color: #617079; background: #f4f7f6; border-bottom: 1px solid var(--line); font-size: 8px; font-weight: 850; text-align: left; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.data-table td { padding: 12px; border-bottom: 1px solid #edf1f1; vertical-align: middle; white-space: nowrap; }
.data-table tbody tr { transition: background-color .14s ease; }
.data-table tbody tr:hover { background: #f9fbfa; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td small { display: block; margin-top: 3px; color: #8a969c; font-size: 8px; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .confirmed { color: #16714b; }
.row-number { color: #9aa4a9; }
.code-chip, .status-chip { display: inline-flex; padding: 4px 6px; border-radius: 5px; font-size: 8px; font-weight: 850; }
.code-chip { color: var(--teal-700); background: var(--teal-100); }
.file-link, .text-link, .text-button { color: var(--teal-700); font-size: 10px; font-weight: 800; }
.file-link { display: inline-flex; padding: 6px 8px; background: #edf7f5; border-radius: 6px; }
.bulletin-upload { margin-top: 6px; }
.bulletin-upload summary { color: var(--teal-700); cursor: pointer; font-size: 9px; font-weight: 800; }
.bulletin-upload form { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.bulletin-upload input[type="file"] { max-width: 170px; font-size: 9px; }
.bulletin-upload .button { padding: 7px 9px; font-size: 8px; }
.text-button { padding: 0; background: none; border: 0; cursor: pointer; }
.empty-state { padding: 38px !important; color: var(--muted); text-align: center !important; }
.filter-card { margin-bottom: 22px; padding: 17px 20px; box-shadow: none; }
.filters { display: flex; align-items: flex-end; gap: 14px; }
.filters label { min-width: 150px; }
.filters .text-link { align-self: center; margin: 15px 0 0 4px; }
.snapshot-card { overflow: hidden; box-shadow: none; }
.snapshot-list article { display: grid; grid-template-columns: 92px 1fr auto 70px; align-items: center; gap: 16px; padding: 15px 22px; border-bottom: 1px solid #edf1f1; font-size: 11px; }
.snapshot-list article:last-child { border-bottom: 0; }
.snapshot-list article > div { display: flex; flex-direction: column; gap: 3px; }
.snapshot-list small { color: var(--muted); }
.snapshot-list a { color: var(--teal-700); font-weight: 850; }
.snapshot-date { color: var(--muted); font-variant-numeric: tabular-nums; }
.onboarding-form { padding: 26px; }
.section-title { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.section-title--border { margin-top: 30px; padding-top: 27px; border-top: 1px solid var(--line); }
.section-title > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--teal-700); background: var(--teal-100); border-radius: 8px; font-size: 10px; font-weight: 850; }
.section-title h2 { margin: 0; font-family: Georgia, serif; font-size: 21px; font-weight: 400; }
.section-title p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-actions p { max-width: 530px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.admin-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 22px; align-items: start; }
.user-form { display: grid; gap: 16px; padding: 0 22px 22px; box-shadow: none; }
.user-form .card-head { margin: 0 -22px 2px; }
.form-hint { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.status-chip.active { color: #176342; background: #e9f7ef; }
.status-chip.inactive { color: #922f36; background: #fff0f0; }
.status-chip.pending { color: #805615; background: #fff3db; }
.status-chip.warning, .status-chip.missing { color: #8b5815; background: #fff0d3; }
.invite-card { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.2fr); align-items: center; gap: 30px; margin-bottom: 22px; padding: 22px; box-shadow: none; }
.invite-card h2 { margin: 0; font-family: Georgia, serif; font-size: 22px; font-weight: 400; }
.invite-card p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.copy-field { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.row-actions { display: flex; align-items: center; gap: 12px; }
.admin-table { min-width: 900px; }
.audit-card { margin-top: 22px; }
.audit-shortcut { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; padding: 22px; }
.audit-shortcut h2 { margin: 0; font-family: Georgia, serif; font-size: 23px; font-weight: 400; }
.audit-shortcut p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.control-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.section-tabs { display: flex; gap: 5px; margin: -10px 0 22px; padding: 5px; overflow-x: auto; background: #e9efee; border: 1px solid #dce5e4; border-radius: 11px; scrollbar-width: thin; }
.section-tabs a { flex: 0 0 auto; padding: 9px 13px; color: #586871; border-radius: 7px; font-size: 10px; font-weight: 800; transition: color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.section-tabs a:hover { color: var(--navy-900); background: rgba(255,255,255,.55); }
.section-tabs a.is-active { color: var(--navy-900); background: white; box-shadow: 0 2px 8px rgba(16,36,49,.08); }
.sgi-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.action-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 22px; }
.action-card h2 { margin: 0; font-family: Georgia, serif; font-size: 23px; font-weight: 400; }
.action-card p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.action-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--teal-700); background: var(--teal-100); border-radius: 10px; font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.snapshot-anomaly { background: #fffaf2; }
.settings-form { padding: 26px; }
.window-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.window-settings fieldset { min-width: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 11px; }
.window-settings legend { padding: 0 7px; color: var(--teal-700); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.window-settings fieldset > span { padding-bottom: 14px; color: var(--muted); }
.settings-warning { margin-top: 20px; padding: 13px 15px; color: #6f551f; background: #fff8e9; border: 1px solid #ecd6aa; border-radius: 9px; font-size: 11px; line-height: 1.5; }
.compact-lock { margin: 0 0 16px; }
input[readonly] { color: #6f7c82; background: #f1f4f4; cursor: not-allowed; }
.control-overview { min-width: 940px; }
.control-table { min-width: 1050px; }
.consolidation-table { min-width: 1120px; }
.audit-table { min-width: 1250px; }
.row-anomaly { background: #fffaf2; }
.row-anomaly:hover { background: #fff5e5 !important; }
.completion-cell { min-width: 125px; display: grid; gap: 7px; }
.completion-cell > span { height: 5px; overflow: hidden; background: #e5eceb; border-radius: 99px; }
.completion-cell i { display: block; height: 100%; background: var(--teal-600); border-radius: inherit; }
.row-anomaly .completion-cell i { background: var(--warning); }
.level-chip { display: inline-flex; padding: 5px 8px; color: var(--navy-800); background: #edf1f2; border-radius: 6px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.level-chip--operation { color: white; background: var(--navy-800); }
.level-chip--day { color: var(--teal-700); background: var(--teal-100); }
.file-link--warning { color: #915d18; }
code { color: #3b505a; font-family: "Cascadia Code", Consolas, monospace; font-size: 10px; }
.audit-filters { grid-template-columns: repeat(6, minmax(120px, 1fr)) auto auto; }

.js .page-content > *, .js .auth-panel > * { opacity: 0; transform: translateY(5px); }
.js.is-ready .page-content > *, .js.is-ready .auth-panel > * { opacity: 1; transform: none; transition: opacity .2s ease-out, transform .2s ease-out; }
button:disabled { cursor: wait; opacity: .72; }
.button.is-loading { cursor: progress; transform: none; box-shadow: none; }
.error-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.error-page > span { width: 60px; height: 60px; display: grid; place-items: center; color: #9b3138; background: #fff0f0; border-radius: 50%; font-size: 30px; font-weight: 900; }
.error-page h1 { margin: 22px 0 8px; font-family: Georgia, serif; font-size: 42px; font-weight: 400; }
.error-page p { margin: 0 0 24px; color: var(--muted); }

@media (max-width: 1180px) {
    .operation-characteristics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .operation-characteristics > div { border-bottom: 1px solid var(--line); }
    .amount-preview-grid { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .upload-row { grid-template-columns: 1fr 1fr; }
    .import-form { grid-template-columns: 1fr 1fr; }
    .import-form > .button { grid-column: span 2; }
    .upload-row .button { grid-column: span 2; }
    .auth-shell { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .auth-shell { display: block; background: #fbfcfc; }
    .auth-visual { display: none; }
    .auth-panel { min-height: 100vh; padding: 30px; }
    .mobile-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 55px; }
    .app-shell { display: block; }
    .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
    .sidebar.is-open { transform: translateX(0); }
    .main-area { grid-column: auto; }
    .menu-button { display: block; }
    .topbar { justify-content: flex-start; gap: 16px; padding: 0 20px; }
    .gmt-clock { margin-left: auto; }
    .page-content { padding: 26px 20px 60px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .issue-meta { width: 100%; justify-content: space-between; }
    .form-grid--3, .form-grid--2 { grid-template-columns: 1fr 1fr; }
    .span-3 { grid-column: span 2; }
    .filters { flex-wrap: wrap; }
    .admin-grid { grid-template-columns: 1fr; }
    .audit-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .window-settings { grid-template-columns: 1fr; }
    .invite-card { grid-template-columns: 1fr; }
    .heading-actions { align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 580px) {
    .auth-panel { padding: 24px; }
    .login-card h2 { font-size: 38px; }
    .topbar { height: 68px; }
    .topbar .eyebrow { display: none; }
    .gmt-clock { font-size: 10px; }
    .page-content { padding: 22px 14px 50px; }
    .page-heading h1 { font-size: 34px; }
    .issue-meta { gap: 14px; }
    .window-banner { grid-template-columns: auto 1fr; }
    .countdown { grid-column: span 2; align-items: flex-start; padding: 10px 0 0; border-top: 1px solid rgba(0,0,0,.1); border-left: 0; }
    .metric-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 112px; }
    .form-grid--4, .form-grid--3, .form-grid--2 { grid-template-columns: 1fr; }
    .span-2, .span-3 { grid-column: auto; }
    .upload-row { grid-template-columns: 1fr; }
    .import-form { grid-template-columns: 1fr; }
    .import-form > .button { grid-column: auto; }
    .upload-row .button { grid-column: auto; }
    .form-actions { align-items: stretch; flex-direction: column; }
    .snapshot-list article { grid-template-columns: 1fr auto; }
    .snapshot-date { grid-column: span 2; }
    .filters { display: grid; grid-template-columns: 1fr 1fr; }
    .filters label { min-width: 0; }
    .filters label:nth-child(4) { grid-column: span 2; }
    .copy-field { grid-template-columns: 1fr; }
    .auth-links { flex-direction: column; text-align: center; }
    .control-metrics { grid-template-columns: 1fr; }
    .sgi-action-grid { grid-template-columns: 1fr; }
    .action-card { grid-template-columns: auto 1fr; }
    .action-card .button { grid-column: span 2; }
    .audit-shortcut { align-items: stretch; flex-direction: column; }
    .audit-filters { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
    .js .page-content > *, .js .auth-panel > * { opacity: 1; transform: none; }
}
