:root { color-scheme: light; font-family: system-ui, sans-serif; color: #18212f; background: #f4f6f8; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(1400px, 100%); min-height: 100vh; margin: 0 auto; padding: 1.25rem; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 0.9rem; font-weight: 600; }
h2 { margin-bottom: 0; font-size: 1.2rem; }
h3 { margin-bottom: 0.65rem; font-size: 1rem; }
.page-header { margin-bottom: 0.65rem; }
.eyebrow, .step { margin-bottom: 0.25rem; color: #526071; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 1rem; align-items: start; }
.meeting-column { display: grid; gap: 1rem; min-width: 0; }
.panel, .session-panel { padding: 1rem; border: 1px solid #d7dde5; border-radius: 0.55rem; background: white; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; }
form { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 0.75rem; align-items: end; }
fieldset { border: 0; padding: 0; }
fieldset legend, .form-row > label { display: block; margin-bottom: 0.35rem; font-size: 0.88rem; font-weight: 650; }
.role-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.role-options legend { grid-column: 1 / -1; }
.role-option { display: flex; gap: 0.4rem; padding: 0.55rem; border: 1px solid #d7dde5; border-radius: 0.4rem; cursor: pointer; }
.role-option:has(input:checked) { border-color: #175cd3; background: #f2f6ff; }
.role-option small { display: block; margin-top: 0.15rem; color: #667085; }
.role-option input { margin-top: 0.18rem; }
.form-row small { display: block; margin-top: 0.25rem; color: #667085; }
input:not([type="radio"]) { width: 100%; padding: 0.58rem; border: 1px solid #aeb8c5; border-radius: 0.35rem; font: inherit; }
button, .button-link { width: fit-content; padding: 0.58rem 0.8rem; border: 0; border-radius: 0.35rem; color: white; background: #175cd3; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
button.secondary, .icon-button { color: #253247; background: #e9edf2; }
button.danger { background: #b42318; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
.actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.session-actions { margin-top: 0.85rem; }
.message { min-height: 1.2rem; margin: 0.75rem 0 0; color: #526071; }
.message.error, .transcription-error { color: #b42318; }
.message.success, .transcription-success { color: #067647; }
.muted { color: #667085; }
.status-badge { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 999px; color: #344054; background: #edf0f4; font-size: 0.82rem; white-space: nowrap; }
.status-badge[data-status="ready"] { color: #05603a; background: #dff7e9; }
.status-badge[data-status="failed"] { color: #9b1c13; background: #fee4e2; }
.status-badge[data-status="queued"], .status-badge[data-status="converting"], .status-badge[data-status="uploading"], .status-badge[data-status="submitting"], .status-badge[data-status="processing"] { color: #8a4b08; background: #fff1d6; }
.session-panel { padding: 0; overflow: hidden; }
.session-toolbar { display: flex; align-items: center; gap: 1.5rem; padding: 0.75rem 1rem; border-bottom: 1px solid #d7dde5; }
.session-toolbar > div:not(.actions) { display: grid; gap: 0.15rem; font-size: 0.88rem; }
.session-toolbar .actions { margin-left: auto; }
#meet { width: 100%; height: min(62vh, 680px); min-height: 430px; background: #111827; }
#meet iframe { display: block; }
.transcription-progress { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; padding: 0.8rem 1rem; border-top: 1px solid #d7dde5; }
.transcription-progress pre { flex-basis: 100%; }
.file-sharing-panel { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 0.7rem 1rem; padding: 0.8rem 1rem; border-top: 1px solid #d7dde5; }
.file-sharing-header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.file-sharing-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; align-items: center; }
.file-sharing-form input { min-width: 0; }
.file-sharing-form small { grid-column: 1 / -1; color: #667085; }
.shared-files-list { grid-column: 1 / -1; display: grid; gap: 0.4rem; }
.shared-file { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.7rem; align-items: center; padding: 0.5rem 0.65rem; border: 1px solid #d7dde5; border-radius: 0.35rem; }
.shared-file span { min-width: 0; overflow-wrap: anywhere; }
.shared-file small { color: #667085; }
.shared-file a { color: #175cd3; font-weight: 600; }
.history-panel { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); display: flex; flex-direction: column; }
.history-list { min-height: 0; overflow: auto; }
.transcription-history-item { width: 100%; margin-bottom: 0.55rem; padding: 0; border: 1px solid #d7dde5; border-radius: 0.45rem; background: white; }
.history-item-button { display: grid; grid-template-columns: 1fr auto; width: 100%; padding: 0.75rem; color: inherit; background: transparent; text-align: left; }
.history-item-button:hover { background: #f7f9fb; }
.history-item-title { font-weight: 700; }
.history-item-date { grid-column: 1 / -1; margin-top: 0.3rem; color: #667085; font-size: 0.84rem; }
.history-pages { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding-top: 0.6rem; }
dialog { width: min(680px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: 1.2rem; border: 0; border-radius: 0.6rem; box-shadow: 0 20px 60px #10182840; }
dialog::backdrop { background: #10182880; }
.modal-header { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid #d7dde5; }
.detail-meta { display: grid; grid-template-columns: 1.5fr 1fr 0.8fr; gap: 0.75rem; margin: 1rem 0; }
.detail-meta div { min-width: 0; }
.detail-meta dt { color: #667085; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.detail-meta dd { margin: 0.25rem 0 0; overflow-wrap: anywhere; }
#detail-transcript, #transcription-result { max-height: 18rem; padding: 0.8rem; border: 1px solid #d7dde5; border-radius: 0.4rem; background: #f7f9fb; white-space: pre-wrap; overflow: auto; }
.future-files { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #d7dde5; }
@media (max-width: 900px) {
  main { padding: 0.75rem; }
  .page-header { display: block; }
  .page-grid { grid-template-columns: 1fr; }
  form { grid-template-columns: 1fr 1fr; }
  .history-panel { position: static; max-height: none; }
  .history-list { overflow: visible; }
}
@media (max-width: 600px) {
  form, .role-options, .detail-meta { grid-template-columns: 1fr; }
  .role-options legend { grid-column: 1; }
  .session-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .session-toolbar .actions { width: 100%; margin-left: 0; }
  #meet { min-height: 360px; }
  .file-sharing-panel { grid-template-columns: 1fr; }
  .file-sharing-form { grid-template-columns: 1fr auto; }
  .shared-file { grid-template-columns: minmax(0, 1fr) auto; }
  .shared-file small { grid-column: 1; }
}
