/* Unhold live demo: the unhold.it look (tokens, type, buttons, the hold-music player) for the demo pages. */
:root {
  --paper: #F7F2E8;
  --paper-2: #EDE5D4;
  --card: #FFFCF5;
  --line: #D8CDB7;
  --line-strong: #B9AD93;
  --ink: #16140F;
  --ink-2: #5A554B;
  --hold: #FF6A3D;
  --hold-soft: #FF8A5B;
  --hold-ink: #A33A14;
  --hold-tint: #FBDFCF;
  --go: #2EDB84;
  --go-soft: #5BE39A;
  --go-ink: #0F6139;
  --go-tint: #D7F3E3;
  --device: #15201B;
  --device-2: #1E2C26;
  --device-line: #2F4038;
  --device-muted: #A7B3AC;
  --shadow: 0 30px 60px -30px rgba(22, 20, 15, 0.45);
  --shadow-card: 0 18px 40px -24px rgba(22, 20, 15, 0.4);

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-xs: 0.72rem;
  --text-s: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --text-m: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-l: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  --text-h1: clamp(2.4rem, 1.4rem + 3.6vw, 4.2rem);
  --text-h2: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);

  --gutter: clamp(1rem, 0.5rem + 3vw, 3rem);
  --radius: 22px;
  --radius-s: 14px;
  --max: 1200px;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-display); font-size: var(--text-m); line-height: 1.5;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.01em; }
.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page { padding: clamp(1.5rem, 1rem + 2vw, 3rem) 0 clamp(3rem, 2rem + 3vw, 5rem); }

/* Header */
.site-header { padding: 14px 0; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark rect { fill: var(--ink); }
.brand-mark circle { fill: var(--paper); }
.brand-mark .d1 { opacity: 0.45; }
.brand-mark .d2 { opacity: 0.75; }
.badge {
  margin-left: 2px; padding: 4px 10px; border-radius: 999px; transform: rotate(-3deg);
  background: var(--go); color: var(--ink); font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px clamp(14px, 2vw, 28px); }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--go); color: var(--ink);
  font-weight: 700; font-size: var(--text-m); line-height: 1.1; text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}
.btn:hover { transform: translateY(-1px); background: var(--go-soft); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn-small { padding: 11px 18px; font-size: 0.95rem; white-space: nowrap; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-ghost-dark { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px var(--device-muted); }
.btn-ghost-dark:hover { background: var(--device-2); }

/* Headings */
.h1 { font-size: var(--text-h1); font-weight: 800; line-height: 0.95; letter-spacing: -0.028em; text-wrap: balance; isolation: isolate; }
.h1 .line { white-space: nowrap; }
.h1 .flip { position: relative; display: inline-block; white-space: nowrap; }
.h1 .flip::before {
  content: ""; position: absolute; inset: 0.1em -0.12em -0.02em -0.14em; z-index: -1;
  background: var(--go); border-radius: 0.18em; transform: rotate(-1.2deg);
}
.h2 { font-size: var(--text-h2); font-weight: 800; letter-spacing: -0.025em; line-height: 1; }
.lead { margin-top: 1.1rem; font-size: var(--text-l); line-height: 1.4; max-width: 40rem; }
.lead strong { font-weight: 700; }

/* The dark device: the call form and the player */
.device { background: var(--device); color: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.device :focus-visible { outline-color: var(--go); }
.form { padding: 22px 20px; display: grid; gap: 18px; }
.form-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; padding-bottom: 14px;
  border-bottom: 1px solid var(--device-line); color: var(--device-muted);
  font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em;
}
.live { display: inline-flex; align-items: center; gap: 8px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hold); flex: none; }
.live.is-go { color: var(--go-soft); }
.live.is-go::before { background: var(--go-soft); }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }

