/* Coach and Director sections. Pulse Teal tokens come from index.html (:root). Lists, lines and the pulse trace. */
.care { display: flex; flex-direction: column; flex: 1; }
.care-body { gap: 12px; }

/* Demo switch (hidden outside demo mode) */
.dswitch { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: var(--ink); color: var(--bg); overflow-x: auto; scrollbar-width: none; }
.dswitch > * { flex: none; }
.dlabel { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.seg { display: flex; background: color-mix(in srgb, var(--bg) 14%, transparent); border-radius: 99px; padding: 3px; gap: 2px; min-width: 0; }
.seg button { border: 0; background: transparent; color: inherit; padding: 5px 10px; border-radius: 99px; font-size: 13px; white-space: nowrap; opacity: .8; }
.seg button small { opacity: .75; font-size: 11.5px; }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); opacity: 1; font-weight: 650; }
.dreset { border: 1px solid color-mix(in srgb, var(--bg) 35%, transparent); background: transparent; color: inherit; border-radius: 99px; padding: 4px 11px; font-size: 12.5px; }

/* Health words */
.hw { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 3px 10px 3px 8px; border-radius: 99px; white-space: nowrap; flex: none; }
.hw::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hw-strong { background: var(--soft); color: var(--teal); }
.hw-strained { background: var(--sun-soft); color: var(--sun); }
.hw-unclear { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.hw-unclear::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* Header */
.ohead { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.okick { margin: 0; font-size: 13px; font-weight: 650; color: var(--ink-3); letter-spacing: .02em; }
.ohead h1 { font-size: 26px; font-weight: 750; line-height: 1.12; }
.oline { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.numlink { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); font-weight: 650; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--teal) 45%, transparent); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.numlink:hover { text-decoration-color: var(--teal); }
.numlink.sbtn { text-decoration: none; }
.osect { font-family: var(--body); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; margin: 14px 0 0; }
.osub { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.osub .osect { margin-bottom: 0; }

/* Filters */
.ofilters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 4px -16px 0; padding: 0 16px; }
.ofilters .fchip { white-space: nowrap; font-size: 13.5px; }
.ofilters .fchip span { font-size: 10px; opacity: .7; margin-left: 2px; }

/* Ministry pulse: a list on the phone, a row with arrows on wider screens */
.opulse { display: flex; flex-direction: column; gap: 0; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.pcard { border: 0; background: none; text-align: left; display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-template-areas: "top trace" "top line"; column-gap: 12px; align-items: center; padding: 11px 14px; width: 100%; color: var(--ink); }
.pcard + .pcard, .parrow + .pcard { border-top: 1px solid var(--line); }
.ptop { grid-area: top; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.ptop b { font-family: var(--display); font-size: 16px; font-weight: 700; }
.pcard .trace { grid-area: trace; }
.pline { grid-area: line; font-size: 13px; color: var(--ink-2); }
.parrow { display: none; }
.trace { display: block; width: 100%; height: 30px; overflow: visible; }
.trace path { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.trace.tr-strong path { stroke: var(--teal); }
.trace.tr-strained path { stroke: var(--gold); stroke-width: 2; opacity: .9; }
.trace.tr-unclear path { stroke: var(--ink-3); stroke-dasharray: 4 5; }
.trace.wide { height: 40px; margin: 6px 0 2px; }
:root[data-theme="dark"] .trace.tr-strong path { stroke: var(--brand-d); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .trace.tr-strong path { stroke: #7FD0C6; } :root:not([data-theme="light"]) .hw-strong { color: #7FD0C6; background: #163533; } }

/* Needs a conversation */
.needs, .wins { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.need { display: flex; flex-direction: column; gap: 8px; padding: 13px 14px; }
.need + .need, .wins li + li { border-top: 1px solid var(--line); }
.ntext b { display: block; font-weight: 650; font-size: 15.5px; line-height: 1.3; }
.ntext span { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }
.nacts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.need.done .ntext b { color: var(--ink-2); }
.sentnote { display: inline-flex; gap: 6px; align-items: center; color: var(--teal); font-weight: 650; font-size: 14px; }
.sentnote svg { width: 16px; height: 16px; stroke-width: 3; }

/* Wins */
.wins li { display: flex; gap: 12px; padding: 12px 14px; align-items: flex-start; }
.wdot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; margin-top: 6px; }
.wins b { display: block; font-weight: 600; font-size: 15px; line-height: 1.35; }
.wins span { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }

/* Ask */
.oask { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding: 14px; background: var(--soft); border-radius: var(--r); }
.oask .gs-input { background: var(--surface); }
.oask .chip { text-align: left; font-size: 13.5px; }

/* Lists */
.olist { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.orow { display: flex; gap: 12px; align-items: center; padding: 11px 14px; width: 100%; border: 0; background: none; text-align: left; color: var(--ink); }
.orow + .orow { border-top: 1px solid var(--line); }
.orow > svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.orow .avatar { width: 36px; height: 36px; font-size: 13px; }
.orow .numlink { white-space: nowrap; }
.sheet .olist { box-shadow: 0 0 0 1px var(--line); margin-bottom: 12px; }
.reasons { margin: 8px 0 12px; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; display: grid; gap: 4px; }
.sheet .ghead { margin-bottom: 8px; }
.muted.pad { padding: 14px; }

/* Coach: one card per Leader */
.lcards { display: flex; flex-direction: column; gap: 10px; }
.lcard { border: 0; text-align: left; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 13px 14px; display: flex; flex-direction: column; gap: 9px; color: var(--ink); width: 100%; }
.lc-top { display: flex; gap: 10px; align-items: center; }
.lc-top .avatar { width: 38px; height: 38px; font-size: 13px; }
.lc-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; font-size: 13px; color: var(--ink-2); }

/* Single-section views have no tab bar */
@container app (min-width: 760px) {
  .care-main:not(:has(.tabbar)) { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
  .care-main:not(:has(.tabbar)) .care-body { grid-column: 1; }
  .dswitch { padding: 8px 24px; }
  .ohead h1 { font-size: 32px; }
  .opulse { flex-direction: row; align-items: stretch; background: none; box-shadow: none; overflow: visible; gap: 0; }
  .pcard { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 12px; flex: 1 1 0; min-width: 0; }
  .pcard + .pcard, .parrow + .pcard { border-top: 0; }
  .ptop { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; flex-wrap: wrap; }
  .parrow { display: grid; place-items: center; width: 18px; flex: none; color: var(--ink-3); }
  .parrow svg { width: 14px; height: 14px; }
  .ocols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 20px; align-items: start; }
  .need { flex-direction: row; align-items: center; }
  .ntext { flex: 1; min-width: 0; }
  .nacts { flex: none; max-width: 48%; }
  .lcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .ofilters { margin: 4px 0 0; padding: 0; flex-wrap: wrap; }
}

/* Coach: check-in queue */
.qtag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sun); margin-bottom: 4px; }
.need .draft { font-size: 14.5px; }
.need .nacts { flex-wrap: wrap; }
.cq .need { flex-direction: column; align-items: stretch; }
.cq .nacts { max-width: none; }
.udot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); vertical-align: middle; margin-left: 4px; }
.clip { display: -webkit-box !important; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.fine svg { width: 12px; height: 12px; vertical-align: -1px; }

/* Message thread */
.cthread { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; }
.cthread .bubble { max-width: 86%; }
.cthread .bubble.out { background: var(--teal); color: #fff; }
.cthread .bubble small { display: block; font-size: 11px; opacity: .7; margin-top: 3px; }

/* Training: linked videos, never hosted */
.vlist { display: flex; flex-direction: column; gap: 10px; }
.vitem { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.vslot { border: 0; width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--teal), var(--teal-deep)); }
.vslot .vplay { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--teal-deep); display: grid; place-items: center; flex: none; }
.vslot .vplay svg { width: 18px; height: 18px; fill: currentColor; }
.vtext b { display: block; font-weight: 650; }
.vtext span { font-size: 13px; opacity: .85; }
.stepno { width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--teal); display: grid; place-items: center; flex: none; }
.stepno svg { width: 14px; height: 14px; stroke-width: 3; }
.stepno.off { background: var(--surface-2); color: var(--ink-3); opacity: .5; }

/* Leader examples (demo only) */
.exrow { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.exrow > span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); flex: none; margin-right: 2px; }
.exrow .fchip { white-space: nowrap; }
.exrow .fchip small { opacity: .7; }
.care .faces, .sheet .faces { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@container app (min-width: 760px) {
  .vlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .exrow { margin: 0; padding: 0; }
}

/* Pipeline boards: swipe across columns on a phone, all columns side by side on wider screens */
.board { display: flex; align-items: flex-start; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: thin; }
.bcol { flex: 0 0 82%; scroll-snap-align: start; background: var(--surface-2); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bcol h3 { font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; }
.bcol h3 span { background: var(--surface); border-radius: 99px; padding: 1px 9px; font-size: 12px; color: var(--ink); letter-spacing: 0; }
.bcol .muted.small { padding: 4px; }
.bcard { border: 0; text-align: left; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 11px; display: flex; flex-direction: column; gap: 7px; width: 100%; color: var(--ink); }
.bcard.notyet { opacity: .72; }
.bc-top { display: flex; gap: 9px; align-items: center; }
.bc-top .avatar { width: 32px; height: 32px; font-size: 12px; }
.bc-top .who span { font-size: 12.5px; }
.bc-lines { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--ink-2); }
.bc-lines .pill { align-self: flex-start; margin-top: 2px; font-size: 11px; }
@container app (min-width: 760px) {
  .board { margin: 0; padding: 2px 0 8px; }
  .bcol { flex: 1 1 0; min-width: 150px; }
}

/* Handoff tabs */
.hstages { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 6px -16px 0; padding: 0 16px 2px; }
.hstages button { flex: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 7px 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: var(--ink); }
.hstages button b { font-family: var(--display); font-size: 15px; }
.hstages button .hw { font-size: 11px; padding: 2px 8px 2px 6px; }
.hstages button[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.htake { background: var(--soft); border-radius: var(--r); padding: 12px 14px; margin-top: 4px; }
.htake p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.45; }
.htake .trace { height: 26px; }
.mlist { display: flex; flex-direction: column; gap: 10px; }
.mrow { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) 84px; grid-template-areas: "label spark" "vals vals"; gap: 8px 12px; align-items: center; }
.mlabel { grid-area: label; }
.mlabel b { display: block; font-weight: 650; font-size: 15px; }
.mlabel span { font-size: 12.5px; color: var(--ink-2); }
.mvals { grid-area: vals; display: flex; gap: 20px; flex-wrap: wrap; }
.mv { display: flex; flex-direction: column; gap: 1px; }
.mv small { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.mv .numlink, .mnum { font-family: var(--display); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.spark { grid-area: spark; width: 84px; height: 26px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--gold); }
.spark.none { display: block; }
.msub { font-family: var(--body); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; margin: 10px 0 -2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .spark polyline { stroke: #7FD0C6; } }
@container app (min-width: 760px) {
  .hstages { margin: 6px 0 0; padding: 0; }
  .hstages button { flex: 1 1 0; }
  .mrow { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 110px; grid-template-areas: "label vals spark"; }
  .spark { width: 110px; }
}

/* Reports: a calm, print-ready page */
.rtools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rtools .rsp { flex: 1; }
.ric { width: 36px; height: 36px; border-radius: 10px; background: var(--soft); color: var(--teal); display: grid; place-items: center; flex: none; }
.ric svg { width: 18px; height: 18px; }
.report { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 18px 18px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.rhead h1 { font-size: 26px; font-weight: 750; line-height: 1.1; margin-top: 2px; }
.rkick { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.rperiod { margin: 4px 0 0; font-size: 16px; color: var(--ink-2); font-weight: 600; }
.rby { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.rhead .trace { margin-top: 8px; }
.rsnap { margin: 2px 0 0; font-family: var(--display); font-size: 17px; font-weight: 650; line-height: 1.4; }
.rsec { font-family: var(--body); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.rmini { margin: 0; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.hbar { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; }
.hb { min-width: 4px; }
.hb-strong { background: var(--teal); }
.hb-strained { background: var(--gold); }
.hb-unclear { background: repeating-linear-gradient(135deg, var(--ink-3) 0 2px, transparent 2px 6px); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.hlegend { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hlegend > span { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.hlegend b { font-family: var(--display); font-size: 17px; }
.hlegend small { color: var(--ink-2); }
.rstages { display: flex; flex-direction: column; }
.rstage { display: grid; grid-template-columns: 76px auto; gap: 2px 10px; align-items: center; padding: 8px 0; }
.rstage + .rstage { border-top: 1px solid var(--line); }
.rsname { font-family: var(--display); font-weight: 700; }
.rstext { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }
.rtable { display: flex; flex-direction: column; font-size: 13.5px; }
.rtr { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(0, 1fr)); gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); align-items: baseline; }
.rtr span { font-variant-numeric: tabular-nums; }
.rtr span:not(.rl) { text-align: right; }
.rth { border-top: 0; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.rl { color: var(--ink); }
.rcharts { display: grid; gap: 14px; }
.rchart { margin: 0; }
.rchart figcaption { font-size: 13.5px; font-weight: 650; margin-bottom: 4px; }
.rchart svg { width: 100%; height: auto; display: block; overflow: visible; }
.rchart svg * { stroke: none; }
.rchart svg .grid line { stroke: var(--line); stroke-width: 1; }
.rchart text { font-family: var(--body); font-size: 11px; fill: var(--ink-3); }
.rchart .ylab { text-anchor: end; }
.rchart .xlab { text-anchor: middle; }
.rchart .lastlab { fill: var(--ink); font-weight: 700; font-size: 12px; }
.rchart svg polyline { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rchart svg .dot { fill: var(--teal); stroke: var(--surface); stroke-width: 2; }
.rchart .hit { fill: transparent; }
.rchart .pt:hover .dot { r: 6; fill: var(--gold); }
.rlist { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 14.5px; }
.rlist small { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.rlist .hw { margin-left: 6px; font-size: 11px; padding: 1px 8px 1px 6px; vertical-align: 1px; }
.rlist.rwins li::marker { color: var(--gold); }
.rgoals { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.rgoals b { display: block; font-weight: 650; }
.rgoals span { font-size: 13.5px; color: var(--ink-2); }
.rhint { margin: 0; font-size: 12.5px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.rhint svg { width: 13px; height: 13px; color: var(--teal); }
.rnote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--paper); font-size: 15px; line-height: 1.5; border-radius: 0 10px 10px 0; }
.rfoot { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); display: flex; gap: 6px; align-items: flex-start; }
.rfoot svg { width: 13px; height: 13px; flex: none; margin-top: 2px; }
@container app (min-width: 760px) {
  .report { padding: 32px 40px 28px; max-width: 860px; }
  .rhead h1 { font-size: 34px; }
  .rcharts { grid-template-columns: 1fr 1fr; }
  .rstage { grid-template-columns: 90px 110px minmax(0, 1fr); }
  .rstext { grid-column: auto; }
}

/* Save as PDF: print only the report */
@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; }
  .protobar, .guide-wrap, .dswitch, .tabbar, .rtools, .notes, #sheet, .toast { display: none !important; }
  .row { padding: 0 !important; display: block !important; }
  .phone, body:not(.mode-full) .phone { width: auto !important; height: auto !important; min-height: 0 !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible !important; background: #fff !important; }
  .screen, body:not(.mode-full) .screen { height: auto !important; min-height: 0 !important; overflow: visible !important; }
  .care-main { display: block !important; padding: 0 !important; max-width: none !important; }
  .care-body { padding: 0 !important; }
  .report { box-shadow: none; padding: 0; max-width: none; }
  .rsec, .rchart, .rtable, .rgoals li, .rlist li { break-inside: avoid; }
  .rcharts { grid-template-columns: 1fr 1fr; }
}

/* People records */
.rechead { display: flex; gap: 14px; align-items: center; }
.rechead h1 { font-size: 26px; font-weight: 750; line-height: 1.1; }
.rechead .oline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.avatar.big { width: 60px; height: 60px; font-size: 20px; }
.recgrid { display: flex; flex-direction: column; gap: 4px; }
.rec .osect { margin-bottom: 8px; }
.rec .muted { font-size: 14px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.timeline li { position: relative; display: flex; flex-direction: column; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--bg); }
.timeline b { font-weight: 650; font-size: 13px; color: var(--ink-2); }
.addnote { margin-top: 10px; gap: 10px; }
.addnote .chips { gap: 6px; }
.bfrom { display: block; font-size: 12px; margin-bottom: 2px; color: var(--teal); }
@container app (min-width: 760px) {
  .recgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 24px; align-items: start; }
}

/* Ask */
.askin { background: var(--surface); box-shadow: var(--shadow); margin-top: 4px; }
.youasked { align-self: flex-end; max-width: 88%; background: var(--teal); color: #fff; border-radius: 18px 18px 6px 18px; padding: 10px 14px; font-size: 15px; }
.youasked span { display: block; font-size: 11px; opacity: .75; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.aanswer { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.asay { margin: 0; font-size: 16.5px; line-height: 1.45; display: flex; gap: 10px; align-items: flex-start; }
.asay .ai-dot { flex: none; margin-top: 2px; }
.aanswer .olist { box-shadow: 0 0 0 1px var(--line); }
.abars { margin: 0; display: flex; flex-direction: column; gap: 7px; }
.abars figcaption { font-size: 13.5px; font-weight: 650; margin-bottom: 2px; }
.abar { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 46px; gap: 8px; align-items: center; font-size: 13px; }
.alabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.atrack { height: 12px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.atrack i { display: block; height: 100%; background: var(--teal); border-radius: 0 4px 4px 0; }
.atrack i.hi { background: var(--gold); }
.aval { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; }
.kgold { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--gold); margin-right: 2px; }
.aqueries summary { cursor: pointer; font-size: 14px; font-weight: 650; color: var(--teal); }
.aqueries .rlist { margin-top: 8px; }

/* Reminders and the demo clock */
.rsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rsteps li { display: flex; gap: 10px; align-items: flex-start; }
.rsdot { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-top: 4px; box-shadow: inset 0 0 0 2px var(--ink-3); }
.rs-sent .rsdot { background: var(--teal); box-shadow: none; }
.rs-stopped .rsdot { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--line); }
.rs-stopped b, .rs-stopped .rsmsg { color: var(--ink-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 60%, transparent); }
.rsteps b { display: block; font-size: 14px; font-weight: 650; }
.rsmsg { display: block; font-size: 14px; color: var(--ink-2); font-style: italic; margin-top: 2px; }
.rsteps small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.rnotice { margin: 0; background: var(--sun-soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.rnotice svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--sun); }
.democlock { border: 1.5px dashed color-mix(in srgb, var(--gold) 70%, transparent); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; background: color-mix(in srgb, var(--gold) 7%, transparent); }
.democlock .dlabel { color: var(--sun); }
.democlock b { font-size: 14.5px; }
.democlock small { font-size: 12px; color: var(--ink-3); }
