/* ---- Self-hosted CareSign script font (SIL OFL 1.1, ops/logo-refs/current/DancingScript.ttf) ---- */
@font-face {
  font-family: "Dancing Script";
  src: url("/assets/DancingScript.ttf") format("truetype");
  font-weight: 400 700;
  font-display: block;
}

/* ---- CareSign v1 tokens (verbatim from bin/caresign_design.py DESIGN_TOKENS_CSS) ---- */
:root {
  color-scheme: light;

  /* Brand & semantic colors (all text >= 4.5:1 contrast on light surfaces) */
  --ink: #1d2420;
  --soft: #55605a;
  --line: #d9ddd7;
  --bg: #f2f3f1;
  --card: #fdfdfc;
  --surface-tinted: #e6efe8;
  --surface-muted: #e7eae6;
  --accent: #1f4a33;
  --accent-light: #2a5e42;
  --accent-dark: #163725;
  --gold: #b8862f;
  --ok: #237446;
  --ok-soft: rgba(35, 116, 70, 0.12);
  --warn: #8a5a00;
  --warn-bg: #fef6e4;
  --danger: #b42318;
  --danger-dark: #911c13;
  --scrim: rgba(10, 15, 30, 0.48);
  --chrome-bg: rgba(242, 243, 241, 0.84);
  --chrome-blur: 18px;

  /* Typography — Apple iOS Large (default) Dynamic Type scale */
  --font-sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-script: "Dancing Script", "Snell Roundhand", "Apple Chancery", "Segoe Script", cursive;
  --text-hero: 2.125rem;       /* 34px [Large Title] */
  --lh-hero: 2.5625rem;        /* 41px */
  --text-title: 1.375rem;      /* 22px [Title 2] */
  --lh-title: 1.75rem;         /* 28px */
  --text-subtitle: 1.0625rem;  /* 17px [Body] */
  --lh-subtitle: 1.375rem;     /* 22px */
  --text-body: 1.0625rem;      /* 17px [Body] */
  --lh-body: 1.375rem;         /* 22px */
  --text-caption: 0.8125rem;   /* 13px [Footnote] */
  --lh-caption: 1.125rem;      /* 18px */
  --text-min: 0.6875rem;       /* 11px Apple iOS minimum */

  /* Corners — continuous curve + concentric system */
  --r-control: 12px;
  --card-pad: 14px;
  --r-card: 26px;
  --r-sheet: 34px;
  --r-pill: 999px;
  --r-outer: var(--r-card);
  --pad: var(--card-pad);
  --r-inner: calc(var(--r-outer) - var(--pad));

  /* Spacing — 4pt base */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;

  /* Safe-area gutters */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --gutter-left: calc(var(--sp-4) + env(safe-area-inset-left, 0px));
  --gutter-right: calc(var(--sp-4) + env(safe-area-inset-right, 0px));
  --gutter-top: calc(var(--sp-5) + env(safe-area-inset-top, 0px));
  --gutter-bottom: calc(var(--sp-8) + env(safe-area-inset-bottom, 0px));

  /* Motion & spring tokens */
  --dur-press: 100ms;
  --dur-fast: 150ms;
  --dur-mid: 200ms;
  --dur-screen: 280ms;
  --dur-max: 400ms;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --spring-stiffness: 300;
  --spring-damping: 35;
  --spring-mass: 1;
  --spring-bounce-damping: 0.8;
}

/* ---- CareSign v1 primary + secondary buttons ---- */
.primary,
a.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: 100%;
  min-height: 52px;
  height: 56px;
  margin: var(--sp-6) 0 0;
  padding: 0 var(--sp-5);
  border: 0;
  border-radius: var(--r-control);
  color: #fff;
  font-family: var(--font-sans);
  font-size: var(--text-body, 17px);
  line-height: var(--lh-body, 22px);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.26),
    0 1px 2px rgba(10, 30, 18, 0.35),
    0 10px 26px rgba(31, 74, 51, 0.32);
  transition: transform var(--dur-press) var(--ease-out), opacity var(--dur-press) var(--ease-out);
}

.primary:not(:disabled):active,
.primary:not(:disabled).is-pressed,
a.primary:active,
a.primary.is-pressed {
  transform: scale(0.97);
  background: linear-gradient(180deg, var(--accent-dark), var(--accent));
  box-shadow:
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    0 1px 2px rgba(10, 30, 18, 0.35),
    0 4px 14px rgba(31, 74, 51, 0.28);
}

.primary[disabled],
.primary:disabled,
.primary[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}

.step,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0 var(--sp-4);
  border: 0;
  border-radius: var(--r-control);
  background: var(--surface-muted);
  box-shadow: none;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: var(--text-body, 17px);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), opacity var(--dur-press) var(--ease-out);
}

.step:not(:disabled):active,
.step:not(:disabled).is-pressed,
.btn-secondary:not(:disabled):active,
.btn-secondary:not(:disabled).is-pressed {
  transform: scale(0.97);
  background: #d5dcd4;
}

