/* Buddy: a quiet thread with the memory written in the margin.
   Tokens first; every colour below comes from here. Night is not an inverted day: the ground
   goes deep blue-teal and the highlighter is dimmed so it never glares at 2am. */

:root {
  --fog: #dde5e1;
  --paper: #f3f6f4;
  --ink: #17262e;
  --ink-2: #4a5b63;
  --rule: #b9c6c0;
  --marker: #f4d35e;
  --marker-ink: #17262e;
  --harbor: #2e5aac;
  --harbor-ink: #ffffff;
  --alert: #8f2d2d;
  --focus: #2e5aac;
  --crisis-bg: #17262e;
  --crisis-ink: #f3f6f4;
  --crisis-rule: #3d5560;

  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Iowan Old Style", "Noto Serif", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2.5rem;
  --r: 6px;
  --gutter: 1.5rem;
  --thread: 40rem;
  --margin: 17rem;
  --rail: 14rem;
  --tabbar: calc(3.6rem + env(safe-area-inset-bottom));
}

:root[data-theme="dark"] {
  --fog: #0c171d;
  --paper: #13222a;
  --ink: #dbe6e2;
  --ink-2: #94a8aa;
  --rule: #2b3f48;
  --marker: rgba(222, 184, 72, 0.34);
  --marker-ink: #0c171d;
  --harbor: #86a8ef;
  --harbor-ink: #0c171d;
  --alert: #e49a9a;
  --focus: #86a8ef;
  --crisis-bg: #e8efec;
  --crisis-ink: #13222a;
  --crisis-rule: #b4c3bd;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--harbor); text-underline-offset: 0.15em; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: var(--s2) var(--s4); z-index: 20; }
.skip:focus { left: var(--s2); top: var(--s2); }
.noscript { padding: var(--s5); }
[hidden] { display: none !important; }

/* ── Page frame ─────────────────────────────────────────────────────────── */
.page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
}
.paper { grid-column: 1; grid-row: 1 / 4; background: var(--paper); }
.top, .main, .dock { grid-column: 1; position: relative; z-index: 1; min-width: 0; }
.top { grid-row: 1; }
.main { grid-row: 2; }
.dock { grid-row: 3; }

@media (max-width: 1079px) {
  .page { padding-bottom: var(--tabbar); }
  .page.page-welcome { padding-bottom: 0; }
}
@media (min-width: 1080px) {
  .page { grid-template-columns: minmax(var(--rail), 1fr) var(--thread) var(--margin) minmax(var(--s5), 1fr); }
  .paper { grid-column: 2 / 4; border-inline: 1px solid var(--rule); }
  .top { grid-column: 1; grid-row: 1 / 4; }
  .main { grid-column: 2 / 4; grid-row: 1 / 3; display: grid; grid-template-columns: subgrid; align-content: start; }
  .dock { grid-column: 2; grid-row: 3; }
}

/* ── Top bar (phone) and rail (wide) ────────────────────────────────────── */
.top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  padding: var(--s3) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.mono { width: 1.9rem; height: 1.9rem; flex: none; border-radius: 50%; background: var(--ink); color: var(--paper); display: inline-grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1rem; line-height: 1; }
.brand-wrap { display: flex; align-items: center; gap: var(--s3); margin-right: auto; min-width: 0; }
.brand-block { display: flex; flex-direction: column; min-width: 0; }
.brand-block .brand { line-height: 1.1; }
.tagline { font-family: var(--serif); font-style: italic; font-size: 0.9rem; color: var(--ink-2); line-height: 1.2; }
.about { font-size: 0.8125rem; color: var(--ink-2); margin: var(--s3) 0 0; text-align: left; }
.tab { background: none; border: 0; color: var(--ink-2); white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab-count:empty { display: none; }
.tools { display: flex; align-items: center; gap: var(--s2); }

@media (max-width: 1079px) {
  /* The tab bar is fixed inside the header, so the header must sit above the page for it to stay on top. */
  .top { z-index: 6; }
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    display: flex; justify-content: space-around; gap: 0;
    background: var(--paper); border-top: 1px solid var(--rule);
    padding: 0.3rem max(0.25rem, env(safe-area-inset-left)) calc(0.3rem + env(safe-area-inset-bottom)) max(0.25rem, env(safe-area-inset-right));
  }
  .tab { flex: 1 1 0; min-width: 0; padding: 0.3rem 0.1rem; font-size: 0.72rem; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; border-radius: var(--r); }
  .tab[aria-current="page"] { color: var(--harbor); font-weight: 600; }
  .tab-count { font-size: 0.68rem; line-height: 1.2; background: var(--harbor); color: var(--harbor-ink); border-radius: 99px; padding: 0.05rem 0.4rem; font-weight: 600; }
}
@media (min-width: 1080px) {
  .top {
    position: sticky; top: 0; align-self: start; height: 100dvh;
    flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: var(--s4);
    padding: var(--s5) var(--s4) var(--s4); border-bottom: 0;
  }
  .brand-wrap { margin-right: 0; flex-wrap: wrap; }
  .tabs { display: flex; flex-direction: column; gap: 2px; margin: 0; order: 1; }
  .tab { text-align: left; font-size: 0.9375rem; padding: var(--s2) var(--s3); border-left: 3px solid transparent; border-radius: 0 var(--r) var(--r) 0; display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
  .tab[aria-current="page"] { color: var(--ink); font-weight: 600; border-left-color: var(--harbor); background: var(--paper); }
  .tab-count { color: var(--ink-2); font-weight: 400; font-size: 0.8125rem; }
  .tools { order: 2; margin-top: auto; flex-direction: column; align-items: flex-start; gap: var(--s1); }
}
.chip { font-size: 0.8125rem; padding: 0.1rem 0.55rem; border: 1px solid var(--rule); border-radius: 99px; color: var(--ink-2); }
.linkbtn { background: none; border: 0; padding: var(--s1) var(--s2); color: var(--ink-2); font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--rule); }
.linkbtn:hover { color: var(--ink); }

/* ── Thread ─────────────────────────────────────────────────────────────── */
.thread { display: contents; }
.day { grid-column: 1; margin: var(--s5) 0 var(--s2); padding-inline: var(--gutter); font-size: 0.875rem; color: var(--ink-2); }
.empty { grid-column: 1; padding: var(--s6) var(--gutter); font-family: var(--serif); font-size: 1.25rem; line-height: 1.55; color: var(--ink-2); max-width: 32rem; }

.turn { grid-column: 1 / -1; display: block; padding-inline: var(--gutter); margin-block: var(--s4); }
@media (min-width: 1080px) {
  .turn { display: grid; grid-template-columns: subgrid; padding-inline: 0; }
  .turn > .body { grid-column: 1; padding-inline: var(--gutter); }
  .turn > .who { grid-column: 1; padding-inline: var(--gutter); }
  .turn > .margin { grid-column: 2; padding-left: var(--s5); padding-right: var(--s3); }
}
.who { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); margin-bottom: 0.2rem; letter-spacing: 0.01em; }
.who-note { font-weight: 400; font-style: italic; }
.turn.checkin > .body { border-left: 3px solid var(--marker); padding-left: var(--s3); }
@media (min-width: 1080px) { .turn.checkin > .body { margin-left: var(--gutter); padding-left: var(--s3); padding-inline-end: var(--gutter); } }
.turn.fallback > .body { color: var(--ink-2); font-style: italic; }
.fallback-acts { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s3); font-family: var(--sans); font-style: normal; }
.fallback-acts .cut { margin: 0; }
.day.ai-notice { font-size: 0.8125rem; max-width: 36rem; padding-top: var(--s2); border-top: 1px solid var(--rule); margin-top: var(--s4); }
.you > .body { display: inline-block; max-width: min(85%, 34rem); margin-left: auto; background: var(--paper); border: 1px solid var(--rule); border-radius: 18px 18px 4px 18px; padding: 0.6rem 0.9rem; font-size: 1rem; line-height: 1.45; color: var(--ink); }
.turn.you { display: flex; flex-direction: column; align-items: flex-end; }
.turn.you > .who { align-self: flex-end; }
@media (min-width: 1080px) { .turn.you { display: grid; } .you > .body { margin-left: var(--gutter); justify-self: end; margin-right: var(--gutter); } }
.buddy .body { font-family: var(--serif); font-size: 1.125rem; line-height: 1.6; }
@media (min-width: 1080px) { .buddy .body { font-size: 1.1875rem; line-height: 1.62; } }
.body p { margin: 0 0 var(--s3); max-width: 36rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.body p:last-child { margin-bottom: 0; }
.cut { font-family: var(--sans); font-size: 0.875rem; color: var(--ink-2); margin-top: var(--s2); }
.pending .body::after { content: ""; display: inline-block; width: 0.5em; height: 1em; vertical-align: -0.15em; margin-left: 2px; background: var(--ink-2); opacity: 0.5; }

/* Margin notes: what Buddy used for this reply and what it kept from your message. */
.margin { margin-top: var(--s2); display: flex; flex-direction: column; gap: var(--s3); font-size: 0.875rem; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 1079px) { .margin { padding-left: var(--s3); border-left: 1px solid var(--rule); } }
@media (min-width: 1080px) { .margin { margin-top: 0.35rem; } }
.note { display: block; }
.note-text { color: var(--ink); }
.note-why { display: block; margin-top: 0.1rem; }
.note-acts { display: inline-flex; gap: var(--s3); margin-left: var(--s2); }
.note-acts button { background: none; border: 0; padding: 0; color: var(--ink-2); font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 0.2em; }
.note-acts button:hover { color: var(--ink); }
@media (hover: hover) {
  .note .note-acts { opacity: 0; transition: opacity 0.12s; }
  .note:hover .note-acts, .note:focus-within .note-acts { opacity: 1; }
}
.note.gone .note-text { text-decoration: line-through; }

/* The highlighter: reserved for memory, used nowhere else. */
.mark {
  color: var(--ink);
  background-image: linear-gradient(var(--marker), var(--marker));
  background-repeat: no-repeat;
  background-position: 0 70%;
  background-size: 100% 0.95em;
  padding: 0.04em 0.22em;
  margin: 0 -0.22em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.mark.sweep { animation: sweep 0.75s 0.15s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
@keyframes sweep { from { background-size: 0% 0.95em; } to { background-size: 100% 0.95em; } }
.used-text { color: var(--ink); border-bottom: 1px dotted var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .mark.sweep { animation: none; } }

/* ── Crisis card: deliberately unlike everything else ───────────────────── */
.crisis { background: var(--crisis-bg); color: var(--crisis-ink); border-radius: 2px; padding: var(--s5) var(--s5) var(--s4); max-width: 36rem; font-family: var(--sans); }
.crisis h2 { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; margin: 0 0 var(--s3); font-weight: 700; }
.crisis ul { list-style: none; margin: 0; padding: 0; }
.crisis li { padding: var(--s3) 0; border-top: 1px solid var(--crisis-rule); display: grid; gap: 0.15rem; }
.crisis .rname { font-weight: 700; }
.crisis .rhow { font-size: 0.9375rem; }
.crisis .racts { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s2); }
.crisis a { color: inherit; }
.crisis .act { display: inline-block; padding: 0.55rem 1rem; border: 2px solid currentColor; border-radius: 2px; font-weight: 700; text-decoration: none; min-height: 44px; line-height: 1.6; }
.crisis .act:hover { background: var(--crisis-ink); color: var(--crisis-bg); }
.crisis .fine { margin: var(--s3) 0 0; font-size: 0.8125rem; opacity: 0.85; }

.notice { max-width: 36rem; padding: var(--s3) var(--s4); border: 1px solid var(--rule); border-left: 3px solid var(--alert); font-size: 0.9375rem; background: var(--paper); }
.notice p { margin: 0 0 var(--s2); }
.notice p:last-child { margin: 0; }

/* ── Composer ───────────────────────────────────────────────────────────── */
.dock { position: sticky; bottom: 0; background: var(--paper); border-top: 1px solid var(--rule); padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom)); }
@media (max-width: 1079px) { .dock { bottom: var(--tabbar); padding-bottom: var(--s3); } }
.composer { display: flex; gap: var(--s2); align-items: flex-end; }
.btn.mic { border-radius: 99px; display: inline-flex; align-items: center; gap: 0.45rem; padding-inline: 0.85rem; flex: none; }
/* Voice first: the mic is the one you reach for; Send waits to the side for typed words. */
.btn.mic.mic-first { order: 2; background: var(--harbor); color: var(--harbor-ink); border-color: var(--harbor); min-height: 2.9rem; padding-inline: 1rem; font-weight: 600; }
.btn.mic.mic-first .mic-dot { background: var(--harbor-ink); }
.btn.mic.mic-first.is-listening { background: var(--alert); border-color: var(--alert); color: #fff; }
.btn.mic.mic-first.is-speaking { background: var(--ink); border-color: var(--ink); color: var(--paper, #fff); }
.voice-first .composer .btn-primary { order: 3; background: transparent; color: var(--ink); border-color: var(--line, var(--ink-2)); }
.voice-first .composer textarea { order: 1; }
.mic-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--ink-2); flex: none; }
.mic.is-listening { border-color: var(--alert); color: var(--alert); }
.mic.is-listening .mic-dot { background: var(--alert); animation: pulse 1s ease-in-out infinite; }
.mic.is-speaking { border-color: var(--harbor); color: var(--harbor); }
.mic.is-speaking .mic-dot { background: var(--harbor); animation: pulse 1.3s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .mic-dot { animation: none !important; } }
.voice-state { font-size: 0.8125rem; color: var(--ink-2); margin-left: auto; align-self: center; }
@media (max-width: 560px) {
  .btn.mic { width: 2.9rem; padding: 0; justify-content: center; }
  .btn.mic .mic-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .btn.mic .mic-dot { width: 0.85rem; height: 0.85rem; }
  .composer .btn-primary { padding-inline: 0.8rem; }
}
.voice-state:empty { display: none; }
.composer textarea {
  flex: 1; min-width: 0; resize: none; max-height: 11rem; min-height: 2.9rem;
  border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper);
  padding: 0.65rem 0.8rem; line-height: 1.45;
}
.composer textarea:focus-visible { outline-offset: 0; border-color: var(--focus); }
.fineprint { margin: var(--s2) 0 0; font-size: 0.8125rem; color: var(--ink-2); }
.count { color: var(--alert); }

/* ── Buttons and fields ─────────────────────────────────────────────────── */
.btn { border: 1px solid var(--rule); background: transparent; border-radius: var(--r); padding: 0.55rem 1rem; min-height: 2.9rem; font-weight: 600; }
.btn:hover { border-color: var(--ink-2); }
.btn-primary { background: var(--harbor); border-color: var(--harbor); color: var(--harbor-ink); }
.btn-primary:hover { filter: brightness(1.08); border-color: var(--harbor); }
.btn-danger { border-color: var(--alert); color: var(--alert); }
.btn-sm { min-height: 2.25rem; padding: 0.3rem 0.8rem; font-size: 0.9375rem; font-weight: 500; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
a.btn.btn-primary { color: var(--harbor-ink); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.field { display: grid; gap: var(--s1); margin-bottom: var(--s4); }
.field label, .field .label { font-weight: 600; font-size: 0.9375rem; }
.field input[type="text"], .field input[type="date"], .field input[type="time"], .field select {
  border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); padding: 0.6rem 0.75rem; min-height: 2.75rem; width: 100%;
}
.field .hint { font-size: 0.875rem; color: var(--ink-2); }
.field textarea { border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); padding: 0.6rem 0.75rem; width: 100%; resize: vertical; line-height: 1.45; }
.name-picks { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s2); }
.pick { border: 1px solid var(--rule); background: var(--paper); border-radius: 99px; padding: 0.35rem 0.9rem; font-size: 0.9375rem; color: var(--ink); }
.pick:hover { border-color: var(--ink-2); }
.pick[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.check { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; margin-bottom: var(--s3); }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--harbor); }

/* ── Panels (Open loops, Memory, This week) ─────────────────────────────── */
.panel { grid-column: 1; padding: var(--s5) var(--gutter) var(--s6); max-width: 100%; }
.panel h1 { font-family: var(--serif); font-size: 1.7rem; line-height: 1.2; margin: 0 0 var(--s2); letter-spacing: -0.01em; }
.panel h2 { font-family: var(--serif); font-size: 1.15rem; margin: var(--s5) 0 var(--s2); }
.lede { margin: 0 0 var(--s4); color: var(--ink-2); max-width: 34rem; }
.list { list-style: none; margin: 0; padding: 0; }
.row { padding: var(--s3) 0; border-top: 1px solid var(--rule); }
.row:last-child { border-bottom: 1px solid var(--rule); }
.row-main { display: flex; gap: var(--s3); justify-content: space-between; align-items: baseline; }
.row .what { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.45; overflow-wrap: anywhere; }
.row .when { white-space: nowrap; font-size: 0.875rem; color: var(--ink-2); }
.row.late .when { color: var(--alert); font-weight: 600; }
.row-links { display: inline-flex; gap: var(--s2); flex-shrink: 0; }
.row-links .linkbtn { padding: 0 var(--s1); }
.row-acts { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s2); }
.row .meta { font-size: 0.8125rem; color: var(--ink-2); margin-top: 0.15rem; }
.row .edit { display: grid; gap: var(--s2); margin-top: var(--s2); }
.row .edit input[type="text"] { border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); padding: 0.55rem 0.7rem; width: 100%; }
.addrow { display: grid; gap: var(--s2); margin: var(--s4) 0; }
@media (min-width: 560px) { .addrow { grid-template-columns: 1fr auto auto; align-items: end; } }
.addrow input { border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); padding: 0.6rem 0.75rem; min-height: 2.75rem; min-width: 0; }
.summary { border-left: 3px solid var(--marker); padding: var(--s2) var(--s4); margin: var(--s4) 0; font-family: var(--serif); max-width: 36rem; }
.summary p { margin: 0 0 var(--s2); }
.summary small { font-family: var(--sans); color: var(--ink-2); }
.quiet-note { color: var(--ink-2); font-size: 0.9375rem; max-width: 34rem; }
.foot { margin-top: var(--s6); display: flex; gap: var(--s3); flex-wrap: wrap; }
.review p { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.6; max-width: 36rem; margin: 0 0 var(--s3); }

/* ── Dialog ─────────────────────────────────────────────────────────────── */
dialog { border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); color: var(--ink); padding: var(--s5); width: min(30rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow-y: auto; }
dialog::backdrop { background: rgba(8, 16, 20, 0.55); }
dialog h2 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 var(--s3); }
dialog p { margin: 0 0 var(--s3); }
.dialog-acts { display: flex; gap: var(--s2); justify-content: flex-end; margin-top: var(--s4); flex-wrap: wrap; }
.seg { display: flex; gap: var(--s2); flex-wrap: wrap; }
.seg label { display: inline-flex; gap: var(--s2); align-items: center; font-weight: 400; }

