:root {
  --funo-accent: #2f7f87;
  --funo-accent-secondary: #6f9498;
  --funo-ink: #1e1e1e;
  --funo-muted: #5f6c70;
  --funo-bg: #f2f2ed;
  --funo-card: #ffffff;
  --funo-line: #d9d9d9;
  --funo-ok: #e7f6e8;
  --funo-error: #ffecec;
}

* { box-sizing: border-box; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: var(--funo-bg);
  color: var(--funo-ink);
}

.wrap { width: min(960px, 100%); margin: 0 auto; padding: 24px 18px 40px; }
.site-header { padding: 18px 4px 10px; }
.site-header h1 { margin: 0 0 10px; font-size: clamp(30px, 5vw, 46px); line-height: 1.08; }
.lead { max-width: 700px; margin: 0; color: var(--funo-muted); font-size: 18px; line-height: 1.45; }
.eyebrow { margin: 0 0 5px; color: var(--funo-accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.card {
  margin-bottom: 16px;
  padding: 20px;
  background: var(--funo-card);
  border: 1px solid var(--funo-line);
  border-radius: 12px;
}

h2 { margin: 0 0 14px; font-size: 24px; line-height: 1.2; }
.muted { color: var(--funo-muted); }
.hidden { display: none !important; }

label, dt { font-weight: 700; }
label { display: block; margin-bottom: 7px; }
input, button { font: inherit; }
input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
  color: var(--funo-ink);
}
input:focus { outline: 2px solid #8ab7bb; outline-offset: 1px; }
.form-row { display: flex; gap: 10px; align-items: stretch; }
.form-row input { flex: 1 1 auto; }
.input-with-clear { position: relative; flex: 1 1 auto; min-width: 0; }
.input-with-clear input { padding-right: 42px; }
.clear-button {
  position: absolute;
  top: 50%;
  right: 7px;
  min-width: 30px;
  min-height: 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: var(--funo-muted);
  font-size: 24px;
  line-height: 1;
}
.clear-button:hover { background: #e8f2f2; filter: none; }

button {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--funo-accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
button:hover { filter: brightness(.94); }
button:disabled { opacity: .55; cursor: not-allowed; }
button.secondary-button { background: var(--funo-accent-secondary); }
button.results-button { background: var(--funo-accent); }

.message { min-height: 0; margin-top: 10px; padding: 0; border-radius: 8px; line-height: 1.4; }
.message:not(:empty) { padding: 10px 12px; border: 1px solid #a9cfd0; background: #eef8f8; }
.message.error { border-color: #e5a6a6; background: var(--funo-error); }

.metadata-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 0; }
.metadata-grid > div { min-width: 0; }
.metadata-grid .wide { grid-column: 1 / -1; }
dt { margin-bottom: 4px; color: var(--funo-muted); font-size: 13px; }
dd { margin: 0; line-height: 1.45; overflow-wrap: anywhere; }

.media-choices { display: grid; gap: 10px; margin: 14px 0 16px; }
.media-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.media-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--funo-line);
  border-radius: 10px;
  cursor: pointer;
}
.media-choice:has(input:checked) { border-color: var(--funo-accent); box-shadow: 0 0 0 2px #d6eeee; }
.media-choice input { width: 18px; min-height: 18px; margin-top: 3px; accent-color: var(--funo-accent); }
.media-choice-title { margin-bottom: 5px; font-weight: 700; }
.asset-list { display: flex; flex-wrap: wrap; gap: 6px; }
.asset-badge { padding: 3px 7px; border-radius: 999px; background: #e8f2f2; color: #27666c; font-size: 12px; font-weight: 700; }

.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.section-heading h2 { margin-bottom: 0; }
.status-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border-radius: 999px; background: #e8f2f2; color: #27666c; font-size: 13px; font-weight: 800; white-space: nowrap; }
.status-badge.is-success { background: var(--funo-ok); color: #23652a; }
.status-badge.is-pending { background: #fff3cd; color: #805d00; }
.status-badge.is-error { background: var(--funo-error); color: #8a2f2f; }
.status-badge.is-processing { background: #dbeafe; color: #1d4ed8; }
.status-badge.is-stale { font-style: italic; }
.compact { margin-top: 16px; }
.progress-note { margin-top: 16px; color: var(--funo-muted); }
.event-list { display: grid; gap: 8px; margin-top: 16px; }
.event { padding: 10px 12px; border-left: 3px solid var(--funo-accent-secondary); background: #f7f9f8; }
.event-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.event-type { font-weight: 800; }
.event-time { color: var(--funo-muted); white-space: nowrap; }
.event-detail { margin-top: 4px; color: var(--funo-muted); }
.artifact-list { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--funo-line); }
.artifact-list h3 { margin: 0 0 10px; font-size: 18px; }
.artifact-list ul { margin: 0; padding-left: 20px; }
.artifact-list a { color: #236d74; }
.artifact-list details, .history-artifacts details { margin-top: 12px; }
.artifact-list summary, .history-artifacts summary { cursor: pointer; color: var(--funo-muted); font-weight: 700; }
.artifact-list details ul, .history-artifacts details ul { margin-top: 8px; }
.history-list { display: grid; gap: 10px; }
.diarization-notice { margin: 0 0 14px; font-weight: 400; line-height: 1.35; }
.diarization-notice strong { font-weight: 800; }
.history-empty { color: var(--funo-muted); }
.history-item { padding: 13px 14px; border: 1px solid var(--funo-line); border-radius: 10px; }
.history-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.job-viewer { width: min(900px, 94vw); max-height: 90vh; padding: 20px; border: 0; border-radius: 14px; background: var(--funo-card); color: var(--funo-ink); }
.job-viewer::backdrop { background: rgb(15 23 42 / 65%); }
.job-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.job-info-grid { display: block; margin: 20px 0 0; }
.job-info-grid > div { margin-bottom: 14px; }
.job-info-grid dt { margin: 0 0 4px; }
.job-info-grid dd { margin: 0; overflow-wrap: anywhere; }
.job-history-content { margin-top: 20px; overflow: auto; }
.job-history-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.job-history-table th, .job-history-table td { padding: 10px 12px; border-bottom: 1px solid var(--funo-line); text-align: left; white-space: nowrap; }
.job-history-table th { color: var(--funo-muted); }
.participant-review-viewer { display: flex; flex-direction: column; width: min(1100px, calc(100vw - 24px)); height: min(96dvh, 1100px); max-width: calc(100vw - 24px); max-height: 96dvh; overflow: hidden; box-sizing: border-box; padding: 20px; border: 0; border-radius: 14px; background: var(--funo-card); color: var(--funo-ink); }
.participant-review-viewer:not([open]) { display: none; }
.participant-review-viewer::backdrop { background: rgb(15 23 42 / 65%); }
.participant-review-viewer > #participantReviewMessage { flex: 0 0 44px; box-sizing: border-box; overflow: hidden; margin: 10px 0 0; }
.participant-review-content { flex: 1 1 auto; min-height: 0; display: grid; gap: 18px; overflow-y: auto; overflow-x: hidden; margin-top: 14px; padding-right: 4px; }
.speaker-review-card { display: grid; grid-template-columns: max-content minmax(240px, 380px) minmax(300px, 1fr); min-width: 0; gap: 16px; padding: 14px; border: 1px solid var(--funo-line); border-radius: 10px; }
.speaker-review-heading h3 { margin: 0; font-size: 18px; }
.speaker-mapping-fields { display: grid; gap: 8px; }
.speaker-mapping-fields label { margin: 0; font-size: 13px; }
.speaker-mapping-fields input:not([type="checkbox"]), .speaker-mapping-fields textarea, .speaker-mapping-fields select { width: 100%; min-height: 38px; margin-top: 4px; padding: 7px 9px; font-size: 14px; font-family: inherit; resize: vertical; }
.participant-input-row { position: relative; display: flex; align-items: center; }
.participant-input-row input { padding-right: 34px !important; }
.participant-clear-input { position: absolute; right: 6px; top: 7px; min-width: 26px; min-height: 26px; padding: 0; border: 0; background: transparent; color: var(--funo-muted); font-size: 21px; line-height: 26px; cursor: pointer; }
.participant-clear-input:hover { color: var(--funo-ink); }
.participant-new-details, .participant-profile-details { display: grid; gap: 8px; }
.participant-politician-field { display: grid; gap: 4px; }
.participant-field-label { font-size: 13px; font-weight: 700; }
.participant-switch { position: relative; display: inline-flex; width: fit-content; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.participant-switch input { position: absolute; width: 1px; min-height: 1px; margin: 0; opacity: 0; }
.participant-switch-slider { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #b7c0c2; transition: background .15s ease; }
.participant-switch-slider::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 25%); content: ""; transition: transform .15s ease; }
.participant-switch input:checked + .participant-switch-slider { background: var(--funo-accent); }
.participant-switch input:checked + .participant-switch-slider::after { transform: translateX(18px); }
.participant-switch input:focus-visible + .participant-switch-slider { outline: 2px solid #8ab7bb; outline-offset: 2px; }
.participant-politician-state { min-width: 24px; font-weight: 400; }
.speaker-samples { min-width: 0; max-width: 100%; }
.speaker-sample-video { display: block; width: 100%; max-width: 100%; max-height: 190px; border-radius: 8px; background: #111827; }
.speaker-player-message { min-height: 0; margin: 5px 0 0; color: #8a2f2f; font-size: 13px; }
.speaker-sample-buttons { display: grid; gap: 7px; margin-top: 8px; }
.speaker-sample { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start; padding: 7px; border: 1px solid var(--funo-line); border-radius: 8px; }
.sample-button { min-height: 34px; padding: 6px 9px; font-size: 12px; }
.speaker-sample-text { margin: 2px 0 0; color: var(--funo-muted); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.participant-review-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.history-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.history-status-column { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 8px; }
.history-primary-actions { display: flex; justify-content: flex-end; }
.history-title { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.history-title-date { margin-left: .55em; font-weight: 400; white-space: nowrap; }
.history-inline-label { display: inline-block; padding: 2px 6px; border-radius: 4px; background: #e3e3e3; color: var(--funo-ink); }
.history-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 7px; color: var(--funo-muted); font-size: 13px; }
.history-assigned-participants { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.history-assigned-participants-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 7px; color: var(--funo-muted); font: inherit; font-size: 13px; font-weight: 400; line-height: normal; }
.history-participants-label { margin-right: 1px; }
.history-participant-badge { color: var(--funo-ink); font: inherit; font-size: 13px; font-weight: 400; }
.history-actions { margin-top: 10px; }
.history-actions button { min-height: 36px; padding: 7px 11px; font-size: 13px; }
.history-participant-action { margin-left: auto; }
.history-artifacts { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--funo-line); }
.history-artifacts ul { margin: 0; padding-left: 20px; }
.history-artifacts a { color: #236d74; }

@media (max-width: 620px) {
  .history-item-head { align-items: stretch; flex-direction: column; }
  .history-status-column { align-items: flex-start; }
  .history-primary-actions { justify-content: flex-start; }
  .history-participant-action { margin-left: 0; }
}

.artifact-viewer {
  width: min(1500px, 98vw);
  height: min(950px, 95vh);
  padding: 20px;
  border: 0;
  border-radius: 14px;
  background: var(--funo-card);
  color: var(--funo-ink);
}
.artifact-viewer::backdrop { background: rgb(15 23 42 / 65%); }
.artifact-viewer-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.artifact-viewer-document { display: flex; min-width: 0; align-items: center; gap: 12px; }
.artifact-viewer-select-label { flex: 0 0 auto; margin: 0; font-size: 20px; }
.artifact-viewer-document > select { flex: 1 1 auto; min-width: 180px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--funo-line); border-radius: 8px; background: #fff; color: var(--funo-ink); font: inherit; font-weight: 700; }
.artifact-viewer-actions { display: flex; justify-content: flex-end; gap: 8px; }
.artifact-viewer-content {
  height: calc(100% - 64px);
  margin: 16px 0 0;
  padding: 16px;
  overflow: auto;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  border: 1px solid var(--funo-line);
  border-radius: 8px;
  background: var(--funo-bg);
}
.artifact-viewer-content.is-vtt {
  white-space: pre-wrap;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.35;
}
.artifact-viewer-content.is-raw { white-space: pre; overflow-wrap: normal; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; }
.artifact-viewer-content h1 { margin-top: 0; font-size: 1.25em; line-height: 1.2; }

@media (max-width: 620px) {
  .artifact-viewer-head { grid-template-columns: 1fr; align-items: stretch; }
  .artifact-viewer-document { align-items: stretch; flex-direction: column; gap: 6px; }
  .artifact-viewer-actions { width: 100%; justify-content: flex-end; }
}
.artifact-viewer-content .transcript-segment { font-size: 16px; }
.artifact-viewer-content .transcript-segment strong { font-size: 16px; font-weight: 700; }
.artifact-viewer-content blockquote { margin: 1em 0; padding-left: 1em; border-left: 4px solid var(--funo-accent); color: var(--funo-muted); }
.artifact-viewer-content p { margin: 0 0 .45em; }
.artifact-viewer-content .transcript-segment { padding: .25em .4em; border-bottom: 1px solid var(--funo-line); }
.artifact-viewer-content .transcript-time { color: var(--funo-muted); font-size: .9em; }
.review-viewer { display: flex; flex-direction: column; width: min(1200px, 94vw); height: min(900px, 94vh); padding: 20px; border: 0; border-radius: 14px; background: var(--funo-card); color: var(--funo-ink); overflow: hidden; box-sizing: border-box; }
.review-viewer::backdrop { background: rgb(15 23 42 / 65%); }
.review-progress { flex: 0 0 auto; margin-top: 8px; color: var(--funo-muted); font-size: 14px; }
.review-unresolved-link { margin: 0; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-decoration: underline; cursor: pointer; }
.review-layout { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; flex: 1 1 auto; min-height: 0; margin-top: 10px; }
.review-nav { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 8px; }
.review-nav button { width: 36px; min-width: 36px; height: 36px; padding: 0; font-size: 24px; line-height: 1; }
.review-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.review-player-wrap { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; margin-top: 0; }
.review-video { display: block; width: min(65%, 760px); min-width: 420px; height: auto; max-height: 220px; margin: 0 auto; border-radius: 8px; background: #111827; }
.review-transcript { flex: 1 1 auto; min-height: 0; display: block; margin-top: 12px; padding: 4px 8px 20px 0; overflow-y: auto; font-family: "Segoe UI", Tahoma, sans-serif; font-size: 16px; line-height: 1.25; }
.review-transcript-segment { scroll-margin: 12px; margin: 0 0 .18em; padding: 2px 4px; border-radius: 3px; }
.review-transcript-segment.is-candidate { background: transparent; cursor: pointer; }
.review-transcript-segment.is-candidate:hover { background: #f5f8f8; }
.review-transcript-segment.review-status-modified { background: #e8f5e9; }
.review-transcript-segment.review-status-modified.is-active { background: #e8f5e9; border-left-color: #2e7d32; }
.review-transcript-segment.review-status-accepted { background: #e8f5e9; }
.review-transcript-segment.review-status-accepted.is-active { background: #e8f5e9; border-left-color: #2e7d32; }
.review-transcript-segment.review-status-rejected { background: #e8f5e9; }
.review-transcript-segment.review-status-rejected.is-active { background: #e8f5e9; border-left-color: #2e7d32; }
.review-status-badge { display: inline-block; margin-left: .45em; padding: 1px 5px; border-radius: 3px; font-size: .78em; white-space: nowrap; }
.review-transcript-segment.review-status-pending .review-status-badge { color: #806600; background: #fff2a8; }
.review-transcript-segment.review-status-modified .review-status-badge { color: #256029; background: #c8e6c9; }
.review-transcript-segment.review-status-accepted .review-status-badge { color: #256029; background: #c8e6c9; }
.review-transcript-segment.review-status-rejected .review-status-badge { color: #256029; background: #c8e6c9; }
.review-transcript-segment.is-active { outline: none; background: #fffbe0; border-left: 3px solid #c49b00; padding-left: 5px; cursor: default; }
.review-transcript-segment.review-status-pending.is-active { background: #fffbe0 !important; border-left-color: #c49b00 !important; }
.review-transcript-segment.review-neighbor { background: #f0f0f0; cursor: pointer; }
.review-transcript-segment.review-neighbor:hover, .review-transcript-segment.review-neighbor-active { background: #e2e2e2; }
.review-user-modified-badge { color: #555; background: #e3e3e3; }
.review-transcript-text { white-space: normal; }
.review-candidate-mark { background: #fff2a8; padding: 0 .08em; border-radius: 2px; cursor: pointer; }
.review-transcript-time { display: inline; margin-right: .45em; color: var(--funo-muted); font-size: .9em; font-style: italic; }
.review-inline-line { display: flex; align-items: flex-start; gap: .35em; }
.review-original-hidden { display: none !important; }
.review-inline-line strong { white-space: nowrap; }
.review-speaker-intervals { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 5px 0 7px; color: var(--funo-muted); font-size: 13px; }
.review-speaker-intervals-title { font-weight: 700; }
.review-speaker-interval { padding: 2px 6px; border: 1px solid var(--funo-line); border-radius: 4px; background: #f5f8f8; }
.review-speaker-boundary { flex-basis: 100%; font-style: italic; }
.review-transcript-segment small { display: block; margin-top: 4px; color: var(--funo-muted); }
.review-inline-text { flex: 1 1 auto; min-width: 0; display: block; width: 100%; box-sizing: border-box; padding: 3px 6px; border: 1px solid #c49b00; border-radius: 4px; background: #fffbe0; color: inherit; font: inherit; line-height: inherit; resize: vertical; }
.review-inline-controls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 5px; }
.review-inline-controls select, .review-inline-controls input { min-height: 34px; padding: 5px 7px; border: 1px solid var(--funo-line); border-radius: 5px; background: #fff; font: inherit; }
.review-inline-right-label { color: var(--funo-muted); font-size: 13px; }
.review-inline-controls button { min-height: 34px; padding: 6px 10px; }
.review-reason-toggle { width: 24px; min-width: 24px !important; height: 24px; min-height: 24px !important; padding: 0 !important; border: 1px solid var(--funo-muted); border-radius: 50%; background: transparent; color: var(--funo-muted); font: inherit; font-size: 14px; font-weight: 700; line-height: 22px; cursor: pointer; }
.review-reason-toggle:hover, .review-reason-toggle:focus-visible { border-color: var(--funo-accent); color: var(--funo-accent); }
.review-reason-details { flex: 1 1 100%; color: var(--funo-muted); font-size: 13px; line-height: 1.3; }
.review-inline-split { width: 120px; }
.review-edit-hint { margin-top: 4px; color: var(--funo-muted); font-size: 13px; }
.review-split-proposal { margin-top: 5px; color: #806600; font-weight: 700; font-size: 13px; }
.review-split-parts { display: grid; gap: 4px; margin-top: 4px; }
.review-split-parts[hidden] { display: none !important; }
.review-split-part { display: grid; grid-template-columns: 92px minmax(150px, 220px) minmax(0, 1fr); gap: 5px; align-items: start; }
.review-split-time { padding-top: 8px; color: var(--funo-muted); font-size: .9em; font-style: italic; white-space: nowrap; }
.review-split-part select { min-height: 34px; padding: 5px 7px; border: 1px solid var(--funo-line); border-radius: 5px; background: #fff; font: inherit; }
.review-reason { margin: 8px 0 0; color: var(--funo-muted); font-size: 13px; }
.review-context { display: grid; gap: 8px; max-height: 360px; margin-top: 16px; overflow: auto; }
.review-context-segment { padding: 10px 12px; border: 1px solid var(--funo-line); border-radius: 8px; line-height: 1.4; }
.review-context-segment.is-candidate { border-color: var(--funo-accent); background: #eef8f8; }
.review-context-segment.is-neighbour { color: var(--funo-muted); }
.review-context-meta { display: block; margin-bottom: 4px; color: var(--funo-muted); font-size: 12px; }
.review-context-speakers { margin-top: 5px; color: var(--funo-muted); font-size: 13px; }
.review-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
@media (max-width: 620px) { .review-viewer { width: min(100% - 24px, 1050px); height: 94dvh; } .review-layout { grid-template-columns: 40px minmax(0, 1fr); } .review-nav { order: initial; flex-direction: column; } .review-nav button { flex: 0 0 36px; } .review-video { width: 100%; min-width: 0; max-height: 180px; } .review-inline-line { flex-wrap: wrap; } .review-inline-line .review-inline-text { flex-basis: 100%; } .review-split-part { grid-template-columns: 1fr; } .review-split-time { padding-top: 0; } .review-inline-controls > * { flex: 1 1 45%; } }
.error-viewer {
  width: min(520px, 88vw);
  padding: 24px;
  border: 0;
  border-radius: 14px;
  background: var(--funo-card);
  color: var(--funo-ink);
}
.error-viewer::backdrop { background: rgb(15 23 42 / 65%); }
.error-viewer p { margin: 0 0 24px; font-size: 17px; line-height: 1.45; }
.error-viewer-actions { display: flex; justify-content: flex-end; }
.participant-defaults-confirm {
  width: min(520px, calc(100vw - 32px));
  padding: 24px;
  border: 0;
  border-radius: 14px;
  background: var(--funo-card);
  color: var(--funo-ink);
}
.participant-defaults-confirm::backdrop { background: rgb(15 23 42 / 65%); }
.participant-defaults-confirm p { margin: 0 0 24px; font-size: 17px; line-height: 1.45; }
.participant-defaults-confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
body:has(dialog[open]) > main { pointer-events: none; user-select: none; }
dialog:not([open]) { display: none; }
dialog[open] { pointer-events: auto; }
.site-footer { padding: 8px 4px; color: var(--funo-muted); font-size: 13px; }

@media (max-width: 620px) {
  .wrap { padding: 14px 12px 30px; }
  .card { padding: 16px; }
  .form-row { display: grid; }
  .metadata-grid { grid-template-columns: 1fr; }
  .metadata-grid .wide { grid-column: auto; }
  .section-heading { display: grid; }
  .event-head { display: grid; gap: 3px; }
  .event-time { white-space: normal; }
  .speaker-review-card { grid-template-columns: 1fr; }
  .speaker-sample { grid-template-columns: 1fr; }
}

@media (min-width: 621px) and (max-width: 920px) {
  .speaker-review-card { grid-template-columns: max-content minmax(0, 680px); justify-content: start; }
  .speaker-review-heading { grid-column: 1; grid-row: 1; }
  .speaker-mapping-fields { grid-column: 2; grid-row: 1; }
  .speaker-samples { grid-column: 2; grid-row: 2; max-width: 680px; }
}