/* ---- Shift Log App Shell (matches v2.3 mockup pixel-for-pixel) ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
body { margin: 0; background: var(--bg); font-family: var(--font-sans); color: var(--ink); }
button, [role="button"] { touch-action: manipulation; user-select: none; -webkit-user-select: none; font-family: inherit; cursor: pointer; }
.num { font-variant-numeric: tabular-nums; }

.phone {
  width: 100%;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

@media (min-width: 520px) {
  body { background: #d8dcd6; }
  .phone {
    width: 393px;
    height: 852px;
    margin: 24px auto;
    border-radius: 44px;
    box-shadow: 0 0 0 10px #1d2420, 0 20px 60px rgba(10, 15, 30, 0.35);
  }
}

.screen { display: flex; position: absolute; inset: 0; flex-direction: column; background: var(--bg); }
.status { height: 54px; padding: 18px 32px 0; display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; flex: none; }
.body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--sp-4) var(--sp-4); }
.dock { flex: none; display: flex; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4) calc(var(--sp-6) + var(--safe-bottom)); }
.dock .primary, .dock .btn-secondary { margin-top: 0; flex: 1; min-height: 52px; }

/* header: one scannable line */
.top { display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; }
.top img.mark { width: 30px; height: auto; }
.top .who { font-size: var(--text-caption); line-height: var(--lh-caption); color: var(--soft); }
.top .who b { color: var(--ink); font-weight: 600; font-size: 15px; }
.top .spacer { flex: 1; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--accent); border-radius: var(--r-control); padding: 0; }
.iconbtn.back { margin-left: -12px; }
.iconbtn:active { background: var(--surface-muted); }

.icon { width: 24px; height: 24px; flex: none; display: inline-block; }
.icon svg { width: 100%; height: 100%; display: block; }

/* layer 1: hero */
.hero { margin-top: var(--sp-4); }
.hero .label { font-size: var(--text-caption); color: var(--soft); font-weight: 600; }
.hero .big { font-size: 56px; line-height: 60px; font-weight: 700; letter-spacing: -1.5px; margin-top: 2px; }
.hero .big small { font-size: 24px; font-weight: 600; letter-spacing: 0; color: var(--soft); margin: 0 6px 0 2px; }
.hero .help { font-size: var(--text-caption); color: var(--soft); margin-top: 2px; }

/* layer 2: supporting stats */
.stats { display: flex; gap: var(--sp-6); margin-top: var(--sp-3); }
.stat .v { font-size: var(--text-title); line-height: var(--lh-title); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.stat .v small { font-size: 13px; font-weight: 600; color: var(--soft); margin-left: -4px; }
.stat .l { font-size: var(--text-caption); color: var(--soft); }
.stat.alert .v { color: var(--danger); }
.stat.good .v { color: var(--ok); }
.dot-ok { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); flex: none; }

h1 { font-size: var(--text-hero); line-height: var(--lh-hero); font-weight: 700; margin: var(--sp-3) 0 0; letter-spacing: -0.4px; }
h2 { font-size: 15px; font-weight: 600; color: var(--soft); margin: var(--sp-6) 0 var(--sp-2); display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-2); }
h2 span { font-weight: 400; font-size: 13px; text-align: right; }
.sub { font-size: 15px; line-height: 20px; color: var(--soft); margin-top: 4px; }

/* log pad: 3 across */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: var(--sp-2);
  min-height: 74px; padding: var(--sp-3); border: 0; border-radius: var(--r-control); background: var(--card);
  color: var(--ink); font-size: 15px; line-height: 18px; font-weight: 600; text-align: left;
  transition: transform var(--dur-press) var(--ease-out); }
.tile .icon { color: var(--accent); width: 22px; height: 22px; }
.tile:active { transform: scale(0.97); background: var(--surface-muted); }
.tile.concern { background: #fbeceb; color: var(--danger-dark); }
.tile.concern .icon { color: var(--danger); }

/* the one emphasized surface per screen */
.tint { background: var(--surface-tinted); border-radius: calc(var(--r-control) + var(--sp-3)); padding: var(--sp-4); }
.lastshift { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-4); min-height: 64px; padding: var(--sp-3) var(--sp-2) var(--sp-3) var(--sp-4); border: 0; width: 100%; text-align: left; color: var(--ink); }
.lastshift .what { font-size: 15px; font-weight: 600; }
.lastshift .note { font-size: 13px; color: var(--soft); }
.lastshift .grow { flex: 1; }
.lastshift .icon { color: var(--accent); }
.handoff .hd { font-size: 13px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.handoff .hd .icon { width: 18px; height: 18px; }
.handoff ul { margin: var(--sp-2) 0 0; padding: 0; list-style: none; }
.handoff li { font-size: 16px; line-height: 22px; padding: 6px 0 6px 18px; position: relative; }
.handoff li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.handoff .who { font-size: 13px; color: var(--soft); margin-top: var(--sp-2); }
.link { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--accent); font-weight: 600; font-size: 15px; border: 0; background: none; padding: 0; }
.link .icon { width: 18px; height: 18px; }

