/* Pepper's portal (2026-11-19; five pages the same day). One dark theme that matches the link preview. Phone first, for an older reader,
   so big type (20 px base, 23 and 26 on his word), tap targets of at least 48 px (44 is the floor), contrast measured (text at least
   4.5 to 1). Tokens first; no inline styles (the CSP forbids them). The accent is one of a fixed palette chosen by the page spec
   (html.a-<name>). THE FRAME: on a signed-in page the body is exactly the screen (top line, content, the bar of five); only the content
   scrolls, with its scrollbar hidden and momentum kept. */
:root {
  /* primitives */
  --ink-0: #f2f3f5; --ink-1: #c9cfd8; --ink-2: #a3adbb;
  --ground-0: #111418; --ground-1: #181c22; --ground-2: #20262e; --ground-3: #262d36; --line: #2e3640; --line-2: #3a4450;
  --amber: #e9b872; --blue: #8fb8f0; --green: #8fd1a6; --rose: #f0a3b5; --violet: #c3a9f0;
  --danger: #f2a39a;
  /* semantic */
  --bg: var(--ground-0); --surface: var(--ground-1); --surface-2: var(--ground-2); --surface-3: var(--ground-3);
  --text: var(--ink-0); --text-2: var(--ink-1); --text-3: var(--ink-2);
  --accent: var(--amber); --on-accent: #15181c;
  --bar-bg: #15191e;
  --radius: 16px; --radius-sm: 12px; --gap: 16px; --gutter: 16px;
  --tap: 52px; --fs: 20px; --nav-fs: 15px;
  --ease-out: cubic-bezier(.2,.7,.2,1); --dur: 160ms;
  color-scheme: dark;
}
html.a-blue { --accent: var(--blue); } html.a-green { --accent: var(--green); } html.a-rose { --accent: var(--rose); } html.a-violet { --accent: var(--violet); }
html.t1 { --fs: 23px; } html.t2 { --fs: 26px; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100svh; background: var(--bg); color: var(--text);
  font: 400 var(--fs)/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: clip; overflow-wrap: anywhere;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.5em; line-height: 1.25; font-weight: 600; }
h2 { font-size: 1.1em; line-height: 1.3; font-weight: 650; letter-spacing: .005em; }
h3 { font-size: 1em; font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* buttons */
button, .button { font: inherit; min-height: var(--tap); padding: 10px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; touch-action: manipulation;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
button:active, .button:active { transform: scale(.96); }
button:disabled { opacity: .4; cursor: default; transform: none; }
.primary { background: var(--accent); color: var(--on-accent); font-weight: 650; }
.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
@media (hover: hover) { .ghost:hover:not(:disabled) { background: var(--surface-2); } }
.sm { min-height: 48px; padding: 6px 18px; font-size: .9em; }
.wide { width: 100%; }
.linkish { background: none; border: 0; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; padding: 10px 6px; min-height: 48px; }
form.inline { display: inline; margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-width: 0; }

/* inputs: >= 16px always (iOS zoom), here 1em of a 20 px base */
input[type=password], input[type=text] { font: inherit; width: 100%; min-height: var(--tap); padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); border: 2px solid var(--line); }
input:focus { border-color: var(--accent); outline: none; }
input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
label { display: block; font-weight: 600; margin: 0 0 8px; }

/* the corner mark (sign-in and plain pages) */
.corner { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: calc(var(--gutter) + env(safe-area-inset-left)); }
.mark { width: 28px; height: 28px; opacity: .8; display: block; }

/* sign-in: plain, one box */
.signin-main { min-height: 100svh; display: grid; place-items: center; padding: 72px var(--gutter); }
.signin-box { width: min(100%, 22rem); display: grid; gap: 14px; }
.signin-box label { margin: 0; }
.msg { color: var(--danger); }

/* plain pages (messages, password) */
.msg-main { max-width: 34rem; margin: 0 auto; padding: 88px var(--gutter) 48px; display: grid; gap: 18px; }
.stack { display: grid; gap: 10px; }
.stack button { margin-top: 10px; }
.quiet { color: var(--text-2); }

/* ---------------------------------------------------------------- THE FRAME ---------------------------------------------------------- */
body.app { height: 100svh; height: 100dvh; min-height: 0; overflow: hidden; padding: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.top { padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); background: var(--bg); border-bottom: 1px solid var(--line); view-transition-name: top; }
.top-in { max-width: 40rem; margin: 0 auto; min-height: 56px; padding: 6px var(--gutter); display: flex; align-items: center; gap: 12px; }
.top h1 { font-size: 1.2em; font-weight: 650; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .me { width: 36px; height: 36px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.top .mark { width: 24px; height: 24px; flex: none; }
.top .whose { flex: none; max-width: 45%; margin: 0; font-size: .85em; color: var(--muted, inherit); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; min-height: 0;
  padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left); }
.content::-webkit-scrollbar { display: none; width: 0; height: 0; }
.content:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 0; }
.wrap { max-width: 40rem; margin: 0 auto; padding: 16px var(--gutter) 36px; display: grid; gap: 22px; min-width: 0; align-content: start; }

/* THE BAR OF FIVE: big targets, an icon and a word; the current one marked; Home raised in the middle (the one flourish). */
.bar { background: var(--bar-bg); border-top: 1px solid var(--line); padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); view-transition-name: bar; position: relative; z-index: 2; }
.bar ul { list-style: none; margin: 0 auto; padding: 0 4px; max-width: 40rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; }
.bar li { min-width: 0; display: flex; justify-content: center; }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; min-height: 68px; padding: 8px 2px 8px;
  color: var(--text-2); text-decoration: none; font-size: var(--nav-fs); line-height: 1.15; font-weight: 600; border-radius: 14px; -webkit-tap-highlight-color: transparent; }
