/* =========================================================================
   AOA Web Access — high-fidelity prototype
   Tokens follow the AOA Design System (Brand Guidelines, Feb 2025).
   ========================================================================= */
:root {
  --forest: #265530;
  --forest-deep: #1C4024;
  --forest-ink: #163220;
  --forest-2: #64A772;
  --forest-tint: #E7F0E8;
  --gold: #FDC707;
  --gold-hover: #F2BD00;
  --gold-2: #E8A71D;
  --gold-tint: #FFF6D1;
  --clay: #C87140;
  --sky: #9AC4CA;
  --sky-tint: #E3EFF1;
  --rock: #BAB9C0;
  --blue: #3F41BF;
  --gishwati: #8A8E50;
  --stone: #6F6B5B;
  --sand: #E3E0D5;
  --sand-soft: #EFEDE6;
  --cream: #FAF9F5;
  --white: #FFFFFF;
  --danger: #8A3535;
  --danger-tint: #F5E1DE;

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

  --r-sm: 4px;
  --shadow-1: 0 1px 2px rgba(22, 50, 32, .06), 0 1px 1px rgba(22, 50, 32, .04);
  --shadow-2: 0 8px 24px rgba(22, 50, 32, .12), 0 2px 6px rgba(22, 50, 32, .08);
  --shadow-3: 0 24px 64px rgba(22, 50, 32, .24);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--forest); font-family: var(--sans); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); overflow-wrap: anywhere; }
.muted { color: var(--stone); }
.small { font-size: 14px; line-height: 20px; }
.xsmall { font-size: 13px; line-height: 18px; }
.strong { font-weight: 700; }
.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.grow { flex: 1 1 auto; min-width: 0; }
.between { justify-content: space-between; }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--gold); color: var(--forest); padding: 8px 14px; font-weight: 700; text-decoration: none; transition: top .15s; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--forest); color: var(--cream); box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.topbar__inner { max-width: 1360px; margin: 0 auto; padding: 0 40px; height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 18px; color: inherit; text-decoration: none; flex: none; }
.brand img { height: 30px; width: auto; }
.brand__rule { width: 1px; height: 26px; background: rgba(250,249,245,.3); }
.brand__name { font-family: var(--serif); font-size: 21px; line-height: 26px; color: var(--cream); white-space: nowrap; }
.nav { display: flex; align-self: stretch; gap: 2px; flex: 1 1 auto; min-width: 0; }
.nav a { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--sand); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; transition: color .15s, background .15s; }
.nav a:hover { color: var(--cream); background: rgba(255,255,255,.05); }
.nav a[aria-current="page"] { color: var(--cream); font-weight: 600; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 4px; background: var(--gold); }
.nav .icon { display: none; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; background: var(--gold); color: var(--forest); font-size: 12px; font-weight: 700; line-height: 1; }
.header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.icon-btn { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: inherit; border-radius: 9999px; transition: background .15s; }
.icon-btn:hover { background: rgba(255,255,255,.1); }
.icon-btn .dot { position: absolute; top: 9px; right: 9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9999px; background: var(--gold); color: var(--forest); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--forest); }
.user-btn { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: inherit; padding: 4px 8px 4px 4px; border-radius: 9999px; transition: background .15s; }
.user-btn:hover { background: rgba(255,255,255,.1); }
.user-btn__text { text-align: left; line-height: 16px; }
.user-btn__name { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; }
.user-btn__role { display: block; font-size: 12px; color: var(--sand); white-space: nowrap; }

.avatar { width: 36px; height: 36px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; flex: none; font-weight: 700; font-size: 13px; letter-spacing: .02em; color: var(--cream); background: var(--forest-2); }
.avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.avatar--lg { width: 44px; height: 44px; font-size: 15px; }

/* ---------- Popovers (notifications, user menu) ---------- */
.popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; width: 380px; max-width: calc(100vw - 24px); background: var(--white); color: var(--forest); border: 1px solid var(--sand); box-shadow: var(--shadow-2); animation: pop .16s var(--ease); }
.popover__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--sand); }
.popover__title { margin: 0; font-size: 16px; font-weight: 700; }
.popover__list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.notif { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--sand-soft); text-decoration: none; color: inherit; }
.notif:hover { background: var(--cream); }
.notif.is-unread { background: var(--gold-tint); }
.notif.is-unread:hover { background: #FFF0B8; }
.notif__icon { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--sand); }
.notif__text { font-size: 14px; line-height: 20px; }
.notif__time { font-size: 12px; color: var(--stone); margin-top: 2px; }
.menu { padding: 6px 0; }
.menu__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; min-height: 44px; border: 0; background: transparent; text-align: left; color: var(--forest); font-size: 15px; text-decoration: none; }
.menu__item:hover { background: var(--cream); }
.menu__sep { height: 1px; background: var(--sand); margin: 6px 0; }
.wrap-rel { position: relative; }