/* timeline rows */
.rows { list-style: none; padding: 0; margin: 0; }
.row { display: flex; gap: var(--sp-3); align-items: flex-start; padding: 8px 0; }
.row .t { width: 64px; flex: none; font-size: 15px; color: var(--soft); padding-top: 2px; text-align: right; }
.row .dot { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--surface-tinted); color: var(--accent); display: grid; place-items: center; }
.row .dot .icon { width: 18px; height: 18px; }
.row .what { font-size: 17px; line-height: 22px; font-weight: 600; }
.row .note { font-size: 15px; line-height: 20px; color: var(--soft); font-weight: 400; }
.row.flag .dot { background: #fbeceb; color: var(--danger); }
.row.flag .what { color: var(--danger-dark); }
.pinged { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 13px; color: var(--ok); font-weight: 600; }
.pinged .icon { width: 14px; height: 14px; }

/* history list */
.shift { display: flex; align-items: center; gap: var(--sp-3); min-height: 60px; padding: 6px 0; width: 100%; border: 0; background: none; text-align: left; color: var(--ink); }
.shift .day { width: 52px; flex: none; }
.shift .day b { display: block; font-size: 17px; line-height: 20px; }
.shift .day span { font-size: 13px; color: var(--soft); }
.shift .grow { flex: 1; min-width: 0; }
.shift .what { font-size: 16px; font-weight: 600; line-height: 21px; }
.shift .note { font-size: 13px; color: var(--soft); }
.shift .state { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ok); }
.shift .state .icon { width: 16px; height: 16px; }
.shift .state.live { color: var(--accent); }
.shift .state.flagged { color: var(--danger); }
.shift > .icon { color: var(--soft); width: 18px; height: 18px; }

/* chips */
.field-label { font-size: 15px; font-weight: 600; margin: var(--sp-5) 0 var(--sp-2); }
.field-label span { font-weight: 400; color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip { min-height: 44px; padding: 0 var(--sp-4); border-radius: var(--r-pill); border: 0; background: var(--card); color: var(--ink); font-size: 16px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--accent); color: #fdfdfc; }
.chip.danger.on { background: var(--danger); color: #fdfdfc; }
.chip .icon { width: 16px; height: 16px; }

/* floating-label field */
.fl { position: relative; margin-top: var(--sp-5); background: var(--card); border-radius: var(--r-control); padding: 26px var(--sp-4) 12px; min-height: 56px; }
.fl label { position: absolute; left: var(--sp-4); top: 8px; font-size: 13px; color: var(--soft); font-weight: 600; pointer-events: none; }
.fl .val,
.fl .fl-input {
  font-size: 17px;
  line-height: 22px;
  color: var(--ink);
  font-family: var(--font-sans);
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  outline: none;
  resize: none;
  overflow: hidden;
  display: block;
  field-sizing: content;
}
.fl .fl-input::placeholder { color: var(--soft); opacity: 1; }
.fl .fl-input.is-placeholder { color: var(--soft); }
.fl.tall { min-height: 96px; padding-right: 48px; }
.fl.one-line-mic { padding-right: 48px; }
.fl .mic { position: absolute; right: 2px; bottom: 2px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--accent); display: grid; place-items: center; }
.fl .mic.recording { color: var(--danger); }
.fl.time { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 8px; }
.fl.time .edit { font-size: 15px; color: var(--accent); font-weight: 600; min-height: 44px; display: flex; align-items: center; border: 0; background: transparent; padding: 0; }
.fl.hand { background: var(--surface-tinted); }
.fl.hand label { color: var(--accent); }
.fl.fam .val, .fl.fam .fl-input { font-size: 17px; line-height: 25px; }

.switchrow { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-5); min-height: 56px; padding: 0 var(--sp-4); background: var(--card); border-radius: var(--r-control); }
.switchrow .what { font-size: 17px; }
.switchrow .note { font-size: 13px; color: var(--soft); }
.switch { width: 51px; height: 31px; border-radius: 16px; border: 0; padding: 0; background: var(--ok); position: relative; flex: none; transition: background var(--dur-fast) var(--ease-out); }
.switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fdfdfc; box-shadow: 0 2px 4px rgba(10, 15, 30, 0.2); transition: transform var(--dur-fast) var(--ease-out); }
.switch[aria-checked="false"] { background: #c5cbc4; }
.switch[aria-checked="false"]::after { transform: translateX(-20px); }

/* v2.3 hints */
.hint { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--soft); margin-top: var(--sp-2); }
.hint .icon { width: 14px; height: 14px; flex: none; }
.helper { font-size: 13px; line-height: 18px; color: var(--soft); margin-top: var(--sp-2); }

