/* Cram · the page: tokens, layers, the HUD (open, question, result), the summary and the review controls.
   Style tokens: see ../STYLE_GUIDE.md (§2 palette, §3 type). Do not add colours that are not in the guide. */
:root { --ink: #0b0c2a; --ink2: #1a1c52; --night: #14174a; --sky0: #0f1036; --cream: #f7e8c9; --creamHi: #fff6dd; --shade: #bfb3dc; --lilac: #a9a8ea; --peri: #6d76d9; --tang: #ff6a2b; --yellow: #ffcb47; --soft: #c9c6f0; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--sky0); }
body { -webkit-tap-highlight-color: transparent; }

/* ---------- layers: the summary's sky, the scene, the wall of containers (the transition), then the grain ---------- */
.layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: hidden; }
.stage { position: absolute; inset: 0; overflow: hidden; will-change: transform; }
.scene { position: absolute; inset: 0; }
.shipwrap { position: absolute; inset: 0; will-change: transform; }
.bloom { mix-blend-mode: screen; pointer-events: none; }
.boxes { pointer-events: none; z-index: 5; }   /* the container wall is in front of everything (scene, HUD, brand, dots, manifest); */
.grain { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: .14; z-index: 6; }   /* only the print grain lies over it */

/* ---------- chrome ---------- */
.brand { position: absolute; top: 20px; left: 26px; font: 400 31px/1 Caprasimo, serif; color: var(--cream); text-shadow: 2px 2px 0 var(--tang); }
.brand span { color: var(--yellow); }
.progress { position: absolute; top: 27px; right: 26px; display: flex; gap: 9px; align-items: center; }
.progress i { width: 15px; height: 15px; border-radius: 50%; border: 2.5px solid var(--cream); }
.progress i.done { background: var(--cream); }
.progress i.on { border-color: var(--ink); background: radial-gradient(circle at 40% 38%, #fff3d6 0 14%, var(--yellow) 15% 52%, var(--tang) 53%); box-shadow: 0 0 0 2px var(--cream), 0 0 14px 2px rgba(255, 190, 70, .65); }

/* ---------- the HUD: it sits in the medium under the vehicle (the scene says where) ---------- */
.hud { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 20px; color: var(--cream); }
.hud section { display: flex; flex-direction: column; align-items: center; }
.kicker { font: 400 21px/1 Shrikhand, serif; color: var(--yellow); letter-spacing: .02em; transform: rotate(-2deg); margin-bottom: 10px; text-shadow: 1.5px 1.5px 0 var(--ink); }
.question { font: 400 clamp(31px, 3.9vw, 56px)/1.05 Caprasimo, serif; max-width: 23ch; margin: 0; text-shadow: 3px 3px 0 var(--tang); letter-spacing: -.005em; text-wrap: balance; }
.clar { font: 600 15px/1.4 Figtree, sans-serif; color: var(--soft); margin-top: 16px; letter-spacing: .01em; }
/* a long question that would push the result panel off the screen (fitQuestion in flow.js): wider lines, then smaller type */
.hud[data-fit=wide] .question, .hud[data-fit=small] .question { max-width: 29ch; }
.hud[data-fit=small] .question { font-size: clamp(28px, 3.3vw, 47px); }
.hud[data-fit=smaller] .question { max-width: 30ch; font-size: clamp(25px, 2.85vw, 41px); }
.guess { display: flex; gap: 14px; margin-top: 22px; }
.guess input { font: 700 18px Figtree, sans-serif; width: min(220px, 46vw); height: 54px; padding: 0 22px; border: 3px solid var(--ink); border-radius: 999px; background: var(--cream); color: var(--ink); box-shadow: 4px 4px 0 var(--tang); outline: none; }
.guess input::placeholder { color: #8b84a8; }
.guess input:focus-visible { box-shadow: 4px 4px 0 var(--tang), 0 0 0 4px rgba(255, 203, 71, .55); }
.btn { font: 400 20px Caprasimo, serif; height: 54px; padding: 0 26px; border: 3px solid var(--ink); border-radius: 999px; background: var(--tang); color: var(--ink); box-shadow: 4px 4px 0 var(--yellow); cursor: pointer; }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--yellow); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.hint { font: 600 14px/1.3 Figtree, sans-serif; color: var(--soft); margin-top: 12px; min-height: 18px; }
.hint.err { color: #ffb39a; }
.loading { font: 400 24px/1.2 Shrikhand, serif; color: var(--yellow); margin-top: 24px; text-shadow: 1.5px 1.5px 0 var(--ink); font-variant-numeric: tabular-nums; }
.verdict { font: 400 25px/1 Shrikhand, serif; color: var(--ink); background: var(--yellow); border: 3px solid var(--ink); border-radius: 999px; padding: 9px 20px 10px; margin-top: 16px; transform: rotate(-2.5deg); box-shadow: 4px 4px 0 var(--tang); animation: stamp .42s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes stamp { from { transform: rotate(-9deg) scale(1.6); opacity: 0; } to { transform: rotate(-2.5deg) scale(1); opacity: 1; } }
.result { margin-top: 12px; font: 600 18px/1.45 Figtree, sans-serif; }
.result b { color: var(--yellow); font-weight: 800; }
.result .sub { color: var(--soft); font-size: 16px; }
.next { margin-top: 14px; }

/* the open: a short read and how to play, in place of the question */
.lede { font: 600 17px/1.4 Figtree, sans-serif; color: var(--soft); margin: 12px 0 0; max-width: 30em; text-wrap: balance; }
.how { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; text-align: left; font: 600 16px/1.35 Figtree, sans-serif; counter-reset: how; }
.how li { display: flex; gap: 11px; align-items: center; }
.how li::before { counter-increment: how; content: counter(how); flex: none; display: inline-grid; place-items: center; width: 27px; height: 27px; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--yellow); color: var(--ink); font: 400 15px/1 Shrikhand, serif; box-shadow: 2px 2px 0 var(--tang); transform: rotate(-4deg); }
.how b { color: var(--yellow); font-weight: 800; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {   /* wide screens: the three lines side by side, so the panel stays short */
  .how { grid-template-columns: repeat(3, 236px); gap: 26px; margin-top: 18px; }
  .how li { align-items: flex-start; }
}
.rule { margin-top: 16px; font: 400 20px/1 Shrikhand, serif; color: var(--yellow); transform: rotate(-2deg); text-shadow: 1.5px 1.5px 0 var(--ink); }
.rule span { display: block; margin-top: 6px; font: 600 14px/1.3 Figtree, sans-serif; color: var(--soft); text-shadow: none; transform: rotate(2deg); }
.play { margin-top: 20px; padding: 0 40px; }

/* ---------- the summary: the day's shipping manifest, pinned to the screen above the clouds ---------- */
.summary { position: absolute; inset: 0; overflow-y: auto; display: flex; justify-content: center; align-items: flex-start; padding: 0 14px; }   /* scrolls if the manifest and its note don't fit */
.manifest { pointer-events: auto; position: relative; width: min(850px, 100%); padding: 26px 46px 20px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 5px; box-shadow: 7px 8px 0 var(--ink); transform: rotate(-1.2deg); transform-origin: 50% 0; animation: pinned 1.2s cubic-bezier(.3, 1.1, .4, 1) both; }
@keyframes pinned {   /* it drops onto its pin and swings to rest */
  0% { opacity: 0; transform: translateY(-40px) rotate(-7deg); }
  30% { opacity: 1; transform: translateY(0) rotate(2.6deg); }
  55% { transform: rotate(-2.8deg); }
  78% { transform: rotate(-.5deg); }
  100% { transform: rotate(-1.2deg); }
}
/* tractor-feed holes down both edges, inside a perforation */
.manifest::before, .manifest::after { content: ''; position: absolute; top: 12px; bottom: 12px; width: 16px; background: radial-gradient(circle, var(--sky0) 0 4px, transparent 4.6px) 50% 4px / 16px 24px repeat-y; }
.manifest::before { left: 7px; border-right: 2px dashed var(--shade); }
.manifest::after { right: 7px; border-left: 2px dashed var(--shade); }
.pin { position: absolute; top: -27px; left: 50%; width: 44px; height: 52px; margin-left: -22px; z-index: 2; }
.mf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 3px solid var(--ink); }
.mf-head h2 { margin: 0; font: 400 34px/1 Caprasimo, serif; text-shadow: 2px 2px 0 var(--tang); }
.mf-meta { display: flex; gap: 20px; margin: 0; font: 700 12px/1.2 Figtree, sans-serif; }
.mf-meta div { display: flex; flex-direction: column; align-items: flex-end; }
.mf-meta dt { color: var(--ink2); opacity: .7; }
.mf-meta dd { margin: 3px 0 0; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mf-route { margin: 9px 0 2px; font: 600 14px/1.35 Figtree, sans-serif; color: var(--ink2); }
.mf-route b { color: var(--ink); font-weight: 800; }
.mf-table { width: 100%; border-collapse: collapse; margin-top: 4px; font: 600 15px/1.3 Figtree, sans-serif; font-variant-numeric: tabular-nums; }
.mf-table th { padding: 9px 8px 7px; text-align: left; font: 800 12px/1 Figtree, sans-serif; letter-spacing: .02em; color: var(--ink2); opacity: .75; border-bottom: 2px solid var(--ink); }
.mf-table th:last-child, .mf-table td.pts { text-align: right; }
.mf-table td { padding: 10px 8px; border-bottom: 2px dashed var(--shade); vertical-align: middle; }
.mf-table .c-dec, .mf-table .c-act, .mf-table .c-off, .mf-table .carrier b { white-space: nowrap; }
.mf-table td.n { width: 22px; font: 400 16px/1 Shrikhand, serif; }
.mf-table .carrier b { display: block; font: 400 17px/1.15 Caprasimo, serif; font-weight: 400; }
.mf-table .vd { display: inline-block; margin-top: 5px; padding: 3px 9px 4px; border: 2px solid var(--tang); border-radius: 999px; color: var(--tang); font: 400 12.5px/1 Shrikhand, serif; transform: rotate(-2.5deg); }
.mf-table td.pts { font: 400 23px/1 Shrikhand, serif; }
.mf-table tfoot td { padding: 12px 8px 0; border-bottom: 0; text-align: right; font: 400 19px/1 Caprasimo, serif; }
.mf-table tfoot #mfTotal { white-space: nowrap; }
.hl { display: inline-block; padding: 3px 7px 2px; background: var(--yellow); font: 400 26px/1 Shrikhand, serif; transform: rotate(-2deg); }
#mfTotal small { margin-left: 3px; font: 700 14px/1 Figtree, sans-serif; color: var(--ink2); }
.mf-stamp { position: absolute; left: 44px; bottom: 14px; width: 120px; height: 120px; display: grid; place-content: center; text-align: center; border: 4px solid var(--tang); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--cream), inset 0 0 0 5.5px var(--tang); color: var(--tang); opacity: .92; transform: rotate(-12deg); animation: stampIn .45s cubic-bezier(.2, 1.6, .4, 1) .8s both; pointer-events: none; }
.mf-stamp b { font: 400 54px/.9 Shrikhand, serif; margin: 2px 0 1px; letter-spacing: -.02em; }
.mf-stamp small { font: 800 11px/1.25 Figtree, sans-serif; letter-spacing: .06em; }
@keyframes stampIn { from { opacity: 0; transform: rotate(-26deg) scale(1.8); } to { opacity: .92; transform: rotate(-12deg) scale(1); } }
.mf-foot { display: flex; align-items: center; justify-content: flex-end; gap: 18px; min-height: 70px; margin-top: 16px; }
.manifest .btn { box-shadow: 4px 4px 0 var(--ink); white-space: nowrap; }
.manifest .btn:active { box-shadow: 2px 2px 0 var(--ink); }
.mf-foot-text { min-width: 170px; }
.count { font: 600 14px/1.3 Figtree, sans-serif; color: var(--ink2); font-variant-numeric: tabular-nums; }
.count b { color: var(--ink); font-weight: 800; }
.copied { margin-top: 3px; min-height: 17px; font: 600 13px/1.3 Figtree, sans-serif; color: var(--ink2); }
/* test mode, for now (Lucas, 16 Nov): a small dashed button under the countdown that deals another day; clearly not the game */
.mf-test { display: inline-block; margin-top: 4px; padding: 5px 10px 6px; background: none; border: 2px dashed var(--peri); border-radius: 6px; color: var(--ink2); font: 700 12.5px/1.2 Figtree, sans-serif; cursor: pointer; white-space: nowrap; }
.mf-test:hover { border-color: var(--ink2); background: rgba(109, 118, 217, .1); }
.mf-test:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
/* the day's gag: a yellow sticky note slapped onto the manifest's bottom corner, hanging off it, after the stamp lands */
.sticky { position: absolute; right: -30px; top: calc(100% - 26px); z-index: 3; width: 214px; padding: 12px 15px 14px; background: var(--yellow); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 4px 5px 0 var(--ink), inset 0 24px 0 rgba(255, 106, 43, .13); transform: rotate(4deg); animation: stick .42s cubic-bezier(.2, 1.5, .4, 1) 1.35s both; }
@keyframes stick { from { opacity: 0; transform: rotate(12deg) scale(1.25); } to { opacity: 1; transform: rotate(4deg) scale(1); } }
.sticky-ps { font: 400 18px/1 Shrikhand, serif; color: var(--tang); transform: rotate(-3deg); transform-origin: left; margin-bottom: 7px; }
.sticky .doodle { display: block; height: 70px; width: auto; max-width: 100%; margin: 0 auto 8px; }
.sticky p { margin: 0; font: 700 14px/1.32 Figtree, sans-serif; }
.sticky p:empty { display: none; }
.sticky:has(p:empty) { width: auto; }   /* a doodle on its own: the note shrinks to fit it */
.sticky:has(p:empty) .doodle { height: 92px; margin: 2px 6px 0; }

/* ---------- napkin maths: a tab at the top middle opens a calculator and a notepad (napkin.js) ---------- */
/* the whole drawer slides: closed, only the tab shows below the top edge; open, the napkin hangs down with the tab under it */
.napkin { position: absolute; top: 0; left: 50%; z-index: 3; width: min(640px, calc(100% - 20px)); display: flex; flex-direction: column; align-items: center; transform: translate(-50%, calc(-100% + 40px)); transition: transform .32s cubic-bezier(.3, 1.15, .4, 1); pointer-events: none; }
.napkin.open { transform: translate(-50%, 0); }
.napkin-panel { pointer-events: auto; width: 100%; display: grid; grid-template-columns: 252px 1fr; gap: 16px; padding: 18px 18px 16px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-top: 0; border-radius: 0 0 20px 20px; box-shadow: 6px 7px 0 var(--ink); visibility: hidden; transition: visibility 0s .32s; }
.napkin.open .napkin-panel { visibility: visible; transition: none; }
.napkin-tab { pointer-events: auto; position: relative; margin-top: -3px; height: 43px; padding: 3px 18px 0; border: 3px solid var(--ink); border-top: 0; border-radius: 0 0 14px 14px; background: var(--tang); color: var(--ink); font: 400 18px/1 Shrikhand, serif; letter-spacing: .04em; white-space: nowrap; box-shadow: 3px 4px 0 var(--ink); cursor: pointer; }
.napkin-tab:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.napkin.open .napkin-tab { background: var(--yellow); }
.calc { outline: none; }
.calc-screen { min-height: 84px; padding: 8px 12px 8px; text-align: right; background: var(--ink2); border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; }
.calc-expr { min-height: 17px; font: 600 13px/1.3 Figtree, sans-serif; color: var(--soft); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.calc-val { font: 800 26px/1.15 Figtree, sans-serif; color: var(--yellow); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.calc-words { min-height: 16px; font: 600 12.5px/1.3 Figtree, sans-serif; color: var(--lilac); }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 11px; }
.calc-keys button { height: 40px; border: 2.5px solid var(--ink); border-radius: 10px; background: var(--creamHi); color: var(--ink); font: 800 18px/1 Figtree, sans-serif; box-shadow: 2px 2px 0 var(--ink); cursor: pointer; }
.calc-keys .op { background: var(--tang); font-size: 21px; }
.calc-keys .fn { background: var(--lilac); font-size: 16px; }
.calc-keys .eq { background: var(--yellow); font-size: 21px; }
.calc-keys button:active, .calc-use:active:not(:disabled) { transform: translate(1.5px, 1.5px); box-shadow: .5px .5px 0 var(--ink); }
.calc-keys button:focus-visible, .calc-use:focus-visible, .notes textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.calc-use { width: 100%; height: 40px; margin-top: 11px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--peri); color: var(--cream); font: 400 16px/1 Caprasimo, serif; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.calc-use:disabled { opacity: .4; cursor: default; }
.notes { position: relative; display: flex; flex-direction: column; min-width: 0; }
.sheet { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.sheet[hidden] { display: none !important; }
/* notebook divider tabs, sticking out of the napkin's right edge beside the right-hand page */
.index-tabs { position: absolute; top: 4px; right: -51px; display: flex; flex-direction: column; gap: 6px; }
.index-tabs button { width: 30px; padding: 12px 0; writing-mode: vertical-rl; border: 3px solid var(--ink); border-left: 0; border-radius: 0 10px 10px 0; background: var(--lilac); color: var(--ink); font: 400 14px/1 Shrikhand, serif; letter-spacing: .03em; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.index-tabs button[aria-selected="true"] { background: var(--cream); color: var(--tang); }
.index-tabs button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.conv-body { flex: 1; min-height: 0; overflow: auto; padding: 6px 12px 8px; border: 2.5px solid var(--ink); border-radius: 10px; background: var(--creamHi); font: 600 13px/1.35 Figtree, sans-serif; }
.conv-body h3 { margin: 6px 0 3px; font: 800 11px/1 Figtree, sans-serif; letter-spacing: .06em; color: var(--tang); }
.conv-body dl { margin: 0; }
.conv-body dl div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; border-bottom: 1.5px dashed var(--shade); }
.conv-body dt { color: var(--ink2); }
.conv-body dd { margin: 0; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.conv-body p { margin: 8px 0 0; font-size: 12px; color: var(--ink2); }
@media (min-width: 601px) {   /* side by side, the right-hand page is as tall as the calculator, never taller */
  .notes { contain: size; }
  .conv-body { font-size: 12.5px; line-height: 1.3; }
  .conv-body h3 { margin: 5px 0 2px; }
  .conv-body dl div { padding: 1px 0; }
}
.notes-head { margin: -2px 0 6px 2px; font: 400 17px/1 Shrikhand, serif; color: var(--tang); transform: rotate(-2deg); transform-origin: left; align-self: flex-start; }
/* lined paper with a tang margin line: hard-edged stripes, not a soft gradient */
.notes textarea { flex: 1; min-height: 200px; width: 100%; resize: none; padding: 0 12px 0 34px; border: 2.5px solid var(--ink); border-radius: 10px; color: var(--ink); font: 600 15px/26px Figtree, sans-serif; outline: none;
  background: linear-gradient(90deg, transparent 24px, var(--tang) 24px 26px, transparent 26px), repeating-linear-gradient(transparent 0 25px, var(--shade) 25px 26px) 0 0 / 100% 26px, var(--creamHi); background-attachment: local; }

/* ---------- review mode only (?scene=…): quick guesses and a readout, never in the game ---------- */
.quick { position: absolute; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; max-width: calc(100% - 28px); font: 600 12px/1 Figtree, sans-serif; color: var(--soft); }
.quick button { font: 700 12px/1 Figtree, sans-serif; color: var(--cream); background: rgba(11, 12, 42, .6); border: 1.5px solid rgba(247, 232, 201, .35); border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.quick button:hover { border-color: var(--yellow); }
.quick .dbg { width: 100%; text-align: right; opacity: .7; font-variant-numeric: tabular-nums; }

@media (max-width: 820px) {   /* the manifest's table becomes stacked entries */
  .mf-table thead { display: none; }
  .mf-table, .mf-table tbody, .mf-table tfoot { display: block; }
  .mf-table tbody tr { display: grid; grid-template-columns: 20px 1fr 1fr auto; gap: 6px 10px; padding: 11px 0 10px; border-bottom: 2px dashed var(--shade); }
  .mf-table td { padding: 0; border: 0; }
  .mf-table td.n { grid-area: 1 / 1; }
  .mf-table td.carrier { grid-area: 1 / 2 / 2 / 4; }
  .mf-table td.pts { grid-area: 1 / 4; }
  .mf-table .c-cargo { grid-area: 2 / 2; } .mf-table .c-dec { grid-area: 2 / 3; }
  .mf-table .c-act { grid-area: 3 / 2; } .mf-table .c-off { grid-area: 3 / 3; }
  .mf-table td[data-l] { font-size: 13.5px; }
  .mf-table td[data-l]::before { content: attr(data-l); display: block; margin-bottom: 1px; font: 800 10.5px/1.2 Figtree, sans-serif; color: var(--ink2); opacity: .7; }
  .mf-table tfoot tr { display: flex; justify-content: flex-end; align-items: baseline; gap: 10px; }
}
@media (max-width: 600px) {
  .brand { font-size: 28px; top: 18px; left: 20px; }
  .progress { top: 24px; right: 20px; }
  .kicker { font-size: 19px; }
  .question { font-size: 30.5px; text-shadow: 2px 2px 0 var(--tang); }
  .hud[data-fit=small] .question { font-size: 27px; }
  .hud[data-fit=smaller] .question { font-size: 24px; }
  .clar { font-size: 14.5px; margin-top: 14px; }
  .guess { gap: 12px; margin-top: 20px; }
  .guess input { width: 178px; padding: 0 20px; }
  .btn { padding: 0 22px; }
  .verdict { font-size: 21px; padding: 8px 18px 9px; }
  .result { font-size: 16.5px; }
  #open .kicker { margin-bottom: 7px; }
  .lede { font-size: 15px; line-height: 1.3; margin-top: 8px; }
  .how { font-size: 14.5px; gap: 5px; margin-top: 10px; }
  .how li::before { width: 24px; height: 24px; font-size: 13.5px; }
  .rule { font-size: 18px; margin-top: 10px; }
  .rule span { font-size: 13px; margin-top: 3px; }
  .play { margin-top: 16px; padding: 0 36px; }
  .napkin { width: calc(100% - 50px); left: calc(50% - 17px); }   /* room on the right for the divider tabs */
  .napkin-panel { grid-template-columns: 1fr; gap: 10px; padding: 14px 14px 12px; }
  .napkin-tab { font-size: 16px; padding: 3px 14px 0; }
  .calc-screen { min-height: 74px; padding: 6px 10px; }
  .calc-val { font-size: 23px; }
  .calc-keys { gap: 6px; margin-top: 9px; }
  .calc-keys button { height: 35px; }
  .calc-use { height: 36px; margin-top: 8px; }
  .notes-head { margin-bottom: 4px; font-size: 15px; }
  .notes textarea { min-height: 80px; }
  .index-tabs { right: -45px; top: 0; gap: 4px; }
  .index-tabs button { width: 28px; padding: 9px 0; font-size: 12.5px; }
  .conv-body { max-height: 210px; }
  .manifest { padding: 22px 30px 16px; box-shadow: 5px 6px 0 var(--ink); }
  .manifest::before, .manifest::after { width: 11px; background-size: 11px 19px; }
  .manifest::before { left: 5px; } .manifest::after { right: 5px; }
  .mf-head h2 { font-size: 25px; }
  .mf-meta { gap: 12px; font-size: 11px; }
  .mf-meta dd { font-size: 13px; }
  .mf-route { font-size: 13px; }
  .mf-table .carrier b { font-size: 16px; }
  .mf-table td.pts { font-size: 21px; }
  .mf-table tfoot td { padding: 10px 0 0; font-size: 17px; }
  .hl { font-size: 23px; }
  .mf-stamp { left: 22px; bottom: 12px; width: 96px; height: 96px; }
  .mf-stamp b { font-size: 42px; }
  .mf-stamp small { font-size: 9.5px; }
  .mf-foot { flex-direction: column; align-items: flex-end; gap: 10px; min-height: 0; margin-top: 12px; padding-left: 104px; }
  .mf-foot-text { min-width: 0; text-align: right; }
  .manifest .share { font-size: 18px; padding: 0 20px; height: 50px; }
  .sticky { width: 196px; right: -8px; top: calc(100% - 16px); padding: 10px 12px 11px; box-shadow: 3px 4px 0 var(--ink), inset 0 20px 0 rgba(255, 106, 43, .13); }
  .sticky-ps { font-size: 15px; margin-bottom: 5px; }
  .sticky .doodle { height: 54px; margin-bottom: 6px; }
  .sticky:has(p:empty) .doodle { height: 74px; }
  .sticky p { font-size: 12.5px; }
  .quick { left: 10px; right: 10px; top: 58px; bottom: auto; justify-content: center; }
  .quick .dbg { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .verdict, .manifest, .mf-stamp, .sticky { animation: none; } .napkin { transition: none; } }