/* ---------- Layout ---------- */
.page { max-width: 1360px; margin: 0 auto; padding: 40px 40px 80px; }
.page--narrow { max-width: 1080px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 6px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
h1, .h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 50px; letter-spacing: -.005em; }
.h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 34px; }
.h3 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 700; }
.lede { margin: 10px 0 0; color: var(--stone); max-width: 680px; font-size: 17px; line-height: 26px; }
.label-caps { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }

.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split__main { flex: 999 1 600px; min-width: 0; }
.split__side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.card { background: var(--white); border: 1px solid var(--sand); box-shadow: var(--shadow-1); }
.card__pad { padding: 32px; }
.card__head { padding: 18px 24px; border-bottom: 1px solid var(--sand); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-forest { background: var(--forest); color: var(--cream); padding: 28px; }
.panel-sand { background: var(--sand); padding: 24px; }
.quote { margin: 0; font-size: 15px; line-height: 23px; background: var(--cream); border: 1px solid var(--sand); padding: 12px 14px; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .08s, box-shadow .15s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--forest); }
.btn--gold:hover { background: var(--gold-hover); color: var(--forest); }
.btn--forest { background: var(--forest); color: var(--cream); }
.btn--forest:hover { background: var(--forest-deep); color: var(--cream); }
.btn--outline { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.btn--outline:hover { background: var(--forest-tint); }
.btn--ghost { background: var(--white); color: var(--forest); box-shadow: inset 0 0 0 1px var(--rock); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--forest); }
.btn--danger { background: var(--danger); color: var(--white); }
.btn--danger:hover { background: #742B2B; }
.btn--link { min-height: 44px; padding: 0 8px; background: transparent; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; gap: 8px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 9999px; border: 2.5px solid currentColor; border-color: var(--forest) var(--forest) transparent transparent; animation: spin .7s linear infinite; }
.btn--forest.is-loading::after { border-color: var(--cream) var(--cream) transparent transparent; }

.choice { position: relative; text-align: left; padding: 14px 16px 14px 46px; min-height: 44px; color: var(--forest); background: var(--white); border: 2px solid var(--sand); transition: border-color .15s, background .15s; }
.choice::before { content: ""; position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; border-radius: 9999px; border: 2px solid var(--rock); background: var(--white); transition: all .15s; }
.choice:hover { border-color: var(--rock); }
.choice[aria-checked="true"], .choice[aria-pressed="true"] { background: var(--cream); border-color: var(--forest); }
.choice[aria-checked="true"]::before, .choice[aria-pressed="true"]::before { border-color: var(--forest); box-shadow: inset 0 0 0 4px var(--white); background: var(--forest); }
.choice__title { display: block; font-weight: 700; font-size: 15px; line-height: 20px; }
.choice__sub { display: block; font-size: 13px; line-height: 18px; color: var(--stone); margin-top: 2px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--min, 180px), 1fr)); gap: 8px; }

.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--rock); background: var(--white); color: var(--forest); font-size: 14px; font-weight: 600; transition: all .15s; }
.chip:hover { border-color: var(--forest); }
.chip[aria-pressed="true"] { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.chip[aria-pressed="true"] .chip__n { color: var(--sand); }
.chip__n { font-weight: 500; color: var(--stone); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 12px; line-height: 16px; font-weight: 700; padding: 3px 8px; white-space: nowrap; }
.badge--caps { letter-spacing: .08em; text-transform: uppercase; }
.badge .bdot { width: 7px; height: 7px; border-radius: 9999px; background: currentColor; }
.b-forest { background: var(--forest); color: var(--cream); }
.b-gold { background: var(--gold); color: var(--forest); }
.b-sky { background: var(--sky); color: var(--forest); }
.b-sand { background: var(--sand); color: var(--forest); }
.b-muted { background: var(--sand); color: var(--stone); }
.b-danger { background: var(--danger-tint); color: var(--danger); }
.b-green { background: var(--forest-tint); color: var(--forest); }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 8px; background: var(--cream); border: 1px solid var(--sand); white-space: nowrap; }

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; }
.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field-hint { margin: 6px 0 0; font-size: 13px; line-height: 18px; color: var(--stone); }
.field-error { margin: 6px 0 0; font-size: 13px; line-height: 18px; color: var(--danger); display: flex; gap: 6px; align-items: flex-start; }
.input, .textarea { width: 100%; border: 1px solid var(--rock); border-radius: var(--r-sm); background: var(--white); color: var(--forest); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.input { min-height: 48px; padding: 0 14px; }
.input--mono { font-family: var(--mono); }
.textarea { padding: 12px 14px; line-height: 22px; resize: vertical; min-height: 96px; }
.input:hover, .textarea:hover { border-color: var(--stone); }
.input:focus, .textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(232,167,29,.45); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-tint); }
.input::placeholder, .textarea::placeholder { color: #8E8A7B; }
.input-wrap { position: relative; }
.input-wrap .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--stone); pointer-events: none; }
.input-wrap .input { padding-left: 44px; }
.counter { float: right; font-weight: 500; color: var(--stone); font-size: 13px; }
.checkbox { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--forest); margin: 0; }