.toast { position: absolute; left: var(--sp-4); right: var(--sp-4); bottom: calc(100px + var(--safe-bottom)); display: flex; align-items: center; gap: var(--sp-3);
  background: var(--ink); color: #f2f3f1; border-radius: 14px; padding: 6px 6px 6px var(--sp-4); font-size: 15px; box-shadow: 0 8px 24px rgba(10, 15, 30, 0.25); z-index: 20; }
.toast .icon { color: #9fd3b2; width: 20px; height: 20px; }
.toast .msg { flex: 1; text-align: left; }
.toast button { min-height: 44px; padding: 0 var(--sp-4); background: transparent; border: 0; color: #9fd3b2; font-weight: 700; font-size: 15px; }

.ghostbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; border-radius: var(--r-control); color: var(--accent); font-size: 17px; font-weight: 600; min-height: 52px; padding: 0 var(--sp-4); }

.callout { display: flex; gap: var(--sp-2); align-items: center; margin-top: var(--sp-4); min-height: 44px; padding: 10px var(--sp-4); border-radius: var(--r-control); background: var(--warn-bg); color: var(--warn); font-size: 15px; line-height: 20px; }
.callout .icon { width: 20px; height: 20px; }
.callout.emergency { background: #fbeceb; color: var(--danger-dark); font-weight: 600; }
.callout.emergency .icon { color: var(--danger); }

/* care note */
.note-card { margin-top: var(--sp-5); background: var(--card); border-radius: var(--r-card); padding: var(--sp-4) var(--sp-4) var(--sp-1); }
.note-card .hd { display: flex; align-items: center; gap: var(--sp-2); font-size: 13px; color: var(--soft); font-weight: 600; }
.note-card .hd img { width: 22px; height: auto; }
.note-card .hd .icon { width: 24px; height: 24px; color: var(--soft); }
.note-card p { font-size: 16px; line-height: 23px; margin: var(--sp-2) 0 0; }
.facts { list-style: none; padding: 0; margin: var(--sp-3) 0 0; }
.facts li { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: 15px; padding: 6px 0; }
.facts li span:first-child { color: var(--soft); }
.facts li span:last-child { font-weight: 600; text-align: right; }

.sig { margin-top: var(--sp-5); background: var(--card); border-radius: var(--r-control); padding: var(--sp-4); }
.sig .l { font-size: 13px; color: var(--soft); font-weight: 600; }
.sig svg { display: block; margin-top: var(--sp-2); }
.sig .meta { font-size: 13px; color: var(--soft); margin-top: var(--sp-2); }

.checks { list-style: none; padding: 0; margin: var(--sp-5) 0 0; }
.checks li { display: flex; gap: var(--sp-3); align-items: center; min-height: 44px; font-size: 17px; }
.checks .icon { color: var(--ok); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 15px; }
.badge .icon { width: 18px; height: 18px; }
.foot { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-6); font-size: 13px; color: var(--soft); }
.foot img { height: 28px; width: auto; }

/* ---- v2.1: "Just talk" ---- */
.wave { display: flex; align-items: center; gap: 4px; height: 72px; margin-top: var(--sp-5); }
.wave i { flex: 1; border-radius: 3px; background: var(--accent); opacity: 0.85; transition: height 120ms linear; }
.wave i.q { opacity: 0.3; }
.live .hd { font-size: 13px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.live .hd .icon { width: 18px; height: 18px; }
.live p { font-size: 17px; line-height: 25px; margin: var(--sp-2) 0 0; color: var(--ink); }
.live p .old { color: var(--soft); }
.live textarea.talk-edit {
  width: 100%;
  margin-top: var(--sp-2);
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 25px;
  color: var(--ink);
  resize: none;
  outline: none;
}

.flagcard { margin-top: var(--sp-5); background: #fbeceb; border-radius: calc(var(--r-control) + var(--sp-3)); padding: var(--sp-4); }
.flagcard .hd { font-size: 13px; font-weight: 700; color: var(--danger-dark); display: flex; align-items: center; gap: 6px; }
.flagcard .hd .icon { width: 18px; height: 18px; color: var(--danger); }
.flagcard p { font-size: 17px; line-height: 23px; margin: var(--sp-2) 0 0; }
.flagcard .acts { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }
.flagcard .acts .btn-secondary { margin-top: 0; min-height: 44px; flex: 1; }
.flagcard .acts .ghostbtn { min-height: 44px; color: var(--danger-dark); }

.part { display: flex; gap: var(--sp-3); align-items: flex-start; padding: 10px 0; }
.part .dot { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--surface-tinted); color: var(--accent); display: grid; place-items: center; margin-top: 2px; }
.part .dot .icon { width: 18px; height: 18px; }
.part .grow { flex: 1; min-width: 0; }
.part .what { font-size: 13px; font-weight: 600; color: var(--soft); }
.part .txt { font-size: 16px; line-height: 22px; }
.part .iconbtn { margin: -6px -10px 0 0; }
.part .iconbtn .icon { width: 20px; height: 20px; }
.skipped { font-size: 13px; color: var(--soft); margin-top: var(--sp-2); }
.heard { margin-top: var(--sp-4); font-size: 15px; line-height: 21px; color: var(--soft); }
.heard b { color: var(--ink); font-weight: 600; }
.chip.auto { box-shadow: inset 0 0 0 2px var(--accent); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 4px; }
.tag .icon { width: 14px; height: 14px; }
.sev { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.sev .chip { justify-content: center; padding: 0; }
.sev .chip.mid.on { background: var(--warn); color: #fdfdfc; }
.links { display: flex; gap: var(--sp-5); flex-wrap: wrap; }

/* ---- v2.2: family note + offline handoff ---- */
.saved { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--soft); margin-top: var(--sp-2); }
.saved .icon { width: 14px; height: 14px; color: var(--ok); }
.offline { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-2); min-height: 44px; padding: 10px var(--sp-4); border-radius: var(--r-control); background: var(--warn-bg); color: var(--warn); font-size: 15px; line-height: 20px; font-weight: 600; }
.offline .icon { width: 20px; height: 20px; }
.offline span { font-weight: 400; }
.stat.wait .v { color: var(--warn); }
.queued { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--warn); }
.queued .icon { width: 14px; height: 14px; }
.famrow { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); min-height: 64px; padding: var(--sp-3) var(--sp-2) var(--sp-3) var(--sp-4); width: 100%; border: 0; border-radius: var(--r-control); background: var(--card); text-align: left; color: var(--ink); }
.famrow > .icon { color: var(--accent); }
.famrow .grow { flex: 1; }
.famrow .what { font-size: 15px; font-weight: 600; }
.famrow .note { font-size: 13px; color: var(--soft); }
.famrow .chev { color: var(--soft); width: 18px; height: 18px; }
.fam .val { font-size: 17px; line-height: 25px; }
.kept { display: flex; gap: var(--sp-2); align-items: flex-start; margin-top: var(--sp-5); font-size: 15px; line-height: 21px; color: var(--soft); }
.kept .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--soft); }
.kept b { color: var(--ink); font-weight: 600; }
.to { list-style: none; padding: 0; margin: 0; }
.to li { display: flex; justify-content: space-between; align-items: center; min-height: 44px; font-size: 16px; }
.to li span:last-child { font-size: 13px; color: var(--soft); }

