/* Record conversation — one card. Phone fills the width. Desktop keeps the same card centered. */
.rec-page {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  padding: 24px 16px 48px;
}
.rec-card {
  width: min(420px, 100%);
  padding: 22px 18px 28px;
  border-radius: 28px;
  border: 1px solid var(--rec-card-line, transparent);
  background: var(--rec-card-bg, var(--terminal-bg, #0b0f14));
  color: #f4f1ec;
  box-shadow: 0 18px 50px rgba(11, 16, 34, 0.28);
}
.rec-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
}
.rec-home {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #f4f1ec;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.rec-home svg { width: 20px; height: 20px; }
.rec-kicker {
  margin: 0;
  color: var(--brand2, #ffc371);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.rec-hea {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 14px;
}
.rec-picker {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--rec-field-bg, #14181f);
  color: #f4f1ec;
  font: inherit;
}
.rec-picker:disabled { opacity: 0.55; }
.rec-card h1 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.rec-tick {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 14px;
  font-size: 15px;
}
.rec-tick input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--brand1, #ff5f6d); }
.rec-go {
  width: 100%;
  min-height: 188px;
  padding: 18px 18px 16px;
  border: 2px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(#f6f3ee, #f6f3ee) padding-box,
    linear-gradient(135deg, var(--brand1, #ff5f6d), var(--brand2, #ffc371)) border-box;
  color: #1a120e;
  text-align: left;
  cursor: pointer;
}
.rec-go-top { display: flex; justify-content: space-between; align-items: center; }
.rec-go-word {
  display: block;
  margin-top: 36px;
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.rec-lamp {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--fail, #e03131);
  box-shadow: 0 0 10px var(--fail, #e03131);
}
.rec-live {
  min-height: 220px;
  padding: 16px;
  border-radius: 22px;
  background: #6e100e;
  box-shadow: 0 0 28px 4px rgba(255, 70, 48, 0.55);
  animation: rec-glow 1.6s ease-in-out infinite;
}
.rec-live-frame {
  min-height: 188px;
  padding: 16px;
  border: 2px solid #ffe8e4;
  border-radius: 16px;
  background: #a31c16;
  box-shadow: inset 0 0 18px rgba(255, 160, 140, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.rec-live-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rec-onair {
  color: #fff8f6;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-shadow: 0 0 8px #fff, 0 0 18px #ffc2b8;
  animation: rec-breathe 1.6s ease-in-out infinite;
}
.rec-paused .rec-live { animation: none; background: #3a3a3a; box-shadow: none; }
.rec-paused .rec-live-frame { background: #5a5a5a; border-color: #e4e4e4; box-shadow: none; }
.rec-paused .rec-onair { letter-spacing: 0.06em; text-shadow: none; animation: none; }
.rec-clock { color: #fff; font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 700; }
.rec-keys { display: flex; gap: 10px; }
.rec-key {
  flex: 1;
  min-height: 56px;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.rec-warn, .rec-note, .rec-status { margin: 14px 0 0; color: #c8c2bb; font-size: 14px; }
.rec-matches { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.rec-match {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.rec-picked { color: #fff; }
.rec-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  color: #fff;
  font-size: 13px;
}
.rec-stack .rec-field { margin-top: 0; font-size: 16px; }
.rec-share, .rec-field, .rec-save {
  width: 100%;
  margin-top: 12px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: center;
}
#recDone { text-align: left; }
#recDone p {
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
#recDone .rec-badge { text-align: center; color: #c8c2bb; font-size: 14px; }
.rec-edit-hint,
#recDone .rec-edit-hint {
  margin: 0;
  text-align: left;
  color: #c8c2bb;
  font-size: 13px;
}
.rec-field { padding: 8px 10px; }
select.rec-field { background: var(--rec-field-bg, #14181f); }
@media (prefers-color-scheme: dark) {
  html:not(.light) {
    --rec-card-bg: var(--surface, #171a20);
    --rec-card-line: var(--line, #2a2f3a);
    --rec-field-bg: color-mix(in srgb, var(--ink, #e6ebf5) 8%, var(--surface, #171a20));
  }
}
html.dark {
  --rec-card-bg: var(--surface, #171a20);
  --rec-card-line: var(--line, #2a2f3a);
  --rec-field-bg: color-mix(in srgb, var(--ink, #e6ebf5) 8%, var(--surface, #171a20));
}
html.dark .rec-card { box-shadow: none; color: var(--ink, #e6ebf5); }
html.dark .rec-home,
html.dark .rec-picker { color: var(--ink, #e6ebf5); border-color: var(--line, #2a2f3a); }
.rec-save { background: #fff; color: #14181f; font-weight: 700; cursor: pointer; }
a.rec-back {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  text-decoration: none;
}
.rec-transcript,
.rec-notes {
  white-space: normal;
  max-height: 360px;
  overflow: auto;
  margin: 12px 0 0;
  color: #f4f1ec;
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
}
.rec-draft {
  text-align: left;
  outline: none;
  min-height: 8em;
  cursor: text;
}
.rec-draft:focus {
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.rec-notes h1,
.rec-notes h2,
.rec-notes h3,
.rec-notes h4 { margin: 14px 0 6px; font-size: 16px; font-weight: 700; text-align: left; }
.rec-notes p { margin: 0 0 8px; text-align: left; max-width: none; color: inherit; font-size: inherit; line-height: inherit; }
.rec-notes ul,
.rec-notes ol { margin: 0 0 8px; padding-left: 1.2em; list-style-position: outside; text-align: left; }
.rec-notes li { display: list-item; text-align: left; margin: 0 0 4px; font-size: inherit; }
.rec-notes ol { list-style: decimal; }
.rec-notes ol li::before { content: none; }
.rec-notes pre,
.rec-verbatim pre { white-space: pre-wrap; font: inherit; }
.rec-verbatim { margin-top: 12px; }
.rec-verbatim summary { cursor: pointer; }
[hidden] { display: none !important; }
@media (max-width: 640px) {
  .rec-page { padding: 12px 10px 32px; }
  .rec-card { border-radius: 20px; }
  .rec-go-word { font-size: 30px; }
  .rec-onair { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .rec-live, .rec-onair { animation: none; }
  .rec-live { box-shadow: 0 0 14px 3px rgba(255, 70, 48, 0.85); }
}
@keyframes rec-glow {
  50% { box-shadow: 0 0 42px 10px rgba(255, 80, 48, 0.9); }
}
@keyframes rec-breathe { 50% { opacity: 0.72; } }