/* ── Welcome ────────────────────────────────────────────────────────────
   The first screen of an app, not a page of writing: the orb they will talk to, one line, three short steps,
   one big button. On a wide screen the hero sits beside the steps. */
.welcome { grid-column: 1; padding: var(--s5) var(--gutter) var(--s6); max-width: 36rem; margin: 0 auto; width: 100%; }
@media (min-width: 1080px) {
  .welcome { grid-column: 1 / -1; max-width: 68rem; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s6); align-items: start; padding-top: var(--s6); }
  .welcome .hero { position: sticky; top: var(--s6); }
  .welcome .legal, .welcome .restore-wrap { grid-column: 2; }
}
.hero { text-align: left; margin-bottom: var(--s5); }
.orb { width: 7.5rem; height: 7.5rem; border-radius: 50%; margin: 0 0 var(--s5); position: relative; background: radial-gradient(circle at 35% 30%, #9fc0ff 0%, var(--harbor) 45%, #17264e 100%); box-shadow: 0 18px 48px -18px rgba(46, 90, 172, 0.7), inset 0 -10px 24px rgba(0, 0, 0, 0.25); animation: breathe 5s ease-in-out infinite; }
.orb-core { position: absolute; inset: 28%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 70%); animation: glow 5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .orb, .orb-core { animation: none; } }
:root[data-theme="dark"] .orb { background: radial-gradient(circle at 35% 30%, #c9d9ff 0%, #86a8ef 45%, #1e2f5c 100%); box-shadow: 0 18px 48px -18px rgba(134, 168, 239, 0.6), inset 0 -10px 24px rgba(0, 0, 0, 0.35); }
.welcome h1 { font-family: var(--serif); font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 var(--s3); }
.welcome .intro { font-size: 1.125rem; line-height: 1.5; margin: 0 0 var(--s4); max-width: 28rem; color: var(--ink-2); }
.promises { list-style: none; margin: 0 0 var(--s4); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.promises li { font-size: 0.875rem; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 99px; padding: 0.3rem 0.75rem; background: var(--paper); }
.setup-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; padding: var(--s5) var(--s4); box-shadow: 0 10px 30px -20px rgba(23, 38, 46, 0.35); }
.setup { display: grid; gap: var(--s5); }
.step { display: grid; grid-template-columns: 1.75rem 1fr; gap: var(--s3); }
.step-n { width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 0.8125rem; font-weight: 600; display: grid; place-items: center; margin-top: 0.1rem; }
.step-body { display: grid; gap: var(--s2); min-width: 0; }
.step-body label, .step-body .label { font-weight: 600; font-size: 1.0625rem; }
.step-body input[type="text"] { font-size: 1.0625rem; padding: 0.7rem 0.9rem; border-radius: 10px; }
.step-body .hint { font-size: 0.875rem; color: var(--ink-2); }
.consent { align-items: start; }
.consent label { line-height: 1.45; }
.terms { display: inline; }
.terms summary { display: inline; color: var(--harbor); text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }
.terms summary::-webkit-details-marker { display: none; }
.terms[open] summary { font-weight: 600; }
.terms p { margin: var(--s2) 0 0; font-size: 0.9375rem; color: var(--ink-2); }
.btn-big { width: 100%; padding: 0.95rem 1.2rem; font-size: 1.125rem; border-radius: 12px; }
.legal { font-size: 0.8125rem; color: var(--ink-2); margin: var(--s4) 0 0; }
.form-error { color: var(--alert); font-weight: 600; min-height: 1.5rem; margin: var(--s2) 0; }

/* ── Today and drafts for review ────────────────────────────────────────── */
/* A draft is a slip of paper: plainly "not sent" until you say so. */
.slips { display: grid; gap: var(--s4); margin: var(--s3) 0; }
.slip { border: 1px solid var(--rule); border-left: 3px solid var(--harbor); background: var(--paper); border-radius: 0 var(--r) var(--r) 0; padding: var(--s4); max-width: 38rem; }
.slip-approved { border-left-color: var(--ink-2); }
.slip-done, .slip-declined, .slip-expired, .slip-gone { border-left-color: var(--rule); opacity: 0.88; }
.slip-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; font-size: 0.8125rem; color: var(--ink-2); margin-bottom: var(--s2); }
.slip-stamp { border: 1px solid var(--ink-2); border-radius: 2px; padding: 0 0.45rem; line-height: 1.5; font-weight: 600; color: var(--ink); }
.slip-stamp.ok { border-color: var(--rule); color: var(--ink-2); font-weight: 500; }
.slip-title { font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; margin: 0 0 var(--s1); }
.slip-why { margin: 0 0 var(--s3); color: var(--ink-2); font-size: 0.9375rem; }
.slip-body { margin: 0 0 var(--s3); padding: var(--s3) var(--s4); background: var(--fog); border-radius: var(--r); }
.slip-meta { margin: 0 0 var(--s1); font-size: 0.875rem; color: var(--ink-2); }
.slip-event { margin: 0 0 var(--s1); font-family: var(--serif); font-size: 1.1rem; font-weight: 700; }
.slip-text { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.55; margin-top: var(--s2); }
.slip-text p { margin: 0 0 var(--s2); white-space: pre-wrap; overflow-wrap: anywhere; }
.slip-text p:last-child { margin-bottom: 0; }
.slip-warn { margin: 0 0 var(--s3); padding: var(--s2) var(--s3); border: 1px solid var(--alert); border-radius: var(--r); color: var(--alert); font-size: 0.9375rem; }
.slip-fine { margin: var(--s3) 0 0; font-size: 0.8125rem; color: var(--ink-2); }
.slip-contact { margin: 0 0 var(--s3); }
.slip-contact input, .slip-edit input[type="text"], .slip-edit input[type="date"], .slip-edit input[type="time"], .slip-edit select, .slip-edit textarea {
  border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); padding: 0.55rem 0.7rem; min-height: 2.5rem; width: 100%;
}
.slip-edit textarea { line-height: 1.45; resize: vertical; }
.slip-contact input[type="email"], .slip-contact input[type="tel"] { border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); padding: 0.55rem 0.7rem; min-height: 2.5rem; width: 100%; }
.slip .row-acts { margin-top: var(--s3); }
.addrow4 { grid-template-columns: minmax(0, 1fr); }
.addrow select { border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); padding: 0.6rem 0.5rem; min-height: 2.75rem; }
.row .edit select { border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); padding: 0.55rem 0.5rem; min-height: 2.5rem; }

/* The two decisions sit side by side. Send is quiet until Approve has been pressed, then it takes over as the loud one. */
.slip-acts-main { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin: var(--s3) 0 var(--s2); }
@media (max-width: 380px) { .slip-acts-main { grid-template-columns: 1fr; } }
.slip-acts-main .btn { width: 100%; }
.slip .btn.is-off { border-style: dashed; color: var(--ink-2); font-weight: 500; }
.slip .btn.is-off:hover { border-color: var(--rule); }
.slip .btn.is-done { opacity: 1; border-color: var(--rule); color: var(--ink-2); background: transparent; cursor: default; }
.slip .btn.is-done::before { content: "\2713\00a0"; }
.slip-acts-more { display: flex; gap: var(--s2); flex-wrap: wrap; margin: 0 0 var(--s2); }
.slip-acts-more .btn { border-color: transparent; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.2em; }
.slip-acts-more .btn:hover { color: var(--ink); border-color: var(--rule); }
.btn-toggle[aria-pressed="true"] { color: var(--ink); border-color: var(--rule); text-decoration: none; }
.btn-toggle[aria-pressed="true"]::before { content: "\2713\00a0"; }
.slip .slip-fine { margin: var(--s2) 0 0; }
.slip-saved { border-left-style: double; border-left-width: 4px; }
.slip-remind { margin: var(--s3) 0; padding: var(--s3); border: 1px solid var(--rule); border-radius: var(--r); background: var(--fog); }
.remind-presets { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s3); }
.remind-pick { display: flex; gap: var(--s3); align-items: end; flex-wrap: wrap; }
.remind-pick .field { margin: 0; }
.remind-pick input { border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); padding: 0.45rem 0.6rem; min-height: 2.25rem; }
.slip-remind .row-acts { margin-top: var(--s2); gap: var(--s3); }
.slip-remind .linkbtn { min-height: 2.25rem; padding-inline: var(--s3); }
.slip-state { margin: 0 0 var(--s3); padding: var(--s2) var(--s3); border: 1px solid var(--rule); border-left: 3px solid var(--ink-2); border-radius: var(--r); font-size: 0.9375rem; }
.slip-state.failed, .slip-state.unknown { border-color: var(--alert); border-left-color: var(--alert); }
.slip-undo { display: grid; grid-template-columns: 1fr auto; gap: var(--s2) var(--s3); align-items: center; margin: var(--s3) 0; padding: var(--s3); border: 1px dashed var(--ink-2); border-radius: var(--r); background: var(--fog); }
.slip-undo p { margin: 0; }
.slip-undo .slip-count { font-family: var(--serif); font-size: 1.6rem; line-height: 1; text-align: right; }
.slip-undo .btn { grid-column: 1 / -1; }
@media (prefers-reduced-motion: no-preference) { .slip { transition: border-color 0.2s; } }

/* ── Off the record ─────────────────────────────────────────────────────── */
.dock-tools { display: flex; gap: var(--s2); align-items: center; margin-bottom: var(--s2); flex-wrap: wrap; }
/* On a phone the switches sit in one line that scrolls sideways, so the composer stays two rows tall. */
@media (max-width: 1079px) {
  .dock-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; }
  .dock-tools::-webkit-scrollbar { display: none; }
  .dock-tools .switch { flex: none; white-space: nowrap; font-size: 0.8125rem; min-height: 1.85rem; }
  .dock-tools .voice-state { flex: none; }
}
.composer .send { width: 2.9rem; min-height: 2.9rem; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.btn.mic.mic-first { width: 3.4rem; min-height: 3.4rem; padding: 0; justify-content: center; border-radius: 50%; }
.btn.mic.mic-first .mic-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn.mic.mic-first .mic-dot { width: 1.1rem; height: 1.1rem; }
.composer textarea { border-radius: 1.45rem; padding: 0.7rem 1rem; }
.switch { display: inline-flex; align-items: center; gap: var(--s2); background: none; border: 1px solid var(--rule); border-radius: 99px; padding: 0.15rem 0.7rem 0.15rem 0.35rem; font-size: 0.875rem; color: var(--ink-2); min-height: 2rem; }
.switch:hover { color: var(--ink); border-color: var(--ink-2); }
.switch-dot { width: 0.9rem; height: 0.9rem; border-radius: 50%; border: 2px solid var(--ink-2); display: inline-block; }
.switch[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); border-style: dashed; }
.switch[aria-pressed="true"] .switch-dot { background: var(--ink); border-color: var(--ink); }
.dock.off { border-top-style: dashed; border-top-color: var(--ink-2); background: var(--fog); }
.day.offline { border-top: 1px dashed var(--rule); padding-top: var(--s2); font-style: italic; }
/* A dashed bar marks what is off the record without moving the text it sits beside. */
.you.offrec .body { border-left-style: dashed; }
.turn.buddy.offrec > .body { position: relative; }
.turn.buddy.offrec > .body::before { content: ''; position: absolute; top: 0.2em; bottom: 0.2em; left: calc(-1 * var(--s3)); border-left: 2px dashed var(--ink-2); }
@media (min-width: 1080px) { .turn.buddy.offrec > .body::before { left: calc(var(--gutter) - var(--s3)); } }

/* Today: chores sit on one line with a quiet Done, so Approve stays the only loud button on the page. */
.row-today { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.row-today .row-main { flex: 1 1 14rem; }
.row-today .row-acts { margin-top: 0; }

/* The error line takes no room until it has something to say. */
.row .edit .form-error:empty { min-height: 0; margin: 0; }
.slip .form-error { min-height: 0; margin: 0; }
.slip .form-error:not(:empty) { margin: var(--s2) 0; }

/* ── Notifications ─────────────────────────────────────────────────────── */
.linkbtn { position: relative; }
.linkbtn .dot { position: absolute; top: 0.1rem; right: -0.1rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--alert); }
.linkbtn .dot[hidden] { display: none; }
.dlg-notify { max-height: calc(100dvh - 2rem); overflow-y: auto; }
.nt-sec { margin: var(--s4) 0; padding-top: var(--s3); border-top: 1px solid var(--rule); }
.nt-sec h3 { font-size: 1rem; margin: 0 0 var(--s2); }
.nt-times { list-style: none; margin: 0 0 var(--s2); padding: 0; display: grid; gap: var(--s1); }
.nt-times li { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.nt-time { font-variant-numeric: tabular-nums; }
.nt-add, .nt-quiet { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.nt-add input, .nt-quiet input { border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); color: var(--ink); padding: 0.5rem 0.65rem; min-height: 2.75rem; }
.nt-suggest { margin: var(--s2) 0 0; }
.nt-gap { margin-top: var(--s3); }
.nt-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.nt-recent li { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; }
.nt-recent li.is-new span:first-child { font-weight: 600; }
.nt-recent .when { color: var(--ink-2); font-size: 0.875rem; white-space: nowrap; }
.dlg-notify .check .hint { display: block; font-size: 0.875rem; color: var(--ink-2); margin-top: 0.15rem; }
@media (max-width: 380px) { .tools { gap: 0; } .linkbtn { padding-inline: var(--s1); } }
.nt-times .linkbtn { min-height: 2.25rem; padding-inline: var(--s3); }
.dlg-notify .seg label { min-height: 2.5rem; padding-right: var(--s3); }
.dlg-notify .seg input { width: 1.25rem; height: 1.25rem; accent-color: var(--harbor); }
.dlg-notify .check { padding-block: 0.4rem; margin-bottom: 0; }
.nt-acts { display: flex; gap: var(--s2); flex-wrap: wrap; }

/* ── Accounts ─────────────────────────────────────────────────────────────────────────────────── */
.panel-card { max-width: 40rem; margin: var(--s5) 0; padding: var(--s4); border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); }
.panel-card h2 { margin-top: 0; }
.panel-card h3 { font-family: var(--serif); font-size: 1.05rem; margin: var(--s4) 0 var(--s1); }
.panel-card .hint, .panel .hint { font-size: 0.875rem; color: var(--ink-2); max-width: 34rem; }
.panel-card .meta { font-size: 0.8125rem; color: var(--ink-2); margin: var(--s2) 0 0; }
.panel-card .panel-card { border: 0; padding: var(--s4) 0 0; margin: var(--s4) 0 0; border-top: 1px solid var(--rule); border-radius: 0; background: transparent; }
.acct-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.acct-head h3 { margin: 0; overflow-wrap: anywhere; }
.acct-group { border: 0; margin: 0 0 var(--s3); padding: 0; min-width: 0; }
.acct-group legend { padding: 0; margin-bottom: var(--s2); font-weight: 600; font-size: 0.9375rem; }
.acct-group .check .hint { display: block; margin-top: 0.1rem; }
.acct-ack { margin-bottom: var(--s4); }
.acct-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s3); }
.acct-log { margin-top: var(--s4); }
.acct-log summary { cursor: pointer; font-size: 0.9375rem; color: var(--ink-2); }
.acct-log .row .what { font-size: 0.9375rem; }
.acct-log .row .meta { display: block; margin-top: 0.1rem; }
.panel-card .row-main { align-items: flex-start; }
.panel-card .row-links { flex-wrap: wrap; margin-top: var(--s1); }
.panel-card input[readonly] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.875rem; width: 100%; }
.panel-card .addrow { margin: var(--s3) 0; }
.acct-addr-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: var(--s3) 0; }
.acct-addr { flex: 1 1 16rem; margin: 0; padding: 0.6rem 0.75rem; border: 1px solid var(--rule); border-radius: var(--r); background: var(--fog); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8125rem; overflow-wrap: anywhere; user-select: all; }

/* Tasks: the amount of a payment is the one thing the eye must land on first. */
.slip-amount { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.25rem; }
.slip-amount span { font-size: 0.95rem; font-weight: 400; color: var(--ink-2, inherit); }
.slip-rule { font-size: 0.85rem; color: var(--ink-2, inherit); margin: 0.5rem 0 0; }

/* Teaching it your voice: a level bar while it listens, a line to read. */
.enrol { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; margin-top: 0.35rem; }
.enrol .level { flex: 1 1 4rem; height: 0.5rem; border-radius: 99px; background: var(--line, rgba(127,127,127,0.25)); position: relative; overflow: hidden; min-width: 4rem; }
.enrol .level::after { content: ''; position: absolute; inset: 0; width: calc(var(--level, 0) * 100%); background: var(--harbor); transition: width 60ms linear; }
.enrol-line { margin: 0.4rem 0 0; font-weight: 600; min-height: 1.3em; }
.mic.is-waiting { border-style: dashed; }
.btn.mic.mic-first.is-waiting { background: transparent; color: var(--harbor); }
.btn.mic.mic-first.is-waiting .mic-dot { background: var(--harbor); animation: pulse 2.4s ease-in-out infinite; }

