/* Ταχυδρομείο — one stylesheet. Direction C (design/boardC.png): an editorial page of warm paper, one huge serif line,
   real still-life objects (envelope, wax seal, olive tree, walnut rack) and ONE olive button per screen.
   Composer: design/composer.png. Light only. Labels live on their containers, never on each item. */
:root {
  --paper: #F4EFE6; --card: #FBF8F2; --ink: #2B2620; --soft: #6F665A; --olive: #5E6B3A; --olive-d: #4C5730; --olive-l: #E6E7D6;
  --amber: #B9822E; --amber-t: #8A5E1C; --red: #9C3B2E; --line: #E2D9C9; --line-d: #CFC3AE; --kraft: #D6BE95; --kraft-d: #6E5232;
  --walnut: #5A3B27; --brass: #B48A3C;
  --serif-d: 'Noto Serif Display', 'Noto Serif', Georgia, serif; --serif: 'Noto Serif', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sb: env(safe-area-inset-bottom, 0px); --tabh: 64px; --gut: 16px;
  color-scheme: only light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.locked, html.locked body { overflow: hidden; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--paper) url(/img/bg_paper.webp) repeat; background-size: 512px auto; color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
#app { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; }
img { max-width: 100%; display: block; -webkit-user-drag: none; user-select: none; }
img.missing { visibility: hidden; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the olive branch falling through a window, top left, like on every board */
.olive-shadow { position: fixed; left: -4vw; top: -2vh; width: min(78vw, 980px); aspect-ratio: 2.254; background: url(/img/shadow_olive.webp) no-repeat left top / contain; pointer-events: none; mix-blend-mode: multiply; opacity: .42; z-index: 0; transform-origin: 10% 0; animation: drift 11s ease-in-out infinite alternate; }
@keyframes drift { from { transform: rotate(-.6deg) translate(0, 0); } to { transform: rotate(.7deg) translate(6px, 4px); } }

.loading { min-height: 70vh; display: grid; place-items: center; font: italic 400 28px/1 var(--serif-d); color: var(--soft); }
.loading span { animation: breathe 2.4s ease-in-out infinite; }

/* ---------- top bar (desktop) + phone header ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 max(var(--gut), env(safe-area-inset-left)) 0 max(var(--gut), env(safe-area-inset-left)); background: rgba(244, 239, 230, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font: 400 22px/1 var(--serif-d); text-decoration: none; letter-spacing: .005em; white-space: nowrap; padding: 10px 0; }
.tabs { display: none; gap: 26px; margin: 0 auto 0 12px; }
.tabs a { text-decoration: none; color: var(--soft); font: 500 14.5px/1 var(--sans); padding: 14px 2px; border-bottom: 1.5px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--olive); }
.mebtn { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; min-width: 44px; justify-content: flex-end; color: var(--soft); font: 500 14.5px/1 var(--sans); }
.mebtn .ini { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line-d); color: var(--ink); font: 400 16px/1 var(--serif-d); }
.mebtn .t { display: none; }
.mebtn[aria-current="page"] .ini { border-color: var(--olive); box-shadow: 0 0 0 1px var(--olive); }

/* ---------- bottom tab bar (phones) ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px max(6px, env(safe-area-inset-left)) calc(6px + var(--sb)); background: rgba(251, 248, 242, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--soft); font: 500 11px/1.1 var(--sans); padding: 6px 0 4px; min-height: 50px; border-radius: 12px; }
.tabbar a svg { width: 25px; height: 25px; }
.tabbar a[aria-current="page"] { color: var(--olive-d); }
.tabbar a[aria-current="page"] svg { stroke-width: 1.9; }
main.scr { position: relative; padding: 18px var(--gut) calc(var(--tabh) + var(--sb) + 40px); max-width: 1320px; margin: 0 auto; }
body.bare main.scr { padding-bottom: calc(var(--sb) + 40px); }
@media (min-width: 900px) {
  :root { --gut: 40px; }
  .tabs { display: flex; }
  .mebtn .t { display: inline; }
  .tabbar { display: none; }
  main.scr { padding-bottom: 72px; padding-top: 28px; }
}

/* ---------- type + buttons ---------- */
h1, h2, h3 { font-weight: 400; margin: 0; }
.h-display { font: 400 clamp(44px, 6.4vw, 96px)/1.02 var(--serif-d); letter-spacing: -.012em; margin: 0; }
.h-page { font: 400 clamp(34px, 4.2vw, 56px)/1.06 var(--serif-d); letter-spacing: -.01em; }
.h-sec { font: 400 24px/1.2 var(--serif-d); }
.it { font-family: var(--serif-d); font-style: italic; }
.soft { color: var(--soft); }
.small { font-size: 14px; }
.caps { font: 500 12.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--olive); background: var(--olive); color: #fff; font: 400 19px/1 var(--serif-d); text-decoration: none; letter-spacing: .01em; white-space: nowrap; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 16px -10px rgba(60, 70, 30, .8); transition: background .2s, transform .15s; }
.btn:hover { background: var(--olive-d); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--olive-d); box-shadow: none; }
.btn.ghost:hover { background: rgba(94, 107, 58, .08); }
.btn.quiet { background: transparent; border-color: var(--line-d); color: var(--ink); box-shadow: none; font: 500 15px/1 var(--sans); min-height: 44px; padding: 0 18px; }
.btn.danger { background: var(--red); border-color: var(--red); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 16px; }
.btn.wide { width: 100%; }
.link { background: none; border: 0; padding: 10px 2px; color: var(--soft); font: 500 15px/1.2 var(--sans); text-decoration: underline; text-decoration-color: var(--line-d); text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.link:hover { color: var(--ink); text-decoration-color: var(--soft); }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-d); background: var(--card); display: grid; place-items: center; color: var(--ink); padding: 0; text-decoration: none; flex: 0 0 auto; }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn:hover { border-color: var(--soft); }

