:root {
  --bg: #f4f6f8;
  --surface: #fff;
  --ink: #17242c;
  --muted: #60717b;
  --border: #dce4e9;
  --accent: #067a78;
  --accent-dark: #045e5c;
  --accent-soft: #e5f4f2;
  --danger: #b33c37;
  --warning: #98601d;
  --success: #28684c;
  --radius: 12px;
  font-synthesis: none;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.55 Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #0c9290;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--accent);
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.025em;
}
h1 {
  font-size: 52px;
  font-weight: 650;
}
h2 {
  font-size: 29px;
  font-weight: 650;
}
h3 {
  font-size: 18px;
  font-weight: 650;
}
p {
  color: var(--muted);
}
small {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 36px;
  gap: 26px;
}
.brand {
  display: flex;
  flex-shrink: 0;
  white-space: nowrap;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.6px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 27px;
  height: 28px;
}
.brand-mark i {
  width: 4px;
  background: var(--accent);
  border-radius: 3px;
  height: 14px;
}
.brand-mark i:nth-child(2) {
  height: 26px;
}
.brand-mark i:nth-child(3) {
  height: 21px;
}
.brand-mark i:nth-child(4) {
  height: 10px;
}
.top-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--muted);
  border-left: 1px solid var(--border);
  padding-left: 24px;
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
}
.top-actions button {
  white-space: nowrap;
  flex-shrink: 0;
}
main {
  max-width: 1380px;
  margin: auto;
  padding: 0 36px;
}
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}
.access-panel {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 10%;
  max-width: 1100px;
  margin: auto;
}
.access-copy p {
  font-size: 20px;
  line-height: 1.7;
  margin-top: 24px;
}
.access-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.access-specs span {
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 7px 11px;
  color: var(--muted);
}
.access-form {
  background: #fff;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px #17242c06;
}
.access-form h2 {
  font-size: 24px;
}
.access-form p {
  margin: 12px 0 24px;
  font-size: 14px;
}
.access-form label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin: 18px 0 7px;
}
.access-form .button {
  margin: 24px 0 15px;
}
.error {
  color: var(--danger) !important;
  font-size: 13px !important;
  margin: 12px 0 0 !important;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  border: 1px solid #cdd8de;
  border-radius: 8px;
  background: #fff;
  padding: 11px 13px;
  color: var(--ink);
  min-height: 44px;
}
input::placeholder,
textarea::placeholder {
  color: #82919a;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.button {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 17px;
  font-size: 13px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition:
    background 0.15s,
    color 0.15s;
}
.button.primary {
  background: var(--accent);
  color: #fff;
}
.button.primary:hover {
  background: var(--accent-dark);
}
.button.secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--ink);
}
.button.secondary:hover {
  background: var(--bg);
}
.button.quiet {
  background: transparent;
  color: var(--muted);
}
.button.quiet:hover {
  background: #e9eef1;
}
.button.wide {
  width: 100%;
  justify-content: space-between;
}
.button.danger {
  background: #fbeeed;
  color: var(--danger);
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 44px;
  padding: 8px;
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--border);
  height: 68px;
  align-items: stretch;
}
.tab {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 0 2px;
  font-size: 13px;
  font-weight: 650;
  position: relative;
}
.tab.active {
  color: var(--ink);
}
.tab.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
}
.count {
  background: #e5ebef;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 10px;
  margin-left: 5px;
}
.status-line {
  font-size: 13px;
  min-height: 34px;
  padding-top: 14px;
  color: var(--accent);
}
.view {
  padding: 22px 0 48px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading p {
  margin-top: 10px;
  font-size: 14px;
}
.limit-pill {
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 30px;
  white-space: nowrap;
}
.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}
.surface {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.upload-surface {
  padding: 24px;
}
.drop-zone {
  width: 100%;
  min-height: 260px;
  border: 1.5px dashed #bcced2;
  border-radius: 9px;
  background: #fbfcfd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  gap: 9px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.drop-zone:hover,
.drop-zone.dragover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.drop-zone strong {
  font-size: 17px;
  color: var(--ink);
  font-weight: 600;
}
.drop-zone > span:not(.upload-arrow) {
  font-size: 13px;
}
.drop-zone small {
  font-size: 11px;
  margin-top: 6px;
}
.upload-arrow {
  width: 43px;
  height: 43px;
  background: #eaf2f3;
  border-radius: 50%;
  font-size: 25px;
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}
.selected-list {
  max-height: 290px;
  overflow-y: auto;
}
.selected-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
}
.file-icon {
  font-size: 10px;
  letter-spacing: 0.05em;
  font-weight: 700;
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: 6px;
  background: #f7f9fa;
  color: var(--muted);
}
.selected-item .file-name {
  font-size: 13px;
  font-weight: 550;
  overflow-wrap: anywhere;
  flex: 1;
}
.selected-item .file-size {
  font-size: 11px;
  color: var(--muted);
}
.selection-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.settings-surface {
  padding: 24px;
}
.mode-switch {
  display: flex;
  background: #edf1f3;
  border-radius: 8px;
  padding: 4px;
  margin: 22px 0 16px;
  gap: 4px;
}
.mode {
  border: 0;
  flex: 1;
  min-height: 40px;
  background: transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
.mode.active {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 1px 4px #17242c12;
}
.settings-surface p {
  font-size: 13px;
  line-height: 1.65;
}
.setting {
  margin: 23px 0;
}
.setting label,
#speech-options > label:not(.check) {
  font-size: 12px;
  font-weight: 650;
  display: block;
  margin-bottom: 7px;
}
.setting label span {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  margin: 18px 0 8px;
  line-height: 1.6;
}
.settings-surface > .button {
  margin-top: 20px;
}
.quiet-note {
  font-size: 11px !important;
  line-height: 1.55 !important;
  margin-top: 13px;
}
.progress-panel {
  margin-top: 24px;
  padding: 22px 24px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.section-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 8px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.upload-row progress {
  grid-column: 1/-1;
  width: 100%;
  height: 6px;
  accent-color: var(--accent);
}
.upload-row strong {
  font-weight: 550;
  overflow-wrap: anywhere;
}
.upload-row span {
  text-align: right;
  color: var(--muted);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.metric {
  padding: 19px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.metric > span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 9px;
}
.metric > strong {
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.7px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.table-toolbar {
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.search-label {
  max-width: 350px;
  flex: 1;
}
.search-label input {
  background: #f8fafb;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
thead {
  background: #f8fafb;
}
th {
  padding: 13px 18px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}
td {
  padding: 16px 18px;
  font-size: 12px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
td:first-child {
  min-width: 210px;
  max-width: 360px;
}
td .record-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
  color: var(--ink);
}
td .subline {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 650;
  white-space: nowrap;
  background: #eef2f4;
  color: #5c6c75;
}
.badge.good {
  background: #e9f3ee;
  color: #28684c;
}
.badge.warn {
  background: #fbf1e3;
  color: #98601d;
}
.badge.bad {
  background: #fbeeed;
  color: #b33c37;
}
.badge.progress {
  background: #e6f2f4;
  color: #1c6a7b;
}
.table-footer {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.empty-state {
  padding: 65px 24px;
  text-align: center;
}
.empty-state p {
  margin-top: 10px;
  font-size: 13px;
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.help-grid article {
  padding: 28px;
}
.step-number {
  display: block;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 700;
}
.help-grid p {
  font-size: 14px;
  margin-top: 12px;
}
.help-note {
  padding: 28px;
  margin-top: 22px;
}
.help-note p {
  font-size: 14px;
  margin-top: 10px;
}
.footer {
  border-top: 1px solid var(--border);
  max-width: 1308px;
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
}
.footer > span:first-child {
  font-weight: 650;
}
.report-dialog {
  border: 0;
  border-radius: 14px;
  padding: 0;
  width: min(1100px, calc(100vw - 40px));
  max-height: calc(100vh - 50px);
  color: var(--ink);
  box-shadow: 0 24px 100px #17242c35;
  background: var(--bg);
}
.report-dialog::backdrop {
  background: #17242c65;
}
.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  padding: 24px 28px 20px;
}
.report-header h2 {
  font-size: 22px;
  overflow-wrap: anywhere;
}
.report-tabs {
  display: flex;
  gap: 22px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.report-tab {
  border: 0;
  background: none;
  min-height: 48px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.report-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.report-content {
  padding: 26px 28px;
  min-height: 300px;
  max-height: calc(100vh - 290px);
  overflow-y: auto;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.spec {
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
}
.spec-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.spec-value {
  font-size: 18px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.report-section {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 18px;
}
.report-section h3 {
  font-size: 15px;
  margin-bottom: 12px;
}
.report-section p {
  font-size: 13px;
}
.report-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}
.report-section canvas {
  width: 100%;
  height: 92px;
  display: block;
  border-radius: 5px;
  background: #f4f7f8;
  margin: 12px 0;
}
.event-chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  margin: 4px 5px 4px 0;
  min-height: 36px;
  color: var(--muted);
}
.event-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.transcript {
  line-height: 1.85;
  font-size: 15px;
  color: var(--ink);
  white-space: pre-wrap;
}
.word {
  border: 0;
  background: none;
  padding: 1px 3px;
  border-radius: 3px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.word:hover {
  background: var(--accent-soft);
}
.speaker-tag {
  font-size: 10px;
  color: var(--accent);
  font-weight: 650;
  display: block;
  margin: 14px 0 3px;
}
.player-shell {
  border-top: 1px solid var(--border);
  padding: 15px 28px;
  background: #fff;
  display: flex;
  gap: 18px;
  align-items: center;
}
.player-shell audio {
  height: 36px;
  flex: 1;
  min-width: 0;
}
.player-shell span {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.review-label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 8px;
}
details > summary {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
pre {
  font:
    11px/1.65 ui-monospace,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
  margin-top: 14px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1000px) {
  .upload-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .topbar {
    padding: 0 24px;
  }
  main {
    padding: 0 24px;
  }
  .access-panel {
    gap: 5%;
  }
  .footer {
    margin: 0 24px;
  }
  .top-label {
    display: none;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  main {
    padding: 0 18px;
  }
  .access-panel {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 38px 0;
    min-height: 0;
  }
  .access-copy h1 {
    font-size: 40px;
  }
  .access-copy p {
    font-size: 17px;
    line-height: 1.6;
    margin-top: 16px;
  }
  .access-specs {
    margin-top: 18px;
  }
  .access-form {
    padding: 24px;
  }
  .top-actions {
    font-size: 10px;
  }
  .tabs {
    gap: 22px;
    height: 60px;
  }
  .tab {
    font-size: 12px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .page-heading h2 {
    font-size: 25px;
  }
  .upload-layout {
    grid-template-columns: 1fr;
  }
  .upload-surface {
    padding: 16px;
  }
  .drop-zone {
    min-height: 210px;
  }
  .settings-surface {
    padding: 22px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric > strong {
    font-size: 23px;
  }
  .table-toolbar {
    padding: 14px;
    gap: 10px;
  }
  .table-toolbar .button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .help-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    margin: 0 18px;
    flex-direction: column;
    padding: 18px 0;
  }
  .report-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 10px;
  }
  .report-header {
    padding: 20px 18px 14px;
  }
  .report-header h2 {
    font-size: 18px;
  }
  .report-tabs {
    padding: 0 18px;
    gap: 18px;
  }
  .report-content {
    padding: 18px;
    max-height: calc(100vh - 245px);
  }
  .report-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .spec {
    padding: 14px;
  }
  .spec-value {
    font-size: 16px;
  }
  .player-shell {
    padding: 12px 14px;
  }
  .player-shell span {
    display: none;
  }
  .top-actions #identity-label {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