/* ---- Sign-In Design C (s00) & interactive sheets ---- */
.signin-screen .body {
  padding: calc(var(--safe-top) + 48px) var(--sp-4) var(--sp-6);
}
.signin-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.signin-mark {
  width: 40px;
  height: auto;
  display: block;
  flex: none;
}
.signin-gch {
  font-size: 15px;
  line-height: 20px;
  color: var(--soft);
  font-weight: 500;
}
.signin-lockup {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.signin-lockup-compact {
  margin-top: 20px;
}
.signin-script {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 68px;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--accent);
  display: inline-block;
  padding: 0.04em 0.14em 0.12em 0;
}
.signin-lockup-compact .signin-script {
  font-size: 40px;
  padding-bottom: 0.04em;
}
.signin-gold-line {
  display: block;
  width: 224px;
  height: 16px;
  margin: 0 0 0 2px;
  overflow: visible;
}
.signin-gold-line path {
  stroke: var(--gold);
  stroke-width: 2.8;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: signin-gold-draw 520ms cubic-bezier(0.23, 1, 0.32, 1) 980ms forwards;
}
.signin-under {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  padding-left: 2px;
}
.signin-by {
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: var(--soft);
  transform: translateY(-2px);
}
.signin-wm {
  display: block;
  width: auto;
  height: 22px;
}
.signin-lockup-compact .signin-wm {
  height: 16px;
}
.signin-title {
  margin: 22px 0 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 28ch;
}
.signin-inside {
  list-style: none;
  margin: 18px 0 0;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  background: var(--surface-tinted);
  border-radius: 16px;
}
.signin-inside li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink);
}
.signin-inside .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: none;
}
.signin-fl {
  margin-top: 20px;
  min-height: 60px;
}
.signin-fl:focus-within {
  box-shadow: 0 0 0 2px var(--accent);
}
.signin-write {
  animation: signin-write 1050ms cubic-bezier(0.37, 0, 0.63, 1) 150ms both;
}
@keyframes signin-write {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 -6% 0 0); }
}
@keyframes signin-gold-draw {
  to { stroke-dashoffset: 0; }
}
.signin-rise {
  animation: signin-rise 420ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes signin-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.signin-settled .signin-write,
.signin-settled .signin-rise,
.signin-settled .signin-gold-line path {
  animation: none;
  opacity: 1;
  transform: none;
  clip-path: none;
  stroke-dashoffset: 0;
}
.otp-input {
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: 0.28em;
  font-variant-numeric: tabular-nums;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}
.error-banner {
  margin-top: var(--sp-3);
  padding: 10px var(--sp-4);
  border-radius: var(--r-control);
  background: #fbeceb;
  color: var(--danger-dark);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.dev-code-banner {
  margin-top: var(--sp-3);
  padding: 10px var(--sp-4);
  border-radius: var(--r-control);
  background: var(--surface-tinted);
  color: var(--accent);
  font-size: 14px;
  line-height: 20px;
}
.unsorted-nudge {
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-control);
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 14px;
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.unsorted-nudge button {
  border: 0;
  background: var(--warn);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--r-pill);
  padding: 6px 12px;
  min-height: 36px;
}
.late-entries {
  margin-top: var(--sp-4);
  background: var(--card);
  border-radius: var(--r-card);
  padding: var(--sp-4);
}
.late-entries .hd {
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.late-entries ul { list-style: none; padding: 0; margin: var(--sp-2) 0 0; }
.late-entries li { font-size: 15px; line-height: 21px; padding: 6px 0; border-top: 1px solid var(--line); }
.late-entries li:first-child { border-top: 0; }
.late-entries .meta { font-size: 12px; color: var(--soft); }

/* CareSign dialog sheet */
dialog.cs-sheet {
  width: min(361px, calc(100vw - 32px));
  max-width: 100%;
  border: 0;
  border-radius: var(--r-sheet);
  padding: 22px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}
dialog.cs-sheet::backdrop {
  background: var(--scrim);
}
dialog.cs-sheet h3 {
  margin: 0;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
}
dialog.cs-sheet .sheet-sub {
  margin: var(--sp-2) 0 0;
  font-size: 15px;
  line-height: 21px;
  color: var(--soft);
}
dialog.cs-sheet textarea,
dialog.cs-sheet input[type="text"],
dialog.cs-sheet input[type="time"] {
  width: 100%;
  margin-top: var(--sp-3);
  padding: 12px 14px;
  border-radius: var(--r-control);
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
}
dialog.cs-sheet .sheet-actions {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
dialog.cs-sheet .sheet-actions button {
  flex: 1;
  margin-top: 0;
}

@media (hover: hover) and (pointer: fine) {
  .tile:hover { background: var(--surface-tinted); }
  .tile.concern:hover { background: #f7dedc; }
}

/* ---- Care log photos, shower/skin check, emotion wheel, mood trend, weekly recap ---- */
.tile .tile-sub {
  display: block;
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  color: var(--soft);
  margin-top: 2px;
}
.tile-mood-emoji {
  font-size: 22px;
  line-height: 22px;
  display: inline-block;
}
.tile.mood-tile.tone-happy { background: #edf7f0; }
.tile.mood-tile.tone-calm { background: #ebf3f0; }
.tile.mood-tile.tone-anxious { background: var(--warn-bg); }
.tile.mood-tile.tone-frustrated { background: #fbeceb; }

/* Privacy reminder + in-app camera capture */
.privacy-reminder {
  align-items: flex-start;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 14px;
  line-height: 20px;
}
.privacy-reminder b {
  display: block;
  font-weight: 700;
  color: var(--ink);
}
.media-mode-tabs {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.camera-stage {
  position: relative;
  margin-top: var(--sp-3);
  border-radius: var(--r-card);
  overflow: hidden;
  background: #141a16;
  aspect-ratio: 4 / 3;
  max-height: 210px;
  display: grid;
  place-items: center;
}
.camera-stage.has-preview {
  max-height: 175px;
  aspect-ratio: 16 / 9;
}
.media-caption-fl {
  margin-top: var(--sp-3);
}
.camera-viewfinder,
.camera-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.camera-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--sp-4);
  text-align: center;
  color: #f2f3f1;
  background: linear-gradient(180deg, rgba(20, 26, 22, 0.5), rgba(20, 26, 22, 0.8));
}
.camera-overlay .icon { width: 32px; height: 32px; color: #9fd3b2; }
.camera-overlay-title { font-size: 16px; font-weight: 600; }
.camera-overlay-sub { font-size: 13px; color: rgba(242, 243, 241, 0.78); }
.rec-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.camera-controls {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.camera-controls .btn-secondary { flex: 1; font-size: 15px; }
.camera-controls .recording-btn { background: #fbeceb; color: var(--danger-dark); }
.camera-fallback-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--sp-3);
  padding: 10px var(--sp-3);
  border-radius: var(--r-control);
  background: var(--card);
  border: 1px dashed var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}
.camera-fallback-label .icon { width: 18px; height: 18px; }
.camera-fallback-label small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--soft); }
.camera-fallback-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Media strips & cards */
.media-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}
.media-card {
  position: relative;
  margin: 0;
  border-radius: var(--r-control);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
}
.media-thumb {
  width: 100%;
  height: 112px;
  object-fit: cover;
  display: block;
  background: #141a16;
}
.media-placeholder {
  width: 100%;
  height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--surface-tinted);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.media-card figcaption {
  padding: 8px 10px;
}
.media-cap {
  font-size: 13px;
  line-height: 17px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}
.media-meta {
  font-size: 11px;
  color: var(--soft);
  margin-top: 2px;
}
.media-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(29, 36, 32, 0.78);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
}
.media-del .icon { width: 14px; height: 14px; }
.note-photos {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}
.note-photos-hd {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.note-photos-hd .icon { width: 16px; height: 16px; }

/* Shower schedule + shower details + skin check */
.shower-schedule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  padding: 10px var(--sp-4);
  border-radius: var(--r-control);
  background: var(--surface-tinted);
  color: var(--accent);
}
.shower-schedule-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.shower-schedule-label .icon { width: 18px; height: 18px; }
.shower-days-pills {
  display: inline-flex;
  gap: 6px;
}
.day-pill {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.shower-card {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-card);
  background: var(--surface-tinted);
}
.skin-alert-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: #fbeceb;
  color: var(--danger-dark);
  font-size: 12px;
  font-weight: 700;
}
.skin-alert-tag .icon { width: 13px; height: 13px; color: var(--danger); }

/* Timeline per-entry undo */
.row-main { flex: 1; min-width: 0; }
.row-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.row-title-bar .link { min-height: 32px; text-align: left; }
.row-undo-btn {
  flex: none;
  border: 0;
  background: var(--surface-muted);
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-pill);
  padding: 4px 10px;
  min-height: 28px;
}
.row-undo-btn:active { background: #d5dcd4; color: var(--ink); }

/* Mood: weekly trend + emotion wheel */
.mood-trend-card {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-card);
  background: var(--card);
}
.mood-trend-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.mood-trend-hd .num { font-size: 13px; color: var(--soft); font-weight: 500; }
.mood-trend-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: var(--sp-3);
  align-items: end;
}
.trend-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.trend-emoji {
  font-size: 16px;
  line-height: 18px;
  height: 18px;
}
.trend-track {
  width: 100%;
  max-width: 24px;
  height: 54px;
  border-radius: 8px;
  background: var(--bg);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 2px;
}
.trend-bar {
  width: 100%;
  border-radius: 6px;
  min-height: 6px;
}
.trend-bar.pos { background: var(--ok); }
.trend-bar.mid { background: var(--gold); }
.trend-bar.low { background: var(--danger); }
.trend-bar.empty { background: var(--line); }
.trend-day {
  font-size: 11px;
  font-weight: 600;
  color: var(--soft);
}
.mood-trend-summary {
  margin-top: var(--sp-3);
  font-size: 13px;
  line-height: 18px;
  color: var(--soft);
}
.mood-selected-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding: 12px var(--sp-4);
  border-radius: var(--r-control);
  background: var(--surface-tinted);
}
.mood-selected-emoji { font-size: 28px; line-height: 1; flex: none; }
.mood-selected-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.mood-selected-meaning { font-size: 13px; line-height: 18px; color: var(--soft); margin-top: 2px; }
.emotion-wheel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.emotion-group-hd {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-2);
}
.emotion-group-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.emotion-group-dot.tone-happy { background: var(--ok); }
.emotion-group-dot.tone-calm { background: var(--accent); }
.emotion-group-dot.tone-tired { background: #7b8781; }
.emotion-group-dot.tone-sad { background: #3b6d8c; }
.emotion-group-dot.tone-anxious { background: var(--gold); }
.emotion-group-dot.tone-frustrated { background: var(--danger); }
.emotion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
}
.emotion-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 12px;
  border-radius: var(--r-control);
  border: 1.5px solid transparent;
  background: var(--card);
  color: var(--ink);
  text-align: left;
  transition: transform var(--dur-press) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.emotion-card:active { transform: scale(0.98); }
.emotion-card.on {
  background: var(--accent);
  color: #fdfdfc;
  border-color: var(--accent-dark);
}
.emotion-card.on .emotion-meaning { color: rgba(253, 253, 252, 0.85); }
.emotion-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
}
.emotion-emoji { font-size: 17px; line-height: 1; }
.emotion-meaning {
  font-size: 12px;
  line-height: 16px;
  color: var(--soft);
  font-weight: 400;
}