/* ---------- the paper note (alerts, the brake) ---------- */
.kraft { position: relative; background: var(--kraft) linear-gradient(170deg, rgba(255, 255, 255, .22), rgba(120, 80, 30, .08)); color: #2E2213; border-radius: 3px; padding: 22px 22px 18px; box-shadow: 0 1px 1px rgba(60, 40, 10, .18), 0 14px 26px -18px rgba(60, 40, 10, .7); transform: rotate(-.6deg); max-width: 640px; }
.kraft::before { content: ''; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F1D99A, var(--brass) 55%, #6E5220); box-shadow: 0 2px 3px rgba(0, 0, 0, .3); }
.kraft p { margin: 0 0 6px; font: 400 16.5px/1.5 var(--serif); }
.kraft .row { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.kraft .btn.quiet { border-color: rgba(46, 34, 19, .35); color: #2E2213; background: rgba(255, 255, 255, .2); }
.kraft.red { background-color: #E2B9A6; }
.notes { margin: 6px auto 26px; display: grid; justify-items: center; }
.notes .kraft { width: 100%; }
.banner { margin: 0 auto 20px; max-width: 760px; display: flex; gap: 12px; align-items: center; justify-content: center; text-align: center; color: var(--soft); font: 400 15px/1.45 var(--serif); padding: 10px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.banner b { font-weight: 600; color: var(--ink); }

/* ---------- objects (real pictures, sized by an aspect box so nothing collapses while they load) ---------- */
.pic { display: block; position: relative; }
.pic > img { width: 100%; height: 100%; object-fit: contain; }
.obj { display: block; text-decoration: none; color: inherit; position: relative; -webkit-tap-highlight-color: transparent; border-radius: 18px; }
button.obj { background: none; border: 0; padding: 0; font: inherit; text-align: inherit; }
.rackbtn { width: 100%; }
.obj .lab { display: block; text-align: center; font: 500 12.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin-top: 4px; }
.obj .num { display: block; text-align: center; font: 400 15px/1.3 var(--serif-d); color: var(--ink); font-variant-numeric: oldstyle-nums; margin-top: 2px; }
.obj:hover .pic > img { transform: translateY(-2px); }
.obj .pic > img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
/* a small card on hover / keyboard focus: what this is and how it is, before the click (his rule, 11/10) */
.peek { position: absolute; left: 50%; bottom: calc(100% - 6px); transform: translate(-50%, 6px); min-width: 180px; max-width: 240px; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-d); box-shadow: 0 16px 30px -18px rgba(43, 38, 32, .45); font: 400 14px/1.4 var(--sans); color: var(--ink); text-align: left; text-transform: none; letter-spacing: 0; display: none; z-index: 5; pointer-events: none; }
.peek b { display: block; font: 400 17px/1.25 var(--serif-d); margin-bottom: 2px; }
/* only where a mouse can hover, and only while it does (a hidden card must not widen the page) */
@media (hover: hover) { .obj:hover .peek, .obj:focus-visible .peek { display: block; animation: peekIn .18s ease both; } }
@keyframes peekIn { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Αρχική: the still life ---------- */
/* phones: one column in reading order (headline, the envelope, its date, the button, then the seal and the tree side by side, the rack) */
.home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "h1 h1" "env env" "subj subj" "when when" "state state" "act act" "seal tree" "rack rack"; justify-items: center; text-align: center; column-gap: 12px; max-width: 560px; margin: 0 auto; }
.home .hero-text, .home .still { display: contents; }
.home .h-display { grid-area: h1; margin: 6px 0 4px; }
.home .subj { grid-area: subj; font: 400 19px/1.4 var(--serif); color: var(--soft); max-width: 30ch; overflow-wrap: anywhere; margin: 4px 0 0; }
.home .when { grid-area: when; font: italic 400 clamp(19px, 6vw, 25px)/1.25 var(--serif-d); margin: 6px 0 0; }
.home .state { grid-area: state; font: 400 15px/1.45 var(--serif); color: var(--soft); max-width: 34ch; margin: 6px 0 0; }
.home .hero-act { grid-area: act; display: grid; justify-items: center; gap: 2px; margin-top: 16px; }
.home .env { grid-area: env; width: min(60vw, 280px); margin-top: 6px; }
.home .seal { grid-area: seal; width: min(36vw, 160px); align-self: end; margin-top: 26px; }
.home .tree { grid-area: tree; width: min(30vw, 140px); align-self: end; margin-top: 26px; }
.env .pic { aspect-ratio: 1147 / 1400; }
.env.blank .pic { aspect-ratio: 1317 / 1600; }
.home .env.blank { width: min(44vw, 200px); }
.penon { position: absolute; right: -30%; bottom: 10%; width: 82%; aspect-ratio: 900 / 504; transform: rotate(-24deg); pointer-events: none; animation: settle 1.3s .2s cubic-bezier(.2, .8, .2, 1) both; }
.penon img { width: 100%; height: 100%; object-fit: contain; }
.seal .pic { aspect-ratio: 1 / 1; }
.tree .pic { aspect-ratio: 753 / 1100; }
.env .pic > img.main { animation: settle 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.seal .pic > img { animation: breathe 6.5s ease-in-out infinite; transform-origin: 50% 55%; }
.tree .pic > img { animation: sway 7.5s ease-in-out infinite alternate; transform-origin: 50% 96%; }
@keyframes settle { from { opacity: 0; transform: translateY(-18px) rotate(-2.4deg); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015); } }
@keyframes sway { from { transform: rotate(-.7deg); } to { transform: rotate(.8deg); } }
/* approved = the letter's stamp, cancelled in red ink */
.approved { position: relative; display: inline-grid; place-items: center; width: 118px; aspect-ratio: 400 / 304; margin: 2px 0 4px; }
.approved .st { position: absolute; inset: 0; transform: rotate(-3deg); animation: stampIn .5s cubic-bezier(.3, 1.5, .5, 1) both; }
.approved .st img { width: 100%; height: 100%; object-fit: contain; }
.approved .ink { position: relative; padding: 5px 9px; border: 2px solid rgba(156, 59, 46, .9); border-radius: 6px; color: #8E2F22; background: rgba(251, 248, 242, .55); font: 700 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; transform: rotate(-9deg); animation: stampIn .45s .25s cubic-bezier(.3, 1.6, .5, 1) both; white-space: nowrap; }
@keyframes stampIn { from { opacity: 0; transform: rotate(-9deg) scale(1.6); } to { opacity: 1; } }
/* the walnut rack: «Σειρές» engraved on its front (front panel = 52 to 82 % of the picture's height) */
.home .rackstrip { grid-area: rack; display: block; margin: 30px 0 0; width: 100%; text-decoration: none; position: relative; }
.rack { position: relative; display: flex; align-items: flex-end; }
.rk { position: relative; display: block; flex: 1 1 auto; min-width: 0; }
.rk .pic { aspect-ratio: 2000 / 464; }
.engr { position: absolute; left: 6%; right: 13%; top: 56.5%; height: 12.5%; display: flex; align-items: center; justify-content: center; font: 500 clamp(11.5px, 1.7vw, 14px)/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: #F3E6CF; text-shadow: 0 1px 0 rgba(0, 0, 0, .6), 0 -1px 0 rgba(255, 255, 255, .06); pointer-events: none; white-space: nowrap; }
.rack .bundle { position: relative; flex: 0 0 27%; margin-left: -7%; aspect-ratio: 800 / 586; pointer-events: none; }
.rack .bundle img { width: 100%; height: 100%; object-fit: contain; }
.rack .bundle .tagtxt { position: absolute; left: 60%; top: 41%; width: 26%; text-align: center; font: 600 clamp(9px, 1.25vw, 11.5px)/1.05 var(--sans); color: #4A3520; transform: rotate(22deg); }
.rackstrip .peek { bottom: 92%; }
@media (min-width: 600px) {
  .home { max-width: 640px; }
  .home .env { width: min(46vw, 300px); }
  .home .seal { width: min(26vw, 180px); }
  .home .tree { width: min(22vw, 150px); }
}
@media (min-width: 900px) {
  .home { max-width: 1240px; grid-template-columns: minmax(340px, 5fr) 7fr; grid-template-areas: "text still" "rack rack"; align-items: center; justify-items: stretch; text-align: left; column-gap: 32px; }
  .home .hero-text { display: grid; grid-area: text; justify-items: start; align-content: center; padding-bottom: 24px; }
  .home .still { display: grid; grid-area: still; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-areas: "env seal" "env tree"; align-items: center; justify-items: center; gap: 0 12px; }
  .home .hero-text > * { grid-area: auto; }
  .home .subj { font-size: 20px; }
  .home .when { font-size: clamp(24px, 2.3vw, 31px); }
  .home .hero-act { justify-items: start; margin-top: 22px; }
  .home .env { grid-area: env; width: min(100%, 330px); margin: 0; }
  .home .env.blank { width: min(78%, 260px); }
  .home .seal { grid-area: seal; width: min(100%, 180px); margin: 0; align-self: end; justify-self: start; }
  .home .tree { grid-area: tree; width: min(100%, 165px); margin: 10px 0 0; align-self: start; }
  .home .rackstrip { margin: 18px 0 0; width: min(64%, 720px); justify-self: start; }
}

/* ---------- shelves (Γράμματα) ---------- */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 22px; flex-wrap: wrap; }
.pagehead .sub { font: italic 400 19px/1.3 var(--serif-d); color: var(--soft); }
/* the shelves stand side by side like one cabinet, each as wide as its letters, their ledges on one line */
.shelves { display: flex; flex-wrap: wrap; gap: 36px 44px; align-items: flex-end; }
.shelf { width: fit-content; max-width: 100%; }
.shelf .row { display: flex; flex-wrap: wrap; gap: 14px 18px; padding: 0 14px; align-items: flex-start; }
.ledge { position: relative; height: 30px; margin-top: -2px; border-radius: 2px 2px 5px 5px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 9px, rgba(0, 0, 0, .04) 9px 10px, transparent 10px 17px), linear-gradient(180deg, #8C6648 0, #6E4C33 16%, #5A3C28 58%, #432C1D 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 14px 20px -14px rgba(40, 25, 10, .85); display: flex; align-items: center; justify-content: center; padding: 0 16px; min-width: 240px; }
.ledge::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #A07A5A, #7A5539); }
.plate { position: relative; z-index: 1; margin-top: 4px; padding: 4px 12px 3px; border-radius: 3px; background: linear-gradient(180deg, #F1DFA8 0%, #CFA95A 48%, #A98232 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 1px 2px rgba(0, 0, 0, .45); font: 600 11.5px/1.1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #3A2A10; white-space: nowrap; }
.lcard { width: 150px; display: grid; justify-items: center; text-align: center; text-decoration: none; color: inherit; padding: 6px 4px 12px; border-radius: 14px; transition: transform .25s; }
.lcard:hover { transform: translateY(-3px); }
.lcard .pic { width: 128px; aspect-ratio: 900 / 709; }
.lcard .subj { font: 400 15.5px/1.3 var(--serif); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; min-height: 2.6em; }
.lcard .when { font: italic 400 14px/1.3 var(--serif-d); color: var(--soft); margin-top: 3px; }
.lcard .rate { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; font: 600 13px/1 var(--sans); color: var(--olive-d); }
.lcard .rate .pic { width: 22px; aspect-ratio: 503 / 600; }
.lcard .flag { margin-top: 5px; font: 500 12px/1.2 var(--sans); color: var(--red); letter-spacing: .04em; }
.fab { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(var(--tabh) + var(--sb) + 18px); z-index: 25; }
.fab .btn { min-height: 54px; padding: 0 24px 0 20px; font-size: 20px; box-shadow: 0 14px 28px -14px rgba(50, 60, 25, .9); }
.fab .btn svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .fab { bottom: 32px; right: 40px; } .lcard { width: 168px; } .lcard .pic { width: 144px; } }
.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 30px 0; }
.empty .pic { width: 200px; aspect-ratio: 1317 / 1600; }
.empty .pic.wide { width: min(100%, 520px); aspect-ratio: 2000 / 464; }
.empty p { font: italic 400 22px/1.3 var(--serif-d); color: var(--soft); margin: 0; }

/* ---------- composer (Γράμμα) ---------- */
body.bare .top { display: none; }
.ctop { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; min-height: 60px; padding: 8px var(--gut); background: rgba(244, 239, 230, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ctop .lft { display: flex; align-items: center; gap: 14px; }
.ctop .brand { display: none; }
.ctop .ltitle { width: 100%; min-width: 0; text-align: center; border: 0; background: transparent; font: italic 400 20px/1.2 var(--serif-d); padding: 10px 6px; border-radius: 8px; text-overflow: ellipsis; }
.ctop .ltitle:hover { background: rgba(255, 255, 255, .45); }
.ctop .ltitle:focus { background: var(--card); outline: 1px solid var(--line-d); }
.ctop .ltitle::placeholder { color: #8C8273; }
.ctop .rgt { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.ctop .rgt .act { display: none; }
.cbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; padding: 10px var(--gut) calc(10px + var(--sb)); background: rgba(251, 248, 242, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.cbar .btn { flex: 1; }
.cbar .prog { flex: 1; }
.composer { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "state" "seals" "paper" "prev"; gap: 16px; padding-bottom: 90px; }
.cstate { grid-area: state; text-align: center; font: italic 400 18px/1.35 var(--serif-d); color: var(--soft); margin: 0; }
.cstate b { font-style: normal; font-weight: 400; color: var(--ink); }
.seals { grid-area: seals; display: grid; grid-template-columns: repeat(5, minmax(60px, 1fr)); gap: 4px; overflow-x: auto; scrollbar-width: none; }
.seals::-webkit-scrollbar { display: none; }
.sealbtn { display: grid; justify-items: center; gap: 4px; background: none; border: 0; padding: 4px 2px 6px; border-radius: 14px; min-height: 44px; }
.sealbtn .pic { width: 44px; aspect-ratio: 1; transition: transform .3s; }
.sealbtn:hover .pic { transform: scale(1.05) rotate(-3deg); }
.sealbtn .t { font: 500 12px/1.15 var(--sans); color: var(--soft); white-space: nowrap; }
.sealbtn.lv-block .t { color: var(--red); }
.sealbtn.lv-warn .t { color: var(--amber-t); }
.sealbtn.busy .pic { animation: breathe 1.2s ease-in-out infinite; opacity: .55; }
.paperwrap { grid-area: paper; position: relative; }
.paper { position: relative; background: var(--card); background-clip: padding-box; border: 34px solid transparent; border-image: url(/img/paper_sheet.webp) 13% fill / 34px / 0 stretch; padding: 4px 8px 18px; min-height: 520px; }
.paper .help { position: absolute; top: -20px; right: -16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-d); background: var(--card); color: var(--soft); font: 600 15px/1 var(--sans); z-index: 2; }
.paper .help:hover { color: var(--ink); border-color: var(--soft); }
.lh { display: block; border-bottom: 1px solid var(--line); padding: 6px 0 2px; }
.lh + .lh { margin-top: 6px; }
.lh span { display: block; font: 500 11.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.lh input { display: block; width: 100%; border: 0; background: transparent; padding: 6px 0 8px; font: 400 21px/1.3 var(--serif); }
.lh.sm input { font: 400 16px/1.4 var(--serif); color: var(--soft); }
.lh input:focus, .body:focus { outline: none; }
.lh:focus-within { border-bottom-color: var(--olive); }
.body { display: block; width: 100%; min-height: 360px; border: 0; background: transparent; resize: none; overflow: hidden; margin-top: 18px; font: 400 17.5px/1.78 var(--serif); color: var(--ink); padding: 0; }
.body::placeholder, .lh input::placeholder { color: #9A907F; }
.paper.ro .lh input, .paper.ro .body { color: var(--ink); }
.pen { position: absolute; right: -58px; top: 34%; width: 170px; aspect-ratio: 900 / 504; transform: rotate(-62deg); pointer-events: none; display: none; }
.pen img { width: 100%; height: 100%; object-fit: contain; }
.opts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px; align-items: center; }
.opt { display: flex; align-items: center; gap: 10px; }
.opt > span { font: 500 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.seg { display: inline-flex; border: 1px solid var(--line-d); border-radius: 999px; padding: 3px; background: rgba(251, 248, 242, .7); }
.seg button { border: 0; background: none; border-radius: 999px; padding: 0 14px; min-height: 36px; font: 500 14px/1 var(--sans); color: var(--soft); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--olive); color: #fff; }
.seg button:disabled { cursor: default; }
.whisper { min-height: 20px; margin: 10px 0 0; font: italic 400 15px/1.3 var(--serif-d); color: var(--soft); transition: opacity .6s; }
.whisper.gone { opacity: 0; }
.prevbtn { grid-area: prev; justify-self: center; }
.phonewrap { display: none; }
/* the phone: a CSS-drawn handset with the inbox the reader will see */
.phone { --pw: 300px; width: var(--pw); aspect-ratio: 300 / 612; border-radius: 46px; background: #1E1C1A; padding: 11px; box-shadow: 0 0 0 1.5px #4A4642 inset, 0 30px 50px -26px rgba(30, 24, 16, .65), 0 6px 14px -8px rgba(30, 24, 16, .4); position: relative; margin: 0 auto; }
.phone::before { content: ''; position: absolute; top: 19px; left: 50%; width: 30%; height: 22px; margin-left: -15%; border-radius: 14px; background: #0C0B0A; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.sbar { display: flex; justify-content: space-between; padding: 14px 26px 4px; font: 600 12px/1 var(--sans); color: #111; }
.inbox { padding: 10px 14px 10px; border-bottom: 1px solid #ECECEC; color: #111; }
.inbox .from { display: flex; align-items: center; gap: 8px; font: 600 13px/1.25 var(--sans); }
.inbox .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--olive); color: #fff; font: 400 14px/1 var(--serif-d); flex: 0 0 auto; }
.inbox .subj { margin-top: 8px; font: 600 14px/1.3 var(--sans); overflow-wrap: anywhere; }
.inbox .pre { margin-top: 2px; font: 400 12.5px/1.35 var(--sans); color: #6B6B6B; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.frame { position: relative; flex: 1; overflow: hidden; }
.frame iframe { position: absolute; left: 0; top: 0; width: 390px; border: 0; transform-origin: 0 0; background: #fff; }
.phone .hbar { position: absolute; bottom: 18px; left: 50%; width: 34%; height: 4px; margin-left: -17%; border-radius: 3px; background: rgba(0, 0, 0, .75); z-index: 3; }
.bytes { text-align: center; margin-top: 12px; font: 400 13px/1.3 var(--sans); color: var(--soft); }
.prog { display: grid; gap: 6px; }
.prog .bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.prog .bar i { display: block; height: 100%; background: var(--olive); border-radius: 6px; transition: width .6s; }
.prog .t { font: 500 13px/1.2 var(--sans); color: var(--soft); white-space: nowrap; }
@media (min-width: 900px) {
  .ctop { grid-template-columns: 1fr minmax(240px, 1.2fr) 1fr; min-height: 68px; }
  .ctop .brand { display: inline; }
  .ctop .rgt .act { display: inline-flex; }
  .cbar, .prevbtn { display: none; }
  .ctop .rgt .link { white-space: nowrap; }
  .composer { grid-template-columns: minmax(360px, 560px) 300px 96px; grid-template-areas: "state state state" "paper prev seals" "paper phone seals"; grid-template-rows: auto 0 auto; justify-content: center; gap: 0 44px; padding-bottom: 40px; }
  .cstate { margin-bottom: 18px; }
  .phonewrap { display: block; grid-area: phone; position: sticky; top: 96px; align-self: start; padding-top: 18px; }
  .seals { grid-template-columns: 1fr; gap: 14px; align-content: start; overflow: visible; position: sticky; top: 100px; align-self: start; padding-top: 24px; }
  .sealbtn .pic { width: 62px; }
  .sealbtn .t { font-size: 12.5px; letter-spacing: .02em; }
}
@media (min-width: 1280px) {
  .composer { gap: 0 76px; }
  .pen { display: block; right: -96px; top: auto; bottom: 14%; width: 150px; transform: rotate(-36deg); }
}
@media (min-width: 900px) and (max-width: 1140px) {
  .composer { grid-template-columns: minmax(340px, 1fr) 270px 84px; gap: 0 26px; }
  .phone { --pw: 270px; }
  .pen { right: -40px; width: 130px; }
}

/* ---------- sheets ---------- */
.dlg { position: fixed; inset: 0; z-index: 60; background: rgba(43, 38, 32, .36); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .2s ease both; }
.dlgbox { position: relative; width: 100%; max-width: 560px; max-height: 88vh; max-height: 88dvh; overflow-y: auto; overflow-x: hidden; background: var(--card); border-radius: 24px 24px 0 0; padding: 26px 22px calc(26px + var(--sb)); box-shadow: 0 -20px 40px -20px rgba(43, 38, 32, .5); animation: up .32s cubic-bezier(.2, .8, .2, 1) both; overscroll-behavior: contain; }
.dlgbox > .x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.dlgbox h2 { font: 400 27px/1.18 var(--serif-d); margin: 4px 48px 12px 0; }
.dlgbox p { margin: 0 0 12px; font: 400 16.5px/1.55 var(--serif); }
.dlgbox .acts { display: grid; gap: 10px; margin-top: 18px; }
.dlgbox .acts .btn { white-space: normal; text-align: center; line-height: 1.2; padding-top: 10px; padding-bottom: 10px; }
.dlg.wide .dlgbox { max-width: 720px; }
.dlg.phoneview .dlgbox { background: var(--paper); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .dlg { align-items: center; padding: 24px; } .dlgbox { border-radius: 22px; padding: 30px 30px 28px; max-height: 86vh; } }
.field { display: grid; gap: 6px; margin: 0 0 14px; }
.field > span { font: 500 13px/1.2 var(--sans); color: var(--soft); }
.input { width: 100%; min-height: 50px; border: 1px solid var(--line-d); border-radius: 14px; background: #fff; padding: 12px 14px; font: 400 18px/1.3 var(--serif); }
.input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(94, 107, 58, .15); }
.input.pin { letter-spacing: .4em; font: 500 22px/1.2 var(--sans); }
.msg { min-height: 0; margin: 4px 0 8px; font: 400 15px/1.45 var(--serif); color: var(--red); }
.msg.ok { color: var(--olive-d); }
.typed { display: inline-block; font: 600 15px/1 var(--sans); letter-spacing: .12em; padding: 4px 8px; border-radius: 6px; background: var(--olive-l); }

/* guard checks inside a seal's sheet */
.sealhead { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.sealhead .pic { width: 64px; aspect-ratio: 1; flex: 0 0 auto; }
.sealhead h2 { margin: 0; }
.chk { border-top: 1px solid var(--line); padding: 14px 0 12px 18px; position: relative; }
.chk::before { content: ''; position: absolute; left: 0; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: var(--olive); }
.chk.lv-warn::before { background: var(--amber); }
.chk.lv-block::before { background: var(--red); }
.chk b { display: block; font: 400 18px/1.3 var(--serif-d); overflow-wrap: anywhere; }
.chk p { margin: 4px 0 0; font: 400 15.5px/1.5 var(--serif); overflow-wrap: anywhere; }
.chk .fix { color: var(--olive-d); }
.chk .where { margin-top: 4px; font: 400 13px/1.3 ui-monospace, Menlo, monospace; color: var(--soft); overflow-wrap: anywhere; }
details.oks { border-top: 1px solid var(--line); padding: 12px 0 0; }
details.oks summary { cursor: pointer; font: italic 400 18px/1.3 var(--serif-d); color: var(--olive-d); min-height: 36px; display: flex; align-items: center; gap: 8px; list-style: none; }
details.oks summary::-webkit-details-marker { display: none; }
details.oks summary::after { content: '+'; font: 500 16px/1 var(--sans); color: var(--soft); }
details.oks[open] summary::after { content: '−'; }
details.oks ul { margin: 8px 0 0; padding: 0 0 0 18px; color: var(--soft); font: 400 15px/1.6 var(--serif); }

/* the markup card */
.mk { display: grid; gap: 10px; }
.mk .ex { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(214, 190, 149, .22); border: 1px solid rgba(110, 82, 50, .14); }
.mk code { font: 400 14.5px/1.4 ui-monospace, Menlo, monospace; color: #3A2E20; overflow-wrap: anywhere; }
.mk .look { font: 400 16px/1.45 var(--serif); }
.mk .look.title { color: #9A4520; font-weight: 600; letter-spacing: .04em; }
.mk .look.quote { font-style: italic; font-size: 18px; }
.mk .look.close { color: #8B2A1F; font-weight: 600; }
.mk .look.note { color: #625A4F; font-size: 14px; }
.mk .look a { color: var(--olive-d); }
.mk .rule { font: italic 400 18px/1.4 var(--serif-d); color: var(--soft); margin: 0 0 6px; }

/* schedule picker */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px; scrollbar-width: thin; }
.day { flex: 0 0 auto; display: grid; justify-items: center; gap: 2px; min-width: 66px; padding: 10px 8px; border-radius: 16px; border: 1px solid var(--line-d); background: #fff; }
.day .d { font: 500 12px/1 var(--sans); color: var(--soft); text-transform: uppercase; letter-spacing: .08em; }
.day .n { font: 400 24px/1.1 var(--serif-d); }
.day[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: #fff; }
.day[aria-pressed="true"] .d { color: #EEF0E2; }
.times { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 6px; }
.times .seg button { min-height: 40px; }
.times input[type="time"] { min-height: 44px; border: 1px solid var(--line-d); border-radius: 12px; padding: 0 10px; background: #fff; font: 500 16px/1 var(--sans); }
.whenbig { font: italic 400 24px/1.3 var(--serif-d); margin: 12px 0 6px; }

/* ---------- report: numbers as pictures ---------- */
.report { display: grid; gap: 22px; }
.rhead { display: grid; gap: 6px; }
.rhead .subj { font: 400 clamp(26px, 3.4vw, 40px)/1.15 var(--serif-d); overflow-wrap: anywhere; }
.rhead .when { font: italic 400 18px/1.3 var(--serif-d); color: var(--soft); }
.report { max-width: 1040px; margin: 0 auto; }
.figs { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); margin-top: 8px; }
.fig { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.fig .k, .rlinks .k, .rgone .k { font: 500 12.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.fig .big { font: 400 clamp(46px, 5.4vw, 66px)/1.02 var(--serif-d); margin-top: 6px; font-variant-numeric: lining-nums; }
.fig.honest .big { color: var(--olive-d); }
.fig .of { font: italic 400 16px/1.3 var(--serif-d); color: var(--soft); margin-top: 2px; }
.fnote { margin: 12px 0 6px; font: italic 400 16px/1.45 var(--serif-d); color: var(--soft); }
.rrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 18px; }
.rlinks, .rgone { min-width: 0; }
.rgone .big { font: 400 46px/1 var(--serif-d); }
.prov { margin-top: 12px; }
@media (min-width: 760px) {
  .figs { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .fig { border-bottom: 0; padding: 22px 26px 24px; }
  .fig + .fig { border-left: 1px solid var(--line); }
  .fig:first-child { padding-left: 0; }
  .rrow { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; }
}
.cells { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.cell { background: rgba(251, 248, 242, .82); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px 18px; box-shadow: 0 20px 34px -30px rgba(60, 45, 25, .5); width: 100%; }
.cell .k { font: 500 12.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.cell .big { font: 400 54px/1.05 var(--serif-d); margin-top: 6px; font-variant-numeric: lining-nums; }
.cell .big.olive { color: var(--olive-d); }
.cell .of { font: italic 400 16px/1.3 var(--serif-d); color: var(--soft); }
.cell .note { margin: 10px 0 0; font: 400 14px/1.45 var(--serif); color: var(--soft); }
.envs { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; margin-top: 12px; max-width: 360px; }
.envs .pic { aspect-ratio: 503 / 600; }
.envs .pic.off img { opacity: .2; filter: grayscale(1); }
.links { display: grid; gap: 12px; margin-top: 10px; }
.lrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.lrow .lt { font: 400 16px/1.35 var(--serif); overflow-wrap: anywhere; }
.lrow .ln { font: 600 14px/1 var(--sans); color: var(--olive-d); }
.lrow .bar { grid-column: 1 / -1; height: 5px; border-radius: 4px; background: var(--line); overflow: hidden; }
.lrow .bar i { display: block; height: 100%; background: var(--olive); border-radius: 4px; }
.leaves-big { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.leaves-big .pic { width: 70px; aspect-ratio: 341 / 400; flex: 0 0 auto; }
.mini { display: grid; gap: 4px; margin-top: 8px; font: 400 15.5px/1.5 var(--serif); }
.mini div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dotted var(--line-d); padding: 4px 0; }
.mini div span:last-child { font: 500 14.5px/1.5 var(--sans); }
@media (min-width: 760px) {
  .cells.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cells.two { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

/* ---------- series: walnut racks ---------- */
.racks { display: grid; gap: 40px; justify-items: center; }
.rackcard { position: relative; width: min(100%, calc(820px * var(--w, 1))); background: none; border: 0; padding: 0; text-align: left; display: block; }
.rackcard .engr { text-transform: none; font: italic 400 clamp(13.5px, 2.3vw, 19px)/1 var(--serif-d); letter-spacing: .04em; }
.markers { position: absolute; left: 7%; right: 14%; top: 23%; height: 0; pointer-events: none; }
.rackcard .rk { container-type: inline-size; }
.markers i { position: absolute; top: 0; width: calc(var(--s, 1.4) * .95cqw); height: calc(var(--s, 1.4) * .95cqw); min-width: 5px; min-height: 5px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F6E2A8, var(--brass) 55%, #6E5220); box-shadow: 0 2px 4px rgba(40, 25, 5, .45); }
.rackmeta { margin-top: 10px; display: flex; gap: 10px 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 0 3%; }
.rackmeta .pz { display: inline-flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.rackmeta .t { font: italic 400 17px/1.35 var(--serif-d); color: var(--soft); }
.ktag { display: inline-block; position: relative; background: var(--kraft); color: #2E2213; padding: 8px 14px 8px 26px; border-radius: 4px 10px 10px 4px; font: 400 15px/1.35 var(--serif); box-shadow: 0 8px 14px -10px rgba(60, 40, 10, .6); transform: rotate(-1.2deg); }
.ktag::before { content: ''; position: absolute; left: 9px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px rgba(110, 82, 50, .35) inset; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 10px; padding: 12px 0; border-top: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s); grid-row: span 2; font: 400 22px/1.1 var(--serif-d); color: var(--soft); }
.steps li > span { grid-column: 2; min-width: 0; }
.steps li.holdmark { display: block; counter-increment: none; padding: 14px 0 12px; border-top: 2px solid var(--line); }
.steps li.holdmark::before { content: none; }
.steps .s1 { font: 400 17px/1.35 var(--serif); overflow-wrap: anywhere; }
.steps .s2 { font: italic 400 14.5px/1.3 var(--serif-d); color: var(--soft); }

/* ---------- readers: the olive tree and its leaves ---------- */
.rhero { display: grid; justify-items: center; text-align: center; gap: 4px; margin-bottom: 18px; }
.rhero .pic { width: min(44vw, 200px); aspect-ratio: 753 / 1100; }
.rhero .pic img { animation: sway 7.5s ease-in-out infinite alternate; transform-origin: 50% 96%; }
.rhero .n { font: 400 clamp(46px, 7vw, 74px)/1 var(--serif-d); }
.rhero .t { font: italic 400 19px/1.3 var(--serif-d); color: var(--soft); }
.tiers { display: grid; gap: 6px; width: fit-content; max-width: 100%; margin: 0 auto; }
.tier { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nm c" "lv lv"; align-items: center; gap: 2px 12px; padding: 10px 0 8px; border-bottom: 1px solid var(--line); }
.twig { display: block; width: 100%; max-width: 404px; height: auto; overflow: visible; }
.twig .br { fill: none; stroke: #8E7656; stroke-width: 1.7; stroke-linecap: round; }
.twig .lf { fill: #66753F; }
.twig .lf.pale { fill: #C6C49E; }
.twig .lf.empty { fill: rgba(255, 255, 255, .35); stroke: #D3C7B2; stroke-width: 1; }
.tier .nm { grid-area: nm; font: 400 18px/1.25 var(--serif-d); }
.tier .lv { grid-area: lv; display: flex; gap: 2px; }
.tier .c { grid-area: c; font: 500 15px/1 var(--sans); min-width: 56px; text-align: right; font-variant-numeric: tabular-nums; }
.leaf { width: 12px; height: 6px; display: block; flex: 0 0 auto; }
@media (min-width: 640px) {
  .tier { grid-template-columns: 150px minmax(0, 404px) 64px; grid-template-areas: "nm lv c"; gap: 18px; padding: 12px 0; }
}
.sprout { display: grid; place-items: center; width: 42px; height: 42px; }
.sprout .leaf { width: 40px; height: 18px; transform: rotate(-28deg); }
.leaf path { fill: var(--olive); }
.leaf .vein { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: .8; }
.leaf.pale path { fill: #C9C6A4; }
.leaf.empty path { fill: none; stroke: var(--line-d); stroke-width: 1; }
.leaf.empty .vein { stroke: none; }
.leaf.fall path { fill: #B59A5B; }
.week { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin: 26px 0 8px; }
.wk { display: grid; justify-items: center; gap: 4px; min-width: 84px; }
.wk .pic { width: 36px; aspect-ratio: 341 / 400; }
.wk svg.big { width: 42px; height: 42px; }
.wk .n { font: 400 28px/1 var(--serif-d); }
.wk .t { font: 500 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.wk svg.big { stroke: var(--soft); fill: none; stroke-width: 1.4; }
.card { background: rgba(251, 248, 242, .86); border: 1px solid var(--line); border-radius: 22px; padding: 22px 22px 18px; box-shadow: 0 20px 34px -30px rgba(60, 45, 25, .5); max-width: 640px; margin: 22px auto 0; }
.card h2 { font: 400 24px/1.2 var(--serif-d); margin-bottom: 8px; }
.card p { margin: 0 0 10px; font: 400 16px/1.55 var(--serif); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; min-height: 52px; border-top: 1px solid var(--line); cursor: pointer; }
.toggle span { font: 400 16px/1.4 var(--serif); }
.toggle input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 30px; background: var(--line-d); position: relative; flex: 0 0 auto; transition: background .2s; cursor: pointer; margin: 0; }
.toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.toggle input:checked { background: var(--olive); }
.toggle input:checked::after { transform: translateX(20px); }
.find { display: flex; gap: 10px; }
.find .input { flex: 1; min-width: 0; }

/* ---------- health: the big seal ---------- */
.hhero { display: grid; justify-items: center; text-align: center; gap: 6px; }
.hhero .pic { width: min(50vw, 230px); aspect-ratio: 1; }
.hhero .pic img { animation: breathe 6.5s ease-in-out infinite; }
.hhero h1 { font: 400 clamp(32px, 4.4vw, 52px)/1.1 var(--serif-d); }
.hhero p { margin: 0; font: italic 400 18px/1.4 var(--serif-d); color: var(--soft); max-width: 36ch; }
.groups { display: grid; gap: 18px; margin: 26px auto 0; max-width: 1100px; }
.group { padding: 18px 0 8px; border-top: 1px solid var(--line-d); min-width: 0; }
.group h2 { font: 400 24px/1.2 var(--serif-d); margin-bottom: 6px; }
.dchk { display: block; padding: 0; border-top: 1px solid var(--line); }
.dchk .dh { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 11px 0; min-height: 44px; list-style: none; }
summary.dh { cursor: pointer; }
summary.dh::-webkit-details-marker { display: none; }
summary.dh::after { content: '+'; font: 500 16px/1.4 var(--sans); color: var(--soft); }
details[open] > summary.dh::after { content: '−'; }
.dchk .dbody { padding: 0 0 12px 24px; }
.dchk:first-of-type { border-top: 0; }
.group details.oks { margin-top: 4px; }
.group details.oks .dchk:first-of-type { border-top: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--olive); margin-top: 7px; display: inline-block; }
.dot.amber { background: var(--amber); }
.dot.red { background: var(--red); }
.dot.grey { background: var(--line-d); }
.dchk b { font: 400 17px/1.35 var(--serif); display: block; font-weight: 400; }
.dchk p { margin: 0; font: 400 14.5px/1.5 var(--serif); color: var(--soft); }
.recbox { margin-top: 8px; display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(214, 190, 149, .25); border: 1px dashed rgba(110, 82, 50, .35); }
.recbox .cap { font: 500 11.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--kraft-d); }
.recbox code { font: 400 13px/1.45 ui-monospace, Menlo, monospace; overflow-wrap: anywhere; white-space: pre-wrap; user-select: all; }
.recbox .btn.quiet { justify-self: start; min-height: 36px; padding: 0 14px; font-size: 14px; }
.meter { margin: 12px 0 4px; }
.meter .row { display: flex; justify-content: space-between; gap: 12px; font: 400 15.5px/1.4 var(--serif); }
.meter .row span:last-child { font: 500 14px/1.4 var(--sans); color: var(--soft); white-space: nowrap; }
.meter .bar { position: relative; height: 8px; border-radius: 8px; background: var(--line); margin-top: 6px; overflow: hidden; }
.meter .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: var(--olive); }
.meter .bar i.amber { background: var(--amber); }
.meter .bar i.red { background: var(--red); }
.facts { display: grid; gap: 2px; margin-top: 4px; }
.facts div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font: 400 16px/1.4 var(--serif); }
.facts div:first-child { border-top: 0; }
.facts div span:last-child { font: 500 14.5px/1.4 var(--sans); text-align: right; }
.centre { display: flex; justify-content: center; margin-top: 22px; }
@media (min-width: 980px) { .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 0; border-top: 1px solid var(--line-d); } .group { border-top: 0; padding: 20px 30px 10px; } .group + .group { border-left: 1px solid var(--line); } .group:first-child { padding-left: 0; } .group:last-child { padding-right: 0; } }

/* ---------- me ---------- */
.me { max-width: 640px; margin: 0 auto; }
.me .who { display: flex; align-items: center; gap: 16px; margin: 4px 0 6px; }
.me .who .ini { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line-d); font: 400 30px/1 var(--serif-d); flex: 0 0 auto; }
.me .who h1 { font: 400 clamp(32px, 4vw, 44px)/1.1 var(--serif-d); overflow-wrap: anywhere; }
.me .who .r { font: italic 400 17px/1.3 var(--serif-d); color: var(--soft); }
.rowline { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; min-height: 56px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rowline > span { font: 400 16.5px/1.4 var(--serif); }
.team { list-style: none; margin: 4px 0 0; padding: 0; }
.team li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font: 400 16.5px/1.4 var(--serif); }
.team li span:last-child { font: italic 400 15px/1.4 var(--serif-d); color: var(--soft); }
.copybox { display: grid; gap: 8px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(214, 190, 149, .22); border: 1px dashed rgba(110, 82, 50, .35); }
.copybox code { font: 400 13.5px/1.45 ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper b { min-width: 30px; text-align: center; font: 400 24px/1 var(--serif-d); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 6px 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-d); font: 400 14.5px/1 var(--sans); max-width: 100%; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip button { width: 32px; height: 32px; border: 0; background: none; border-radius: 50%; color: var(--soft); display: grid; place-items: center; padding: 0; }
.chip button svg { width: 16px; height: 16px; }

/* ---------- sign-in ---------- */
.signin { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 28px var(--gut) 40px; }
.signin .box { width: min(100%, 420px); display: grid; justify-items: center; text-align: center; gap: 6px; }
.signin .pic { width: 110px; aspect-ratio: 424 / 900; margin-bottom: 8px; }
.signin h1 { font: 400 clamp(42px, 9vw, 60px)/1 var(--serif-d); }
.signin .sub { font: italic 400 18px/1.35 var(--serif-d); color: var(--soft); margin: 4px 0 18px; }
.signin form { width: 100%; text-align: left; }
.signin .btn { width: 100%; margin-top: 4px; }
.signin .langs { margin-top: 18px; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: calc(var(--tabh) + var(--sb) + 24px); transform: translate(-50%, 20px); z-index: 90; max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #FBF8F2; font: 400 15.5px/1.4 var(--serif); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s; text-align: center; }
#toast.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (min-width: 900px) { #toast { bottom: 36px; } }

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