/* UI 017: presentation only; business controls and hidden-state semantics stay native. */
:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #f0f3f9;
  --line: #dce3ef;
  --muted: #566780;
  --soft: #273b58;
  --lime: #354f9e;
  --lime-ink: #ffffff;
  --danger: #ae343e;
  --success: #32745b;
  --ui-ink: #172b4d;
  --ui-brand-soft: #eef2fc;
  --ui-shadow: 0 4px 20px rgb(31 52 88 / 4%);
  background: var(--bg);
  color: var(--ui-ink);
  font-synthesis: none;
}
html, body { background: var(--bg); color: var(--ui-ink); }
.ui-leave-dialog { width: min(520px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--line); border-radius: 16px; color: var(--ui-ink); background: var(--panel); box-shadow: 0 24px 80px rgb(23 43 77 / 18%); }
.ui-leave-dialog::backdrop { background: rgb(23 43 77 / 36%); }
.ui-leave-dialog h2 { margin: 0 0 12px; }
.ui-leave-dialog p { overflow-wrap: anywhere; }
.ui-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.ui-dialog-actions button { min-height: 44px; }
.ui-publication-list { display: grid; gap: 12px; }
.ui-publication-entry { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.ui-publication-entry > p { margin: 0 0 8px; font-weight: 600; }
.ui-publication-entry > a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 16px; }
.ui-publication-entry details { margin-top: 8px; color: var(--muted); font-size: 13px; }
.ui-publication-entry pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.ui-publication-entry[data-delivery-state="SENT"] { border-left: 3px solid var(--success); }
.ui-publication-entry[data-delivery-state="FAILED"],.ui-publication-entry[data-delivery-state="NEEDS_RECONCILIATION"] { border-left: 3px solid var(--danger); }
html { scroll-padding-top: 100px; }
body { line-height: 1.6; font-size: 15px; }
html body [hidden] { display: none !important; }
html body :is(button, input, select, textarea) { font-family: inherit; }
html body :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid #4967b5; outline-offset: 3px;
}
html body .app-shell { width: min(1440px, 100%); padding: 0 40px 24px; }
html body .topbar {
  position: relative; z-index: 5; min-height: 80px; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px; border-bottom: 1px solid var(--line); background: #fff;
  box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax);
}
html body .brand { color: var(--ui-ink); font-size: 13px; letter-spacing: .1em; gap: 12px; }
html body .brand em { color: var(--lime); }
html body .brand-mark { width: 25px; height: 26px; gap: 4px; }
html body .brand-mark i { background: var(--lime); width: 5px; }
html body .brand-mark i:nth-child(2) { height: 24px; }
html body .primary-nav { gap: 4px; flex-wrap: wrap; }
html body .nav-link { min-height: 44px; padding: 10px 13px; border-radius: 8px; font-size: 14px; font-weight: 600; }
html body .nav-link:hover:not(:disabled) { background: #f3f5fa; border-color: transparent; color: var(--ui-ink); }
html body .nav-link.active { background: var(--ui-brand-soft); color: var(--lime); border-color: transparent; }
html body .account-area { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
html body .account-name { max-width: 140px; color: var(--muted); font-size: 12px; }
html body .account-role { background: #f3f5fa; color: var(--muted); border-color: var(--line); font-size: 11px; padding: 3px 7px; }
html body .auth-logout { min-height: 36px; color: var(--muted); background: #fff; border-color: var(--line); font-size: 12px; padding: 6px 9px; }
html body .main-content { padding: 40px 0 48px; min-height: calc(100vh - 150px); }
html body h1 { color: var(--ui-ink); font-size: clamp(26px, 2.8vw, 34px); font-weight: 700; letter-spacing: -.025em; line-height: 1.35; margin-bottom: 12px; }
html body h2 { color: var(--ui-ink); font-size: 21px; font-weight: 650; letter-spacing: -.015em; line-height: 1.4; }
html body h3 { color: var(--ui-ink); line-height: 1.5; }
html body .eyebrow { color: var(--lime); font-size: 11px; font-weight: 650; letter-spacing: .08em; margin-bottom: 10px; }
html body .subcopy { font-size: 14px; line-height: 1.8; color: var(--muted); }
html body .page-heading { margin-bottom: 28px; max-width: 820px; }
html body .app-shell :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), select, textarea) {
  background: #fff; color: var(--ui-ink); border: 1px solid #cbd5e5; border-radius: 8px;
  padding: 10px 12px; min-height: 44px; max-width: 100%; font-size: 14px; line-height: 1.5;
}
html body .app-shell textarea { resize: vertical; }
html body .app-shell :is(input, textarea)::placeholder { color: #738198; opacity: 1; }
html body .app-shell :is(input, select, textarea):disabled { background: #f1f4f8; color: #637189; opacity: .8; }
html body .app-shell :is(input[type=checkbox], input[type=radio]) { accent-color: var(--lime); width: 17px; height: 17px; vertical-align: middle; }
html body .button { min-height: 44px; border-radius: 8px; padding: 10px 18px; font-weight: 600; font-size: 14px; line-height: 1.5; transition: background .15s, border-color .15s, box-shadow .15s; }
html body .button:hover:not(:disabled) { transform: none; }
html body .button-primary { background: var(--lime); color: #fff; border: 1px solid var(--lime); box-shadow: 0 2px 3px rgb(53 79 158 / 10%); }
html body .button-primary:hover:not(:disabled) { background: #293e7e; border-color: #293e7e; }
html body .button-secondary { background: #fff; color: var(--soft); border-color: #cbd5e5; box-shadow: none; }
html body .button-secondary:hover:not(:disabled) { background: #f4f6fb; border-color: #94a4bf; }
html body .button:disabled, html body .meeting-interaction-section .button:disabled { opacity: 1; color: #69788c; background: #e9edf3; border-color: #dce3eb; box-shadow: none; cursor: not-allowed; }
html body .text-button { color: var(--lime); min-height: 36px; padding-block: 7px; font-weight: 600; white-space: normal; }
html body .text-button:hover:not(:disabled) { color: #243971; text-decoration: underline; text-underline-offset: 4px; }
html body .text-button:disabled { color: #78869b; cursor: not-allowed; }
html body .login-view { min-height: calc(100vh - 220px); }
html body .login-card { width: min(460px, 100%); padding: 40px; border-radius: 16px; box-shadow: 0 12px 48px rgb(26 46 82 / 7%); border-color: var(--line); }
html body .login-card h1 { font-size: 30px; }
html body .login-card .subcopy { margin-bottom: 28px; }
html body .auth-form { gap: 12px; }
html body .auth-form label { font-size: 13px; font-weight: 600; color: var(--soft); }
html body .auth-form input { min-height: 48px; }
html body .provider-divider { margin: 24px 0 16px; }
html body .provider-status { font-size: 12px; }
html body .topbar + .detail-card { max-width: 650px; margin: 24px auto 0; }
html body .topbar + .detail-card form { display: flex; flex-wrap: wrap; gap: 16px; }
html body .topbar + .detail-card form h2, html body .topbar + .detail-card form label, html body .topbar + .detail-card form p { width: 100%; }
html body .topbar + .detail-card form label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
html body .topbar + .detail-card [data-cancel] { background: #fff; border: 1px solid var(--line); color: var(--soft); padding: 10px 18px; border-radius: 8px; cursor: pointer; }
html body .scene-view { max-width: 1080px; margin-inline: auto; padding-top: 20px; }
html body .scene-options { gap: 16px; }
html body .scene-option { min-height: 145px; padding: 24px; grid-template-columns: 26px minmax(0, 1fr) 18px; gap: 12px; border-radius: 14px; background: #fff; box-shadow: var(--ui-shadow); }
html body .scene-option:hover, html body .scene-option.selected { background: #f8faff; border-color: #8ea3d1; transform: none; box-shadow: 0 4px 18px rgb(53 79 158 / 7%); }
html body .scene-copy strong { font-size: 18px; color: var(--ui-ink); font-weight: 650; }
html body .scene-copy small { margin-top: 8px; font-size: 13px; }
html body .scene-index { color: #73829b; font-size: 12px; font-variant-numeric: tabular-nums; }
html body .scene-arrow { color: var(--lime); }
html body .recorder-view { width: min(860px, 100%); }
html body .input-method-grid { gap: 16px; }
html body .input-method-card { background: #fff; border-radius: 14px; min-height: 126px; padding: 24px; box-shadow: var(--ui-shadow); }
html body .input-method-card:hover { background: #f8faff; border-color: #8ea3d1; transform: none; }
html body .input-method-card strong { color: var(--ui-ink); font-size: 17px; }
html body .input-method-card small { font-size: 13px; }
html body .input-method-icon { border: 0; background: var(--ui-brand-soft); color: var(--lime); border-radius: 12px; }
html body :is(.audio-upload-card, .recorder-card, .recording-result, .detail-card, .admin-files-table-wrap) { background: #fff; border-color: var(--line); border-radius: 14px; box-shadow: var(--ui-shadow); }
html body .audio-upload-card { padding: 28px; }
html body .audio-file-picker { background: #f8faff; border-color: #aebfdd; padding: 24px; border-radius: 10px; }
html body .audio-file-copy strong { color: var(--ui-ink); font-size: 14px; }
html body .recorder-card { padding: 26px 30px 34px; }
html body .status-label, html body .result-status { background: #f0f4fa; border-color: var(--line); color: var(--soft); font-size: 12px; font-weight: 600; }
html body .status-label[data-state=recording] { background: #edf6f1; color: #32745b; }
html body .status-label[data-state=paused] { background: #fff4df; color: #875c0d; }
html body .status-label[data-state=failed], html body .status-label[data-state=error] { background: #fff0f1; color: var(--danger); }
html body .recording-timer { color: var(--soft); font-size: 17px; }
html body .live-status { color: var(--ui-ink); font-size: 24px; margin-top: 38px; font-weight: 650; }
html body .live-hint { font-size: 14px; }
html body .record-button { width: min(196px, 58vw); margin: 34px auto 28px; background: var(--lime); border-color: var(--lime); color: #fff; box-shadow: 0 0 0 12px #eef2fc, 0 10px 28px rgb(53 79 158 / 15%); font-weight: 600; }
html body .record-button:hover:not(:disabled) { transform: scale(1.015); box-shadow: 0 0 0 14px #e9eefb, 0 10px 28px rgb(53 79 158 / 20%); }
html body .record-button.is-recording { animation: ui-record-pulse 2s ease-in-out infinite; }
html body .record-button.is-paused { background: #925f20; border-color: #925f20; box-shadow: 0 0 0 12px #faf1e4; }
@keyframes ui-record-pulse { 50% { box-shadow: 0 0 0 17px #e9eefb, 0 10px 28px rgb(53 79 158 / 20%); } }
html body .end-button { color: var(--danger); background: #fff5f5; border-color: #ecc6ca; min-height: 44px; font-weight: 600; }
html body .end-button:disabled { color: #728095; background: #f4f6f9; border-color: var(--line); }
html body .end-confirmation { background: rgb(23 43 77 / 35%); backdrop-filter: blur(4px); }
html body .end-confirm-card { background: #fff; border-color: var(--line); box-shadow: 0 24px 70px rgb(23 43 77 / 20%); border-radius: 16px; }
html body .end-confirm-card h2 { color: var(--ui-ink); font-size: 23px; }
html body .recovery-message { background: #fff9ed; border-color: #e8d4aa; padding: 16px; font-size: 13px; }
html body .recovery-message strong, html body .transcript-note, html body .history-integration-hint { color: #875c0d; }
html body .inline-message, html body .error-message { overflow-wrap: anywhere; }
html body .history-view { max-width: 1180px; margin-inline: auto; }
html body .history-heading { margin-bottom: 28px; }
html body .filter-field { font-size: 12px; }
html body .history-list { gap: 12px; }
html body .history-row { padding: 22px 24px; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgb(31 52 88 / 2%); }
html body .history-row:hover { border-color: #bac8de; }
html body .history-details { grid-template-columns: minmax(220px, 2fr) minmax(120px, 1fr) minmax(90px, .6fr); gap: 9px 24px; }
html body .history-details strong { color: var(--ui-ink); font-size: 15px; font-weight: 600; }
html body .history-details time, html body .history-summary-line, html body .history-status { font-size: 13px; }
html body .history-open, html body .admin-file-open { min-height: 40px; padding: 8px 13px; border-color: #cbd5e5; color: var(--lime); background: #fff; font-weight: 600; font-size: 13px; }
html body .empty-state { padding: 56px 24px; background: #fff; border-color: #c8d2e2; font-size: 14px; }
html body .record-detail-view { width: min(1280px, 100%); }
html body .detail-back { margin-bottom: 20px; }
html body .detail-heading { margin-bottom: 24px; }
html body .detail-heading h1 { max-width: 950px; font-size: clamp(25px, 2.6vw, 32px); line-height: 1.45; }
html body .detail-heading .subcopy { max-width: 850px; }
html body .detail-status { color: var(--lime); background: var(--ui-brand-soft); border-color: #d3dcf1; font-size: 12px; font-weight: 600; padding: 8px 12px; }
html body .detail-status[data-state=failed], html body .detail-status[data-state=minutes_failed] { color: var(--danger); background: #fff0f1; border-color: #efc8ce; }
html body .detail-metadata { border-radius: 12px; margin-bottom: 24px; }
html body .detail-metadata > div { padding: 18px 22px; background: #fff; }
html body .detail-metadata dt { font-size: 12px; margin-bottom: 5px; }
html body .detail-metadata dd { font-size: 14px; font-weight: 550; }
html body .detail-card { margin-top: 24px; padding: 28px; }
html body .transcript-text { background: #f8faff; color: var(--soft); border-radius: 10px; padding: 20px; font-family: inherit; font-size: 15px; line-height: 1.9; }
html body .transcript-segments { gap: 0; max-height: 530px; border: 1px solid var(--line); border-radius: 10px; padding-right: 0; }
html body .transcript-segment { padding: 18px 20px; border: 0; border-bottom: 1px solid #e6ebf3; border-radius: 0; background: #fff; }
html body .transcript-segment:last-child { border-bottom: 0; }
html body .transcript-speaker { color: var(--lime); background: var(--ui-brand-soft); padding: 3px 8px; border-radius: 5px; font-size: 12px; font-weight: 600; }
html body .transcript-time { font-size: 12px; color: var(--muted); font-weight: 500; }
html body .transcript-segment-text { color: var(--soft); font-size: 15px; line-height: 1.85; }
html body .meeting-transcript-pagination { font-size: 13px; }
html body .meeting-workflow-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; background: #f7f9fc; border-color: var(--line); border-radius: 10px; }
html body .meeting-workflow-steps li { display: flex; align-items: flex-start; flex-direction: column; gap: 5px; background: transparent; padding: 15px 14px; border-right: 1px solid var(--line); }
html body .meeting-workflow-steps li:last-child { border-right: 0; }
html body .meeting-workflow-steps li[data-current] { background: var(--ui-brand-soft); }
html body .meeting-workflow-steps li > span { font-size: 12px; font-weight: 600; }
html body .meeting-workflow-steps li > span:before { width: auto; margin-right: 8px; color: #73829b; }
html body .meeting-workflow-steps li > b { text-align: left; font-size: 11px; font-weight: 500; padding-left: 20px; }
html body .meeting-workflow-steps li > b[data-tone=complete] { color: var(--success); }
html body .meeting-workflow-steps li > b[data-tone=active] { color: #8a641c; }
html body .meeting-interaction-root { gap: 20px; margin-top: 24px; }
html body .meeting-interaction-section { padding: 24px; background: #fff; border-radius: 12px; }
html body .meeting-interaction-eyebrow { color: var(--lime); font-size: 10px; font-weight: 650; }
html body .meeting-interaction-heading h3 { color: var(--ui-ink); font-size: 19px; font-weight: 650; }
html body .meeting-interaction-hint, html body .meeting-empty-state { font-size: 13px; line-height: 1.8; }
html body .meeting-speaker-card { background: #f8faff; padding: 20px; gap: 18px 22px; border-radius: 10px; margin-top: 18px; }
html body .meeting-speaker-heading strong { color: var(--ui-ink); font-size: 15px; }
html body .meeting-speaker-heading span, html body .meeting-speaker-snippet > span, html body .meeting-speaker-audio > span { font-size: 12px; }
html body .meeting-speaker-snippet blockquote { font-size: 14px; line-height: 1.85; color: var(--soft); }
html body .meeting-speaker-audio audio { height: 40px; }
html body .meeting-field { font-size: 13px; font-weight: 500; gap: 8px; }
html body .meeting-field small { font-size: 11px; line-height: 1.6; }
html body .meeting-section-footer { padding-top: 18px; margin-top: 20px; gap: 12px; }
html body .meeting-section-footer .button { min-height: 44px; font-size: 14px; padding: 10px 16px; }
html body .meeting-stage-status { color: var(--soft); font-size: 14px; font-weight: 600; }
html body .meeting-minutes-content { background: #fafbfe; color: var(--soft); padding: 24px; border-radius: 10px; font-family: inherit; font-size: 15px; line-height: 1.95; max-height: 640px; }
html body .meeting-publish-result { font-size: 14px; }
html body .meeting-publish-link { font-size: 14px; color: var(--lime); text-underline-offset: 4px; overflow-wrap: anywhere; }
html body .meeting-identity-summary, html body .meeting-slot { background: #f8faff; border-color: var(--line); border-radius: 10px; padding: 18px; }
html body .meeting-slot h3 { color: var(--ui-ink); font-size: 16px; }
html body .meeting-issue-note { color: #875c0d; font-size: 12px; }
html body :is(.meeting-action-message, .meeting-command-status, .meeting-validation, .meeting-api-unavailable, .meeting-read-error) { font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
html body .admin-users-view, html body .admin-files-view { max-width: 1240px; margin-inline: auto; }
html body .admin-users-view { gap: 20px; }
html body .admin-users-view .detail-card { margin-top: 0; }
html body .admin-user-form { gap: 18px; }
html body .admin-user-form label { font-size: 13px; font-weight: 500; }
html body .admin-files-filters { background: #fff; padding: 22px; border: 1px solid var(--line); border-radius: 12px; gap: 16px; align-items: end; }
html body .admin-files-filters .filter-field { width: 100%; }
html body .admin-files-table-wrap { border-radius: 12px; }
html body :is(.admin-user-table, .admin-files-table) th { background: #f7f9fc; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 14px 16px; }
html body :is(.admin-user-table, .admin-files-table) td { color: var(--soft); font-size: 13px; padding: 17px 16px; border-color: #e6ebf3; }
html body :is(.admin-user-table, .admin-files-table) tbody tr:hover { background: #fafbfe; }
html body .admin-file-name { color: var(--ui-ink); font-size: 14px; font-weight: 550; }
html body .admin-file-technical { font-size: 11px; }
html body .admin-files-operation-note { color: var(--muted); font-size: 12px; margin-block: 16px; }
html body .admin-recording-tech dd { font-size: 12px; color: var(--soft); }
html body .footer-note { padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
/* Legacy read-only meeting route uses its own fixed root. */
html body .pmr-shell { background: var(--bg); color: var(--ui-ink); font-family: inherit; }
html body .pmr-wrap { max-width: 1120px; padding-top: 32px; }
html body .pmr-card { background: #fff; border-color: var(--line); padding: 24px; box-shadow: var(--ui-shadow); }
html body :is(.pmr-back, .pmr-pagination button) { background: #fff; border-color: #cbd5e5; color: var(--lime); min-height: 44px; }
html body .pmr-heading h1 { font-size: 30px; }
html body .pmr-heading b { color: var(--lime); }
html body .pmr-metrics { border-color: var(--line); background: var(--line); border-radius: 10px; overflow: hidden; }
html body .pmr-metrics div { background: #fff; padding: 18px; }
html body .pmr-metrics dt, html body .pmr-heading span, html body .pmr-card-head span, html body .pmr-readonly, html body .pmr-workflow b, html body .pmr-segments article div, html body .pmr-actions p { color: var(--muted); font-size: 12px; }
html body .pmr-workflow li, html body .pmr-segments article, html body .pmr-review-items details { border-color: var(--line); }
html body .pmr-workflow b[data-tone=complete] { color: var(--success); }
html body .pmr-workflow b[data-tone=active], html body .pmr-message { color: #875c0d; }
html body .pmr-review-items p { color: var(--soft); font-size: 14px; }
@media (max-width: 1180px) {
  html body .app-shell { padding-inline: 28px; }
  html body .topbar { grid-template-columns: auto 1fr; gap: 10px 20px; padding-block: 14px 10px; }
  html body .account-area { grid-column: 2; grid-row: 1; }
  html body .primary-nav { grid-column: 1 / -1; grid-row: 2; padding-top: 4px; }
}
@media (max-width: 760px) {
  html body .app-shell { padding-inline: 18px; }
  html body .topbar { gap: 8px 12px; }
  html body .primary-nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-block: 4px; max-width: 100%; }
  html body .nav-link { flex: 0 0 auto; padding: 9px 12px; }
  html body .account-name { max-width: 110px; }
  html body .account-area { gap: 6px; }
  html body .main-content { padding-block: 28px 36px; }
  html body .login-card { padding: 28px; }
  html body .scene-view { padding-top: 4px; }
  html body .scene-option { min-height: 126px; padding: 18px 14px; grid-template-columns: minmax(0, 1fr) 16px; gap: 8px; }
  html body .scene-index { display: none; }
  html body .scene-copy strong { font-size: 16px; }
  html body .scene-copy small { font-size: 12px; }
  html body .input-method-card { min-height: 110px; padding: 20px; }
  html body .audio-upload-card, html body .detail-card { padding: 20px; }
  html body .audio-file-picker { padding: 20px; }
  html body .history-row { padding: 18px; align-items: flex-start; }
  html body .history-details { grid-template-columns: 1fr; gap: 6px; }
  html body .history-details strong { white-space: normal; overflow-wrap: anywhere; }
  html body .detail-heading { flex-direction: column; gap: 14px; }
  html body .detail-metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body .detail-metadata > div { padding: 14px 16px; }
  html body .meeting-workflow-steps { grid-template-columns: 1fr; }
  html body .meeting-workflow-steps li { flex-direction: row; justify-content: space-between; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  html body .meeting-workflow-steps li:last-child { border-bottom: 0; }
  html body .meeting-workflow-steps li > b { padding-left: 0; }
  html body .meeting-interaction-section { padding: 18px; }
  html body .meeting-speaker-card { grid-template-columns: 1fr; padding: 16px; }
  html body .meeting-speaker-snippet, html body .meeting-speaker-audio { grid-column: auto; }
  html body .meeting-minutes-content { padding: 16px; }
  html body .admin-files-filters { padding: 16px; }
  html body .pmr-heading { flex-wrap: wrap; }
}
@media (max-width: 440px) {
  html body .app-shell { padding-inline: 12px; }
  html body .brand { font-size: 11px; gap: 7px; }
  html body .account-area { max-width: 210px; }
  html body .auth-logout { padding-inline: 7px; min-height: 44px; font-size: 11px; }
  html body .account-role { font-size: 10px; }
  html body .login-card { padding: 24px 20px; }
  html body .detail-card { padding: 16px; }
  html body .scene-options { gap: 10px; }
  html body .meeting-interaction-section { padding: 14px; }
  html body .history-row { gap: 12px; padding: 16px 14px; }
  html body .history-open { padding-inline: 10px; }
  html body .admin-files-filters { grid-template-columns: 1fr; }
  html body .admin-files-filter-actions { flex-wrap: wrap; }
  html body .transcript-segment { padding: 16px; }
  html body .footer-note { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html body *, html body *::before, html body *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* UI019: keep all three scene children in a horizontal row. */
@media(max-width:600px){html body .scene-options{grid-template-columns:minmax(0,1fr)}html body .scene-option{grid-template-columns:44px minmax(0,1fr) 18px;min-height:96px;padding:16px;gap:14px}html body .scene-copy{min-width:0;writing-mode:horizontal-tb}html body .scene-copy strong,html body .scene-copy small{display:block;word-break:normal;overflow-wrap:break-word}html body .ui-phase-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}html body .ui-phase-nav button{padding:10px 4px;white-space:nowrap}html body .ui-phase-nav [data-ui-phase=publish]{grid-column:1/-1}}

@media(max-width:600px){html body .scene-option .scene-index{display:grid!important;place-items:center}}

html body button.transcript-segment-text{display:block;width:100%;text-align:left;white-space:pre-wrap;line-height:1.8;border:0;background:transparent;color:inherit;padding:8px;border-radius:6px;cursor:pointer}html body button.transcript-segment-text:hover{background:#edf2fc}html body [data-full-recording]{padding:12px;border:1px solid #dce3ef;border-radius:10px;margin-bottom:16px}