.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; font-size: 14px; line-height: 20px; }
.callout .icon { margin-top: 0; }
.callout--danger { background: var(--danger-tint); color: var(--danger); }
.callout--gold { background: var(--gold-tint); color: var(--forest); border: 1px solid #F3DE8A; }
.callout--info { background: var(--cream); color: var(--forest); border: 1px solid var(--sand); }
.callout--green { background: var(--forest-tint); color: var(--forest); }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 24px; margin-bottom: 24px; background: var(--gold); color: var(--forest); }

.form-foot { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--sand); }
.step { display: flex; gap: 14px; align-items: center; margin: 32px 0 14px; }
.step:first-child { margin-top: 0; }
.step__num { width: 32px; height: 32px; flex: none; border-radius: 9999px; display: flex; align-items: center; justify-content: center; background: var(--forest); color: var(--cream); font-weight: 700; font-size: 15px; }
.step__title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { padding: 20px 24px; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s var(--ease), box-shadow .15s; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: inherit; }
.stat__num { font-family: var(--serif); font-size: 46px; line-height: 52px; margin-top: 8px; }
.stat__sub { font-size: 14px; line-height: 20px; }
.stat--forest { background: var(--forest); color: var(--cream); }
.stat--forest .label-caps, .stat--forest .stat__sub { color: var(--sand); }
.stat--gold { background: var(--gold); }
.stat--gold .label-caps { color: var(--forest); }
.stat--sand { background: var(--sand); }
.stat--sand .stat__sub { color: var(--stone); }

/* ---------- Tabs & toolbar ---------- */
.tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--sand); scrollbar-width: none; }
.tab { flex: none; display: flex; align-items: center; gap: 10px; background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 16px 20px 13px; min-height: 56px; font-size: 15px; font-weight: 500; color: var(--stone); transition: color .15s, background .15s; }
.tab:hover { color: var(--forest); background: var(--cream); }
.tab[aria-selected="true"] { color: var(--forest); border-bottom-color: var(--forest); font-weight: 700; }
.tab__dot { width: 10px; height: 10px; flex: none; }
.tab__n { font-size: 13px; font-weight: 600; background: var(--sand-soft); color: var(--stone); padding: 1px 7px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--sand); }
.toolbar .input-wrap { flex: 1 1 260px; }
.select { min-height: 44px; padding: 0 36px 0 12px; border: 1px solid var(--rock); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23265530' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font-size: 14px; font-weight: 600; border-radius: var(--r-sm); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; padding: 12px; background: var(--cream); border-bottom: 1px solid var(--sand); white-space: nowrap; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; text-align: right; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--sand-soft); vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #FCFBF8; }
.table tbody tr.is-new { animation: flash 1.6s var(--ease); }
.entry { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.entry__icon { width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--sand-soft); color: var(--forest); }
.entry__icon--black { background: var(--danger-tint); color: var(--danger); }
.entry__icon--perm { background: var(--forest-tint); }
.entry__icon--temp { background: var(--gold-tint); }
.entry__pattern { font-family: var(--mono); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.entry__note { font-size: 13px; line-height: 18px; color: var(--stone); }
.row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; }
.expiry { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 130px; }
.expiry__bar { width: 120px; height: 4px; background: var(--sand); }
.expiry__bar > span { display: block; height: 4px; background: var(--forest-2); }
.expiry.is-soon .expiry__bar > span { background: var(--gold-2); }
.mobile-list { display: none; list-style: none; margin: 0; padding: 0; }
.mobile-list li { padding: 16px 20px; border-bottom: 1px solid var(--sand-soft); }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 18px 24px; border-bottom: 1px solid var(--sand-soft); transition: background .15s; }
.list > li:last-child { border-bottom: 0; }
.list > li.is-soon { background: var(--gold-tint); }
.list > li.is-new { animation: flash 1.6s var(--ease); }
.list__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.bar { margin-top: 12px; height: 6px; background: var(--sand); overflow: hidden; }
.bar > span { display: block; height: 6px; background: var(--forest-2); transition: width .4s var(--ease); }
.is-soon .bar > span { background: var(--gold-2); }
.bar-legend { display: flex; justify-content: space-between; font-size: 13px; line-height: 18px; margin-top: 6px; color: var(--stone); }