/* Weekly recap */
.recap-milestones {
  margin: var(--sp-2) 0 0;
  padding: 0 0 0 18px;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink);
}
.recap-ridealong p {
  margin: var(--sp-2) 0 0;
  font-size: 14px;
  line-height: 20px;
}

/* Quick time picker presets in sheet */
.time-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-2);
}
.time-presets button {
  border: 0;
  border-radius: var(--r-pill);
  background: var(--surface-muted);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  min-height: 34px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .signin-write,
  .signin-rise,
  .signin-gold-line path {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    stroke-dashoffset: 0 !important;
  }
}

/* ---- Boot fallback: shown only when an app module fails to load ---- */
.boot-error:not([hidden]) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: var(--gutter-top) var(--gutter-right) var(--gutter-bottom) var(--gutter-left);
  text-align: left;
}
.boot-error-title {
  margin: 0;
  font-size: var(--text-hero);
  line-height: var(--lh-hero);
  font-weight: 700;
  color: var(--ink);
}
.boot-error-help {
  margin: var(--sp-2) 0 0;
  font-size: var(--text-body);
  color: var(--soft);
}

/* ---- Just talk: progress steps, skeleton, section cards (11/30) ---- */
.stat.warn .v { color: var(--warn); }
.meter { height: 6px; border-radius: var(--r-pill); background: var(--surface-muted); margin-top: var(--sp-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ok); border-radius: inherit; transition: width 240ms var(--ease-out, ease-out); }

