/* Ask Andy trial. Warm paper, navy ink, a little leaf green. Calm first, busy never. */

:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --sunk: #efebe1;
  --ink: #1e2533;
  --ink-2: #3f4859;
  --muted: #5c6575;
  --line: #e7e2d7;
  --line-strong: #d5cebf;
  --navy: #3d4a66;
  --navy-deep: #2c3650;
  --leaf: #8dbf4e;
  --leaf-ink: #45701d;
  --leaf-soft: #edf4e2;
  --user-bg: #e6ebf3;
  --user-ink: #1f2a40;
  --btn-bg: #3d4a66;
  --btn-bg-hover: #2c3650;
  --btn-ink: #ffffff;
  --pip-on-bg: #3d4a66;
  --pip-on-ink: #ffffff;
  --pip-under: #e3ebd6;
  --warm: #f8efdc;
  --warm-ink: #6e4d10;
  --calm: #eef3ef;
  --calm-line: #cfdcd2;
  --err: #a8331f;
  --down: #a8331f;
  --focus: #3d4a66;
  --shadow: 0 1px 2px rgba(30, 37, 51, .04), 0 8px 28px rgba(30, 37, 51, .06);
  --shadow-lift: 0 2px 4px rgba(30, 37, 51, .05), 0 16px 40px rgba(30, 37, 51, .10);

  /* The engine panel is an instrument: dark in both themes. */
  --pn-bg: #1d2436;
  --pn-card: #262e43;
  --pn-line: #343d55;
  --pn-ink: #e8ecf4;
  --pn-muted: #a6b0c4;
  --pn-leaf: #a3d168;
  --pn-amber: #eabb62;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, "Bitstream Charter", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --r: 14px;
  --r-lg: 20px;
  --read: 700px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161f;
    --surface: #1a2030;
    --surface-2: #161c29;
    --sunk: #0f131b;
    --ink: #e9ecf2;
    --ink-2: #c3cad8;
    --muted: #9ca5b7;
    --line: #283044;
    --line-strong: #37405a;
    --navy: #c6d1ea;
    --navy-deep: #dde4f3;
    --leaf-ink: #a8d372;
    --leaf-soft: #1f2b1c;
    --user-bg: #28324b;
    --user-ink: #eef1f7;
    --btn-bg: #9dcb62;
    --btn-bg-hover: #b1d882;
    --btn-ink: #13200a;
    --pip-on-bg: #9dcb62;
    --pip-on-ink: #13200a;
    --pip-under: #25331f;
    --warm: #2a2416;
    --warm-ink: #ecd29a;
    --calm: #18231f;
    --calm-line: #2c3d35;
    --err: #ff9a85;
    --down: #ff9a85;
    --focus: #b9d68f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .25);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .35);
    --pn-bg: #0d1017;
    --pn-card: #171c28;
    --pn-line: #262d3f;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
