@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&display=swap");
/* Sunrise: yellow is the theme colour (fills, with dark text), blue is the secondary (text and lines).
   The top bar is the sky: soft yellow by day, dusk blue in the dark theme, on a blue horizon line. */
:root {
  --bg: #f5f6f8; --fg: #14181f; --muted: #667085; --card: #ffffff; --line: #e3e6eb;
  --accent: #d9ae2f; --on-accent: #14181f; --secondary: #2f5bd6; --band: #f3dc8c; --band-fg: #14181f;
  --go: #177a41; --amber: #b85c00; --red: #d64545; --mint: #0c7a66; --thought: #a21caf;
}
:root[data-theme="dark"] {
  --bg: #0f1217; --fg: #e8ebf0; --muted: #a3adbd; --card: #1a1f29; --line: #2f3643;
  --accent: #e8c860; --on-accent: #14181f; --secondary: #7b9cff; --band: #1f2a52; --band-fg: #f5f7fa;
  --go: #4ade80; --amber: #fb9a4b; --red: #f87171; --mint: #5eead4; --thought: #f0abfc;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.45 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif; }
.top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--band); color: var(--band-fg); border-bottom: 3px solid var(--secondary); flex-wrap: wrap; }
.top h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 0; display: flex; align-items: center; gap: 8px; }
.top h1::before { content: ""; width: 32px; height: 32px; flex: none; background: url(/icon.svg) center / contain no-repeat; }
.top h1 .ver { font-size: 12px; font-weight: 500; color: inherit; opacity: .75; }
[hidden] { display: none !important; }   /* hidden always wins, whatever display a rule sets (the tabs before sign-in) */
.top h1 { flex: 1; cursor: pointer; }
button { font: inherit; border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 999px; padding: 7px 16px; font-weight: 600; cursor: pointer; }
/* Home and the four most used (1.29). Wide: a sidebar beside the page. Narrow: a bar along the bottom. Every other
   section opens from its tile on Home. */
