@font-face { font-family: "Archivo"; src: url("/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fonts/caveat-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  /* Forkstart: quiet every day, loud on the days that matter */
  --ink: #111512;
  --paper: #ffffff;
  --frame: #f0f1ee;     /* empty slots */
  --soft: #4d5650;      /* secondary text */
  --line: #d5d8d2;
  --green: #12804a;     /* the one action */
  --green-deep: #0d6a3c;
  --red: #b4301a;       /* stamps only */
  --tape: #ffc83d;      /* keepsakes only */
  --kraft: #c9a77a;     /* keepsakes only */
  --text: "Archivo", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --hand: "Caveat", "Bradley Hand", cursive;
  --gut: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 500 17px/1.45 var(--text);
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
h1, h2, h3 { font-family: var(--text); font-weight: 900; font-stretch: 112%; margin: 0; text-wrap: balance; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: 46px; font-stretch: 118%; letter-spacing: -0.03em; text-transform: uppercase; line-height: 0.9; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 8px 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: 0.5; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono, .field-label, .group-label, .hint.center { font-family: var(--mono); }
.mono { font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }

.app { max-width: 560px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 8px) var(--gut) calc(env(safe-area-inset-bottom) + 132px); min-height: 100dvh; }
.page { padding-top: 10px; }
.app { overflow-x: clip; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 6px 0 16px; }
.bleed { margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); }

/* Name and mark */
.brand { display: flex; align-items: center; gap: 7px; color: var(--ink); font: 900 15px/1 var(--text); font-stretch: 125%; letter-spacing: -0.01em; }
.brand svg { width: 16px; height: 19px; color: var(--green); flex: none; }
.brand.big { flex-direction: column; align-items: flex-start; gap: 16px; font-size: 36px; letter-spacing: -0.02em; margin-bottom: 8px; }
.brand.big svg { width: 60px; height: 71px; }
.top { display: flex; align-items: center; justify-content: space-between; min-height: 32px; padding: 4px 0 0; }

/* Lock */
.lock { max-width: 420px; margin: 0 auto; padding: 11vh 28px 28px; }
.lock h1 { text-transform: none; }
.lock .tagline { font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); margin: 0 0 30px; }
.lock p { color: var(--soft); }
.lock form { display: grid; gap: 14px; margin-top: 22px; }
.legal-links { display: flex; gap: 18px; margin-top: 18px; }
.legal-links a { display: inline-flex; align-items: center; }
.code { font-size: 22px; letter-spacing: 0.2em; }
.lock form .field-label { margin: 10px 0 0; }
.lock form .hint { margin: 0; }
.lock h2 { margin: 6px 0 10px; font-size: 26px; }
.signup { max-width: 480px; padding-top: 6vh; }
.ways { display: grid; gap: 14px; margin: 22px 0 6px; }
.way { display: flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; }
.way-email { margin-top: 0 !important; padding-top: 14px; border-top: 1px solid var(--line); }
.sent { background: var(--frame); border-left: 6px solid var(--ink); padding: 12px 14px; margin: 0; font-weight: 600; }
.alt-way { margin-top: 10px; border-top: 1px solid var(--line); }
.alt-way[open] { padding-bottom: 10px; }
input[type="email"] { width: 100%; background: transparent; border: 0; border-bottom: 3px solid var(--ink); padding: 10px 0 9px; margin: 4px 0 0; min-height: 50px; font-weight: 600; -webkit-appearance: none; appearance: none; }
.toast { text-transform: none; letter-spacing: 0.02em; }
.signin-name { background: var(--frame); padding: 14px 16px; display: grid; gap: 2px; }
.signin-name strong { font-weight: 900; font-stretch: 112%; font-size: 26px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.signin-name .mono { color: var(--ink); font-weight: 700; }
.tick { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; min-height: 44px; padding: 6px 0; cursor: pointer; }
.tick input { width: 28px; height: 28px; margin: 0; accent-color: var(--ink); }
.tick span { padding-top: 2px; }
.tick .link { padding: 0; min-height: 0; }
input[type="tel"] { width: 100%; background: transparent; border: 0; border-bottom: 3px solid var(--ink); padding: 10px 0 9px; margin: 4px 0 0; min-height: 50px; font-weight: 600; -webkit-appearance: none; appearance: none; }
.name-input { font-size: 20px; }

/* Inputs: one heavy underline, nothing else */
input[type="text"], input[type="password"], input[type="date"], textarea, select {
  width: 100%; background: transparent; border: 0; border-bottom: 3px solid var(--ink); padding: 10px 0 9px; margin: 4px 0 0;
  -webkit-appearance: none; appearance: none; min-height: 50px; font-weight: 600;
}
select { font: 700 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; border-bottom-width: 2px; }
textarea { resize: vertical; min-height: 64px; }
::placeholder { color: #6d756f; font-weight: 500; opacity: 1; }
input:focus, textarea:focus, select:focus { outline: none; border-bottom-color: var(--green); box-shadow: 0 3px 0 var(--green); }
.field-label { display: block; margin: 24px 0 8px; font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }

/* Buttons */
.primary { background: var(--green); color: #fff; border: 0; padding: 15px 20px; font-weight: 900; font-stretch: 112%; font-size: 19px; letter-spacing: 0.04em; text-transform: uppercase; width: 100%; min-height: 58px; }
.primary:active, .log-btn:active { background: var(--green-deep); }
.page .primary, .keepsake .primary { background: var(--ink); }   /* green stays with the camera */
.secondary { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 11px 14px; min-height: 48px; flex: 1; font: 700 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.secondary.warn { border-color: var(--red); color: var(--red); }
.wide { width: 100%; margin-top: 10px; }
.link { background: none; border: 0; padding: 8px 2px; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; min-height: 44px; }
.link.quiet { color: var(--soft); font-weight: 500; text-decoration-thickness: 1px; }
.icon-btn { background: none; border: 0; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--paper); border: 2px solid var(--ink); padding: 9px 12px; min-height: 44px; font: 700 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.chip.on, .chip.solid { background: var(--ink); color: #fff; }
.chip.date-input { width: auto; margin: 0; padding: 8px 10px; border: 2px solid var(--ink); min-height: 44px; }
.tool-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hint { color: var(--soft); font-size: 15px; }
.note { color: var(--red); font-weight: 700; }

/* Stamp: the one loud thing */
.stamp { display: inline-block; white-space: nowrap; border: 3px solid var(--red); color: var(--red); font: 900 16px/1 var(--text); font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 10px 5px; transform: rotate(-7deg); background: rgba(255, 255, 255, 0.92); }
.stamp.land { animation: stamp 0.34s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes stamp { from { transform: rotate(-16deg) scale(2.2); opacity: 0; } 60% { opacity: 1; } }

/* Today */
.day-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 14px 0 12px; }
.day-head h1 { font-size: 62px; line-height: 0.86; }
.day-side { display: grid; justify-items: end; gap: 10px; text-align: right; }
.day-nav { display: flex; align-items: center; margin-right: -10px; }
.day-nav .link { font: 700 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; min-height: 44px; }
.frame-one { background: var(--frame); padding: 22px var(--gut) 24px; margin-bottom: 3px; }
.frame-one strong { display: block; font-weight: 900; font-stretch: 112%; font-size: 30px; letter-spacing: -0.02em; line-height: 1; margin-bottom: 8px; }
.log-alt { display: flex; gap: 22px; margin: 2px 0 10px; }
.log-alt .link { font: 700 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.regular { background: var(--frame); padding: 16px var(--gut) 18px; margin-bottom: 3px; }
.regular-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.slot { margin-bottom: 3px; }
.slot-row { min-height: 60px; padding: 8px var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--frame); }
.slot-row h2, .slot-label { font: 700 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.slot-row .mono { display: block; margin-top: 2px; }
.slot-row > div:last-child { display: flex; gap: 6px; align-items: center; }
.slot-row .link { font: 700 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.slot-more { display: flex; justify-content: flex-end; padding: 0 var(--gut); }
.slot-more .link { font: 700 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.extras { padding: 18px var(--gut) 6px; }
.extras .slot-label { margin-bottom: 10px; }
.entry { width: 100%; text-align: left; background: var(--paper); border: 0; padding: 0; margin: 0; display: block; }
.entry .hero { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--frame); }
.entry-words { background: var(--ink); color: #fff; padding: 22px var(--gut) 24px; font-weight: 800; font-stretch: 108%; font-size: 26px; line-height: 1.12; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.entry-photos { display: flex; gap: 3px; overflow: hidden; margin-top: 3px; }
.entry-text { display: grid; gap: 2px; padding: 9px var(--gut) 14px; min-width: 0; }
.entry-text strong { font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.entry-text .mono { overflow-wrap: anywhere; }
.thumb { width: 72px; height: 72px; object-fit: cover; background: var(--frame); flex: none; display: block; }
.thumb.big { width: 132px; height: 132px; }
.nudge { border-top: 3px solid var(--ink); background: var(--frame); padding: 14px var(--gut) 12px; margin-bottom: 3px; display: grid; gap: 4px; }
.nudge strong { font-weight: 800; }
.nudge span { color: var(--soft); }
.nudge .link { justify-self: start; }

.weight-line { width: calc(100% + var(--gut) * 2); border: 0; margin-top: 3px; text-align: left; }
.weight-line .mono { margin: 0; }
.roll-grid, .roll-row, .hist-est { width: 100%; }
.roll-row { box-sizing: border-box; }

/* Sync pill and toast */
.sync-pill { display: block; width: 100%; margin: 6px 0 0; background: var(--ink); color: #fff; border: 0; padding: 8px 12px; font: 700 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; min-height: 40px; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 124px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; font: 700 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; z-index: 60; max-width: 88vw; text-align: center; animation: pop 0.18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px); } }

/* Bottom bar: three words and the camera */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; background: var(--paper); border-top: 3px solid var(--ink); z-index: 20; }
.tabs-in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gut) calc(env(safe-area-inset-bottom) + 12px); }
.tab-list { display: flex; gap: 4px; margin-left: -8px; }
.tab-list button { background: none; border: 0; padding: 0 8px; min-height: 48px; color: var(--soft); font: 700 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.tab-list button span { display: inline-block; padding-bottom: 5px; border-bottom: 3px solid transparent; }
.tab-list button.on { color: var(--ink); }
.tab-list button.on span { border-bottom-color: var(--ink); }
.log-btn { width: 72px; height: 72px; border-radius: 50%; border: 5px solid var(--ink); background: var(--green); color: #fff; display: grid; place-items: center; flex: none; padding: 0; }

/* Entry sheet */
.sheet { position: fixed; inset: 0; background: var(--paper); z-index: 40; display: flex; flex-direction: column; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 8px) 10px 4px var(--gut); }
.sheet-head h2 { font: 700 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px var(--gut) 24px; max-width: 560px; width: 100%; margin: 0 auto; }
.sheet-foot { padding: 10px var(--gut) calc(env(safe-area-inset-bottom) + 14px); background: var(--paper); }
.sheet-foot .primary { max-width: 520px; display: block; margin: 0 auto; }
.photos-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 6px; }
.photo-card { position: relative; flex: none; width: 132px; }
.photo-card.solo { width: 100%; }
.photo-card.solo .thumb.big { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.photo-card select { min-height: 44px; padding: 8px 0; margin: 0; }
.photo-card .remove { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; }
.photo-add { flex: none; display: grid; justify-items: start; }
.add-photo { width: 132px; height: 132px; border: 0; background: var(--frame); display: grid; place-items: center; align-content: center; gap: 6px; color: var(--ink); font: 700 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.photo-add .link { font: 700 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.suggest { margin-top: 10px; width: 100%; text-align: left; background: var(--frame); color: var(--ink); border: 0; border-left: 6px solid var(--ink); padding: 12px 14px; font-weight: 700; min-height: 48px; }
.recents { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 2px; }
.recent { flex: none; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--frame); border: 0; padding: 8px 12px; color: var(--ink); min-height: 44px; font-size: 15px; }
.entry-tools { margin-top: 10px; }
.more-toggle { width: 100%; margin-top: 24px; background: none; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; min-height: 50px; font: 700 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); text-align: left; }
.more-toggle::before { content: "+ "; }
.more-toggle[aria-expanded="true"]::before { content: "- "; }
.est-line { background: var(--frame); padding: 10px 14px; font: 500 13px var(--mono); letter-spacing: 0.04em; color: var(--ink); margin: 0 0 4px; }

/* Rolls */
.roll-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-bottom: 3px; }
.roll-grid .thumb { width: 100%; height: auto; aspect-ratio: 1; }
.roll-words { aspect-ratio: 1; background: var(--ink); color: #fff; padding: 10px 11px; font-weight: 800; font-size: 15px; line-height: 1.12; overflow: hidden; overflow-wrap: anywhere; }
.hist-day, .hist-gap { width: calc(100% + var(--gut) * 2); text-align: left; background: none; border: 0; padding: 0; margin: 0 calc(var(--gut) * -1) 3px; display: block; }
.roll-row { min-height: 48px; padding: 6px var(--gut); display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--frame); font: 700 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.roll-row .done { color: var(--red); }
.roll-row .part { color: var(--soft); }
.hist-gap .roll-row { color: var(--soft); min-height: 56px; }
.hist-est { display: block; padding: 6px var(--gut) 8px; background: var(--frame); margin-top: -3px; font: 500 12px var(--mono); letter-spacing: 0.04em; color: var(--soft); }
.hint.center { text-align: center; margin: 18px 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Weight */
.weight-form { display: grid; gap: 10px; }
.weight-input { position: relative; }
.weight-input input { font-size: 44px; font-weight: 900; font-stretch: 112%; padding-right: 48px; min-height: 70px; }
.weight-input span { position: absolute; right: 0; bottom: 18px; font: 700 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.trend { margin: 26px 0 8px; }
.trend svg { width: 100%; height: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trend .dot { fill: #b9beb7; }
.trend .line { stroke: var(--ink); stroke-width: 4; stroke-linecap: square; stroke-linejoin: round; }
.trend figcaption { color: var(--soft); font-size: 15px; margin-top: 8px; }
.weight-list { list-style: none; padding: 0; margin: 12px 0; }
.weight-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }

/* More: a plain list, like a receipt */
.group-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); margin: 22px 0 0; padding: 0 var(--gut) 7px; border-bottom: 3px solid var(--ink); font-stretch: 100%; }
.more-row { border-bottom: 1px solid var(--line); }
.more-row h3 { font: inherit; letter-spacing: 0; }
.li { width: 100%; min-height: 50px; padding: 6px var(--gut); display: flex; justify-content: space-between; align-items: center; gap: 12px; background: none; border: 0; text-align: left; font-size: 17px; font-weight: 600; }
.li span { font: 700 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); text-align: right; }
.more-row.open { border-bottom: 3px solid var(--ink); }
.more-row.open .li { background: var(--frame); }
.more-body { padding: 14px var(--gut) 20px; }
.card { margin: 0; }
.more-body .card > h2:first-child { display: none; }
.welcome .card { border-top: 3px solid var(--ink); padding-top: 14px; }
.range { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 4px 0 10px; }
.range label { font: 700 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; min-width: 0; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.editor { display: grid; gap: 8px; margin-top: 10px; }

/* Contact form inbox */
.msg { border-top: 1px solid var(--line); padding: 14px 0 4px; margin-top: 12px; }
.msg h3 span { display: block; font: 500 12px/1.4 var(--mono); color: var(--soft); letter-spacing: 0.04em; margin-top: 4px; }
.msg p { overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.done { opacity: 0.75; }

/* People and sign-in */
.person { border-top: 1px solid var(--line); padding: 12px 0 4px; margin-top: 10px; }
.person strong { display: block; font-weight: 800; }
.person span { display: block; color: var(--soft); font-size: 15px; }
.invite { background: var(--frame); border-left: 6px solid var(--ink); padding: 14px; margin: 14px 0; display: grid; gap: 8px; }
.invite input { font-size: 14px; }
.forgot { margin-top: 18px; }
.forgot summary { cursor: pointer; color: var(--soft); min-height: 44px; display: flex; align-items: center; font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.forgot p { color: var(--soft); font-size: 16px; }

/* First-run welcome */
.welcome { max-width: 520px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 32px) 24px calc(env(safe-area-inset-bottom) + 28px); }
.welcome .brand.big { margin-bottom: 26px; }
.welcome h1 { font-size: 34px; margin-bottom: 22px; text-transform: none; line-height: 1; }
.welcome-steps { list-style: none; counter-reset: w; margin: 0 0 16px; padding: 0; }
.welcome-steps li { counter-increment: w; position: relative; border-top: 3px solid var(--ink); padding: 14px 0 16px 52px; }
.welcome-steps li::before { content: "0" counter(w); position: absolute; left: 0; top: 16px; font: 700 14px var(--mono); letter-spacing: 0.08em; }
.welcome-steps strong { display: block; font-weight: 800; font-size: 19px; }
.welcome-steps span { color: var(--soft); font-size: 16px; }
.welcome .install { margin: 18px 0; }
.welcome .install ol { margin: 8px 0 0; padding-left: 22px; }
.welcome .primary { margin-top: 10px; }

/* Keepsakes: texture, tape and handwriting live here and nowhere else */
.hand { font: 700 30px/1 var(--hand); color: var(--ink); }
.week-page { overflow: hidden; background: var(--kraft); padding: 22px var(--gut) 24px; margin: 0 calc(var(--gut) * -1) 3px; }
.week-sheet { background: #fbfaf4; padding: 14px 14px 12px; box-shadow: 0 6px 0 rgba(17, 21, 18, 0.18); transform: rotate(-1.2deg); position: relative; }
.week-sheet .hand { text-align: center; margin: 0 0 10px; }
.week-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.week-shots .thumb { width: 100%; height: auto; aspect-ratio: 1; }
.week-shots .thumb:nth-child(odd) { transform: rotate(-2deg); }
.week-shots .thumb:nth-child(even) { transform: rotate(1.5deg); }
.week-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.week-foot .stamp { font-size: 13px; padding: 5px 8px 4px; background: none; }
.tape { position: absolute; width: 96px; height: 28px; background: var(--tape); opacity: 0.9; left: 50%; top: -14px; transform: translateX(-50%) rotate(3deg); }
.keepsake { position: fixed; inset: 0; z-index: 70; background: var(--kraft); display: grid; align-content: center; justify-items: center; gap: 26px; padding: 28px; overflow-y: auto; }
.polaroid { background: #fff; padding: 14px 14px 18px; box-shadow: 0 10px 0 rgba(17, 21, 18, 0.18); transform: rotate(-3deg); position: relative; width: min(78vw, 320px); animation: drop 0.4s cubic-bezier(0.2, 1.3, 0.4, 1); }
.polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--frame); }
.polaroid .hand { text-align: center; margin-top: 16px; }
.keepsake h2 { text-align: center; font-size: 28px; }
.keepsake p { text-align: center; margin: 6px 0 0; color: #2b2114; }
.keepsake .primary { max-width: 320px; }
@keyframes drop { from { transform: rotate(6deg) translateY(-40px); opacity: 0; } }

.drop-hint { display: none; }
.lw { display: none; }

/* ---------- Tablets and wide phones: more room, same rules ---------- */
@media (min-width: 720px) {
  :root { --gut: 28px; }
  .app, .tabs-in { max-width: 860px; }
  .bleed, .hist-day, .hist-gap, .week-page { margin-left: 0; margin-right: 0; }
  .hist-day, .hist-gap, .weight-line { width: 100%; }
  .day-head h1 { font-size: 84px; }
  h1 { font-size: 60px; }
  /* Three meals, three frames, side by side */
  .slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; align-items: start; margin-bottom: 3px; }
  .slots .slot { margin: 0; }
  .slots .slot-row { aspect-ratio: 4 / 3; min-height: 0; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 18px; }
  .slots .slot-row h2 { font-size: 13px; }
  .slots .entry-text, .extras-list .entry-text { padding-left: 2px; padding-right: 2px; }
  .slots .entry-words, .extras-list .entry-words { aspect-ratio: 4 / 3; padding: 18px; font-size: 22px; overflow: hidden; }
  .slots .slot-more { padding: 0; justify-content: flex-start; }
  .extras-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; align-items: start; }
  .extras { padding-left: 0; padding-right: 0; }
  .regular, .nudge, .frame-one { padding-left: 18px; padding-right: 18px; }
  /* Rolls: days sit next to each other like strips on a sheet */
  .rolls-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 18px; align-items: start; }
  .rolls-list .week-page, .rolls-list .hist-gap { grid-column: 1 / -1; }
  .rolls-list .week-sheet { max-width: 420px; margin: 0 auto; }
  .hist-day, .hist-gap { margin-bottom: 0; }
  /* More and Weight stay a comfortable reading width */
  .page .weight-form, .page .trend, .page .weight-list, .page > .bleed, .page > .hint { max-width: 620px; }
  /* The entry form becomes a panel instead of taking the whole screen */
  .sheet { left: 50%; right: auto; width: min(640px, 100%); transform: translateX(-50%); border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); box-shadow: 0 0 0 100vmax rgba(17, 21, 18, 0.5); }
  .polaroid { width: 360px; }
}

/* ---------- Laptops and desktops: navigation moves to a side rail ---------- */
@media (min-width: 1024px) {
  .app { max-width: none; margin: 0; padding: 36px 56px 72px calc(248px + 56px); }
  .app > main, .app > .sync-pill { max-width: 1080px; }
  .top { position: fixed; left: 30px; top: 30px; z-index: 21; padding: 0; }
  .brand { font-size: 21px; gap: 9px; }
  .brand svg { width: 22px; height: 26px; }
  .tabs { top: 0; bottom: 0; right: auto; width: 248px; border-top: 0; border-right: 3px solid var(--ink); }
  .tabs-in { max-width: none; height: 100%; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 104px 30px 30px; }
  .tab-list { flex-direction: column; gap: 2px; margin: 0 0 0 -8px; }
  .tab-list button { text-align: left; font-size: 14px; min-height: 46px; }
  .log-btn { margin-top: auto; width: 100%; height: 62px; border-radius: 0; border: 0; display: flex; align-items: center; justify-content: center; gap: 12px; }
  .log-btn .lw { display: inline; font: 900 16px var(--text); font-stretch: 112%; letter-spacing: 0.04em; text-transform: uppercase; }
  .day-head h1 { font-size: 104px; }
  .day-head { padding-top: 0; }
  .page { padding-top: 0; }
  .rolls-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .drop-hint { display: inline-flex; align-items: center; margin-left: auto; }
  .log-alt { align-items: center; }
  .toast { bottom: 36px; left: calc(50% + 124px); }
  .top .skip { top: -140px; left: 0; white-space: nowrap; }
}
@media (min-width: 1024px) and (hover: hover) {
  .entry:hover .hero, .hist-day:hover .roll-grid { outline: 3px solid var(--ink); outline-offset: -3px; }
  .tab-list button:hover { color: var(--ink); }
  .li:hover, .slot-row.weight-line:hover { background: var(--frame); }
}

/* ---------- Groups ---------- */
.caption { display: inline-block; justify-self: start; background: var(--ink); color: #fff; font: 700 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 7px 4px; margin-top: 4px; }
.cap-row { display: flex; gap: 8px; align-items: flex-end; }
.cap-row input { flex: 1; }
.cap-row .chip { flex: none; }
.fork { display: inline-block; vertical-align: -2px; color: var(--green); }
.green { color: var(--green); }
.red { color: var(--red); }
.big { font: 900 52px/0.9 var(--text); font-stretch: 118%; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.huge { font: 900 120px/0.85 var(--text); font-stretch: 118%; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

/* The week as seven squares: filled logged, hatched freeze, dashed today, faint before the start */
.wk { display: flex; gap: 4px; }
.wk span { width: 20px; height: 20px; border: 2px solid var(--ink); background: var(--paper); flex: none; }
.wk .wk-logged { background: var(--ink); }
.wk .wk-freeze { background: repeating-linear-gradient(45deg, var(--ink) 0 2px, var(--paper) 2px 5px); }
.wk .wk-miss { border-color: var(--red); }
.wk .wk-today { border-style: dashed; }
.wk .wk-before { border-color: var(--line); }
.wk-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 8px 0 0; }
.wk-key span { width: 11px; height: 11px; border: 2px solid var(--ink); display: inline-block; margin-left: 6px; }
.wk-key span:first-child { margin-left: 0; }
.wk-key .k-l { background: var(--ink); }
.wk-key .k-f { background: repeating-linear-gradient(45deg, var(--ink) 0 2px, var(--paper) 2px 4px); }
.wk-key .k-t { border-style: dashed; }

/* Today: the streak and the check-in */
.streak-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px var(--gut); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.sb-streak { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; background: none; border: 0; padding: 4px 0; text-align: left; min-height: 48px; }
.sb-streak:disabled { opacity: 1; }
.sb-streak strong { grid-row: 1 / 3; font: 900 40px/0.9 var(--text); font-stretch: 118%; font-variant-numeric: tabular-nums; }
.sb-streak .wk span { width: 12px; height: 12px; }
.sb-streak .wk { gap: 3px; margin-top: 4px; }

/* The group page */
.g-head { padding: 10px var(--gut) 12px; border-bottom: 3px solid var(--ink); margin-bottom: 10px; }
.g-head h1 { overflow-wrap: anywhere; }
.g-head .mono { margin: 8px 0 0; }
.group .chips { margin: 0 0 10px; }
.members { list-style: none; margin: 0; padding: 0; border-bottom: 3px solid var(--ink); }
.mrow { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding-right: var(--gut); }
.mrow:last-child { border-bottom: 0; }
.m-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 12px 0 12px var(--gut); text-align: left; min-height: 72px; }
.av { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--ink); color: #fff; font: 900 18px var(--text); font-stretch: 118%; }
.av.quiet { background: var(--frame); color: var(--ink); }
.m-who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.m-who strong { font-weight: 800; font-size: 18px; overflow-wrap: anywhere; }
.m-note { color: var(--soft); font-size: 15px; font-style: italic; overflow-wrap: anywhere; }
.ths { display: flex; gap: 3px; flex: none; }
.ths .thumb { width: 44px; height: 44px; }
.th-words { width: 44px; height: 44px; background: var(--ink); color: #fff; font: 800 9px/1.1 var(--text); padding: 4px; overflow: hidden; overflow-wrap: anywhere; }
.nudge-btn { flex: none; }
.nudge-btn.on { background: var(--frame); color: var(--soft); border-color: var(--line); opacity: 1; }
.recent-c .c-line { min-height: 54px; }
.li .c-body { font: 500 16px/1.35 var(--text); color: var(--ink); text-transform: none; letter-spacing: 0; text-align: left; }
.c-body strong { font-weight: 800; }
.yn { margin-top: 6px; }
.yn .field-label { margin-top: 18px; }
.yn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.yn-row .chip { min-height: 48px; }
.g-form .primary { margin-top: 18px; }
.g-form .mono { margin: 10px 0 0; }

/* Joining */
.join .g-mark svg, .g-mark svg { width: 34px; height: 40px; color: var(--green); }
.join .mono { color: var(--ink); font-weight: 700; margin: 14px 0 4px; }
.join .g-name { font-size: 50px; text-transform: uppercase; overflow-wrap: anywhere; }
.join .deal { background: var(--frame); color: var(--ink); padding: 14px 16px; font-weight: 600; margin: 4px 0 0; }
.join form { gap: 6px; }

/* A member's profile */
.p-head { display: grid; gap: 4px; padding: 0 0 12px; }
.p-head h1 { font-size: 64px; overflow-wrap: normal; word-break: normal; min-width: 0; }
.p-head h1.mid { font-size: 46px; }
.p-head h1.long { font-size: 34px; overflow-wrap: anywhere; }
.p-side { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-left: -2px; }
.p-side .mono { text-align: right; }
.p-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.p-stats > div { padding: 14px var(--gut) 16px; display: grid; gap: 6px; align-content: start; }
.p-stats > div + div { border-left: 1px solid var(--line); }
.p-stats .wk span { width: 16px; height: 16px; }
.p-stats .wk { gap: 3px; flex-wrap: wrap; }
.p-day { margin-top: 14px; }
.p-dayhead { display: flex; justify-content: space-between; align-items: center; padding: 6px var(--gut); min-height: 44px; border-bottom: 1px solid var(--line); }
.p-dayhead .mono { color: var(--ink); font-weight: 700; }
.stamp.small { font-size: 12px; padding: 4px 7px 3px; border-width: 2px; }
.ci-line { background: var(--frame); padding: 10px var(--gut); margin: 0 0 3px; font-size: 15px; }
.p-none { margin: 10px 0; }
.g-entry { margin-bottom: 3px; }
.g-counts { display: flex; gap: 14px; margin-top: 6px; color: var(--ink); }

/* One meal */
.ge-photos { display: grid; gap: 3px; margin: 0 calc(var(--gut) * -1) 10px; }
.ge-photos .hero { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--frame); }
.ge-title { font-size: 24px; margin: 6px 0 4px; }
.ge-title .caption { vertical-align: 4px; }
.resp { display: inline-flex; align-items: center; gap: 6px; }
.resp.on .fork { color: #fff; }
.resp-count { display: inline-flex; gap: 6px; align-items: center; color: var(--ink); }
.comments { list-style: none; margin: 18px 0 0; padding: 0; border-top: 3px solid var(--ink); }
.comments li { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.comments li strong { font-weight: 800; }
.comments .link { min-height: 32px; padding: 0 4px; margin-left: 6px; font-size: 13px; }
.c-form { display: flex; gap: 10px; align-items: flex-end; border-top: 3px solid var(--ink); max-width: none; }
.c-form input { flex: 1; margin: 0; }
.c-form .primary { width: auto; min-height: 50px; padding: 10px 18px; font-size: 15px; }

/* Check-in and streak sheets */
.ci-head, .st-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 6px 0 12px; border-bottom: 3px solid var(--ink); margin-bottom: 8px; }
.ci-head .mono, .st-head .mono { text-align: right; margin: 0; }
.feel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.feel .chip { padding-left: 4px; padding-right: 4px; min-height: 48px; }
.ci-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); min-height: 52px; font-weight: 700; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper .mono { min-width: 92px; text-align: center; color: var(--ink); }
.stepper .icon-btn { font: 900 22px var(--text); }
.st-num { display: flex; align-items: flex-end; gap: 14px; margin: 18px 0 14px; }
.st-num .mono { color: var(--ink); font-weight: 700; padding-bottom: 8px; }
.frozen { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; margin: 18px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.frozen .stamp { margin-top: 6px; }
.frozen p { margin: 0; }
.reset { background: var(--ink); color: #fff; padding: 16px var(--gut) 18px; margin: 18px calc(var(--gut) * -1); }
.reset .mono { color: #c9cec8; margin: 0 0 4px; }
.reset strong { font: 900 40px/1 var(--text); font-stretch: 118%; display: block; }
.reset p { margin: 6px 0 0; font-weight: 600; }
.st-rules { padding-left: 20px; margin: 10px 0 20px; }
.st-rules li { margin: 8px 0; }
.st .group-label { margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); }
.changes { padding-left: 20px; margin: 10px 0 4px; }
.changes li { margin: 8px 0; color: var(--soft); }
.changes strong { color: var(--ink); }

/* Four words and the camera still fit a small phone */
@media (max-width: 400px) {
  .tab-list { gap: 0; }
  .tab-list button { padding: 0 6px; letter-spacing: 0.05em; }
  .log-btn { width: 64px; height: 64px; }
}
@media (min-width: 720px) {
  .members, .recent-c, .group > .bleed, .profile > .p-day, .p-stats, .g-head { max-width: 760px; }
  .ths .thumb, .th-words { width: 56px; height: 56px; }
  .profile .p-day { max-width: 640px; }
  .g-sheet .ge-photos { margin-left: 0; margin-right: 0; }
}

/* ---------- Moves ---------- */
.chooser-wrap { position: fixed; inset: 0; z-index: 45; background: rgba(17, 21, 18, 0.5); display: flex; align-items: flex-end; justify-content: center; }
.chooser { background: var(--paper); width: 100%; max-width: 560px; border-top: 3px solid var(--ink); padding: 14px var(--gut) calc(env(safe-area-inset-bottom) + 16px); display: grid; gap: 8px; animation: pop 0.16s ease-out; }
.ch-btn { display: flex; align-items: center; gap: 16px; text-align: left; background: var(--frame); border: 0; padding: 16px; min-height: 76px; color: var(--ink); }
.ch-btn > svg { flex: none; width: 34px; height: 34px; color: var(--green); }
.ch-btn strong { display: block; font: 900 24px/1 var(--text); font-stretch: 118%; text-transform: uppercase; letter-spacing: -0.01em; }
.ch-btn span span { display: block; color: var(--soft); font-size: 15px; margin-top: 3px; }
.chooser .link { justify-self: center; }

.moves-wrap { margin-top: 3px; padding-bottom: 6px; }
.moves-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px var(--gut) 10px; border-top: 3px solid var(--ink); }
.moves-head .slot-label { color: var(--ink); }
.moves-list .move-card { margin-bottom: 3px; }
.moves-add { padding: 4px var(--gut) 8px; }
.mv-hero { position: relative; }
.mv-hero .hero { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #151a17; }
.mv-words { display: grid; gap: 6px; }
.mv-words .mono { color: #c9cec8; }
.mv-facts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.mv-facts span { border: 2px solid var(--ink); padding: 3px 6px 2px; font: 700 11px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.mv-facts span.dk { background: var(--ink); color: #fff; }
.pl { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); }
.pl::after { content: ""; position: absolute; left: 22px; top: 17px; border-left: 17px solid var(--ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.dur { position: absolute; right: 8px; bottom: 8px; background: var(--ink); color: #fff; font: 700 11px var(--mono); padding: 3px 6px; }
.vposter { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #151a17; }
.vposter img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.vplay { display: block; width: 100%; max-height: 80vh; background: #000; }
.vthumb { position: relative; display: block; flex: none; }
.vt-play { position: absolute; left: 50%; top: 50%; margin: -7px 0 0 -5px; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6)); }

.mv-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mv-kinds .chip { padding-left: 4px; padding-right: 4px; }
.mv-media { display: flex; flex-wrap: wrap; gap: 6px; }
.mv-tile { position: relative; width: 104px; height: 104px; background: #151a17; flex: none; }
.mv-tile img, .mv-tile .thumb { width: 104px; height: 104px; object-fit: cover; display: block; }
.mv-tile .remove { position: absolute; top: 0; right: 0; width: 40px; height: 40px; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; }
.mv-working { display: grid; place-items: center; height: 100%; padding: 8px; color: #c9cec8; text-align: center; font-size: 10px; }
.mv-add { width: 104px; height: 104px; border: 0; background: var(--frame); font: 700 12px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.mv-time { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.mv-in { position: relative; display: block; }
.mv-in input { padding-right: 50px; font-size: 22px; font-weight: 800; }
.mv-in > span { position: absolute; right: 0; bottom: 14px; font: 700 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.mv-time .mv-in { width: 130px; }
.mv-nums { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 16px; }
.mv-num .field-label { margin: 6px 0 0; color: var(--soft); }
.mv-num .mv-in input { font-size: 19px; }
.ci-moved { color: var(--ink); }
.hist-moves { color: var(--ink); font-weight: 700; }

.p-moves { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 12px var(--gut) 14px; border-bottom: 3px solid var(--ink); }
.p-moves > div:first-child { display: grid; gap: 4px; }
.p-moves .big { font-size: 40px; }
.p-moves .mono { color: var(--ink); font-weight: 700; }
.p-steps { text-align: right; align-self: end; }
.wkbar { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 5px; height: 44px; }
.wkbar i { flex: 1; background: var(--ink); display: block; }
.wkbar i.o { background: var(--line); }
.g-move .gm-open { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: inherit; }
.ge-photos .vposter img, .ge-photos .vplay { aspect-ratio: auto; max-height: 70vh; object-fit: contain; }
@media (min-width: 720px) {
  .chooser-wrap { align-items: center; }
  .chooser { border: 3px solid var(--ink); max-width: 460px; }
  .moves-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; align-items: start; }
  .moves-head, .moves-add { padding-left: 0; padding-right: 0; }
  .moves-list .entry-text { padding-left: 2px; padding-right: 2px; }
  .p-moves { max-width: 760px; }
}

.steps-help { margin-top: 14px; border-top: 1px solid var(--line); }
.steps-help ol { margin: 6px 0 10px; padding-left: 22px; color: var(--soft); }
.steps-help li { margin: 6px 0; }
.steps-help b, .steps-help strong { color: var(--ink); }
.more-body .steps-help { margin-top: 4px; border-top: 0; }
.more-body .steps-help summary { display: none; }

.nk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.hs-steps { margin: 6px 0 0; padding-left: 20px; font-weight: 500; }
.hs-steps li { margin: 4px 0; }
.push-banner .tool-row { margin-top: 4px; align-items: center; }
.push-banner .secondary { flex: none; }

/* Insights (owner only) */
.mau { border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); padding: 12px 0 10px; margin-bottom: 8px; display: grid; gap: 8px; }
.mau > div:first-child { display: flex; align-items: baseline; gap: 12px; }
.mau .mono { color: var(--ink); font-weight: 700; }
.mau-bar { height: 14px; background: var(--frame); }
.mau-bar i { display: block; height: 100%; background: var(--green); min-width: 2px; }
.mau .hint { margin: 0; }
.ins-head { align-items: flex-end; }
.ins-side { display: grid; justify-items: end; text-align: right; gap: 2px; }
.ins-range { margin-bottom: 8px; }
.ins-grid { display: grid; gap: 8px 32px; }
.insights .group-label { margin-left: 0; padding-left: 0; }
.fun { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; height: 150px; align-items: end; margin-top: 10px; }
.fun-col { display: grid; grid-template-rows: 1fr auto; height: 100%; align-items: end; gap: 5px; min-width: 0; }
.fun-bar { background: var(--ink); color: #fff; display: flex; align-items: flex-start; padding: 5px 7px; min-height: 26px; }
.fun-bar span { font: 900 22px/1 var(--text); font-stretch: 118%; }
.fun-bar.lo { background: var(--red); }
.fun-l { font-size: 9.5px; letter-spacing: 0.04em; overflow-wrap: anywhere; line-height: 1.2; height: 2.4em; }
.drops { list-style: none; margin: 0 0 14px; padding: 0; }
.drops li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.drops li .mono { color: var(--ink); text-align: right; flex: none; max-width: 55%; }
.drops .red, .g7-back.red { color: var(--red); }
.g7 { display: grid; gap: 4px; margin-top: 10px; }
.g7-row { display: grid; grid-template-columns: 74px repeat(7, minmax(0, 1fr)) 96px; gap: 3px; align-items: center; }
.g7-head span { font: 700 10px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); text-align: center; }
.g7-head span:last-child { text-align: left; }
.g7-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g7 .c { height: 24px; border: 2px solid var(--ink); position: relative; }
.c.logged { background: var(--ink); }
.c.opened { border-style: dashed; }
.c.none { border-color: var(--line); }
.g7 .c.n::after { content: "N"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--red); font: 900 11px var(--text); }
.g7 .c.logged.n::after { color: #fff; }
.g7-back { font-size: 10px; letter-spacing: 0.04em; color: var(--ink); }
.g7-key { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin: 8px 0 18px; font-size: 10px; }
.g7-key .c { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--ink); }
.g7-key .c.logged { background: var(--ink); }
.g7-key .c.opened { border-style: dashed; }
.g7-key .c.none { border-color: var(--line); }
@media (min-width: 1024px) { .ins-grid { grid-template-columns: 1.1fr 1fr; } }

/* Accessibility */
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; font-weight: 800; z-index: 80; }
.skip:focus { top: calc(env(safe-area-inset-top) + 8px); }
main:focus { outline: none; }
html.text-l { zoom: 1.12; }
html.text-xl { zoom: 1.25; }
input[type="date"] { min-width: 0; max-width: 100%; }
@media (forced-colors: active) {
  .chip.on, .tab-list button.on { outline: 3px solid Highlight; outline-offset: -3px; }
  .primary, .log-btn, .secondary, .chip, .slot-row, .roll-row { border: 2px solid ButtonText; }
}
@media (prefers-contrast: more) { :root { --soft: #2f3732; --line: #7d877f; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