.talk-steps { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; gap: var(--sp-3); }
.talk-steps li { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--text-body); line-height: var(--lh-body); color: var(--soft); }
.talk-steps li.done { color: var(--ink); }
.talk-steps li.active { color: var(--ink); font-weight: 600; }
.talk-steps .mark { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid var(--line); }
.talk-steps li.done .mark { background: var(--ok); border-color: var(--ok); color: #fdfdfc; }
.talk-steps li.done .mark .icon { width: 14px; height: 14px; }
.talk-steps li.active .mark { border-color: var(--accent); border-top-color: transparent; animation: talk-spin 900ms linear infinite; }
@keyframes talk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .talk-steps li.active .mark { animation: none; border-top-color: var(--accent); } }

.talk-skel { margin-top: var(--sp-6); display: grid; gap: var(--sp-2); }
.sk-card { display: flex; gap: var(--sp-3); padding: var(--card-pad); background: var(--card); border-radius: var(--r-card); }
.sk-card > div { flex: 1; display: grid; gap: 8px; }
.sk-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-muted); flex: none; }
.sk-line { display: block; height: 12px; border-radius: 6px; background: var(--surface-muted); animation: talk-pulse 1.4s ease-in-out infinite; }
.sk-line.w40 { width: 40%; } .sk-line.w70 { width: 70%; } .sk-line.w90 { width: 90%; }
@keyframes talk-pulse { 50% { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .sk-line { animation: none; } }

.tcards { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
/* Card radius 26 = 12px buttons + 14px padding, so the corners stay parallel. */
.tcard { background: var(--card); border-radius: var(--r-card); padding: var(--card-pad) var(--card-pad) var(--card-pad) calc(var(--card-pad) + 2px); }
.tcard.unsure { background: var(--warn-bg); }
.tcard.ok { background: var(--surface-tinted); }
.tcard-hd { display: flex; align-items: center; gap: var(--sp-2); min-height: 32px; }
.tcard-hd b { font-size: var(--text-body); font-weight: 600; flex: 1; }
.tcard-hd .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-tinted); color: var(--accent); display: grid; place-items: center; flex: none; }
.tcard.ok .tcard-hd .dot { background: var(--card); }
.tcard-hd .dot .icon { width: 18px; height: 18px; }
.okpill, .warnpill { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-caption); font-weight: 600; }
.okpill { color: var(--ok); }
.okpill .icon { width: 16px; height: 16px; }
.warnpill { color: var(--warn); }
.titem { margin-top: var(--sp-3); }
.titem .txt { font-size: 16px; line-height: 22px; }
.titem .meta { font-size: var(--text-caption); line-height: var(--lh-caption); color: var(--soft); margin-top: 2px; }
.titem .warn { display: flex; gap: 6px; align-items: flex-start; font-size: var(--text-caption); line-height: var(--lh-caption); color: var(--warn); font-weight: 600; margin-top: 4px; }
.titem .warn .icon { width: 16px; height: 16px; margin-top: 1px; }
.titem.fix { display: grid; gap: var(--sp-2); }
.titem.fix .fix-label { font-size: var(--text-caption); font-weight: 600; color: var(--soft); }
.titem.fix .fix-time { display: grid; gap: 8px; font-size: var(--text-caption); color: var(--soft); }
.titem.fix .fix-time .fl-input { max-width: 10rem; min-height: 48px; padding: 0 var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-control); font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; background: var(--card); color: var(--ink); }
.titem.fix textarea { width: 100%; min-height: 56px; padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-control); font: inherit; font-size: 16px; background: var(--card); color: var(--ink); }
.titem.fix .ghostbtn.sm { justify-self: start; min-height: 44px; }
.tcard-acts { display: flex; gap: var(--sp-2); justify-content: flex-end; margin-top: var(--sp-3); }
.tcard-acts .btn-secondary { margin-top: 0; min-height: 44px; border-radius: var(--r-control); }
.tcard-acts .ghostbtn { min-height: 44px; }
.dock .primary:disabled { opacity: 0.45; }