/* ---------- Timeline (request progress) ---------- */
.timeline { display: flex; gap: 0; margin-top: 12px; }
.timeline__step { flex: 1; position: relative; padding-top: 14px; font-size: 12px; line-height: 16px; color: var(--stone); }
.timeline__step::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 2px; background: var(--sand); }
.timeline__step::after { content: ""; position: absolute; top: 0; left: 0; width: 10px; height: 10px; border-radius: 9999px; background: var(--white); border: 2px solid var(--rock); }
.timeline__step.is-done::before { background: var(--forest-2); }
.timeline__step.is-done::after { background: var(--forest-2); border-color: var(--forest-2); }
.timeline__step.is-current { color: var(--forest); font-weight: 700; }
.timeline__step.is-current::after { border-color: var(--forest); background: var(--gold); }
.timeline__step.is-bad::after { border-color: var(--danger); background: var(--danger); }

/* ---------- Queue (admin review) ---------- */
.queue { list-style: none; margin: 0; padding: 0; }
.queue li { border-bottom: 1px solid var(--sand-soft); }
.queue button { display: block; width: 100%; text-align: left; border: 0; border-left: 4px solid transparent; padding: 16px 20px; background: var(--white); color: var(--forest); transition: background .12s; }
.queue button:hover { background: var(--cream); }
.queue button[aria-current="true"] { background: var(--cream); border-left-color: var(--forest); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: 24px; }

/* ---------- Request cards (teacher) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.req { display: flex; flex-direction: column; animation: rise .25s var(--ease) both; }
.req__body { padding: 22px 24px 20px; flex: 1; }
.req__foot { padding: 16px 24px 22px; border-top: 1px solid var(--sand-soft); background: #FCFBF8; }
.req__result { padding: 16px 24px 20px; display: flex; gap: 12px; align-items: flex-start; }
.req__result--ok { background: var(--forest-tint); }
.req__result--no { background: var(--sand-soft); }
.who { display: flex; align-items: center; gap: 12px; }

/* ---------- Empty / skeleton ---------- */
.empty { padding: 56px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty__art { width: 72px; height: 72px; border-radius: 9999px; background: var(--forest-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; color: var(--forest); }
.empty__title { margin: 0; font-size: 18px; font-weight: 700; }
.empty__text { margin: 0; color: var(--stone); max-width: 380px; font-size: 15px; }
.skel { background: linear-gradient(90deg, var(--sand-soft) 0%, #F7F5EF 50%, var(--sand-soft) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skel-line { height: 14px; margin: 10px 0; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; width: min(560px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 18px; background: var(--forest-ink); color: var(--cream); box-shadow: var(--shadow-3); animation: toastIn .25s var(--ease); font-size: 15px; line-height: 21px; }
.toast.is-leaving { animation: toastOut .2s var(--ease) forwards; }
.toast__icon { width: 28px; height: 28px; border-radius: 9999px; background: var(--gold); color: var(--forest); display: flex; align-items: center; justify-content: center; flex: none; }
.toast--warn .toast__icon { background: var(--danger-tint); color: var(--danger); }
.toast__action { margin-left: auto; border: 0; background: transparent; color: var(--gold); font-weight: 700; font-size: 14px; padding: 8px 10px; min-height: 40px; text-transform: uppercase; letter-spacing: .06em; }
.toast__close { border: 0; background: transparent; color: var(--sand); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex: none; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(22, 50, 32, .55); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .18s ease; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--white); box-shadow: var(--shadow-3); animation: pop .2s var(--ease); }
.modal--wide { width: min(640px, 100%); }
.modal__body { padding: 28px 28px 8px; }
.modal__icon { width: 48px; height: 48px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background: var(--gold-tint); color: var(--forest); }
.modal__icon--danger { background: var(--danger-tint); color: var(--danger); }
.modal__title { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 34px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 20px 28px 24px; flex-wrap: wrap; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: flex; flex-wrap: wrap; }
.login__brand { flex: 1 1 520px; min-height: 420px; background: var(--forest); color: var(--cream); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px 56px; }
.login__brand img { height: 40px; width: auto; align-self: flex-start; position: relative; }
.login__art { position: absolute; right: -120px; bottom: -110px; width: 560px; height: 560px; }
.login__art .ring { transform-origin: 300px 300px; animation: breathe 9s ease-in-out infinite; }
.login__pitch { position: relative; max-width: 520px; padding: 48px 0; }
.login__kicker { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.login__motto { font-size: 60px; line-height: 64px; }
.login__intro { margin: 20px 0 0; font-size: 18px; line-height: 28px; color: var(--sand); max-width: 440px; }
.login__karibu { position: relative; margin: 0; font-size: 14px; color: var(--sand); }
.login__main { flex: 1 1 460px; display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.login__box { width: 100%; max-width: 440px; animation: rise .4s var(--ease) both; }
.login__or { display: flex; align-items: center; gap: 16px; margin: 28px 0; font-size: 13px; color: var(--stone); }
.login__or span { flex: 1; height: 1px; background: var(--rock); }
.pw { display: flex; border: 1px solid var(--rock); border-radius: var(--r-sm); background: var(--white); transition: border-color .15s, box-shadow .15s; }
.pw:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(232,167,29,.45); }
.pw input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; padding: 0 14px; font-size: 15px; outline: none; }
.pw button { min-width: 64px; border: 0; background: transparent; font-size: 14px; font-weight: 600; color: var(--forest); }
.account { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--sand-soft); background: var(--white); text-align: left; min-height: 64px; transition: background .12s; }
.account:hover { background: var(--cream); }
.account:last-child { border-bottom: 0; }

/* ---------- Email preview ---------- */
.email-bg { background: var(--sand); padding: 40px 16px 80px; min-height: calc(100vh - var(--header-h)); }
.email { max-width: 600px; margin: 0 auto; }
.email__meta { font-size: 13px; line-height: 18px; color: var(--stone); margin: 16px 0; display: flex; flex-direction: column; gap: 2px; }
.email__meta strong { color: var(--forest); }
.email__card { background: var(--cream); box-shadow: var(--shadow-2); }
.email__head { background: var(--forest); padding: 28px 36px; }
.email__head img { height: 30px; }
.email__body { padding: 36px; }

/* ---------- Activity ---------- */
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--sand-soft); }
.activity__icon { width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--sand-soft); }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav { display: none; }