.tab .lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab .ic-wrap { position: relative; display: grid; place-items: center; }
.tab[aria-current="page"] { color: var(--accent); }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 50%; width: 32px; height: 4px; margin-left: -16px; border-radius: 0 0 4px 4px; background: var(--accent); }
.tab:active .ic { transform: scale(.92); }
.tab .ic { transition: transform var(--dur) var(--ease-out); }
.tab:focus-visible { outline-offset: -3px; }
.badge-dot { position: absolute; top: -6px; right: -12px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-size: 13px; font-weight: 750; line-height: 22px; text-align: center; box-shadow: 0 0 0 2px var(--bar-bg); }
.tab-home { padding-top: 0; gap: 4px; }
.tab-home .disc { width: 66px; height: 66px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--accent);
  border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 0 6px var(--bar-bg), 0 6px 18px rgba(0, 0, 0, .45);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out); }
.tab-home[aria-current="page"] .disc { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tab-home[aria-current="page"]::before { display: none; }
.tab-home:active .disc { transform: scale(.95); }

/* A very short window (a phone on its side, a big zoom): the frame steps aside and the page scrolls as a whole, the bar at the bottom. */
@media (max-height: 460px) {
  body.app { height: auto; min-height: 100svh; overflow: visible; display: block; }
  .content { overflow: visible; }
  .top { position: static; }
  .bar { position: sticky; bottom: 0; }
}
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* sections, cards */
.sec { display: grid; gap: 12px; min-width: 0; }
.sec > h2, .sec > summary > h2 { color: var(--text); }
.fold > summary { list-style: none; cursor: pointer; min-height: var(--tap); display: flex; align-items: center; gap: 10px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; color: var(--accent); font-size: 1.2em; margin-left: auto; }
.fold[open] > summary::after { content: "\2212"; }
.fold[open] { display: grid; gap: 12px; }
.empty-note { padding: 6px 0; }
.lead { color: var(--text-2); font-size: .9em; }
.greet { color: var(--text-2); font-size: 1.05em; }
.hint p { font-size: .95em; }
.hint, .push-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; justify-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; min-width: 0; }
.more > summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; color: var(--accent); font-weight: 600; list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more[open] { display: grid; gap: 12px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.pager > :last-child { justify-self: end; }
.pager .pg-n { color: var(--text-3); font-size: .85em; }
.pager .button { min-height: 48px; padding: 6px 18px; font-size: .9em; }

/* connect card */
.connect-top { display: flex; gap: 14px; align-items: center; }
.connect-top .play { color: var(--accent); flex: none; }
.guide-note { color: var(--text-2); font-size: .9em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.steps li { display: grid; gap: 6px; align-content: start; min-width: 0; }
.shot { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #fff; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.steps li:last-child .shot { background: #131314; }
.shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cap { font-size: .8em; line-height: 1.3; color: var(--text-2); }
.cap b { color: var(--accent); margin-right: 2px; }
.quiet-line .quiet { font-size: .95em; }

/* Home: today's line, the call summaries, the call button */
.today-line { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 14px 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; }
.today-line .tl-icon { color: var(--accent); flex: none; display: grid; }
.today-line .tl-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.today-line .tl-count { font-weight: 650; }
.today-line .tl-next { color: var(--text-2); font-size: .88em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-line > svg { color: var(--text-3); flex: none; }
/* His call history (2026-11-19): a card a call, his title and his points as a real list; long words wrap, nothing scrolls sideways. */
.calls { display: grid; gap: 14px; min-width: 0; }
.call { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; display: grid; gap: 8px; min-width: 0; }
.call-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; min-width: 0; }
.call .when { color: var(--accent); font-weight: 650; font-size: .85em; }
.call .len { color: var(--text-3); font-size: .8em; }
.call-title { font-size: 1.05em; line-height: 1.3; font-weight: 650; }
.points { margin: 2px 0 0; padding: 0 0 0 1.15em; display: grid; gap: 10px; min-width: 0; }
.points li { padding-left: 4px; line-height: 1.45; }
.points li::marker { color: var(--accent); }
.call-note { color: var(--text-2); font-size: .95em; }
.call-note .note-lbl { color: var(--text-3); font-size: .85em; font-weight: 600; }
.calls-tail { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.calls-tail .button { min-height: 48px; padding: 6px 18px; font-size: .9em; }
.calls-end { font-size: .9em; padding: 4px 0; }
/* Home's quiet down arrow: a small round button at the lower right of the scrolling middle (the same grid cell, outside the scroller,
   clear of the raised Home button in the middle of the bar). Only the button takes touches. It fades out at the end of the list, and
   the list ends with room under it, so at the end nothing is covered; while he scrolls it may pass over the end of a line. */
.pg-home .wrap { padding-bottom: 72px; }
/* Home's frame cells named outright, so the arrow can share the middle cell without moving the bar down a row. */
body.app.pg-home > .top { grid-row: 1; } body.app.pg-home > .content { grid-row: 2; grid-column: 1; } body.app.pg-home > .bar { grid-row: 3; }
.more-below { grid-row: 2; grid-column: 1; align-self: end; justify-self: end; z-index: 1; margin: 0 6px 10px 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), visibility var(--dur) var(--ease-out); }
.more-below.at-end { opacity: 0; visibility: hidden; }
.more-btn { pointer-events: auto; min-height: 44px; width: 44px; padding: 0; border-radius: 50%; background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--line-2); box-shadow: 0 0 0 3px var(--bg); }
@media (max-height: 460px) { .more-below { display: none; } }
.call-wrap { display: grid; }
.call-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; border-radius: 999px; background: var(--surface-2); border: 2px solid var(--accent);
  color: var(--text); font-weight: 650; text-decoration: none; }
.call-btn svg { color: var(--accent); }

/* Briefs: message bubbles, tap to copy */
.brief { display: grid; gap: 8px; min-width: 0; }
.brief .to { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.brief-acts { margin-left: auto; display: flex; gap: 8px; }
/* The Copy button is for a keyboard or a screen reader (a tap on the bubble copies): out of sight until it has focus. */
.copy-btn:not(:focus):not(:focus-visible) { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.brief .who { font-weight: 650; }
.brief .kind { color: var(--text-2); font-size: .8em; padding: 1px 10px; border: 1px solid var(--line-2); border-radius: 999px; }
.brief .kind.new { color: var(--accent); border-color: var(--accent); font-weight: 650; }
.bubble { position: relative; background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 22px 22px 22px 6px; padding: 14px 18px; font-size: 1.05em; line-height: 1.5; white-space: pre-wrap; cursor: copy;
  -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
.bubble:active { transform: scale(.985); }
.bubble .copied { display: none; position: absolute; top: -12px; right: 12px; background: var(--accent); color: var(--on-accent); font-size: .75em; font-weight: 750;
  padding: 2px 12px; border-radius: 999px; -webkit-user-select: none; user-select: none; }
.bubble.is-copied { border-color: var(--accent); }
.bubble.is-copied .copied { display: block; }
.brief.sent .bubble { background: var(--surface); border-color: var(--line); color: var(--text-2); cursor: text; }

/* Thoughts: collapsible groups with counts */
.grp { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.grp > summary { list-style: none; cursor: pointer; min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-radius: var(--radius); }
.grp > summary::-webkit-details-marker { display: none; }
.grp > summary h2 { flex: 1; min-width: 0; font-size: 1.05em; }
.grp > summary .count { min-width: 34px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--surface-3); color: var(--text); font-size: .8em; font-weight: 700; display: grid; place-items: center; }
.grp > summary::after { content: ""; width: 11px; height: 11px; border-right: 2.5px solid var(--text-2); border-bottom: 2.5px solid var(--text-2); transform: rotate(45deg) translateY(-3px); flex: none; margin: 0 4px 0 2px;
  transition: transform var(--dur) var(--ease-out); }
.grp[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.grp-body { padding: 4px 16px 16px; display: grid; gap: 12px; min-width: 0; }
.grp .notes, .grp .ideas li { background: var(--surface-2); }

/* ideas, lists, links, notes */
.ideas, .plain-list, .asked, .links, .checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ideas li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; gap: 2px; }
.ideas .t { font-weight: 600; }
.ideas .st { color: var(--accent); font-size: .85em; }
.ideas .next { color: var(--text-2); font-size: .95em; }
.sub { margin-top: 6px; color: var(--text-2); }
.plain-list li { padding-left: 18px; position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.asked li { color: var(--text-2); font-size: .95em; }
.asked .st { color: var(--text-3); font-size: .85em; white-space: nowrap; }
.notes { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.checks li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.checks li > span, .checks li > label { min-width: 0; }
.checks li.done > span { color: var(--text-3); text-decoration: line-through; }
.tick { width: var(--tap); min-width: var(--tap); padding: 0; border-radius: 12px; background: var(--surface-2); border-color: var(--line-2); color: var(--accent); font-weight: 700; }
.links li { display: grid; }
.links li a { min-height: 44px; display: inline-flex; align-items: center; }
.links .host { color: var(--text-3); font-size: .8em; }

/* the bigger picture */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; margin: 0; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox form { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); margin: 0; z-index: 1; }
.lightbox .close { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.lightbox img { max-width: 100vw; max-height: 100dvh; object-fit: contain; display: block; }

/* ---------------------------------------------------------------- Calendar ----------------------------------------------------------- */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); width: min(100%, 20rem); justify-self: center; }
.seg a { min-height: 48px; display: grid; place-items: center; border-radius: 999px; color: var(--text-2); text-decoration: none; font-weight: 650; }
.seg a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.planner { display: grid; gap: 14px; min-width: 0; }
.month { display: grid; gap: 8px; }
.month-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.month-nav a { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--text); border: 1px solid var(--line-2); }
.m-title { font-size: 1.05em; }
.grid7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.grid7 .wd { text-align: center; color: var(--text-3); font-size: .7em; padding-bottom: 2px; }
.grid7 a, .grid7 span.blank { aspect-ratio: 1; min-height: 44px; display: grid; place-items: center; border-radius: 10px; text-decoration: none; color: var(--text); font-size: .85em; position: relative; min-width: 0; }
.grid7 a { background: var(--surface); border: 1px solid var(--line); }
.grid7 a.c1 { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.grid7 a.c2 { background: color-mix(in srgb, var(--accent) 30%, var(--surface)); }
.grid7 a.c3 { background: color-mix(in srgb, var(--accent) 46%, var(--surface)); }
.grid7 a.alldone::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.grid7 a.is-today { border: 2px solid var(--accent); font-weight: 700; }
.under { display: grid; gap: 10px; }
.under h3 { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; color: var(--accent); }
.under h3 .date, .day .date { color: var(--text-2); font-weight: 400; font-size: .85em; }
.more-link { font-size: .9em; }
.day { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); min-width: 0; }
.seg + .day, .pl-missed + .day { border-top: 0; padding-top: 0; }
.d-title { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 1em; }
.day.today .d-title { color: var(--accent); }
.timed, .todos, .open-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pl-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; min-width: 0; }
.pl-item > .what { min-width: 0; display: grid; gap: 2px; }
.pl-item .tm { color: var(--accent); font-weight: 650; font-size: .9em; }
.pl-item.done .txt { color: var(--text-3); text-decoration: line-through; }
.pl-item .from { color: var(--text-3); font-size: .8em; }
.pl-item details.edit { grid-column: 3; grid-row: 1; }
.pl-item details.edit[open] { grid-column: 1 / -1; grid-row: 2; }
.pl-item details.edit > summary { color: var(--text-2); font-size: .8em; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; list-style: none;
  padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; }
.pl-item details.edit[open] > summary { color: var(--accent); border-color: var(--accent); }
.pl-item details.edit > summary::-webkit-details-marker { display: none; }
.pl-form { display: grid; gap: 10px; padding: 12px 0 4px; }
.pl-form .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pl-form input[type=date], .pl-form input[type=time] { font: inherit; min-height: var(--tap); padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); border: 2px solid var(--line); width: 100%; min-width: 0; }
.pl-form .check { display: flex; gap: 10px; align-items: center; font-weight: 400; min-height: 44px; }
.pl-form .check input { width: 26px; height: 26px; accent-color: var(--accent); }
.still { color: var(--text-2); font-size: .9em; margin-top: 4px; }
.pl-add > summary { color: var(--accent); font-weight: 650; cursor: pointer; min-height: var(--tap); display: flex; align-items: center; gap: 10px; list-style: none; }
.pl-add > summary::-webkit-details-marker { display: none; }
.pl-add .plus { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--accent); font-size: 1.1em; line-height: 1; }
.pl-missed { color: var(--danger); font-size: .9em; }
.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.howto li { display: flex; gap: 12px; align-items: center; }
.howto svg { flex: none; color: var(--accent); }
.shape-line { color: var(--text-2); font-size: .85em; text-align: center; }

