/* Neome — shared design tokens, app shell and components (from prototipus/css/app.css; keep class names in sync).
   Source of truth: NEOME_brand_es_webapp_2026/01_latvanytervek/neome-web-app-home-locked-v1.png (1536×1024). */

/* ---------- Fonts (self-hosted, latin + latin-ext) ---------- */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/newsreader-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/newsreader-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/newsreader-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/newsreader-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/newsreader-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/newsreader-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/source-sans-3-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Design tokens (CLAUDE.md §7.4) ---------- */
:root {
  /* the day as a timeline (NEO-PAGE-001b, 2026-11-07) — the tokens the prototype keeps in its page :root */
  --tl-paper-1: #e7e0d2;
  --tl-paper-2: #e1d9c9;
  --tl-card-line: #d6cdbc;
  --tl-tile: #ece5d8;
  --tl-card-sh: 0 1px 2px rgba(60, 45, 30, .06), 0 14px 30px -22px rgba(60, 45, 30, .35);
  --tl-band: #6f4a30;      /* the band heads: bark, never a lens colour */
  --tl-ahead-line: #b9ae9b; /* the dashed outline of a tile still ahead (decorative) */
  --forest-900: #14221a;
  --forest-900-top: #1a2d22;
  --forest-700: #2e4937; /* a lighter step of the forest green for cards with longer reading (Weekly Mirror story, 2026-10-03) */
  --forest-800: #17281d;
  --forest-800-deep: #122219;
  --forest-nav-active: #435342;
  --nav-label: #99a79f;
  --nav-text: #e8ebe3;

  --paper: #f3efe7;
  --paper-deep: #ece8de;
  --surface: #f4f0e7;
  --border: #dad6cd;
  --divider: #e5e0d5;
  --field: #efebe4;

  --ink: #1e2a22;
  --ink-soft: #3d463f;
  --muted: #65685f;  /* text grey — 4.95:1 on paper (accessibility round, 2026-10-17; was #6f726b at 4.3:1) */
  --on-dark: #f2f0e6;
  --on-dark-muted: #c9cec5;

  --pine: #253327;
  --copper: #ae7d5d;
  --copper-deep: #784f33;
  --copper-light: #b9906c;
  --sage: #838f7d;
  --sage-deep: #697a67;
  --moss: #3f5a3d;  /* deep green text and lines on paper (the G8 / G6 / 086b pages; 3rd review W-M8) */
  --moss-soft: #5c6c5a;
  --bark: #6f4a30;  /* warm brown text */
  --brick: #8a3b22;  /* the error / danger red-brown */
  --paper-soft: #f4f1e8;  /* a card on paper */
  --paper-faint: #fbf9f4;  /* the lightest sheet */
  --field-soft: #eeece2;
  --sage-mist: #c9cec5;  /* a soft sage line */
  --sage-text: #5a6a58;  /* sage as small text on paper: 5.1:1 (the fill stays --sage-deep) */
  --sage-light: #a9b3a3;
  --mist: #7d94a3;
  --neutral-bar: #c4c7ba;

  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --sidebar-w: 272px;
  --topbar-h: 70px;
  --gap: 15px;
  --radius-card: 12px;
  --radius-pill: 999px;
  --focus: 0 0 0 3px rgba(185, 144, 108, .55);

  /* Subtle paper grain, reused on light and dark surfaces. */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grain-light: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .035 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* What a person wrote can hold a word with no place to break (a pasted link, "Sooooo…", a 24-letter nickname). Wherever their words
   or names are shown, such a word breaks inside its box instead of pushing the page sideways (2026-10-25; fixed labels keep whole words). */
.f26-entry__t, .f26-noticed, .f26-sent p, .f26-mem__t, .g6m-faded span, .d26-mem__t, .d26-quote, .d26-prof__name, .d26-jc__q,
.p069-src-list li, .p069-answer__text, .f26-chap blockquote, .p001-journal__text, .page-title, .shift__label, .p005-sheet-note__quote,
.p063-note__q, .p063-words__text, .p103-quote, .p062-journey__insight, .p093-line__text, .p093-week td,
.helper-chat__q, .g7s-hint, .g7s-row__b, .g7n-row__h, .g7n-row__s, .g7n-tl__h, .g7n-tl__s, .sheet-head strong,
.p081-pc-open, .p081-pc-quote blockquote, .p081-ty-once, .p081-moment__who, .p081-moment__text, .p081-moment__reply, .p081-quote blockquote,
.p081-quote figcaption, .p081-mechip strong, .p081-facerow__n, .p081-metrow__n, .p081-togrows__n, .p081-care__h, .p081-week__idea,
.p081-recent span, .p081-person__n, .p081-person__note, .p081-cheers-in, .p081-hint, .p081-title, .p081-lobby__name,
.p081-dir__t, .p081-dir__s, .p081-msg, .p081-speaker__hint, .p081-speaker__name, .p081-order, .p081-queue, .p081-close__row span,
.p086-quote, .p086-review__text, .p089-review, .dialog h2, .toast span { overflow-wrap: anywhere; }
html, body { margin: 0; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: break-word;  /* a word too long for its box (a pasted link, "Sooooo…") breaks at the edge; other text unchanged (2026-10-25) */
  color: var(--ink);
  background: var(--grain), linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.linklike { display: inline; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }  /* a button that reads as a link — an action, never href="#" (3rd review W-L1) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus { outline: none; }
:focus-visible { box-shadow: var(--focus); border-radius: 8px; }
/* Elements focused by script (headings, error summaries) get no ring — they are announced, not operated. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { box-shadow: none; }

/* Keyboard focus on buttons (2026-10-16 review): a button's own box-shadow (copper, pine) hid the shared focus shadow — an outline
   can't be overridden that way. Dark on light surfaces, light on the dark cards and the player's stage. */
.btn:focus-visible, a.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.card--dark .btn:focus-visible, .p005-stage .btn:focus-visible, .p001-hero .btn:focus-visible { outline-color: #f4f1e8; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

.shell-sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: none;
  display: flex; flex-direction: column;
  background: var(--grain-light), linear-gradient(180deg, var(--forest-900-top) 0%, var(--forest-900) 45%, #112017 100%);
  color: var(--nav-text);
  padding: 20px 18px 0 24px;
}
.shell-logo { display: flex; align-items: center; gap: 10px; height: 56px; margin: 0 0 0 6px; text-decoration: none; color: #eee9df; }
.shell-logo img { width: 56px; height: 56px; border-radius: 50%; }
.shell-logo span { font-family: var(--font-serif); font-size: 44px; font-weight: 400; letter-spacing: -.01em; line-height: 1; transform: translateY(-3px); }

.shell-nav { margin-top: 33px; }
.shell-nav-label {
  display: block; margin: 0 0 6px 15px;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--nav-label);
}
.shell-nav-group + .shell-nav-group { margin-top: 30px; }
.shell-nav-group:first-child + .shell-nav-group { margin-top: 28px; }
.shell-nav-group:nth-child(4) { margin-top: 25px; }
.shell-nav ul { list-style: none; margin: 0; padding: 0; }
.shell-nav-item {
  display: flex; align-items: center; gap: 24px;
  height: 42px; padding: 0 16px 0 20px; margin-bottom: 1px;
  border-radius: 8px; text-decoration: none; font-size: 17.5px; color: var(--nav-text);
}
.shell-nav-item .icon { width: 25px; height: 25px; stroke-width: 1.4; }
.shell-nav-item:hover { background: rgba(255, 255, 255, .05); }
.shell-nav-item[aria-current="page"] {
  background: linear-gradient(180deg, #4a5a48 0%, #3f4f3e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  color: #fff;
}
.shell-nav-item[aria-current="page"] .icon { fill: currentColor; stroke-width: 1.2; }
.shell-nav-item[aria-current="page"] .icon--line { fill: none; stroke-width: 2.2; }  /* the globe keeps its lines (filled it was a blank disc) */
.shell-nav-group--gated .shell-nav-item { opacity: .92; }
.shell-nav-sep { height: 1px; margin: 12px 3px 10px 0; background: rgba(233, 236, 228, .18); }
.shell-nav-group--small .shell-nav-item { height: 37px; font-size: 16px; gap: 25px; }
.shell-nav-group--small .shell-nav-item .icon { width: 23px; height: 23px; }
.shell-sidebar-foot {
  margin-top: auto; padding: 0 0 26px 11px;
  display: flex; align-items: flex-start; gap: 22px;
  font-size: 10.5px; letter-spacing: .28em; line-height: 1.55; color: #c8cfc7; text-transform: uppercase;
}
.shell-sidebar-foot::before { content: ""; width: 31px; height: 1px; margin-top: 7px; background: rgba(233, 236, 228, .45); }

.shell-main { min-width: 0; display: flex; flex-direction: column; }
.shell-topbar {
  height: var(--topbar-h); flex: none;
  display: flex; align-items: center; gap: 0;
  padding: 0 32px 0 36px;
  border-bottom: 1px solid #d9d4c8;
  background: rgba(244, 240, 232, .55);
}
.shell-date { padding-top: 4px; font-family: var(--font-serif); font-size: 19.5px; color: var(--ink); letter-spacing: -.005em; }
.shell-search {
  width: clamp(180px, 24vw, 322px); height: 42px;
  display: flex; align-items: center; gap: 12px; padding: 0 18px 0 22px;
  background: var(--field); border: 1px solid #d6d1c6; border-radius: var(--radius-pill);
  color: #4b514b;
}
.shell-search .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.shell-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink);
}
.shell-search input::placeholder { color: #6d716a; }
.shell-search:focus-within { box-shadow: var(--focus); }
.shell-topbar-sep { width: 1px; height: 30px; margin: 0 26px; background: #cfc9bd; }
.shell-bell, .shell-msgs { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 50%; color: inherit; }  /* .shell-msgs: the Messages bubble (T round, 2026-10-28) */
.shell-bell .icon, .shell-msgs .icon { width: 26px; height: 26px; stroke-width: 1.5; }
.shell-bell[data-unread]::after, .shell-msgs[data-unread]::after {
  content: ""; position: absolute; top: 5px; right: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: #8a6a4b;
}
.shell-avatar-wrap { position: relative; margin-left: 42px; }
.shell-avatar {
  display: flex; align-items: center; gap: 18px; border: 0; background: transparent; padding: 0; border-radius: var(--radius-pill);
}
.shell-avatar-circle {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 35%, #8a9886 0%, #76846f 70%);
  color: #fff; font-family: var(--font-serif); font-size: 18px; letter-spacing: .02em;
}
.shell-avatar .icon { width: 18px; height: 18px; stroke-width: 1.8; }

.shell-content { flex: 1; padding: 0 28px 0 29px; }

/* ---------- Menu (dropdown) ---------- */
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; min-width: 210px;
  padding: 6px; background: #fbf9f4; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(30, 42, 34, .14);
}
.menu button, .menu a {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: transparent;
  border-radius: 6px; font-size: 15px; text-decoration: none; color: var(--ink);
}
.menu button:hover, .menu a:hover, .menu button:focus-visible { background: #efebe2; }

/* ---------- Cards ---------- */
.card {  /* G9 §3.2: one card surface — ivory, a hairline, a soft shadow (the old one was the paper's own colour and read as washed out) */
  position: relative; overflow: hidden;
  background: var(--grain), var(--hi);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--sh1);
}
#today .card { border-radius: var(--radius-card); }  /* the locked home keeps its corners — K-G9-02 lightens only the surface */
.card--dark {
  background: var(--grain-light), linear-gradient(160deg, #1b2d22 0%, var(--forest-800) 45%, var(--forest-800-deep) 100%);
  border-color: #0f1c14; color: var(--on-dark);
  box-shadow: 0 2px 6px rgba(20, 30, 20, .18);
}
.card-title { font-family: var(--font-serif); font-weight: 400; color: var(--ink); letter-spacing: -.01em; }
.card-error { display: grid; place-items: center; gap: 10px; text-align: center; padding: 24px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 50px; padding: 0 30px; border-radius: var(--radius-pill);
  font-size: 17.5px; font-weight: 400; text-decoration: none; border: 1px solid transparent; white-space: nowrap;
}
.btn .icon { width: 22px; height: 22px; }
.btn--copper {
  color: #fff8ef;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .08)), linear-gradient(100deg, #b98767 0%, #a4734f 45%, #8a5c3d 100%);
  border-color: #7a5236;
  box-shadow: inset 0 1px 0 rgba(255, 230, 205, .35), 0 3px 10px rgba(80, 45, 20, .25);
}
.btn--copper:hover { filter: brightness(1.06); }
.btn--copper .icon { fill: currentColor; stroke: none; width: 20px; height: 20px; }
.btn--ghost-light { color: var(--on-dark); border-color: rgba(242, 240, 230, .75); background: transparent; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .06); }
.btn--outline { color: var(--ink); border-color: #9fa396; background: transparent; }
.btn--outline:hover { background: rgba(30, 42, 34, .04); }
.btn--pine { color: #f4f1e8; background: linear-gradient(180deg, #2c3b2e, #1f2c22); border-color: #1b271e; }
.btn--pine:hover { filter: brightness(1.12); }
.btn--sm { height: 38px; padding: 0 22px; font-size: 15px; gap: 10px; }

.btn-round {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1.5px solid rgba(242, 240, 230, .85); background: transparent; color: var(--on-dark);
}
.btn-round .icon { width: 24px; height: 24px; stroke-width: 1.6; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: underline; text-underline-offset: 5px;
  text-decoration-thickness: 1px; font-size: 16px;
}
.link-arrow .icon { width: 18px; height: 18px; }

/* ---------- Small bits ---------- */
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.meta { display: flex; align-items: center; gap: 40px; font-size: 16.5px; }
.meta__item { display: inline-flex; align-items: center; gap: 12px; }
.meta__item .icon { width: 24px; height: 24px; }

/* ---------- Toast ---------- */
.toast-region { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; }
.toast {
  min-width: 320px; max-width: 520px; padding: 12px 18px; border-radius: 10px;
  background: #1f2c23; color: #f2f0e6; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  animation: toast-in .2s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Toast with an Undo action (soft delete, "Not really" on a noticed note) — 10 s, CLAUDE.md §3.5. */
.toast--undo { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.toast__undo { border: 0; background: transparent; color: #f3dcc6; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 2px 4px; white-space: nowrap; }
/* On a phone the toast sits at the top, full width: at the bottom it covered the row the person was about to tap
   (Why this now? · Change this step after a check-in — 2026-10-17 review, point 4). */
@media (max-width: 768px) {
  /* --toasts-top: while the kind window's quiet card sticks under the top bar, the stack starts just below it (kind-window.js measures the card) */
  .toast-region { top: var(--toasts-top, 12px); bottom: auto; left: 16px; right: 16px; transform: none; }
  .toast { min-width: 0; max-width: none; }
  @keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
}

/* ---------- Dialog ---------- */
.dialog {
  width: min(520px, calc(100vw - 32px)); padding: 30px 32px 26px; border: 1px solid var(--border); border-radius: 14px;
  background: #faf8f3; color: var(--ink); box-shadow: 0 24px 60px rgba(20, 30, 20, .25);
}
.dialog::backdrop { background: rgba(20, 30, 22, .45); }
.dialog h2 { font-family: var(--font-serif); font-weight: 400; font-size: 28px; margin-bottom: 12px; }
.dialog p { font-size: 16.5px; line-height: 1.5; color: var(--ink-soft); }
.dialog .dialog-gap { margin-top: 10px; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.dialog-foot { margin: 14px 0 0; font-size: 14px; color: var(--muted); text-align: right; }
.dialog-foot a { color: inherit; font-weight: 600; }
/* Phone rule (CLAUDE.md §3.5): a button group stacks at full width — long labels never push a button out of the dialog. */
@media (max-width: 560px) {
  .dialog-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .dialog-actions .btn { width: 100%; height: 44px; }
}

/* ---------- Tooltip ---------- */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; padding: 6px 10px; border-radius: 6px; background: #1f2c23; color: #f2f0e6; font-size: 13px; z-index: 20;
  pointer-events: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) *, html:not(.motion-on) *::before, html:not(.motion-on) *::after { animation: none !important; transition: none !important; }
}
/* Settings › Easier to use (NEO-SET-101): "Less motion" On / Off overrides the device; "Text size" zooms the content area
   (the design is set in px, so a root font-size would not reach it; the content's container queries re-flow at the zoomed width). */
html.less-motion *, html.less-motion *::before, html.less-motion *::after { animation: none !important; transition: none !important; }

/* ---------- The companion is alive, quietly (NEO-PAGE-001 §27, 2026-10-15) ----------
   A slow breath everywhere it appears, a blink in the open-eyed states, a flicker of the glow while resting.
   "Less motion" and the device's reduced-motion setting stop all of it (the global rules above). */
.companion { transform-origin: 50% 60%; animation: companion-breathe 5.2s ease-in-out infinite; }
.companion__eyes { transform-box: fill-box; transform-origin: 50% 50%; }
.companion--waiting .companion__eyes, .companion--listening .companion__eyes, .companion--wondering .companion__eyes { animation: companion-blink 6s linear infinite; }
.companion--resting .companion__glow { animation: companion-glow 4s ease-in-out infinite; }
@keyframes companion-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes companion-blink { 0%, 93%, 100% { transform: scaleY(1); } 95%, 97% { transform: scaleY(.08); } }
@keyframes companion-glow { 0%, 100% { opacity: .3; } 50% { opacity: .45; } }
html.text-large .shell-content { zoom: 1.125; }
html.text-larger .shell-content { zoom: 1.25; }
/* a <dialog> written into the page sits inside the zoomed content: its 100vw grows with it (Events' More filters: 488 px on a 390 px
   phone at Larger) — the width and height are given back in the zoom's own terms (tools/after_click_check.py, 2026-10-25) */
html.text-large .shell-content .dialog { max-width: calc((100vw - 32px) / 1.125); max-height: calc(88vh / 1.125); }
html.text-larger .shell-content .dialog { max-width: calc((100vw - 32px) / 1.25); max-height: calc(88vh / 1.25); }
@media (max-width: 640px) {
  html.text-large .shell-content .dialog { max-width: calc(100vw / 1.125); }
  html.text-larger .shell-content .dialog { max-width: calc(100vw / 1.25); }
}

.shell-menu-toggle {
  display: none; position: absolute; right: 16px; top: 18px; align-items: center; gap: 8px;
  border: 1px solid rgba(233, 236, 228, .4); background: transparent; color: var(--nav-text); border-radius: 8px; padding: 6px 12px;
}

/* ---------- Tablet / phone shell (K-006: "does not break", not a designed mobile UI) ----------
   ≤1024px: the sidebar becomes a top bar with a Menu button; ≤768px: tighter paddings, search on its own row. */
@media (max-width: 1024px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .shell-sidebar { position: relative; height: auto; overflow: visible; padding: 12px 24px; }
  .shell-nav, .shell-sidebar-foot { display: none; }
  .shell-sidebar.is-open .shell-nav { display: block; margin-top: 16px; }
  .shell-menu-toggle { display: inline-flex !important; top: 20px; right: 24px; }
  .shell-logo span { font-size: 34px; }
  .shell-logo img { width: 44px; height: 44px; }
  .shell-topbar { padding: 0 24px; }
  .shell-content { padding: 0 24px; }
}
@media (max-width: 768px) {
  .shell-sidebar { padding: 12px 16px; }
  .shell-nav, .shell-sidebar-foot { display: none; }
  .shell-sidebar.is-open .shell-nav { display: block; }
  .shell-menu-toggle { display: inline-flex !important; }
  .shell-logo span { font-size: 32px; }
  .shell-logo img { width: 42px; height: 42px; }
  .shell-topbar { height: auto; flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .tbp-wrap--search { order: 3; width: 100%; } .shell-search { width: 100%; }
  .shell-topbar-sep { display: none; }
  .shell-date { font-size: 16px; }
  .tbp-wrap--bell { margin-left: auto; }
  .shell-avatar-wrap { margin-left: 4px; }
  .shell-avatar { gap: 4px; }
  .shell-content { padding: 0 16px; }
}
.btn--copper .icon--stroke { fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Forms (shared by every form; first used on NEO-AUTH-001…003) ---------- */
.field { margin-top: 20px; }
.field__label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.field__control { position: relative; }
.field__input {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid #cfc9bd; border-radius: 10px;
  background: #fbf9f4; color: var(--ink); font: inherit; font-size: 16.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field__input::placeholder { color: #8b8e86; }
/* Native select dressed like the input (first used for the time zone on NEO-ONB-001). */
.field__select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a5f59' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px 20px;
}
.field__input:hover { border-color: #b7b1a4; }
.field__input:focus { outline: none; border-color: var(--sage-deep); box-shadow: 0 0 0 3px rgba(105, 122, 103, .2); }
.field--password .field__input { padding-right: 96px; }
.field__toggle {
  position: absolute; right: 6px; top: 6px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 8px; background: transparent; color: var(--sage-text); font-size: 14.5px; font-weight: 600;
}
.field__toggle:hover { background: rgba(105, 122, 103, .1); }
.field__toggle .icon { width: 19px; height: 19px; }
/* The server renders both eye icons; aria-pressed decides which one shows (static/js/auth.js toggles it). */
.field__toggle .icon--eye-off, .field__toggle[aria-pressed="true"] .icon--eye { display: none; }
.field__toggle[aria-pressed="true"] .icon--eye-off { display: block; }
.field__hint { margin-top: 8px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.field__hint .icon { width: 17px; height: 17px; }
.field__error { margin-top: 8px; display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; color: #7d4d2c; }
.field__error .icon { width: 18px; height: 18px; margin-top: 1px; color: #a4734f; stroke-width: 1.8; }
/* Invalid fields use copper, not red (Design Lock: no punishing colours; K-AUTH-02). */
.field.is-invalid .field__input { border-color: #a4734f; box-shadow: 0 0 0 3px rgba(174, 125, 93, .16); }

.check { display: inline-flex; align-items: center; gap: 10px; font-size: 15.5px; color: var(--ink-soft); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  width: 20px; height: 20px; flex: none; border-radius: 5px; border: 1.5px solid #a9a597; background: #fbf9f4;
  display: grid; place-items: center; color: #fff; transition: background .15s ease, border-color .15s ease;
}
.check__box .icon { width: 14px; height: 14px; stroke-width: 2.4; opacity: 0; }
.check input:checked + .check__box { background: var(--sage-deep); border-color: var(--sage-deep); }
.check input:checked + .check__box .icon { opacity: 1; }
.check input:focus-visible + .check__box { box-shadow: var(--focus); }

.notice {
  display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-radius: 10px; border: 1px solid;
  font-size: 15px; line-height: 1.45;
}
.notice .icon { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.notice--success { background: #e7ede1; border-color: #c8d4c1; color: #2f4430; }
.notice--info { background: #ece8de; border-color: #d8d2c4; color: #3d463f; }
.notice--error { background: #f4e7dc; border-color: #e0c4ab; color: #6c4127; }
.notice--error .icon { color: #a4734f; }
.form-errors ul { margin: 6px 0 0; padding-left: 18px; }
.form-errors a { color: inherit; }

.btn--block { width: 100%; height: 54px; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .92; }
.btn[aria-busy="true"]::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 248, 239, .45); border-top-color: #fff8ef;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Error / message page (403, 404, 500 inside the shell) ---------- */
.error-page { max-width: 640px; padding: 72px 0 48px; }
.error-page__code { color: var(--muted); }
.error-page__title { margin-top: 14px; font-family: var(--font-serif); font-weight: 400; font-size: 44px; line-height: 1.1; letter-spacing: -.01em; }
.error-page__text { margin-top: 16px; font-size: 18px; line-height: 1.5; color: var(--ink-soft); }
.error-page__actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.error-page__ref { margin-top: 28px; font-size: 14px; color: var(--muted); }
.error-page__ref code { font-size: 13.5px; }
@media (max-width: 768px) {
  .error-page { padding: 40px 0 32px; }
  .error-page__title { font-size: 34px; }
}

/* ---------- Choice controls (first used on NEO-PAGE-002; also 004, 006) ----------
   All are native inputs (radio / checkbox) styled as circles, tiles and pills, so they work with the keyboard and without JS. */
.choice-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }

/* Five-step scale: `--lens` sets the colour of the chosen step (Body = sage, Mind = mist, Soul = copper). */
.scale { --lens: #697867; }
.scale[data-lens="mind"] { --lens: #728795; }
.scale[data-lens="soul"] { --lens: #a9805f; }
.scale__options { position: relative; display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr)); align-items: center; }
.scale__options::before { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 1px; background: #cfccc2; }
.scale__option { position: relative; display: grid; place-items: center; min-height: 44px; cursor: pointer; }
.scale__dot {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #b9b7af; background: #f7f5ec;
  transition: width .15s ease, height .15s ease, background .15s ease;
}
.scale__option:hover .scale__dot { border-color: #8f8d85; }
.scale__option input:checked + .scale__dot {
  width: 27px; height: 27px; border-color: var(--lens); background: var(--grain), var(--lens);
  box-shadow: 0 0 0 2.5px #f4f1e9, 0 0 0 3.8px var(--lens);
}
.scale__option input:focus-visible + .scale__dot { box-shadow: var(--focus); }

/* Tile: the icon sits in its own rounded box, the label below it. Chosen: the box turns sage and an outer frame wraps both. */
.choice-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 89px; padding: 12px 8px 10px;
  border: 1px solid #d6d2c8; border-radius: 18px; background: #f5f2ea; box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset;
  font-size: 16px; line-height: 18px; color: var(--ink); cursor: pointer; text-align: center;
  transition: border-color .15s ease, background .15s ease;
}
/* The label sits inside the tile with the icon (mockup NEO-PAGE-002: the selected tile is one green card, label included — 2026-10-13). */
.choice-tile__icon { display: grid; place-items: center; height: 38px; }
.choice-tile__icon .icon { width: 36px; height: 36px; stroke-width: 1.3; }
.choice-tile:hover { border-color: #b8b3a6; }
.choice-tile:has(input:checked) { border-color: #4f5d4f; background: var(--grain), #a9b3a2; }
.choice-tile:has(input:focus-visible) { box-shadow: var(--focus); }

.choice-pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 43px; padding: 0 18px;
  border: 1px solid #d3cfc5; border-radius: var(--radius-pill); background: #f5f2ea; font-size: 17px; color: var(--ink); cursor: pointer;
}
.choice-pill .icon { width: 22px; height: 22px; stroke-width: 1.5; }
.choice-pill:hover { border-color: #b8b3a6; }
.choice-pill:has(input:checked) { background: var(--grain), linear-gradient(180deg, #728270, #677865); border-color: #5c6c5a; color: #fbf9f3; }
.choice-pill:has(input:focus-visible) { box-shadow: var(--focus); }

/* Compact step indicator: "1 / 4" + segments (the Spiral: State → Choice → Action → Feedback). */
.progress-steps { display: flex; align-items: center; gap: 15px; font-size: 18px; color: var(--ink); white-space: nowrap; }
.progress-steps__bar { display: grid; grid-template-columns: repeat(4, 45px); gap: 3px; }
.progress-steps__bar i { height: 9px; border-radius: 999px; background: #d5d3c9; }
.progress-steps__bar i.is-done { background: #667865; }

/* Note field: pencil icon, auto-growing textarea, optional microphone button. */
.field--note {
  display: flex; align-items: center; gap: 14px; min-height: 61px; padding: 8px 8px 8px 20px;
  border: 1px solid #d3d0c6; border-radius: 10px; background: #f7f4ec;
}
.field--note:focus-within { border-color: var(--sage-deep); box-shadow: 0 0 0 3px rgba(105, 122, 103, .2); }
.field--note__icon .icon { width: 25px; height: 25px; stroke-width: 1.4; color: #3b423c; }
.field--note textarea {
  flex: 1; min-width: 0; resize: none; border: 0; background: transparent; padding: 10px 0; font: inherit; font-size: 16px;
  line-height: 22px; color: var(--ink); max-height: 110px; outline: none;
}
.field--note textarea::placeholder { color: #707269; }
.field--note textarea:focus-visible { box-shadow: none; }  /* the frame shows the focus (:focus-within) — no box inside the box (the owner, 2026-11-03) */
.field--note__sep { width: 1px; align-self: stretch; margin: 2px 0; background: #d9d5cb; }
.field--note__mic { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #d9d8cf; color: #2e3530; }
.field--note__mic .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.field--note__mic:hover { background: #cfcec4; }

/* ---------- Breadcrumb (first used on NEO-PAGE-003) ---------- */
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--muted); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumbs [aria-current="page"] { color: var(--ink-soft); }
/* the way back, clear on a desktop too (2026-10-22, the owner): a small arrow before the first link, as on a phone (‹ Today) */
.crumbs > a:first-child { color: var(--ink); font-weight: 600; }
.crumbs > a:first-child::before { content: "‹"; margin-right: 6px; font-size: 1.15em; line-height: 1; }

/* ---------- Full Spiral step indicator: State → Choice → Action → Feedback ---------- */
.progress-steps--full { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 112px); }
.progress-steps__node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 15px; color: var(--muted); }
.progress-steps__node + .progress-steps__node::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 1px; background: #b9b6ac; }
.progress-steps__circle {
  position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid #b9b6ac; background: #f6f3ed; color: #fff;
}
.progress-steps__circle .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.progress-steps__node.is-done .progress-steps__circle { background: #929a8f; border-color: #929a8f; }
.progress-steps__node.is-active { color: var(--ink); font-weight: 600; }
.progress-steps__node.is-active .progress-steps__circle {
  width: 34px; height: 34px; margin: -2px 0; background: #4d614e; border-color: #4d614e; box-shadow: 0 0 0 3px #f2efe6, 0 0 0 4px #b9c2b6;
}
.progress-steps__node a { display: flex; flex-direction: column; align-items: center; gap: inherit; color: inherit; text-decoration: none; }
.progress-steps__node a:hover .progress-steps__circle { filter: brightness(1.08); }

/* ---------- Icon circle (tinted) ---------- */
.icon-circle { display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--grain), var(--tint, #e8e4d9); color: #26332a; }
.icon-circle--sm { width: 44px; height: 44px; }
.icon-circle--md { width: 60px; height: 60px; }
.icon-circle--lg { width: 68px; height: 68px; }
.icon-circle--sm .icon { width: 22px; height: 22px; }
.icon-circle--md .icon { width: 28px; height: 28px; stroke-width: 1.4; }
.icon-circle--lg .icon { width: 30px; height: 30px; stroke-width: 1.4; }
.icon-circle--dark { color: #eeece2; }
/* Tint classes for icon circles (the app's CSP allows no inline styles). */
.tint-mist { --tint: #c8d4dd; } .tint-mist-soft { --tint: #d0d7d4; } .tint-sage { --tint: #c5cbbd; }
.tint-copper { --tint: #decebb; } .tint-copper-soft { --tint: #ddcdbb; } .tint-shield { --tint: #c8cfc0; }
.tint-paper { --tint: #f5f2ea; } .tint-dark { --tint: #19201c; }


/* ---------- Reason row (Why this now?) ---------- */
.reason { display: grid; grid-template-columns: 68px minmax(0, 1fr); column-gap: 19px; align-items: start; }
.reason__title { margin-top: 8px; font-family: var(--font-serif); font-weight: 400; font-size: 19px; line-height: 24px; color: var(--ink); }
.reason__text { margin-top: 5px; font-size: 15px; line-height: 22px; color: #3f463f; }

/* ---------- Steps row (How it will go) ---------- */
.steps-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-row__item { position: relative; text-align: center; padding: 0 8px; }
.steps-row__head { position: relative; display: flex; justify-content: center; }
.steps-row__number {
  position: absolute; left: calc(50% - 82px); top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: #d2d1c7; font-size: 15px; color: var(--ink);
}
.steps-row__item:not(:last-child) .steps-row__head::after { content: ""; position: absolute; top: 50%; left: calc(50% + 42px); right: -2px; height: 1px; background: #cfccc2; }
.steps-row__title { margin-top: 11px; font-family: var(--font-serif); font-size: 20px; line-height: 24px; color: var(--ink); }
.steps-row__text { margin: 6px auto 0; max-width: 175px; font-size: 14.5px; line-height: 19px; color: #5a5f59; }

/* ---------- Alternative tile ---------- */
.alt-tile {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; align-items: center; column-gap: 12px; min-height: 87px;
  padding: 0 10px 0 13px; border: 1px solid #d8d4ca; border-radius: 12px; background: #f8f4ed; text-align: left; color: var(--ink);
}
.alt-tile:hover { border-color: #b8b3a6; }
.alt-tile__title { font-family: var(--font-serif); font-size: 16px; line-height: 21px; }
.alt-tile__text { margin-top: 2px; font-size: 14px; line-height: 19px; color: #5a5f59; }
.alt-tile > .icon { width: 18px; height: 18px; stroke-width: 1.8; }

/* ---------- Picker dialog (reminder time) ---------- */
.dialog-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dialog-quick button { height: 36px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid #a9a597; background: transparent; font-size: 14.5px; color: var(--ink); }
.dialog-quick button:hover, .dialog-quick button[aria-pressed="true"] { background: #e7e3d8; }
.dialog .field { margin-top: 18px; }
.dialog .field__input { height: 46px; }

/* ---------- Vertical steps list (first used on NEO-PAGE-005) ---------- */
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; }
.steps-list__item { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 10px; align-items: start; padding-bottom: 34px; text-align: left; }
.steps-list__item:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 50px; bottom: 0; width: 1px; background: #cfccc2; }
.steps-list__circle {
  width: 44px; height: 44px; margin: 0 6px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: var(--ink);
  background: #e3e0d6; transition: background .2s ease;
}
.steps-list__circle .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.steps-list__item--done .steps-list__circle { background: #97a08f; color: #fff; }
.steps-list__item--current .steps-list__circle { width: 56px; height: 56px; margin: -6px 0; background: #c5cbbd; box-shadow: 0 0 0 3px #f4f1e9, 0 0 0 4.5px #7a8676; font-weight: 600; }
.steps-list__item--current::before { top: 56px; }
.steps-list__title { margin-top: 8px; font-family: var(--font-serif); font-size: 20px; line-height: 24px; color: var(--ink); }
.steps-list__text { margin-top: 4px; font-size: 15px; line-height: 21px; color: #4f554f; }
.steps-list button { display: contents; text-align: left; }
.steps-list__item--upcoming .steps-list__title, .steps-list__item--upcoming .steps-list__text { color: #6f726b; }

/* ---------- Range slider (native input, custom look) ---------- */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; --fill: 0%; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #7a8676 var(--fill), #d6d3c8 var(--fill)); }
.range::-moz-range-track { height: 6px; border-radius: 999px; background: #d6d3c8; }
.range::-moz-range-progress { height: 6px; border-radius: 999px; background: #7a8676; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 1px solid #c9c5b9; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid #c9c5b9; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.range:focus-visible { box-shadow: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus); }
.range:focus-visible::-moz-range-thumb { box-shadow: var(--focus); }
.range--light::-webkit-slider-runnable-track { background: linear-gradient(90deg, #a9b3a3 var(--fill), rgba(233, 236, 228, .25) var(--fill)); }
.range--light::-moz-range-track { background: rgba(233, 236, 228, .25); }
.range--light::-moz-range-progress { background: #a9b3a3; }
.timeline__range { height: 26px; }
.timeline__range::-webkit-slider-runnable-track { height: 8px; background: linear-gradient(90deg, #a9b3a3 var(--fill), rgba(233, 236, 228, .22) var(--fill)); }
.timeline__range::-moz-range-track { height: 8px; background: rgba(233, 236, 228, .22); }
.timeline__range::-moz-range-progress { height: 8px; background: #a9b3a3; }
.timeline__range::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -5px; }
.timeline__range::-moz-range-thumb { width: 18px; height: 18px; }

/* ---------- Switch (native checkbox, role=switch) ---------- */
.switch { position: relative; display: inline-block; width: 56px; height: 32px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: absolute; inset: 0; border-radius: 999px; background: #cfcabe; transition: background .15s ease; }
.switch__track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s ease; }
.switch input:checked + .switch__track { background: var(--sage-deep); }
.switch input:checked + .switch__track::after { transform: translateX(24px); }
.switch input:focus-visible + .switch__track { box-shadow: var(--focus); }

/* ---------- Round icon buttons (player) ---------- */
.btn-circle {
  position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none;
  padding: 0; border: 0; background: transparent; color: #f2f0e6;
}
/* The ±15 buttons are a single arc with a solid arrowhead, as in the mockup: no outer ring. */
.btn-circle .icon { width: 52px; height: 52px; stroke-width: 1; }
.btn-circle__num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 600; line-height: 1; padding-top: 1px; }
.btn-circle:hover { background: rgba(255, 255, 255, .08); }
.btn-circle--lg {
  width: 84px; height: 84px; border: 0; color: #fff8ef;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .1)), radial-gradient(circle at 35% 30%, #c69a80 0%, #a4734f 55%, #7f5335 100%);
  box-shadow: inset 0 1px 0 rgba(255, 230, 205, .35), 0 6px 18px rgba(80, 45, 20, .35);
}
.btn-circle--lg .icon { width: 34px; height: 34px; stroke-width: 2.2; }
.btn-circle--lg .icon--fill { fill: currentColor; stroke: none; }
.btn-circle--lg:hover { filter: brightness(1.06); }

/* ---------- Radio tile with an explanation (first used on NEO-PAGE-006) ---------- */
.choice-tile--radio { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 14px; align-items: start; cursor: pointer; }
.choice-tile--radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-tile--radio__dot { position: relative; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; border: 1.5px solid #8a8f85; background: #fbf9f3; transition: border-color .15s ease, background .15s ease; }
.choice-tile--radio__dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fbf9f3; opacity: 0; transition: opacity .15s ease; }
.choice-tile--radio input:checked + .choice-tile--radio__dot { background: var(--sage-deep); border-color: var(--sage-deep); }
.choice-tile--radio input:checked + .choice-tile--radio__dot::after { opacity: 1; }
.choice-tile--radio input:focus-visible + .choice-tile--radio__dot { box-shadow: var(--focus); }
.choice-tile--radio__title { display: block; font-family: var(--font-serif); font-size: 18px; line-height: 24px; color: var(--ink); }
.choice-tile--radio__text { display: block; margin-top: 3px; font-size: 14.5px; line-height: 19px; color: #5a5f59; }

/* ---------- Dark band at the top of a light card (first used on NEO-PAGE-006) ---------- */
.card__band { position: relative; overflow: hidden; color: var(--on-dark); background: var(--grain-light), linear-gradient(175deg, #1a2e20 0%, #172a1e 45%, #10221a 100%); }
.card__band > :not(.card__band-photo) { position: relative; z-index: 1; }
.card__band-photo { position: absolute; right: 0; top: 0; height: 100%; width: 42%; max-width: 360px; object-fit: cover; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }

/* ---------- Page header and section heads on the phone (rule 2026-09-29, first tested on NEO-PAGE-062) ----------
   Desktop keeps the editorial header (breadcrumb, 58px title, long subtitle, meta with icons). At ≤ 640px content width
   the page shows a back link instead of the breadcrumb, a 34px title, one short subtitle line and the meta as a
   small-caps chip line; card headings get a tinted icon circle and a hairline underneath. Markup: .page-back,
   .page-title, .page-sub > .page-sub__long / .page-sub__short, .page-meta, .page-chip; .sec-h2 > .sec-h2__icon. */
.page-back, .page-sub__short, .page-chip, .sec-h2__icon { display: none; }
.sec-h2 { display: flex; align-items: center; gap: 12px; }
@container content (max-width: 640px) {
  .shell-content .crumbs, .shell-content .page-sub__long, .shell-content .page-meta { display: none; }
  .shell-content .page-back { display: inline-block; margin-top: 14px; font-size: 15px; color: var(--muted); text-decoration: none; }
  .shell-content .page-back:hover { color: var(--ink); }
  .shell-content .card--dark .page-back { color: #c9cec5; margin-top: 0; }
  .shell-content .page-title { font-size: 34px; line-height: 1.08; letter-spacing: -.02em; }
  .shell-content .page-sub { margin-top: 8px; font-size: 16px; line-height: 22px; color: #4f554f; max-width: none; }
  .shell-content .page-sub__short { display: inline; }
  .shell-content .page-chip { display: block; margin-top: 10px; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
  .shell-content .card--dark .page-chip { color: #c9cec5; }
  .shell-content .sec-h2 { font-size: 24px; padding-bottom: 14px; border-bottom: 1px solid #e2ded3; }
  .shell-content .card--dark .sec-h2 { border-bottom-color: rgba(233, 236, 228, .18); }
  .shell-content .sec-h2__icon { display: grid; width: 40px; height: 40px; }
  .shell-content .sec-h2__icon .icon { width: 20px; height: 20px; }
  .tint-dark.icon-circle--dark { background: rgba(233, 236, 228, .14); }
}

/* ---------- Arrival highlight: a card the person was sent to (e.g. "Why this now?" → /today/card#why) glows for a moment ---------- */
.card.is-arrived { box-shadow: 0 0 0 3px rgba(105, 122, 103, .45), 0 1px 2px rgba(60, 50, 30, .04); transition: box-shadow .6s ease; }
.card--dark.is-arrived { box-shadow: 0 0 0 3px rgba(169, 179, 163, .6); }

/* "Why this now?" in place (K-23-01 / §22.1c): the Today Card's reasons, in a dialog; on the phone the dialog is a sheet */
button.link-arrow { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.dialog .why-list { display: grid; gap: 18px; }
.dialog .why-list .reason { grid-template-columns: 60px minmax(0, 1fr); column-gap: 16px; }
.dialog .why-list .reason__title { margin-top: 4px; font-size: 18px; line-height: 23px; }
.dialog .why-list .reason + .reason { padding-top: 18px; border-top: 1px solid var(--divider); }
@media (max-width: 640px) {
  .dialog { width: 100vw; max-width: none; margin: auto 0 0; border-radius: 18px 18px 0 0; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 88vh; overflow: auto; }
  .dialog h2 { font-size: 25px; }
}

/* On a dark card (the player): the same strip, lighter ink */
.progress-steps--dark .progress-steps__node { color: #b7bdb3; font-size: 14px; }
.progress-steps--dark .progress-steps__node + .progress-steps__node::before { background: rgba(233, 236, 228, .3); }
.progress-steps--dark .progress-steps__circle { background: transparent; border-color: rgba(233, 236, 228, .45); }
.progress-steps--dark .progress-steps__node.is-done .progress-steps__circle { background: #929a8f; border-color: #929a8f; }
.progress-steps--dark .progress-steps__node.is-active { color: #f4f1ea; }
.progress-steps--dark .progress-steps__node.is-active .progress-steps__circle { background: #a9b3a3; border-color: #a9b3a3; color: #17281d; box-shadow: 0 0 0 3px #1b2c21, 0 0 0 4px rgba(169, 179, 163, .6); }

/* The companion's helper (Today): quick ways through the day */
.helper-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.helper-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; align-items: center; column-gap: 12px; padding: 8px 10px 8px 6px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 16px; }
.helper-item:hover { background: #f3efe6; }
.helper-item > .icon { width: 18px; height: 18px; color: var(--muted); }
.helper-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.helper-chat { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--divider); }
.helper-chat__log { display: grid; gap: 8px; max-height: 180px; overflow: auto; }
.helper-chat__log:not(:empty) { margin-bottom: 10px; }
.helper-chat__q { margin: 0; justify-self: end; max-width: 85%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: #e9e5da; font-size: 15px; }
.helper-chat__a { margin: 0; display: flex; align-items: flex-start; gap: 8px; max-width: 92%; font-size: 15px; line-height: 21px; }
.helper-chat__a .companion { flex: none; margin-top: -2px; }
.helper-chat__a a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.helper-open { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.companion-btn { display: inline-flex; border: 0; padding: 0; margin: 0; background: transparent; border-radius: 50%; cursor: pointer; line-height: 0; }
.companion-btn:hover { transform: translateY(-1px); }
.companion-btn:focus-visible { box-shadow: var(--focus); }
/* The companion's thinking dots (Ask Neome, NEO-PAGE-007) — in the window and on the page */
.p007-typing { display: inline-flex; gap: 5px; align-items: center; height: 24px; }
.p007-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa596; animation: p007-dot 1.2s ease-in-out infinite; }
.p007-typing i:nth-child(2) { animation-delay: .2s; } .p007-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes p007-dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.is-reduced-motion .p007-typing i { animation: none; opacity: .7; }
.helper-chat__form { display: flex; gap: 8px; }
.helper-chat__input { flex: 1 1 auto; min-width: 0; height: 40px; }
.helper-chat__form .btn { height: 40px; }
.helper-line { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: #f3efe6; font-size: 15px; line-height: 21px; }
.helper-line .companion { flex: none; }

/* Signed out on an error page: one quiet way in instead of search, bell and avatar */
.shell-signin { margin-left: auto; font-size: 15px; font-weight: 600; color: var(--sage-deep); text-underline-offset: 4px; }

/* NEO-SET-111 — the iPhone guide's steps (components/push.html) */
.push-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.push-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 23px; }
.push-steps__n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e6e9df; color: var(--sage-deep); font-weight: 700; font-size: 14px; }

/* NEO-PAGE-001 §29 — the companion everywhere: a face in the top bar (before the bell) and one line on the narrative pages */
.shell-companion { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: 4px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.shell-companion:hover { background: rgba(169, 179, 163, .18); }
.shell-companion:focus-visible { outline: 2px solid var(--pine, #253327); outline-offset: 2px; }
.shell-companion .companion { display: block; }
.chr-line { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; max-width: 680px; font-size: 16px; line-height: 23px; color: var(--ink-soft, #4b5249); }
.chr-line .companion { flex: none; }
.chr-line a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 768px) {
  .shell-companion { width: 40px; height: 40px; margin: 0 -10px 0 auto; }
  .shell-companion .companion { width: 34px; height: 34px; }
  .shell-companion + .tbp-wrap--bell { margin-left: 0; }
}

/* the face fits the phone's top row: the avatar's chevron rests (the circle still opens the menu), a little less room between */
@media (max-width: 420px) {
  .shell-topbar { column-gap: 8px; }
  .shell-avatar > .icon { display: none; }
}

/* Why write a line (2026-10-22): the turning reason under a note field that asks its own question (check-in, check-out) */
.note-why { margin: 4px 0 10px; font-size: 15px; line-height: 21px; color: var(--muted); }

/* every multi-line field speaks the page's type — a bare <textarea> fell back to monospace (2026-10-22) */
textarea { font: inherit; }

/* ---------- Look 2026 (G1, from the prototype's css/app.css — the same class names; design unlock 2026-10-23) ----------
   A calm Help in the top bar replaces the "Something urgent?" line on every page (Ö-008); on a phone one thin bar on top and a tab
   bar at the bottom (Today · Explore · Connect · Journal · Me — design unlock 2026-10-23); body text a step larger, fewer greys. */
.shell-tabbar { display: none; }
.v26 .shell-help--safe { border-color: #c08a63; background: #fbf3ec; color: #6f3d21; }
.onb-face { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 10px 14px; border-radius: 16px; background: #f3efe6; font-size: 15px; }
.onb-face__img { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #e6e9df; }
.onb-face a { font-weight: 700; color: var(--ink); }
.onb-face__later { display: block; font-size: 13.5px; color: var(--muted); }
.p101-face { display: inline-flex; align-items: center; gap: 10px; }
.p101-face svg { border-radius: 50%; background: #e6e9df; }
.menu .menu-help { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--divider, #e9e5da); color: #6f3d21; font-weight: 600; }
.menu .menu-help .icon { width: 17px; height: 17px; }
.v26 .page-sub { font-size: 19px; }
.v26 .chr-line { font-size: 15.5px; }
@media (max-width: 768px) {
  .v26 .chr-line { font-size: 14.5px; }
  .v26 .chr-line .companion { width: 28px; height: 28px; }
  .v26 .shell-sidebar { position: sticky; top: 0; z-index: 40; padding: 10px 16px; }
  .v26 .shell-logo img { width: 34px; height: 34px; }
  .v26 .shell-logo span { font-size: 26px; }
  .v26 .shell-menu-toggle { top: 12px !important; right: 12px !important; width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .v26 .shell-menu-toggle .icon { width: 22px; height: 22px; }
  .v26 .shell-topbar { position: fixed; top: 0; right: 58px; z-index: 41; height: 58px; padding: 0 4px 0 0; gap: 6px; flex-wrap: nowrap; border: 0; background: transparent; }
  .v26 .shell-date, .v26 .shell-search, .v26 .shell-topbar-sep, .v26 .shell-companion, .v26 .shell-avatar .icon { display: none !important; }
  .v26 .shell-bell, .v26 .shell-msgs { color: #e8ece4; }
  .v26 .shell-avatar-circle { width: 34px; height: 34px; font-size: 14px; }
  .v26 .shell-content { padding-bottom: 92px; }
  .v26 .shell-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); background: rgba(251, 249, 244, .96); border-top: 1px solid #e2ddd2; box-shadow: 0 -10px 24px -18px rgba(30, 42, 34, .5); backdrop-filter: blur(10px); }
  .v26 .shell-tab { display: grid; justify-items: center; gap: 3px; padding: 6px 0 4px; border-radius: 12px; color: #65685f; font-size: 11.5px; font-weight: 600; text-decoration: none; }
  .v26 .shell-tab .icon { width: 22px; height: 22px; }
  .v26 .shell-tab[aria-current="page"] { color: #1e2a22; }
  .v26 .shell-tab[aria-current="page"] .icon { color: #253327; stroke-width: 2.2; }
  .v26 .shell-tab[aria-current="page"]::before { content: ""; width: 22px; height: 3px; margin-bottom: 1px; border-radius: 3px; background: #ae7d5d; }
}
/* Look 2026 — a calmer top bar (?v26&top=a|b): the avatar opens one sheet with everything else; top=a: only logo + avatar (bell and
   Help in the sheet), top=b: logo + a small help icon + bell + avatar. The ☰ goes. */
.shell-sheet[hidden] { display: none; }
@media (max-width: 768px) {
  .v26top-a .shell-menu-toggle, .v26top-b .shell-menu-toggle, .v26top-c .shell-menu-toggle { display: none !important; }
  .v26top-a .shell-topbar, .v26top-b .shell-topbar, .v26top-c .shell-topbar { right: 10px; }
  .v26top-a .tbp-wrap--bell, .v26top-a .tbp-wrap--msgs { display: none; }
  .v26top-a .shell-avatar { position: relative; }
  .v26top-a .shell-avatar::after { content: ""; position: absolute; right: 0; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #c9a07e; box-shadow: 0 0 0 2px #17281d; }
  .v26 .shell-help--icon { width: 38px; height: 38px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
  .v26 .shell-help--icon .icon { width: 22px; height: 22px; color: #e8ece4; }
  .shell-sheet { position: fixed; inset: 0; z-index: 60; display: block; }
  .sheet-backdrop { position: absolute; inset: 0; background: rgba(14, 24, 18, .45); }
  .sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #f4f0e8; box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, .4); }
  .sheet-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #e2ddd2; }
  .sheet-head .shell-avatar-circle { width: 44px; height: 44px; font-size: 17px; }
  .sheet-head span { display: grid; gap: 2px; font-size: 17px; }
  .sheet-head a { font-size: 14px; color: #3d463f; }
  .sheet-x { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #e8e4da; display: grid; place-items: center; }
  .sheet-x .icon { width: 18px; height: 18px; }
  .sheet-h { margin: 18px 2px 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #65685f; }
  .sheet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .sheet-tile { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: #fbf9f4; border: 1px solid #e2ddd2; color: #1e2a22; font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; }
  .sheet-rows { display: grid; gap: 6px; margin-top: 16px; }
  .sheet-row, .sheet-help { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fbf9f4; border: 1px solid #e2ddd2; color: #1e2a22; text-decoration: none; }
  .shell-sheet .sheet-row:first-of-type { margin-top: 14px; }
  .sheet-row > .icon, .sheet-help > .icon { width: 20px; height: 20px; color: #697a67; }
  .sheet-row span, .sheet-help span { display: grid; gap: 1px; font-size: 15.5px; }
  .sheet-row span span, .sheet-help span span { font-size: 13.5px; color: #65685f; }
  .sheet-help { margin-top: 10px; background: #eef2ea; border-color: #d6dfd0; }
  .sheet-signout { display: block; width: 100%; margin-top: 12px; padding: 12px; border: 0; background: transparent; color: #65685f; font: inherit; font-size: 15px; text-decoration: underline; }
}
/* G1: the avatar as the person's drawn face (or sign) */
.shell-avatar-circle--face { padding: 0; overflow: hidden; background: #e6e9df; }
.shell-avatar-circle--face svg { display: block; width: 100%; height: 100%; }
/* G1: the face maker (/me/face) — the rest in face.css */
.face-crumbs { margin-top: 4px; }
.sheet-open body { overflow: hidden; }
/* G7 (K-G7-06, 2026-10-24): the phone's search — a magnifier before the bell in the top bar; the desktop keeps the field */
.shell-search-btn { display: none; }
@media (max-width: 768px) {
  .v26 .shell-search-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #e8ece4; }
  .v26 .shell-search-btn .icon { width: 22px; height: 22px; }
  .v26 .shell-search-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(226, 184, 150, .75); }
  .v26 .shell-search-btn + .tbp-wrap, .v26 .tbp-wrap + .tbp-wrap { margin-left: 0; }
}


/* ---------- G7: the companion's window in the Ask page's language (tervek/G7-ASK-NOTIFICATIONS-SEARCH-SETTINGS.md §3) ----------
   The companion and its line, three quick ways, the conversation, a pill field with the round Send, the AI label in one line.
   Prefix askw- (the same as the prototype: prototipus/css/app.css). The Today window keeps its helper-* look. */
@media (min-width: 641px) { .dialog--askw { width: min(560px, calc(100vw - 32px)); } }  /* on a phone it stays the sheet from the bottom */
.dialog--askw .askw-say { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 16px; line-height: 22px; color: #3d463f; }
.dialog--askw .askw-say .companion { flex: none; }
.askw-ways { list-style: none; margin: 0; padding: 0; border-radius: 16px; background: #fbf9f4; border: 1px solid #e2ddd2; overflow: hidden; }
.askw-ways li + li { border-top: 1px solid #e2ddd2; }
.askw-way { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; padding: 6px 14px 6px 10px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600; }
.askw-way:hover { background: #f4f0e7; }
.askw-way > .icon { width: 16px; height: 16px; color: var(--muted); }
.askw-dot { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e1e9dc; color: #4f6a4c; }
.askw-dot .icon { width: 18px; height: 18px; }
.askw-dot--mist { background: #dde6ec; color: #4d6170; } .askw-dot--copper { background: #f1e5d8; color: #8a4b2a; }
.askw-log { display: grid; gap: 8px; max-height: 220px; overflow: auto; margin-top: 14px; }
.askw-log:empty { display: none; }
.dialog--askw .askw-q { margin: 0; justify-self: end; max-width: 85%; padding: 8px 14px; border-radius: 16px 16px 4px 16px; background: #253327; color: #f3f1e8; font-size: 15px; line-height: 21px; overflow-wrap: anywhere; }
.dialog--askw .askw-a { margin: 0; display: flex; align-items: flex-start; gap: 8px; max-width: 94%; font-size: 15px; line-height: 21px; color: var(--ink); }
.askw-a .companion { flex: none; margin-top: 2px; }
.askw-a > span { padding: 8px 12px; border-radius: 4px 16px 16px 16px; background: #fbf9f4; border: 1px solid #e2ddd2; overflow-wrap: anywhere; }
.askw-a > span.p007-typing { padding: 0 12px; height: 36px; }
.askw-a a { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.askw-input { display: flex; align-items: center; gap: 8px; min-height: 54px; margin-top: 14px; padding: 5px 5px 5px 18px; border-radius: 27px; background: #fbf9f4; border: 1px solid #e2ddd2; box-shadow: 0 2px 4px rgba(30, 42, 34, .07), 0 12px 28px -18px rgba(30, 42, 34, .3); }
.askw-input:focus-within { box-shadow: var(--focus); }
.askw-input input { flex: 1; min-width: 0; height: 42px; padding: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.askw-input input:focus, .askw-input input:focus-visible { outline: none; box-shadow: none; }
.askw-send { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(180deg, #ae7d5d, #784f33); color: #fbf9f3; cursor: pointer; }
.askw-send .icon { width: 19px; height: 19px; stroke-width: 2.2; }
.askw-send:focus-visible { border-radius: 50%; }
.askw-send:disabled { opacity: .6; cursor: default; }
.dialog--askw .askw-err { margin: 8px 6px 0; font-size: 14.5px; line-height: 20px; color: #8a3b22; }
.dialog--askw .askw-note { margin: 12px 2px 0; font-size: 15px; line-height: 21px; color: #3d463f; }
.askw-note a { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.dialog--askw .askw-ai { display: flex; align-items: center; gap: 6px; margin: 6px 2px 0; font-size: 13.5px; line-height: 19px; color: var(--muted); }
.askw-ai .icon { flex: none; width: 15px; height: 15px; }
.helper-chat__a[data-error] > span { color: #8a3b22; }  /* the Today window: the answer could not come (G7 §6/7) — the question stays in the field */

/* ---------- T round (2026-10-28): the phone hub — fold · rows (no sideways shelf: the owner's call, 2026-10-28 — nothing sticks out of the screen) (tervek/TELEFONOS-KOZPONT.md §3, the research §3) ----------
   Desktop never changes: every rule lives under the ≤ 640 px content query, the fold head is hidden above it and the page's own
   section head (.hub-fold__orig) shows. On the phone the fold head stands in for the section head: icon-circle · title · one honest
   count line · chevron; the Include switch / a See all link sit beside the button (never inside it). JS (NEOME.fold) only toggles
   is-folded / is-open + aria-expanded — without JS nothing is folded, so the long-but-complete page remains. Opening never moves the
   page; an open head sticks under the top bar so a long section can be closed from anywhere (NN/g). */
.hub-fold__head { display: none; }
@container content (max-width: 640px) {
  .shell-content .hub-fold__orig { display: none; }
  .shell-content .hub-fold__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; margin: 0; }
  .shell-content .hub-fold__h { margin: 0; padding: 0; border: 0; min-width: 0; font: inherit; }
  .shell-content .hub-fold__btn { display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; align-items: center; column-gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 6px 0;
    background: none; border: 0; border-radius: 10px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
  .shell-content .hub-fold__btn:focus-visible { box-shadow: var(--focus); outline: 0; }
  .shell-content .hub-fold__btn .icon-circle { width: 40px; height: 40px; }
  .shell-content .hub-fold__btn .icon-circle .icon { width: 20px; height: 20px; }
  .shell-content .hub-fold__t { display: grid; gap: 1px; min-width: 0; }
  .shell-content .hub-fold__title { font-family: var(--font-serif); font-weight: 400; font-size: 21px; line-height: 1.15; color: var(--ink); }
  .shell-content .hub-fold__line { font-size: 13.5px; line-height: 18px; color: #4f554f; overflow-wrap: anywhere; }
  .shell-content .hub-fold__chev { display: grid; place-items: center; width: 24px; height: 24px; color: var(--muted); transition: transform .2s ease; }
  .shell-content .hub-fold__chev .icon { width: 18px; height: 18px; }
  .shell-content .hub-fold__btn[aria-expanded="true"] .hub-fold__chev { transform: rotate(180deg); }
  .shell-content .hub-fold__aside { display: flex; align-items: center; gap: 8px; flex: none; }
  .shell-content .hub-fold.is-folded { padding-bottom: 0; }
  .shell-content .hub-fold.is-folded > .hub-fold__body { display: none; }
  .shell-content .hub-fold.is-open > .hub-fold__head { position: sticky; top: var(--hub-sticky-top, 76px); z-index: 3; background: var(--paper); box-shadow: 0 1px 0 #e2ded3; }  /* 76 px: the phone shell's dark band */
  .shell-content .card.hub-fold.is-open { overflow: visible; }  /* a card clips (overflow: hidden) — the stuck head must reach the screen's top */
  .shell-content .card.hub-fold.is-open > .hub-fold__head { background: var(--surface, #f4f0e7); margin: 0 -16px; padding: 0 16px; }
  .shell-content .hub-fold__body { padding-top: 12px; }
  .shell-content .hub-fold { scroll-margin-top: var(--hub-sticky-top, 76px); }  /* a #anchor / ?lens= arrival lands under the fixed bar, not behind it */
  /* "N shown + See all": the rest of a list is hidden on the phone only — the HTML keeps every item (without JS, every item shows) */
  .shell-content .hub-cut > .hub-cut__rest { display: none; }
  /* compact rows: 64 px art · two lines · meta on the right; the whole row is the link */
  .shell-content .hub-rows { display: grid; gap: 10px; }
  .shell-content .hub-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; min-height: 72px; padding: 8px 12px 8px 8px; border-radius: 16px;
    background: var(--surface, #f4f0e7); border: 1px solid var(--border, #dad6cd); color: var(--ink); text-decoration: none; }
  .shell-content .hub-row__art { width: 64px; height: 64px; display: grid; place-items: center; }
  .shell-content .hub-row__art > * { max-width: 64px; max-height: 64px; }
  .shell-content .hub-row__t { display: grid; gap: 2px; min-width: 0; }
  .shell-content .hub-row__title { font-family: var(--font-serif); font-size: 19px; line-height: 1.15; }
  .shell-content .hub-row__line { font-size: 13.5px; line-height: 18px; color: #4f554f; }
  .shell-content .hub-row__meta { font-size: 13px; color: var(--muted); white-space: nowrap; }
  .shell-content .hub-row__meta .btn { min-height: 40px; padding: 0 14px; }
  /* a quiet row-link: icon · text · chevron (Organise a gathering, Hosts) */
  .shell-content .hub-linkrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; align-items: center; column-gap: 12px; min-height: 56px; padding: 6px 4px; color: var(--ink); text-decoration: none; }
  .shell-content .hub-linkrow__t { display: grid; gap: 1px; }
  .shell-content .hub-linkrow__title { font-family: var(--font-serif); font-size: 19px; }
  .shell-content .hub-linkrow__line { font-size: 13.5px; color: #4f554f; }
  .shell-content .hub-linkrow .icon-circle { width: 40px; height: 40px; }
  .shell-content .hub-linkrow > .icon { width: 18px; height: 18px; color: var(--muted); }
}

/* ---------- G9 — the shared foundation (tervek/G9-KOZOS-ALAP.md §3; shared on every page since 2026-11-02 after the four sample pages) ----------
   One page frame (the content starts at the same left edge on every page), one card surface (.card above), one icon tone (the lens colours
   only where they mean a lens), serif headings at 400, one title size. */
:root { --hi: #fbf9f4; --line: #e2ddd2; --sh1: 0 1px 2px rgba(30, 42, 34, .06), 0 8px 24px -12px rgba(30, 42, 34, .18); --icon-bg: #e7ebe2; --icon-ink: #4f6a4c; }
/* the frame: every page column starts at the content's left edge (no centred columns of different widths) — each page's own column rule says so */
/* serif headings at 400 — emphasis from size and space, never weight */
main :is(h1, h2, h3, h4), .card-title, .page-title { font-weight: 400; }  /* the browser's bold default never reaches a heading; a label that wants weight says so in its own rule */
/* a page's title is in the serif on every page, without each page having to say so (the review of 2026-11-19: Fasting, Feast & Fast and Take five stood in the sans) */
.page-title { font-family: var(--font-serif); }
/* one icon tone: each page's own icon rule uses var(--icon-bg) / var(--icon-ink) (the lens colours only where they mean a lens); a section
   head's icon is a sign, not a lens — whatever tint the markup names */
.sec-h2__icon.icon-circle { background: var(--icon-bg); color: var(--icon-ink); }
#today .sec-h2__icon.icon-circle { background: var(--grain), var(--tint, #e8e4d9); color: #26332a; }  /* the locked home keeps its icons (K-G9-02) */
/* one page head: the back link above every title — to the parent, on the main menu's pages too (‹ Today, ‹ Explore) — on the desktop as on the phone */
.page-back.page-back--top { display: inline-flex; margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }
.page-back.page-back--top:hover { text-decoration: underline; text-underline-offset: 3px; }
@container content (max-width: 640px) { .shell-content .page-back.page-back--top { margin-top: 14px; } }
/* Sample once (K-G9-03): one quiet band under the page head; on a person's or an event's card one small word in its meta line, never a chip */
.sample-band { display: flex; align-items: flex-start; gap: 10px; max-width: 760px; margin: 14px 0 0; padding: 10px 14px; border: 1px dashed #d4cec0; border-radius: 12px; font-size: 14px; line-height: 20px; color: var(--muted); }
.sample-band .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.sample-band strong { color: var(--ink); font-weight: 600; }
.sample-band__short { display: none; }
@container content (max-width: 640px) { .sample-band { margin-top: 6px; padding: 0; border: 0; font-size: 13px; line-height: 18px; } .sample-band__long { display: none; } .sample-band__short { display: inline; } }  /* the phone: one quiet line, no box (the phone hub's first screen, K-TK-09) */
.sample-word { font-size: 12.5px; font-weight: 400; letter-spacing: .02em; color: var(--muted); }
.card--dark .sample-word, .sample-word--light, .p081-stage .sample-word { color: #c9cec5; }  /* on a dark card or the room's stage */
/* the Today Card's reasons, steps and other ways (G9 §3.3: eight colours → one tone); the step's dark circle stays */
.reason .icon-circle, .steps-row .icon-circle:not(.icon-circle--dark), .alt-tile .icon-circle { background: var(--grain), var(--icon-bg); color: var(--icon-ink); }
/* one title size: 52 px on a wide content area (the phone header's 34 px below 640 px, §3.5; between them each page's own step) — not on
   the titles with a frame of their own (the Today's greeting, the player, a profile or cover head, a conversation's name, an invite card) */
@container content (min-width: 961px) {
  main h1.page-title:not(.p001-greeting h1, .pmsg-head__n, .p005-title, .d26-prof__name, .p086-rhero__h, .p014n-byb__title, .pprof-join__h) { font-size: 52px; line-height: 1.04; letter-spacing: -.015em; }
}

/* SZ-122 — the questions after a practice or a table, one per step (shared since 2026-11-02: the Practice Player's finishing sheet and
   the room's close). Light: an ivory card on the pale sage; --dark: after a dark stage (the evening, a wind-down, a table) the card stays
   dark-warm — no bright light after the dark (K-122-12). */
.p005-wiz { width: 100%; max-width: 660px; margin: 18px auto 0; padding: 20px 26px 22px; border-radius: 18px; background: #faf7ef; color: #1e2a22; box-shadow: var(--sh1); text-align: left; }
.p005-wiz p.p005-wiz__k { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0; font-size: 14.5px; line-height: 1.3; color: #65685f; text-align: left; }
.p005-wiz__k span { color: #3d463f; font-weight: 600; }
.p005-wiz__bars { display: flex; gap: 6px; margin: 10px 0 0; }
.p005-wiz__bars i { flex: 1; height: 5px; border-radius: 3px; background: #e1dcd0; }
.p005-wiz__bars i.is-on { background: #697a67; }
.p005-wiz h2.p005-wiz__q { margin: 20px 0 0; font-family: var(--font-serif); font-weight: 400; font-size: 28px; line-height: 1.2; color: #1e2a22; text-align: center; }
.p005-wiz p.p005-wiz__helper { margin: 6px 0 0; font-size: 15px; line-height: 1.4; color: #65685f; text-align: center; }
.p005-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.p005-ans { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 18px; border: 1px solid #e3ddd0; border-radius: 12px; background: #fffdf8; color: #1e2a22; font: inherit; font-family: var(--font-serif); font-size: 18px; text-align: left; cursor: pointer; }
.p005-ans:hover { border-color: #c9c3b4; }
.p005-ans:focus-visible { box-shadow: var(--focus); outline: none; }
.p005-ans__mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1.5px solid #cfc9bb; background: #fff; color: #fbf9f3; }
.p005-ans__mark .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.p005-ans[aria-pressed="true"] { background: #c7d1c0; border-color: #a9b3a3; }
.p005-ans[aria-pressed="true"] .p005-ans__mark { background: #253327; border-color: #253327; }
.p005-wiz p.p005-wiz__note { margin: 12px 0 0; font-size: 14.5px; color: #65685f; text-align: left; }
.p005-wiz__note a { color: #1e2a22; font-weight: 600; }
.p005-wiz__note .icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; color: #697a67; }
.p005-wiz__other { max-width: 320px; margin: 12px 0 0; }
.p005-wiz p.p005-wiz__quote { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 14.5px; color: #65685f; text-align: left; }
.p005-wiz__quote .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.p005-wiz__quote em { color: #1e2a22; }
.p005-wiz__ta { display: block; width: 100%; min-height: 96px; margin-top: 16px; padding: 12px 14px; border: 1px solid #e0dbcf; border-radius: 12px; background: #fffdf8; font: inherit; font-size: 15.5px; line-height: 1.45; color: #1e2a22; resize: vertical; }
.p005-wiz__ta::placeholder { color: #a8a399; }
.p005-wiz__ta:focus-visible { box-shadow: var(--focus); outline: none; }
.p005-wiz__private { margin-top: 12px; color: #3d463f; }
.p005-wiz p.p005-wiz__off { margin: 0 0 8px; font-size: 14.5px; color: #65685f; text-align: left; }
.p005-wiz__off a { color: #1e2a22; font-weight: 600; }
.p005-wiz__help { margin-top: 12px; text-align: left; }
.p005-wiz__help div { color: #3d463f; }
.p005-wiz__help a { color: inherit; font-weight: 600; }
.p005-wiz__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.p005-wiz__skip { color: #3d463f; text-decoration: underline; text-underline-offset: 3px; font-size: 16px; }
.p005-wiz__next { height: 46px; padding: 0 24px; }
.p005-wiz__next .icon { width: 18px; height: 18px; margin-left: 8px; }
.p005-wiz--done { text-align: center; }
.p005-wiz p.p005-wiz__done-k { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; color: #3d463f; text-align: center; }
.p005-wiz__done-k .icon { width: 18px; height: 18px; stroke-width: 2.4; color: #697a67; }
.p005-wiz p.p005-wiz__done-t { margin: 8px 0 0; font-size: 14px; color: #65685f; text-align: center; }
.p005-wiz p.p005-wiz__done-a { margin: 8px 0 0; font-family: var(--font-serif); font-size: 24px; line-height: 1.3; color: #1e2a22; text-align: center; }
.p005-wiz p.p005-wiz__done-n { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14.5px; color: #65685f; text-align: center; }
.p005-wiz__done-n .icon { width: 15px; height: 15px; }
.p005-wiz p.p005-wiz__done-l { margin: 14px 0 0; font-size: 15px; text-align: center; }
.p005-wiz__done-l a { color: #1e2a22; font-weight: 600; }
.p005-wiz--dark { background: #22382a; color: #f6f3ea; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.p005-wiz--dark p.p005-wiz__k { color: #b9bfb5; }
.p005-wiz--dark .p005-wiz__k span { color: #eeece2; }
.p005-wiz--dark .p005-wiz__bars i { background: rgba(244, 241, 232, .18); }
.p005-wiz--dark .p005-wiz__bars i.is-on { background: #a9b3a3; }
.p005-wiz--dark h2.p005-wiz__q { color: #f6f3ea; }
.p005-wiz--dark p.p005-wiz__helper { color: #c9cec5; }
.p005-wiz--dark .p005-ans { background: rgba(244, 241, 232, .06); border-color: rgba(244, 241, 232, .22); color: #f1efe6; }
.p005-wiz--dark .p005-ans:hover { border-color: rgba(244, 241, 232, .45); }
.p005-wiz--dark .p005-ans__mark { background: transparent; border-color: rgba(244, 241, 232, .4); }
.p005-wiz--dark .p005-ans[aria-pressed="true"] { background: #c5cbbd; border-color: #c5cbbd; color: #1e2a22; }
.p005-wiz--dark .p005-ans[aria-pressed="true"] .p005-ans__mark { background: #253327; border-color: #253327; color: #fbf9f3; }
.p005-wiz--dark p.p005-wiz__note, .p005-wiz--dark p.p005-wiz__quote, .p005-wiz--dark p.p005-wiz__off { color: #c9cec5; }
.p005-wiz--dark .p005-wiz__note a, .p005-wiz--dark .p005-wiz__off a, .p005-wiz--dark .p005-wiz__quote em { color: #f6f3ea; }
.p005-wiz--dark .p005-wiz__ta, .p005-wiz--dark .p005-wiz__other .field__input { background: rgba(244, 241, 232, .07); border-color: rgba(244, 241, 232, .25); color: #f1efe6; }
.p005-wiz--dark .p005-wiz__ta::placeholder { color: #9aa596; }
.p005-wiz--dark .p005-wiz__private { color: #eeece2; }
.p005-wiz--dark .p005-wiz__skip { color: #d9dcd3; }
.p005-wiz--dark .p005-wiz__next.btn--pine { background: #c5cbbd; border-color: #c5cbbd; color: #1e2a22; }
.p005-wiz--dark p.p005-wiz__done-k, .p005-wiz--dark p.p005-wiz__done-t, .p005-wiz--dark p.p005-wiz__done-n { color: #c9cec5; }
.p005-wiz--dark p.p005-wiz__done-a, .p005-wiz--dark .p005-wiz__done-l a { color: #f6f3ea; }
@container (max-width: 640px) {
  .p005-wiz { padding: 16px 16px 18px; }
  .p005-wiz h2.p005-wiz__q { font-size: 25px; }
  .p005-ans { min-height: 60px; padding: 0 12px; gap: 10px; font-size: 16.5px; }
  .p005-tiles > .p005-ans:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .p005-wiz__foot { flex-direction: column-reverse; align-items: stretch; }
  .p005-wiz__next { width: 100%; }
  .p005-wiz__skip { align-self: center; }
}

/* ---------- Header panels — Ö-046, tervek/FEJLEC-PANELEK.md §3–4: the bell, Messages and the search open in place ----------
   Desktop: an ivory G9 card under its button — the bell's and the bubble's right edge, the field's left edge — anchored by CSS from a
   position: relative wrap (no JS positioning, no inline style). Phone (≤ 768 px): a sheet from the top over a backdrop, z-index 60 with
   the avatar sheet (never both open). Prefix tbp- (top-bar panel); the app's app.css carries the same rules (sync_design). */
.tbp-wrap { position: relative; display: flex; align-items: center; }
.tbp-wrap--search { margin-left: auto; }
.shell-bell, .shell-msgs { text-decoration: none; cursor: pointer; }
.shell-bell[aria-current="page"], .shell-msgs[aria-current="page"] { color: var(--pine); }
.tbp {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: 380px; max-width: calc(100vw - 32px);
  max-height: min(560px, calc(100vh - 90px)); display: flex; flex-direction: column;
  background: var(--grain), var(--hi); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--sh1), 0 12px 30px rgba(30, 42, 34, .14); color: var(--ink); font-size: 15px; line-height: 1.4; text-align: left;
  opacity: 0; transform: translateY(-4px); transition: opacity .12s ease, transform .12s ease;
}
.tbp[hidden] { display: none; }
.tbp.tbp--open { opacity: 1; transform: none; }
.tbp--search { right: auto; left: 0; width: max(100%, 460px); max-width: calc(100vw - var(--sidebar-w, 272px) - 64px); }
.tbp__head { display: flex; align-items: center; gap: 10px; flex: none; min-height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.tbp__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 20px; letter-spacing: -.005em; color: var(--ink); border-radius: 6px; }
.tbp__title:focus { outline: none; }
.tbp__title:focus-visible { box-shadow: var(--focus); }
.tbp-from-url .tbp__title:focus-visible { box-shadow: none; }  /* a demo state opened from the URL: no ring until the person touches a key */
.tbp__count { font-size: 14px; color: var(--muted); }
.tbp__write { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; height: 36px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: var(--pine); cursor: pointer; }
.tbp__write .icon { width: 18px; height: 18px; }
.tbp__write:hover, .tbp__write:focus-visible { background: #efebe2; }
.tbp__x, .tbp__cancel { display: none; }
.tbp-back { padding: 0; border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: var(--pine); cursor: pointer; border-radius: 6px; }
.tbp-back + .tbp__title { margin-left: 2px; }
.tbp__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.tbp-next { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; font-size: 14px; color: var(--ink-soft); background: #f6f3ec; border-bottom: 1px solid var(--line); }
.tbp-next .icon { flex: none; width: 16px; height: 16px; color: var(--muted); }
.tbp-next strong { font-weight: 600; color: var(--ink); }
.tbp-list, .tbp-people { list-style: none; margin: 0; padding: 6px 0; }
.tbp-row, .tbp-person { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 10px 16px; color: var(--ink); text-decoration: none; }
.tbp-row { min-height: 64px; }
.tbp-row:hover, .tbp-row:focus-visible, .tbp-row.is-active, .tbp-person:hover, .tbp-person:focus-visible { background: #efebe2; outline: none; }
.tbp-row--new { background: #fbf5ee; }
.tbp-row__sign, .tbp-person__face { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sage-soft, #e1e9dc); color: var(--ink-soft); overflow: hidden; }
.tbp-row__sign .icon { width: 18px; height: 18px; stroke-width: 1.7; }
.tbp-row__sign svg.face, .tbp-person__face svg.face { display: block; width: 36px; height: 36px; }
.tbp-row__sign--face { background: transparent; }
.tbp-row__sign--cover { border-radius: 9px; background: #ece8de; }
.tbp-row__sign--cover > svg, .tbp-row__sign--cover .tbp-cover, .tbp-row__sign--cover .tbp-cover > svg { display: block; width: 36px; height: 36px; }
.tbp-cover { display: grid; place-items: center; color: #3d4a40; }
.tbp-cover .icon { width: 18px; height: 18px; }
.tbp-cover--pen { background: #dde6ec; color: #4d6170; }
.tbp-lens--body { background: #e1e9dc; } .tbp-lens--mind { background: #dde6ec; } .tbp-lens--soul { background: #f1e5d8; } .tbp-lens--kind { background: #eee2e6; }
.tbp-prog--found { background: linear-gradient(160deg, #e6ebe1, #d3dccd); } .tbp-prog--calm { background: linear-gradient(160deg, #e3e9ee, #cbd7e0); }
.tbp-prog--sleep { background: linear-gradient(160deg, #e5e4ee, #cfcde0); } .tbp-prog--reconnect { background: linear-gradient(160deg, #f2e7dc, #e3d0bd); }
.tbp-row__t { min-width: 0; display: grid; gap: 2px; }
.tbp-row__title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.tbp-row__text { font-size: 14px; line-height: 1.35; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbp-row__text--2 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tbp-row__r { display: grid; justify-items: end; align-content: start; gap: 6px; align-self: start; padding-top: 2px; }
.tbp-row__time { font-size: 13px; color: var(--muted); white-space: nowrap; }
.tbp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }
.tbp__foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex: none; min-height: 48px; padding: 0 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.tbp__foot[hidden] { display: none; }
.tbp__more { margin-right: auto; }
.tbp-all { font-size: 15px; font-weight: 600; color: var(--pine); text-decoration: none; border-radius: 6px; }
.tbp-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.tbp__fine { margin-right: auto; }
.tbp-key { font: inherit; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; background: #f6f3ec; }
.tbp-state { padding: 20px 16px; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.tbp-state p { margin: 0; }
.tbp-state p + .btn, .tbp-state p + .tbp-state__cta { margin-top: 12px; }
.tbp-state__cta { display: inline-flex; }
.tbp-state p.tbp-state__fine { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.tbp-state--hint { padding: 16px 16px 6px; font-family: var(--font-serif); font-size: 18px; color: #3d463f; }
.tbp-state--off { border-top: 1px solid var(--line); font-size: 14px; }
.tbp-state--off a { color: var(--pine); font-weight: 600; }
.tbp-state--none[hidden] { display: none; }
.tbp__body.is-looking .tbp-group, .tbp__body.is-looking .tbp-help { opacity: .55; }  /* FP-S3: past 300 ms the old result fades while the next one comes */
.tbp-skel { display: grid; gap: 4px; padding: 8px 16px; }
.tbp-skel span { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; align-items: center; min-height: 64px; }
.tbp-skel span::before { content: ""; width: 36px; height: 36px; border-radius: 50%; background: #ebe7dd; }
.tbp-skel i { display: block; height: 12px; border-radius: 6px; background: #ebe7dd; }
.tbp-skel i + i { width: 70%; margin-top: 8px; }
.tbp-skel span > i:first-of-type { width: 48%; }
.tbp-group__h { margin: 10px 16px 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tbp-row--s { min-height: 52px; padding: 6px 16px; }
.tbp-help { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 10px; align-items: center; margin: 12px 16px 6px; padding: 14px 16px; border-radius: 14px;
  background: var(--grain-light), linear-gradient(160deg, #2a4433, #17281d); color: #eeece2; }
.tbp-help > .icon { width: 22px; height: 22px; color: #e2b896; }
.tbp-help p { margin: 0; font-size: 15px; line-height: 1.4; color: #f1efe6; }
.tbp-help .btn { grid-column: 1 / -1; justify-self: start; }
.tbp-moods { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 16px 14px; }
.tbp-moods button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--hi); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.tbp-moods button:hover, .tbp-moods button:focus-visible { background: #efebe2; }
.tbp__sform { display: none; }
.tbp-people__findwrap { padding: 10px 16px 4px; }
.tbp-people__find { width: 100%; height: 40px; padding: 0 12px; border: 1px solid #d6d1c6; border-radius: 10px; background: var(--field); font: inherit; font-size: 15px; color: var(--ink); }
.tbp-people__find:focus { outline: none; box-shadow: var(--focus); }
.tbp-person { min-height: 56px; padding: 6px 16px; font-weight: 600; }
.tbp-person > .icon { width: 18px; height: 18px; color: var(--muted); }
.tbp-person li[hidden] { display: none; }
.tbp-backdrop { display: none; }
/* 125 % (§3.3): the panel's content follows the Settings text size; the top bar itself does not */
html.text-large .tbp__body { zoom: 1.125; }
html.text-larger .tbp__body { zoom: 1.25; }
@media (max-width: 1024px) {
  .tbp--search { max-width: calc(100vw - 48px); }
}
@media (max-width: 768px) {
  /* the sheet from the top: it covers the 58 px bar and brings its own head (the title + ×, or the field + Cancel) */
  html.tbp-open.v26 .shell-topbar { z-index: 60; }
  html.tbp-open { overflow: hidden; }
  .tbp-wrap--search { display: contents; }
  .tbp, .tbp--search { position: fixed; top: 0; left: 0; right: 0; width: auto; max-width: none; max-height: 85dvh; z-index: 60; border: 0; border-radius: 0 0 16px 16px;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .4); transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease; }
  .tbp-backdrop { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(14, 24, 18, .45); }
  .tbp-backdrop[hidden] { display: none; }
  .tbp__head { min-height: 58px; padding: 0 8px 0 16px; }
  .tbp__title { font-size: 21px; }
  .tbp__x { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
  .tbp__x .icon { width: 20px; height: 20px; }
  .tbp__write { min-height: 44px; }
  .tbp__write + .tbp__x { margin-left: 0; }
  .tbp-back { min-height: 44px; padding: 0 6px 0 0; }
  .tbp__sform { display: flex; align-items: center; gap: 10px; flex: none; min-height: 58px; padding: 5px 8px 5px 16px; border-bottom: 1px solid var(--line); }
  .tbp__sform > .icon { flex: none; width: 20px; height: 20px; color: #4b514b; }
  .tbp__sform input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid #d6d1c6; border-radius: 12px; background: var(--field); font: inherit; font-size: 16px; color: var(--ink); }
  .tbp__sform input:focus { outline: none; box-shadow: var(--focus); }
  .tbp__cancel { display: inline-flex; align-items: center; flex: none; min-height: 44px; padding: 0 10px; border: 0; background: transparent; font: inherit; font-size: 15.5px; font-weight: 600; color: var(--pine); cursor: pointer; border-radius: 8px; }
  .tbp__foot { flex-wrap: wrap; padding: 0; }
  .tbp-all { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; }
  .tbp__more, .tbp__fine { flex: 1 1 100%; padding: 10px 16px 0; text-align: center; margin: 0; }
  .tbp-key { display: none; }
  .tbp-row { min-height: 64px; }
  .tbp-state__cta { display: flex; justify-content: center; width: 100%; }
  .tbp-help .btn { justify-self: stretch; }
}

/* ---------- How it works, at the top (Ö-108, 2026-11-10, the owner's choice A): one quiet strip under the page head — closed it says the
   gist in one sentence, More › opens the steps where you read; never a card at the bottom you reach after you've done the thing ---------- */
.how-strip { margin: 14px 0 4px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.how-strip > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-radius: 16px; font-size: 15.5px; line-height: 1.4; color: var(--ink-soft); }
.how-strip > summary::-webkit-details-marker { display: none; }
.how-strip > summary:focus-visible { outline: none; box-shadow: var(--focus); }
.how-strip__ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e7ece3; color: var(--ink); }
.how-strip__ic .icon { width: 16px; height: 16px; stroke-width: 1.6; }
.how-strip__line { flex: 1 1 auto; min-width: 0; }
.how-strip__line b { font-weight: 600; color: var(--ink); }
.how-strip__more { flex: none; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.how-strip__close, .how-strip[open] .how-strip__open { display: none; }
.how-strip[open] .how-strip__close { display: inline; }
.how-strip__body { padding: 2px 22px 18px 60px; }
.how-strip__steps .steps-list__item { padding-bottom: 14px; }
.how-strip__steps .steps-list__circle { background: #e7ece3; color: var(--ink); }
.how-strip__one { align-self: center; font-size: 15.5px; line-height: 21px; color: var(--ink-soft); }
.how-strip__steps .steps-list__item:has(.how-strip__one) { align-items: center; }
.how-strip__priv { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.how-strip__priv > span:last-child { flex: 1 1 auto; min-width: 0; }
.how-strip__priv .icon { flex: none; width: 18px; height: 18px; stroke-width: 1.5; margin-top: 2px; }
.how-strip__priv a, .how-strip__priv .linklike { color: var(--ink); }
@container content (max-width: 640px) {
  .how-strip > summary { flex-wrap: wrap; align-items: flex-start; padding: 13px 16px; }
  .how-strip__line { flex-basis: calc(100% - 42px); }
  .how-strip__more { margin-left: 42px; }
  .how-strip__body { padding: 2px 16px 16px; }
}

/* ---------- Ö-112 (2026-11-11): "I'd rather not" — Neome asks back; nothing changes by itself ---------- */
.leave-ask { margin-top: 12px; padding: 14px 16px; color: var(--ink); text-align: left;  /* its own type anywhere — the player sheet paints every p pale */
  border: 1px solid var(--border); border-radius: 14px; background: #f7f4ec; }
.leave-ask .leave-ask__q { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.leave-ask__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.leave-ask__no { font-size: 15px; color: var(--ink-soft); }
.leave-ask .leave-ask__foot { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.leave-ask__foot a, .leave-ask__done a { color: var(--ink); }
.leave-ask .leave-ask__done { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.leave-ask__done .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--sage-deep); }
@container content (max-width: 640px) {
  .leave-ask__acts .btn { flex: 1 1 100%; }
}

/* SZ-125 round 2: the ♡ form wraps only its button (the button sits where the page puts it) */
.keep-form { display: inline; margin: 0; }

/* Wisdom in empty places (Ö-075, HATRALEVO 43): one sourced line under an empty place's line and its next step; ♡ keeps it */
.wis { position: relative; margin: 18px 0 0; padding: 16px 52px 4px 0; border-top: 1px solid #e2ddd2; }
.wis__q { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 19px; line-height: 28px; color: var(--ink); overflow-wrap: anywhere; }
.wis__by { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.wis__k { position: absolute; top: 10px; right: 0; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.wis__k:hover { background: rgba(120, 100, 70, .08); }
.wis__k svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.wis__k[aria-pressed="true"] { color: var(--bark); }
.wis__k[aria-pressed="true"] svg { fill: var(--bark); }
.wis--light { border-top-color: rgba(238, 236, 226, .22); }
.wis--light .wis__q { color: #eeece2; }
.wis--light .wis__by { color: #c9d3c4; }
.wis--light .wis__k { color: #c9d3c4; }
.wis--light .wis__k[aria-pressed="true"] { color: #e7cdb8; }
.wis--light .wis__k[aria-pressed="true"] svg { fill: #e7cdb8; }