button { font: inherit; cursor: pointer; color: inherit; }
input, textarea { font: inherit; color: var(--ink); }
a { color: var(--navy-deep); text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: .86em; background: var(--sunk); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(28px, 4vw, 36px); line-height: 1.15; margin: 0 0 10px; text-wrap: balance; }
h2 { font-size: 22px; line-height: 1.25; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lede { color: var(--muted); font-size: 17px; margin: 0; }
.short { display: none; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.error { color: var(--err); min-height: 1.2em; margin: 12px 0 0; font-size: 15px; }
.error:empty { min-height: 0; margin: 0; }

/* The brand mark: the tree from tree.png, cropped to a disc. */
.mark {
  display: inline-block;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff url(tree.png) 50% 14% / 112% auto no-repeat;
  box-shadow: inset 0 0 0 1px rgba(30, 37, 51, .08);
}
.mark.sm { width: 34px; height: 34px; }
.mark.big { width: 72px; height: 72px; box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--line), var(--shadow); }

/* ---------- header ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 10px max(20px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  flex: none;
}
.brand { display: flex; align-items: center; gap: 10px; }
.word { font-weight: 700; font-size: 17px; letter-spacing: .09em; text-transform: uppercase; color: var(--navy-deep); }
.word b { color: var(--leaf-ink); font-weight: 700; }
.pill-trial { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 99px; padding: 1px 8px; }
nav { display: flex; gap: 2px; padding: 3px; background: var(--sunk); border-radius: 99px; }
nav button { border: 0; background: transparent; padding: 7px 16px; border-radius: 99px; color: var(--muted); font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s; }
nav button:hover { color: var(--ink); }
nav button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(30, 37, 51, .12); }

.trial-banner {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--warm);
  color: var(--warm-ink);
  font-size: 13px;
  line-height: 1.4;
  padding: 7px 16px;
  text-align: left;
}
.trial-banner svg { width: 15px; height: 15px; flex: none; opacity: .85; }

main { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.tab { display: none; }
.tab.on { display: block; }
#tab-chat.on { height: 100%; }
body[data-view="chat"] main { overflow: hidden; }

/* ---------- shared pieces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.card.soft { box-shadow: none; }
.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--r);
  background: var(--btn-bg); color: var(--btn-ink); font-weight: 600; font-size: 16px;
  transition: background .2s, transform .1s;
}
.primary:hover { background: var(--btn-bg-hover); }
.primary:active { transform: translateY(1px); }
.primary:disabled { opacity: .5; cursor: default; }
.primary.block { width: 100%; }
.ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); padding: 7px 14px; border-radius: 99px; font-size: 14px; white-space: nowrap; transition: background .2s, border-color .2s; }
.ghost:hover { background: var(--surface-2); border-color: var(--muted); color: var(--ink); }

/* ---------- start ---------- */
.start { max-width: 580px; margin: 0 auto; padding: 48px 20px 64px; }
.start-intro { text-align: center; margin-bottom: 28px; }
.start-intro .mark.big { margin-bottom: 20px; }
.eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--leaf-ink); }
.start-intro .lede { max-width: 440px; margin: 0 auto; }

.field { display: block; margin-bottom: 8px; }
.field-label { display: block; font-weight: 600; }
.field-hint { display: block; color: var(--muted); font-size: 14px; }
#name {
  display: block; width: 100%; height: 50px; padding: 0 16px; margin-bottom: 8px;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface-2); font-size: 17px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
#name:focus { outline: none; border-color: var(--navy); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy) 16%, transparent); }
#name::placeholder { color: var(--muted); opacity: .8; }

.scale { margin: 26px 0 0; }
.scale-q { margin: 0 0 12px; font-weight: 600; line-height: 1.4; }
.pips { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.pips button {
  height: 46px; min-width: 0; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface-2); color: var(--ink-2);
  font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums;
  transition: background .18s, border-color .18s, color .18s, transform .12s;
}
.pips button:hover { border-color: var(--navy); color: var(--ink); }
.pips button.under { background: var(--pip-under); border-color: transparent; color: var(--ink); }
.pips button.on { background: var(--pip-on-bg); border-color: var(--pip-on-bg); color: var(--pip-on-ink); font-weight: 700; transform: scale(1.04); }
.ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }

