:root {
  font-family: 'DM Sans', Inter, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #172027;
  background: #f5f6f7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #172027;
  --muted: #8b959b;
  --line: #e9ecee;
  --panel: #fff;
  --mint: #20b890;
  --teal: #087d6f;
  --navy: #132e34;
  --coral: #e68475;
  --violet: #9478c9;
  --blue: #6e9bd7;
  --mono: 'DM Mono', 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 360px; min-height: 100vh; background: #f5f6f7; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #8de0ca; outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; flex-direction: column; width: 246px; padding: 28px 16px 16px; color: #eef5f3; background: #142b31; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; margin-bottom: 48px; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; color: #12322e; background: #79dec4; box-shadow: 0 4px 14px #071b1d55; }
.brand-mark svg { width: 27px; height: 27px; }
.brand strong { display: block; font: 800 20px/1 Manrope, sans-serif; letter-spacing: -.8px; }
.brand small { display: block; margin-top: 5px; color: #799196; font: 500 8px/1 var(--mono); letter-spacing: 1.1px; }
.workspace-label { display: flex; justify-content: space-between; align-items: center; padding: 0 10px; color: #82969a; font: 500 10px/1.2 var(--mono); letter-spacing: .6px; text-transform: uppercase; }
.nav-list { display: grid; gap: 5px; margin: 12px 0 25px; }
.nav-item { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 8px; color: #9bb0b2; font-size: 12px; transition: .2s ease; }
.nav-item:hover { color: #eef5f3; background: #1b3a40; }
.nav-item.active { color: #e9fff8; background: #21463f; box-shadow: inset 2px 0 #69d7b6; }
.nav-icon { width: 16px; text-align: center; color: #82cdb9; font-size: 17px; line-height: 1; }
.sidebar-divider { height: 1px; margin: 0 4px 23px; background: #294146; }
.recent-label { margin-bottom: 11px; }
.text-button { padding: 0; border: 0; background: transparent; color: #758d91; font-size: 10px; cursor: pointer; }
.text-button:hover { color: #d4e8e4; }
.recent-item { display: flex; align-items: center; width: 100%; gap: 9px; padding: 10px 7px; border: 0; border-radius: 8px; color: #d8e3e2; background: #1a373c; text-align: left; cursor: pointer; }
.recent-file-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: #81dfc4; background: #29544f; font-size: 15px; }
.recent-copy { min-width: 0; flex: 1; }
.recent-copy strong, .recent-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-copy strong { font-size: 10px; font-weight: 600; }
.recent-copy small { margin-top: 4px; color: #91a7a8; font-size: 9px; }
.recent-dot { width: 5px; height: 5px; border-radius: 50%; background: #55d2aa; }
.recent-empty { padding: 12px 10px; color: #819598; font-size: 10px; }
.sidebar-spacer { flex: 1; min-height: 30px; }
.privacy-card { display: flex; gap: 10px; padding: 12px 10px; border: 1px solid #2a4949; border-radius: 9px; background: #19373a; }
.privacy-icon { color: #6cdec1; font-size: 18px; }
.privacy-card strong { display: block; color: #cae9df; font-size: 10px; font-weight: 600; }
.privacy-card p { margin: 5px 0 0; color: #90aaa7; font-size: 9px; line-height: 1.55; }
.profile-row { display: flex; align-items: center; gap: 9px; padding: 16px 4px 2px; }
.avatar, .mini-avatar, .speaker-avatar { display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; font-weight: 600; }
.avatar { width: 30px; height: 30px; color: #183338; background: #bfdccf; font-size: 11px; }
.profile-copy { flex: 1; }
.profile-copy strong, .profile-copy small { display: block; }
.profile-copy strong { font-size: 10px; font-weight: 600; }
.profile-copy small { margin-top: 3px; color: #8da2a4; font-size: 9px; }
.more-button { border: 0; color: #91a6a6; background: transparent; cursor: pointer; letter-spacing: 1px; }

.main-area { width: calc(100% - 246px); min-width: 0; margin-left: 246px; }
.topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; border-bottom: 1px solid #e9ecec; background: #fafbfb; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #929da2; font-size: 11px; }
.breadcrumbs i { color: #c2c9ca; font-style: normal; }
.breadcrumbs strong { color: #26343a; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.secure-pill { display: inline-flex; align-items: center; gap: 6px; color: #66777c; font-size: 10px; }
.secure-dot { width: 6px; height: 6px; border-radius: 50%; background: #26b28b; box-shadow: 0 0 0 3px #e1f5ee; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 7px; font-size: 11px; font-weight: 600; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: progress; opacity: .7; transform: none; }
.button-small { min-height: 33px; padding: 0 12px; font-size: 10px; }
.button-dark { color: #effbf7; background: #19383d; }
.button-dark:hover { background: #24504f; }
.button-plus { font-size: 15px; line-height: 1; }
.page-content { max-width: 1500px; padding: 38px 42px 24px; margin: 0 auto; }
.hero-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.eyebrow, .section-kicker { color: #90a0a0; font: 500 9px/1.2 var(--mono); letter-spacing: 1.25px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: #458e7f; }
.eyebrow-line { width: 17px; height: 1px; background: #5ac8a7; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; color: #1b292d; font: 700 clamp(23px, 2.5vw, 30px)/1.2 Manrope, 'PingFang SC', sans-serif; letter-spacing: -.8px; }
.hero-subtitle { margin: 0; color: #8b969a; font-size: 12px; }
.hero-actions { display: flex; align-items: end; gap: 10px; }
.select-wrap { position: relative; display: grid; gap: 4px; min-width: 115px; padding: 0 25px 0 10px; color: #889397; font-size: 9px; }
.select-wrap select { width: 100%; appearance: none; border: 0; outline: 0; color: #39484c; background: transparent; font-size: 10px; cursor: pointer; }
.select-caret { position: absolute; right: 10px; bottom: 1px; color: #758488; pointer-events: none; }
.button-primary { color: #fff; background: #137f70; box-shadow: 0 4px 11px #167f7026; }
.button-primary:hover { background: #0e6d61; box-shadow: 0 6px 15px #167f7030; }
.sparkle { color: #91eed4; font-size: 13px; }
.status-banner { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 12px; margin-bottom: 18px; border: 1px solid #dcece6; border-radius: 7px; color: #6c7e7c; background: #f2f9f6; font-size: 10px; }
.status-banner strong { color: #387d6c; font-weight: 600; }
.status-banner.banner-error { border-color: #f0dfd6; color: #856550; background: #fff8f3; }
.status-banner.banner-error strong { color: #a45e40; }
.status-banner.banner-error .status-icon { background: #d58b6e; }
.status-icon { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; color: #fff; background: #69b89b; font: 600 9px Georgia, serif; }
.banner-close { margin-left: auto; border: 0; color: #94aaa3; background: transparent; font-size: 17px; cursor: pointer; }
.banner-close:hover { color: #49655f; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 17px; }
.metric-card { min-height: 116px; padding: 15px 17px 13px; border: 1px solid #e8ebed; border-radius: 9px; background: #fff; box-shadow: 0 2px 7px #1e3e4010; }
.metric-card.accent-card { background: #f9fcfb; }
.metric-label { display: flex; align-items: center; justify-content: space-between; color: #849094; font-size: 10px; }
.metric-icon { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; color: #4ca68e; background: #e9f7f1; font-size: 13px; }
.word-icon { font-size: 9px; font-weight: 600; }
.people-icon { color: #937ac4; background: #f1edf8; }
.silence-icon { color: #cb9471; background: #fbf2eb; }
.metric-value { margin-top: 6px; color: #243236; font: 700 24px/1.05 Manrope, 'DM Sans', sans-serif; letter-spacing: -.7px; }
.metric-unit { margin-left: 3px; color: #849094; font-size: 11px; font-weight: 500; letter-spacing: 0; }
.metric-foot { display: flex; align-items: center; gap: 6px; min-height: 17px; margin-top: 8px; color: #9aa4a7; font-size: 9px; }
.metric-foot-dot { width: 5px; height: 5px; border-radius: 50%; background: #65a3d0; }
.metric-foot-dot.mint { background: #49bf96; }
.speaker-foot { gap: 0; }
.mini-avatar { width: 18px; height: 18px; margin-right: -4px; border: 2px solid #fff; font-size: 8px; }
.mini-coral { color: #815249; background: #f2c2b7; }
.mini-violet { color: #604f83; background: #d7c9ed; }
.mini-blue { color: #416b9c; background: #c8d9ed; }
.speaker-names { margin-left: 8px; }

.analysis-layout { display: grid; grid-template-columns: minmax(0, 1fr) 304px; align-items: start; gap: 15px; }
.left-column, .right-column { display: grid; min-width: 0; gap: 15px; }
.panel { border: 1px solid #e8ebed; border-radius: 9px; background: #fff; box-shadow: 0 2px 7px #1e3e400c; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.waveform-panel { padding: 16px 18px 12px; }
.recording-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.recording-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; color: #1c917a; background: #e9f8f2; }
.recording-icon svg { width: 19px; height: 19px; }
.recording-title h2 { margin: 0; color: #283639; font-size: 12px; font-weight: 600; }
.recording-title p { margin: 4px 0 0; color: #9aa4a7; font-size: 9px; }
.recording-actions { position: relative; display: flex; align-items: center; gap: 4px; }
.demo-badge { padding: 4px 7px; border: 1px solid #deeee8; border-radius: 12px; color: #4d947f; background: #f3faf7; font-size: 9px; }
.demo-badge.hidden { display: none; }
.icon-button, .subtle-icon { display: grid; place-items: center; width: 27px; height: 27px; border: 0; border-radius: 6px; color: #879498; background: transparent; font-size: 16px; cursor: pointer; }
.icon-button:hover, .subtle-icon:hover { color: #1b7168; background: #f0f7f4; }
.export-menu { position: absolute; top: 31px; right: 24px; z-index: 3; width: 155px; padding: 5px; border: 1px solid #e7eceb; border-radius: 8px; background: #fff; box-shadow: 0 10px 24px #1c36391a; }
.export-menu button { display: block; width: 100%; padding: 9px 8px; border: 0; border-radius: 5px; color: #526166; background: transparent; text-align: left; font-size: 10px; cursor: pointer; }
.export-menu button:hover { color: #146d5f; background: #eff8f4; }
.waveform-wrap { display: grid; grid-template-columns: 29px minmax(0,1fr); gap: 0; height: 124px; margin: 16px 3px 0 0; }
.waveform-y-labels { display: flex; flex-direction: column; justify-content: space-between; height: 110px; padding: 0 4px 3px 0; color: #aab3b5; font: 8px/1 var(--mono); }
.waveform-stage { position: relative; height: 110px; border-bottom: 1px solid #e5e9e9; background-image: linear-gradient(to bottom, transparent 32%, #edf0f0 33%, transparent 34%, transparent 66%, #edf0f0 67%, transparent 68%); }
.waveform-ticks { position: absolute; inset: 0 0 auto; z-index: 2; display: flex; justify-content: space-between; color: #a0aaac; font: 8px/1 var(--mono); pointer-events: none; }
#waveformCanvas { position: absolute; inset: 13px 0 0; width: 100%; height: 92px; }
.waveform-markers { position: absolute; inset: 13px 0 0; z-index: 1; pointer-events: none; }
.wave-marker { position: absolute; top: 0; bottom: 0; border-left: 1px dashed #fff; opacity: .8; }
.playhead { position: absolute; z-index: 3; top: 12px; bottom: 0; left: 0; width: 1px; background: #213d3c; pointer-events: none; transition: left .12s linear; }
.playhead span { position: absolute; top: -2px; left: -3px; width: 7px; height: 7px; border: 1.5px solid #fff; border-radius: 50%; background: #188a75; box-shadow: 0 0 0 1px #188a75; }
.waveform-overlay { position: absolute; inset: 14px 0 0; z-index: 2; display: grid; place-items: center; color: #8b9b9d; background: #f6f8f8dd; font-size: 10px; }
.timeline-control { display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.play-button { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; border: 0; border-radius: 50%; color: #fff; background: #173c3c; cursor: pointer; }
.play-button:hover { background: #187e6b; }
.play-glyph { margin-left: 2px; font-size: 9px; }
.time-label { min-width: 37px; color: #516064; font: 9px/1 var(--mono); }
.time-label.muted { color: #a1aaac; text-align: right; }
.timeline-range { width: 100%; height: 3px; margin: 0; appearance: none; border-radius: 8px; background: linear-gradient(90deg,#168d76 0%,#168d76 0%,#e6ebea 0%,#e6ebea 100%); cursor: pointer; }
.timeline-range::-webkit-slider-thumb { width: 9px; height: 9px; appearance: none; border: 2px solid #fff; border-radius: 50%; background: #137b6a; box-shadow: 0 0 0 1px #137b6a; }
.timeline-range::-moz-range-thumb { width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: #137b6a; box-shadow: 0 0 0 1px #137b6a; }
.speed-button { width: 32px; padding: 4px 0; border: 0; border-radius: 5px; color: #68777a; background: #f4f6f6; font: 9px var(--mono); cursor: pointer; }
.speed-button:hover { color: #167666; background: #eaf6f1; }
.waveform-legend { display: flex; align-items: center; gap: 14px; padding: 12px 0 0 39px; color: #899598; font-size: 8px; }
.waveform-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-swatch { width: 6px; height: 6px; border-radius: 2px; }
.speaker-one { background: #da937f; }.speaker-two { background: #9a83ca; }.speaker-three { background: #76a4db; }
.legend-hint { margin-left: auto; color: #a5adaf; }

.transcript-panel { overflow: hidden; }
.transcript-heading { min-height: 74px; padding: 15px 18px; border-bottom: 1px solid #edf0f1; }
.section-heading { display: flex; align-items: center; gap: 10px; }
.section-heading h2, .compact-heading h2 { margin: 5px 0 0; color: #27363a; font-size: 13px; font-weight: 600; }
.count-pill { padding: 4px 7px; border-radius: 12px; color: #77918a; background: #f1f7f4; font-size: 9px; }
.transcript-tools { display: flex; align-items: center; gap: 7px; }
.search-box { display: flex; align-items: center; gap: 5px; width: 160px; height: 30px; padding: 0 7px; border: 1px solid #e7ebec; border-radius: 6px; color: #94a0a2; }
.search-box > span { font-size: 15px; }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; color: #34464a; background: transparent; font-size: 9px; }
.search-box input::placeholder { color: #a9b1b3; }
.search-box kbd { padding: 2px 3px; border: 1px solid #e9eded; border-radius: 3px; color: #adb5b7; font: 7px var(--mono); white-space: nowrap; }
.filter-wrap { position: relative; display: flex; align-items: center; width: 110px; height: 30px; padding: 0 8px; border: 1px solid #e7ebec; border-radius: 6px; color: #718084; }
.filter-wrap select { width: 100%; appearance: none; border: 0; outline: 0; color: inherit; background: transparent; font-size: 9px; cursor: pointer; }
.filter-wrap span { position: absolute; right: 7px; color: #9aa5a7; font-size: 12px; pointer-events: none; }
.segment-table-head { display: grid; grid-template-columns: 116px minmax(0,1fr) 110px; gap: 10px; padding: 10px 18px; border-bottom: 1px solid #f0f2f2; color: #a0aaac; font-size: 8px; }
.segment-table-head span:last-child { text-align: right; }
.segment-list { min-height: 160px; }
.segment-row { display: grid; grid-template-columns: 116px minmax(0,1fr) 110px; gap: 10px; padding: 13px 18px 12px; border-bottom: 1px solid #f1f3f3; transition: background .15s ease; cursor: pointer; }
.segment-row:hover { background: #fbfdfc; }
.segment-row.active { background: #f4faf7; box-shadow: inset 2px 0 #33aa8c; }
.segment-meta { min-width: 0; }
.segment-time { color: #738185; font: 9px/1.2 var(--mono); white-space: nowrap; }
.segment-speaker { display: flex; align-items: center; gap: 5px; margin-top: 7px; color: #889497; font-size: 8px; }
.speaker-dot { width: 6px; height: 6px; border-radius: 50%; }
.segment-text { align-self: center; color: #49575a; font-size: 10px; line-height: 1.65; }
.segment-text mark { padding: 0 1px; color: inherit; background: #e5f3d6; }
.segment-metrics { display: flex; flex-wrap: wrap; justify-content: end; align-content: center; gap: 4px; }
.segment-chip { padding: 4px 5px; border-radius: 4px; color: #7e8a8d; background: #f4f6f6; font: 8px/1 var(--mono); white-space: nowrap; }
.segment-chip.good { color: #4a9a80; background: #eff8f4; }
.segment-chip.caution { color: #b98055; background: #fbf4ed; }
.segment-chip svg { width: 8px; height: 8px; vertical-align: -1px; }
.empty-search { padding: 24px 18px; color: #9aa5a7; text-align: center; font-size: 10px; }
.transcript-footer { display: flex; align-items: center; justify-content: space-between; padding: 11px 18px; color: #a2adaf; font-size: 8px; }
.transcript-footer > span { display: flex; align-items: center; gap: 5px; }
.confidence-dot { width: 5px; height: 5px; border-radius: 50%; background: #73b79f; }
.show-all-button { padding: 0; border: 0; color: #367e70; background: transparent; font-size: 9px; cursor: pointer; }
.show-all-button:hover { color: #145e53; }
.show-all-button span { margin-left: 4px; }

.right-column { grid-template-columns: 1fr; }
.insight-panel, .segment-detail-panel, .speakers-panel { padding: 16px; }
.compact-heading { align-items: start; }
.compact-heading h2 { font-size: 12px; }
.subtle-icon { width: 23px; height: 23px; border: 1px solid #ebeff0; border-radius: 50%; font: 11px Georgia, serif; }
.insight-rows { display: grid; gap: 15px; margin-top: 20px; }
.insight-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 10px; }
.insight-name { display: flex; align-items: center; gap: 7px; color: #788589; font-size: 9px; }
.insight-indicator { width: 7px; height: 7px; border-radius: 2px; }
.ind-blue { background: #75a5d4; }.ind-green { background: #55bc94; }.ind-amber { background: #d6a16f; }
.insight-row strong { color: #344246; font: 600 11px var(--mono); }
.insight-row strong small { color: #899497; font: 8px 'DM Sans', sans-serif; }
.mini-bar, .pace-meter, .volume-meter { position: relative; grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 6px; background: #edf1f1; }
.mini-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg,#4cb99b,#97d7ba); }
.pace-meter { height: 3px; overflow: visible; background: linear-gradient(90deg,#dcece7,#85ceae 50%,#e6d9b8); }
.pace-marker { position: absolute; top: -3px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: #247d6c; box-shadow: 0 0 0 1px #247d6c; }
.volume-meter { background: linear-gradient(90deg,#ecf1ee,#f2e9dc); }
.volume-meter i { display: block; height: 100%; border-radius: 6px; background: #d7a46e; }
.insight-footnote { display: flex; align-items: start; gap: 7px; padding: 10px 9px; margin-top: 17px; border-radius: 6px; color: #8c9698; background: #f7f9f9; font-size: 8px; line-height: 1.5; }
.info-circle { display: grid; place-items: center; width: 12px; height: 12px; flex: 0 0 auto; border: 1px solid #aab7b6; border-radius: 50%; font: 8px Georgia,serif; }
.detail-tag { padding: 4px 6px; border: 1px solid #e8efec; border-radius: 5px; color: #73847f; background: #f7faf8; font: 8px var(--mono); }
.detail-speaker { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.speaker-avatar { width: 29px; height: 29px; font-size: 10px; }
.speaker-one-bg { color: #7d4c42; background: #f4d0c5; }.speaker-two-bg { color: #5d4b7f; background: #e0d5f1; }.speaker-three-bg { color: #3c6693; background: #d4e1f0; }.speaker-neutral-bg { color: #68757a; background: #e4e9e9; }
.detail-speaker strong, .detail-speaker small { display: block; }
.detail-speaker strong { color: #405054; font-size: 9px; font-weight: 600; }
.detail-speaker small { margin-top: 3px; color: #9da7a9; font-size: 8px; }
.copy-button { width: 25px; height: 25px; margin-left: auto; border: 1px solid #edf0f0; border-radius: 5px; color: #899598; background: #fff; cursor: pointer; }
.copy-button:hover { color: #1c8070; background: #f2faf6; }
.detail-quote { padding: 10px 0 11px; border-bottom: 1px solid #eef1f1; color: #4c5a5e; font-size: 10px; line-height: 1.65; }
.detail-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 10px; padding: 13px 0; }
.detail-stats div span, .detail-stats div strong { display: block; }
.detail-stats div span { margin-bottom: 5px; color: #9aa4a6; font-size: 8px; }
.detail-stats div strong { color: #58666a; font: 9px var(--mono); white-space: nowrap; }
.detail-stats div strong small { color: #9aa4a6; font: 8px 'DM Sans', sans-serif; }
.detail-foot { display: flex; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid #eef1f1; color: #83918f; font-size: 8px; }
.quality-indicator { width: 6px; height: 6px; border-radius: 50%; background: #59b490; }
.detail-foot button { padding: 0; margin-left: auto; border: 0; color: #4e9181; background: transparent; font-size: 8px; cursor: pointer; }
.sort-button { padding: 4px 6px; border: 1px solid #ecf0ef; border-radius: 5px; color: #8b989a; background: #fff; font-size: 8px; cursor: pointer; }
.sort-button span { margin-left: 4px; }
.speaker-list { display: grid; gap: 12px; margin-top: 17px; }
.speaker-entry { display: grid; grid-template-columns: 27px minmax(0,1fr) auto; align-items: center; gap: 8px; }
.speaker-entry .speaker-avatar { width: 26px; height: 26px; font-size: 9px; }
.speaker-entry-name { min-width: 0; }
.speaker-entry-name strong, .speaker-entry-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.speaker-entry-name strong { color: #536165; font-size: 9px; font-weight: 600; }
.speaker-entry-name small { margin-top: 3px; color: #a1abad; font-size: 8px; }
.speaker-entry-stat { color: #657478; font: 8px var(--mono); text-align: right; }
.speaker-entry-stat small { display: block; margin-top: 4px; color: #a3adaf; font: 8px 'DM Sans',sans-serif; }
.speaker-progress { grid-column: 2 / -1; height: 3px; margin-top: -3px; overflow: hidden; border-radius: 5px; background: #f0f2f2; }
.speaker-progress i { display: block; height: 100%; border-radius: inherit; }
.speaker-total { display: flex; justify-content: space-between; padding-top: 11px; margin-top: 13px; border-top: 1px solid #eef1f1; color: #929ea0; font-size: 8px; }
.speaker-total strong { color: #59676b; font: 9px var(--mono); }
.page-footer { display: flex; justify-content: space-between; padding: 22px 2px 0; color: #a4aeaf; font-size: 8px; }
.page-footer > span:last-child { display: flex; align-items: center; gap: 5px; }
.page-footer a { color: #758d87; }
.page-footer a:hover { color: #197565; }
.footer-separator { color: #c4cbcb; }
.model-status-dot { width: 5px; height: 5px; border-radius: 50%; background: #d6a66f; }
.model-status-dot.connected { background: #4eb38f; }
.toast { position: fixed; right: 26px; bottom: 24px; z-index: 10; max-width: min(420px, calc(100vw - 32px)); padding: 12px 15px; border: 1px solid #dce9e5; border-radius: 8px; color: #31564e; background: #f7fffb; box-shadow: 0 12px 30px #152d2c1f; font-size: 11px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { border-color: #f0dfd6; color: #825545; background: #fffaf7; }

@media (min-width: 1450px) {
  .page-content { padding-right: 54px; padding-left: 54px; }
  .analysis-layout { grid-template-columns: minmax(0,1fr) 328px; gap: 18px; }
  .metric-card { padding-right: 20px; padding-left: 20px; }
}
@media (max-width: 1180px) {
  .sidebar { width: 218px; }
  .main-area { width: calc(100% - 218px); margin-left: 218px; }
  .topbar { padding: 0 28px; }
  .page-content { padding: 32px 28px 22px; }
  .analysis-layout { grid-template-columns: minmax(0,1fr) 275px; gap: 12px; }
  .segment-table-head, .segment-row { grid-template-columns: 98px minmax(0,1fr) 92px; gap: 7px; }
  .search-box { width: 132px; }
}
@media (max-width: 980px) {
  .sidebar { width: 70px; align-items: center; padding: 20px 10px; }
  .brand { justify-content: center; padding: 0; margin-bottom: 38px; }
  .brand > span:last-child, .workspace-label, .nav-item:not(.active)::after, .nav-item { font-size: 0; }
  .nav-list { width: 100%; }
  .nav-item { justify-content: center; gap: 0; padding: 0; }
  .nav-icon { font-size: 17px; }
  .sidebar-divider, .recent-item, .recent-empty, .privacy-card, .profile-copy, .more-button { display: none; }
  .recent-label { width: 28px; height: 1px; padding: 0; margin: 2px 0 12px; background: #294146; font-size: 0; }
  .profile-row { margin-top: auto; padding: 16px 0 0; }
  .main-area { width: calc(100% - 70px); margin-left: 70px; }
  .analysis-layout { grid-template-columns: minmax(0,1fr); }
  .right-column { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .speakers-panel { grid-column: 1 / -1; }
  .speaker-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .speaker-total { margin-top: 13px; }
}
@media (max-width: 680px) {
  body { min-width: 360px; }
  .sidebar { width: 54px; padding: 16px 7px; }
  .brand-mark { width: 33px; height: 33px; border-radius: 9px; }
  .brand-mark svg { width: 24px; }
  .nav-list { gap: 5px; }
  .main-area { width: calc(100% - 54px); margin-left: 54px; }
  .topbar { height: 56px; padding: 0 14px; }
  .topbar-actions { gap: 10px; }
  .secure-pill { display: none; }
  .button-small { min-height: 30px; }
  .page-content { padding: 26px 14px 20px; }
  .hero-row { display: block; }
  h1 { font-size: 23px; }
  .hero-subtitle { max-width: 310px; font-size: 10px; line-height: 1.6; }
  .hero-actions { justify-content: space-between; margin-top: 19px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .metric-card { min-height: 100px; padding: 12px; }
  .metric-value { font-size: 22px; }
  .metric-foot { font-size: 8px; }
  .analysis-layout { gap: 10px; }
  .left-column, .right-column { gap: 10px; }
  .waveform-panel { padding: 13px 12px 10px; }
  .recording-icon { width: 30px; height: 30px; }
  .recording-title h2 { max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
  .recording-title p { font-size: 8px; }
  .waveform-wrap { grid-template-columns: 22px minmax(0,1fr); height: 112px; margin-top: 14px; }
  .waveform-y-labels { height: 100px; font-size: 7px; }
  .waveform-stage { height: 100px; }
  #waveformCanvas { height: 82px; }
  .waveform-markers, .playhead { bottom: 0; }
  .waveform-ticks { font-size: 7px; }
  .waveform-legend { gap: 8px; padding-left: 28px; font-size: 7px; }
  .legend-hint { display: none !important; }
  .transcript-heading { align-items: start; flex-direction: column; gap: 12px; padding: 13px 12px; }
  .transcript-tools { width: 100%; }
  .search-box { flex: 1; width: auto; }
  .filter-wrap { width: 106px; }
  .segment-table-head { display: none; }
  .segment-row { grid-template-columns: 82px minmax(0,1fr); gap: 4px 8px; padding: 12px; }
  .segment-meta { grid-row: span 2; }
  .segment-time { font-size: 8px; }
  .segment-text { font-size: 9px; }
  .segment-metrics { justify-content: start; grid-column: 2; }
  .segment-chip { padding: 4px; font-size: 7px; }
  .transcript-footer { gap: 9px; padding: 10px 12px; font-size: 7px; }
  .show-all-button { font-size: 8px; white-space: nowrap; }
  .right-column { grid-template-columns: 1fr; }
  .speakers-panel { grid-column: auto; }
  .speaker-list { grid-template-columns: 1fr; }
  .page-footer { gap: 10px; flex-direction: column; padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

html { font-size: 16px; }
html:lang(en) body { font-family: 'DM Sans', Inter, system-ui, sans-serif; }
body :is(button,label,input,select,textarea,p,small,.workspace-label,.nav-item,.recent-copy strong,.recent-copy small,.metric-label,.metric-foot,.recording-title p,.waveform-legend,.waveform-overlay,.segment-table-head,.segment-speaker,.segment-text,.segment-chip,.transcript-footer,.insight-name,.insight-footnote,.detail-quote,.detail-stats,.speaker-entry-name small,.speaker-entry-stat,.page-footer) { font-size: max(11px, 1em); }
.locale-toggle { min-height: 32px; padding: 0 10px; border: 1px solid #d8e2df; border-radius: 7px; color: #216f63; background: #f3faf7; font-size: 11px; font-weight: 700; cursor: pointer; }
.locale-toggle:hover { background: #e7f6f0; }
@media(max-width: 760px) { .locale-toggle { min-height: 30px; padding: 0 8px; } .topbar-actions { gap: 9px; } }
