@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Jersey 20";
  src: url("/fonts/jersey-20-v4-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f7f3ea;
  --surface: #fffdf8;
  --surface-2: #f0eadf;
  --fg: #151515;
  --fg-muted: #51616a;
  --line: #d5d0c4;
  --line-strong: #8a8478;
  --link: #0b3d2e;
  --brand: #0b3d2e;
  --primary: #ff5b3f;
  --primary-hover: #f04a2f;
  --on-primary: #151515;
  --success: #29d39b;
  --success-fg: #0f6e4f;
  --danger-fg: #b42318;
  --warn-fg: #8f5409;
  --focus: #0a7fb5;
  --scrim: rgb(21 21 21 / 0.5);
  --shadow-float: 0 8px 24px rgb(21 21 21 / 0.08);
  --radius-control: 8px;
  --radius-surface: 12px;
  --w-page: 1120px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #2e2e2e;
  --surface: #242424;
  --surface-2: #343434;
  --fg: #f4f2ed;
  --fg-muted: #b8b2a7;
  --line: #5a5a5a;
  --line-strong: #8c8c8c;
  --link: #b7dfd8;
  --brand: #f4f2ed;
  --primary-hover: #ff7a61;
  --success-fg: #29d39b;
  --danger-fg: #ff8f94;
  --warn-fg: #f0b45a;
  --focus: #67d4ff;
  --scrim: rgb(0 0 0 / 0.6);
  --shadow-float: 0 8px 24px rgb(0 0 0 / 0.45);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    400 16px/1.5 Inter,
    system-ui,
    sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
a {
  color: var(--link);
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
}
button svg,
a svg {
  width: 20px;
  height: 20px;
  flex: none;
}
svg {
  vertical-align: middle;
}
.frame {
  width: calc(100% - 48px);
  max-width: var(--w-page);
  margin-inline: auto;
}
.header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.wordmark {
  font:
    400 20px/1 "Jersey 20",
    sans-serif;
  color: var(--brand);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.header nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.header nav a {
  font-size: 14px;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.header nav a[aria-current] {
  text-decoration: underline;
}
.text-button {
  font-size: 14px;
  color: var(--link);
  min-height: 44px;
  padding: 8px;
}
.footer {
  margin-top: auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--fg-muted);
}
main {
  padding-block: 48px;
  flex: 1;
}
.loading {
  color: var(--fg-muted);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font:
    400 40px/1 "Jersey 20",
    sans-serif;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
small,
.small {
  font-size: 14px;
}
.muted {
  color: var(--fg-muted);
}
.meta {
  font-size: 12px;
  line-height: 16px;
  color: var(--fg-muted);
}
.mono {
  font-variant-numeric: tabular-nums;
}
.btn {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: var(--surface);
}
.btn:hover {
  background: var(--surface-2);
}
.primary {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--on-primary);
}
.primary:hover {
  background: var(--primary-hover);
}
.quiet {
  background: transparent;
}
.danger {
  color: var(--danger-fg);
}
.btn:disabled {
  background: var(--surface-2);
  color: var(--fg-muted);
  border-color: var(--line-strong);
}
.btn.primary:disabled {
  background: var(--primary);
  color: var(--on-primary);
}
.icon-button {
  padding: 10px;
  min-width: 44px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
}
input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--radius-control);
  padding: 10px 12px;
  font-size: 16px;
}
input::placeholder {
  color: var(--fg-muted);
}
.error {
  font-size: 14px;
  color: var(--danger-fg);
  margin-top: 8px;
}
.error:empty {
  display: none;
}
.inline-message {
  font-size: 14px;
  color: var(--success-fg);
  margin-block: 8px;
}
.inline-message:empty {
  display: none;
}
.login {
  max-width: 560px;
  margin: 32px auto 64px;
}
.login h1 {
  font-size: 80px;
  line-height: 0.95;
  margin-bottom: 32px;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  padding: 32px;
}
.login-card .btn {
  width: 100%;
}
.page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.session-ledger {
  border-top: 1px solid var(--line);
}
.session-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.session-row:hover .session-name {
  text-decoration: underline;
}
.session-name {
  color: var(--fg);
  font-size: 20px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.session-row .meta {
  margin-top: 8px;
}
.session-row svg {
  flex: none;
  width: 24px;
  height: 24px;
}
.empty {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 32px;
}
.empty .empty-icon {
  width: 48px;
  height: 48px;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.empty p {
  max-width: 360px;
  font-size: 14px;
  color: var(--fg-muted);
}
.session-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.session-heading h1 {
  margin-bottom: 12px;
}
.session-heading .actions {
  align-self: flex-start;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: var(--surface);
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  border-radius: var(--radius-control);
  padding: 4px;
}
.tabs button {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
  white-space: nowrap;
  border-radius: var(--radius-control);
  color: var(--fg-muted);
  border: 1px solid transparent;
}
.tabs button[aria-selected="true"] {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--fg);
  font-weight: 600;
}
.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
}
.search-row input {
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 8px 0;
  font-size: 14px;
}
.search-row svg {
  color: var(--fg-muted);
  width: 20px;
  height: 20px;
  flex: none;
}
.search-row label {
  flex: 1;
}
.transcript {
  height: 58dvh;
  min-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 8px 24px 24px;
}
.transcript .empty {
  height: 100%;
}
.transcript-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.time {
  font-size: 12px;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.transcript-row .speaker {
  font-size: 12px;
  font-weight: 600;
  color: var(--link);
  margin-bottom: 4px;
}
.transcript-row .speech {
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.partial .speech {
  color: var(--fg-muted);
}
.partial .speaker {
  color: var(--fg-muted);
}
.panel-foot {
  border-top: 1px solid var(--line);
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.follow {
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
}
.follow input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--link);
  padding: 0;
}
.rail {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.rail-section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.rail-section h2 {
  font-size: 16px;
  margin-bottom: 16px;
}
.rail-section .btn {
  width: 100%;
}
.rail-section .actions {
  margin-top: 16px;
}
.rail-section .actions .btn {
  width: auto;
  flex: 1;
}
.source {
  padding-block: 8px;
}
.source-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.dot {
  width: 8px;
  height: 8px;
  background: var(--line-strong);
  border-radius: 50%;
  flex: none;
}
.dot.live {
  background: var(--success-fg);
}
.source .meta {
  margin-left: 16px;
  margin-top: 4px;
}
.fact-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 8px;
  font-size: 14px;
}
.status {
  color: var(--success-fg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.connection {
  font-size: 12px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.report {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.report:first-child {
  padding-top: 24px;
}
.report .report-top {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.report h3 {
  font-size: 14px;
}
.report-body h3 {
  font-size: 16px;
  margin-top: 24px;
  margin-bottom: 8px;
}
.report-body h3:first-child {
  margin-top: 0;
}
.report-body p,
.report-body ul {
  font-size: 14px;
  line-height: 1.7;
  margin: 8px 0;
}
.report-body ul {
  padding-left: 20px;
}
.report-body {
  overflow-wrap: anywhere;
}
.report-state {
  font-size: 14px;
  color: var(--fg-muted);
}
mark {
  background: var(--surface-2);
  color: var(--fg);
  text-decoration: underline;
}
.note {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 12px;
}
.session-error {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--danger-fg);
  border-radius: var(--radius-control);
  font-size: 14px;
  color: var(--danger-fg);
}
.session-error:empty {
  display: none;
}
dialog {
  width: calc(100% - 32px);
  max-width: 480px;
  padding: 24px;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-surface);
  box-shadow: var(--shadow-float);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
dialog::backdrop {
  background: var(--scrim);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.modal-head h2 {
  font-size: 20px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}
.meter-shell {
  background: var(--surface-2);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}
.meter-fill {
  width: 0;
  height: 100%;
  background: var(--success-fg);
}
.meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.share-link {
  font-size: 14px;
  overflow-wrap: anywhere;
  padding: 12px;
  background: var(--surface-2);
  border-radius: var(--radius-control);
  margin-bottom: 16px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--surface);
  z-index: 100;
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
.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;
}
[hidden] {
  display: none !important;
}
.no-results {
  padding: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--fg-muted);
}
@media (min-width: 1600px) {
  :root {
    --w-page: 1280px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
  }
}
@media (max-width: 959px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .transcript {
    height: 58dvh;
  }
  .session-heading {
    margin-bottom: 24px;
  }
}
@media (max-width: 639px) {
  .frame {
    width: calc(100% - 32px);
  }
  .header {
    height: 72px;
  }
  .header nav {
    gap: 8px;
  }
  .header nav a,
  .header nav button {
    font-size: 14px;
  }
  main {
    padding-block: 32px;
  }
  .login {
    margin: 24px auto 32px;
  }
  .login h1 {
    font-size: 60px;
  }
  .login-card {
    padding: 24px;
  }
  .page-top {
    align-items: flex-start;
    gap: 16px;
  }
  .page-top .btn {
    flex: none;
  }
  .session-heading {
    display: block;
  }
  .session-heading .actions {
    margin-top: 24px;
    display: flex;
  }
  .session-heading .actions .primary {
    flex: 1;
  }
  .tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .tabs button {
    padding: 8px 4px;
    font-size: 12px;
  }
  .panel-head {
    padding: 8px;
  }
  .search-row {
    padding: 8px 16px;
  }
  .transcript {
    padding: 0 16px 16px;
    min-height: 300px;
    height: 55dvh;
  }
  .transcript-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding-block: 16px;
  }
  .rail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .rail-section {
    padding-top: 16px;
  }
  .modal-footer {
    flex-direction: column-reverse;
  }
  .modal-footer .btn {
    width: 100%;
  }
  .session-name {
    font-size: 16px;
  }
  .session-row {
    padding: 20px 0;
  }
  .footer {
    min-height: 72px;
  }
  .report {
    padding-block: 20px;
  }
  .empty {
    padding: 24px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
