:root {
  color-scheme: light;
  --ink: #203b41;
  --muted: #6b7c7e;
  --teal: #0e766e;
  --teal-dark: #075d57;
  --border: #e0e8e5;
  --surface: #fff;
  --canvas: #f6f8f5;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--teal); text-decoration: none; }
button:focus-visible, select:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #31a895; outline-offset: 4px; }
[hidden] { display: none !important; }
svg { display: block; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1220px, calc(100% - 72px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; right: 8px; padding: 8px 16px; background: white; z-index: 10; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { height: 88px; border-bottom: 1px solid var(--border); background: #ffffff8c; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 21px; font-weight: 700; white-space: nowrap; }
.brand-mark { display: flex; align-items: center; justify-content: center; gap: 3px; width: 40px; height: 40px; border-radius: 12px; background: var(--teal); }
.brand-mark i { width: 3px; height: 10px; background: white; border-radius: 3px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(4) { height: 20px; }
.brand-mark i:nth-child(3) { height: 27px; }
.header-caption { font-size: 12px; color: var(--muted); padding-inline-start: 24px; border-inline-start: 1px solid var(--border); }
.privacy-link { margin-inline-start: auto; font-size: 12px; color: #526d70; }
.privacy-link:hover { color: var(--teal); text-decoration: underline; }
.workspace { padding-top: 48px; }
.intro { position: relative; padding-bottom: 32px; }
.eyebrow { display: block; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .2px; margin-bottom: 12px; }
.intro h1 { font-size: clamp(28px, 3.1vw, 40px); line-height: 1.6; letter-spacing: -1.3px; font-weight: 700; }
.intro h1 br { display: none; }
.intro h1 span { color: var(--teal); }
.intro p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 2; }
.workspace-grid { display: grid; grid-template-columns: 318px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.control-panel, .transcript-panel { border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.control-panel { padding: 24px; }
.panel-heading { display: flex; align-items: center; gap: 10px; }
.panel-heading h2 { font-size: 15px; font-weight: 700; }
.section-index { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; font-size: 11px; color: #839795; background: #f1f5f2; }
.microphone-illustration { display: flex; justify-content: center; padding: 26px 0 17px; }
.microphone-ring { width: 90px; height: 90px; border-radius: 50%; display: grid; place-items: center; background: #edf7f2; box-shadow: 0 0 0 9px #f8fbf8; color: var(--teal); }
.microphone-ring svg { width: 39px; height: 39px; stroke-width: 2; }
.listening-status { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 8px; }
.listening-status p { text-align: center; font-size: 11px; color: #617575; }
.status-dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: #a3b2ad; }
.status-dot[data-state="listening"], .status-dot.is-listening { background: #15917f; box-shadow: 0 0 0 4px #e4f5ec; animation: pulse 1.5s infinite; }
.status-dot[data-state="paused"] { background: #b88b3f; }
.audio-meter { margin: 8px auto 20px; height: 4px; width: 96px; border-radius: 5px; background: #edf1ed; overflow: hidden; direction: ltr; }
.audio-meter-fill { height: 100%; min-width: 0; border-radius: inherit; background: #2ea58f; transition: width 90ms linear; }
.recording-actions { display: flex; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; min-height: 44px; padding: 10px 14px; transition: background 150ms, border-color 150ms, box-shadow 150ms; white-space: nowrap; font-size: 12px; font-weight: 700; }
.button svg { width: 18px; height: 18px; flex-shrink: 0; }
.button-primary { background: var(--teal); color: white; box-shadow: 0 3px 8px #0e766e15; }
.button-primary:hover:not(:disabled) { background: var(--teal-dark); box-shadow: 0 4px 12px #0e766e25; }
.recording-actions .button-primary { flex: 1; }
.button-primary:disabled { background: #91b6ae; box-shadow: none; }
.button-stop { background: #f5f7f4; color: #556c6a; border-color: #e4eae4; padding-inline: 11px; }
.button-stop:hover:not(:disabled) { background: #f9eae7; color: #a44234; border-color: #f1ccc6; }
.button-stop:disabled { color: #a1aba6; background: #f8f9f6; border-color: #edf0eb; }
.settings { margin-top: 24px; padding-top: 22px; border-top: 1px solid #edf0eb; display: grid; gap: 17px; }
.field label { display: block; font-size: 11px; font-weight: 700; margin-bottom: 8px; color: #536966; }
.field select { width: 100%; height: 44px; border: 1px solid #dae3dc; border-radius: 9px; color: #344e4b; background: #fcfdfb; padding: 8px 10px; font-size: 12px; cursor: pointer; }
.field select:disabled { color: #87958e; cursor: not-allowed; background: #f7f8f5; }
.field-help { margin-top: 7px; color: #82918a; font-size: 10px; line-height: 1.9; }
.small-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 22px; padding: 13px 11px; background: #f4f7f1; border-radius: 10px; }
.small-note svg { flex: 0 0 17px; width: 17px; height: 17px; color: #718876; margin-top: 3px; }
.small-note p { color: #73816f; font-size: 10px; line-height: 2; }
.error-message { padding: 12px; margin-top: 15px; border: 1px solid #f1c9bf; background: #fff2ed; color: #943f2e; border-radius: 10px; font-size: 12px; line-height: 1.9; }
.transcript-panel { min-width: 0; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 8px 28px #263d2f04; }
.transcript-header { min-height: 76px; padding: 20px 26px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.document-label { color: #9aa69e; font-size: 10px; }
.document-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 9px 20px; border-top: 1px solid #edf0eb; border-bottom: 1px solid #edf0eb; background: #fcfdfb; gap: 8px; }
.export-actions { display: flex; gap: 7px; }
.button-tool { min-height: 35px; padding: 6px 9px; font-size: 11px; font-weight: 400; color: #55716a; background: transparent; border-radius: 7px; gap: 6px; }
.button-tool svg { width: 16px; height: 16px; }
.button-tool:hover:not(:disabled) { background: #eaf3ed; }
.button-clear { color: #a26156; }
.button-clear:hover:not(:disabled) { background: #fbefea; }
.button-tool:disabled { color: #a6afa7; }
.document-body { position: relative; flex: 1; min-height: 374px; background: repeating-linear-gradient(to bottom, transparent 0px, transparent 43px, #f4f6f1 43px, #f4f6f1 44px); background-position: 0 12px; }
.transcript { min-height: 374px; max-height: 600px; overflow: auto; height: 100%; padding: 24px 26px 38px; scrollbar-width: thin; scrollbar-color: #cbd9d1 transparent; }
.transcript-line { display: flex; align-items: baseline; gap: 20px; min-height: 44px; margin: 0; padding-block: 5px; }
.line-number { color: #a2b3a8; font-size: 11px; min-width: 20px; user-select: none; font-variant-numeric: tabular-nums; }
.line-text { flex: 1; min-width: 0; color: #2b443b; line-height: 2.2; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.interim, .is-interim, .transcript-line.is-interim .line-text { color: #779b8b; }
.interim::after { content: ""; display: inline-block; height: 1em; width: 2px; margin-inline-start: 4px; background: #2f9d7c; vertical-align: -.1em; animation: pulse 1s infinite; }
.empty-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px; pointer-events: none; text-align: center; background: #ffffffb8; }
.empty-document { position: relative; color: #9bb5a2; width: 80px; height: 80px; display: grid; place-items: center; background: #f3f7ef; border-radius: 22px; transform: rotate(-7deg); margin-bottom: 22px; }
.empty-document svg { width: 48px; height: 48px; stroke-width: 1.4; }
.empty-spark { position: absolute; right: -7px; top: -10px; width: 26px; height: 26px; display: grid; place-items: center; color: #c4a76c; font-size: 25px; }
.empty-state h3 { font-size: 17px; font-weight: 700; color: #607767; margin-bottom: 10px; }
.empty-state p { max-width: 290px; font-size: 12px; color: #91a08f; line-height: 2.2; }
.empty-hint { font-size: 10px; color: #a5afa0; margin-top: 22px; }
.document-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding: 14px 25px; border-top: 1px solid #edf0eb; background: #fcfdfb; color: #829082; font-size: 10px; }
.document-counts { display: flex; gap: 20px; white-space: nowrap; }
.document-counts b { font-weight: 400; color: #526c56; margin-inline-end: 3px; }
.session-note { color: #9ba697; }
.browser-note { display: flex; align-items: flex-start; justify-content: center; gap: 8px; max-width: 820px; margin: 23px auto 0; }
.browser-note svg { width: 15px; height: 15px; flex: 0 0 15px; color: #99a692; margin-top: 4px; }
.browser-note p { font-size: 10px; line-height: 2; color: #87947f; }
.site-footer { display: flex; justify-content: space-between; padding-block: 34px 24px; color: #a1ac9c; font-size: 10px; }
.site-footer [lang="en"] { letter-spacing: .6px; }
.privacy-content { max-width: 800px; margin: 64px auto; padding: 36px; border: 1px solid var(--border); border-radius: 18px; background: white; }
.privacy-content h1 { font-size: 28px; margin-bottom: 20px; }
.privacy-content p { line-height: 2.3; margin-bottom: 18px; color: #61736c; }
.privacy-content .button { margin-top: 12px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (min-width: 1450px) { .workspace { padding-top: 60px; } .intro { padding-bottom: 40px; } }
@media (max-width: 1000px) {
  .shell { width: calc(100% - 40px); }
  .workspace-grid { grid-template-columns: 290px minmax(0, 1fr); gap: 18px; }
  .control-panel { padding: 21px; }
  .header-caption { display: none; }
  .session-note { max-width: 160px; text-align: end; }
  .transcript-header { padding-inline: 20px; }
  .document-toolbar { padding-inline: 12px; }
  .transcript { padding-inline: 20px; }
}
@media (max-width: 740px) {
  .site-header { height: 72px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 11px; }
  .privacy-link { font-size: 10px; }
  .workspace { padding-top: 30px; }
  .intro { padding-bottom: 25px; }
  .intro h1 { font-size: 29px; line-height: 1.75; letter-spacing: -.8px; }
  .intro h1 br { display: block; }
  .intro p { font-size: 12px; max-width: 470px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .control-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 22px; padding: 21px; }
  .control-panel > .panel-heading, .control-panel > .small-note, .control-panel > .error-message { grid-column: 1 / -1; }
  .microphone-illustration { grid-column: 1; grid-row: 2 / 4; padding: 25px 0 15px; }
  .listening-status { grid-column: 2; grid-row: 2; align-self: end; margin-top: 12px; }
  .audio-meter { grid-column: 2; grid-row: 3; margin: 6px auto 22px; }
  .recording-actions { grid-column: 1 / -1; }
  .settings { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 20px; padding-top: 20px; }
  .small-note { margin-top: 16px; }
  .document-body, .transcript { min-height: 390px; }
  .transcript { max-height: 520px; }
  .session-note { max-width: none; }
  .browser-note { margin-top: 20px; }
  .privacy-content { margin-block: 30px; padding: 24px; }
  .privacy-content h1 { font-size: 23px; }
}
@media (max-width: 430px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { gap: 12px; }
  .brand { gap: 8px; font-size: 17px; }
  .control-panel { padding: 18px; gap: 0 15px; }
  .field label { font-size: 10px; }
  .field select { font-size: 11px; padding-inline: 6px; }
  .settings { gap: 12px; }
  .transcript-header, .document-footer { padding-inline: 18px; }
  .document-label { display: none; }
  .document-toolbar { padding-inline: 9px; }
  .button-tool { font-size: 10px; gap: 4px; padding-inline: 5px; }
  .button-tool svg { width: 14px; height: 14px; }
  .document-footer { align-items: flex-start; }
  .session-note { max-width: 145px; font-size: 9px; }
  .document-counts { gap: 12px; }
  .transcript { padding-inline: 17px; }
  .transcript-line { gap: 13px; }
  .empty-state { padding-inline: 25px; }
  .site-footer { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
