/* DayRobin prototype styles.
   Layout concept: phone first. Routine screen = one big picture card, one bar, one hint, nothing else.
   Helper area = calm form pages; two columns from tablet width. */
:root {
  --bg: #F3F5FA;
  --surface: #FFFFFF;
  --surface-2: #E9EDF5;
  --ink: #1C2333;
  --muted: #586179;
  --line: #D5DBE7;
  --accent: #2E64E8;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCE7FF;
  --good: #23A455;
  --good-soft: #DDF5E6;
  --warn: #E58A12;
  --warn-soft: #FFF0D6;
  --bad: #CF3A3A;
  --bad-soft: #FDE3E3;
  --star: #FFC83D;
  --card: #FFFFFF;
  --card-line: #222222;
  --font: "Atkinson Hyperlegible", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11141B; --surface: #1A1F2B; --surface-2: #232A39; --ink: #E8ECF4; --muted: #A2ABBE;
    --line: #2E3647; --accent: #7AA2FF; --accent-ink: #0E1320; --accent-soft: #23314F;
    --good: #4CC97A; --good-soft: #17301F; --warn: #F2A33A; --warn-soft: #3A2B12;
    --bad: #FF7A7A; --bad-soft: #3B1A1A; --star: #FFD25C; --card: #FFFFFF; --card-line: #000000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11141B; --surface: #1A1F2B; --surface-2: #232A39; --ink: #E8ECF4; --muted: #A2ABBE;
  --line: #2E3647; --accent: #7AA2FF; --accent-ink: #0E1320; --accent-soft: #23314F;
  --good: #4CC97A; --good-soft: #17301F; --warn: #F2A33A; --warn-soft: #3A2B12;
  --bad: #FF7A7A; --bad-soft: #3B1A1A; --star: #FFD25C; --card: #FFFFFF; --card-line: #000000;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  overflow-wrap: break-word;
  hyphens: auto;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.screen { min-height: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: 16px; text-align: center;
}
.btn:hover { border-color: var(--accent); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.big { min-height: 60px; font-size: 19px; border-radius: 16px; }
.btn.wide { width: 100%; }
.btn.small { min-height: 38px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn.danger { color: var(--bad); border-color: var(--bad-soft); }
.btn.rec { color: var(--bad); }
.btn.rec.on { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.small svg { width: 16px; height: 16px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.row > .btn { flex: 1 1 160px; }

/* ---------- setup ---------- */
.setup { display: flex; flex-direction: column; align-items: center; padding-block: calc(env(safe-area-inset-top, 0px) + 28px) calc(env(safe-area-inset-bottom, 0px) + 40px); padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.setup-inner { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: .2px; }
.brand svg { width: 34px; height: 34px; }
.setup h1 { font-size: 28px; }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lang-btn { min-height: 54px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 17px; text-align: left; padding: 10px 14px; }
.lang-btn:hover, .lang-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.lang-btn.custom { grid-column: 1 / -1; font-weight: 400; }
.lang-btn.custom strong { display: block; }
.card-box { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; }
.input { width: 100%; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); padding: 10px 12px; font-size: 18px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.check input { width: 26px; height: 26px; flex: none; margin: 0; accent-color: var(--accent); }
.voice-warn ul { margin: 6px 0 8px; padding-left: 20px; }
.voice-warn p { margin: 4px 0; }
.terms-text { overflow-wrap: anywhere; max-height: 46vh; overflow: auto; background: var(--surface-2); border-radius: 12px; padding: 14px; font-size: 15px; white-space: pre-wrap; }
.err { color: var(--bad); font-weight: 700; }
.setup-nav { display: flex; gap: 10px; }
.setup-nav .btn { flex: 1; }
.step-dots { display: flex; gap: 6px; }
.step-dots i { width: 28px; height: 6px; border-radius: 3px; background: var(--line); }
.step-dots i.on { background: var(--accent); }

/* ---------- helper area ---------- */
.h-bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  margin-top: env(safe-area-inset-top, 0px); /* starts below the status bar, so it never lies over the page (v0.2.9) */
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-block: 10px; padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  background: var(--surface); border-bottom: 1.5px solid var(--line);
}
body.helper-on::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.h-bar .title { font-size: 14px; color: var(--muted); font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-bar .brand { min-width: 0; flex: 1 1 auto; overflow: hidden; }
.h-bar > .btn, .h-bar > span { flex: none; }
@media (max-width: 440px) { .h-bar .brand .title { display: none; } #btn-settings span:not(.ic) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.h-main {
  display: grid; gap: 18px; padding-block: 18px 40px; padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  max-width: 1180px; margin: 0 auto;
}
.panel { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel h2 { font-size: 21px; }
.example { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.example .ex-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--muted); }
.example pre { margin: 0; font-family: var(--mono); font-size: 14px; white-space: pre-wrap; }
#plan { width: 100%; min-height: 300px; resize: vertical; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); padding: 12px; font-family: var(--mono); font-size: 16px; line-height: 1.6; }
.msgs { display: flex; flex-direction: column; gap: 6px; }
.msg { border-radius: 10px; padding: 8px 12px; font-size: 15px; }
.msg.bad { background: var(--bad-soft); color: var(--ink); border-left: 5px solid var(--bad); }
.msg.warn { background: var(--warn-soft); color: var(--ink); border-left: 5px solid var(--warn); }
.msg.info { background: var(--accent-soft); color: var(--ink); border-left: 5px solid var(--accent); }
.msg.ok { background: var(--good-soft); color: var(--ink); border-left: 5px solid var(--good); }
.note { font-size: 14px; color: var(--muted); }
.stale { background: var(--warn-soft); border-radius: 10px; padding: 8px 12px; font-size: 15px; }
.steps { display: flex; flex-direction: column; gap: 8px; }
.hstep { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); }
.hstep .pbtn { position: relative; width: 96px; height: 96px; padding: 6px; border-radius: 14px; border: 2px solid var(--card-line); background: var(--card); }
.hstep .pbtn svg { width: 100%; height: 100%; display: block; }
.hstep .pbtn.empty { border-style: dashed; }
.badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; letter-spacing: .4px; padding: 2px 6px; border-radius: 6px; background: #EDE6FF; color: #4B2BB3; vertical-align: middle; }
.pbtn .badge { position: absolute; right: -6px; bottom: -6px; }
.hstep .meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hstep .time { font-family: var(--mono); font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hstep .label { font-weight: 700; font-size: 19px; overflow-wrap: anywhere; }
.hstep textarea { width: 100%; min-height: 64px; resize: vertical; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); padding: 8px 10px; font-size: 15px; }
.hstep .tools { display: flex; flex-wrap: wrap; gap: 8px; }
.hstep .status { font-size: 14px; color: var(--muted); }
.hstep .status.on { color: var(--good); font-weight: 700; }
.hstep .drawing { font-size: 14px; color: var(--accent); font-weight: 700; }
/* compact step rows (usability review #4): tap the picture to change it, the row to open its voice */
.hstep.compact { grid-template-columns: 64px 1fr; gap: 10px; padding: 8px; align-items: center; }
.hstep.compact .pbtn { width: 64px; height: 64px; padding: 4px; border-radius: 12px; }
.row-open { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 56px; border: 0; background: none; color: inherit; font: inherit; text-align: left; padding: 0 4px; cursor: pointer; }
.ro-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-open .label { font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.row-open .time { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.row-open .status { font-size: 13px; color: var(--muted); }
.row-open .status.on, .row-open .drawing { color: var(--good); font-weight: 700; }
.row-open .drawing { color: var(--accent); }
.chev { flex: none; }
.chev svg { width: 22px; height: 22px; transform: rotate(-90deg); color: var(--muted); display: block; }
.chev.up svg { transform: rotate(90deg); }
.hstep.open { position: relative; border-color: var(--accent); }
.hstep.open .meta { grid-column: 1 / -1; }
.hstep.open textarea { min-height: 84px; }
.row-open.close { position: absolute; right: 8px; top: 8px; width: 44px; min-height: 44px; justify-content: center; padding: 0; }
.h-run { display: flex; flex-direction: column; gap: 10px; }
.h-run > .linkbtn { align-self: flex-start; text-align: left; } /* v0.2.34: the four help links line up on the left (owner, 2026-11-13) */
@media (min-width: 900px) {
  .h-main { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  /* not sticky: since v0.2.0 the plan panel can be taller than the screen and would cover the buttons below */
  .h-run { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .h-main > .mode-help, .h-main > .backup-bar { grid-column: 1 / -1; }
  .h-run > .btn.big { flex: 1 1 320px; }
  .h-run > .row { flex: 2 1 420px; }
  .h-run > p.small { flex-basis: 100%; } /* the help links start on their own line, from the left */
  .h-run > .linkbtn { align-self: center; margin-right: 14px; }
}

/* settings */
.set-list { display: flex; flex-direction: column; gap: 14px; }
.set-item { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.set-item:last-child { border-bottom: 0; padding-bottom: 0; }
.set-item h3 { font-size: 17px; }
.pin-wrap { position: relative; }
.pin-wrap .input { padding-right: 56px; letter-spacing: 4px; }
.pin-eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 48px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink, currentColor); border-radius: 10px; cursor: pointer; }
.pin-eye svg { width: 24px; height: 24px; }
.pin-eye[aria-pressed="true"] { color: var(--accent, currentColor); }
.praise-slot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.praise-slot .ps-name { font-weight: 700; }
.praise-slot .row { flex-wrap: wrap; }
.praise-slot.has { flex-direction: column; align-items: stretch; }
.praise-slot.has .row { flex-wrap: nowrap; gap: 6px; }
.praise-slot.has .row .btn { flex: 1 1 0; min-width: 0; }
.praise-slot.has .row .btn.danger { flex: none; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
.toggle input { width: 26px; height: 26px; accent-color: var(--accent); flex: none; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
select.input { font-size: 16px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(10, 14, 24, .55); display: flex; align-items: flex-end; justify-content: center; padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: calc(env(safe-area-inset-top, 0px) + 16px) calc(env(safe-area-inset-bottom, 0px) + 16px); }
.modal .sheet { width: 100%; max-width: 560px; max-height: 100%; overflow: auto; background: var(--surface); color: var(--ink); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 700px) { .modal { align-items: center; } }
@media (max-width: 699px), (pointer: coarse) { .modal.top { align-items: flex-start; } }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.picker button { aspect-ratio: 1; padding: 6px; border-radius: 12px; border: 2px solid var(--card-line); background: var(--card); max-width: 100%; }
.picker button svg { width: 100%; height: 100%; display: block; }
.picker button[aria-pressed="true"] { outline: 4px solid var(--accent); }

/* gate */
.gate-sheet { align-items: stretch; text-align: center; }
.pin-dots { display: flex; justify-content: center; gap: 14px; min-height: 22px; }
.pin-dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); }
.pin-dots i.on { background: var(--ink); }
.gate-q { font-size: 26px; font-weight: 700; }
.gate-a { font-size: 30px; font-weight: 700; min-height: 40px; font-variant-numeric: tabular-nums; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keypad button { min-height: 58px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); font-size: 24px; font-weight: 700; }

/* ---------- routine screen ---------- */
.routine {
  position: fixed; inset: 0; z-index: 20; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  touch-action: manipulation;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.r-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px 4px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.dots { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-width: 0; }
.dots i { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--muted); opacity: .7; }
.dots i.miss { width: 10px; height: 10px; border: 0; background: var(--line); opacity: 1; }
.dots i.now { border-color: var(--accent); background: var(--accent-soft); opacity: 1; width: 20px; height: 20px; }
.dots svg { width: 20px; height: 20px; display: block; }
.r-right { display: flex; align-items: center; gap: 8px; flex: none; }
.clock { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pill { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--warn-soft); color: var(--ink); }
.lock { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); opacity: .55; padding: 0; touch-action: none; }
.lock svg:not(.ring) { width: 20px; height: 20px; flex: none; }
.lock svg.ring { position: absolute; inset: 0; width: 44px; height: 44px; transform: rotate(-90deg); }
.lock svg.ring circle { fill: none; stroke: var(--accent); stroke-width: 4; stroke-dasharray: 126; stroke-dashoffset: 126; }
.lock.holding { opacity: 1; }
.lock.holding svg.ring circle { transition: stroke-dashoffset 2s linear; stroke-dashoffset: 0; }

.r-stage {
  flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding-block: 8px 20px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); text-align: center;
}
.r-card {
  position: relative; width: min(74vw, 48vh, 440px); aspect-ratio: 1; max-width: 100%;
  border-radius: 28px; border: 4px solid var(--card-line); background: var(--card);
  padding: 4%; display: block; box-shadow: 0 6px 0 rgba(0,0,0,.12);
  transition: transform .15s ease, border-color .3s ease;
}
.r-card:active { transform: scale(.98); }
.r-card svg.picto { width: 100%; height: 100%; display: block; }
.r-card.small { width: min(44vw, 30vh, 260px); border-width: 3px; border-radius: 22px; }
.r-card.dim { opacity: .75; }
.r-card.go { border-color: var(--accent); box-shadow: 0 0 0 8px var(--accent-soft), 0 6px 0 rgba(0,0,0,.12); animation: breathe 2.4s ease-in-out infinite; }
.r-card.late { border-color: var(--warn); box-shadow: 0 0 0 8px var(--warn-soft), 0 6px 0 rgba(0,0,0,.12); }
.r-card .done-mark { position: absolute; right: -14px; bottom: -14px; width: 64px; height: 64px; border-radius: 50%; background: var(--good); border: 4px solid var(--card); display: grid; place-items: center; box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.r-card .done-mark svg { width: 36px; height: 36px; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
.r-label { font-size: clamp(28px, 7.4vw, 50px); font-weight: 700; line-height: 1.1; max-width: 18ch; overflow-wrap: anywhere; }
.r-sub { font-size: clamp(18px, 4.6vw, 26px); color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.r-timer { width: min(88vw, 520px); display: flex; flex-direction: column; gap: 8px; }
.bar { position: relative; height: 30px; border-radius: 15px; background: var(--surface-2); overflow: hidden; border: 2px solid var(--line); }
.bar .fill { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 15px; background: var(--good); transition: width .5s linear, background-color .6s ease; }
.bar.low .fill { background: var(--warn); }
.bar.out { border-color: var(--warn); }
.r-left { font-size: clamp(22px, 5.6vw, 32px); font-weight: 700; font-variant-numeric: tabular-nums; }
.r-left.late { color: var(--warn); }
button.r-hint { border: 0; font-family: inherit; cursor: pointer; }
.r-hint { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(18px, 4.8vw, 26px); font-weight: 700; padding: 10px 18px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); }
.r-hint svg { width: 30px; height: 30px; flex: none; }
.r-hint.done { background: var(--good-soft); }
.r-free { font-size: clamp(24px, 6vw, 40px); font-weight: 700; color: var(--muted); }
.big-star svg { width: min(56vw, 40vh, 320px); height: auto; display: block; }
.stars-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 90vw; }
.stars-row svg { width: 34px; height: 34px; }

.r-info { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (orientation: landscape) and (min-width: 700px) {
  .r-stage.two { flex-direction: row; justify-content: center; gap: 56px; }
  .r-stage.two .r-card { width: min(40vw, 66vh, 520px); flex: none; }
  .r-stage.two .r-card.small { width: min(28vw, 48vh, 320px); }
  .r-stage.two .r-info { width: auto; flex: 0 1 520px; }
}

/* ready overlay */
.ready { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: var(--bg); padding-left: var(--gutter-l); padding-right: var(--gutter-r); text-align: center; }
.ready h1 { font-size: clamp(32px, 9vw, 56px); }
.start-btn { width: min(60vw, 260px); aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--good); color: #fff; font-size: clamp(30px, 8vw, 46px); font-weight: 700; box-shadow: 0 8px 0 rgba(0,0,0,.18); }
.start-btn:active { transform: translateY(3px); box-shadow: 0 5px 0 rgba(0,0,0,.18); }
.ready .first { display: flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 700; color: var(--muted); }
.ready .first .mini { width: 64px; height: 64px; padding: 4px; border-radius: 12px; border: 2px solid var(--card-line); background: var(--card); }

/* celebration */
.celebrate { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: color-mix(in srgb, var(--bg) 82%, transparent); pointer-events: none; }
.celebrate .ok { width: min(44vw, 220px); aspect-ratio: 1; border-radius: 50%; background: var(--good); display: grid; place-items: center; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) both; box-shadow: 0 8px 0 rgba(0,0,0,.15); }
.celebrate .ok svg { width: 60%; height: 60%; }
.celebrate .praise { font-size: clamp(32px, 9vw, 60px); font-weight: 700; animation: rise .5s ease .15s both; }
.celebrate .burst { position: absolute; left: 50%; top: 45%; width: 0; height: 0; }
.celebrate .burst svg { position: absolute; width: 44px; height: 44px; margin: -22px; animation: fly 1.3s cubic-bezier(.15, .7, .3, 1) both; }
@keyframes pop { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fly { 0% { transform: translate(0, 0) scale(.3) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(160deg); opacity: 0; } }
.calm .r-card.go, .calm .celebrate .ok, .calm .celebrate .praise { animation: none; }
.calm .celebrate .burst { display: none; }
@media (prefers-reduced-motion: reduce) {
  .r-card.go, .celebrate .ok, .celebrate .praise { animation: none; }
  .celebrate .burst { display: none; }
  .bar .fill { transition: none; }
}

.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 700; max-width: calc(100% - 32px); }

/* ---------- night work 2026-11-08: modes, picture chooser, samples, backup, language check ---------- */
#btn-start-routine { white-space: nowrap; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) { .h-bar .brand > span:not(.logo) { display: none; } }
.mode-help { border: 2px solid var(--accent); }
.mode-help .modes { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .mode-help .modes { grid-template-columns: repeat(3, 1fr); } }
.mode-help .mode { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-soft); border-radius: 12px; padding: 10px; }
.mode-help .mode p { margin: 0; }
.mode-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; }
.mode-ic svg { width: 20px; height: 20px; }
.backup-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.samples { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 14px; min-height: 40px; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.sample-pre { white-space: pre-wrap; font-size: 13px; max-height: 40vh; overflow: auto; background: var(--accent-soft); padding: 10px; border-radius: 10px; margin: 0; }
.pk-label { margin: -8px 0 0; }
.pk-stage { display: flex; align-items: center; justify-content: center; gap: 8px; touch-action: pan-y; user-select: none; }
.pk-big { width: min(56vw, 240px); aspect-ratio: 1; background: var(--card); border: 2px solid var(--card-line); border-radius: 18px; padding: 10px; }
.pk-big.current { outline: 4px solid var(--accent); outline-offset: 2px; }
.pk-big svg { width: 100%; height: 100%; display: block; }
.pk-arrow { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pk-arrow svg { width: 24px; height: 24px; }
.pk-arrow.next svg { transform: scaleX(-1); }
.pk-info { text-align: center; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.pk-strip { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }
.pk-all { flex: none; height: 300px; overflow-y: auto; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); padding: 2px; }
.picker button { position: relative; }
.picker button .badge { position: absolute; right: 2px; bottom: 2px; }
.pk-tools { flex-wrap: wrap; }
.lang-btn.novoice { opacity: .65; }
.lang-btn small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
/* the lock on the routine screen: small, labelled, still needs a long press */
.lock { width: auto; min-width: 44px; display: inline-flex; align-items: center; gap: 4px; padding: 0 10px 0 0; border-radius: 22px; opacity: .75; }
.lock svg:not(.ring) { margin-left: 9px; }
.lock svg.ring { width: 44px; height: 44px; left: 0; top: 0; right: auto; }
.lock-label { white-space: nowrap; hyphens: none; font-size: 13px; font-weight: 700; color: var(--muted); }
.r-top { position: relative; z-index: 4; } /* the lock stays usable above the "Ready?" screen */

/* ---------- 2026-11-09: the helper's wishes for AI drawings ---------- */
.pk-ai { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: var(--accent-soft); }
.pk-ai label { font-weight: 700; }
.pk-ai textarea.input { min-height: 64px; font-size: 16px; resize: vertical; }
.pk-ai p { margin: 0; }
.pk-ai .btn { align-self: flex-start; }
.pk-ai .btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- 2026-11-09: the day view between steps (owner: "a daily view ... what was done, what is
   coming next"; then "without the freetime box and icon") - a list, not one big card, so it never
   looks like a running step ---------- */
.r-stage.day { justify-content: flex-start; overflow-y: auto; text-align: left; }
.r-day { width: min(100%, 560px); margin-block: auto; display: flex; flex-direction: column; gap: 12px; }
.dv-done, .dv-next { display: flex; flex-direction: column; gap: 8px; }
.dv-first-wrap { display: block; }
.dv-row { width: 100%; display: grid; grid-template-columns: 3.1em auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 12px; min-height: 58px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: left; }
.dv-time { font-size: 17px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.dv-pic { display: block; width: 64px; height: 64px; padding: 3px; border-radius: 10px; border: 2px solid var(--card-line); background: var(--card); flex: none; }
.dv-pic svg { display: block; width: 100%; height: 100%; }
.dv-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dv-label { font-size: clamp(17px, 4.6vw, 24px); font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.dv-mark { display: flex; align-items: center; justify-content: center; width: 30px; }
.dv-mark svg { width: 28px; height: 28px; display: block; }
.dv-mark i.miss, .dv-earlier i.miss { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.dv-row.done, .dv-row.missed { background: transparent; border-style: dashed; min-height: 50px; padding-block: 4px; }
.dv-row.done .dv-pic, .dv-row.missed .dv-pic { width: 48px; height: 48px; }
.dv-row.done .dv-label, .dv-row.missed .dv-label { font-size: clamp(16px, 4.2vw, 20px); color: var(--muted); }
.dv-row.missed { opacity: .7; }
.dv-earlier { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-left: 12px; }
.dv-earlier svg { width: 18px; height: 18px; display: block; }
.dv-row.first { min-height: 72px; border-color: var(--ink); }
.dv-row.first .dv-pic { width: clamp(96px, 26vw, 150px); height: clamp(96px, 26vw, 150px); padding: 6px; border-radius: 16px; }
.dv-row.first[disabled] { cursor: default; opacity: 1; }
.dv-row.first.go { border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); cursor: pointer; animation: breathe 2.4s ease-in-out infinite; }
.dv-in { font-size: clamp(15px, 4vw, 19px); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.dv-tap { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); font-size: clamp(15px, 4vw, 19px); font-weight: 700; align-self: flex-start; }
.dv-tap svg { width: 22px; height: 22px; flex: none; }
.dv-row.later { opacity: .85; }
.dv-row.later .dv-pic { width: 64px; height: 64px; }
.dv-more { padding-left: 12px; font-size: 16px; font-weight: 700; color: var(--muted); }
.calm .dv-row.first.go { animation: none; }
@media (prefers-reduced-motion: reduce) { .dv-row.first.go { animation: none; } }
@media (max-height: 640px) {
  .r-day { gap: 8px; }
  .dv-row { min-height: 50px; padding-block: 4px; }
  .dv-row.done, .dv-row.missed { min-height: 44px; }
  .dv-pic, .dv-row.later .dv-pic { width: 48px; height: 48px; }
  .dv-row.done .dv-pic, .dv-row.missed .dv-pic { width: 40px; height: 40px; }
  .dv-row.first .dv-pic { width: 76px; height: 76px; }
  .dv-row.first { min-height: 62px; }
}
@media (orientation: landscape) and (min-width: 700px) {
  .r-day { width: min(100%, 640px); }
}
@media (orientation: landscape) and (min-width: 700px) and (max-height: 500px) { /* phone turned sideways */
  .r-stage.day { padding-block: 4px 8px; }
  .r-day { row-gap: 6px; }
  .dv-done .dv-row:not(:last-child) { display: none; }
  .dv-row { min-height: 42px; padding-block: 3px; gap: 8px; }
  .dv-row.done, .dv-row.missed { min-height: 38px; }
  .dv-pic, .dv-row.later .dv-pic { width: 34px; height: 34px; }
  .dv-row.done .dv-pic, .dv-row.missed .dv-pic { width: 30px; height: 30px; }
  .dv-row.first { min-height: 52px; }
  .dv-row.first .dv-pic { width: 42px; height: 42px; padding: 3px; }
  .dv-label { font-size: 18px; }
  .dv-in, .dv-tap { font-size: 15px; }
}
.pk-big { position: relative; }
.pk-busy { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700; white-space: nowrap; }

/* 2026-11-09: notices (new version, new address, messages), the update and terms gates, the feedback form */
.notice-bar { display: flex; flex-direction: column; gap: 8px; }
.notice-bar .notice { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.notice-bar .notice > span:first-child { flex: 1 1 220px; overflow-wrap: anywhere; }
.gate { display: flex; flex-direction: column; gap: 12px; }
.gate .terms-text { max-height: 34vh; }
.fb-kind { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fb-kind legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.fb-kind .chip { display: inline-flex; align-items: center; gap: 8px; }
.fb-kind .chip input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.fb-kind .chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.fb-preview { font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; min-height: 0; color: var(--muted); background: var(--surface-2); }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* 2026-11-09: where "now" is, an empty space between the done and the next steps (owner: "Just leave it blank") */
.dv-gap { flex: none; height: clamp(28px, 8vh, 72px); }
@media (max-height: 640px) { .dv-gap { height: clamp(20px, 5vh, 40px); } }
@media (orientation: landscape) and (min-width: 700px) and (max-height: 500px) { .dv-gap { height: 12px; } }

@media (orientation: landscape) and (min-width: 700px) and (min-height: 600px) { /* tablets: bigger day-view pictures (usability review #3) */
  .r-day { width: min(100%, 720px); }
  .dv-row.first .dv-pic { width: 160px; height: 160px; }
  .dv-row.later .dv-pic { width: 80px; height: 80px; }
  .dv-row.done .dv-pic, .dv-row.missed .dv-pic { width: 56px; height: 56px; }
  .dv-label { font-size: 28px; }
}

/* the day can run late (usability review J1, J2) */
.r-nextline { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(16px, 4.2vw, 22px); font-weight: 700; color: var(--muted); }
.r-nextline .mini { width: 44px; height: 44px; padding: 3px; border-radius: 10px; border: 2px solid var(--card-line); background: var(--card); display: block; flex: none; }
.r-nextline .mini svg { width: 100%; height: 100%; display: block; }
.late-note { font-size: clamp(17px, 4.6vw, 22px); font-weight: 700; color: var(--muted); margin: -8px 0 0; }
#r-skip { min-width: min(260px, 80vw); }
/* Today in the helper area (usability review J3) */
.td-list { display: flex; flex-direction: column; gap: 2px; }
.td-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "pic label act" "pic chip act"; align-items: center; column-gap: 10px; row-gap: 2px; padding: 4px 6px; border-radius: 10px; min-height: 48px; }
.td-pic { grid-area: pic; } .td-label { grid-area: label; } .td-chip { grid-area: chip; justify-self: start; } .td-act { grid-area: act; }
.td-pic { width: 40px; height: 40px; padding: 2px; border-radius: 8px; border: 1.5px solid var(--card-line); background: var(--card); display: block; }
.td-pic svg { width: 100%; height: 100%; display: block; }
.td-label { font-weight: 700; overflow-wrap: break-word; }
.td-chip { font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 999px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.td-row.done .td-chip { background: var(--good-soft); color: var(--ink); }
.td-row.missed .td-chip { background: var(--warn-soft); color: var(--ink); }
.td-row.now, .td-row.again { background: var(--accent-soft); }
.td-row.now .td-chip, .td-row.again .td-chip { background: var(--accent); color: #fff; }
.td-row.skip .td-label, .td-row.skip .td-pic { opacity: .5; }
.td-row .linkbtn { min-height: 40px; white-space: nowrap; }
/* saved plans (usability review J4) */
.plans { display: flex; flex-direction: column; gap: 6px; }
.chip.on { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.chip.add { border-style: dashed; }
.plan-tools { display: flex; gap: 16px; }
@media (max-height: 500px) { /* sideways phone: the Ready screen with the late-start choice must fit */
  .ready { justify-content: flex-start; overflow-y: auto; gap: 10px; padding-block: 10px; }
  .ready h1 { font-size: 28px; }
  .start-btn { width: min(40vh, 150px); font-size: 30px; }
  .ready .first .mini { width: 44px; height: 44px; }
  .late-note { margin: 0; }
}

/* tester mode label (v0.2.11) */
.test-badge { position: fixed; left: calc(var(--gutter-l) + 4px); bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); z-index: 40; pointer-events: none; background: var(--warn); color: #1a1205; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .02em; }

/* Record a routine (v0.2.13) */
.rec-clock { font-size: 2.4rem; font-weight: 700; text-align: center; margin: 4px 0; font-variant-numeric: tabular-nums; }
.rec-now { text-align: center; margin: 4px 0; }
.rec-new { width: 100%; min-height: 64px; font-size: 1.2rem; }
.rec-tools { margin-top: 10px; }
.rec-got { min-height: 1.2em; margin: 6px 0; }
.rec-thumb { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; margin: 4px auto; }
.rec-thumb.sm { width: 40px; height: 40px; margin: 0; flex: none; }
.rec-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.rec-row { display: flex; align-items: center; gap: 6px; }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 600; flex: none; }
.rec-row .rec-name { flex: 1 1 70px; min-width: 0; }
.rec-row .btn.small { flex: none; padding: 6px 9px; }

/* A browser tab while the installed app is in use (v0.2.19): only this notice, nothing else of the app */
body.solo-on #app, body.solo-on .modal, body.solo-on .toast, body.solo-on .test-badge { display: none !important; }
.solo { position: fixed; inset: 0; z-index: 70; overflow: auto; background: var(--bg); display: flex; padding: calc(env(safe-area-inset-top, 0px) + 24px) var(--gutter-r) calc(env(safe-area-inset-bottom, 0px) + 24px) var(--gutter-l); }
.solo-box { margin: auto; width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; background: var(--surface); border-radius: 20px; padding: 24px 18px; }
.solo-box img { width: 72px; height: 72px; border-radius: 18px; }
.solo-box h1 { margin: 0; font-size: 24px; line-height: 1.25; }
.solo-box p { margin: 0; font-size: 17px; line-height: 1.45; }

/* Install first (v0.2.20): right after the language, before the terms */
.install-first { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.install-first h1 { margin: 0; }
.install-first p { margin: 0; line-height: 1.45; }
.install-first a.btn { text-decoration: none; }
.install-first .if-wait { width: 44px; height: 44px; border-radius: 50%; border: 5px solid var(--line, #d0d7de); border-top-color: var(--accent, #2f6fde); animation: ifspin 1s linear infinite; }
@keyframes ifspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .install-first .if-wait { animation-duration: 3s; } }
/* Fixed time (v0.2.22, owner 2026-11-12): the pin on a step card */
.hstep .status.fixed, .row-open .status.fixed { color: var(--accent); font-weight: 700; }
.fixed-tog { margin: 10px 0 6px; }
.fixed-hint { display: block; font-weight: 400; margin-top: 2px; }

/* Coming up (v0.2.24): a calendar-style card, its own colour (violet), never the look of a step */
:root { --coming: #5B4BC4; --coming-ink: #FFFFFF; --coming-soft: #ECE9FB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --coming: #9B8CFF; --coming-ink: #14112B; --coming-soft: #2A2547; } }
:root[data-theme="dark"] { --coming: #9B8CFF; --coming-ink: #14112B; --coming-soft: #2A2547; }
.coming { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 16px; background: color-mix(in srgb, var(--bg) 97%, transparent); }
.coming[hidden] { display: none; }
.cc { width: min(100%, 420px); max-height: 100%; overflow: auto; background: var(--surface); border: 3px solid var(--coming); border-radius: 22px; display: flex; flex-direction: column; align-items: stretch; text-align: center; box-shadow: 0 10px 0 rgba(0,0,0,.08); }
.cc-band { background: var(--coming); color: var(--coming-ink); padding: 10px 14px; font-size: clamp(24px, 7vw, 34px); font-weight: 800; letter-spacing: .02em; }
.cc-body { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 16px 6px; }
.cc-pic svg { width: min(34vw, 22vh, 150px); height: auto; display: block; }
.cc-label { font-size: clamp(20px, 5.6vw, 28px); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.cc-sub { font-size: clamp(14px, 3.8vw, 18px); color: var(--muted); font-weight: 700; }
.cc-ok { margin: 10px 16px 16px; align-self: center; min-width: 120px; min-height: 48px; border-radius: 14px; border: 2px solid var(--coming); background: var(--coming-soft); color: var(--ink); font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }
.cm-list { display: flex; flex-direction: column; gap: 8px; width: min(100%, 420px); margin-top: 8px; }
.cm-row { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--coming-soft); border-left: 6px solid var(--coming); border-radius: 12px; padding: 6px 10px; }
.cm-pic svg { width: 40px; height: 40px; display: block; }
.cm-text { display: flex; flex-direction: column; min-width: 0; }
.cm-when { font-weight: 800; color: var(--coming); font-size: 15px; }
.cm-label { font-weight: 700; overflow-wrap: anywhere; }
.cm-sub { font-size: 13px; color: var(--muted); }
.cm-list.person .cm-when { font-size: 16px; }
.cm-title { margin: 14px 0 4px; font-size: 16px; }
.cm-list.helper { width: 100%; }
/* How to start: one short screen, fits 360x640 */
.sheet.guide { padding: 14px 16px; gap: 6px; }
.sg { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; line-height: 1.3; }
.sg h2 { margin: 0; font-size: 20px; }
.sg h3 { margin: 4px 0 0; font-size: 14px; color: var(--muted); text-transform: none; }
.sg-intro { margin: 0; font-weight: 700; }
.sg-stages, .sg-tips { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sg-stages li { display: flex; gap: 8px; align-items: flex-start; }
.sg-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.sg-tips li { padding-left: 14px; position: relative; }
.sg-tips li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.sg-hard { margin: 2px 0 0; padding: 6px 10px; background: var(--good-soft); border-radius: 10px; font-weight: 700; }
.sg .btn { align-self: stretch; margin-top: 4px; }

/* help links to the user manual (v0.2.27) */
.panel, .set-item { position: relative; }
.help-q {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 18px; line-height: 1; text-decoration: none;
  color: var(--accent); background: var(--accent-soft);
}
.help-q:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.set-item > .help-q { top: -4px; right: 0; }
.panel > h2, .set-item h3, .today-panel > h2 { padding-right: 44px; }
a.linkbtn { display: inline-block; }
/* phone check (v0.2.27) */
.pc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pc-row { position: relative; display: flex; gap: 10px; align-items: center; min-height: 36px; padding-right: 44px; }
.pc-row .help-q { top: 50%; right: 0; transform: translateY(-50%); }
.pc-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.pc-row.ok .pc-ic { background: var(--good-soft); color: var(--good); }
.pc-row.warn .pc-ic { background: var(--warn-soft); color: var(--warn); }
.pc-row.info .pc-ic { background: var(--surface-2); color: var(--muted); }
.pc-txt { min-width: 0; overflow-wrap: anywhere; }
