:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #172d29;
  background: #f5f5ee;
  --ink: #172d29;
  --muted: #536661;
  --line: #d5dfd7;
  --paper: #fffef8;
  --pine: #144b3e;
  --deep: #173c33;
  --red: #a12b36;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
::selection { color: var(--ink); background: #c8e8ac; }
:focus-visible { outline: 3px solid #397454; outline-offset: 4px; }
.shell { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar-content { display: flex; align-items: center; min-height: 68px; gap: 32px; }
.product { font-weight: 720; white-space: nowrap; }
.product span { color: #588167; margin-inline: 5px; }
nav { display: flex; gap: 20px; }
nav a { color: var(--muted); text-decoration: none; font-size: .94rem; }
nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.local { margin-left: auto; color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6e997a; display: inline-block; flex-shrink: 0; }
main { padding-block: 38px 80px; }
.capture { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .57fr); gap: 38px; padding: 36px; align-items: center; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.35rem); line-height: 1.03; letter-spacing: -.035em; }
h2 { font-size: 1.55rem; letter-spacing: -.022em; }
h3 { font-size: 1.12rem; }
.capture-copy > p:first-of-type { line-height: 1.55; max-width: 53ch; color: var(--muted); margin-block: 13px 22px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: .88rem; font-weight: 620; }
input, select, textarea { font: inherit; min-height: 43px; width: 100%; border-radius: 7px; border: 1px solid #becdc2; color: var(--ink); background: #fff; padding: 8px 10px; }
input::placeholder, textarea::placeholder { color: #67766c; font-weight: 400; }
.consent { flex-direction: row; align-items: flex-start; gap: 9px; margin-block: 19px 9px; font-weight: 540; line-height: 1.4; }
.consent input { margin: 2px 0 0; width: 17px; height: 17px; min-height: 0; accent-color: var(--pine); flex: 0 0 auto; }
.hint, .feedback, .section-heading > span, .row small, .empty { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.hint { max-width: 57ch; }
.feedback { margin-top: 9px; }
.feedback:empty { margin-top: 0; }
.feedback[data-error="true"] { color: #8d222c; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
button { font: inherit; font-weight: 650; border: 1px solid transparent; border-radius: 8px; padding: 10px 15px; min-height: 42px; cursor: pointer; }
.primary, .stop { display: inline-flex; align-items: center; gap: 7px; background: var(--pine); color: #fff; }
.primary:hover { background: #0d3b31; }
.stop { background: var(--red); }
.stop:hover { background: #7f1b24; }
.secondary { background: var(--paper); color: var(--pine); border-color: #b7cbbd; }
.secondary:hover { background: #eaf3e9; }
button:disabled { cursor: default; opacity: .58; }
.monitor { padding: 23px; border-radius: 13px; background: var(--deep); color: #f2faeb; }
.monitor-label { display: inline-flex; align-items: center; gap: 9px; font-size: .92rem; font-weight: 650; }
.monitor .dot { background: #a6cdab; }
.monitor[data-state="recording"] .dot { background: #ff9195; box-shadow: 0 0 0 4px #ff919529; }
.timer { font-variant-numeric: tabular-nums; font-size: 3.7rem; line-height: 1.04; letter-spacing: -.04em; font-weight: 640; margin-block: 12px 21px; }
.level { margin-block: 12px; }
.level span, .monitor > p:last-child { font-size: .8rem; color: #d1e8d8; }
meter { display: block; margin-top: 5px; width: 100%; height: 8px; appearance: none; }
meter::-webkit-meter-bar { background: #386153; border: none; border-radius: 3px; height: 8px; }
meter::-webkit-meter-optimum-value { background: #b3df98; border-radius: 3px; }
.monitor > p:last-child { margin-top: 20px; }
.section { margin-top: 34px; scroll-margin-top: 16px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 16px; margin-bottom: 12px; }
.list, .contact-form, .detail { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; }
.list:empty { display: none; }
.row, .empty { padding: 13px 16px; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.row + .row { border-top: 1px solid var(--line); }
.row div { min-width: 0; overflow-wrap: anywhere; }
.row strong, .row small { display: block; }
.row small { margin-top: 3px; }
.row button { flex-shrink: 0; }
.contact-form, .detail { padding: 20px; }
.contact-form + .list, .detail { margin-top: 12px; }
.detail p { margin-block: 8px; line-height: 1.5; }
.detail li { margin-block: 5px; line-height: 1.5; overflow-wrap: anywhere; }
.detail summary { font-weight: 650; cursor: pointer; }
.detail details { margin-top: 12px; }
.timestamp { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.followup { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.followup h4 { margin: 6px 0; }
.followup .fields, .email-draft { margin-top: 12px; }
.email-draft textarea { resize: vertical; }
.pairing { border-block: 1px solid var(--line); padding: 16px; }
.pairing p { color: var(--muted); margin-bottom: 10px; }
.pairing img { display: block; max-width: 100%; height: auto; }
.decision { margin-top: 18px; padding: 12px 15px; background: #eef4ea; border: 1px solid #c4d9c5; border-radius: 8px; }
.decision h4 { margin: 0; }
@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 1080px); }
  .topbar-content { gap: 15px; flex-wrap: wrap; padding-block: 12px; min-height: 0; }
  nav { gap: 12px; }
  .local { display: none; }
  main { padding-top: 20px; }
  .capture { padding: 21px; grid-template-columns: 1fr; gap: 22px; }
  .monitor { padding: 18px; }
  .timer { font-size: 2.8rem; margin-block: 7px 14px; }
}
@media (max-width: 440px) {
  .fields { grid-template-columns: 1fr; }
  .row { align-items: flex-start; }
}