/* How are you today, really? One tap, once a day. */
.ask { border: 1px solid var(--rule); border-radius: 12px; padding: var(--s3) var(--s4); margin: 0 0 var(--s4); }
.ask-q { margin: 0 0 var(--s2); font-family: var(--serif); font-size: 1.1rem; }
.ask-row { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
/* What the friend has noticed, with the evidence beside each line. */
.noticed { margin-top: var(--s5); }
.noticed .check .hint { display: block; margin-top: 0.15rem; font-size: 0.875rem; color: var(--ink-2); }
.noticed-row { align-items: flex-start; gap: var(--s3); }
.noticed-row > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.noticed-row .hint { font-size: 0.875rem; color: var(--ink-2); }
.noticed h3 { font-size: 1rem; margin: var(--s4) 0 var(--s2); }
/* The recovery phrase: big, spaced, and only ever shown once. */
.phrase { font-family: var(--serif); font-size: 1.25rem; line-height: 1.6; letter-spacing: 0.01em; padding: var(--s3); border: 1px dashed var(--rule); border-radius: 10px; user-select: all; overflow-wrap: anywhere; }
.restore-wrap { margin-top: var(--s4); }
.restore { display: grid; gap: var(--s2); margin-top: var(--s2); max-width: 34rem; }

/* The one-time "put it on your home screen" line. */
.install { flex-basis: 100%; display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; padding-top: var(--s2); border-top: 1px dashed var(--rule); font-size: 0.9rem; }

/* The morning call, in Settings. */
.alarm-row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; margin: var(--s2) 0; }
.days { display: flex; gap: var(--s1); flex-wrap: wrap; }
.daypick { display: inline-flex; gap: 0.25rem; align-items: center; font-size: 0.875rem; }
.seg-wrap button[role=radio] { font: inherit; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: inherit; cursor: pointer; }
.seg-wrap button[role=radio][aria-checked=true] { background: var(--harbor); color: var(--harbor-ink); border-color: var(--harbor); }
.where { grid-column: 1 / -1; display: grid; gap: var(--s2); }
.devices { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.devices .dev { display: inline-flex; gap: var(--s2); align-items: center; font-weight: 400; }
.label-sm { font-size: 0.875rem; color: var(--ink-2); }
/* The words get the whole first line; the date, time, repeat and Add share the second. Five on one line squeezed the text box to nothing. */
.addrow4 input[type="text"] { grid-column: 1 / -1; width: 100%; }
@media (min-width: 560px) { .addrow4 { grid-template-columns: auto auto minmax(0, 1fr) auto; } }
.guest-chip { display: inline-flex; gap: var(--s2); align-items: center; font-size: 0.875rem; color: var(--ink-2); }
.turn.guest .who { color: var(--ink-2); }
.history-section { margin-top: var(--s6); }
.history { margin-top: var(--s3); }
.history-head { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; margin-bottom: var(--s2); }
.history-head h3 { margin: 0 auto 0 0; }
.linkish { font: inherit; color: var(--harbor); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.15em; }
.exch .said { margin: 0 0 var(--s1); }
.exch .said.friend { color: var(--ink-2); }
.who-inline { font-weight: 600; }
.hands { margin-bottom: var(--s6); }
.hand .row-main { display: grid; gap: var(--s1); }
.hand-switches { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }
.hand-switch { display: inline-flex; gap: var(--s1); align-items: center; font-weight: 400; font-size: 0.9rem; }
.hand-switches .linkbtn { align-self: center; }
pre.code { font: 0.8125rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--paper-2, var(--paper)); border: 1px solid var(--rule); border-radius: 6px; padding: var(--s2) var(--s3); overflow-x: auto; white-space: pre; margin: var(--s2) 0; }
.voice-picks .pick { font-size: 0.875rem; }
/* The account's own on/off: a real toggle, at the right of the card's header. */
.acct-switch { margin-left: auto; display: inline-flex; align-items: center; gap: var(--s2); cursor: pointer; font-size: 0.875rem; color: var(--ink-2); border: 0; padding: 0; background: none; min-height: 2rem; }
.acct-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.acct-switch .switch-track { width: 2.6rem; height: 1.5rem; border-radius: 99px; background: var(--rule); position: relative; transition: background 0.15s; flex: none; }
.acct-switch .switch-track::after { content: ''; position: absolute; top: 0.2rem; left: 0.2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.acct-switch input:checked + .switch-track { background: var(--harbor); }
.acct-switch input:checked + .switch-track::after { transform: translateX(1.1rem); }
.acct-switch input:focus-visible + .switch-track { outline: 2px solid var(--ink); outline-offset: 2px; }
.acct-switch input:disabled + .switch-track { opacity: 0.5; }
.chip-off { background: var(--rule); color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .acct-switch .switch-track, .acct-switch .switch-track::after { transition: none; } }
.setup .form-error:empty { display: none; }
.operator-note { margin-top: var(--s3); font-size: 0.875rem; color: var(--ink-2); }
.operator-note summary { cursor: pointer; color: var(--ink); }
.operator-note ol { padding-left: 1.25rem; }
.operator-note li { margin: var(--s1) 0; }

/* What helps you, and favourites brought in from a downloaded file (Memory) */
.comfort-section { margin-top: var(--s6); }
.comfort-section h3 { margin: var(--s4) 0 var(--s2); font-size: 1rem; }
.taste-list { max-height: 22rem; overflow: auto; border: 1px solid var(--rule); border-radius: 8px; padding: var(--s2) var(--s3); margin-top: var(--s2); }
.taste-list .check-row { display: flex; gap: var(--s2); align-items: baseline; padding: 0.3rem 0; line-height: 1.35; }

/* ══ 0.9.1: easier to use, on a phone first ══════════════════════════════════════════════════════
   Layout and look only. The header and the tab bar keep clear of the iPhone's status bar and home
   indicator, everything you tap is thumb-sized, and what is on reads as on at a glance. */
:root {
  --r: 10px;
  --tap: 2.75rem;
  --tabbar: calc(3.85rem + env(safe-area-inset-bottom, 0px));
  --tint: #e3e9f3;
  --tint: color-mix(in srgb, var(--harbor) 13%, var(--paper));
}
:root[data-theme="dark"] {
  --tint: #1d3040;
  --tint: color-mix(in srgb, var(--harbor) 20%, var(--paper));
}
html { -webkit-tap-highlight-color: transparent; }
.icon { flex: none; display: block; }

/* Header: stays put, below the clock and battery, with two round buttons a thumb can find. */
@media (max-width: 1079px) {
  .page { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  .top {
    position: sticky; top: 0;
    background: var(--paper);
    padding: calc(var(--s2) + env(safe-area-inset-top, 0px)) var(--s4) var(--s2) var(--gutter);
    gap: var(--s1) var(--s3);
  }
  .brand { font-size: 1.2rem; }
  .tools { gap: 0; }
  .tool { width: var(--tap); height: var(--tap); padding: 0; display: inline-grid; place-items: center; border-radius: 50%; color: var(--ink); text-decoration: none; }
  .tool:active { background: var(--fog); }
  .tool-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tool .dot { top: 0.55rem; right: 0.6rem; width: 0.55rem; height: 0.55rem; box-shadow: 0 0 0 2px var(--paper); }
  .welcome { padding-top: var(--s4); }
}
@media (min-width: 1080px) {
  .tools { align-items: stretch; gap: 2px; }
  .tool { display: flex; align-items: center; gap: var(--s3); width: 100%; padding: var(--s2) var(--s3); border-radius: var(--r); text-decoration: none; text-align: left; }
  .tool:hover { background: var(--paper); }
  .tool .icon { width: 18px; height: 18px; }
  .tool .dot { position: static; margin-left: auto; }
  .tab { justify-content: flex-start; gap: var(--s3); }
  .tab .icon { width: 18px; height: 18px; }
  .tab-count { margin-left: auto; }
}

/* Tab bar: a picture and a word each; where you are sits on a soft pill. */
@media (max-width: 1079px) {
  .tabs {
    padding: 0.3rem max(0.4rem, env(safe-area-inset-left, 0px)) calc(0.3rem + env(safe-area-inset-bottom, 0px)) max(0.4rem, env(safe-area-inset-right, 0px));
    background: var(--paper);
  }
  .tab { position: relative; isolation: isolate; min-height: 3.25rem; padding: 0.3rem 0.1rem 0.2rem; gap: 0.2rem; font-size: 0.6875rem; letter-spacing: 0.01em; justify-content: center; }
  .tab .icon { width: 23px; height: 23px; }
  .tab[aria-current="page"] { color: var(--ink); }
  .tab[aria-current="page"]::before { content: ""; position: absolute; z-index: -1; top: 0.15rem; left: 50%; width: 3.5rem; height: 1.95rem; margin-left: -1.75rem; border-radius: 99px; background: var(--tint); }
  .tab[aria-current="page"] .icon { color: var(--harbor); }
  .tab-count { position: absolute; top: 0.1rem; left: calc(50% + 0.45rem); min-width: 1.05rem; text-align: center; font-size: 0.625rem; line-height: 1.05rem; padding: 0 0.3rem; box-shadow: 0 0 0 2px var(--paper); }
}

/* The composer: what it is doing on a line of its own, switches that show on from off, room for a thumb. */
.voice-state { display: block; margin: 0 0 var(--s2); line-height: 1.35; }
.voice-state:empty { display: none; }
.switch { transition: background-color 0.12s, border-color 0.12s; }
.switch[aria-pressed="true"] { background: var(--tint); border-color: var(--harbor); border-style: solid; color: var(--ink); }
.switch[aria-pressed="true"] .switch-dot { background: var(--harbor); border-color: var(--harbor); }
@media (max-width: 1079px) {
  .dock { padding-inline: var(--s4); }
  .dock-tools { margin-inline: calc(-1 * var(--s4)); padding-inline: var(--s4); padding-block: 2px; gap: 0.4rem; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.75rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 1.75rem), transparent); }
  .dock-tools .switch { min-height: 2.25rem; padding: 0.2rem 0.8rem 0.2rem 0.5rem; font-size: 0.84rem; }
  .dock-tools > :last-child { margin-right: 1.5rem; }
  .fineprint { font-size: 0.75rem; line-height: 1.3; margin-top: 0.4rem; }
}
.composer textarea { border-color: var(--rule); transition: border-color 0.12s; }

/* Thread: your words sit on a tint, so the two voices are told apart at a glance. */
.you > .body { background: var(--tint); border-color: transparent; }
.you.offrec .body { border: 1px dashed var(--ink-2); }
.turn { margin-block: 1.1rem; }

/* Buttons and rows: pressed feels pressed; small links are big enough to hit. */
.btn { transition: transform 0.08s, border-color 0.12s, filter 0.12s; }
.btn:active:not([disabled]) { transform: scale(0.98); }
@media (prefers-reduced-motion: reduce) { .btn, .switch, .composer textarea { transition: none; } .btn:active:not([disabled]) { transform: none; } }
@media (pointer: coarse) {
  .row-links .linkbtn, .linkish, .note-acts button { min-height: var(--tap); display: inline-flex; align-items: center; padding-inline: var(--s2); }
  .row-main { align-items: center; }
  .row-links { gap: 0; margin-right: calc(-1 * var(--s2)); }
  .check input { width: 1.4rem; height: 1.4rem; }
}
.panel h1 { font-size: 1.85rem; }
.panel { padding-top: var(--s4); }
.setup-card, .ask { border-radius: 16px; }
.taste-list { border-radius: var(--r); }

/* Dialogs (Settings, Notifications): softer on a wide screen; a sheet from the bottom on a phone. */
dialog { border-radius: 16px; }
@media (max-width: 640px) {
  dialog {
    width: 100vw; max-width: 100vw; margin: auto 0 0; border-inline: 0; border-bottom: 0; border-radius: 20px 20px 0 0;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 1.25rem);
    padding: var(--s5) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom, 0px));
  }
  .dlg-notify { max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 1.25rem); }
  .dialog-acts .btn { flex: 1 1 auto; }
}

/* One-time hints (home screen, "let it hear you"): a soft card that scrolls away, not a block pinned to the top. */
.install { border-top: 0; background: var(--tint); border-radius: 12px; padding: var(--s3) var(--s4); margin-top: var(--s2); font-size: 0.875rem; line-height: 1.4; gap: var(--s2) var(--s3); }
.install .btn { min-height: 2.4rem; padding-block: 0.3rem; }
@media (max-width: 1079px) { .top:has(.install) { position: relative; } }
@media (min-width: 1080px) {
  .install { flex: none; flex-direction: column; align-items: flex-start; padding: var(--s3); }
  .tool { padding-left: calc(var(--s3) + 3px); }
}

/* ══ 0.9.3: alive ══════════════════════════════════════════════════════════════════════════════
   Looks and motion only; nothing here changes what anything does. One idea carries it: the orb is
   the friend. It greets you on the first screen, sits in the header, and is the button you talk to,
   where it shows what it is doing: resting, waiting for its name, listening, working it out,
   speaking. Everything else moves only in answer to something you did, and nothing moves when the
   device asks for less motion. */
