:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202321;
  background: #f8f9f7;
  font-synthesis: none;
  --muted: #6d746f;
  --border: #e4e7e2;
  --green: #285e48;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, select, label[for="audio-file"] { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; }
button:focus-visible, select:focus-visible, input:focus-visible, label[tabindex]:focus-visible, a:focus-visible { outline: 3px solid #83ae98; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -70px; background: white; padding: 10px; z-index: 9; }
.skip-link:focus { top: 10px; }
.site-header { height: 84px; padding: 0 6%; border-bottom: 1px solid var(--border); background: #fff; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 17px; font-weight: 650; letter-spacing: -.6px; }
.brand-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; justify-content: center; align-items: center; gap: 3px; background: #293d33; }
.brand-icon i { width: 3px; height: 11px; border-radius: 3px; background: #fff; transform: rotate(-18deg); }
.brand-icon i:nth-child(2) { height: 18px; }
.brand-icon i:nth-child(3) { height: 14px; }
.demo-badge { border: 1px solid var(--border); border-radius: 100px; padding: 4px 11px; font-size: 11px; color: var(--muted); }
.workspace { max-width: 1040px; margin: auto; padding: 0 32px; }
.hero { text-align: center; padding: 66px 0 37px; }
.eyebrow, .section-kicker { font-size: 10px; font-weight: 600; letter-spacing: 1.7px; color: var(--muted); margin: 0 0 13px; }
.hero h1 { font-size: clamp(38px, 5.7vw, 57px); letter-spacing: -2.7px; line-height: 1.09; font-weight: 570; margin: 0; }
.hero-copy { margin-top: 21px; font-size: 15px; color: var(--muted); line-height: 1.8; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 15px; }
.upload-panel { max-width: 650px; margin: 0 auto; padding: 29px 31px 24px; box-shadow: 0 5px 20px #293d3304; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; gap: 12px; }
h2 { font-size: 17px; line-height: 1.4; font-weight: 600; margin: 0; letter-spacing: -.45px; }
.panel-heading .section-kicker { margin-bottom: 5px; font-size: 9px; }
.format-pill { background: #f3f5f1; border: 1px solid var(--border); border-radius: 5px; padding: 2px 8px; font-size: 10px; font-weight: 650; color: #60685f; letter-spacing: .5px; }
.dropzone { min-height: 214px; padding: 27px 16px 22px; background: #fafbf9; border: 1px dashed #cfd7cd; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag-over { border-color: #6e9d80; background: #f1f6f1; }
.dropzone[aria-disabled="true"] { opacity: .55; cursor: default; }
.upload-icon { height: 40px; width: 40px; border: 1px solid var(--border); border-radius: 10px; background: white; display: grid; place-items: center; margin-bottom: 13px; box-shadow: 0 2px 3px #11111103; }
.upload-icon svg { width: 20px; height: 20px; stroke: #687769; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dropzone strong { font-weight: 550; font-size: 14px; }
.dropzone > span:not(.upload-icon) { color: var(--muted); font-size: 12px; margin-top: 1px; }
.choose-link { color: #356047; text-decoration: underline; text-underline-offset: 3px; }
.dropzone small { color: #747d74; font-size: 11px; margin-top: 14px; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 21px 0; font-size: 11px; color: #606960; line-height: 1.7; cursor: pointer; }
.consent input { flex: 0 0 auto; margin: 3px 0 0; width: 15px; height: 15px; accent-color: var(--green); }
.button { border: 1px solid var(--border); border-radius: 7px; min-height: 39px; padding: 9px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; font-size: 12px; font-weight: 550; text-decoration: none; line-height: 1.5; }
.button:hover:not(:disabled) { filter: brightness(.96); }
.primary { width: 100%; background: #2d5b44; color: white; border-color: #2d5b44; min-height: 45px; justify-content: space-between; padding: 11px 16px; }
.primary:disabled { background: #e3e9e0; border-color: #e3e9e0; color: #727f6c; opacity: 1; }
.secondary { background: #fff; color: #4c554d; }
.dark { background: #2e3631; border-color: #2e3631; color: white; }
.privacy-note { border-top: 1px solid #f0f1ed; padding-top: 18px; margin: 20px 0 0; display: flex; align-items: flex-start; gap: 8px; font-size: 10px; line-height: 1.8; color: #7a817a; }
.privacy-note svg { flex-shrink: 0; margin-top: 2px; width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.6; }
.selected-file { display: flex; align-items: center; gap: 12px; padding: 18px 14px; border: 1px solid #cfddd0; background: #f7faf5; border-radius: 9px; }
.file-icon { border: 1px solid var(--border); background: white; padding: 10px 6px; border-radius: 6px; color: #51715b; font-size: 9px; font-weight: 650; }
.file-details { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-details strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 550; }
.file-details span { font-size: 10px; color: var(--muted); }
.text-button, .icon-button { border: none; background: transparent; color: #58705b; font-size: 11px; padding: 5px; }
.icon-button { font-size: 21px; }
.notice { max-width: 650px; margin: 0 auto 16px; border: 1px solid #edcec5; background: #fff6f2; color: #8d4033; border-radius: 9px; display: flex; align-items: center; gap: 11px; padding: 13px 17px; font-size: 12px; }
.notice p { margin: 0; }
.notice-icon { border: 1px solid #d5a99e; border-radius: 100%; width: 19px; height: 19px; flex-shrink: 0; display: grid; place-items: center; font-weight: 650; font-size: 11px; }
.processing { padding: 20px 0 0; }
.progress-heading { display: flex; align-items: center; justify-content: space-between; font-size: 12px; gap: 12px; }
.progress-heading strong { font-weight: 550; }
.progress-heading span, .processing p { color: var(--muted); font-size: 11px; }
progress { display: block; width: 100%; height: 6px; margin-top: 12px; border: 0; border-radius: 5px; overflow: hidden; accent-color: #527b5e; }
progress::-webkit-progress-bar { background: #edf0e9; border-radius: 5px; }
progress::-webkit-progress-value { background: #527b5e; border-radius: 5px; }
progress::-moz-progress-bar { background: #527b5e; border-radius: 5px; }
.processing p { margin: 9px 0 0; }
.results { padding-top: 48px; }
.results-header { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 30px; }
.results-header h1 { margin: 0; font-size: clamp(25px, 4vw, 34px); font-weight: 550; letter-spacing: -1.2px; }
.results-header .section-kicker { margin-bottom: 8px; font-size: 9px; }
.success { color: #4d7959; }
.muted { color: var(--muted); font-size: 12px; margin: 7px 0 0; }
#result-filename { overflow-wrap: anywhere; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 22px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.metrics > div { padding: 18px 22px; border-right: 1px solid var(--border); }
.metrics > div:last-child { border: none; }
.metrics span { font-size: 10px; display: block; color: var(--muted); }
.metrics strong { font-size: 19px; font-weight: 550; display: block; line-height: 1.5; margin-top: 4px; letter-spacing: -.5px; }
#languages { font-size: 15px; padding-top: 3px; }
.speakers-panel { padding: 22px 25px; margin-bottom: 22px; }
.speakers-panel h2 { font-size: 14px; }
.speakers-panel .muted { font-size: 11px; }
.speaker-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.speaker-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; border: 1px solid; border-color: #d8dfd6; border-radius: 6px; }
.speaker-chip::before { content: ''; border-radius: 50%; width: 5px; height: 5px; background: currentColor; }
.speaker-chip input { width: 115px; min-width: 40px; max-width: 180px; border: 0; background: transparent; color: inherit; font-size: 11px; padding: 1px 0; outline-offset: 3px; }
.speaker-0 { color: #3d6754; background: #edf5f0; border-color: #d5e8dc; }
.speaker-1 { color: #525d9a; background: #f0f1fb; border-color: #dddff2; }
.speaker-2 { color: #8a5c37; background: #fcf2e8; border-color: #eddccb; }
.speaker-3 { color: #8b5274; background: #f9eef5; border-color: #eddbe7; }
.speaker-4 { color: #3b7280; background: #edf7f9; border-color: #d7e9ed; }
.speaker-5 { color: #79702c; background: #f9f7e6; border-color: #e7e2ba; }
.speaker-6 { color: #785a98; background: #f5f0fa; border-color: #e5d9ef; }
.speaker-7 { color: #8b514c; background: #fbf0ee; border-color: #ecd7d3; }
.speaker-unknown { color: #646b67; background: #f1f3f1; border-color: #dce0dc; }
.transcript-toolbar { padding: 24px 25px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.transcript-toolbar .section-kicker { font-size: 8px; margin-bottom: 6px; }
.filter-label { color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 9px; }
select { padding: 8px 30px 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: white; color: #4f5951; max-width: 210px; font-size: 11px; }
.transcript-list { padding: 6px 25px; max-height: 650px; overflow-y: auto; }
.transcript-row { display: grid; grid-template-columns: 60px 1fr; gap: 15px; padding: 20px 0; border-bottom: 1px solid #f0f2ed; }
.transcript-row:last-child { border: none; }
.timestamp { color: #7b847b; font-size: 10px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.speaker-tag { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 10px; font-weight: 550; margin-bottom: 6px; max-width: 100%; overflow-wrap: anywhere; }
.transcript-text { font-size: 13px; line-height: 1.9; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.transcript-footer { padding: 18px 25px; display: flex; align-items: center; justify-content: space-between; gap: 13px; border-top: 1px solid var(--border); }
.transcript-footer .muted { font-size: 10px; margin: 0; }
.export-actions { display: flex; gap: 8px; }
.export-hint { font-size: 10px; color: var(--muted); text-align: right; margin: -6px 25px 15px; }
.next-step { margin-top: 22px; padding: 25px; display: flex; align-items: center; justify-content: space-between; gap: 25px; background: #f5f7f3; }
.next-step .section-kicker { font-size: 9px; margin-bottom: 7px; }
.next-step h2 { font-size: 16px; }
.next-step .muted { font-size: 11px; max-width: 460px; }
.next-step .button { flex-shrink: 0; opacity: .65; font-size: 11px; gap: 12px; }
.soon { font-size: 9px; border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; color: var(--muted); }
.notes-generator { display: block; }
.notes-form { display: grid; gap: 9px; margin-top: 20px; }
.notes-form > label:not(.consent) { font-size: 12px; color: var(--muted); }
.notes-form textarea { width: 100%; resize: vertical; padding: 11px; border: 1px solid var(--border); border-radius: 7px; background: white; color: inherit; }
.notes-form .consent { margin: 8px 0; }
.notes-form .button { justify-self: start; opacity: 1; }
.notes-error { color: #8d4033; font-size: 12px; }
.notes-panel { margin-top: 22px; }
.notes-actions { padding: 18px 25px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.markdown-preview, .notes-editor-container { padding: 24px 25px; overflow-wrap: anywhere; }
.markdown-preview h1 { font-size: 25px; line-height: 1.3; letter-spacing: -.8px; }
.markdown-preview h2, .editor-preview h2 { margin: 24px 0 10px; }
.markdown-preview table, .editor-preview table { border-collapse: collapse; display: block; overflow-x: auto; }
.markdown-preview th, .markdown-preview td { padding: 7px 10px; border: 1px solid var(--border); }
.markdown-preview a, .editor-preview a { color: var(--green); text-decoration: underline; }
.markdown-preview pre { white-space: pre-wrap; background: #f5f7f3; padding: 12px; }
.notes-editor-container .CodeMirror { border-color: var(--border); border-radius: 0 0 7px 7px; font-size: 13px; line-height: 1.8; color: #202321; }
.notes-editor-container .editor-toolbar { border-color: var(--border); background: #f8f9f7; border-radius: 7px 7px 0 0; }
.notes-editor-container .editor-toolbar button { font: inherit; font-size: 11px; color: #4c554d; }
.notes-editor-container .editor-preview { background: white; }
.notes-editor-container .CodeMirror-focused { outline: 2px solid #83ae98; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; max-width: 650px; margin: 39px auto 30px; padding-top: 20px; border-top: 1px solid var(--border); color: #899085; font-size: 10px; }
.site-footer span:first-child { color: #6b7468; font-weight: 550; }
.feedback { color: #426849; text-align: center; font-size: 12px; min-height: 20px; margin: 20px 0 0; }
@media (max-width: 700px) {
  .site-header { height: 69px; padding: 0 22px; }
  .workspace { padding: 0 18px; }
  .hero { padding: 45px 0 25px; }
  .hero h1 { letter-spacing: -1.8px; }
  .hero-copy { font-size: 13px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  .upload-panel { padding: 23px 20px 21px; }
  .panel-heading h2 { font-size: 15px; }
  .dropzone { min-height: 210px; }
  .file-details strong { max-width: 160px; }
  .results { padding-top: 32px; }
  .results-header { align-items: flex-start; flex-direction: column; gap: 15px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics > div { padding: 16px; }
  .metrics > div:nth-child(2) { border-right: 0; }
  .metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .metrics strong { font-size: 17px; }
  .speakers-panel, .next-step { padding: 21px 19px; }
  .transcript-toolbar { align-items: flex-start; flex-direction: column; padding: 21px 19px; }
  .transcript-list { padding: 0 19px; max-height: 65vh; }
  .transcript-row { grid-template-columns: 44px 1fr; gap: 9px; }
  .transcript-footer { padding: 17px 19px; align-items: flex-start; flex-direction: column; }
  .export-actions { width: 100%; flex-wrap: wrap; }
  .export-actions .button { flex-grow: 1; font-size: 11px; }
  .export-hint { text-align: left; margin: 0 19px 17px; }
  .next-step { align-items: flex-start; flex-direction: column; gap: 17px; }
  .site-footer { font-size: 9px; gap: 10px; }
  .site-footer span:last-child { text-align: right; max-width: 190px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