#shell { display: flex; align-items: flex-start; }
nav#tabs { display: flex; flex-direction: column; gap: 2px; flex: none; width: 196px; position: sticky; top: 62px; max-height: calc(100vh - 62px); overflow-y: auto; padding: 16px 8px 16px 16px; }
nav#tabs button { text-align: left; background: none; border-color: transparent; color: var(--fg); padding: 9px 16px; }
nav#tabs button:hover { background: var(--card); }
nav#tabs button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
/* the five (1.50): each with its mark; Talk is the mic, in the accent, where the eye goes */
nav#tabs button { display: flex; align-items: center; gap: 10px; position: relative; }
nav#tabs button.alert::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); margin-left: auto; }
nav#tabs #fab { position: static; width: auto; height: auto; border-radius: 999px; justify-content: flex-start; margin: 6px 0; padding: 10px 16px; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 800; }
nav#tabs #fab:hover { background: var(--accent); } nav#tabs #fab.on { background: var(--fg); color: var(--card); }
/* a tap is on (1.50): the mark in the top bar, and what it opens */
.tapon { display: inline-flex; align-items: center; gap: 6px; background: var(--secondary); color: #fff; border-color: var(--secondary); padding: 6px 12px; font-size: 14px; max-width: 60vw; }
.tapon span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tapon .ic { flex: none; animation: tapon 1.6s ease-in-out infinite; }
@keyframes tapon { 50% { transform: translateY(2px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .tapon .ic { animation: none; } }
.taponpanel { position: fixed; top: 64px; right: 12px; z-index: 4; width: min(360px, calc(100vw - 24px)); background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: grid; gap: 8px; }
#shell main { flex: 1; min-width: 0; }
.top button.quiet { color: var(--band-fg); }
button.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
button.quiet { background: none; border: none; color: var(--muted); }
button:disabled { opacity: .5; cursor: default; }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 0 solid transparent; border-radius: 20px; padding: 16px 18px; margin: 0 0 12px; }
.card h2 { font-size: 17px; font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; border-left-color: inherit; }
.card[style*="border-left-color"] h2::before { content: ""; flex: none; width: 0; height: 10px; border-left: 10px solid; border-left-color: inherit; border-radius: 50%; }
.card h2 > :last-child:not(:only-child), .card h2 > .chip { margin-left: auto; }
.card.center { text-align: center; padding: 32px 16px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.row { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: none; }
.row .what { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row .acts { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.row .acts button { padding: 4px 8px; font-size: 14px; }
.chip { font-size: 12px; padding: 2px 8px; border-radius: 99px; border: 1px solid currentColor; white-space: nowrap; }
.go { color: var(--go); } .amber { color: var(--amber); } .red { color: var(--red); } .accent { color: var(--secondary); }
ul { margin: 4px 0; padding-left: 20px; }
a { color: var(--secondary); }
.talk { min-height: 40vh; }
.said { margin: 8px 0; padding: 10px 16px; border-radius: 20px; max-width: 90%; }
.said.you { background: var(--accent); color: var(--on-accent); margin-left: auto; }
.said.hub { background: var(--card); }
/* Maijel's voice: Listen is Stop while she speaks, with moving bars, and a Stop button floats over every page */
[data-listen].speaking, .stopvoice { background: var(--red); color: #fff; border-color: var(--red); }
.bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; margin-right: 7px; vertical-align: -1px; }
.bars i { width: 3px; height: 100%; background: currentColor; border-radius: 2px; transform-origin: bottom; animation: bars 0.9s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -0.3s; }
.bars i:nth-child(3) { animation-delay: -0.6s; }
@keyframes bars { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .bars i { animation: none; } }
.stopvoice { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 4; border-radius: 99px; padding: 12px 20px; font-weight: 700; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.stopvoice[hidden] { display: none; }
/* talking to her from Today and the Dashboard: the mic beside Listen, the box under it, her answer above the box */
body.hearing [data-skymic] { background: var(--red); color: #fff; }
.skybox { margin-top: 12px; }
.skytalk[hidden] { display: none; }
.skytalk .said { max-width: 100%; color: var(--fg); }
.skytalk .said.you { color: var(--on-accent); }
.skytalk .offers { margin: 6px 0; padding-left: 20px; }
/* in the sky band the box sits on the band, not in a strip of the page's colour, and Send stays a solid button */
.sky .askbar { position: static; background: none; padding: 4px 0 0; }
.sky .askbar button.primary, .sky .acts button.primary, .sky .skytalk button.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.offer { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.askbar { position: sticky; bottom: 0; display: flex; gap: 6px; padding: 10px 0; background: var(--bg); }
.askbar input { flex: 1; min-width: 0; font: inherit; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); }
#mic.listening, #thoughtmic.listening, #live.listening, .mic.listening { background: var(--red); color: #fff; }
/* one way to type or say it (0.70): every box he writes in, then its mic, the same everywhere */
.say { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0; }
.say > input, .say > textarea { flex: 1; min-width: 0; font: inherit; }
.say > .mic { flex: none; }
/* the Sunrise glyphs: an icon takes the button's colour and sits on the text line */
.ic { width: 18px; height: 18px; vertical-align: -4px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic .f { fill: currentColor; stroke: none; }
.ic.big { width: 28px; height: 28px; vertical-align: middle; }
button > .ic + .ic { margin-left: 2px; }
.addevent { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 6px 0 10px; }
.addevent .say { flex-basis: 100%; }
.addevent p { flex-basis: 100%; margin: 0; }
.focusline .say { margin: 0 0 6px; }
.live { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
/* Talk live (0.74): a panel in the corner, where the voice sheet sits, so the page stays in view and in use while she talks */
#liveview { position: fixed; right: 20px; bottom: 96px; z-index: 50; width: min(340px, calc(100vw - 32px)); max-height: 72vh; display: flex; flex-direction: column; align-items: center;
  padding: 12px 14px; border: 1.5px solid var(--fg); border-radius: 20px; background: var(--card); color: var(--fg); box-shadow: 0 8px 28px rgba(0,0,0,.18); }
#orb { flex: none; width: 100%; height: 150px; min-height: 0; }
.livemood { margin: 4px 0 0; color: var(--muted); font-size: 15px; letter-spacing: .02em; }
.livewords { width: 100%; max-height: 24vh; overflow-y: auto; text-align: center; }
.livewords #livehim { color: var(--muted); margin: 0 0 6px; }
.livewords #liveher { font-size: 16px; margin: 0; }
.livebtns { display: flex; gap: 12px; margin-top: 10px; }
.livebtns button { min-width: 96px; min-height: 44px; border-radius: 22px; font-size: 16px; background: var(--card); color: var(--fg); border-color: var(--line); }
.livebtns button.muted { color: var(--muted); }
.livebtns button.end { background: var(--red); border-color: var(--red); color: #fff; }
.askbar.capture { position: static; padding-top: 0; }
.search { display: flex; gap: 6px; margin: 0 0 12px; }
.search input { flex: 1; min-width: 0; font: inherit; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); }
.thought { touch-action: pan-y; transition: transform .15s; border-left-color: var(--thought); }
.thought.done, .thought.archived { opacity: .7; }
.thought .ask { color: var(--thought); }
.thought .ttext { white-space: pre-line; overflow-wrap: anywhere; }
.thought .ttext[data-edit] { cursor: text; }
.thought .fixed { margin: 4px 0 6px; overflow-wrap: anywhere; } .thought .fixed .chip { margin-right: 4px; }   /* a mishearing Maijel put right (1.05) */
/* Process thoughts (1.10): one row a thought, what she would do beside it */
.process .prow { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 8px 0; border-top: 1px solid var(--line); align-items: flex-start; } .process .prow.off { opacity: .55; }
.process .pwhat { flex: 1 1 260px; display: flex; gap: 8px; align-items: flex-start; cursor: pointer; overflow-wrap: anywhere; } .process .pwhat input { width: 19px; height: 19px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.process .pdo { flex: 1 1 300px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.process .pdo select, .process .pdo input { font: inherit; font-size: 14px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); min-width: 0; }
.process .pdo input:not(.plist):not([type=datetime-local]) { flex: 1 1 160px; } .process .pdo .plist { width: 130px; }
.thoughtedit { margin: 0 0 8px; } .thoughtedit textarea { width: 100%; }
.thought .seen { margin: 2px 0 6px; } .thought .seen .chip { margin-right: 4px; }   /* a shared thought keeps its lines; a long link wraps */
.pics { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.pics a { display: block; line-height: 0; }
.pics img { height: 96px; width: auto; max-width: 100%; object-fit: cover; border-radius: 8px; background: var(--line); }
.staged { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 10px; }
.staged-pic { position: relative; line-height: 0; }
.staged-pic img { height: 64px; width: 64px; object-fit: cover; border-radius: 8px; }
.staged-pic button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; padding: 0; border-radius: 50%; line-height: 1; font-size: 12px; }
#thoughts.dropping { outline: 2px dashed var(--thought); outline-offset: 4px; border-radius: 8px; }
.chip.from { color: var(--thought); }
.toastundo { margin-left: 10px; padding: 2px 12px; font-size: 14px; background: var(--bg); color: var(--fg); border: 0; }
#toast { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 20px; }
@media (max-width: 900px) {
  #shell { display: block; }
  #shell main { padding-bottom: 88px; }   /* room above the bar along the bottom */
  nav#tabs { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 3; width: auto; max-height: none; flex-direction: row; flex-wrap: wrap; gap: 2px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--band); color: var(--band-fg); border-top: 3px solid var(--secondary); }
  nav#tabs button { flex: 1 1 0; min-width: 0; text-align: center; color: var(--band-fg); padding: 8px 4px; font-size: 14px; }
  nav#tabs button:hover { background: none; }
  nav#tabs button.on { background: var(--band-fg); color: var(--band); border-color: var(--band-fg); }
  /* five along the bottom (1.50): the mark over its word, and the mic a round button standing proud of the bar */
  nav#tabs { flex-wrap: nowrap; align-items: center; gap: 0; }
  nav#tabs button { flex-direction: column; gap: 1px; padding: 6px 2px; font-size: 12px; }
  nav#tabs button.alert::after { position: absolute; top: 3px; right: calc(50% - 16px); margin: 0; }
  nav#tabs #fab { flex: none; width: 62px; height: 62px; margin: -26px 6px 0; padding: 0; border-radius: 50%; justify-content: center; border: 3px solid var(--band); box-shadow: 0 4px 12px rgba(0,0,0,.3); }
  nav#tabs #fab .lbl { display: none; } nav#tabs #fab .ic.big { width: 32px; height: 32px; }
}
.steer, .replyform { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.steer input[type=text], .steer #steertext { flex: 1 1 220px; min-width: 0; font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--fg); }
.steer input[type=date] { font: inherit; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--fg); }
.replyform { flex-direction: column; align-items: stretch; padding: 6px 0 10px; }
.replyform textarea { font: inherit; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--fg); }
.row { flex-wrap: wrap; }
.noteform { flex: 1 1 100%; display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.noteform input:not([type=checkbox]), .noteform textarea { font: inherit; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--fg); }
.noteform .offer { margin: 0; }
.noteform select { font: inherit; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); }
.noteform .say textarea { width: 100%; }
.noteform .staged { margin: 0; }
.shopitem label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 17px; padding: 4px 0; }
.shopitem input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent); }
.shopitem.done label span { color: var(--muted); text-decoration: line-through; }
.shopitem select { font: inherit; font-size: 14px; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); }
.row .what { flex: 1 1 220px; }
@media (max-width: 560px) {
  .row .acts { flex: 1 1 100%; justify-content: flex-start; }
}
@media (max-width: 420px) {
  /* along the bottom of a phone each word has to fit */
  nav#tabs button { padding: 6px 1px; font-size: 11.5px; }
}
/* Home (Today until 1.37): the brief, then the next seven days as one-line rows; a row opens it on Planning */
.sky .needline button { all: unset; cursor: pointer; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.offer.goto { margin: 10px 0 0; }
/* Today's three sections (phase 4b) */
h3.section { margin: 24px 4px 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
h3.section:first-child { margin-top: 4px; }
.react { gap: 4px; }
.react button { padding: 4px 8px; }
p.updated { text-align: center; margin: 18px 0 8px; }
#talkstyle { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--fg); resize: vertical; }
.card h3 { margin: 10px 0 2px; font-size: 13px; font-weight: 600; }
.card h2 a { margin-left: auto; font-weight: 400; }
.sendform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
/* Send to… as a sheet (0.84): the places as pills, then what the chosen one does and the one button that does it */
.sendsheet { display: block; margin-top: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--bg); }
.sendsheet .dests { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sendsheet .dests button { padding: 6px 14px; font-size: 14px; background: var(--card); color: var(--fg); border: 1.5px solid var(--fg); }
.sendsheet .dests button.on { background: var(--fg); color: var(--card); }
.sendsheet p { margin: 0 0 10px; }
.sendsheet .when { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.sendsheet .when input[type=date], .sendsheet .when input[type=time] { font: inherit; color: var(--fg); background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 6px 10px; color-scheme: light dark; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 6px 12px; font-size: 14px; border: 1.5px solid var(--line); border-radius: 99px; }
.seg input:checked + span { background: var(--fg); color: var(--card); border-color: var(--fg); }
.seg input:focus-visible + span { outline: 2px solid var(--secondary); outline-offset: 2px; }
/* The home screen's three layers (design brief): the summary in the sky, Needs you, and Everything else collapsed */
.sky { background: var(--band); color: var(--band-fg); border-radius: 20px; border-bottom: 3px solid var(--secondary); padding: 20px 20px 14px; margin: 0 0 8px; }
.sky.evening { --band: #1f2a52; --band-fg: #f5f7fa; }
.sky .label { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.sky h2 { font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 10px; }
.sky p { margin: 0 0 8px; font-size: 17px; line-height: 1.5; font-weight: 500; }
.sky .needline { font-weight: 700; }
.sky button { background: none; border: 2px solid currentColor; color: inherit; }
.card.proposal { border: 2px dashed var(--secondary); }   /* Maijel's proposal: not in the plan until he says yes */
.sect { background: var(--card); border-radius: 20px; margin: 0 0 8px; }
.sect > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 18px; min-height: 52px; font-weight: 700; }
.sect > summary::-webkit-details-marker { display: none; }
.sect > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.sect[open] > summary::after { transform: rotate(-135deg); }
.sect .status { font-weight: 400; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sect[open] { padding-bottom: 2px; }
.sect > .card { margin: 0 8px 8px; background: var(--bg); }
.sect > p { margin: 0 18px 12px; }
/* The planner (the Planner tab): the week strip, then the day's to-dos, the day itself and Maijel's proposals side by side */
main.wide { max-width: 1240px; }
.daystrip { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 12px; padding-bottom: 2px; }
.daystrip button { flex: 1 0 auto; text-align: left; border-radius: 16px; padding: 8px 14px; line-height: 1.25; }
.daystrip button small { display: block; font-weight: 500; }
.daystrip button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.planner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; align-items: start; }
@media (max-width: 900px) { .planner { grid-template-columns: minmax(0, 1fr); } }
.planner h3 { margin: 0 4px 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* The Inputs Planner (14.1): the inputs by source beside the day; an input is dragged, or tapped to pick it up */
.planner.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
@media (max-width: 900px) { .planner.two { grid-template-columns: minmax(0, 1fr); } }
.row.input { cursor: grab; user-select: none; -webkit-user-select: none; border-radius: 10px; }
.row.input .what b { display: block; font-weight: 600; }
.row.input .chip { margin-right: 4px; }
.row.input.sel { background: color-mix(in srgb, var(--accent) 22%, transparent); padding-left: 8px; padding-right: 8px; }
/* A drag on the Planner (0.84): where it would land, the places that take a drop, and what was just dropped */
.tl-drop { position: absolute; left: 56px; right: 4px; z-index: 2; pointer-events: none; border: 2px solid var(--secondary); background: color-mix(in srgb, var(--secondary) 22%, transparent); border-radius: 10px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.plandrag .tl { outline: 2px dashed var(--secondary); outline-offset: 4px; border-radius: 12px; }
.plandrag .dropzone, .plandrag .daystrip button:not(.on) { border-color: var(--secondary); border-style: dashed; }
.plandrag .tl-item { pointer-events: none; }
.pending { opacity: .65; border-style: dashed !important; animation: pendpulse 1.1s ease-in-out infinite; }
@keyframes pendpulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pending { animation: none; } }
/* Re-plan and Clear & redo at the head of the proposals (0.78), and what it says while the planner works */
.replan { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 4px 10px; }
.card .replan { margin: 10px 0 0; }
.planner > div > p.amber.small { margin: 0 4px 10px; }
.slot { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
.slot:first-of-type { border-top: none; }
.slot .time { flex: 0 0 92px; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--muted); }
.slot .ev { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.note { margin: 6px 0 0; }
.proposal .from { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--secondary); margin: 0 0 4px; }
.proposal .from::before { content: ""; width: 20px; height: 20px; flex: none; background: url(/icon.svg) center / contain no-repeat; }
/* The dashboard (the Dashboard tab): widgets in a grid he arranges; charts take the theme's colours */
.dash { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; align-items: start; }
.widget { position: relative; min-width: 0; }
.widget.wide { grid-column: span 2; }
@media (max-width: 720px) { .widget.wide { grid-column: auto; } }
.widget > .card { margin: 0; }
.widget.dragging { opacity: .5; }
/* The Board (1.06): tiles in the Dashboard's grid; an item is a tick row, as on Shopping, a size smaller */
.board .tile { position: relative; min-width: 0; } .board .tile > .card { margin: 0; }
.board .tile.dragging, .board .bitem.dragging { opacity: .45; } .board .tile.over > .card { outline: 2px dashed var(--secondary); outline-offset: 2px; }
.board h2 .btitle { overflow-wrap: anywhere; } .board h2 .bmore { margin-left: 0; padding: 2px 8px; font-size: 18px; line-height: 1; }
.board .bitem { align-items: center; padding: 1px 0; cursor: grab; flex-wrap: nowrap; } .board .bitem .what { flex: 1 1 0; } .board .bitem .acts { flex: none; } .board .bitem label { font-size: 15px; padding: 3px 0; align-items: flex-start; } .board .bitem label span { overflow-wrap: anywhere; }
.board .bitem input[type=checkbox] { width: 19px; height: 19px; flex: none; margin-top: 1px; } .board .bitem .acts button { padding: 2px 8px; font-size: 16px; line-height: 1; opacity: .55; }
.board .bitem:hover .acts button, .board .bitem .acts button:focus { opacity: 1; }
.board .bslot { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 8px 0 2px; }
.board .bmenu { margin: 4px 0 8px; align-items: center; } .board .bmenu button { padding: 4px 12px; font-size: 14px; }
.board .bmenu select, .boardadd select, .boardnew select { font: inherit; font-size: 14px; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); max-width: 100%; }
.board .bfound { margin: 8px 0 4px; padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 14px; overflow-wrap: anywhere; }   /* what was found for a research tile (1.07) */
.board .bfound p { margin: 0 0 6px; } .board .bfound ul { margin: 0 0 6px; padding-left: 18px; } .board .bfound li { margin: 2px 0; } .board .bfound a { color: var(--secondary); }
.board .bresearch { margin: 6px 0 0; align-items: center; } .board .bresearch button { padding: 4px 12px; font-size: 14px; }
.board .bitem .chip.accent { font-size: 11px; padding: 0 6px; }
.board .bfold { display: block; margin: 4px 0 0; padding: 2px 0; font-size: 14px; } .board .bquiet { margin: -4px 0 6px; }
.board h2 .bmore + .bmore { font-size: 14px; }
.board.research { grid-template-columns: minmax(0, 820px); }   /* a topic is read, so it gets the width (1.09) */
.board .bdone { margin-top: 6px; } .board .bdone summary { cursor: pointer; }
.boardadd { display: flex; gap: 6px; margin-top: 8px; align-items: center; } .boardadd input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.boardadd button { padding: 4px 10px; font-size: 14px; }
.boardnew { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; } .boardnew input { flex: 1; min-width: 180px; font: inherit; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); }
.wtools { position: absolute; top: 8px; right: 10px; z-index: 1; display: flex; align-items: center; gap: 0; opacity: .55; }
.widget:hover .wtools, .wtools:focus-within { opacity: 1; }
.wtools button { padding: 0 8px; min-height: 32px; font-size: 18px; line-height: 1; }
.wtools .grip { width: 14px; height: 18px; margin-right: 2px; cursor: grab; background: radial-gradient(circle, var(--muted) 1.5px, transparent 2px) 0 0 / 7px 6px; }
.widget h2 { padding-right: 84px; }
.stats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 6px 0 10px; }
.stats div { font-size: 15px; } .stats b { font-size: 20px; font-weight: 800; } .stats b.big { font-size: 34px; line-height: 1; }
.stats span { display: block; font-size: 12px; color: var(--muted); }
.stats.days b { font-size: 15px; font-weight: 700; }
.tide-line { fill: none; stroke: var(--fg); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tide-area { fill: var(--fg); opacity: .07; }
.tide-dot { fill: var(--card); stroke: var(--fg); stroke-width: 2.5; }
.chart-label { font: 500 13px Figtree, system-ui, sans-serif; fill: var(--muted); }
.now-line { stroke: var(--fg); stroke-width: 1.5; stroke-dasharray: 4 4; }
.now-text { fill: var(--fg); font-weight: 700; }
.bar.go { fill: var(--go); } .bar.amber { fill: var(--amber); } .bar.red { fill: var(--red); } .bar.muted { fill: var(--muted); }
/* Signed out, the page shows almost nothing: the sky, Maijel's sun on the horizon, the name, one line and the way in */
body:has(#signin:not([hidden])) .top { display: none; }
body:has(#signin:not([hidden])) main { max-width: none; padding: 0; }
.landing { text-align: center; padding: 0 0 48px; }
.landing .sky-top { background: var(--band); border-bottom: 3px solid var(--secondary); min-height: 300px; display: flex; align-items: flex-end; justify-content: center; }
.landing .sky-top img { display: block; width: 148px; height: 148px; }
.landing h2 { margin: 40px 0 0; font-size: 72px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.landing .tag { margin: 14px 16px 0; font-size: 22px; font-weight: 500; }
.landing #google { margin-top: 36px; min-height: 60px; padding: 0 32px; font-size: 18px; }
.landing #signin-note { margin: 18px 16px 0; }
/* Signed in, talk is always one tap away: the round voice button */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 3; width: 64px; height: 64px; padding: 0; border-radius: 50%; border: 3px solid var(--bg); background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; }
/* The dashboard as the design: the summary is the sky across the top, the widgets sit under it, compact */
.sky.hero { margin: 0 0 12px; }
.sky.hero ul { margin: 0 0 8px; padding-left: 20px; }
.verdict { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0 10px; }
.need { padding: 8px 0; border-top: 1px solid var(--line); }
.need:first-of-type { border-top: none; }
.need b { font-weight: 700; }
.clip { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray { display: block; width: 100%; text-align: left; margin: 10px 0 4px; padding: 10px 14px; border-radius: 16px; border: 2px dashed var(--secondary); background: none; color: var(--secondary); font-weight: 700; }
.tray small { display: block; font-weight: 500; }
/* People as a lens: the chips in the sky band; the one showing is filled */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.chips .label { margin-right: 4px; }
.sky .chips button { background: var(--card); color: var(--fg); border: 1.5px solid var(--fg); padding: 4px 14px; font-size: 14px; }
.sky .chips button.on { background: var(--fg); color: var(--card); }
/* An action that goes to someone else is outlined in blue, with the arrow out */
button.out { display: inline-flex; align-items: center; gap: 6px; background: var(--card); color: var(--secondary); border: 2px solid var(--secondary); }
.need.row { flex-wrap: wrap; }
.need .what { flex: 1 1 100%; }
.need .acts { flex: 1 1 100%; justify-content: flex-start; }
/* The boating compass, and the Thoughts, Money and People widgets */
.vrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.compass { flex: none; }
.compass .ring { fill: none; stroke: var(--line); stroke-width: 2; }
.compass .needle { fill: none; stroke: var(--fg); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.compass .chart-label { font-size: 11px; font-weight: 700; }
.widget .pics img { height: 56px; }
.pchip { padding: 3px 12px; font-size: 14px; border: 1.5px solid var(--fg); background: var(--card); }
.pchip.on { background: var(--fg); color: var(--card); }
/* The stock chart: the first holding in ink, the second in grey, told apart by lightness and by name */
.price-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.price-line.p0 { stroke: var(--fg); } .price-line.p1 { stroke: var(--muted); } .price-line.p2 { stroke: var(--secondary); } .price-line.p3 { stroke: var(--mint); }
.price-dot.p0 { fill: var(--fg); } .price-dot.p1 { fill: var(--muted); } .price-dot.p2 { fill: var(--secondary); } .price-dot.p3 { fill: var(--mint); }
.price-name { font-weight: 700; fill: var(--fg); }
.zero-line { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 4; }
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0 0 4px; }
.key { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.key i { width: 18px; height: 4px; border-radius: 2px; }
.key i.p0 { background: var(--fg); } .key i.p1 { background: var(--muted); } .key i.p2 { background: var(--secondary); } .key i.p3 { background: var(--mint); }
/* The planner on the plan record: where a to-do can be dropped, and his own items marked in the theme's yellow */
.parts { display: flex; gap: 6px; margin: 2px 0 8px; }
.dropzone { flex: 1; min-width: 0; text-align: center; font-size: 13px; color: var(--muted); border: 2px dashed var(--line); border-radius: 14px; padding: 8px 4px; }
.dropzone.over, .daystrip button.over { border-color: var(--secondary); color: var(--secondary); }
[data-drag] { cursor: grab; }
.slot.mine .ev::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--accent); }
.slot.done .ev { text-decoration: line-through; color: var(--muted); }
.slot .acts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; font-weight: 400; }
.slot .acts button { padding: 3px 10px; font-size: 14px; }
.timeform { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 100%; margin: 6px 0 4px; font-weight: 400; }
.timeform input, .timeform select { font: inherit; padding: 4px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--fg); }
/* The planner's timeline: hours down the side, each timed item a block at its time; his own in the sky's yellow */
.tl { position: relative; margin: 14px 0 8px; }
.tl-hour { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); }
.tl-hour span { position: absolute; top: -9px; left: 0; padding-right: 6px; font-size: 12px; color: var(--muted); background: var(--card); }
.tl-item { position: absolute; box-sizing: border-box; overflow: hidden; border-radius: 10px; padding: 2px 8px; font-size: 14px; line-height: 1.3; background: var(--bg); border: 1px solid var(--line); user-select: none; }
.tl-item.mine { background: var(--band); color: var(--band-fg); border-color: var(--accent); }
.tl-item.movable { cursor: grab; touch-action: none; }
.tl-item.dragging { cursor: grabbing; z-index: 1; border-color: var(--secondary); }
.tl-item.sel { outline: 2px solid var(--secondary); outline-offset: 1px; }
.tl-item.done b { text-decoration: line-through; font-weight: 600; }
.tl-when { font-size: 12px; opacity: .8; white-space: nowrap; }
.tl-item.away { opacity: .45; }
/* A name in the summary: a tap narrows the page to that person */
.sky button.name, button.name { all: unset; cursor: pointer; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
button.name:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }
/* The people chips outside the sky band (the Planner, Thoughts) */
.chips button { background: var(--card); color: var(--fg); border: 1.5px solid var(--fg); padding: 4px 14px; font-size: 14px; }
.chips button.on { background: var(--fg); color: var(--card); }
/* The voice button's sheet */
.sheet { position: fixed; right: 20px; bottom: 96px; z-index: 3; width: min(400px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: var(--card); color: var(--fg); border: 1.5px solid var(--fg); border-radius: 20px; padding: 12px 14px; }
.sheet-head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.sheet-head b { flex: 1; font-size: 17px; }
.sheet-head button { padding: 4px 8px; font-size: 14px; }
.sheet .skybox { margin-top: 0; }
#sheetmic { display: none; }   /* the sky band has its own microphone beside Listen; in the sheet, Talk sits by the box */
.sheet #sheetmic { display: inline-block; }
#sheetlive { display: none; }   /* Talk live from the voice button's sheet, on every page (0.73) */
.sheet #sheetlive { display: inline-block; }
.sheet .askbar { position: static; background: none; padding: 6px 0 0; }
.fab.on { background: var(--fg); color: var(--card); }
/* The timeline block's lower edge, to make it longer or shorter */
.tl-grip { position: absolute; left: 0; right: 0; bottom: 0; height: 9px; cursor: ns-resize; touch-action: none; }
.tl-grip::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 28px; height: 3px; margin-left: -14px; border-radius: 2px; background: currentColor; opacity: .45; }
/* an item shared with him opens in place on the SyncMesh page, with Add to thoughts (0.78) */
.meshitem .plain { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.meshitem .plain:hover div { text-decoration: underline; }
.meshitem .meshbody { margin: 8px 0; overflow-wrap: anywhere; }
.meshitem .what .acts { justify-content: flex-start; gap: 8px; margin-top: 4px; }
/* Delete on a calendar event, asked in place (0.78) */
.delask { margin: 6px 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line, rgba(127,127,127,.35)); }
.delask .acts { display: flex; gap: 8px; flex-wrap: wrap; }
/* an empty time on the timeline: what could go there, his to-dos and Asana tasks (0.79) */
.slotpick h2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.slotpick .slotopt { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 6px 4px; font: inherit; font-weight: 500; color: inherit; cursor: pointer; }
.slotpick .slotopt:hover { background: var(--line); }
.slotpick .slotopt:disabled { opacity: .5; cursor: default; }
/* Something is happening (0.86): a thin bar under the header moves while any call to the hub is in flight, and a button
   that started one shows a spinner in place of its dimming until the page is drawn again */
#progress { position: sticky; top: 0; z-index: 3; height: 3px; margin: -3px 0 0; background: linear-gradient(90deg, transparent 0%, var(--secondary) 30%, var(--accent) 50%, var(--secondary) 70%, transparent 100%); background-size: 50% 100%; animation: progress 1.1s linear infinite; }
@keyframes progress { 0% { background-position: -100% 0; } 100% { background-position: 300% 0; } }
button.busy { opacity: .9; cursor: progress; }
button.busy::after { content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .5em; vertical-align: -0.1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #progress { animation: none; background: var(--secondary); } button.busy::after { animation-duration: 2s; } }
/* The email from a thought (0.86) and Maijel's mail */
.emailform { display: flex; flex-direction: column; gap: 8px; }
.emailform input[name=subject], .emailform textarea, .emailform select, .emailform input[type=email] { font: inherit; color: var(--fg); background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.emailform textarea { resize: vertical; }
.emailform .when label { display: inline-flex; gap: 6px; align-items: center; }
.mailrow .what { min-width: 0; }
.mailrow .chip.accent { color: var(--secondary); } .mailrow .chip.go { color: var(--go); }
.mailbody { white-space: pre-wrap; font: inherit; font-size: 14px; margin: 8px 0 0; padding: 10px 12px; background: var(--bg); border-radius: 12px; max-height: 320px; overflow: auto; }

/* the object sheet (phase 16): over the Planner, on the left where the inputs are */
.objsheet { right: auto; left: 20px; bottom: 20px; width: min(460px, calc(100vw - 32px)); max-height: 80vh; z-index: 4; }
.objsheet .ttext { font-size: 17px; white-space: pre-wrap; margin: 2px 0 6px; }
.objsheet .objplace { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.objsheet .objplace .offer { margin-bottom: 0; }
.row.input.open { outline: 2px solid var(--secondary); outline-offset: -2px; }
.chips.needs { margin: 0 0 10px; }
.chips.needs button { border-color: var(--accent); }
.row.guide .what { font-size: 15px; }
@media (max-width: 720px) { .objsheet { left: 8px; right: 8px; width: auto; bottom: 8px; max-height: 85vh; } }
/* On a phone the sections are a bar along the bottom (above): what floats at the foot sits above it. Last, so these win. */
@media (max-width: 900px) {
  .fab { bottom: 84px; }
  #toast { bottom: 84px; }
  .sheet, #liveview { bottom: 160px; }
  .stopvoice { bottom: 92px; }
}
/* Expenses (17.3): the amount beside who it is from; the bill form in one line where it fits */
.row.bill .money { font-weight: 700; font-variant-numeric: tabular-nums; margin-left: 6px; }
#billform input[name=amount] { width: 130px; font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--fg); }
#billform .say { flex: 1 1 220px; margin: 0; }
/* The canvas (17.4): on a wide screen the week as seven day columns, each with an "any time" shelf over its hours; the
   tray a column on the left. A block dragged onto another swaps with it; onto a shelf, it lands timeless. */
.planner.canvas { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
@media (max-width: 900px) { .planner.canvas { grid-template-columns: minmax(0, 1fr); } }
.week7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
.daycol { min-width: 0; background: var(--card); border-radius: 16px; padding: 8px 6px 6px; }
.daycol.on { outline: 2px solid var(--fg); outline-offset: -2px; }
.dayhead { display: flex; align-items: center; gap: 6px; margin: 0 2px 6px; font-weight: 700; }
.dayhead .plain { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; cursor: pointer; }
.dayhead .chip { margin-left: auto; font-size: 11px; }
.shelf { min-height: 40px; border: 2px dashed var(--line); border-radius: 12px; padding: 4px 6px; margin: 0 0 6px; }
.shelf.over, .plandrag .shelf { border-color: var(--secondary); }
.shelf > .muted { display: block; text-align: center; padding: 6px 0; }
.shelf .slot { padding: 4px 0; }
.shelf .slot .time { display: none; }
.week7 .tl { margin: 6px 0 0; }
.week7 .tl-item { font-size: 12px; padding: 1px 5px; }
.week7 .tl-hour span { font-size: 10px; }
.tl-item.dragging { pointer-events: none; }
.tl-item.swap { outline: 2px dashed var(--secondary); outline-offset: 2px; }
.sect.tray > summary { font-size: 15px; }
.sect.tray .trayin { padding: 0 8px 8px; }
.shelf .slot.sel { outline: 2px solid var(--secondary); outline-offset: -2px; border-radius: 8px; }
.shelf .slot[data-shelfsel] { cursor: pointer; }
.week7 .shelf .slot .ev { font-size: 12px; }

/* The Dev page by state (17.6): a card per group, the version an item shipped in as a chip, a small form to set it */
.card.dev .row { align-items: flex-start; }
.card.dev .histsum { white-space: pre-line; }
.card.people .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#peopleq { width: 100%; }
.card.people.prow { cursor: pointer; }
.card.people .pline { display: flex; gap: 10px; align-items: baseline; padding: 2px 0; }
.card.people .pline > span:first-child { flex: 0 0 76px; }
.card.people .related { margin-top: 14px; border-top: 1px solid var(--line, #ddd); padding-top: 10px; }
.card.people .related h3 { font-size: 0.95rem; margin: 10px 0 4px; display: flex; gap: 8px; align-items: baseline; }
.card.people .rel { padding: 4px 0; }
.personform { display: grid; gap: 10px; }
.personform label, .personform .field { display: grid; gap: 4px; font-size: 0.9rem; }
.personform input:not([type=checkbox]):not([type=radio]), .personform textarea, .personform select, #groupsform textarea { width: 100%; font: inherit; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--fg); }   /* as every other form here (1.52: they were the browser's own boxes) */
.personform .bday input { padding: 10px 12px; }
.personform .tick { display: flex; gap: 6px; align-items: center; font-size: 1rem; }
.personform .bday { display: flex; gap: 8px; }
.personform .bday input { flex: 1 1 0; min-width: 0; }
#devhistq { width: 100%; }
.card.dev .row.done .what b { color: var(--muted); }
.shipform { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.shipform input { width: 90px; }
.devform select { align-self: flex-start; }

/* Training: the session screen (phase 19.3). Exercises as cards, each set a chip; a planned set is outlined until tapped. */
.train { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; align-items: start; }
/* on a phone: the muscles under the header, then the exercises, the settings last */
@media (max-width: 900px) { .train { grid-template-columns: minmax(0, 1fr); } .train .tside { display: contents; } .train .tmus { order: -1; } .train .tset { order: 1; } }
.tex { touch-action: pan-y; transition: transform .12s; }
.tex.dragging { opacity: .85; position: relative; z-index: 2; transition: none; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.tex.over { outline: 2px dashed var(--secondary); outline-offset: 2px; }
.texhead { display: flex; align-items: center; gap: 8px; }
.texhead b { flex: 1; min-width: 0; font-size: 17px; }
.thandle { cursor: grab; touch-action: none; user-select: none; padding: 4px 6px; color: var(--muted); font-size: 18px; }
.tchips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 6px; }
.tchip { font: inherit; font-weight: 600; font-size: 16px; min-width: 64px; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--fg); background: var(--fg); color: var(--card); cursor: pointer; touch-action: pan-y; }
.tchip.planned { background: transparent; color: var(--fg); border-style: dashed; border-color: var(--muted); }
.tchip.more { background: transparent; color: var(--secondary); border-color: var(--secondary); min-width: 0; }
.tmuscle { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 8px; padding: 3px 0; font-size: 14px; }
.tmuscle i { display: block; height: 8px; border-radius: 99px; background: var(--secondary); }
.tmuscle span:last-child { text-align: right; color: var(--muted); }
.tpicks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tpicks button { font-size: 14px; }
.trainsheet .tstep { display: grid; grid-template-columns: 1fr 56px 84px 56px; align-items: center; gap: 8px; margin: 10px 0; }
.trainsheet .tstep button { font-size: 24px; line-height: 1; padding: 10px 0; }
.trainsheet .tstep output { text-align: center; font-size: 24px; font-weight: 700; }
.tpast { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 10px 0; color: var(--fg); font: inherit; cursor: pointer; }
.tpast.on { font-weight: 700; }
.tsetform label { display: block; margin: 8px 0 2px; font-size: 14px; color: var(--muted); }
.tsetform input, .tpick input { width: 100%; box-sizing: border-box; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--fg); }

/* Watering (1.02; the timeline and one list of taps since 1.03): each tap a tile with its photo from the B-hyve app, and a
   colour of its own (--hue) that its runs on the timeline share */
.water .zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 4px; }
.water .zone { background: var(--bg); border-radius: 16px; overflow: hidden; padding: 0 10px 10px; border: 2px solid transparent; border-top: 4px solid hsl(var(--hue, 205) 70% 52%); }
.water .zone.on { border-color: hsl(var(--hue, 205) 70% 52%); }
.water .zone[data-tapzone] { cursor: pointer; } .water .zone.sel { border-color: var(--fg); }   /* the tap chosen, here or on the map (1.46) */
.water .tapdetail { display: grid; gap: 4px; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line); } .water .tapdetail .offer { margin: 2px 0; }
.water .zone .pic { position: relative; margin: 0 -10px 8px; aspect-ratio: 4 / 3; background: linear-gradient(160deg, hsl(var(--hue, 205) 70% 78%), hsl(var(--hue, 205) 70% 46%)); overflow: hidden; }
.water .zone .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.water .zone .zname { font-weight: 700; overflow-wrap: anywhere; }
/* the garden from above (1.45), inked like a planting plan since 1.47 and rendered in colour since 1.48: ink and
   washes on white paper in either theme */
.garden { width: 100%; max-width: 820px; height: auto; display: block; margin: 0 auto 8px; background: #fdfdfa; border: 1px solid var(--line); border-radius: 6px; }
.garden polygon { fill: #fdfdfa; stroke: #1c1c1c; stroke-width: .38; stroke-linejoin: round; }
.garden .g-lawn polygon { fill: #cfe5b4; } .garden .g-bed polygon { fill: #ece2cf; } .garden .g-hedge polygon { fill: #b9d8a8; }
.garden .g-house polygon { fill: #e9e9e6; stroke-width: .6; } .garden .g-deck polygon { fill: #ead8b8; } .garden .g-drive polygon { fill: #f1efea; stroke-dasharray: 1.6 1.1; stroke-width: .28; }
.garden .plant { fill: #8cc07a; stroke: #1c1c1c; stroke-width: .22; } .garden .shade { fill: #1c1c1c; opacity: .16; } .garden .dot { fill: #1c1c1c; opacity: .75; }
.garden .g-lawn .dot { fill: #3d7a35; opacity: .8; } .garden .plank { stroke: #a8895a; stroke-width: .16; }
.garden text { font-family: "Segoe Print", "Bradley Hand", "Chalkboard SE", casual, "Comic Sans MS", sans-serif; font-size: 2.5px; font-weight: 700; letter-spacing: .12px; text-transform: uppercase;
  text-anchor: middle; fill: #1c1c1c; pointer-events: none; paint-order: stroke; stroke: #fdfdfa; stroke-width: 1.3px; stroke-linejoin: round; }
.garden text.sub { font-size: 2.1px; fill: #14622f; text-transform: none; } .garden .g-house text { text-decoration: underline; }
.garden [data-garea] { cursor: pointer; } .garden polygon.hit { fill: transparent !important; stroke: none !important; pointer-events: all; }   /* what a finger lands on (1.49) */
/* what is happening is said by the line round an area: gold for the one chosen, blue for a tap that is running */
.garden .sel polygon { stroke: #c08a00; stroke-width: 1.1; } .garden .on polygon { stroke: #2f5bd6; stroke-width: 1.1; fill: #cfe0ff; } .garden .on text.sub { fill: #2f5bd6; }
.water .gpanel { display: grid; gap: 4px; } .water .gplants i { color: var(--muted); }
/* a soil sensor opened (1.45): its readings as a line, and water by soil */
.water .soildetail { margin: 2px 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 8px; }
.water .soildetail p { margin: 0; } .water .soilauto { display: grid; gap: 6px; } .water .soilauto input[type="number"] { width: 4.5em; }
.water .soilauto select { max-width: 100%; } .water .soilauto .offer label { max-width: 100%; }
.water .soilauto .check { display: flex; gap: 8px; align-items: flex-start; }
.soilchart { width: 100%; height: auto; display: block; } .soilchart text { fill: var(--muted); font-size: 11px; }
.soilchart .grid { stroke: var(--line); stroke-width: 1; } .soilchart .grid.faint { opacity: .5; }
.soilchart .line { fill: none; stroke: var(--go); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; } .soilchart .dot { fill: var(--go); }
.soilchart line.level { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 6 4; }
.soilchart text.level { fill: var(--amber); font-weight: 700; paint-order: stroke; stroke: var(--card, var(--bg)); stroke-width: 4px; }
.water .soilrow .acts input { width: 9em; } .water .soilrow .acts select { max-width: 11em; }   /* his name and zone for a soil sensor (1.44) */
.water .zone .live { color: hsl(var(--hue, 205) 70% 38%); font-weight: 700; }
.water .zone .offer { margin: 8px 0 0; }
.water select, .water input[type=time] { font: inherit; font-size: 14px; padding: 6px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); }
/* a tap that is running: rain falling over its photo */
.water .rain { position: absolute; inset: 0; pointer-events: none; opacity: .85;
  background-image: radial-gradient(circle, rgba(255,255,255,.95) 1.4px, transparent 2px), radial-gradient(circle, rgba(190,225,255,.9) 1.2px, transparent 1.8px);
  background-size: 22px 34px, 31px 47px; animation: waterfall 1.1s linear infinite; }
@keyframes waterfall { from { background-position: 0 0, 9px 0; } to { background-position: 0 34px, 9px 47px; } }
@media (prefers-reduced-motion: reduce) { .water .rain { animation: none; } }

/* the schedule: a row a tap, the day across; the names stay put while the day scrolls under them */
.sched.off .tl { opacity: .5; }
.sched .days { margin: 0 0 8px; }
.sched .days button.today { text-decoration: underline; text-underline-offset: 3px; }
.tl { display: flex; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); }
.tlnames { flex: none; width: var(--names); border-right: 1px solid var(--line); background: var(--card); }
.tlhead, .tlhours { height: 24px; }
.tlname { height: 44px; padding: 4px 8px; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); border-left: 4px solid hsl(var(--hue) 70% 52%); overflow: hidden; }
.tlname b { font-size: 13px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tlname span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tlscroll { flex: 1; overflow-x: auto; overscroll-behavior-x: contain; }
.tlinner { position: relative; }
.tlhours { position: relative; font-size: 11px; color: var(--muted); }
.tlhours span { position: absolute; top: 5px; padding-left: 3px; border-left: 1px solid var(--line); height: 19px; white-space: nowrap; }
.tlrow { position: relative; height: 44px; border-top: 1px solid var(--line); cursor: copy;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(var(--pxh) * 3) 100%; }
.tlrow:hover { background-color: hsl(var(--hue) 70% 52% / .07); }
.tlblock { position: absolute; top: 6px; height: 32px; border-radius: 9px; background: hsl(var(--hue) 70% 52%); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; user-select: none; box-shadow: 0 1px 2px rgba(0,0,0,.25); white-space: nowrap; }
.tlblock span { pointer-events: none; padding: 0 4px; overflow: hidden; }
.tlblock.some { background: repeating-linear-gradient(135deg, hsl(var(--hue) 70% 52%) 0 8px, hsl(var(--hue) 70% 62%) 8px 12px); }   /* not every day */
.tlblock.sel { outline: 3px solid var(--fg); outline-offset: 1px; z-index: 2; }
.tlblock.clash { box-shadow: 0 0 0 3px var(--red, #d33); }
.tlblock.ran { opacity: .7; } .tlblock.missed { background: var(--red, #d33); }
.tlblock.held { background: none; color: hsl(var(--hue) 70% 40%); box-shadow: inset 0 0 0 2px hsl(var(--hue) 70% 52%); }   /* held back: the soil was wet enough (1.45) */
:root[data-theme="dark"] .tlblock.held { color: hsl(var(--hue) 70% 72%); }
.tlblock.drag { cursor: grabbing; z-index: 3; box-shadow: 0 6px 16px rgba(0,0,0,.35); transform: scale(1.06); }
.tlgrip { position: absolute; right: 0; top: 0; bottom: 0; width: clamp(4px, 30%, 10px);   /* a short run keeps most of itself for moving */ cursor: ew-resize; border-radius: 0 9px 9px 0; background: rgba(255,255,255,.35); }
.tlnow { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red, #d33); pointer-events: none; }
.wedit { margin: 4px 0 10px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border-left: 5px solid hsl(var(--hue) 70% 52%); }
.wedit .offer { margin: 8px 0; align-items: center; } .wedit .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sched .chips button, .wedit .chips button { padding: 4px 10px; font-size: 13px; }
.warn { color: var(--red, #d33); }

/* Watering, the week view (1.04): a row for each day, each tap's runs on its own thin lane in its colour */
.tl.wk .tlname { border-left-color: transparent; cursor: pointer; }
.tl.wk .tlname.today { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.tl.wk .tlscroll { overflow-x: hidden; }
.wkrow { cursor: pointer; }
.wkrow.today { background-color: color-mix(in srgb, var(--accent) 14%, transparent); }
.wkrow.skipped .wkblock { opacity: .3; }
.wkblock { position: absolute; border-radius: 4px; background: hsl(var(--hue) 70% 52%); cursor: pointer; }
.wkblock.clash { box-shadow: 0 0 0 2px var(--red, #d33); }
.wklegend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 8px; font-size: 13px; }
.wklegend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 3px; background: hsl(var(--hue) 70% 52%); }
/* House guides (1.18): the editor on the Guides page, the card he prints, and the guests' page (guide.html). */
.guideform label { display: flex; flex-direction: column; gap: 4px; }
.guideform label:has(> input[type=checkbox]) { flex-direction: row; align-items: center; gap: 8px; }
.gwifi { border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 8px; margin: 0; min-width: 0; }
.gwifi legend { font-weight: 700; padding: 0 6px; }
.gsect { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.gsect-head { display: flex; gap: 4px; align-items: center; }
.gsect-head input { flex: 1; min-width: 0; font-weight: 700; }
.guidehold { display: flex; justify-content: center; margin: 4px 0 8px; }
a.btnlink { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 999px; padding: 7px 16px; font-weight: 600; text-decoration: none; }
.guidecard { width: 100%; max-width: 420px; background: #fff; color: #14181f; border: 2px solid #14181f; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.gc-head { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; justify-content: center; text-align: center; }
.gc-qrs { display: flex; gap: 14px; justify-content: center; }
.gc-qrs figure { margin: 0; flex: 1 1 0; max-width: 180px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.gc-qrs svg { width: 100%; height: auto; display: block; }
.gc-qrs figcaption { font-weight: 700; font-size: 14px; line-height: 1.25; }
.gc-qrs figcaption span { font-weight: 400; font-size: 12px; }
.gc-wifi { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; border-top: 1px solid #d0d4da; padding-top: 10px; }
.gc-wifi div { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.gc-wifi span { font-size: 12px; color: #555c68; }
.gc-wifi b { font-size: 17px; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
#printhold { display: none; }
@media print {
  body.printing > :not(#printhold) { display: none !important; }
  body.printing { background: #fff; }
  body.printing #printhold { display: flex; justify-content: center; padding-top: 12mm; }
  body.printing .guidecard { max-width: 120mm; break-inside: avoid; }
}
.guidepage main { max-width: 640px; }
.guidepage .card p, .guidepage .sky p { margin: 0 0 8px; overflow-wrap: anywhere; }
.guidepage .gval { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
/* Who's where (1.23): an entry's kind as a chip, a line typed to Maijel under the heading, the form's two dates side by side */
.whererow .chip { margin-right: 4px; } .whererow .stale { color: var(--amber); }
.wheresay { margin-top: 10px; } .wheresay input { flex: 1; min-width: 0; }
.whereform .when { display: flex; gap: 10px; flex-wrap: wrap; } .whereform .when label { display: flex; flex-direction: column; gap: 4px; }
.whereform label { display: flex; flex-direction: column; gap: 4px; } .whereform label:has(input[type=checkbox]) { flex-direction: row; align-items: center; gap: 8px; }
/* 1.41: a note has no dates and only something that is on has a reminder, so the form shows what its kind asks; a row's
   own reminder choice sits under its date; what was on lately is folded away */
.whereform .dated { display: flex; flex-direction: column; gap: 8px; } .whereform[data-kind=note] .dated, .whereform:not([data-kind=event]) .remind { display: none; }
.whereform select { align-self: flex-start; max-width: 100%; }
.remindpick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0; }
.remindpick select { font: inherit; font-size: 13px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); max-width: 100%; }
.lately { margin-top: 8px; } .lately summary { cursor: pointer; }
.personform .seg input { width: auto; }
/* Calendar, with who's where (1.24): a row for each day (the date, then the family's chips over that day's events) */
.agenda { display: flex; flex-direction: column; gap: 8px; }
.aday { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; }
.aday.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.aday.free { background: none; }
.adate { flex: 0 0 62px; display: flex; flex-direction: column; line-height: 1.2; } .adate b { font-size: 17px; } .adate span { font-size: 12px; color: var(--muted); }
.abody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.apeople, .alegend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .alegend { margin-top: 8px; }
.achip { font: inherit; font-size: 12px; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--fg); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.achip b { font-weight: 600; }
.achip.known { border-color: var(--go); } .achip.known b { color: var(--go); }
.achip.stale { border-color: var(--amber); } .achip.stale b { color: var(--amber); }
.achip.unknown { border-style: dashed; color: var(--muted); cursor: pointer; }
.aevent { display: flex; gap: 10px; align-items: baseline; } .aevent .atime { flex: 0 0 118px; font-size: 13px; color: var(--muted); } .aevent .atitle { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.aevent.allday .atitle { font-weight: 500; } .aevent a { color: inherit; text-decoration: none; } .aevent a:hover { text-decoration: underline; }
@media (max-width: 560px) { .aevent { flex-direction: column; gap: 0; } .aevent .atime { flex: none; } .adate { flex-basis: 50px; } }
@media (max-width: 560px) { .aevent.awho { flex-direction: row; flex-wrap: wrap; gap: 0 8px; } }   /* a place and its people stay on one line on a phone (1.43) */
/* Today's days are drawn the same way (1.32): a row there is a button that opens the day on Planning; his own have the yellow dot */
button.aevent.arow { width: 100%; padding: 2px 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.aevent.arow:hover .atitle { text-decoration: underline; }
.aevent.arow.mine .atitle::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--accent); }
.aevent.arow.done .atitle { text-decoration: line-through; color: var(--muted); }
.aevent.awho .atime { font-weight: 600; } .aevent.awho button.quiet { padding: 0 6px 0 0; min-height: 0; } .aevent.awho .atitle { font-weight: 500; }   /* who is where: today everyone, later only what changes (1.43) */
.aevent.awho.known .atime { color: var(--go); } .aevent.awho.stale .atime, .aevent.awho.stale .atitle { color: var(--amber); } .aevent.awho.unknown .atitle { color: var(--muted); }
.aevent.afam .atime { color: var(--thought); font-weight: 600; } .aevent.afam .atitle { font-weight: 600; }   /* what is on for one of the family that day (1.27) */
/* Home (1.29): a tile for every section, its mark in the Maijel icon's language, a name and one line of what is there.
   The setup sections sit in their own group at the foot, smaller and without the line. Only tiles in a .tiles grid:
   the Board has its own .tile (:where keeps these rules as light as they were). */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 8px; }
:where(.tiles) .tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 14px; border: 0; border-radius: 20px; background: var(--card); color: var(--fg); text-align: left; font-weight: 400; transition: transform .12s ease, box-shadow .12s ease; }
:where(.tiles) .tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgb(20 24 31 / .12); }
:where(.tiles) .tile:active { transform: none; box-shadow: none; }
:where(.tiles) .tile:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
:where(.tiles) .tile .ticon { width: 60px; height: 60px; flex: none; margin-bottom: 8px; border-radius: 19%; }
:root[data-theme="dark"] :where(.tiles) .tile .ticon { box-shadow: 0 0 0 1px var(--line); }   /* the dark mark on a dark card keeps its edge */
:where(.tiles) .tile b { font-size: 16px; font-weight: 700; line-height: 1.2; }
:where(.tiles) .tile .tinfo { max-width: 100%; font-size: 13px; line-height: 1.3; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
:where(.tiles) .tile .tdot { position: absolute; top: 12px; right: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.sect.setup .tiles { margin: 0 8px 8px; }
.tiles.small { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.tiles.small .tile { flex-direction: row; align-items: center; gap: 10px; padding: 10px; background: var(--bg); border-radius: 16px; }
.tiles.small .ticon { width: 36px; height: 36px; margin: 0; }
.tiles.small .tile b { font-size: 15px; }
@media (max-width: 560px) {
  /* three across a phone: the mark over its name, the line beneath */
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  :where(.tiles) .tile { align-items: center; text-align: center; padding: 12px 6px 10px; }
  :where(.tiles) .tile .ticon { width: 52px; height: 52px; }
  :where(.tiles) .tile b { font-size: 14px; }
  :where(.tiles) .tile .tinfo { font-size: 12px; }
  :where(.tiles) .tile .tdot { top: 8px; right: 8px; }
  .tiles.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles.small .tile { text-align: left; padding: 10px; }
}
/* Boat (1.37): a card for each forecast day; the hours as wind/gust pairs and the tides as a line that wraps */
.dash.boat { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.dash.boat > .card { margin: 0; }
.boatday .stats { margin: 2px 0 6px; }
.bslots, .btides { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 6px 0; }
.bslots span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; } .bslots b { font-weight: 600; color: var(--fg); }
.chip.muted { color: var(--muted); }
.bfar { margin: 14px 4px 8px; }
/* Activity (1.37): the hub's log. Bars are plain boxes: how busy each writer was, how old each card is against its cadence */
.actgrid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; align-items: start; }
@media (max-width: 900px) { .actgrid { grid-template-columns: minmax(0, 1fr); } }
#actq { width: 100%; margin: 0 0 6px; }
.actgrid .actrow .atime { flex: 0 0 88px; }
.actgrid .row { flex-wrap: nowrap; align-items: baseline; } .actgrid .row .what { flex: 1 1 0; } .actgrid .row > .small { flex: none; }
.actcard .abar { align-self: center; }
.abar { flex: 0 0 64px; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.abar i { display: block; height: 100%; background: var(--fg); border-radius: 4px; }
.abar.go i { background: var(--go); } .abar.amber i { background: var(--amber); } .abar.red i { background: var(--red); }
.abars { margin-top: 4px; } .abars > div { display: grid; grid-template-columns: 110px minmax(0, 1fr) 110px; gap: 10px; align-items: center; padding: 3px 0; }
.abars .abar { width: 100%; }
@media (max-width: 640px) { .actrow .atime { flex-basis: 70px; } .abars > div { grid-template-columns: 84px minmax(0, 1fr) 84px; } }
/* Research (1.37): Looking into sits under the topics */
.dash.research + .card { margin-top: 12px; }

/* The Family page (1.51): what someone he lets sign in lands on (js/landing.js); its Wi-Fi values as the guide page shows them, and his steps as a list. */
#landing .gval { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
#landing .card p, #landing .sky p { overflow-wrap: anywhere; }
#landing .card.fam ul { margin: 4px 0 8px; padding-left: 22px; } #landing .card.fam li { margin: 4px 0; line-height: 1.45; }
#landing .detailsform { margin-top: 6px; }
/* Who can sign in (1.52): a row a person, their ticks and the Google email they sign in with, on the family page */
.roster .rrow { display: grid; grid-template-columns: minmax(140px, 1fr) auto minmax(200px, 1.2fr); gap: 6px 14px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.roster .rrow:first-of-type { border-top: 0; }
.roster .rname .chip { margin-left: 4px; }
.roster .rticks { display: flex; gap: 12px; flex-wrap: wrap; } .roster .tick { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.roster .remail { width: 100%; min-width: 0; font: inherit; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--fg); }
.chip.warn { color: var(--red); }
@media (max-width: 720px) { .roster .rrow { grid-template-columns: 1fr; } }