:root {
  --orb-hi: #a9c6ff;
  --orb-mid: #2e5aac;
  --orb-lo: #16254d;
  --ember-hi: #ffc4b0;
  --ember: #dd5139;
  --ember-lo: #7a1f1b;
  --glass: rgba(243, 246, 244, 0.9);
  --glass: color-mix(in srgb, var(--paper) 90%, transparent);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --lift: 0 1px 2px rgba(23, 38, 46, 0.05), 0 10px 24px -14px rgba(23, 38, 46, 0.35);
  --lift-2: 0 2px 6px rgba(23, 38, 46, 0.07), 0 24px 48px -20px rgba(23, 38, 46, 0.45);
  --ring: rgba(46, 90, 172, 0.22);
}
:root[data-theme="dark"] {
  --orb-hi: #b9cfff;
  --orb-mid: #3c68c4;
  --orb-lo: #14224a;
  --ember-hi: #ffd2c2;
  --ember: #ea6c55;
  --ember-lo: #6d231f;
  --glass: rgba(19, 34, 42, 0.88);
  --glass: color-mix(in srgb, var(--paper) 88%, transparent);
  --lift: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 24px -14px rgba(0, 0, 0, 0.75);
  --lift-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 24px 48px -20px rgba(0, 0, 0, 0.85);
  --ring: rgba(134, 168, 239, 0.28);
}
::selection { background: var(--ring); }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(10px) scale(0.94); } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes halo { 0%, 100% { opacity: 0.3; transform: scale(0.92); } 50% { opacity: 0.75; transform: scale(1.06); } }
@keyframes halo-talk { 0%, 100% { opacity: 0.45; transform: scale(0.94); } 30% { opacity: 1; transform: scale(1.14); } 55% { opacity: 0.6; transform: scale(1); } 75% { opacity: 0.95; transform: scale(1.1); } }
@keyframes ripple { 0% { opacity: 0.75; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes ring-out { 0% { opacity: 0.5; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.55); } }
@keyframes bars {
  0%, 100% { background-size: 0.22rem 35%, 0.22rem 100%, 0.22rem 55%; }
  25% { background-size: 0.22rem 90%, 0.22rem 45%, 0.22rem 100%; }
  50% { background-size: 0.22rem 50%, 0.22rem 85%, 0.22rem 30%; }
  75% { background-size: 0.22rem 100%, 0.22rem 35%, 0.22rem 80%; }
}
@keyframes typing {
  0%, 60%, 100% { background-position: 0 70%, 50% 70%, 100% 70%; }
  15% { background-position: 0 10%, 50% 70%, 100% 70%; }
  30% { background-position: 0 70%, 50% 10%, 100% 70%; }
  45% { background-position: 0 70%, 50% 70%, 100% 10%; }
}
@keyframes sweep-x { from { background-position: -67% 0; } to { background-position: 167% 0; } }
@keyframes tab-pop { 0% { transform: translateY(2px) scale(0.8); } 60% { transform: translateY(-2px) scale(1.12); } 100% { transform: none; } }
@keyframes badge-in { from { transform: scale(0); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--alert); opacity: 1; } 70%, 100% { box-shadow: 0 0 0 0.5rem transparent; } }
@keyframes orb-in { from { opacity: 0; transform: scale(0.4); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes sheet-up { from { transform: translateY(100%); } }

/* ── The ground ─────────────────────────────────────────────────────────── */
@media (min-width: 1080px) {
  body {
    background:
      radial-gradient(52rem 36rem at 0% 0%, color-mix(in srgb, var(--harbor) 10%, transparent), transparent 70%),
      radial-gradient(44rem 34rem at 100% 100%, color-mix(in srgb, var(--harbor) 8%, transparent), transparent 70%),
      var(--fog);
    background-attachment: fixed;
  }
  html { scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
}
.page > .main { animation: fade-in 0.4s ease-out; }

/* ── The orb in the header ──────────────────────────────────────────────── */
.mono {
  width: 2.1rem; height: 2.1rem;
  background: radial-gradient(circle at 34% 28%, #a9c6ff 0%, #2e5aac 48%, #16254d 100%);
  color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 5px 10px -5px rgba(46, 90, 172, 0.9);
}

/* Glass: the conversation passes softly under the header, the composer and the tab bar. The header's glass is a
   layer of its own, because a blurred header would capture the fixed tab bar inside it. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .dock { background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); }
  @media (max-width: 1079px) {
    .top { background: transparent; }
    .top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); }
    .tabs { background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); }
  }
}

/* ── Tabs: where you are slides to where you tapped ─────────────────────── */
.tab { transition: color 0.2s; }
.tab .icon { transition: transform 0.3s var(--spring), color 0.2s; }
.tab:active .icon { transform: scale(0.86); }
.tab[aria-current="page"] .icon { animation: tab-pop 0.42s var(--spring); }
.tab[aria-current="page"] .icon path { stroke-width: 2.1; }
.tab-count:not(:empty) { animation: badge-in 0.4s var(--spring) backwards; }
.tool { transition: background-color 0.15s, transform 0.2s var(--spring); }
.tool:active { transform: scale(0.9); }
.tool .dot:not([hidden]) { animation: ping 2.2s ease-out infinite; }
@supports selector(:has(*)) {
  .tabs { --i: 0; }
  .tabs:has(.tab:nth-child(2)[aria-current]) { --i: 1; }
  .tabs:has(.tab:nth-child(3)[aria-current]) { --i: 2; }
  .tabs:has(.tab:nth-child(4)[aria-current]) { --i: 3; }
  .tabs:has(.tab:nth-child(5)[aria-current]) { --i: 4; }
  .tabs:has(.tab:nth-child(6)[aria-current]) { --i: 5; }
  @media (max-width: 1079px) {
    .tabs { --pl: max(0.4rem, env(safe-area-inset-left, 0px)); --pr: max(0.4rem, env(safe-area-inset-right, 0px)); }
    .tabs::before {
      content: ""; position: absolute; top: 0.45rem; width: 3.5rem; height: 1.95rem; border-radius: 99px; background: var(--tint);
      left: calc(var(--pl) + (100% - var(--pl) - var(--pr)) * (var(--i) * 2 + 1) / 12 - 1.75rem);
      transition: left 0.38s var(--ease);
    }
    .tab[aria-current="page"]::before { content: none; }
  }
  @media (min-width: 1080px) {
    .tabs { position: relative; }
    .tab { position: relative; height: 2.5rem; }
    .tabs::before {
      content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2.5rem; border-radius: 0 var(--r) var(--r) 0;
      background: var(--paper); box-shadow: inset 3px 0 0 var(--harbor), var(--lift);
      transform: translateY(calc(var(--i) * (2.5rem + 2px))); transition: transform 0.34s var(--ease);
    }
    .tab[aria-current="page"] { background: transparent; border-left-color: transparent; }
  }
}
@media (min-width: 1080px) {
  .tab:not([aria-current="page"]):hover .icon { transform: translateX(2px); }
}

/* ── The thread ─────────────────────────────────────────────────────────── */
.day:not(.ai-notice):not(.offline) {
  width: fit-content; margin: var(--s5) auto var(--s3); padding: 0.15rem 0.75rem; border-radius: 99px;
  background: var(--fog); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.01em;
}
/* Your words: the colour of the orb you speak to. A guest's words, and words off the record, stay plain. */
.you > .body {
  background: var(--harbor); color: var(--harbor-ink); border-color: transparent; border-radius: 20px 20px 6px 20px;
  box-shadow: 0 10px 18px -14px var(--harbor);
}
.you.guest > .body { background: var(--tint); color: var(--ink); box-shadow: none; }
.you.offrec .body { background: transparent; color: var(--ink); border: 1px dashed var(--ink-2); box-shadow: none; }
.turn.enter.you > .body { transform-origin: 100% 100%; animation: bubble-in 0.36s var(--spring) backwards; }
.turn.enter.buddy > .who, .turn.enter.buddy > .body { animation: rise 0.45s var(--ease) backwards; }
.turn.enter.buddy > .body { animation-delay: 0.06s; }
/* Still writing: three dots, under whatever has arrived so far. */
.pending .body::after {
  content: ""; display: block; width: 2.1em; height: 0.9em; margin: 0.25em 0 0; vertical-align: baseline; opacity: 0.55;
  background:
    radial-gradient(circle closest-side, currentColor 88%, transparent) 0 70% / 0.42em 0.42em no-repeat,
    radial-gradient(circle closest-side, currentColor 88%, transparent) 50% 70% / 0.42em 0.42em no-repeat,
    radial-gradient(circle closest-side, currentColor 88%, transparent) 100% 70% / 0.42em 0.42em no-repeat;
  animation: typing 1.15s ease-in-out infinite;
}
.pending .body:empty::after { margin-top: 0.1em; }
.empty::before {
  content: ""; display: block; width: 4.5rem; height: 4.5rem; margin-bottom: var(--s4); border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, var(--orb-hi) 0%, var(--orb-mid) 46%, var(--orb-lo) 100%);
  box-shadow: 0 16px 34px -16px rgba(46, 90, 172, 0.8), inset 0 -8px 16px rgba(0, 0, 0, 0.25);
  animation: breathe 5s ease-in-out infinite;
}

/* ── The orb you talk to ────────────────────────────────────────────────── */
.btn.mic.mic-first {
  position: relative; isolation: isolate; overflow: visible; border: 0; width: 3.5rem; min-height: 3.5rem; color: #fff;
  background: radial-gradient(circle at 34% 28%, var(--orb-hi) 0%, var(--orb-mid) 46%, var(--orb-lo) 100%);
  box-shadow: 0 10px 22px -10px rgba(46, 90, 172, 0.85), inset 0 -8px 14px rgba(0, 0, 0, 0.26), inset 0 2px 2px rgba(255, 255, 255, 0.35);
  transition: transform 0.2s var(--spring), filter 0.2s;
}
.btn.mic.mic-first:hover { filter: brightness(1.07); }
.btn.mic.mic-first:active { transform: scale(0.93); }
.btn.mic.mic-first.is-waiting, .btn.mic.mic-first.is-speaking { color: #fff; border: 0; background: radial-gradient(circle at 34% 28%, var(--orb-hi) 0%, var(--orb-mid) 46%, var(--orb-lo) 100%); }
.btn.mic.mic-first.is-listening {
  color: #fff; border: 0;
  background: radial-gradient(circle at 34% 28%, var(--ember-hi) 0%, var(--ember) 46%, var(--ember-lo) 100%);
  box-shadow: 0 10px 22px -10px rgba(221, 81, 57, 0.85), inset 0 -8px 14px rgba(0, 0, 0, 0.24), inset 0 2px 2px rgba(255, 255, 255, 0.35);
}
/* What is inside it: a microphone to tap; a square to tap when you are done; bars while it talks. */
.btn.mic.mic-first .mic-glyph { width: 1.55rem; height: 1.55rem; transition: opacity 0.2s, transform 0.3s var(--spring); }
.btn.mic.mic-first .mic-glyph path { stroke-width: 1.9; }
.btn.mic.mic-first .mic-dot {
  position: absolute; left: 50%; top: 50%; width: 1rem; height: 1rem; margin: -0.5rem 0 0 -0.5rem; border-radius: 0.28rem;
  background: #fff; opacity: 0; transform: scale(0.4); animation: none; transition: opacity 0.2s, transform 0.3s var(--spring);
}
.btn.mic.mic-first.is-listening .mic-glyph, .btn.mic.mic-first.is-speaking .mic-glyph { opacity: 0; transform: scale(0.5); }
.btn.mic.mic-first.is-waiting .mic-dot { background: #fff; animation: none; }
.btn.mic.mic-first.is-listening .mic-dot { background: #fff; opacity: 1; transform: none; animation: none; }
.btn.mic.mic-first.is-speaking .mic-dot {
  width: 1.1rem; height: 1.2rem; margin: -0.6rem 0 0 -0.55rem; border-radius: 0; opacity: 1; transform: none;
  background:
    linear-gradient(#fff, #fff) 0 50% / 0.22rem 35% no-repeat,
    linear-gradient(#fff, #fff) 50% 50% / 0.22rem 100% no-repeat,
    linear-gradient(#fff, #fff) 100% 50% / 0.22rem 55% no-repeat;
  animation: bars 0.95s ease-in-out infinite;
}
/* The light around it. Resting: a slow breath. Waiting for its name: a ring now and then. Listening: ripples.
   Working it out: a light going round. Speaking: the breath quickens. */
.btn.mic.mic-first::before, .btn.mic.mic-first::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; pointer-events: none; opacity: 0; }
.btn.mic.mic-first::before {
  inset: -24%;
  background: radial-gradient(circle closest-side, transparent 64%, var(--ring) 69%, transparent 100%);
  animation: halo 4.8s ease-in-out infinite;
}
.btn.mic.mic-first.is-waiting::after { border: 1.5px solid var(--harbor); animation: ring-out 3s ease-out infinite; }
.btn.mic.mic-first.is-listening::before, .btn.mic.mic-first.is-listening::after { inset: 0; background: none; border: 2px solid var(--ember); animation: ripple 1.7s ease-out infinite; }
.btn.mic.mic-first.is-listening::after { animation-delay: 0.85s; }
.btn.mic.mic-first.is-speaking::before { animation: halo-talk 1.4s ease-in-out infinite; }
.btn.mic.mic-first.is-speaking::after { border: 1.5px solid var(--harbor); animation: ring-out 1.8s ease-out infinite; }
.btn.mic.mic-first.is-thinking::before {
  inset: -5px; opacity: 1;
  background: conic-gradient(from 0deg, transparent 0 35%, var(--harbor) 95%, transparent);
  -webkit-mask: radial-gradient(circle closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(circle closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  animation: spin 0.9s linear infinite;
}

/* The composer answers too: a glow rises from the orb, the line of words below the switches wears a dot of the same
   colour, and a light runs along the top while it is working something out. */
.dock { --live: transparent; transition: border-color 0.3s; }
.dock::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 9rem; pointer-events: none; opacity: 0; transition: opacity 0.6s ease;
  background: radial-gradient(70% 100% at 72% 100%, color-mix(in srgb, var(--live) 26%, transparent), transparent 72%);
}
.dock::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: linear-gradient(90deg, transparent, var(--live), transparent) 0 0 / 40% 100% no-repeat;
}
@supports selector(:has(*)) {
  .dock:has(.mic.is-waiting), .dock:has(.mic.is-speaking), .dock:has(.mic.is-thinking), .main:has(.thread[aria-busy="true"]) ~ .dock { --live: var(--harbor); }
  .dock:has(.mic.is-listening) { --live: var(--ember); border-top-color: var(--ember); }
  .dock:has(.mic.is-listening)::before, .dock:has(.mic.is-speaking)::before { opacity: 1; }
  .dock:has(.mic.is-thinking)::after, .main:has(.thread[aria-busy="true"]) ~ .dock:not(:has(.mic.is-speaking)):not(:has(.mic.is-listening))::after { opacity: 1; animation: sweep-x 1.3s ease-in-out infinite; }
  .dock:has(.mic.is-waiting) .voice-state::before, .dock:has(.mic.is-listening) .voice-state::before, .dock:has(.mic.is-thinking) .voice-state::before, .dock:has(.mic.is-speaking) .voice-state::before {
    content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.45rem; border-radius: 50%; background: var(--live); vertical-align: 0.04em;
  }
  .dock:has(.mic.is-listening) .voice-state::before, .dock:has(.mic.is-thinking) .voice-state::before { animation: glow 1.1s ease-in-out infinite; }
  /* A typed message being answered: the orb shows it is working, the same as for a spoken one. */
  .main:has(.thread[aria-busy="true"]) ~ .dock .btn.mic.mic-first:not(.is-speaking):not(.is-listening)::before {
    inset: -5px; opacity: 1;
    background: conic-gradient(from 0deg, transparent 0 35%, var(--harbor) 95%, transparent);
    -webkit-mask: radial-gradient(circle closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
    mask: radial-gradient(circle closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
    animation: spin 0.9s linear infinite;
  }
}

/* Typing lights up Send; with nothing typed it steps back. Stop sits where Send was. */
.composer .send { transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s, transform 0.25s var(--spring); }
.composer .send svg { transition: transform 0.25s var(--spring); }
.voice-first .composer textarea:not(:placeholder-shown) ~ .send { background: var(--harbor); color: var(--harbor-ink); border-color: var(--harbor); transform: scale(1.06); }
.composer textarea:not(:placeholder-shown) ~ .send svg { transform: translateY(-1px); }
.dock:not(.voice-first) .composer textarea:placeholder-shown ~ .send { opacity: 0.55; }
.voice-first .composer > .btn:not(.mic):not(.send) { order: 3; }
.composer > .btn:not(.mic):not(.send) { border-radius: 99px; border-color: var(--alert); color: var(--alert); }
.composer textarea { transition: border-color 0.15s, box-shadow 0.15s; }
.composer textarea:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px var(--ring); }

/* Switches: the dot fills with a small spring. */
.switch { transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.2s var(--spring); }
.switch:active { transform: scale(0.96); }
.switch-dot { transition: background-color 0.15s, border-color 0.15s, transform 0.3s var(--spring); }
.switch[aria-pressed="true"] .switch-dot { transform: scale(1.12); box-shadow: 0 0 0 3px var(--ring); }

/* ── Screens arrive; they do not blink in ───────────────────────────────── */
.panel.enter > * { animation: rise 0.5s var(--ease) backwards; }
.panel.enter > :nth-child(2) { animation-delay: 0.05s; }
.panel.enter > :nth-child(3) { animation-delay: 0.1s; }
.panel.enter > :nth-child(4) { animation-delay: 0.15s; }
.panel.enter > :nth-child(5) { animation-delay: 0.2s; }
.panel.enter > :nth-child(n + 6) { animation-delay: 0.25s; }
.panel h1 { letter-spacing: -0.015em; }
.panel h1:focus, .panel h1:focus-visible { outline: none; }

/* ── Cards, buttons, fields ─────────────────────────────────────────────── */
.slip { border-radius: 14px; border-left-width: 4px; box-shadow: var(--lift); }
.slip-body { border-radius: 10px; }
/* A draft with one decision gets one full-width button, not half a row. */
.slip-acts-main > .btn:only-child { grid-column: 1 / -1; }
.slip-stamp { border-radius: 4px; transform: rotate(-1.5deg); }
.panel-card { border-radius: 14px; box-shadow: var(--lift); }
.panel-card .panel-card { box-shadow: none; }
.ask { background: var(--paper); box-shadow: var(--lift); }
.summary { border-radius: 0 10px 10px 0; }
.btn { border-radius: 12px; transition: transform 0.12s var(--ease), border-color 0.15s, background-color 0.15s, box-shadow 0.2s, filter 0.15s; }
.btn-sm { border-radius: 10px; }
.btn-big { border-radius: 14px; }
.btn:active:not([disabled]) { transform: scale(0.97); }
.btn-primary { box-shadow: 0 10px 18px -14px var(--harbor), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.slip .btn.is-off, .slip .btn.is-done { box-shadow: none; }
.pick { transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.2s var(--spring); }
.pick:active { transform: scale(0.95); }
.field input, .field select, .field textarea, .addrow input, .addrow select, .row .edit input, .slip-edit input, .slip-edit select, .slip-edit textarea, .slip-contact input, .nt-add input, .nt-quiet input, .remind-pick input { transition: border-color 0.15s, box-shadow 0.15s; }
:is(.field, .addrow, .edit, .slip-edit, .slip-contact, .nt-add, .nt-quiet, .remind-pick, .step-body) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px var(--ring); }

/* A tick box that answers the tap. The account switches keep their own shape. */
:where(input[type="checkbox"]) {
  -webkit-appearance: none; appearance: none; flex: none; width: 1.35rem; height: 1.35rem; margin: 0; cursor: pointer;
  border: 1.5px solid var(--ink-2); border-radius: 7px; background: var(--paper);
  display: inline-grid; place-content: center; vertical-align: -0.28em;
  transition: background-color 0.15s, border-color 0.15s, transform 0.2s var(--spring);
}
:where(input[type="checkbox"])::after {
  content: ""; width: 0.75rem; height: 0.75rem; background: var(--harbor-ink);
  clip-path: polygon(13% 52%, 0 66%, 38% 100%, 100% 24%, 86% 11%, 37% 71%);
  transform: scale(0); transition: transform 0.22s var(--spring);
}
:where(input[type="checkbox"]):checked { background: var(--harbor); border-color: var(--harbor); }
:where(input[type="checkbox"]):checked::after { transform: scale(1); }
:where(input[type="checkbox"]):active { transform: scale(0.9); }
:where(input[type="checkbox"]):disabled { opacity: 0.5; cursor: not-allowed; }

:where(input[type="radio"]) {
  -webkit-appearance: none; appearance: none; flex: none; width: 1.3rem; height: 1.3rem; margin: 0; cursor: pointer;
  border: 1.5px solid var(--ink-2); border-radius: 50%; background: var(--paper);
  display: inline-grid; place-content: center; vertical-align: -0.25em;
  transition: border-color 0.15s, transform 0.2s var(--spring);
}
:where(input[type="radio"])::after { content: ""; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--harbor); transform: scale(0); transition: transform 0.22s var(--spring); }
:where(input[type="radio"]):checked { border-color: var(--harbor); }
:where(input[type="radio"]):checked::after { transform: scale(1); }
:where(input[type="radio"]):active { transform: scale(0.9); }

/* ── Sheets: they come up from where your thumb is, and Done stays in reach ── */
dialog { box-shadow: var(--lift-2); }
dialog[open] { animation: dialog-in 0.3s var(--ease); }
dialog[open]::backdrop { animation: fade-in 0.3s ease-out; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.is-again[open], dialog.is-again[open]::backdrop { animation: none; }
.dlg-settings > .dialog-acts, .dlg-notify > .dialog-acts {
  position: sticky; bottom: calc(-1 * var(--s5)); z-index: 2; margin: var(--s4) calc(-1 * var(--s5)) 0; padding: var(--s3) var(--s5);
  background: var(--paper); border-top: 1px solid var(--rule);
}
@media (max-width: 640px) {
  dialog[open] { animation: sheet-up 0.38s var(--ease); }
  dialog.is-again[open] { animation: none; }
  dialog::before { content: ""; display: block; width: 2.6rem; height: 4px; margin: calc(-1 * var(--s3)) auto var(--s3); border-radius: 99px; background: var(--rule); }
  .dlg-settings > .dialog-acts, .dlg-notify > .dialog-acts {
    bottom: calc(-1 * var(--s5) - env(safe-area-inset-bottom, 0px)); margin-inline: calc(-1 * var(--s4));
    padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom, 0px));
  }
}

/* ── The first screen: the orb arrives, then the words, then the card ───── */
.orb::before, .orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--harbor); opacity: 0; pointer-events: none; animation: ring-out 4s ease-out infinite; }
.orb::after { animation-delay: 2s; }
.page-welcome .orb { animation: orb-in 0.9s var(--spring) backwards, breathe 5s 0.9s ease-in-out infinite; }
.page-welcome .hero h1 { animation: rise 0.7s 0.12s var(--ease) backwards; }
.page-welcome .intro { animation: rise 0.7s 0.22s var(--ease) backwards; }
.page-welcome .promises li { animation: rise 0.6s 0.34s var(--ease) backwards; }
.page-welcome .promises li:nth-child(2) { animation-delay: 0.42s; }
.page-welcome .promises li:nth-child(3) { animation-delay: 0.5s; }
/* The card only fades: the name field in it takes the cursor as the page opens, and must be where it will stay. */
.page-welcome .setup-card { animation: fade-in 0.8s 0.25s ease-out backwards; box-shadow: var(--lift-2); }
.page-welcome .legal, .page-welcome .restore-wrap { animation: fade-in 0.8s 0.8s ease-out backwards; }
.step-n { background: radial-gradient(circle at 34% 28%, #a9c6ff 0%, #2e5aac 48%, #16254d 100%); color: #fff; }

/* On a phone the orb sits beside the greeting, so the first thing to fill in is on the first screen. */
@media (max-width: 1079px) {
  .hero { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s4); align-items: center; }
  .hero .orb { width: 4.75rem; height: 4.75rem; margin: 0; }
  .hero h1 { margin: 0; font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero .intro, .hero .promises { grid-column: 1 / -1; }
  .hero .intro { margin-top: var(--s4); }
}
.step-body input[type="text"] { border: 1px solid var(--rule); background: var(--paper); color: var(--ink); min-height: 3rem; width: 100%; min-width: 0; }

/* One-time hints: smaller on a phone, so the screen under them is not pushed away. */
@media (max-width: 1079px) {
  .install { padding: var(--s2) var(--s3); font-size: 0.8125rem; }
  .install .linkbtn { font-size: 0.8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .pending .body::after { animation: none !important; }
  .btn.mic.mic-first.is-thinking::before { animation: none !important; }
}

/* ══ 0.10.0: the hologram (optional; off until switched on in Settings) ═════════════════════════
   The stage takes the place of the conversation, between the header and the composer, so every
   control stays where it was. It is always dark: light needs a dark room. On a fan display it is
   the whole screen, pure black, with nothing on it but the hologram. */
.holo { position: fixed; z-index: 4; overflow: hidden; background: #050710; color: #dfe8ff; touch-action: none; -webkit-user-select: none; user-select: none; }
.holo[data-display="fan"] { z-index: 200; background: #000; }
.holo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.holo-canvas:active { cursor: grabbing; }
.holo[data-display="fan"] .holo-canvas { cursor: default; }
.holo :focus-visible { outline-color: #fff; }
.holo-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; padding: 0.6rem 0.75rem 1.1rem; background: linear-gradient(180deg, rgba(5, 7, 16, 0.9), rgba(5, 7, 16, 0)); }
.holo-group { display: inline-flex; align-items: center; gap: 0.35rem; }
.holo-end { margin-left: auto; }
.holo-pick { font: inherit; font-size: 0.8125rem; font-weight: 600; min-height: 2.25rem; padding: 0.25rem 0.8rem; border-radius: 99px; border: 1px solid rgba(160, 190, 255, 0.32); background: rgba(12, 18, 40, 0.66); color: #cfdcff; transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.2s var(--spring); }
.holo-pick:hover { border-color: rgba(200, 220, 255, 0.7); }
.holo-pick:active { transform: scale(0.95); }
.holo-pick[aria-pressed="true"] { background: #cfdcff; color: #0a1024; border-color: #cfdcff; }
.holo-dot { width: 1.75rem; height: 1.75rem; flex: none; padding: 0; border-radius: 50%; border: 2px solid rgba(5, 7, 16, 0.9); background: var(--c, #5c99ff); box-shadow: 0 0 0 1.5px transparent, 0 0 10px -2px var(--c, #5c99ff); transition: box-shadow 0.15s, transform 0.2s var(--spring); }
.holo-dot:active { transform: scale(0.9); }
.holo-dot[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 14px 0 var(--c, #5c99ff); }
.holo-dot[data-c="blue"] { --c: #5c99ff; }
.holo-dot[data-c="cyan"] { --c: #4fe3ff; }
.holo-dot[data-c="violet"] { --c: #c873ff; }
.holo-dot[data-c="amber"] { --c: #ffb554; }
.holo-dot[data-c="white"] { --c: #d6e6ff; }
.holo-caption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 1.6rem 1.1rem 0.9rem; text-align: center; text-wrap: balance; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.4; color: #e9f0ff; background: linear-gradient(0deg, rgba(5, 7, 16, 0.92) 35%, rgba(5, 7, 16, 0)); opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.holo-caption.is-on { opacity: 1; }
.holo-none .holo-caption { top: 40%; bottom: auto; background: none; }
.holo-hint { position: absolute; left: 0; right: 0; top: 1rem; margin: 0; text-align: center; font-size: 0.75rem; letter-spacing: 0.04em; color: #5d6a94; opacity: 0; transition: opacity 0.6s; pointer-events: none; }
.holo-hint.is-on { opacity: 1; }
.holo-exit { position: absolute; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); font: inherit; font-size: 0.875rem; font-weight: 600; min-height: 2.75rem; padding: 0.4rem 1.2rem; border-radius: 99px; border: 1px solid rgba(200, 220, 255, 0.5); background: rgba(12, 18, 40, 0.85); color: #dfe8ff; }
.holo-tints { position: absolute; right: 0.6rem; top: 6.8rem; display: flex; flex-direction: column; gap: 0.5rem; }
.holo-who[hidden] ~ .holo-tints { top: 3.8rem; }
.holo[data-display="fan"] .holo-bar, .holo[data-display="fan"] .holo-tints, .holo[data-display="fan"] .holo-caption { display: none; }
.holo[data-display="screen"] .holo-hint, .holo[data-display="screen"] .holo-exit { display: none; }
@media (max-width: 420px) {
  .holo-bar { gap: 0.35rem 0.5rem; padding-inline: 0.6rem; }
  .holo-pick { padding-inline: 0.65rem; }
  .holo-dot { width: 1.6rem; height: 1.6rem; }
}
/* Who the person is: a row of faces under the top bar; the last is the way to add someone from a photo. */
.holo-who { position: absolute; top: 3.35rem; left: 0; right: 0; display: flex; align-items: center; gap: 0.45rem; padding: 0.15rem 0.75rem 0.4rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x; }
.holo-who::-webkit-scrollbar { display: none; }
.holo-face { flex: none; width: 2.9rem; height: 2.9rem; padding: 0; border-radius: 50%; overflow: hidden; border: 2px solid rgba(160, 190, 255, 0.28); background: #0e1530; color: #cfdcff; font: inherit; font-size: 1.4rem; line-height: 1; display: grid; place-items: center; transition: border-color 0.15s, transform 0.2s var(--spring), box-shadow 0.15s; }
.holo-face:active { transform: scale(0.92); }
.holo-face[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px rgba(92, 153, 255, 0.7); }
.holo-thumb { width: 100%; height: 100%; display: block; }
.holo-style { flex: none; display: flex; gap: 0.35rem; }
.holo-plus { flex: none; white-space: nowrap; border-style: dashed; border-color: rgba(200, 220, 255, 0.6); }
.holo-remove { flex: none; white-space: nowrap; border-color: rgba(255, 170, 160, 0.5); color: #ffc9c2; }
.holo[data-display="fan"] .holo-who { display: none; }
.holo-hint.is-note { top: auto; bottom: 4.5rem; font-size: 0.875rem; color: #ffd9a8; letter-spacing: 0; }
.holo[data-display="screen"] .holo-hint.is-note { display: block; }
/* Adding a person: the photo, tapped three times. */
.holo-photo { display: grid; gap: var(--s3); justify-items: start; margin-bottom: var(--s2); }
.holo-choose { display: inline-flex; align-items: center; cursor: pointer; }
.holo-tap { display: block; max-width: 100%; width: auto; height: auto; max-height: 36vh; border-radius: 12px; background: #0a0d18; touch-action: none; cursor: crosshair; }
.holo-step { margin: 0 0 var(--s2); font-weight: 600; min-height: 1.5em; }
.holo-add .field { margin-top: var(--s3); }
.holo-add .hint { font-size: 0.875rem; color: var(--ink-2); }
.holo-add > .hint { margin: 0 0 var(--s3); }
@media (min-width: 1080px) { .holo-on .turn > .margin { visibility: hidden; } }
.holo-opt .hint { display: block; margin-top: 0.15rem; font-weight: 400; }
/* Its button in the header shows when the hologram is up. */
.tool[aria-pressed="true"] { color: var(--harbor); background: var(--tint); }

/* ── Your taste (0.11.0): one card at the top of Memory ───────────────────────────────────────── */
.taste-card { margin: var(--s5) 0 var(--s6); padding: var(--s4) var(--s4) var(--s3); border: 1px solid var(--rule); border-radius: calc(var(--r) * 1.6); background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 86%, var(--accent, #2f5bb5) 14%), var(--paper) 62%); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 10px 28px -18px rgba(20, 40, 90, 0.45); scroll-margin-top: 6rem; }
.taste-card > h2 { margin-top: 0; }
.taste-card h3 { margin: var(--s4) 0 var(--s2); font-size: 1rem; }
.taste-add { margin: var(--s3) 0; }
@media (min-width: 560px) { .taste-add { grid-template-columns: 1fr auto; } }
.taste-acts { display: flex; gap: var(--s2); }
.taste-acts .btn { flex: 1; white-space: nowrap; }
.taste-areas { margin: var(--s3) 0 var(--s2); }
.taste-tell textarea { width: 100%; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); color: var(--ink); padding: 0.6rem 0.75rem; font: inherit; resize: vertical; min-height: 5rem; }
.taste-tell .foot { margin-top: var(--s2); }
.taste-from { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s2) 0 var(--s3); }
.taste-how { margin: 0 0 var(--s3); padding: var(--s3); border: 1px dashed var(--rule); border-radius: var(--r); }
.taste-how p { margin: 0 0 var(--s2); }

/* ── 0.11.0: gloss ────────────────────────────────────────────────────────────────────────────────
   The talk button and the first page are glass, not matte: a highlight where the light lands, a softer light coming
   back up from below, a clean edge. Listening is pearl white with blue rings (it was orange-red). Colours elsewhere
   are as they were. Look only: no behaviour here. */
:root {
  --pearl: #ffffff;
  --pearl-lo: #b9cdf5;
  --ember: #7ea6f7; /* the rings and the line while it listens: blue light, no longer red */
  --gloss-hi: radial-gradient(30% 19% at 35% 19%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.6) 45%, rgba(255, 255, 255, 0) 100%), radial-gradient(74% 52% at 40% 14%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 72%);
  --gloss-lo: radial-gradient(72% 46% at 60% 94%, rgba(170, 205, 255, 0.6), rgba(170, 205, 255, 0) 70%);
}
:root[data-theme="dark"] { --ember: #a9c6ff; }

/* The talk button: a glass ball. */
.btn.mic.mic-first, .btn.mic.mic-first.is-waiting, .btn.mic.mic-first.is-speaking {
  background: var(--gloss-hi), var(--gloss-lo), radial-gradient(circle at 44% 38%, var(--orb-hi) 0%, var(--orb-mid) 58%, var(--orb-lo) 100%);
  box-shadow:
    0 14px 26px -12px rgba(46, 90, 172, 0.95), 0 2px 5px rgba(20, 40, 90, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3), inset 0 -10px 16px rgba(8, 18, 50, 0.48), inset 0 3px 5px rgba(255, 255, 255, 0.55);
}
/* Listening: pearl white, lit from inside, with a blue edge so it holds on a light page too. */
.btn.mic.mic-first.is-listening {
  color: var(--orb-lo);
  background: var(--gloss-hi), radial-gradient(72% 46% at 60% 94%, rgba(140, 180, 255, 0.75), rgba(140, 180, 255, 0) 70%), radial-gradient(circle at 50% 46%, var(--pearl) 0%, #edf3ff 52%, var(--pearl-lo) 100%);
  box-shadow:
    0 0 0 1.5px rgba(70, 115, 205, 0.45), 0 12px 26px -10px rgba(95, 140, 235, 0.95), 0 0 28px rgba(160, 195, 255, 0.6),
    inset 0 -9px 14px rgba(60, 100, 190, 0.3), inset 0 3px 5px #fff;
}
.btn.mic.mic-first.is-listening .mic-dot { background: var(--orb-mid); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); }
.mic.is-listening { border-color: var(--harbor); color: var(--harbor); }
.mic.is-listening .mic-dot { background: var(--harbor); }
.btn.mic.mic-first.is-listening { border: 0; }

/* The first page. A soft light behind it, so the glass has something to catch. */
.page-welcome .welcome { position: relative; isolation: isolate; }
.page-welcome .welcome::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -4rem -3rem auto -3rem; height: 38rem;
  background:
    radial-gradient(42% 46% at 16% 16%, rgba(96, 140, 255, 0.34), transparent 72%),
    radial-gradient(36% 40% at 88% 6%, rgba(110, 215, 255, 0.2), transparent 72%),
    radial-gradient(46% 40% at 70% 78%, rgba(150, 120, 255, 0.14), transparent 74%);
}
/* The orb: a glass ball with a window of light on it. */
.orb, :root[data-theme="dark"] .orb {
  background: var(--gloss-hi), var(--gloss-lo), radial-gradient(circle at 44% 38%, var(--orb-hi) 0%, var(--orb-mid) 58%, var(--orb-lo) 100%);
  box-shadow:
    0 26px 54px -20px rgba(70, 120, 235, 0.85), 0 0 44px rgba(120, 160, 255, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 -16px 28px rgba(8, 18, 50, 0.5), inset 0 5px 9px rgba(255, 255, 255, 0.55);
}
.orb-core { inset: 34% 30% 30% 34%; background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 70%); }
.empty::before { background: var(--gloss-hi), var(--gloss-lo), radial-gradient(circle at 44% 38%, var(--orb-hi) 0%, var(--orb-mid) 58%, var(--orb-lo) 100%); box-shadow: 0 16px 34px -16px rgba(46, 90, 172, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 -8px 16px rgba(8, 18, 50, 0.45), inset 0 3px 5px rgba(255, 255, 255, 0.5); }
.mono, .step-n { background: var(--gloss-hi), radial-gradient(circle at 44% 38%, var(--orb-hi) 0%, var(--orb-mid) 58%, var(--orb-lo) 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), inset 0 -3px 5px rgba(8, 18, 50, 0.4), 0 4px 10px -4px rgba(46, 90, 172, 0.8); color: #fff; }

/* The card you fill in: a pane of glass with a bright edge. */
.page-welcome .setup-card {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 86%, #ffffff 14%), color-mix(in srgb, var(--paper) 96%, #6d95ee 4%)) padding-box,
    linear-gradient(155deg, rgba(255, 255, 255, 0.85), rgba(125, 165, 255, 0.5) 38%, rgba(255, 255, 255, 0.1) 70%, rgba(125, 165, 255, 0.35)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 6px rgba(15, 30, 70, 0.1), 0 34px 60px -28px rgba(30, 60, 140, 0.6);
}
:root[data-theme="dark"] .page-welcome .setup-card {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 90%, #9db9ff 10%), var(--paper)) padding-box,
    linear-gradient(155deg, rgba(200, 220, 255, 0.55), rgba(110, 150, 240, 0.35) 38%, rgba(255, 255, 255, 0.05) 70%, rgba(110, 150, 240, 0.3)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 34px 60px -28px rgba(0, 0, 0, 0.9);
}
.page-welcome .setup-card input[type="text"] { box-shadow: inset 0 1px 2px rgba(15, 30, 70, 0.12), 0 1px 0 rgba(255, 255, 255, 0.35); }
:root[data-theme="dark"] .page-welcome .setup-card input[type="text"] { box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.06); }
.page-welcome .promises li, .page-welcome .pick:not([aria-pressed="true"]) {
  background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 80%, #ffffff 20%), var(--paper));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 10px -8px rgba(20, 40, 90, 0.5);
}
:root[data-theme="dark"] .page-welcome .promises li, :root[data-theme="dark"] .page-welcome .pick:not([aria-pressed="true"]) {
  background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 88%, #9db9ff 12%), var(--paper));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 10px -8px rgba(0, 0, 0, 0.8);
}

/* The main button, everywhere but the small send arrow: the same colour, with light on its upper half. */
.btn-primary:not(.composer .btn-primary) {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.1) 46%, rgba(255, 255, 255, 0) 50%, rgba(10, 25, 80, 0.12) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(10, 25, 80, 0.25), 0 14px 22px -14px var(--harbor);
}
.btn-primary:not(.composer .btn-primary):active { background-image: linear-gradient(180deg, rgba(10, 25, 80, 0.14), rgba(255, 255, 255, 0.06)); }

/* 0.12.4: switching on sign-in from the app, and the other things that can be connected */
.signin-setup { margin-top: var(--s3); }
.signin-setup > summary { cursor: pointer; }
.setup-service { border: 1px solid var(--line); border-radius: 12px; padding: var(--s3); margin: var(--s3) 0 0; min-width: 0; }
.setup-service legend { font-weight: 600; padding: 0 var(--s1); }
.setup-service ol { padding-left: 1.25rem; margin: var(--s2) 0; font-size: 0.9rem; color: var(--ink-2); }
.setup-service li { margin: var(--s1) 0; }
.setup-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s2); }
.setup-fields input { width: 100%; }
.setup-copy { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin: var(--s1) 0; }
.setup-copy code { overflow-wrap: anywhere; font-size: 0.82rem; }
.setup-state { font-size: 0.75rem; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.setup-state.is-on { color: var(--ember); border-color: var(--ember); }
.setup-state.is-wait { color: var(--ink); }
.more-list { list-style: none; padding: 0; margin: var(--s2) 0 0; }
.more-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--line); }
.more-row strong { display: block; }

/* ══ 0.14.0: adding an account is one tap; the rest is in small drop-downs ══════════════════════ */
.signin-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--s2); margin: var(--s3) 0 var(--s2); }
.signin-btn { display: flex; align-items: center; gap: var(--s3); text-align: left; padding: 0.7rem 0.9rem; min-height: 3.6rem; border-radius: 14px; background: var(--paper); }
.signin-btn:hover { border-color: var(--harbor); }
.signin-mark { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; background: var(--harbor); color: var(--harbor-ink); }
.signin-text { display: grid; min-width: 0; }
.signin-text strong { font-weight: 600; }
.signin-text .hint { font-size: 0.8125rem; font-weight: 400; }
.add-note { margin: var(--s2) 0 0; color: var(--ink); }
.add-more { margin-top: var(--s2); border-top: 0; padding-top: 0; font-size: 0.875rem; }
.add-more > summary { cursor: pointer; font-weight: 500; color: var(--ink-2); width: fit-content; padding: 0.35rem 0; }
.add-more > summary:hover, .add-more[open] > summary { color: var(--ink); }
.add-more.is-wanted > summary { color: var(--harbor); font-weight: 600; }
.add-more[open] { padding-bottom: var(--s2); }
.add-account .form-error:empty { display: none; }

/* ══ 0.14.0: the first screen. A meeting, not a form: the friend's own blue as a sky, its orb with the rings of a
   voice, and its hello, which changes as it is named. The same blues as everywhere else (the orb's three). Look
   only; what setting up does is unchanged. ═════════════════════════════════════════════════════════════════════ */
.page-hello { min-height: 100vh; min-height: 100dvh; background: var(--paper); overflow-x: clip; }
.hello { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.hello-stage {
  --sky-hi: #5b86de;
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding: calc(var(--s4) + env(safe-area-inset-top)) var(--gutter) calc(var(--s6) + 1.25rem);
  background:
    radial-gradient(60% 46% at 50% 34%, rgba(169, 198, 255, 0.55) 0%, rgba(169, 198, 255, 0) 70%),
    radial-gradient(130% 100% at 20% 0%, var(--sky-hi) 0%, var(--orb-mid) 42%, #1d3270 78%, var(--orb-lo) 100%);
}
/* a slow drift of light behind the orb, as if the sky were breathing with it */
.hello-stage::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -30% auto -30%; height: 90%;
  background: radial-gradient(40% 50% at 70% 40%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 70%), radial-gradient(36% 44% at 22% 62%, rgba(130, 170, 255, 0.35), rgba(130, 170, 255, 0) 70%);
  animation: hello-drift 16s ease-in-out infinite alternate;
}
@keyframes hello-drift { to { transform: translate3d(4%, 5%, 0) scale(1.08); } }
.hello-brand { display: flex; align-items: center; gap: var(--s3); }
.hello-brand .brand { color: #fff; font-size: 1.15rem; line-height: 1.1; }
.hello-brand .tagline { color: rgba(255, 255, 255, 0.78); }
.hello-brand .mono { background: var(--gloss-hi), radial-gradient(circle at 50% 46%, #fff 0%, #edf3ff 52%, var(--pearl-lo) 100%); color: var(--orb-lo); box-shadow: 0 4px 14px -4px rgba(8, 18, 50, 0.6); }
.hello-meet { display: grid; justify-items: center; text-align: center; margin-top: var(--s5); }
.hello-orb { position: relative; width: 7.5rem; height: 7.5rem; margin: var(--s4) 0 var(--s5); animation: orb-in 0.9s var(--spring) backwards; }
.hello-ball {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--gloss-hi), var(--gloss-lo), radial-gradient(circle at 44% 38%, #cfe0ff 0%, #6f98ea 46%, var(--orb-mid) 78%, #1d3270 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 70px 6px rgba(190, 212, 255, 0.55), 0 26px 50px -18px rgba(6, 14, 44, 0.85), inset 0 -12px 22px rgba(8, 18, 50, 0.4), inset 0 4px 8px rgba(255, 255, 255, 0.35);
  animation: breathe 5s 0.9s ease-in-out infinite;
}
.hello-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.55); opacity: 0; animation: hello-ring 4.8s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.hello-ring:nth-child(2) { animation-delay: 1.6s; }
.hello-ring:nth-child(3) { animation-delay: 3.2s; }
@keyframes hello-ring { 0% { transform: scale(1); opacity: 0; } 12% { opacity: 0.7; } 100% { transform: scale(2.5); opacity: 0; } }
.hello-say { font-family: var(--serif); font-weight: 700; font-size: clamp(2.1rem, 8.6vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0; max-width: 16ch; overflow-wrap: anywhere; text-wrap: balance; text-shadow: 0 2px 18px rgba(8, 18, 50, 0.35); animation: rise 0.7s 0.15s var(--ease) backwards; }
.hello-line { margin: var(--s3) 0 0; max-width: 30rem; font-size: 1.0625rem; line-height: 1.5; color: rgba(255, 255, 255, 0.88); animation: rise 0.7s 0.26s var(--ease) backwards; }
.hello-promises { list-style: none; padding: 0; margin: var(--s4) 0 0; display: none; gap: var(--s2); text-align: left; font-size: 0.9875rem; color: rgba(255, 255, 255, 0.92); animation: rise 0.7s 0.36s var(--ease) backwards; }
.hello-promises li { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: center; }
.hello-tick { width: 1.35rem; height: 1.35rem; border-radius: 50%; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); position: relative; }
.hello-tick::after { content: ""; position: absolute; left: 0.47rem; top: 0.26rem; width: 0.32rem; height: 0.62rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* the setting up: a sheet that comes up over the sky on a phone, the other half of the window on a computer */
.hello-side { position: relative; z-index: 1; margin-top: -1.25rem; background: var(--paper); border-radius: 22px 22px 0 0; padding: var(--s5) var(--gutter) calc(var(--s6) + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px -18px rgba(6, 14, 44, 0.55); animation: hello-sheet 0.7s 0.2s var(--ease) backwards; }
@keyframes hello-sheet { from { opacity: 0; transform: translateY(28px); } }
.hello-inner { max-width: 27rem; margin: 0 auto; }
.hello-head { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.01em; margin: 0 0 var(--s4); }
.hello-card .setup { gap: var(--s5); }
.hello-field { display: grid; gap: var(--s2); min-width: 0; }
.hello-field > label, .hello-field > .label { font-weight: 600; font-size: 1.0625rem; }
.hello-field .hint { font-size: 0.875rem; color: var(--ink-2); }
.hello-field input[type="text"] { font-size: 1.0625rem; padding: 0.75rem 0.95rem; min-height: 3.1rem; width: 100%; min-width: 0; border-radius: 12px; border: 1px solid var(--rule); background: #fff; color: var(--ink); box-shadow: inset 0 1px 2px rgba(15, 30, 70, 0.08); transition: border-color 0.15s, box-shadow 0.15s; }
:root[data-theme="dark"] .hello-field input[type="text"] { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45); }
.hello-field input[type="text"]:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); }
.hello-card .pick { padding: 0.45rem 0.85rem; min-height: 2.5rem; }
.hello-card .pick[aria-pressed="true"] { background: var(--harbor); border-color: var(--harbor); color: var(--harbor-ink); }
.hello-card .consent { margin: 0; align-items: start; }
.hello-card .btn-big { min-height: 3.5rem; border-radius: 16px; font-size: 1.125rem; box-shadow: 0 14px 28px -14px rgba(46, 90, 172, 0.9); }
.page-hello .legal { margin-top: var(--s5); }

@media (min-width: 60rem) {
  .hello { grid-template-columns: minmax(0, 1.08fr) minmax(26rem, 0.92fr); }
  .hello-stage { position: sticky; top: 0; height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto 1fr; padding: var(--s5) clamp(2rem, 5vw, 4.5rem) var(--s6); }
  .hello-meet { align-content: center; margin: 0; padding-bottom: 5vh; }
  .hello-orb { width: 11rem; height: 11rem; margin: 0 0 calc(var(--s6) + 0.5rem); }
  .hello-say { font-size: clamp(2.8rem, 4.4vw, 4.2rem); max-width: 15ch; }
  .hello-line { font-size: 1.1875rem; margin-top: var(--s4); }
  .hello-promises { display: grid; margin-top: var(--s5); }
  .hello-side { margin: 0; border-radius: 0; box-shadow: none; display: grid; align-items: center; padding: var(--s6) clamp(1.5rem, 4vw, 4rem); animation: fade-in 0.8s 0.25s ease-out backwards; }
  .hello-inner { width: 100%; }
  .hello-head { font-size: 1.6rem; margin-bottom: var(--s5); }
}
@media (max-height: 30rem) and (min-width: 60rem) { .hello-stage { position: static; height: auto; } }
@media (prefers-reduced-motion: reduce) {
  .hello-stage::before, .hello-orb, .hello-ball, .hello-say, .hello-line, .hello-promises, .hello-side { animation: none; }
  .hello-ring { animation: none; opacity: 0.22; }
  .hello-ring:nth-child(1) { transform: scale(1.35); }
  .hello-ring:nth-child(2) { transform: scale(1.75); opacity: 0.14; }
  .hello-ring:nth-child(3) { transform: scale(2.2); opacity: 0.08; }
}

/* ══ 0.15.0: the sections. Each has its icon on a small tile (soft when resting, the friend's blue when it is where
   you are), a part of the icon that moves when it is chosen or pointed at, and, on a computer, a line under its
   name saying what it is for. The hologram sits with them. Looks only. ═════════════════════════════════════════ */
.tabs::before { content: none !important; }
.icon .i-fill { opacity: 0.18; }
.icon .i-move { transform-box: view-box; }
.tab-ico { display: grid; place-items: center; flex: none; color: var(--ink-2); background: color-mix(in srgb, var(--harbor) 11%, transparent); transition: background-color 0.2s, color 0.2s, box-shadow 0.25s, transform 0.3s var(--spring); }
.tab:hover .tab-ico { color: var(--harbor); background: color-mix(in srgb, var(--harbor) 18%, transparent); }
.tab[aria-current="page"] .tab-ico, .tab[aria-pressed="true"] .tab-ico {
  color: #fff;
  background: var(--gloss-hi), linear-gradient(160deg, var(--orb-hi) -30%, var(--orb-mid) 55%, #244a94 100%);
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--orb-mid) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.tab[aria-current="page"] .icon, .tab[aria-pressed="true"] .icon { color: #fff; }
.tab[aria-current="page"] .i-fill, .tab[aria-pressed="true"] .i-fill { opacity: 0.34; }
.tab:active .tab-ico { transform: scale(0.9); }
.tab-text { display: grid; min-width: 0; }
.tab-hint { font-weight: 400; color: var(--ink-2); }
.tab-beta { font-size: 0.625rem; line-height: 1; font-weight: 600; letter-spacing: 0.02em; padding: 0.16rem 0.36rem; border-radius: 99px; color: var(--harbor); background: color-mix(in srgb, var(--harbor) 14%, transparent); }
@media (max-width: 1079px) {
  .tab { padding: 0.25rem 0.05rem 0.2rem; gap: 0.2rem; }
  .tab[aria-current="page"]::before { content: none; }
  .tab-ico { width: min(3.25rem, 96%); height: 1.9rem; border-radius: 99px; }
  .tab .icon { width: 22px; height: 22px; }
  .tab-text { justify-items: center; }
  .tab-hint { display: none; }
  .tab-label { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tab[aria-pressed="true"] { color: var(--ink); }
  .tab-beta { position: absolute; top: 0; right: max(0px, calc(50% - 2.05rem)); font-size: 0.5625rem; padding: 0.1rem 0.28rem; background: var(--paper); box-shadow: 0 0 0 1px color-mix(in srgb, var(--harbor) 45%, transparent); }
}
@media (max-width: 400px) { .tab { font-size: 0.625rem; } }
@media (min-width: 1080px) {
  .tabs { gap: 3px; }
  .tab { height: auto; min-height: 3.1rem; padding: 0.4rem var(--s2); border-left: 0; border-radius: 14px; justify-content: flex-start; gap: var(--s3); white-space: normal; text-align: left; }
  .tab[aria-current="page"], .tab[aria-pressed="true"] { background: var(--paper); box-shadow: var(--lift); color: var(--ink); font-weight: 600; }
  .tab-ico { width: 2.3rem; height: 2.3rem; border-radius: 12px; }
  .tab .icon { width: 20px; height: 20px; }
  .tab:not([aria-current="page"]):hover .icon { transform: none; }
  .tab:not([aria-current="page"]):hover .tab-ico { transform: translateY(-1px); }
  .tab-label { line-height: 1.2; }
  .tab-hint { font-size: 0.75rem; line-height: 1.25; }
  .tab-count { margin-left: auto; }
  .tab-holo { position: relative; }
  .tab-beta { position: absolute; top: 0.5rem; right: 0.5rem; }
}
@media (min-width: 1080px) and (max-height: 760px) { .tab { min-height: 2.6rem; } .tab-hint { display: none; } }
/* the part that moves: once when the section is chosen, and again when it is pointed at */
@media (prefers-reduced-motion: no-preference) {
  .tab[aria-current="page"] .icon { animation: none; }
  .tab[aria-current="page"] .tab-ico { animation: tab-pop 0.42s var(--spring); }
  .tab:hover .icon-talk .i-move, .tab[aria-current="page"] .icon-talk .i-move { animation: i-hop 0.7s var(--ease) both; }
  .icon-talk .i-move:nth-of-type(3) { animation-delay: 0.1s !important; }
  .icon-talk .i-move:nth-of-type(4) { animation-delay: 0.2s !important; }
  .icon-today .i-move { stroke-dasharray: 10; }
  .tab:hover .icon-today .i-move, .tab[aria-current="page"] .icon-today .i-move { animation: i-draw 0.55s 0.1s var(--ease) both; }
  .tab:hover .icon-loops, .tab[aria-current="page"] .icon-loops { animation: i-turn 0.8s var(--ease); }
  .icon-memory .i-move { stroke-dasharray: 6; }
  .tab:hover .icon-memory .i-move, .tab[aria-current="page"] .icon-memory .i-move { animation: i-write 0.5s 0.05s var(--ease) both; }
  .icon-memory .i-move:last-of-type { animation-delay: 0.22s !important; }
  .icon-week .i-move { transform-origin: 50% 17.5px; }
  .tab:hover .icon-week .i-move, .tab[aria-current="page"] .icon-week .i-move { animation: i-grow 0.55s var(--spring) both; }
  .icon-week .i-move:nth-of-type(3) { animation-delay: 0.08s !important; }
  .icon-week .i-move:nth-of-type(4) { animation-delay: 0.16s !important; }
  .icon-accounts .i-move { transform-origin: 18.5px 7px; }
  .tab:hover .icon-accounts .i-move, .tab[aria-current="page"] .icon-accounts .i-move { animation: i-plus 0.6s var(--spring); }
  .icon-holo .i-move { transform-origin: 12px 18.5px; }
  .tab:hover .icon-holo .i-move { animation: i-ring 0.9s var(--ease); }
  .tab[aria-pressed="true"] .icon-holo .i-move { animation: i-ring 2.4s var(--ease) infinite; }
  .tool:hover .icon-bell { animation: i-swing 0.7s var(--ease); transform-origin: 50% 15%; }
}
@keyframes i-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-2.6px); } }
@keyframes i-draw { from { stroke-dashoffset: 10; } to { stroke-dashoffset: 0; } }
@keyframes i-write { from { stroke-dashoffset: 6; } to { stroke-dashoffset: 0; } }
@keyframes i-turn { from { transform: rotate(-200deg); } to { transform: rotate(0); } }
@keyframes i-grow { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
@keyframes i-plus { from { transform: rotate(-90deg) scale(0.4); } to { transform: rotate(0) scale(1); } }
@keyframes i-ring { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.14); opacity: 0.55; } }
@keyframes i-swing { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(13deg); } 55% { transform: rotate(-10deg); } 80% { transform: rotate(5deg); } }

/* ══ 0.15.0: adding an account and bringing in other apps. The sign-in buttons are the app's own main button again
   (its blue, with light on the upper half), each with its initial on a pearl and an arrow; the other apps are rows
   with a small picture and the same button. Looks only: what each does is unchanged. ═════════════════════════ */
.add-account, .more-connect { border-radius: 18px; padding: var(--s5); }
.signin-row { gap: var(--s3); }
.signin-btn {
  border: 0; min-height: 4.1rem; padding: 0.75rem 1rem; border-radius: 16px; color: var(--harbor-ink);
  background-color: var(--harbor);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.1) 46%, rgba(255, 255, 255, 0) 50%, rgba(10, 25, 80, 0.12) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(10, 25, 80, 0.25), 0 16px 26px -16px var(--harbor);
  transition: transform 0.2s var(--spring), filter 0.15s, box-shadow 0.2s;
}
.signin-btn:hover { filter: brightness(1.07); transform: translateY(-1px); border-color: transparent; }
.signin-btn:active:not([disabled]) { transform: scale(0.985); }
.signin-mark {
  width: 2.5rem; height: 2.5rem; font-family: var(--serif); font-size: 1.2rem; color: var(--orb-lo);
  background: var(--gloss-hi), radial-gradient(circle at 50% 46%, #fff 0%, #edf3ff 52%, var(--pearl-lo) 100%);
  box-shadow: 0 3px 8px -2px rgba(8, 18, 50, 0.45), inset 0 -2px 4px rgba(60, 95, 180, 0.28);
}
.signin-text strong { font-size: 1.0625rem; letter-spacing: -0.005em; }
.signin-btn .signin-text .hint { color: color-mix(in srgb, var(--harbor-ink) 76%, transparent); max-width: none; }
.signin-go { margin-left: auto; flex: none; width: 0.6rem; height: 0.6rem; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); opacity: 0.75; transition: transform 0.2s var(--ease); }
.signin-btn:hover .signin-go { transform: translateX(3px) rotate(45deg); }
.add-note { padding: 0.6rem 0.8rem; border-radius: 12px; background: color-mix(in srgb, var(--harbor) 9%, transparent); }
.more-list { display: grid; gap: var(--s2); margin-top: var(--s3); }
.more-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: 0.7rem 0.8rem; border: 1px solid var(--rule); border-radius: 14px; background: color-mix(in srgb, var(--harbor) 5%, transparent); transition: border-color 0.15s, background-color 0.15s; }
.more-row:hover { border-color: color-mix(in srgb, var(--harbor) 55%, var(--rule)); background: color-mix(in srgb, var(--harbor) 9%, transparent); }
.more-ico { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; color: #fff; background: var(--gloss-hi), linear-gradient(160deg, var(--orb-hi) -30%, var(--orb-mid) 55%, #244a94 100%); box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--orb-mid) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.more-text { min-width: 0; }
.more-row .btn { white-space: nowrap; }
@media (max-width: 30rem) {
  .add-account, .more-connect { padding: var(--s4); }
  .more-row { grid-template-columns: auto minmax(0, 1fr); }
  .more-row .btn { grid-column: 2; justify-self: start; }
  .more-row .more-acts { grid-column: 2; justify-self: start; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
  .more-row .more-acts .btn { grid-column: auto; }
}

/* ══ 0.15.0: Settings and Notifications. The same options, gathered under headings with a small picture each, on
   soft cards; Settings has a row at the top that jumps to each part. Looks only. ══════════════════════════════ */
dialog.dlg-settings { width: min(40rem, calc(100vw - 2rem)); }
dialog.dlg-notify { width: min(34rem, calc(100vw - 2rem)); }
.set-top { position: sticky; top: calc(-1 * var(--s5)); z-index: 3; margin: calc(-1 * var(--s5)) calc(-1 * var(--s5)) var(--s4); padding: var(--s5) var(--s5) var(--s3); background: var(--paper); border-bottom: 1px solid var(--rule); }
.set-top h2 { font-size: 1.5rem; margin: 0 0 var(--s3); letter-spacing: -0.01em; }
.set-jump { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--s2)); padding: 2px var(--s2); }
.set-jump::-webkit-scrollbar { display: none; }
.set-chip { display: inline-flex; align-items: center; gap: 0.4rem; flex: none; padding: 0.4rem 0.8rem 0.4rem 0.6rem; min-height: 2.4rem; border-radius: 99px; border: 1px solid var(--rule); background: transparent; color: var(--ink-2); font-size: 0.875rem; font-weight: 500; transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.2s var(--spring); }
.set-chip .icon { width: 18px; height: 18px; }
.set-chip:hover { color: var(--ink); border-color: color-mix(in srgb, var(--harbor) 60%, var(--rule)); background: color-mix(in srgb, var(--harbor) 9%, transparent); }
.set-chip:active { transform: scale(0.95); }
.set-group { scroll-margin-top: 8.2rem; margin: 0 0 var(--s4); padding: var(--s4) var(--s4) var(--s2); border: 1px solid var(--rule); border-radius: 18px; background: color-mix(in srgb, var(--harbor) 4%, transparent); }
.set-head { display: flex; align-items: center; gap: var(--s3); margin: 0 0 var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--rule); }
.set-ico, .nt-ico { display: grid; place-items: center; flex: none; color: #fff; background: var(--gloss-hi), linear-gradient(160deg, var(--orb-hi) -30%, var(--orb-mid) 55%, #244a94 100%); box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--orb-mid) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.set-ico { width: 2.5rem; height: 2.5rem; border-radius: 13px; }
.set-ico .icon { width: 21px; height: 21px; }
.set-ico .i-fill, .nt-ico .i-fill { opacity: 0.34; }
.set-title { min-width: 0; }
.set-title h3, .set-title h2 { font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
.set-title p { margin: 0.15rem 0 0; font-size: 0.875rem; line-height: 1.35; color: var(--ink-2); }
.set-group > .field { margin-bottom: 0; padding: var(--s3) 0 var(--s4); }
.set-group > .field + .field { border-top: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); padding-top: var(--s4); }
.set-group > .field[hidden] { display: none; }
.set-group .field > label, .set-group .field > .label { font-size: 1rem; }
.set-group .label-sm { margin-top: var(--s3); font-weight: 600; color: var(--ink); font-size: 0.875rem; }
.set-account { background: transparent; }
.set-group .btn-danger { justify-self: start; }
.dlg-settings input[type="checkbox"], .dlg-notify input[type="checkbox"], .dlg-settings input[type="radio"], .dlg-notify input[type="radio"] { accent-color: var(--harbor); }

.nt-top { display: flex; align-items: center; gap: var(--s3); margin: 0 0 var(--s4); }
.nt-top h2 { font-size: 1.4rem; }
/* the one switch that turns it all on: drawn as a switch, on a card of its own */
.dlg-notify > div > label.check:first-child { align-items: center; gap: var(--s4); margin: 0 0 var(--s3); padding: var(--s4); border-radius: 16px; border: 1px solid color-mix(in srgb, var(--harbor) 40%, var(--rule)); background: linear-gradient(135deg, color-mix(in srgb, var(--harbor) 14%, transparent), color-mix(in srgb, var(--harbor) 4%, transparent)); font-weight: 600; cursor: pointer; }
.dlg-notify > div > label.check:first-child .hint { font-weight: 400; }
.dlg-notify > div > label.check:first-child input { appearance: none; -webkit-appearance: none; order: 2; width: 3rem; height: 1.75rem; margin: 0; border-radius: 99px; background: color-mix(in srgb, var(--ink-2) 35%, transparent); position: relative; cursor: pointer; transition: background-color 0.2s; flex: none; }
.dlg-notify > div > label.check:first-child { grid-template-columns: 1fr auto; }
.dlg-notify > div > label.check:first-child input::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.75rem - 6px); height: calc(1.75rem - 6px); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); transition: transform 0.22s var(--spring); }
.dlg-notify > div > label.check:first-child input:checked { background: var(--harbor); }
.dlg-notify > div > label.check:first-child input:checked::after { transform: translateX(1.25rem); }
.dlg-notify > div > label.check:first-child input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.nt-sec { margin: var(--s3) 0; padding: var(--s4); border: 1px solid var(--rule); border-radius: 16px; background: color-mix(in srgb, var(--harbor) 4%, transparent); }
.nt-sec h3 { display: flex; align-items: center; gap: var(--s3); font-size: 1.0625rem; margin: 0 0 var(--s3); }
.nt-ico { width: 1.9rem; height: 1.9rem; border-radius: 10px; }
.nt-ico .icon { width: 17px; height: 17px; }
.nt-sec > p:last-child, .nt-sec > .hint:last-child { margin-bottom: 0; }
.nt-times { gap: var(--s2); }
.nt-times li { padding: 0.35rem 0.4rem 0.35rem 0.85rem; border-radius: 12px; background: color-mix(in srgb, var(--harbor) 10%, transparent); }
.nt-time { font-weight: 600; font-size: 1.0625rem; }
.nt-recent { gap: 0; }
.nt-recent li { position: relative; padding: 0.55rem 0 0.55rem 1.1rem; border-top: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); }
.nt-recent li:first-child { border-top: 0; }
.nt-recent li::before { content: ""; position: absolute; left: 0.1rem; top: 1.05rem; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: color-mix(in srgb, var(--ink-2) 55%, transparent); }
.nt-recent li.is-new::before { background: var(--harbor); box-shadow: 0 0 0 4px color-mix(in srgb, var(--harbor) 22%, transparent); }
@media (max-width: 640px) {
  .set-top { top: calc(-1 * var(--s5)); margin: 0 calc(-1 * var(--s4)) var(--s4); padding: var(--s2) var(--s4) var(--s3); }
  .set-group { padding: var(--s4) var(--s3) var(--s1); border-radius: 16px; scroll-margin-top: 7.4rem; }
  .nt-sec { padding: var(--s3); }
}
.set-chip[aria-current="true"] { color: var(--harbor-ink); background: var(--harbor); border-color: var(--harbor); }
.set-chip[aria-current="true"]:hover { color: var(--harbor-ink); background: var(--harbor); filter: brightness(1.06); }
.signin-row { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
@media (max-width: 30rem) { .signin-row { grid-template-columns: minmax(0, 1fr); } }
.dlg-settings .check .hint { display: block; font-weight: 400; margin-top: 0.15rem; }
.set-group label.check { font-weight: 500; }
.dlg-notify > div > label.check:first-child input { border: 0; display: block; }
.dlg-notify > div > label.check:first-child input::after { clip-path: none; }

/* 0.16.0: "Open Loops" is two words; in the bar across a phone it takes two lines, and the icons stay in one row. */
@media (max-width: 1079px) {
  .tab { justify-content: flex-start; }
  .tab-label { white-space: normal; line-height: 1.08; text-align: center; overflow: visible; }
}

/* ── 0.16.0: under a reply (where it looked, a build to see), and a build in the hologram ───────────── */
.turn-extra { margin-top: var(--s2); display: grid; gap: var(--s2); justify-items: start; }
.turn-extra[hidden] { display: none; }
@media (min-width: 1080px) { .turn > .turn-extra { grid-column: 1; padding-inline: var(--gutter); } }
.looking { display: flex; align-items: center; gap: 0.4rem; margin: 0.1rem 0 0.3rem; font-size: 0.875rem; color: var(--ink-2); }
@media (min-width: 1080px) { .turn > .looking { grid-column: 1; padding-inline: var(--gutter); } }
.looking .icon { width: 1rem; height: 1rem; flex: none; color: var(--harbor); }
@media (prefers-reduced-motion: no-preference) { .looking .icon { animation: looking-turn 2.4s linear infinite; } }
@keyframes looking-turn { to { transform: rotate(360deg); } }
.turn.is-looking .body:empty::after { display: none; }
.sources { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.4rem; font-size: 0.8125rem; color: var(--ink-2); max-width: 100%; }
.sources-label { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; margin-right: 0.15rem; }
.sources-label .icon { width: 0.95rem; height: 0.95rem; flex: none; color: var(--harbor); }
.source { display: inline-flex; align-items: baseline; gap: 0.35rem; max-width: min(100%, 20rem); min-height: 1.9rem; padding: 0.2rem 0.65rem; border: 1px solid var(--rule); border-radius: 99px; background: var(--paper); color: var(--ink); text-decoration: none; line-height: 1.3; }
a.source:hover { border-color: var(--harbor); }
.source-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.source-site { flex: none; color: var(--ink-2); font-size: 0.75rem; }
.build-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; }
.build-see { display: inline-flex; align-items: center; gap: 0.4rem; }
.build-see .icon { width: 1.05rem; height: 1.05rem; flex: none; }
.build-offer .hint, .build-wait { font-size: 0.8125rem; color: var(--ink-2); }

.holo-build { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: center; gap: 0.3rem; padding: 1.8rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px)); text-align: center; background: linear-gradient(0deg, rgba(5, 7, 16, 0.95) 64%, rgba(5, 7, 16, 0)); }
.holo-build[hidden] { display: none; }
.holo-build-head { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.2rem 0.6rem; }
.holo-build-title { font-size: 0.9375rem; color: #fff; }
.holo-build-count { font-size: 0.75rem; font-weight: 600; color: #8fa3d8; font-variant-numeric: tabular-nums; }
.holo-build-step { margin: 0; max-width: 34rem; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.35; text-wrap: balance; color: #eef3ff; }
.holo-build-pieces { margin: 0; max-width: 40rem; font-size: 0.8125rem; line-height: 1.4; color: #9db0e0; }
.holo-build-acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem; margin-top: 0.3rem; }
.holo-build-next { background: #cfdcff; color: #0a1024; border-color: #cfdcff; }
.holo-pick:disabled { opacity: 0.38; cursor: default; }
.holo-build-note { flex-basis: 100%; font-size: 0.6875rem; color: #6f7ea8; }
.holo.is-build .holo-caption { display: none; }
.holo[data-display="fan"] .holo-build { display: none; }


/* ── 0.17.0: pictures in the conversation, Health and Contacts under Memory, the Apple form ───────────── */
.composer .pic-add { width: 2.9rem; min-height: 2.9rem; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--ink-2); }
/* (the rule that paints the Stop button red would catch this one too: it is said again here, more exactly) */
.composer > .btn.pic-add:not(.mic):not(.send) { border-radius: 50%; border-color: var(--rule); color: var(--ink-2); }
.voice-first .composer > .btn.pic-add:not(.mic):not(.send) { order: 0; }
.composer > .btn.pic-add.has-pics:not(.mic):not(.send) { color: var(--harbor); border-color: var(--harbor); }
.pic-tray { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s2); }
.pic-tray[hidden] { display: none; }
.pic-thumb { position: relative; width: 4.25rem; height: 4.25rem; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: var(--paper); display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--ink-2); }
.pic-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic-loading { animation: pulse 1.2s ease-in-out infinite; }
.pic-drop { position: absolute; top: 2px; right: 2px; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); font-size: 1rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pic-drop::before { content: ""; position: absolute; inset: -0.55rem; }
.turn-pics { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s2); }
.turn-pic { max-width: min(100%, 20rem); max-height: 18rem; border-radius: var(--r); border: 1px solid var(--rule); display: block; background: var(--paper); }
.turn-pics .turn-pic:not(:only-child) { max-width: min(48%, 10rem); max-height: 10rem; object-fit: cover; }
.pic-made { margin: var(--s2) 0 0; }
.pic-made-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s2); }
.pic-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: var(--s2) 0 0; font-size: 0.875rem; color: var(--ink-2); }

.mem-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--s3); max-width: 40rem; margin: var(--s4) 0; }
.mem-card { display: flex; align-items: center; gap: var(--s3); text-align: left; padding: var(--s3) var(--s4); border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; min-height: 4rem; }
.mem-card:hover, .mem-card:focus-visible { border-color: var(--harbor); }
.mem-card .icon { color: var(--harbor); flex: none; width: 1.75rem; height: 1.75rem; }
.mem-card-text { display: grid; gap: 0.1rem; }
.mem-card-title { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.mem-card .hint { font-size: 0.8125rem; color: var(--ink-2); }
.sub-panel .back { margin-bottom: var(--s3); }
.sub-body > .meta:empty { display: none; }
.health-inchat { max-width: 40rem; margin: var(--s4) 0; }
.health-days li, .health-items li, .health-apps li, .contacts-list li, .contacts-accounts li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--rule); }
.health-days li:first-child, .health-items li:first-child, .health-apps li:first-child, .contacts-list li:first-child, .contacts-accounts li:first-child { border-top: 0; }
.health-day { flex: none; min-width: 5.5rem; font-weight: 600; font-size: 0.9375rem; }
.health-days li > span:last-child { flex: 1 1 14rem; font-size: 0.9375rem; }
.health-item-text, .contact-main { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.health-add { display: grid; gap: var(--s2); margin-top: var(--s4); }
.health-add-row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: flex-end; }
.health-add-row input[type="text"] { flex: 1 1 12rem; }
.health-add input[type="text"], .health-add input[type="date"], .health-add input[type="time"], .health-add select, .contacts-add input, .contacts-panel input[type="search"], .apple-form input[type="email"], .apple-form input[type="text"] { border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); color: var(--ink); padding: 0.6rem 0.75rem; min-height: 2.75rem; min-width: 0; font: inherit; }
.h-date-wrap, .h-time-wrap { display: grid; gap: 0.15rem; }
.h-date-wrap[hidden], .day-picks[hidden] { display: none; }
.day-picks { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); }
.day-pick { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.35rem 0.6rem; border: 1px solid var(--rule); border-radius: 99px; font-size: 0.875rem; cursor: pointer; min-height: 2.25rem; }
.day-pick:has(input:checked) { border-color: var(--harbor); color: var(--harbor); }
.health-app > div:first-child { flex: 1 1 14rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s2); }
.health-app > div:first-child .hint { flex-basis: 100%; }
.health-app-acts, .health-file, .contacts-file { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.health-file, .contacts-file { margin: var(--s2) 0; }
.contacts-add { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--s2); margin-top: var(--s2); }
.contacts-panel input[type="search"] { width: 100%; max-width: 24rem; margin-bottom: var(--s2); }
.contacts-found { max-height: 18rem; overflow: auto; border: 1px solid var(--rule); border-radius: var(--r); padding: 0 var(--s3); margin: var(--s2) 0; }
.contacts-found li { padding: var(--s1) 0; }
.apple-form { display: grid; gap: var(--s2); margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--rule); max-width: 34rem; }
.apple-form[hidden] { display: none; }
.apple-steps { margin: 0; padding-left: 1.2rem; }
.apple-form input[type="text"] { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.04em; }
@media (prefers-reduced-motion: reduce) { .pic-loading { animation: none; } }
.health-inchat label .hint, .apple-form .check .hint { display: block; }

/* 0.18.0: what a voice from a recording needs, shown when one of its buttons is pressed */
.clone-how { margin-top: var(--s2); padding: var(--s3) var(--s4); border: 1px solid var(--line, rgba(255,255,255,0.14)); border-radius: 12px; font-size: 0.875rem; color: var(--ink-2); max-width: 38rem; }
.clone-how p { margin: 0 0 var(--s2); }
.clone-how p:last-child { margin-bottom: 0; }
.clone-how ol { margin: 0 0 var(--s2); padding-left: 1.2rem; display: grid; gap: var(--s2); }
.clone-how strong { color: var(--ink); font-weight: 600; }
.clone-how code { font-size: 0.8125rem; overflow-wrap: anywhere; }

/* ══ 0.19.0: the first screen, glossier, and its orb in three dimensions. Where the device can draw it (orb.js) the
   orb is a ball of blue glass with light moving inside; everywhere else the drawn orb below is itself glossier:
   a sharp point of light, a window in it, a bright lower edge, and its own reflection on the floor. Looks only. ══ */
.hello-orb { width: 8.5rem; height: 8.5rem; }
.hello-ball {
  background:
    radial-gradient(9% 6% at 33% 21%, #fff 0%, rgba(255, 255, 255, 0.92) 40%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(30% 17% at 36% 20%, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.22) 60%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(60% 42% at 62% 96%, rgba(178, 212, 255, 0.85), rgba(178, 212, 255, 0) 72%),
    radial-gradient(circle at 42% 34%, #d6e5ff 0%, #86a9f2 24%, #3e6bc8 52%, #1f3d8e 78%, #121f52 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4), 0 0 80px 10px rgba(190, 212, 255, 0.55), 0 30px 46px -20px rgba(6, 14, 44, 0.9),
    inset 0 -18px 26px rgba(8, 18, 50, 0.5), inset 0 6px 10px rgba(255, 255, 255, 0.4), inset 14px 0 22px -12px rgba(190, 215, 255, 0.35);
}
/* its light lying on the floor under it */
.hello-orb::after {
  content: ""; position: absolute; left: 4%; right: 4%; top: 100%; height: 26%; margin-top: 4%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(170, 205, 255, 0.5) 0%, rgba(170, 205, 255, 0.16) 45%, rgba(170, 205, 255, 0) 72%);
}
.hello-orb3d { position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; transform: translateY(4.25%); pointer-events: none; display: block; }
.hello-orb.is-3d .hello-ball { opacity: 0; animation: none; box-shadow: none; }
.hello-orb.is-3d::after { content: none; }
/* one line, never broken: on a narrow screen (or the narrow blue half of a small computer window) the letters get smaller instead */
.hello-line { max-width: none; }
.hello-lead { display: block; color: #fff; font-weight: 600; font-size: min(1.08em, 3.55vw); margin-bottom: 0.3em; white-space: nowrap; }
@media (min-width: 60rem) { .hello-lead { font-size: min(1.08em, 1.86vw); } }
/* the hello itself catches the light: white at the top of each letter, a breath of blue at the foot */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hello-say { background: linear-gradient(180deg, #ffffff 30%, #d3e2ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; text-shadow: none; filter: drop-shadow(0 6px 18px rgba(8, 18, 50, 0.42)); padding-bottom: 0.08em; }
}
.hello-brand .mono { box-shadow: 0 6px 16px -4px rgba(8, 18, 50, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -3px 6px rgba(46, 90, 172, 0.28); }
.hello-tick { background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.1)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 4px 10px -4px rgba(8, 18, 50, 0.5); }
/* the one button on the page: a bright upper edge, and light that crosses it once as the page arrives */
.hello-card .btn-big { position: relative; overflow: hidden; box-shadow: 0 16px 30px -14px rgba(46, 90, 172, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(8, 18, 50, 0.18); }
.hello-card .btn-big::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 34%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg); animation: hello-sheen 1.5s 1.3s ease-out 1 both;
}
@keyframes hello-sheen { from { left: -40%; } to { left: 120%; } }
@media (min-width: 60rem) {
  .hello-orb { width: 13rem; height: 13rem; margin-bottom: calc(var(--s6) + 1.75rem); }
}
@media (prefers-reduced-motion: reduce) {
  .hello-card .btn-big::after { animation: none; left: 120%; }
}

/* ── 0.20.0: the company's line, the day beside the week ─────────────────────────────────────────────────── */
/* "a product of Future Intellect AI": the tagline's own italic serif, a size down and quieter, at the bottom left.
   It signs the page the way a maker's mark signs a thing; the name above it stays the loudest word. */
.made-by { margin: 0; font-family: var(--serif); font-style: italic; font-size: 0.75rem; line-height: 1.3; letter-spacing: 0.01em; color: var(--ink-2); opacity: 0.8; text-align: left; }
/* a little air after the slanted “of”, which otherwise leans into the upright name */
.made-by-co { font-style: normal; font-weight: 600; letter-spacing: 0.015em; margin-left: 0.28em; }
/* the first screen: in the blue on a computer, at the very end of the page on a phone */
.made-by-stage { display: none; color: rgba(255, 255, 255, 0.7); opacity: 1; }
.made-by-stage .made-by-co { color: rgba(255, 255, 255, 0.92); }
.made-by-end { margin-top: var(--s6); }
@media (min-width: 60rem) {
  .made-by-stage { display: block; position: absolute; left: clamp(2rem, 5vw, 4.5rem); bottom: var(--s4); }
  .made-by-end { display: none; }
}
@media (max-height: 30rem) and (min-width: 60rem) { .made-by-stage { position: static; margin-top: var(--s5); } }
/* inside the app: under the tools in the rail on a computer, at the end of each section on a phone */
.made-by-rail { display: none; }
.made-by-page { margin-top: var(--s7, 3rem); padding-bottom: var(--s3); }
@media (min-width: 1080px) {
  .made-by-rail { display: block; order: 3; margin-top: var(--s4); padding-left: var(--s2); }
  .made-by-page { display: none; }
}

/* Today and This week on one page: the second heading is set like the first */
.panel h2.panel-again { font-size: 1.7rem; line-height: 1.2; letter-spacing: -0.015em; margin: var(--s7, 3rem) 0 var(--s2); padding-top: var(--s5); border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .panel h2.panel-again { font-size: 1.85rem; } }
.ask-time { margin-top: var(--s4); max-width: 36rem; }
.ask-time .check label { font-weight: 600; }
.ask-time .check .hint { display: block; font-weight: 400; margin-top: 0.15rem; }
.ask-time .alarm-row select, .ask-time .alarm-row input[type="time"] { width: auto; }
.ask-time .ask-at { color: var(--ink-2); font-size: 0.9375rem; }
/* the three promises are on a phone's first screen too, now that they carry what the sentence above them said */
@media (max-width: 59.99rem) {
  .hello-promises { display: grid; width: fit-content; max-width: 100%; margin: var(--s4) auto 0; font-size: 0.9375rem; }
  .hello-promises li { align-items: start; gap: var(--s2); }
  .hello-promises .hello-tick { margin-top: 0.1rem; }
}

/* ── 0.22.0: My Day (Today and Week as one page), and the Accounts page ───────────────────────────────── */
/* "On this page": small buttons that bring one part of a long page to the top */
.jumps { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s5); }
.jump { display: inline-flex; align-items: center; gap: 0.45rem; flex: none; padding: 0.35rem 0.85rem; min-height: 2.25rem; border-radius: 99px; border: 1px solid var(--rule); background: transparent; color: var(--ink-2); font-size: 0.875rem; font-weight: 500; transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.2s var(--spring); }
.jump:hover { color: var(--ink); border-color: color-mix(in srgb, var(--harbor) 60%, var(--rule)); background: color-mix(in srgb, var(--harbor) 9%, transparent); }
.jump:active { transform: scale(0.96); }
.jump-count { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 0.35rem; border-radius: 99px; background: var(--harbor); color: var(--harbor-ink); font-size: 0.75rem; font-weight: 700; }
.jump-count:empty { display: none; }
@media (max-width: 40rem) {
  .jumps { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .jumps::-webkit-scrollbar { display: none; }
}
.day-sec, .day-card, .hands, #acc-yours, #acc-add, #acc-friends, #acc-more, #acc-read { scroll-margin-top: var(--s4); }
@media (max-width: 1079.98px) { .day-sec, .day-card, .hands, #acc-yours, #acc-add, #acc-friends, #acc-more, #acc-read { scroll-margin-top: 4.75rem; } }

/* My Day */
.panel-day .lede, .panel-accounts .lede { margin-bottom: var(--s4); }
.day-sec > h2, .day-card > h2, .hands > h2, .panel-accounts > h2 { font-size: 1.35rem; letter-spacing: -0.01em; }
.day-sec { max-width: 40rem; }
.day-sec > h2 { margin-top: 0; }
.day-sec h3 { font-family: var(--serif); font-size: 1.05rem; margin: var(--s5) 0 var(--s1); }
.day-sec[hidden] { display: none; }
.day-card { padding: var(--s5); }
.day-card > h2 { margin: 0 0 var(--s3); }
.day-date { margin: calc(-1 * var(--s2)) 0 var(--s3); color: var(--ink-2); font-size: 0.9375rem; }
.day-card .review p { font-size: 1.125rem; line-height: 1.55; }
.day-card .review > :last-child { margin-bottom: 0; }
.day-card .list .row:last-child { border-bottom: 0; }
.day-card .row { padding: 0.6rem 0; }
.day-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s3); }
.day-foot .quiet-note { margin: 0; }
.day-foot .quiet-note:empty { display: none; }
.day-sec .day-foot { justify-content: flex-start; }
/* when it checks in: each a row, the switch and its words on the left, the time on the right */
.day-card .ask-time { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s2) var(--s4); max-width: none; margin: 0; padding: var(--s3) 0; border-top: 1px solid var(--rule); }
.day-card > h2 + .ask-time, .day-card > .card-head + .ask-time { border-top: 0; padding-top: 0; }
.day-card .ask-time .check, .day-card .ask-time .alarm-row { margin: 0; }
.day-card .ask-time .alarm-row { justify-self: end; flex-wrap: nowrap; gap: var(--s2); }
.day-card .ask-time > [role="status"] { grid-column: 1 / -1; padding-left: 2.1rem; color: var(--ink); }
.day-card .ask-time > [role="status"]:empty { display: none; }
#day-asks > .hint { margin: var(--s3) 0 0; padding-top: var(--s3); border-top: 1px solid var(--rule); max-width: none; }
.day-card .noticed { margin-top: 0; }
.day-card .noticed > h2:first-child { margin-top: 0; font-size: 1.35rem; }
@media (max-width: 34rem) {
  .day-card { padding: var(--s4); }
  .day-card .ask-time { grid-template-columns: minmax(0, 1fr); }
  .day-card .ask-time .alarm-row { justify-self: start; flex-wrap: wrap; }
}

/* Accounts: what it does for you, as rows with a picture, how each stands, and its one control */
.hands { margin: var(--s5) 0; padding: var(--s5); }
.hands > h2 { margin: 0 0 var(--s1); }
.hand-group h3 { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); margin: var(--s5) 0 var(--s2); }
.hand-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.hand { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s3) var(--s4); padding: 0.8rem 0.9rem; border: 1px solid var(--rule); border-radius: 14px; background: color-mix(in srgb, var(--harbor) 4%, transparent); }
.hand-ico { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; color: var(--harbor); background: var(--tint); align-self: start; }
.hand-top { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s1) var(--s2); }
.hand .what { font-size: 1rem; font-weight: 600; }
.hand .hint { display: block; margin-top: 0.15rem; line-height: 1.4; }
.hand-detail { display: block; margin-top: 0.25rem; font-size: 0.8125rem; color: var(--ink-2); overflow-wrap: anywhere; }
.hand-acts { justify-self: end; }
.hand-switches { align-items: center; justify-content: flex-end; }
.hand-picks { display: grid; grid-template-columns: auto auto; gap: var(--s2) var(--s3); justify-content: end; }
.hand-switch { gap: 0.4rem; cursor: pointer; }
.hand-never { margin: var(--s4) 0 0; }
.pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.08rem 0.55rem; border: 1px solid var(--rule); border-radius: 99px; font-size: 0.75rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; opacity: 0.55; }
.pill-on { color: var(--ink); background: var(--tint); border-color: color-mix(in srgb, var(--harbor) 55%, var(--rule)); }
.pill-on::before { background: var(--harbor); opacity: 1; }
/* an on/off switch (a checkbox underneath) */
input.sw { -webkit-appearance: none; appearance: none; position: relative; display: inline-block; flex: none; width: 2.75rem; height: 1.6rem; margin: 0; border: 0; border-radius: 99px; background: color-mix(in srgb, var(--ink-2) 45%, var(--paper)); cursor: pointer; vertical-align: middle; transition: background-color 0.18s; }
input.sw::after { content: ""; position: absolute; top: 0.2rem; left: 0.2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; clip-path: none; transform: none; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); transition: transform 0.2s var(--ease); }
input.sw:checked { background: var(--harbor); }
input.sw:checked::after { transform: translateX(1.15rem); }
input.sw:active { transform: none; }
input.sw:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
input.sw:disabled { opacity: 0.6; cursor: progress; }
@media (max-width: 34rem) {
  .hands { padding: var(--s4); }
  .hand { grid-template-columns: auto minmax(0, 1fr); }
  .hand-acts { grid-column: 2; justify-self: start; }
  .hand-switches, .hand-picks { justify-content: flex-start; }
  .hand-picks { grid-template-columns: auto auto; justify-content: start; }
}
@media (prefers-reduced-motion: reduce) { input.sw, input.sw::after, .jump { transition: none; } }

/* ── 0.23.0 ───────────────────────────────────────────────────────────────────────────────────────── */
/* Settings: "A voice from a recording" and "My voice" each in a tinted box of their own, with a picture and a larger name */
.feature { display: grid; gap: var(--s2); margin-top: var(--s3); padding: var(--s4); border: 1px solid color-mix(in srgb, var(--harbor) 45%, var(--rule)); border-radius: 14px; background: color-mix(in srgb, var(--harbor) 8%, transparent); }
.field.feature { margin-top: 0; }
.feature-title, .set-group .feature-title, .set-group .field > .feature-title { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 var(--s1); font-family: var(--serif); font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.feature-ico { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 10px; background: var(--harbor); color: var(--harbor-ink); }
/* My Day: the date beside the name, four numbers that are also the way around the page, a picture on each card */
.day-top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--s1) var(--s4); max-width: 40rem; margin-bottom: var(--s2); }
.day-top h1 { margin: 0; }
.day-when { color: var(--ink-2); font-size: 0.9375rem; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); max-width: 40rem; margin: 0 0 var(--s5); }
.tile { display: grid; align-content: start; gap: 0.15rem; padding: 0.75rem 0.9rem; text-align: left; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); color: var(--ink-2); box-shadow: var(--shadow-1); transition: border-color 0.15s, background-color 0.15s, transform 0.2s var(--spring); }
.tile:hover { border-color: color-mix(in srgb, var(--harbor) 60%, var(--rule)); }
.tile:active { transform: scale(0.97); }
.tile-n { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile-label { font-size: 0.8125rem; line-height: 1.25; }
.tile.is-hot { border-color: color-mix(in srgb, var(--harbor) 70%, var(--rule)); background: var(--tint); color: var(--ink); }
.tile.is-hot .tile-n { color: var(--harbor); }
@media (max-width: 34rem) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card-head { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 var(--s3); }
.card-head h2, .day-card .card-head h2, .day-sec .card-head h2 { flex: 1; margin: 0; font-size: 1.35rem; letter-spacing: -0.01em; }
.card-pic { display: grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: 12px; background: var(--tint); color: var(--harbor); }
.card-meta { flex: none; color: var(--ink-2); font-size: 0.875rem; white-space: nowrap; }
.card-meta:empty { display: none; }
.day-sec > .quiet-note:empty { display: none; }
/* nothing to approve: said in a quiet box, not as a stray line */
#day-ok > .slips > .quiet-note { display: flex; align-items: center; gap: 0.7rem; margin: 0; padding: var(--s4); border: 1px dashed var(--rule); border-radius: 14px; color: var(--ink-2); }
#day-ok > .slips > .quiet-note::before { content: "✓"; display: grid; place-items: center; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--tint); color: var(--harbor); font-weight: 700; }
/* finished things carry a tick; open ones an empty ring */
.ticks .row, .rings .row { align-items: baseline; gap: 0.65rem; }
.ticks .row::before { content: "✓"; flex: none; color: var(--harbor); font-weight: 700; }
.ticks .row .what { color: var(--ink-2); }
.rings .row::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border: 1.5px solid var(--ink-2); border-radius: 50%; transform: translateY(-0.05rem); }
.day-card .day-foot { justify-content: flex-end; }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }
@media (max-width: 24rem) { .card-head { flex-wrap: wrap; } .card-meta { flex-basis: 100%; padding-left: 2.9rem; margin-top: -0.4rem; } .tile-n { font-size: 1.5rem; } }
/* The hologram: you, from the camera, beside it. A picture next to the canvas, lit and masked to look the part. */
.holo-me { position: absolute; top: 13%; bottom: 15%; right: 3%; width: 44%; display: grid; place-items: center; pointer-events: none; perspective: 900px; }
.holo-me[hidden] { display: none; }
.holo-me-video { width: min(100%, 24rem); max-height: 100%; aspect-ratio: 3 / 4; object-fit: cover; transform: scaleX(-1); filter: grayscale(1) sepia(1) hue-rotate(140deg) saturate(2.6) brightness(1.15) contrast(1.05); mix-blend-mode: screen; -webkit-mask-image: radial-gradient(ellipse 49% 50% at 50% 48%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 49% 50% at 50% 48%, #000 52%, transparent 100%); transition: transform 0.5s var(--ease); }
.holo-me-lines { position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(5, 7, 16, 0) 0 3px, rgba(5, 7, 16, 0.42) 3px 4px); pointer-events: none; }
.holo.has-me .holo-canvas { transform: translateX(-23%); transition: transform 0.5s var(--ease); }
.holo[data-me="face"] .holo-me-video { transform: rotateY(-34deg) scaleX(-1); }
/* (in Full screen you stay beside it, from 0.24.0; only a build on the stage puts your picture away) */
.holo.is-build .holo-me, .holo[data-display="fan"] .holo-me-note { display: none; }
.holo.is-build.has-me .holo-canvas { transform: none; }
.holo-me-bar { position: absolute; left: 0.75rem; bottom: 3.6rem; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.4rem; max-width: calc(100% - 1.5rem); }
.holo[data-display="fan"] .holo-me-bar, .holo.is-build .holo-me-bar { display: none; }
.holo-me-note { position: absolute; left: 0; right: 0; bottom: 6.6rem; margin: 0; padding: 0 1rem; text-align: center; font-size: 0.8125rem; color: #b9c7ee; opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.holo-me-note.is-on { opacity: 1; }
/* 0.26.0: the line sits in the row of buttons, above them, so it can never lie across them (it did, on a phone) */
.holo-me-bar .holo-me-note { position: static; flex: 0 0 100%; padding: 0 0.15rem; text-align: left; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.holo-me-bar .holo-me-note:not(.is-on) { display: none; }
.holo-me-how[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .holo-me-video, .holo.has-me .holo-canvas { transition: none; } }
/* A few words for someone else's Meextend: the card in Talk, and linking on the Accounts page */
.share-card { align-self: flex-start; display: grid; gap: var(--s2); max-width: min(34rem, 100%); margin: 0 0 var(--s4); padding: var(--s4); border: 1px solid color-mix(in srgb, var(--harbor) 55%, var(--rule)); border-left: 4px solid var(--harbor); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow-1); }
.share-to { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.share-words { margin: 0; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.5; overflow-wrap: anywhere; }
.share-acts { display: flex; gap: var(--s2); flex-wrap: wrap; }
.friends > h2 { margin-top: 0; }
.friend-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s3); margin-top: var(--s3); }
.friend-row .label-sm { min-width: 7rem; font-weight: 600; color: var(--ink); }
.friend-code { font-size: 1.0625rem; letter-spacing: 0.08em; padding: 0.3rem 0.7rem; border: 1px dashed var(--rule); border-radius: 10px; background: var(--tint); -webkit-user-select: all; user-select: all; }
.friend-ask { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.friend-in { width: 11rem; min-height: 2.5rem; padding: 0.35rem 0.7rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; letter-spacing: 0.06em; text-transform: uppercase; }
.friend-list { list-style: none; margin: 0; padding: 0; }
.friend-list li { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s3); padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.friend-list li:last-child { border-bottom: 0; }
.friend-list .what { font-weight: 600; }
.friend-acts { display: flex; gap: var(--s2); margin-left: auto; }
.friend-how { margin-top: var(--s3); }
.pic-share-row { display: flex; justify-content: flex-end; margin: calc(-1 * var(--s1)) 0 var(--s2); }
.pic-made-foot .pic-share { margin-left: 0; }
.set-group .field.feature { padding: var(--s4); border-radius: 14px; }

/* ── 0.24.0 ───────────────────────────────────────────────────────────────────────────────────────── */
.holo-build-tip { position: absolute; left: 0.75rem; bottom: 6.6rem; z-index: 2; max-width: min(26rem, calc(100% - 1.5rem)); padding: 0.8rem 0.9rem; border: 1px solid rgba(160, 190, 255, 0.32); border-radius: 14px; background: rgba(10, 16, 36, 0.94); color: #dfe8ff; font-size: 0.875rem; line-height: 1.45; }
.holo-build-tip[hidden] { display: none; }
.holo-build-tip p { margin: 0 0 0.6rem; }
.holo[data-display="fan"] .holo-build-tip, .holo.is-build .holo-build-tip { display: none; }

/* The invite box on the first screen: there only where whoever runs this asks for a code. */
.hello-field[hidden] { display: none; }
.hello-invite input[type="text"] { letter-spacing: 0.12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.hello-invite input[type="text"]::placeholder { letter-spacing: 0.12em; opacity: 0.45; }

/* Everything it can do: the guide. The same sheet as Settings (a row of parts at the top, Done at the foot); each
   part is a soft card of short lines, and what to say stands out as a quotation. */
dialog.dlg-guide { width: min(42rem, calc(100vw - 2rem)); }
.dlg-guide > .dialog-acts { position: sticky; bottom: calc(-1 * var(--s5)); z-index: 2; margin: var(--s4) calc(-1 * var(--s5)) 0; padding: var(--s3) var(--s5); background: var(--paper); border-top: 1px solid var(--rule); }
.guide-top h2 { margin-bottom: var(--s1); }
.guide-lead { color: var(--ink-2); font-size: 0.9375rem; margin: 0 0 var(--s3); }
.guide-group { scroll-margin-top: 9.5rem; margin-bottom: var(--s4); padding: var(--s4); border: 1px solid var(--rule); border-radius: 16px; background: color-mix(in srgb, var(--tint) 55%, transparent); }
.guide-group > h3 { display: flex; align-items: center; gap: var(--s3); margin: 0 0 var(--s3); font-family: var(--serif); font-size: 1.2rem; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.guide-item { padding: var(--s3) 0; border-top: 1px solid color-mix(in srgb, var(--rule) 75%, transparent); }
.guide-item:first-child { border-top: 0; padding-top: 0; }
.guide-item:last-child { padding-bottom: 0; }
.guide-item h4 { margin: 0 0 0.15rem; font-size: 1rem; font-weight: 650; }
.guide-item p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; }
.guide-item .guide-say { margin-top: 0.45rem; color: var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.55rem; }
.guide-say-how { font-size: 0.8125rem; color: var(--ink-2); }
.guide-say q { font-family: var(--serif); font-style: italic; font-size: 1.0625rem; quotes: "“" "”"; }
.guide-acts { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: 0.6rem; }
.guide-acts .btn { min-height: 2.4rem; }
.tool-guide { position: relative; }
.tool-guide .icon { color: var(--harbor); }
@media (max-width: 640px) {
  .dlg-guide > .dialog-acts { bottom: calc(-1 * var(--s5) - env(safe-area-inset-bottom, 0px)); margin-inline: calc(-1 * var(--s4)); padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom, 0px)); }
  .guide-group { padding: var(--s3); scroll-margin-top: 10.5rem; }
}
/* The one-time line that says the guide is there: one short row, so it never crowds a phone's first screen. */
.install.guide-hint { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: var(--s2); padding: var(--s2) var(--s2) var(--s2) var(--s4); }
.guide-hint-text { flex: 1 1 auto; min-width: 0; font-weight: 550; }
.guide-hint .btn { flex: none; }
.guide-hint-x { flex: none; width: 2.4rem; height: 2.4rem; display: inline-grid; place-items: center; font-size: 1.3rem; line-height: 1; text-decoration: none; color: var(--ink-2); border-radius: 50%; }
.guide-hint-x:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
/* On a computer the guide's button is spelled out in the rail (with its dot), so the one-time line is for phones. And
   a short window can scroll the rail instead of losing its last rows. */
@media (min-width: 1080px) {
  .install.guide-hint { display: none; }
  .top { overflow-y: auto; scrollbar-width: thin; }
}
/* (the rail has one more row from 0.24.0: on a shorter window its rows sit a little closer, so the last line still shows) */
@media (min-width: 1080px) and (max-height: 900px) {
  .top { gap: var(--s3); }
  .tools { gap: 0; }
  .tools .tool { padding-block: 0.3rem; }
}

/* 0.25.0: a file for every health app beside its sign-in; "coming soon" where a sign-in is not there yet */
.health-app .health-app-how, .health-app .health-app-note { flex-basis: 100%; margin: 0; }
.health-app .health-app-note:empty { display: none; }
.chip-soon { background: transparent; border-style: dashed; color: var(--ink-2); white-space: nowrap; }
.signin-btn .chip-soon { margin-left: auto; font-weight: 600; color: inherit; border-color: currentColor; background: color-mix(in srgb, currentColor 10%, transparent); opacity: 0.9; }
/* 0.25.0: "Natural light": your camera picture in its own colours (no tint, no scan lines, no glow-through) */
.holo.me-natural .holo-me-video { mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none; border-radius: 1.1rem; box-shadow: 0 0 0 1px rgba(185, 199, 238, 0.35); }
.holo.me-natural .holo-me-lines { display: none; }
.more-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--s2); }
@media (max-width: 560px) {
  .more-acts .chip-soon { font-size: 0.75rem; }
  .signin-btn .chip-soon { font-size: 0.75rem; padding: 0.05rem 0.4rem; }
  .signin-btn .signin-text { min-width: 0; }
}
