@charset "UTF-8";
:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: #333;
  font-size: 14px;
  font-synthesis: none;
  --blue: #519be2;
  --teal: #20b7b1;
  --gray: #f6f7f7;
  --muted: #747b82;
  --border: #dedede;
  --header-height: 56px;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
button, input, select, textarea { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; transition: background .15s, box-shadow .15s; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:not(:disabled):hover { filter: brightness(.97); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #529cde; outline-offset: 3px; }
button, a, summary { touch-action: manipulation; }
input, textarea, select { min-width: 0; }
h1, h2, h3, p { margin-top: 0; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
p { line-height: 1.8; }
[hidden] { display: none !important; }
.header { height: var(--header-height); border-bottom: 1px solid #e4e7e9; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; padding: 0 24px 0 18px; }
.brand { display: flex; flex: 0 0 auto; align-items: center; min-height: 44px; }
.brand img { width: 82px; height: auto; }
.brand-credit { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 10px; color: #6b7982; white-space: nowrap; text-decoration: none; }
.brand-credit > span { font-size: 12px; font-weight: 600; color: #4c6a7a; }
.brand-credit:hover > span { color: #287bb0; text-decoration: underline; text-underline-offset: 3px; }
.header-room { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #636b72; font-size: 13px; }
.local-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #477e70; background: #eef8f5; padding: 5px 10px; border-radius: 12px; white-space: nowrap; }
.local-badge > span { height: 5px; width: 5px; background: #43af93; border-radius: 50%; }
.header-links { display: flex; align-items: center; justify-self: end; gap: 14px; min-width: 0; max-width: 100%; }
.header-links > a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 0; padding: 8px; color: #366f9b; font-size: 12px; line-height: 1.5; text-align: center; text-decoration: none; }
.header-links > a > span { flex: 0 0 auto; font-size: 12px; }
.technology-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.header-links > .consultation-link { flex: 0 0 auto; padding: 8px 14px; border: 1px solid #bfd6df; border-radius: 24px; background: #f0f7fa; color: #286779; white-space: nowrap; }
.consultation-link:hover { background: #e5f1f6; border-color: #88b4c6; }
.plain-button { background: transparent; border: 0; color: #697078; padding: 10px 8px; min-height: 44px; font-size: 12px; }
.plain-button:hover { color: #357dc2; }
#help-button { flex: 0 0 auto; }
.status-banner { padding: 12px 25px; background: #edf5fc; color: #296295; font-size: 13px; line-height: 1.7; border-bottom: 1px solid #cbdff1; overflow-wrap: anywhere; }
.status-banner[data-kind="error"] { background: #fff0ed; color: #b64132; border-color: #f4cec5; }
.status-banner[data-kind="success"] { background: #eff9f3; color: #317652; border-color: #cbe8d7; }

/* Keep Sloos's three familiar areas, with one clear action in each. */
.setup-view { min-height: calc(100dvh - var(--header-height)); display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr) minmax(0, 1fr); }
.guide-panel { padding: 72px clamp(28px, 3.5vw, 56px) 42px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.guide-heading .eyebrow { color: #7b8b95; font-size: 11px; letter-spacing: .07em; margin-bottom: 15px; }
.guide-heading h1 { font-size: clamp(25px, 2.3vw, 34px); line-height: 1.6; letter-spacing: .015em; font-weight: 650; margin-bottom: 18px; }
.guide-heading > p:last-child { color: var(--muted); font-size: 12px; margin-bottom: 0; }
.guide-illustration { display: block; width: min(100%, 265px); height: 164px; object-fit: contain; margin: 38px 0 28px; }
.guide-steps { display: flex; width: 100%; max-width: 350px; margin: 0; padding: 0; list-style: none; }
.guide-steps li { flex: 1; position: relative; display: flex; align-items: center; flex-direction: column; gap: 8px; font-size: 12px; white-space: nowrap; }
.guide-steps li + li::before { content: "›"; position: absolute; left: -3px; top: 23px; color: #aab8c3; font-size: 20px; font-weight: 300; }
.step-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #edf6fc; color: #4a95d4; font-size: 10px; font-variant-numeric: tabular-nums; }
.guide-privacy { color: #7a878d; font-size: 11px; margin: 29px 0 0; }
.speaker-panel { background: var(--gray); padding: 48px 30px; text-align: center; min-width: 0; }
.setup-panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 13px; text-align: left; }
.setup-panel-heading h2 { margin: 0; }
.optional-badge { color: #6d8581; font-size: 10px; border: 1px solid #d5e3df; border-radius: 10px; padding: 3px 7px; white-space: nowrap; }
.description { color: var(--muted); font-size: 12px; margin-bottom: 20px; }
.speaker-panel > .description { text-align: left; }
.empty-participants { padding: 28px 0 22px; color: #8a9196; font-size: 12px; }
.empty-participants p { margin: 0; }
.pill { border: 0; border-radius: 24px; min-height: 44px; padding: 11px 22px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; line-height: 1.5; }
.pill:hover { box-shadow: 0 3px 12px #0002; }
.pill-teal { background: linear-gradient(45deg, #22bda1, #058dc1); }
.pill-start { background: linear-gradient(45deg, #d82c91, #347dda); min-height: 48px; font-weight: 600; }
.registration-tip { margin: 18px 0 0; font-size: 11px; color: #7e878c; }
.settings-panel { padding: 48px 30px 28px; display: flex; flex-direction: column; min-width: 0; }
.settings-panel > h2 { margin-bottom: 6px; }
.settings-fields { display: grid; gap: 4px; }
.settings-field { min-width: 0; }
.field-label { display: block; font-size: 12px; color: #6f7780; margin: 20px 0 5px; }
.line-input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid #bbc3c9; color: #444; padding: 10px 0; border-radius: 0; min-height: 44px; }
.line-input::placeholder { color: #959da4; }
.start-area { margin-top: 29px; text-align: center; }
.start-area .pill { width: 100%; }
.start-area .small-note { margin-top: 11px; }
.room-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 8px; }
.speech-status { font-size: 11px; line-height: 1.75; color: #607b8d; margin: 10px 0 0; overflow-wrap: anywhere; }
.meeting-audio-controls { margin-top: 14px; }
.meeting-audio-controls .small-note { margin-top: 6px; }
.speech-settings { border-top: 1px solid #e5e9ec; margin-top: 20px; }
.speech-settings > summary { display: flex; align-items: center; justify-content: space-between; min-height: 46px; font-size: 12px; color: #707d88; list-style: none; cursor: pointer; }
.speech-settings > summary::-webkit-details-marker { display: none; }
.speech-settings > summary::after { content: "+"; font-size: 18px; font-weight: 300; color: #8a9aa7; }
.speech-settings[open] > summary::after { content: "−"; }
.speech-settings .field-label { margin-top: 7px; }
.outline-button { background: transparent; padding: 10px 16px; min-height: 44px; border: 1px solid #bcc6cc; border-radius: 22px; font-size: 12px; color: #63707a; line-height: 1.5; }
.speech-settings .outline-button { width: 100%; margin-top: 17px; font-size: 12px; }
.small-note { font-size: 11px; line-height: 1.8; color: #7e878e; margin: 12px 0 0; }
.privacy-note { font-size: 11px; line-height: 1.8; color: #818a90; border-top: 1px solid #e5e9ec; margin: auto 0 0; padding-top: 17px; }
.settings-panel .privacy-note { margin-top: 19px; }
.setup-reset { align-self: flex-end; margin-top: 9px; }
.participants { margin-bottom: 20px; }
.participants:empty { margin-bottom: 0; }
.participant-row { padding: 8px 0; border-bottom: 1px solid #dde2e5; display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; }
.participant-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #babec3; }
.participant-row.is-active .participant-dot { background: var(--teal); box-shadow: 0 0 0 4px #27bdac21; }
.participant-detail { flex: 1; overflow: hidden; }
.participant-name { font-size: 13px; display: block; overflow-wrap: anywhere; }
.participant-caption { display: block; font-size: 10px; color: #858e95; margin-top: 3px; }
.participant-menu { position: relative; flex: 0 0 auto; }
.participant-menu summary, .message-menu summary { cursor: pointer; list-style: none; color: #7d8993; display: flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; padding: 8px; font-size: 18px; line-height: 1; border-radius: 50%; }
.participant-menu summary:hover, .message-menu summary:hover { background: #eaf1f6; }
.participant-menu summary::-webkit-details-marker, .message-menu summary::-webkit-details-marker { display: none; }
.context-menu { position: absolute; right: 0; top: 43px; z-index: 3; width: 160px; background: #fff; box-shadow: 0 3px 18px #0002; border: 1px solid #e5e5e5; border-radius: 8px; padding: 5px; }
.context-menu button { display: block; width: 100%; min-height: 44px; text-align: left; padding: 10px; color: #555; border: 0; background: #fff; font-size: 12px; border-radius: 4px; }
.context-menu button:hover { background: #f0f6fb; }
.danger, .context-menu button.danger { color: #b95247; }
.outline-button.danger { border-color: #db9b94; }

.meeting-view { display: grid; grid-template-columns: minmax(230px, 24%) minmax(0, 1fr); height: calc(100dvh - var(--header-height)); min-height: 540px; }
.member-panel { background: var(--gray); padding: 30px 25px 22px; overflow: auto; display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.panel-heading, .button-row { display: flex; align-items: center; gap: 10px; }
.panel-heading { justify-content: space-between; }
.panel-heading h2 { margin-bottom: 12px; }
.counter { color: #87939c; font-size: 11px; font-weight: 400; }
.member-panel > .pill { align-self: center; font-size: 12px; }
.session-info { margin-top: 26px; padding-top: 23px; border-top: 1px solid #dde2e5; }
.recording-status { color: #78848e; font-size: 12px; }
.recording-status.is-recording { color: #b9594d; }
.recording-status.is-recording::before { content: ""; display: inline-block; height: 6px; width: 6px; background: #d76d5c; border-radius: 50%; margin-right: 6px; }
.elapsed { float: right; font-size: 13px; color: #707d87; font-variant-numeric: tabular-nums; }
.audio-meter { height: 4px; background: #dfe5e5; overflow: hidden; border-radius: 3px; margin-top: 18px; }
.audio-meter > span { display: block; width: 0; height: 100%; background: linear-gradient(to right, #2ccca5, #0199d4); transition: width .12s; }
.export-controls { border-top: 1px solid #dde2e5; margin-top: 26px; padding-top: 23px; }
.export-controls h3 { font-size: 12px; color: #737e87; }
.export-controls .outline-button { flex: 1; background: #fff; }
.session-actions { display: flex; justify-content: space-between; margin-top: 18px; margin-bottom: 18px; gap: 4px; }
.minutes-panel { position: relative; display: flex; flex-direction: column; overflow: hidden; min-width: 0; min-height: 0; }
.live-voice { background: #e5effa; min-height: 112px; padding: 18px 28px; flex: 0 0 auto; }
.live-heading { display: flex; justify-content: space-between; gap: 16px; color: #3d82bf; align-items: center; }
.live-heading h2 { font-size: 14px; margin: 0; }
.live-heading > span { font-size: 10px; }
.live-content { display: flex; align-items: center; gap: 24px; padding-top: 18px; min-height: 48px; }
.live-content p { margin: 0; color: #387ab8; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.live-copy { flex: 1; min-width: 0; }
.live-copy .live-speaker { font-size: 15px; font-weight: 600; color: #3b6d8c; }
.live-speaker[data-live-status="matched"] { color: #216d75; }
.live-copy #interim-transcript, .live-copy #preview-transcript { margin-top: 5px; font-size: 12px; color: #536f83; overflow-wrap: anywhere; }
.voice-animation { display: flex; height: 25px; min-width: 27px; align-items: center; gap: 3px; }
.voice-animation i { width: 3px; height: 5px; border-radius: 1px; background: #73a9dd; }
.voice-animation.is-active i { animation: voice 1s ease-in-out infinite; }
.voice-animation i:nth-child(2) { animation-delay: -.2s; }
.voice-animation i:nth-child(3) { animation-delay: -.4s; }
.voice-animation i:nth-child(4) { animation-delay: -.6s; }
.voice-animation i:nth-child(5) { animation-delay: -.8s; }
@keyframes voice { 0%, 100% { height: 5px; } 50% { height: 24px; } }
.minutes-heading { min-height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 10px 26px; gap: 14px; border-bottom: 1px solid #e9edef; z-index: 1; flex: 0 0 auto; }
.minutes-heading h2 { font-size: 14px; margin: 0; white-space: nowrap; }
.minutes-title { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; min-width: 0; }
.processing-status { color: #596f80; font-size: 11px; line-height: 1.5; white-space: nowrap; }
.processing-status::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: #7faecb; animation: processing 1.6s ease-in-out infinite; vertical-align: 1px; }
@keyframes processing { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.minutes-heading .counter { margin-left: 5px; }
.minutes-heading .outline-button { font-size: 12px; }
.session-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; margin: 18px 26px 0; background: #f0faf8; border: 1px solid #d5ece5; border-radius: 10px; flex: 0 0 auto; }
.session-summary > div { min-width: 0; }
.session-summary h3 { font-size: 14px; color: #3e746a; margin: 0 0 4px; }
.session-summary p { font-size: 12px; color: #65817b; margin: 0; overflow-wrap: anywhere; }
.session-summary .pill { flex: 0 0 auto; font-size: 12px; }
.transcript { flex: 1 1 0; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 25px 32px 40px; scroll-behavior: smooth; }
.transcript-empty { text-align: center; margin: 9vh 0 0; color: #89959e; }
.transcript-empty p { margin-bottom: 5px; font-size: 16px; }
.transcript-empty span { font-size: 12px; color: #89959e; }
.speech-row { display: flex; margin: 0 0 22px; gap: 6px; align-items: flex-start; }
.speech-row.mine { flex-direction: row-reverse; }
.speech { max-width: 77%; min-width: 110px; }
.speech-row.mine .speech { text-align: right; }
.bubble { background: #eef1f3; padding: 12px 18px; border-radius: 21px 21px 21px 0; color: #333; font-size: 14px; line-height: 1.8; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; }
.speech-row.mine .bubble { background: #458cd0; color: #fff; border-radius: 21px 21px 0 21px; }
.speech-meta { margin-top: 6px; font-size: 10px; color: #808b95; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.speech-row.mine .speech-meta { justify-content: flex-end; }
.speech-meta .needs-review { color: #825409; background: #fff4d6; border-radius: 4px; padding: 2px 6px; }
.speech-speaker { color: #367fbf; font-size: 11px; overflow-wrap: anywhere; }
.speech-confidence { color: #808b95; }
.message-menu { position: relative; flex: 0 0 44px; }
.message-menu .context-menu { right: 0; }
.speech-row.mine .message-menu .context-menu { left: 0; right: auto; }
.latest-messages { position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%); z-index: 2; min-height: 44px; border: 1px solid #cbdfee; border-radius: 24px; color: #3479b7; padding: 10px 18px; background: #fff; box-shadow: 0 3px 14px #25466820; font-size: 12px; white-space: nowrap; }
.latest-messages > span { margin-right: 5px; }
.transcript-footer { display: flex; justify-content: space-between; gap: 15px; padding: 12px 25px; border-top: 1px solid #e9edef; color: #818e98; font-size: 10px; line-height: 1.7; flex: 0 0 auto; }

.dialog { border: 0; padding: 0; max-width: calc(100vw - 32px); max-height: calc(100dvh - 40px); box-shadow: 0 14px 55px #0002; border-radius: 12px; color: #444; }
.dialog::backdrop { background: #263a5061; backdrop-filter: blur(2px); }
.dialog-close { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; background: none; border: 0; border-radius: 50%; color: #86929c; font-size: 26px; z-index: 1; }
.enrollment-dialog { width: 850px; }
.enrollment-grid { display: grid; grid-template-columns: .85fr 1.15fr; }
.enrollment-guide { padding: 43px 34px; background: #f4f8f8; }
.enrollment-guide h2 { font-size: 22px; margin-bottom: 32px; }
.enrollment-intro { font-size: 15px; color: #607b80; line-height: 1.9; margin-bottom: 31px; }
.enrollment-intro strong { font-size: 31px; font-weight: 500; color: #249fa6; letter-spacing: .02em; }
.check-list { padding: 0; list-style: none; margin: 0; }
.check-list li { font-size: 12px; line-height: 1.8; padding-left: 23px; background: url("./assets/check.png") no-repeat left 6px / 12px auto; margin-bottom: 16px; color: #70818a; }
.enrollment-form { padding: 37px 36px 20px; }
.enrollment-form > .field-label { margin-top: 3px; }
.enrollment-meeting-note { background: #eef7fc; border-radius: 6px; color: #487994; font-size: 11px; line-height: 1.8; margin: 15px 0 0; padding: 10px 12px; }
.example-text { border-left: 2px solid #c8dfea; padding: 11px 14px; color: #677883; font-size: 12px; line-height: 1.9; background: #f5f9fc; margin-top: 22px; }
.example-text > span { display: block; color: #668ca6; font-size: 10px; margin-bottom: 6px; }
.record-button { margin: 22px auto 10px; display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 56px; background: #fff; border: 1px solid #40a5b4; border-radius: 28px; padding: 12px 20px; color: #278592; }
.record-button img { width: 17px; height: auto; }
.record-button span { font-size: 13px; }
.enrollment-form > .plain-button { display: block; margin: 3px auto 0; }
.enrollment-progress-area { display: flex; align-items: center; gap: 15px; margin: 17px 0 8px; }
.enrollment-countdown { flex: 0 0 58px; width: 58px; height: 58px; display: flex; align-items: baseline; justify-content: center; padding-top: 10px; gap: 2px; border: 2px solid #bde5e2; background: #eff9f8; border-radius: 50%; color: #258f97; }
#enrollment-countdown { font-size: 25px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.enrollment-countdown > span:last-child { font-size: 10px; }
.enrollment-progress-detail { flex: 1; min-width: 0; }
progress { width: 100%; height: 8px; accent-color: #31b8b5; }
#enrollment-status { font-size: 12px; color: #358791; margin: 7px 0 0; overflow-wrap: anywhere; }
.file-enrollment { color: #7d8a94; font-size: 11px; text-align: center; }
.file-enrollment summary { cursor: pointer; min-height: 44px; padding: 13px 0; }
.file-enrollment p { text-align: left; margin: 0 0 10px; }
.file-label { display: block; }
.file-label input { display: block; font-size: 11px; margin: 10px 0; width: 100%; min-height: 44px; }
.file-label input::file-selector-button { min-height: 44px; font: inherit; padding: 8px 12px; background: #f5f9fc; border: 1px solid #bcc6cc; border-radius: 5px; color: #617785; cursor: pointer; }
.small-dialog { width: 450px; padding: 30px; }
.small-dialog h2 { font-weight: 600; margin-bottom: 20px; }
.small-dialog > p { font-size: 13px; color: #777; }
.small-dialog textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; resize: vertical; line-height: 1.8; margin-top: 7px; }
.dialog-actions { margin-top: 25px; display: flex; gap: 12px; justify-content: flex-end; align-items: center; }
.dialog-actions .pill { padding: 10px 20px; }
.help-steps { padding-left: 20px; }
.help-steps li { padding-left: 5px; margin-bottom: 23px; }
.help-steps li::marker { color: #4496bb; }
.help-steps strong { font-size: 13px; font-weight: 600; }
.help-steps p { font-size: 12px; color: #788690; margin: 7px 0 0; }
.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; }
.noscript { padding: 20px; background: #fff0ec; }

@media (min-width: 1500px) {
  .setup-view { grid-template-columns: 42% 29% 29%; }
  .guide-panel { padding-top: 86px; }
  .speaker-panel, .settings-panel { padding: 56px 42px 32px; }
  .guide-illustration { width: 290px; height: 180px; }
}
@media (max-width: 1100px) {
  :root { --header-height: 108px; }
  .header { grid-template-columns: auto auto minmax(0, 1fr) auto auto; grid-template-rows: 44px 44px; row-gap: 4px; padding-top: 6px; padding-bottom: 9px; }
  .header-links { grid-column: 1 / -1; }
  .setup-view { grid-template-columns: 36% 32% 32%; }
  .guide-panel { padding: 58px 22px 32px; }
  .guide-heading h1 { font-size: 25px; }
  .speaker-panel, .settings-panel { padding: 40px 22px 26px; }
  .optional-badge { font-size: 9px; padding: 3px 5px; }
  .meeting-view { grid-template-columns: 235px minmax(0, 1fr); }
  .member-panel { padding: 25px 20px; }
  .transcript-footer { flex-direction: column; gap: 0; }
  .session-summary { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 800px) {
  .setup-view { grid-template-columns: 1fr 1fr; min-height: calc(100dvh - var(--header-height)); }
  .guide-panel { grid-column: 1 / -1; padding: 25px 24px 21px; border-bottom: 1px solid #edf0f2; }
  .guide-heading .eyebrow { margin-bottom: 6px; }
  .guide-heading h1 { font-size: 24px; margin-bottom: 7px; line-height: 1.5; }
  .guide-heading h1 br { display: none; }
  .guide-illustration { display: none; }
  .guide-steps { margin-top: 18px; max-width: 360px; }
  .guide-steps li { flex-direction: row; justify-content: center; gap: 7px; }
  .guide-steps li + li::before { top: 0; }
  .step-number { width: 25px; height: 25px; }
  .guide-privacy { margin-top: 13px; font-size: 10px; }
  .speaker-panel, .settings-panel { padding: 28px 24px; }
  .empty-participants { padding: 25px 0 20px; }
  .meeting-view { grid-template-columns: 205px minmax(0, 1fr); }
  .member-panel { padding: 22px 15px; }
  .live-voice { padding: 17px 20px; }
  .speech { max-width: calc(100% - 50px); }
  .transcript { padding: 22px 20px 40px; }
  .minutes-heading { padding: 10px 18px; }
  .live-heading > span { max-width: 60%; text-align: right; }
  .session-summary { margin: 15px 18px 0; padding: 15px; }
  .enrollment-grid { grid-template-columns: 1fr; }
  .enrollment-dialog { width: 510px; }
  .enrollment-guide { padding: 26px 30px 19px; }
  .enrollment-guide h2 { font-size: 20px; margin-bottom: 12px; }
  .enrollment-intro { font-size: 13px; margin-bottom: 12px; }
  .enrollment-intro br { display: none; }
  .enrollment-intro strong { font-size: 21px; }
  .check-list li { margin-bottom: 4px; }
  .enrollment-form { padding: 24px 30px 16px; }
}
@media (max-width: 580px) {
  .header { grid-template-columns: auto auto minmax(0, 1fr) auto; column-gap: 10px; padding-left: 14px; padding-right: 14px; }
  .brand img { width: 70px; }
  .brand-credit { gap: 3px; }
  .brand-credit > span { font-size: 11px; }
  .header-room { font-size: 11px; }
  .header-links { width: 100%; justify-content: space-between; gap: 8px; }
  .header-links > a { padding-left: 4px; padding-right: 4px; font-size: 11px; }
  .header-links > .consultation-link { padding-left: 10px; padding-right: 10px; }
  .local-badge { display: none; }
  #help-button { margin-left: auto; white-space: nowrap; }
  .setup-view { display: flex; flex-direction: column; }
  .guide-panel { padding: 18px 20px 16px; }
  .guide-heading .eyebrow { display: none; }
  .guide-heading h1 { font-size: 22px; line-height: 1.45; margin-bottom: 6px; }
  .guide-heading h1 br { display: initial; }
  .guide-heading > p:last-child { font-size: 11px; }
  .guide-steps { margin-top: 14px; }
  .guide-steps li { font-size: 11px; gap: 6px; }
  .guide-privacy { margin-top: 10px; }
  .speaker-panel, .settings-panel { padding: 20px 22px; }
  .setup-panel-heading { margin-bottom: 7px; }
  .setup-panel-heading h2, .settings-panel > h2 { font-size: 16px; }
  .optional-badge { font-size: 10px; padding: 3px 7px; }
  .speaker-panel > .description { font-size: 11px; margin-bottom: 0; }
  .empty-participants { padding: 12px 0; font-size: 11px; }
  .speaker-panel > .pill { width: 100%; }
  .registration-tip { margin-top: 10px; font-size: 10px; }
  .registration-tip br { display: none; }
  .settings-panel > h2 { margin-bottom: 0; }
  .settings-fields { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
  .settings-fields .field-label { margin-top: 14px; font-size: 11px; }
  .line-input { font-size: 16px; }
  .settings-fields .line-input { padding-right: 4px; }
  .start-area { margin-top: 19px; }
  .start-area .small-note { font-size: 10px; margin-top: 9px; }
  .speech-status { margin-top: 8px; font-size: 10px; }
  .speech-settings { margin-top: 12px; }
  .speech-settings > summary { min-height: 44px; }
  .speech-settings .line-input { font-size: 13px; }
  .settings-panel .privacy-note { margin-top: 11px; padding-top: 13px; font-size: 10px; }
  .setup-reset { margin-top: 3px; }
  .meeting-view { display: flex; flex-direction: column; height: auto; min-height: calc(100dvh - var(--header-height)); }
  .member-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; overflow: visible; padding: 12px 18px; }
  .panel-heading h2 { font-size: 14px; margin: 0; }
  .panel-heading .counter { margin-left: 10px; }
  .panel-heading { justify-content: flex-start; }
  .member-panel > .pill { grid-column: 2; grid-row: 1; font-size: 11px; padding: 10px 15px; }
  .member-panel > .participants { grid-column: 1 / -1; margin-bottom: 0; display: flex; gap: 0 12px; flex-wrap: wrap; }
  .member-panel > .participants:empty { display: none; }
  .member-panel .participant-row { flex: 1 1 calc(50% - 12px); padding: 2px 0; max-width: 100%; }
  .participant-name { font-size: 12px; }
  .participant-caption { font-size: 10px; }
  .member-panel > .description { grid-column: 1 / -1; margin: 0; font-size: 11px; }
  .member-panel > .description br { display: none; }
  .session-info { margin: 0; padding-top: 10px; grid-column: 1 / -1; }
  .audio-meter { margin-top: 10px; }
  .session-info .small-note { margin-top: 6px; font-size: 10px; }
  .export-controls { grid-column: 1; border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: 8px; }
  .export-controls h3, .export-controls .small-note { display: none; }
  .export-controls .button-row { gap: 6px; }
  .export-controls .outline-button { padding: 10px 12px; font-size: 11px; }
  .session-actions { grid-column: 2; margin: 0; align-items: center; gap: 0; }
  .session-actions .plain-button { font-size: 10px; padding: 10px 5px; }
  .member-panel > .privacy-note { display: none; }
  .minutes-panel { min-height: 470px; height: 72dvh; }
  .live-voice { min-height: 96px; padding: 14px 18px; }
  .live-content { padding-top: 15px; gap: 18px; }
  .live-content p { font-size: 12px; }
  .live-copy .live-speaker { font-size: 14px; }
  .live-copy #interim-transcript, .live-copy #preview-transcript { font-size: 11px; }
  .live-heading > span { font-size: 9px; }
  .minutes-heading { min-height: 64px; gap: 8px; padding: 9px 18px; }
  .minutes-heading .button-row { gap: 6px; }
  .minutes-heading .outline-button { padding: 10px 13px; font-size: 11px; }
  .minutes-title { flex-direction: column; align-items: flex-start; gap: 3px; }
  .processing-status { font-size: 10px; }
  .session-summary { margin: 13px 15px 0; padding: 14px; gap: 10px; }
  .session-summary h3 { font-size: 13px; }
  .session-summary p { font-size: 11px; }
  .session-summary .pill { width: 100%; }
  .transcript { padding: 20px 15px 40px; }
  .bubble { padding: 10px 14px; font-size: 13px; }
  .transcript-empty { margin-top: 6vh; }
  .transcript-empty p { font-size: 14px; }
  .transcript-empty span { font-size: 11px; }
  .transcript-footer { font-size: 9px; padding: 10px 15px; }
  .latest-messages { bottom: 64px; }
  .dialog { max-width: calc(100vw - 22px); max-height: calc(100dvh - 24px); }
  .enrollment-guide { padding: 24px 23px 16px; }
  .enrollment-guide h2 { font-size: 19px; padding-right: 25px; }
  .enrollment-intro { margin-bottom: 9px; }
  .check-list li { font-size: 11px; }
  .enrollment-form { padding: 20px 23px 13px; }
  .example-text { margin-top: 17px; font-size: 11px; line-height: 1.85; }
  .record-button { margin-top: 18px; }
  .small-dialog { padding: 25px; }
  .dialog-actions { gap: 8px; }
  .dialog-actions .pill, .dialog-actions .outline-button { font-size: 12px; padding: 10px 17px; }
  .status-banner { padding: 11px 18px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