/* Fields: paper inputs on the dark card, as on unhold.it */
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); font-size: 1rem; line-height: 1.4;
}
.field textarea { min-height: 78px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); opacity: 0.75; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--go); outline-offset: 2px; border-color: var(--go-ink); }
.field [aria-invalid="true"] { border-color: var(--hold); box-shadow: inset 0 0 0 1px var(--hold); }
.field-help, .field-error { font-size: 0.85rem; line-height: 1.4; }
.field-help { color: var(--device-muted); }
.field-error { color: var(--hold-soft); font-weight: 600; }
.field-error:empty { display: none; }
.optional { font-weight: 400; color: var(--device-muted); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--go); }
.check-label { font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
.check .field-help { grid-column: 2; }
.recorder { display: grid; gap: 8px; }
.recorder-row { display: flex; flex-wrap: wrap; gap: 10px; }
.recorder-audio { width: 100%; height: 40px; }
.recorder-status { color: var(--device-muted); font-size: 0.85rem; line-height: 1.4; overflow-wrap: anywhere; }
.recorder-status:empty { display: none; }
.recorder-status[data-mood="ok"] { color: var(--go-soft); }
.recorder-status[data-mood="bad"] { color: var(--hold-soft); }
.form-note { color: var(--device-muted); font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.6; }

/* Hotline chips on the dark card */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips-label { flex: 0 0 100%; color: var(--device-muted); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; }
.chip {
  min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--device-line); background: var(--device-2); color: var(--paper);
  font-weight: 600; font-size: 0.9rem;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.chip:hover { border-color: var(--device-muted); }
.chip[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--device); }