.settings { margin: 28px 0 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.settings summary { cursor: pointer; color: var(--muted); font-size: 14.5px; list-style: none; display: inline-flex; align-items: center; gap: 8px; border-radius: 6px; }
.settings summary::-webkit-details-marker { display: none; }
.settings summary::before { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform .2s; margin-right: 2px; }
.settings[open] summary::before { transform: rotate(45deg) translate(-2px, -1px); }
.settings summary:hover { color: var(--ink); }
.settings fieldset { border: 0; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .2s, background .2s; }
.choice:hover { border-color: var(--line-strong); }
.choice:has(input:checked) { border-color: var(--navy); background: var(--surface-2); }
.choice input { margin: 4px 0 0; accent-color: var(--navy); width: 16px; height: 16px; flex: none; }
.choice b { display: block; font-weight: 600; }
.choice small { display: block; color: var(--muted); font-size: 14px; }

/* ---------- chat ---------- */
.chat-wrap { display: flex; height: 100%; }
.chat { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-head {
  flex: none;
  display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who-name { font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.who-sub { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.status-dot { display: inline-flex; align-items: center; gap: 6px; }
.status-dot:empty { display: none; }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); }
.status-dot[data-status="halted"]::before { background: #d9a441; }
.status-dot[data-status="ended"]::before, .status-dot[data-status="scores"]::before { background: var(--muted); }
.chat-actions { display: flex; gap: 14px; align-items: center; }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; color: var(--muted); position: relative; }
.switch input { position: absolute; opacity: 0; width: 34px; height: 20px; margin: 0; cursor: pointer; }
.switch .track { width: 34px; height: 20px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background .2s; flex: none; }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + .track { background: var(--btn-bg); }
.switch input:checked + .track .knob { transform: translateX(14px); }
.switch input:focus-visible + .track { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch:hover { color: var(--ink); }

.scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-padding-bottom: 24px; }
.thread { max-width: calc(var(--read) + 40px); margin: 0 auto; padding: 36px 20px 32px; }
.messages { display: flex; flex-direction: column; gap: 30px; }

.msg.coach { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; }
.msg.coach .avatar { margin-top: 2px; }
.who-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 4px; }
.msg.coach .text { font-family: var(--serif); font-size: 18.5px; line-height: 1.62; color: var(--ink); overflow-wrap: anywhere; }
.text p { margin: 0 0 .75em; }
.text > :last-child { margin-bottom: 0; }
.text ol, .text ul { margin: .2em 0 .9em; padding: 0; list-style: none; }
.text ol { counter-reset: n; }
.text ol li { counter-increment: n; position: relative; padding-left: 40px; margin: 0 0 .7em; }
.text ol li::before {
  content: counter(n); position: absolute; left: 0; top: .15em;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 13px/1 var(--sans); color: var(--leaf-ink); background: var(--leaf-soft);
}
.text ul li { position: relative; padding-left: 22px; margin: 0 0 .4em; }
.text ul li::before { content: ""; position: absolute; left: 6px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }
.text hr { border: 0; border-top: 1px solid var(--line-strong); margin: 1.3em 0; }

.msg.user { align-self: flex-end; max-width: min(85%, 560px); }
.msg.user .bubble {
  background: var(--user-bg); color: var(--user-ink);
  padding: 12px 18px; border-radius: 20px 20px 6px 20px;
  font-size: 16.5px; line-height: 1.55; overflow-wrap: anywhere;
}
.bubble p { margin: 0 0 .6em; }
.bubble > :last-child { margin-bottom: 0; }
.bubble ol, .bubble ul { margin: 0 0 .6em; padding-left: 1.3em; }
.msg.user.pending .bubble { opacity: .75; }

/* The opening agreement: a readable card, the choices set out as a numbered list. */
.msg.contracting .text {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 26px 20px; box-shadow: var(--shadow); font-size: 18px;
}
.contract-head, .pause-head {
  display: flex; align-items: center; gap: 8px;
  font: 600 12px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--leaf-ink); margin-bottom: 14px;
}
.contract-head::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--leaf); }
.msg.contracting ol { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 6px; margin: .4em 0 1em; }