/* ---------------------------------------------------------------- Settings ----------------------------------------------------------- */
.set-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; gap: 14px; }
.set-group > h2 { font-size: 1em; color: var(--text-2); }
.set-group .push-card { background: transparent; border: 0; padding: 0; }
.set-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; min-width: 0; }
.set-row.end { justify-content: center; }
.set-col { display: grid; gap: 10px; }
.set-label { font-weight: 600; }
.set-label .quiet { font-weight: 400; font-size: .85em; margin-left: 6px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper .step { width: var(--tap); min-width: var(--tap); padding: 0; font-size: 1.3em; font-weight: 700; }
.step-val { min-width: 6.2em; text-align: center; font-weight: 650; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { width: var(--tap); min-width: var(--tap); padding: 0; border-color: var(--line-2); background: var(--surface-2); }
.swatch .sw-dot { width: 30px; height: 30px; border-radius: 50%; display: block; }
.sw-amber .sw-dot { background: var(--amber); } .sw-blue .sw-dot { background: var(--blue); } .sw-green .sw-dot { background: var(--green); }
.sw-rose .sw-dot { background: var(--rose); } .sw-violet .sw-dot { background: var(--violet); }
.swatch[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.set-fold > summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; font-weight: 600; list-style: none; }
.set-fold > summary::-webkit-details-marker { display: none; }
.set-fold > summary::after { content: "+"; color: var(--accent); margin-left: auto; font-size: 1.2em; }
.set-fold[open] > summary::after { content: "\2212"; }
.set-fold[open] { display: grid; gap: 12px; }
.dot-on { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--green); margin-right: 10px; vertical-align: middle; }

/* the showroom: samples, clearly samples */
.showroom { gap: 14px; }
.showroom > h2 { font-size: 1.15em; }
.samples { display: grid; gap: 14px; }
.sample { margin: 0; border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; min-width: 0; }
.sample-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sample-tag { font-size: .7em; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--on-accent); background: var(--text-2); border-radius: 6px; padding: 2px 8px; }
.sample-name { font-weight: 650; }
.sample figcaption { color: var(--text-2); font-size: .9em; }
.sample-body { min-width: 0; }
.fold-sample { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.fold-sample > summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; padding: 0 14px; font-weight: 600; list-style: none; }
.fold-sample > summary::-webkit-details-marker { display: none; }
.fold-sample > summary::after { content: "+"; color: var(--accent); margin-left: auto; font-size: 1.2em; }
.fold-sample[open] > summary::after { content: "\2212"; }
.fold-sample .notes { border: 0; background: transparent; padding: 0 14px 14px; }
.sample-checks li { min-height: 44px; }
.sample-checks input { width: 28px; height: 28px; accent-color: var(--accent); margin: 0; flex: none; }
.sample-checks label { margin: 0; font-weight: 400; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: var(--tap); margin: 0; font-weight: 400; cursor: pointer; }
.switch { appearance: none; -webkit-appearance: none; width: 60px; height: 36px; border-radius: 999px; background: var(--surface-3); border: 2px solid var(--line-2); position: relative; margin: 0; flex: none; cursor: pointer;
  transition: background-color var(--dur) var(--ease-out); }
.switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--text-2); transition: transform var(--dur) var(--ease-out); }
.switch:checked { background: var(--accent); border-color: var(--accent); }
.switch:checked::before { transform: translateX(24px); background: var(--on-accent); }
.switch:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* custom sections (block trees) */ /* and the showroom samples */
.b-h { margin: 0 0 8px; font-size: 1.1em; }
.b-p { margin: 0 0 10px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.b-p-strong { font-weight: 700; }
.b-p-quiet { color: var(--text-2); font-size: .9em; }
.b-list { margin: 0 0 10px; padding-left: 1.3em; line-height: 1.45; overflow-wrap: anywhere; }
.b-list li { margin-bottom: 4px; }
.b-rows { margin: 0 0 10px; display: grid; gap: 0; }
.b-rows > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.b-rows dt { color: var(--text-2); overflow-wrap: anywhere; }
.b-rows dd { margin: 0; overflow-wrap: anywhere; }
.b-table-wrap { overflow-x: auto; margin: 0 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.b-table { width: 100%; border-collapse: collapse; }
.b-table th, .b-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.b-table th { color: var(--text-2); font-weight: 600; background: var(--surface); }
.b-table tr:last-child td { border-bottom: 0; }
.b-tile { display: inline-flex; flex-direction: column; gap: 2px; min-width: 120px; margin: 0 8px 10px 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); vertical-align: top; }
.b-tile-label { color: var(--text-2); font-size: .85em; }
.b-tile-value { color: var(--accent); font-size: 1.8em; font-weight: 700; line-height: 1.1; }
.b-note { margin: 0; color: var(--text-2); font-size: .85em; }
.b-bar { margin: 0 0 12px; }
.b-bar-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; color: var(--text-2); }
.b-bar-track { height: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.b-bar-fill { height: 100%; background: var(--accent); }
.b-bar-fill.w0 { width: 0; } .b-bar-fill.w10 { width: 10%; } .b-bar-fill.w20 { width: 20%; } .b-bar-fill.w30 { width: 30%; }
.b-bar-fill.w40 { width: 40%; } .b-bar-fill.w50 { width: 50%; } .b-bar-fill.w60 { width: 60%; } .b-bar-fill.w70 { width: 70%; }
.b-bar-fill.w80 { width: 80%; } .b-bar-fill.w90 { width: 90%; } .b-bar-fill.w100 { width: 100%; }
.b-link { margin: 0 0 10px; }
.b-link a { color: var(--accent); overflow-wrap: anywhere; }
.b-hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

@media (min-width: 700px) {
  :root { --gutter: 24px; }
  .wrap { gap: 26px; padding-top: 22px; }
}

/* "Continue with Google" (2026-11-19): Google's dark theme for a custom sign-in button (fill #131314, a 1 px #8E918F stroke, #E3E3E3
   words; 12 px before the standard color G, 10 px after it, 12 px after the words; pill shape), scaled up for his eyes with its
   proportions kept. Google Sans is not loaded (no web fonts here): the nearest system face stands in. */
.signin-stack { width: min(100%, 22rem); display: grid; gap: 18px; }
.g-form { display: grid; margin: 0; }
.gbtn { width: 100%; min-height: 56px; padding: 0 12px; gap: 10px; background: #131314; color: #E3E3E3; border: 1px solid #8E918F; border-radius: 999px;
  font-family: "Google Sans", Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-weight: 500; letter-spacing: .01em; }
.gbtn .g-logo { flex: none; width: 22px; height: 22px; }
@media (hover: hover) { .gbtn:hover { background: #1d1d1f; } }
.pw-fold > summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: center; color: var(--text-2);
  text-decoration: underline; text-underline-offset: 3px; font-size: .9em; }
.pw-fold > summary::-webkit-details-marker { display: none; }
.pw-fold[open] > summary { margin-bottom: 12px; }
.set-note { color: var(--text-2); font-size: .9em; }

/* The person's email (from the first companion's tag, 2026-11-20): the Connect Google card, the Home email line, the Mail view. */
.guide-lines { margin: .4em 0 .8em; padding-left: 1.3em; display: grid; gap: .3em; }
.disclose { margin: .6em 0; }
.disclose summary { font-weight: 600; cursor: pointer; }
.disclose .plain-list li { margin: 0 0 .45em; }
.mail-note .sum { margin: .3em 0; }
.mail-note.flagged { border-left: 4px solid var(--accent); }