/* Dashboard: set-up view */
.setup { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem); align-items: start; }
@media (min-width: 960px) { .setup { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.section-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; }
.steps { display: grid; gap: 1.4rem; margin-top: 1.25rem; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.key {
  width: 48px; height: 48px; border-radius: 12px; background: var(--device); color: var(--paper);
  display: grid; place-items: center; box-shadow: inset 0 -4px 0 var(--device-line), 0 2px 0 var(--ink);
  font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700; line-height: 1;
}
.step h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.step p { margin-top: 6px; color: var(--ink-2); font-size: 0.98rem; line-height: 1.5; }
.step-you h3 { color: var(--go-ink); }
.privacy-strip { display: flex; gap: 14px; align-items: flex-start; margin-top: 1.75rem; padding: 16px 18px; border-radius: var(--radius-s); background: var(--go-tint); }
.privacy-strip svg { flex: none; width: 24px; height: 24px; margin-top: 2px; color: var(--go-ink); }
.privacy-strip p { font-size: 0.95rem; line-height: 1.5; }

/* Dashboard: live view */
.live-grid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); align-items: start; }
.stage { position: relative; }
@media (min-width: 960px) {
  .live-grid { grid-template-columns: minmax(0, 430px) minmax(0, 1fr); }
  .stage { position: sticky; top: 20px; }
}
.player { position: relative; padding: 22px 20px 60px; }
.player-top {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--device-muted);
  font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em;
}
.player-top .live { color: var(--hold-soft); }
.stage[data-state="person"] .player-top .live, .stage[data-state="live"] .player-top .live { color: var(--go-soft); }
.stage[data-state="person"] .player-top .live::before, .stage[data-state="live"] .player-top .live::before { background: var(--go-soft); }
.stage[data-state="done"] .player-top .live, .stage[data-state="failed"] .player-top .live { color: var(--device-muted); }
.stage[data-state="done"] .player-top .live::before, .stage[data-state="failed"] .player-top .live::before { background: var(--device-muted); }
.stage[data-state="menu"] .player-top .live::before, .stage[data-state="hold"] .player-top .live::before { animation: pulse 1.4s ease-in-out infinite; }
.timer { color: var(--paper); font-variant-numeric: tabular-nums; }
.art {
  margin-top: 14px; aspect-ratio: 2.4 / 1; border-radius: 14px; background: var(--hold);
  display: grid; place-items: center; overflow: hidden; transition: background-color 400ms ease;
}
.art svg { width: 100%; height: 100%; }
.art .staff { stroke: var(--ink); opacity: 0.22; }
.art .note { fill: var(--ink); }
.art .wave { stroke: var(--ink); fill: none; stroke-width: 6; stroke-linecap: round; }
.art .bar { fill: var(--ink); transform-box: fill-box; transform-origin: center bottom; transform: scaleY(0.5); }
.stage[data-state="menu"] .art .bar, .stage[data-state="hold"] .art .bar { animation: eq 1.1s ease-in-out infinite; }
.art .bar:nth-child(2) { animation-delay: 0.15s; }
.art .bar:nth-child(3) { animation-delay: 0.3s; }
.art .bar:nth-child(4) { animation-delay: 0.45s; }
.art .bar:nth-child(5) { animation-delay: 0.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.stage[data-state="person"] .art, .stage[data-state="live"] .art { background: var(--go); }
.stage[data-state="done"] .art { background: var(--paper-2); }
.stage[data-state="failed"] .art { background: var(--hold-tint); }
.track-title { margin-top: 14px; font-weight: 700; font-size: 1.4rem; letter-spacing: -0.015em; line-height: 1.15; }
.track-sub { margin-top: 4px; color: var(--device-muted); font-family: var(--font-mono); font-size: 0.8rem; overflow-wrap: anywhere; }
.queue { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--device-line); }
.queue-label { color: var(--device-muted); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; }
.queue-line {
  margin-top: 6px; min-height: 2.7em; color: var(--hold-soft); font-weight: 600; font-size: 1.05rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.keys {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; color: var(--device-muted);
  font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em;
}
.keylist { display: flex; flex-wrap: wrap; gap: 6px; }
.keycap {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 7px; border-radius: 8px;
  background: var(--device-2); color: var(--paper); box-shadow: inset 0 -3px 0 var(--device-line);
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0;
}
.controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Your phone, under the player */
.phone {
  position: relative; z-index: 2; margin: -40px 14px 0;
  display: flex; align-items: center; gap: 12px 14px; padding: 14px 16px;
  background: var(--card); color: var(--ink); border-radius: 16px;
  border: 1.5px solid var(--line); box-shadow: var(--shadow-card);
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.phone-icon {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: var(--paper-2); color: var(--ink-2); transition: background-color 300ms ease, color 300ms ease;
}
.phone-icon svg { width: 22px; height: 22px; fill: currentColor; }
.phone-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.phone-app {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; color: var(--ink-2);
  font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em;
}
.phone-tag { color: var(--go-ink); font-weight: 700; }
.phone-title { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.phone-sub { color: var(--ink-2); font-size: 0.9rem; line-height: 1.4; overflow-wrap: anywhere; }
.stage[data-phone="ringing"] .phone { border-color: var(--go); box-shadow: var(--shadow-card), 0 0 0 4px var(--go-tint); }
.stage[data-phone="ringing"] .phone-icon, .stage[data-phone="live"] .phone-icon { background: var(--go); color: var(--ink); }
.stage[data-phone="ringing"] .phone-icon svg { animation: ringing 0.5s ease-in-out infinite; }
@keyframes ringing { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
.stage[data-phone="missed"] .phone { border-color: var(--hold); }
.stage[data-phone="missed"] .phone-icon { background: var(--hold-tint); color: var(--hold-ink); }
.stage[data-phone="missed"] .phone-tag { color: var(--hold-ink); }

/* Cards and the call log */
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 16px 20px 14px; border-bottom: 1px solid var(--line); }
.card-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.card-meta { color: var(--ink-2); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; }
.log { padding: 6px 0; max-height: min(72vh, 760px); overflow-y: auto; }
/* Stacked under the player on narrow screens: the page scrolls, not a box inside it */
@media (max-width: 959px) { .log { max-height: none; } }

/* The survey after the call, above the log */
.live-side { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); align-content: start; min-width: 0; }
.survey { display: grid; gap: 22px; padding: 18px 20px 22px; }
.survey .btn { justify-self: start; }
.survey-q { min-width: 0; margin: 0; padding: 0; border: 0; }
.survey-q legend, .survey-label { display: block; padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
.survey-optional { font-weight: 400; color: var(--ink-2); }
.survey-help { margin-top: 8px; color: var(--ink-2); font-size: 0.85rem; line-height: 1.4; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; display: inline-flex; cursor: pointer; }
.pick input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pick span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 6px 16px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--ink);
  font-weight: 600; font-size: 0.95rem; line-height: 1.2; text-align: center;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.pick:hover span { border-color: var(--ink-2); }
.pick input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pick input:focus-visible + span { outline: 3px solid var(--go); outline-offset: 2px; }
.survey-text {
  width: 100%; min-height: 84px; padding: 12px 14px; border-radius: 12px; resize: vertical;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); font-size: 1rem; line-height: 1.4;
}
.survey-line { min-height: 48px; }
.survey-text:focus-visible { outline: 3px solid var(--go); outline-offset: 2px; border-color: var(--go-ink); }
.survey-error { color: var(--hold-ink); font-weight: 600; font-size: 0.9rem; line-height: 1.4; }
.survey-error:empty { display: none; }
.survey-thanks { padding: 18px 20px 22px; color: var(--go-ink); font-weight: 600; }
.log-row { display: grid; grid-template-columns: 4.4rem 5.6rem minmax(0, 1fr); gap: 4px 12px; align-items: baseline; padding: 9px 20px; }
.log-row + .log-row { border-top: 1px solid var(--paper-2); }
.log-time { color: var(--ink-2); font-family: var(--font-mono); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.tag {
  justify-self: start; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--paper-2); color: var(--ink-2);
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.tag-line { background: var(--hold-tint); color: var(--hold-ink); }
.tag-person { background: var(--go-tint); color: var(--go-ink); }
.tag-key { background: var(--device); color: var(--paper); }
.tag-agent { background: var(--ink); color: var(--paper); }
.tag-you { background: var(--go); color: var(--ink); }
.tag-error { background: var(--hold); color: var(--ink); }
.log-text { font-size: 0.95rem; line-height: 1.45; overflow-wrap: anywhere; }
.log-text.said { color: var(--hold-ink); }
.log-detail { margin-top: 2px; color: var(--ink-2); font-size: 0.86rem; line-height: 1.4; overflow-wrap: anywhere; }
.log-note { margin: 8px 20px; padding: 12px 14px; border-radius: var(--radius-s); font-weight: 700; font-size: 0.95rem; line-height: 1.35; }
.note-person { background: var(--go-tint); color: var(--go-ink); }
.note-live { background: var(--go); color: var(--ink); }
.note-fail { background: var(--hold-tint); color: var(--hold-ink); }
.empty { padding: 36px 20px; text-align: center; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 559px) {
  .log-row { grid-template-columns: auto minmax(0, 1fr); padding: 9px 16px; }
  .log-row > :last-child { grid-column: 1 / -1; }
  .log-note { margin: 8px 16px; }
}

/* Login */
.login { display: grid; place-items: center; padding: clamp(2rem, 1rem + 4vw, 4.5rem) 0; }
.login-box { width: min(440px, 100%); display: grid; gap: 1.75rem; }
.login .h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.4rem); }
.login .lead { font-size: 1.05rem; }