/* ---------- Motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(16px); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes flash { 0% { background: var(--gold-tint); } 100% { background: transparent; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.view { animation: fade .2s ease; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .user-btn__text { display: none; }
  .topbar__inner { gap: 16px; padding: 0 24px; }
  .page { padding: 32px 24px 80px; }
}
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .nav { display: none; }
  .brand img { height: 26px; }
  .brand__rule, .brand__name { display: none; }
  .topbar__inner { justify-content: space-between; }
  .page { padding: 24px 16px 112px; }
  h1, .h1 { font-size: 34px; line-height: 40px; }
  .lede { font-size: 16px; line-height: 24px; }
  .card__pad { padding: 20px; }
  .panel-forest { padding: 22px; }
  .cards { grid-template-columns: 1fr; }
  .table-wrap { display: none; }
  .mobile-list { display: block; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px 16px; }
  .stat__num { font-size: 34px; line-height: 40px; }
  .banner { padding: 14px 16px; }
  .toasts { bottom: 88px; }
  .popover { position: fixed; top: calc(var(--header-h) + 6px); right: 12px; left: 12px; width: auto; }
  .bottom-nav { display: flex; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--white); border-top: 1px solid var(--sand); box-shadow: 0 -4px 16px rgba(22,50,32,.06); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; color: var(--stone); text-decoration: none; font-size: 12px; font-weight: 600; position: relative; }
  .bottom-nav a[aria-current="page"] { color: var(--forest); }
  .bottom-nav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; background: var(--forest); }
  .bottom-nav .count { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 11px; }
  .login__brand { padding: 28px 24px; min-height: 0; flex-basis: 100%; }
  .login__pitch { padding: 32px 0 24px; }
  .login__motto { font-size: 40px; line-height: 44px; }
  .login__intro { font-size: 16px; line-height: 24px; }
  .login__art { width: 320px; height: 320px; right: -110px; bottom: -120px; }
  .login__main { padding: 32px 20px 48px; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal { width: 100%; max-height: 90vh; animation: rise .22s var(--ease); }
  .modal__foot .btn { flex: 1; }
  .email-bg { padding: 16px 0 96px; }
  .email__body, .email__head { padding: 24px; }
}