/* A safety stop: calm, clear, numbers easy to read and tap. */
.msg.pause .text { background: var(--calm); border: 1px solid var(--calm-line); border-radius: var(--r-lg); padding: 22px 26px; }
.pause-head { color: var(--ink-2); }
.pause-head svg { width: 16px; height: 16px; color: #c9786a; }
.phone {
  display: inline-block; white-space: nowrap;
  font: 700 17px/1.3 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .03em;
  color: var(--ink); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 3px 10px; margin: 1px 0;
}
.phone:hover { border-color: var(--navy); }

.notice { align-self: center; max-width: 560px; text-align: center; font-size: 14.5px; color: var(--warm-ink); background: var(--warm); padding: 10px 16px; border-radius: var(--r); }

/* Engine notes on each coach message: only when the engine is showing. */
.meta { display: none; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.show-engine .meta { display: flex; }
.tag { font: 500 11.5px/1.5 var(--mono); color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.tag.step { color: var(--leaf-ink); background: var(--leaf-soft); border-color: transparent; font-weight: 600; }
.tag.src { color: var(--warm-ink); background: var(--warm); border-color: transparent; }
.tag.warn { color: var(--err); }

/* Thinking: a slow breath, not a spinner. */
.thinking { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: center; margin-top: 30px; }
.breath { position: relative; width: 34px; height: 34px; }
.breath::before, .breath::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--leaf); opacity: 0;
  animation: breathe 4s ease-in-out infinite;
}
.breath::after { animation-delay: 2s; }
.breath .mark { position: relative; z-index: 1; animation: settle 4s ease-in-out infinite; }
@keyframes breathe { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes settle { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.thinking-body { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#thinking-text { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); }
.thinking-time { font: 500 12px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.thinking-time:empty { display: none; }

.enter { animation: rise .45s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Composer */
.composer { flex: none; padding: 10px 20px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent, var(--bg) 30%); }
.composer-box {
  max-width: var(--read); margin: 0 auto;
  display: flex; align-items: flex-end; gap: 8px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 26px;
  padding: 6px 6px 6px 18px; box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.composer-box:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy) 14%, transparent), var(--shadow); }
.composer textarea {
  flex: 1; min-width: 0; resize: none; border: 0; background: transparent; outline: none;
  padding: 10px 0; font-size: 16.5px; line-height: 1.5; max-height: 220px;
}
.composer textarea::placeholder { color: var(--muted); }
.send {
  width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--btn-bg); color: var(--btn-ink); transition: background .2s, opacity .2s;
}
.send:hover { background: var(--btn-bg-hover); }
.send:disabled { opacity: .4; cursor: default; }
.send svg { width: 20px; height: 20px; }
.composer-hint { max-width: var(--read); margin: 6px auto 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* After the session */
.after { margin-top: 40px; margin-left: 48px; }
.after h2 { font-size: 24px; }
.after .scale:first-of-type { margin-top: 20px; }
#submit-scores { margin-top: 28px; }
.exports .export-head { margin: 22px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.export-buttons { display: grid; gap: 8px; }
.export {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); text-decoration: none; background: var(--surface-2);
  transition: border-color .2s, background .2s;
}
.export:hover { border-color: var(--navy); background: var(--surface); }
.export svg { width: 20px; height: 20px; color: var(--muted); }
.export .dl { width: 18px; height: 18px; color: var(--navy); }
.export-t { font-weight: 600; }
.fmt { font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 99px; padding: 4px 8px; }

/* ---------- the engine panel ---------- */
.panel {
  width: 360px; flex: none; height: 100%; overflow-y: auto;
  background: var(--pn-bg); color: var(--pn-ink);
  padding: 18px 20px 28px; font-size: 13px; line-height: 1.45;
  border-left: 1px solid var(--pn-line);
  scrollbar-color: var(--pn-line) transparent;
}
.panel :focus-visible { outline-color: var(--pn-leaf); }
.panel-head { display: flex; justify-content: space-between; align-items: center; font: 700 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding-bottom: 14px; }
.panel-head > div { display: flex; align-items: center; gap: 8px; }
.panel-meta { color: var(--pn-muted); font-family: var(--mono); letter-spacing: .04em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pn-leaf); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pn-leaf) 25%, transparent); }
.panel-close { display: none; border: 0; background: var(--pn-card); color: var(--pn-ink); width: 32px; height: 32px; border-radius: 50%; place-items: center; }
.panel-close svg { width: 16px; height: 16px; }
.pn { border-top: 1px solid var(--pn-line); padding: 16px 0 6px; }
.pn h3 { margin: 0 0 12px; font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pn-muted); }
.pn-empty { margin: 0 0 8px; color: var(--pn-muted); }