/* Call history */
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.page-lead { margin-top: 0.75rem; color: var(--ink-2); max-width: 38rem; }
.history-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
@media (min-width: 1024px) {
  .history-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .detail { position: sticky; top: 20px; }
}
.search input {
  width: 100%; min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); font-size: 1rem;
}
.search input:focus-visible { outline: 3px solid var(--go); outline-offset: 2px; border-color: var(--go-ink); }
.calls { display: grid; gap: 10px; margin-top: 12px; }
.call {
  display: grid; gap: 6px; width: 100%; padding: 15px 18px; text-align: left; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--card);
  transition: border-color 180ms ease;
}
.call:hover { border-color: var(--ink); }
.call[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.call-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.call-number { font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; }
.call-goal { font-size: 0.95rem; line-height: 1.4; }
.call-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-2); font-family: var(--font-mono); font-size: 0.74rem; }
.call-preview { color: var(--hold-ink); font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill {
  padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2);
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.pill-good { background: var(--go-tint); color: var(--go-ink); }
.pill-bad { background: var(--hold-tint); color: var(--hold-ink); }
.pill-wait { background: var(--device); color: var(--paper); }
.detail-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 20px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.detail-info dt { color: var(--ink-2); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; }
.detail-info dd { margin-top: 3px; font-size: 0.95rem; overflow-wrap: anywhere; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 14px 0; border-bottom: 1px solid var(--line); }
.tab { padding: 10px 12px; border: 0; border-bottom: 3px solid transparent; background: none; cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: 0.95rem; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--go); }
.raw { margin: 0; padding: 16px 20px; max-height: 560px; overflow: auto; color: var(--ink-2); font-family: var(--font-mono); font-size: 0.75rem; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
