:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #1c1a13;
  background: #f8f6ed;
  --yellow: #f7ce31;
  --ink: #1c1a13;
  --muted: #686153;
  --line: #e7dfcb;
  --surface: #fffefa;
  --red: #b91e2d;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
.shell { max-width: 1168px; width: calc(100% - 56px); margin: 0 auto; }
.top { border-bottom: 1px solid var(--line); background: #fffdf5; }
.top-inner, .section-head, .report-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.top-inner { min-height: 72px; }
#member-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 22px; letter-spacing: -.04em; }
.brand b { font-weight: 800; }
a { color: inherit; text-underline-offset: 4px; }
button, .file-button, input { font: inherit; }
button, .file-button { display: inline-flex; justify-content: center; align-items: center; border-radius: 10px; padding: 10px 15px; min-height: 42px; cursor: pointer; font-weight: 650; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #836100; outline-offset: 3px; }
.primary { color: var(--ink); background: var(--yellow); border: 1px solid #ddaf16; }
.secondary { background: #fffdfa; color: var(--ink); border: 1px solid #d6c9a9; }
.quiet { color: #55451f; background: transparent; border: 1px solid transparent; }
.quiet:hover { background: #f1ead8; }
.danger { color: #fff; background: #9d1e28; border: 1px solid #9d1e28; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(35px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.065em; }
h2 { line-height: 1.16; letter-spacing: -.03em; }
p { line-height: 1.55; color: var(--muted); }
p + p { margin-top: 8px; }
.status { min-height: 27px; margin: 17px 0 6px; color: #704321; }
.status[data-error="true"] { color: #9d1e28; font-weight: 650; }
.system-note { margin-top: 18px; border: 1px solid #d8c484; border-radius: 10px; padding: 9px 13px; background: #fff4c8; color: #594414; }
.intro { background: #211e15; color: #fffaf0; padding: clamp(24px, 3.5vw, 45px); border-radius: 24px; margin-bottom: 28px; border-left: 7px solid var(--yellow); }
.intro h1 { font-size: clamp(33px, 5vw, 63px); }
.intro-subtitle { display: block; margin-top: 3px; font-size: .79em; }
.intro p { margin-top: 15px; color: #efe0b6; font-size: 17px; }
.recovery-button { border: 1px solid #211e15; background: #211e15; color: #fff3c8; font-weight: 750; }
.recovery-button:hover { background: #393125; color: #fffaf0; }
.section-head p { margin-top: 5px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0; }
.plan, .card, .empty, .rows li, .notice, .balance { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.plan { padding: 23px; display: flex; gap: 8px; flex-direction: column; }
.plan:nth-child(2) { border-color: #ccaa38; }
.plan-price { font-weight: 750; font-size: clamp(24px,3vw,36px); color: var(--ink); margin-top: 5px; letter-spacing: -.04em; }
.plan-price small { font-size: 14px; font-weight: 500; letter-spacing: 0; }
.plan button { margin-top: 12px; }
.notice { padding: 16px; margin-top: 14px; background: #fff9e7; }
.notice p { margin-bottom: 8px; }
.inline { display: flex; gap: 8px; margin-top: 6px; align-items: center; }
label { font-weight: 650; }
input:not([type=checkbox]):not([type=file]) { min-height: 42px; padding: 8px 12px; width: 100%; border: 1px solid #cfc4a9; border-radius: 9px; background: #fff; color: var(--ink); }
input[type=checkbox] { flex: 0 0 auto; accent-color: #7b5508; width: 17px; height: 17px; margin: 2px 0; }
.studio-head { padding: 8px 0 24px; }
.studio-head h1 { font-size: clamp(32px,4.7vw,57px); }
.balance { min-width: 220px; padding: 14px 17px; display: grid; gap: 3px; }
.balance-details { display: grid; gap: 3px; }
.balance button { margin-top: 7px; justify-self: start; }
.balance b { font-size: 13px; color: #785513; text-transform: uppercase; letter-spacing: .10em; }
.balance small { color: var(--muted); }
.billing-change { display: grid; gap: 8px; margin: 12px 0; }
.billing-change select { min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); }
.billing-change button { justify-self: start; }
.billing-actions { margin-top: 12px; }
.studio-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 17px; }
.card { padding: clamp(16px,3vw,28px); }
.card p { margin-top: 7px; }
.clock { font: 700 clamp(39px,6vw,72px)/1.2 "Segoe UI", system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.075em; margin-top: 18px; }
.capture-status { min-height: 26px; margin: 0 0 16px !important; }
.limit-warning { color: var(--red); font-weight: 650; margin-bottom: 12px; }
.marker { display: inline-flex; align-items: center; gap: 7px; font-weight: 750; color: var(--red); font-size: 13px; }
.marker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
#title { display: block; margin: 6px 0 12px; }
.check { display: flex; gap: 9px; font-weight: 500; color: #5e5543; margin-bottom: 13px; }
.actions, .row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.upload-card .file-button { display: flex; margin: 18px 0 9px; }
.upload-card small { color: var(--muted); }
.upload-card:focus-within .file-button { outline-offset: 3px; }
#studio:has(.upload-card .visually-hidden:focus-visible) .file-button { outline: 3px solid #836100; }
.list-section { margin-top: 29px; }
.empty { padding: 24px; margin-top: 12px; }
.rows { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 7px; }
.rows li { padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rows li strong { display: block; overflow-wrap: anywhere; font-size: 15px; }
.rows li small { color: var(--muted); }
.report-head { align-items: flex-start; }
#report-content > section { margin-top: 20px; }
#report-content .result { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; margin-top: 8px; }
.document-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.transcript-cues { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.transcript-cues li { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: baseline; gap: 8px; }
.transcript-cues .quiet { padding: 5px 4px; font-variant-numeric: tabular-nums; }
.transcript-cues .result { margin: 0 !important; }
#report-audio { width: 100%; margin-top: 8px; }
.report-actions { margin-top: 20px; }
footer { color: var(--muted); display: grid; gap: 8px; margin: 32px 0; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 11px; }
dialog { max-width: min(820px, calc(100% - 36px)); width: 100%; max-height: 86vh; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); padding: 22px; }
dialog::backdrop { background: #15120db0; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: absolute; top: 8px; left: 8px; background: #fff; z-index: 3; }
@media (max-width: 710px) {
  .shell { width: calc(100% - 28px); }
  .plans, .studio-grid { grid-template-columns: 1fr; }
  .top-inner, .section-head, .report-head, .rows li { align-items: flex-start; }
  .section-head, .rows li { flex-wrap: wrap; }
  .top-inner { align-items: center; gap: 8px; }
  .top-inner .quiet { padding: 7px 5px; font-size: 12px; }
}
@media (max-width: 520px) {
  .recovery-button { width: 100%; }
}
@media print {
  body { background: white; }
  body > :not(dialog), dialog .report-actions, dialog form, dialog audio, .document-heading button { display: none !important; }
  dialog[open] { position: static; width: 100%; max-width: none; max-height: none; overflow: visible; margin: 0; border: 0; padding: 0; }
  dialog::backdrop { background: none; }
}
:where(#recovery-code-form){margin-top:14px}
.top-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; }
.trial { border-color: #ddaf16; background: #fff4c8; margin-bottom: 26px; }
.inline button { flex: 0 0 auto; white-space: nowrap; }
.trial strong { color: var(--ink); }
.hint { display: block; color: var(--muted); margin: -6px 0 12px; }
.optional { font-weight: 400; color: var(--muted); }
#meeting-terms { display: block; margin: 6px 0 12px; }
select, textarea { font: inherit; width: 100%; padding: 8px 12px; border: 1px solid #cfc4a9; border-radius: 9px; background: #fff; color: var(--ink); }
select { min-height: 42px; }
textarea { line-height: 1.5; resize: vertical; }
.stack { display: grid; gap: 6px; }
.levels { display: grid; gap: 4px; margin: 0 0 14px; max-width: 360px; }
.levels label { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; color: var(--muted); }
.levels meter { width: 100%; height: 12px; }
.history-tools { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 8px; margin-top: 12px; }
.dialog-section { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.dialog-section h3 { margin-bottom: 6px; }
.dialog-section .check { margin: 8px 0 0; }
.dialog-section .stack { margin-top: 10px; }
#support-form { margin-top: 12px; }
#support-contact { margin-top: 12px; font-size: 14px; }
.speaker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #785513; }
.cue-edit { min-height: 56px; }
.transcript-edit { min-height: 260px; }
.purchase-upgrade { margin-top: 34px; }
@media (max-width: 710px) {
  .history-tools { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .inline { flex-wrap: wrap; }
  .inline button { flex: 1 1 auto; white-space: normal; }
}