.path { list-style: none; margin: 0 0 6px; padding: 0; }
.path li { position: relative; display: grid; grid-template-columns: 16px 1fr auto; gap: 12px; align-items: center; padding: 5px 0; }
.path li::before { content: ""; position: absolute; left: 7px; top: 50%; height: 100%; width: 2px; background: var(--pn-line); z-index: 0; }
.path li:last-child::before { display: none; }
.path li.done::before { background: var(--pn-leaf); opacity: .6; }
.node { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--pn-line); background: var(--pn-bg); }
.done .node { background: var(--pn-leaf); border-color: var(--pn-leaf); }
.done .node::after { content: ""; position: absolute; left: 3.5px; top: 1px; width: 4px; height: 7px; border: solid var(--pn-bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.now .node { border-color: var(--pn-leaf); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pn-leaf) 22%, transparent); }
.now .node::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--pn-leaf); }
.step-name { color: var(--pn-muted); font-size: 13.5px; }
.done .step-name { color: var(--pn-ink); }
.now .step-name { color: #fff; font-weight: 700; font-size: 14.5px; }
.step-when { font: 500 11px/1 var(--mono); color: var(--pn-muted); }
.now .step-when { color: var(--pn-leaf); }

.gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.gauge { background: var(--pn-card); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.g-num { font: 600 26px/1 var(--mono); font-variant-numeric: tabular-nums; color: #fff; }
.g-l { color: var(--pn-muted); font-size: 11.5px; line-height: 1.35; }
.rows { display: grid; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--pn-line); }
.row:last-child { border-bottom: 0; }
.row > span:first-child { color: var(--pn-muted); }
.chip { flex: none; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--pn-card); color: var(--pn-muted); white-space: nowrap; }
.chip.ok { background: color-mix(in srgb, var(--pn-leaf) 18%, transparent); color: var(--pn-leaf); }
.threads { margin: 8px 0 8px; padding: 0; list-style: none; display: grid; gap: 6px; }
.threads li { background: var(--pn-card); border-left: 2px solid var(--pn-amber); border-radius: 0 8px 8px 0; padding: 7px 10px; color: var(--pn-ink); }
.asks { display: flex; align-items: center; gap: 14px; background: var(--pn-card); border-radius: 12px; padding: 12px; margin-bottom: 4px; }
.dots-meter { display: flex; gap: 5px; flex: none; }
.dots-meter i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--pn-line); }
.dots-meter i.on { background: var(--pn-leaf); border-color: var(--pn-leaf); }
.dots-meter i.over { background: var(--pn-amber); border-color: var(--pn-amber); }
.asks-n { color: var(--pn-muted); }
.asks-n b { font: 600 18px/1 var(--mono); color: #fff; }
.asks-n span { display: block; font-size: 11.5px; }
.cap { background: var(--pn-card); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.cap-l { font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--pn-leaf); margin-bottom: 6px; }
.cap-v { color: var(--pn-ink); font-size: 13.5px; overflow-wrap: anywhere; }
.cap.empty .cap-l { color: var(--pn-muted); }
.cap.empty .cap-v { color: var(--pn-muted); font-style: italic; }
.cap-due { margin-top: 6px; font-size: 12px; color: var(--pn-amber); }
.acts { margin: 0; padding-left: 16px; display: grid; gap: 4px; }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.events li { display: grid; grid-template-columns: 58px 1fr; gap: 2px 8px; }
.ev-turn { font: 500 11px/1.7 var(--mono); color: var(--pn-muted); grid-row: span 2; }
.ev-why { color: var(--pn-muted); font-size: 12px; }

/* ---------- pages: past, material ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 44px 24px 72px; }
.page-head { margin-bottom: 26px; }
.loading { padding: 20px 0; }
.empty-state { text-align: center; }
.empty-state p { margin: 0 0 4px; }

.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.list th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 12px 14px; white-space: nowrap; }
table.list td { border-bottom: 1px solid var(--line); padding: 14px; vertical-align: middle; }
table.list tbody tr:last-child td { border-bottom: 0; }
table.list tbody tr { transition: background .15s; }
table.list tbody tr:hover { background: var(--surface-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; color: var(--ink-2); }
.linklike { border: 0; background: none; padding: 0; font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--navy-deep); text-align: left; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.linklike:hover { text-decoration-color: currentColor; }
.name-cell { min-width: 210px; }
.muted.nil { white-space: nowrap; font-size: 13.5px; }
.code { display: block; font: 500 12px/1.6 var(--mono); color: var(--muted); }
.ver { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--sunk); color: var(--ink-2); }
.ver.basic { background: var(--leaf-soft); color: var(--leaf-ink); }
.pair { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pair .arr { color: var(--muted); }
.delta { font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.up .delta { color: var(--leaf-ink); background: var(--leaf-soft); }
.down .delta { color: var(--down); background: color-mix(in srgb, var(--down) 12%, transparent); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; white-space: nowrap; color: var(--ink-2); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status[data-status="ended"]::before { background: var(--leaf); }
.status[data-status="halted"]::before { background: #d9a441; }
.status[data-status="active"]::before, .status[data-status="contracting"]::before, .status[data-status="closing"]::before { background: #6e8bc7; }
.links { white-space: nowrap; }
.links a { font-size: 13.5px; margin-right: 12px; color: var(--navy-deep); }
.links a:last-child { margin-right: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); min-width: 0; }
.stat-n { font: 600 34px/1.1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-l { font-size: 13px; color: var(--muted); }
.wide-stat { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-content: center; align-items: center; }
.wide-stat code { justify-self: start; }
.note { background: var(--warm); color: var(--warm-ink); padding: 12px 16px; border-radius: var(--r); margin: 0 0 12px; font-size: 14.5px; }
.note code { background: color-mix(in srgb, var(--warm-ink) 10%, transparent); }
.error-note { color: var(--err); }
.folders { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin: 20px 0 24px; align-items: start; }
.folder { padding: 20px 22px; }
.folder-head { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 4px 10px; margin-bottom: 10px; }
.folder-head svg { width: 20px; height: 20px; color: var(--leaf-ink); }
.folder-head h2 { font-size: 18px; margin: 0; }
.folder-head code { grid-column: 2; justify-self: start; font-size: 12px; }
.files { list-style: none; margin: 0; padding: 0; }
.files li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.file-n { min-width: 0; overflow-wrap: anywhere; }
.file-n .error { display: block; margin: 2px 0 0; font-size: 13px; }
.file-p { font: 600 13px/1 var(--mono); color: var(--leaf-ink); background: var(--leaf-soft); padding: 4px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.folder-empty { margin: 0; padding: 9px 0; border-top: 1px solid var(--line); }
.reload-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }

/* ---------- narrower screens ---------- */
@media (max-width: 1023px) {
  .panel {
    position: fixed; z-index: 40; top: 0; right: 0; bottom: 0;
    width: min(400px, 100%); height: auto;
    box-shadow: -20px 0 60px rgba(0, 0, 0, .35);
    animation: slide .3s cubic-bezier(.2, .7, .3, 1);
    padding-top: max(18px, env(safe-area-inset-top));
  }
  .panel-close { display: grid; }
  @keyframes slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}

@media (max-width: 760px) {
  .top { padding: 10px 16px; }
  .top { flex-wrap: nowrap; gap: 10px; }
  .pill-trial { display: none; }
  .word { font-size: 15px; }
  .brand .mark { width: 30px; height: 30px; }
  nav button { padding: 7px 11px; font-size: 14px; }
  .long { display: none; }
  .short { display: inline; }
  .trial-banner { justify-content: flex-start; padding: 7px 16px; font-size: 12.5px; }
  .start { padding: 28px 16px 48px; }
  .start-intro { margin-bottom: 22px; }
  .mark.big { width: 60px; height: 60px; }
  .card { padding: 22px 18px; border-radius: 18px; }
  .pips { gap: 4px; }
  .pips button { height: 44px; border-radius: 10px; font-size: 14px; }
  .chat-head { padding: 10px 16px; flex-wrap: nowrap; }
  .who { flex: 1; }
  .who > div { min-width: 0; }
  .who-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
  .who .mark { display: none; }
  .chat-actions { gap: 10px; flex: none; }
  #end { padding: 6px 10px; font-size: 13px; }
  .export { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .export .dl { display: none; }
  .switch-label { font-size: 13px; }
  .thread { padding: 24px 16px 24px; }
  .messages { gap: 24px; }
  .msg.coach { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .msg.coach .avatar { display: none; }
  .who-label { margin-top: 0; }
  .msg.coach .text { font-size: 17.5px; }
  .msg.contracting .text, .msg.pause .text { padding: 18px 18px 16px; margin: 0 -2px; }
  .msg.contracting ol { padding: 14px 12px 4px; }
  .text ol li { padding-left: 36px; }
  .msg.user { max-width: 90%; }
  .composer { padding: 8px 16px max(12px, env(safe-area-inset-bottom)); }
  .composer-hint { display: none; }
  .after { margin-left: 0; }
  .after .card { padding: 22px 18px; }
  .page { padding: 28px 16px 56px; }
  .wide-stat { grid-column: 1 / -1; }
  .folders { grid-template-columns: minmax(0, 1fr); }

  /* The past list becomes a stack of cards. */
  .table-card { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  table.list.past, .past tbody { display: block; }
  .past thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .past tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
  .past tbody tr:hover { background: var(--surface); }
  .past td { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 0; border: 0 !important; min-width: 0; }
  .past td[data-label]::before { content: attr(data-label); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .past td.num { text-align: left; }
  .past .status, .invites .status { white-space: normal; align-items: flex-start; }
  .past .status::before, .invites .status::before { flex: none; margin-top: .5em; }
  .past .name-cell { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line) !important; }
  .past .links { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; padding-top: 10px; border-top: 1px solid var(--line) !important; }
  .past .links::before { width: 100%; }
  .past .links a { margin: 0; }
}

@media (max-width: 420px) {
  .pips { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .pips button { height: 46px; }
  .switch-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .switch::after { content: "Engine"; font-size: 13px; }
  .voice-switch::after { content: "Voice"; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .breath::before { opacity: .5; transform: scale(1.3); }
}

[hidden] { display: none !important; }

/* ================= signing in, roles, invites ================= */

/* Role gating. Until /api/me answers, hosted-only pieces stay hidden and the nav is not shown. */
body:not([data-hosted="1"]) .hosted-only { display: none !important; }
body[data-role="tester"] .admin-only { display: none !important; }
body:not([data-role]) nav, body[data-role="out"] nav, body[data-role="out"] .account { display: none !important; }
.top nav { margin-left: auto; }

/* Account menu */
.account { position: relative; }
.account-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 8px 0 4px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted);
  transition: border-color .2s;
}
.account-btn:hover, .account-btn[aria-expanded="true"] { border-color: var(--line-strong); color: var(--ink); }
.account-btn svg { width: 12px; height: 12px; }
.initial {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--leaf-soft); color: var(--leaf-ink); font-weight: 700; font-size: 13px;
}
.account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lift);
  padding: 6px; animation: rise .18s ease-out;
}
.account-who { margin: 0; padding: 10px 12px 8px; font-size: 13.5px; color: var(--muted); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.account-who b { color: var(--ink); font-weight: 600; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 4px; padding: 10px 12px;
  border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-size: 14.5px; text-align: left;
}
.menu-item:hover { background: var(--surface-2); }
.menu-item svg { width: 18px; height: 18px; color: var(--muted); }

/* Signed-out welcome */
.signin { padding-top: 64px; }
.signin .start-intro { margin-bottom: 24px; }
.signin .lede { max-width: 460px; }
.calm-note {
  max-width: 460px; margin: 0 auto 24px; padding: 14px 18px; border-radius: var(--r);
  background: var(--calm); border: 1px solid var(--calm-line); color: var(--ink-2); font-size: 15px; text-align: center;
}
.team { text-align: center; }
.team-toggle {
  border: 0; background: none; padding: 6px 10px; color: var(--muted); font-size: 14px;
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px;
}
.team-toggle:hover { color: var(--ink); text-decoration-color: currentColor; }
.team-toggle[aria-expanded="true"] { color: var(--ink); }
.login { max-width: 380px; margin: 14px auto 0; text-align: left; padding: 22px; animation: rise .3s ease-out; }
#password, #invite-name {
  display: block; width: 100%; height: 48px; padding: 0 14px; margin: 6px 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface-2); font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
#password:focus, #invite-name:focus, #reveal-link:focus { outline: none; border-color: var(--navy); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy) 16%, transparent); }

/* Invites */
.narrow-page { max-width: 860px; }
.invite-form { padding: 24px; }
.inline-field { display: flex; gap: 10px; margin-top: 8px; }
.inline-field #invite-name { flex: 1; min-width: 0; margin: 0; }
.inline-field .primary { flex: none; }
.reveal {
  margin-top: 16px; padding: 24px; border-color: var(--calm-line); background: var(--calm);
  animation: rise .35s cubic-bezier(.2, .7, .3, 1);
}
.reveal:focus { outline: none; }
.reveal:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.reveal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.reveal-head h2 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.reveal-icon { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--leaf-soft); color: var(--leaf-ink); }
.reveal-icon svg { width: 18px; height: 18px; }
.link-row { display: flex; gap: 10px; }
#reveal-link {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--surface); font: 500 14px/1 var(--mono); color: var(--ink);
}
.copy { flex: none; min-width: 132px; }
.copy svg { width: 18px; height: 18px; }
.copy .i-done { display: none; }
.copy.done { background: var(--leaf-ink); color: var(--bg); }
.copy.done .i-copy { display: none; }
.copy.done .i-done { display: block; }
.reveal-note { margin: 14px 0 16px; font-size: 14.5px; color: var(--ink-2); }
.reveal-note b { color: var(--ink); }
.section-title { font-size: 20px; margin: 36px 0 14px; }

table.invites td { vertical-align: middle; }
.inv-name { font-weight: 600; overflow-wrap: anywhere; }
tr.withdrawn .inv-name, tr.withdrawn td { color: var(--muted); }
.status[data-status="active"]::before { background: var(--leaf); }
.status[data-status="withdrawn"]::before { background: var(--line-strong); }
.act { text-align: right; width: 1%; white-space: nowrap; }
tr:has(+ .confirm-row:not([hidden])) td { border-bottom: 0; }
.confirm-row td { padding-top: 0; }
table.list tbody tr.confirm-row:hover { background: transparent; }
.confirm {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--err) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--err) 25%, var(--line));
  animation: rise .2s ease-out;
}
.confirm-q { font-size: 14px; color: var(--ink); }
.confirm-btns { display: flex; gap: 8px; flex: none; }
.ghost.danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 35%, var(--line)); }
.ghost.danger:hover { background: color-mix(in srgb, var(--err) 8%, transparent); border-color: var(--err); color: var(--err); }
.primary.danger { background: #a8331f; color: #fff; }
.primary.danger:hover { background: #8e2a19; }
.primary.sm, .ghost.sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 99px; }

@media (max-width: 760px) {
  .signin { padding-top: 36px; }
  .inline-field, .link-row { flex-direction: column; }
  .inline-field .primary, .copy { width: 100%; }
  .inline-field #invite-name, #reveal-link { flex: none; width: 100%; }
  .invites .act:has(> [hidden]) { display: none; }
  .reveal, .invite-form { padding: 20px 18px; }

  .invites, .invites tbody { display: block; }
  .invites thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .invites tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
  .invites tbody tr:hover { background: var(--surface); }
  .invites td { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 0; border: 0 !important; min-width: 0; white-space: normal; }
  .invites td[data-label]::before { content: attr(data-label); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .invites .name-cell { grid-column: 1 / -1; font-size: 17px; }
  .invites .act { grid-column: 1 / -1; width: auto; text-align: left; }
  .invites .act:empty { display: none; }
  .invites tr.confirm-row { display: block; background: transparent; border: 0; box-shadow: none; padding: 0; margin: -4px 0 12px; }
  .invites tr.confirm-row[hidden] { display: none; }
  .invites .confirm-row td { display: block; }

  /* A tester's own list: the date is the heading of each card. */
  .past.mine .name-cell { padding-bottom: 8px; }
}

@media (max-width: 420px) {
  body[data-hosted="1"][data-role="admin"] .word { display: none; }
  .account-btn svg { display: none; }
  .account-btn { padding: 0 4px; }
}

/* A tester's start card has no name field or settings, so it needs its own rhythm. */
body[data-role="tester"] #tab-new .card > .scale[data-key="clarity"] { margin-top: 0; }
body[data-role="tester"] #start { margin-top: 30px; }

/* Hear Andy: his replies read aloud in the cloned voice */
.ai-note { color: var(--muted); font-weight: 400; }
.who-label { display: flex; align-items: center; gap: 8px; }
.play { display: none; align-items: center; gap: 5px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); border-radius: 99px; padding: 1px 9px 1px 7px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: color .2s, border-color .2s; }
.play svg { width: 11px; height: 11px; }
.play:hover, .play[aria-pressed="true"] { color: var(--ink); border-color: var(--muted); }
.play[data-state="loading"] { opacity: .6; cursor: progress; }
.voice-on .play { display: inline-flex; }
.mic {
  width: 42px; height: 42px; flex: none; border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center; background: transparent; color: var(--ink-2); transition: background .2s, color .2s, border-color .2s;
}
.mic[hidden] { display: none; }
.mic:hover { color: var(--ink); border-color: var(--muted); }
.mic:disabled { opacity: .4; cursor: default; }
.mic svg { width: 20px; height: 20px; }
.mic[aria-pressed="true"] { background: #b3402f; border-color: #b3402f; color: #fff; animation: mic-pulse 1.4s ease-in-out infinite; }
.mic[data-state="working"] { cursor: progress; opacity: .6; }
@keyframes mic-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(179, 64, 47, .45); } 50% { box-shadow: 0 0 0 8px rgba(179, 64, 47, 0); } }
