:root {
  --navy: #192d50;
  --navy-deep: #10203b;
  --ink: #21304a;
  --cream: #fbf7ef;
  --paper: #fffdf8;
  --gold: #e2ab58;
  --gold-light: #f6d9a7;
  --sage: #a8b9a7;
  --line: #e7e1d6;
  --muted: #748096;
  --white: #fff;
  --shadow: 0 24px 70px rgba(25, 45, 80, .13);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--cream); font-family: "DM Sans", sans-serif; overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.ambient { position: fixed; border-radius: 50%; filter: blur(2px); pointer-events: none; z-index: -1; }
.ambient-one { width: 560px; height: 560px; right: -230px; top: 90px; background: rgba(226,171,88,.12); }
.ambient-two { width: 420px; height: 420px; left: -220px; bottom: -120px; background: rgba(168,185,167,.13); }

.site-header { height: 84px; max-width: 1440px; margin: auto; padding: 0 52px; display: flex; align-items: center; justify-content: space-between; }
.brand { border: 0; background: none; display: flex; align-items: center; gap: 11px; cursor: pointer; padding: 0; }
.brand-mark { width: 40px; height: 40px; position: relative; }
.brand-mark img, .owl-mini img, .socrates-orb img, .owl-avatar img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-family: "Newsreader", serif; font-weight: 600; color: var(--navy); font-size: 23px; letter-spacing: -.02em; }
.brand-name span { color: var(--gold); }
.header-right { display: flex; align-items: center; gap: 18px; }
.prototype-pill { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: rgba(255,255,255,.58); border-radius: 99px; padding: 7px 12px; font-size: 12px; color: var(--muted); }
.prototype-pill i, .status-dot, .listening-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #60a374; box-shadow: 0 0 0 3px rgba(96,163,116,.14); }
.listening-dot.offline { background: #b66a62; box-shadow: 0 0 0 3px rgba(182,106,98,.14); }
.icon-button { border: 1px solid var(--line); border-radius: 50%; background: transparent; width: 34px; height: 34px; color: var(--muted); cursor: pointer; }

.screen { display: none; }
.screen.active { display: flex; }
#welcomeScreen { min-height: calc(100vh - 84px); max-width: 1280px; margin: auto; padding: 54px 52px 90px; align-items: center; gap: clamp(60px, 9vw, 150px); }
.welcome-copy { flex: 1; max-width: 610px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; color: #9a7339; font-size: 11px; font-weight: 700; }
h1, h2, h3 { font-family: "Newsreader", serif; }
h1 { margin: 20px 0 24px; font-size: clamp(50px, 5vw, 74px); font-weight: 500; line-height: .98; letter-spacing: -.045em; color: var(--navy); }
h1 em { color: #b27c31; font-weight: 500; }
.lede { font-size: 18px; line-height: 1.65; color: #69758a; max-width: 570px; }
.principles { margin-top: 46px; display: flex; gap: 26px; }
.principles > div { flex: 1; border-top: 1px solid #ddd3c3; padding-top: 13px; display: flex; gap: 10px; }
.principles span { color: var(--gold); font-family: "Newsreader", serif; font-size: 13px; }
.principles p { margin: 0; color: #7b8493; font-size: 11px; line-height: 1.4; }
.principles strong { display: block; color: var(--ink); font-size: 12px; margin-bottom: 4px; }

.setup-card { width: 420px; flex: 0 0 420px; padding: 30px; border-radius: 22px; background: rgba(255,253,248,.88); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.85); backdrop-filter: blur(14px); }
.card-heading { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.owl-mini { width: 48px; height: 48px; }
.card-heading span { color: var(--navy); font-family: "Newsreader", serif; font-size: 22px; font-weight: 600; }
.card-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.participant-list { display: grid; gap: 8px; margin: 16px 0; }
.setup-topic-field { margin-top: 16px; }
.setup-topic-field input { width: 100%; }
.participant-chip { display: flex; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; background: white; gap: 10px; animation: rise .25s ease; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; color: white; font-size: 12px; font-weight: 700; }
.participant-chip div:nth-child(2) { flex: 1; }
.participant-chip strong { display: block; font-size: 13px; }
.participant-chip small { color: var(--muted); font-size: 10px; }
.participant-chip button { border: 0; background: transparent; color: #a2a8b1; cursor: pointer; font-size: 18px; }
.add-person { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.add-person > .field-group { grid-column: 1/-1; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label, .dialog-card label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #68758a; }
.field-group label span { font-weight: 400; text-transform: none; letter-spacing: 0; }
input { border: 1px solid var(--line); background: white; border-radius: 9px; padding: 11px 12px; outline: none; min-width: 0; }
input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226,171,88,.12); }
.name-input-wrap { position: relative; display: flex; }
.name-input-wrap input { width: 100%; padding-right: 36px; }
.name-input-wrap button { position: absolute; right: 5px; top: 5px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #f4ede0; color: #a77a37; font-size: 8px; cursor: pointer; }
.name-input-wrap button.recording { background: #bd5b5b; color: white; animation: micPulse 1.3s infinite; }
.voice-enrollment { grid-column: 1/-1; padding: 11px; border-radius: 10px; background: #f4f0e8; border: 1px solid var(--line); }
.voice-enrollment p { margin: 0 0 9px; color: #68758a; font-size: 11px; line-height: 1.45; }
.voice-enrollment button { width: 100%; border: 1px solid #d9c9ad; border-radius: 8px; background: white; color: #8a642d; padding: 9px; font-size: 11px; font-weight: 700; cursor: pointer; }
.voice-enrollment button.recording { background: #bd5b5b; border-color: #bd5b5b; color: white; animation: micPulse 1.3s infinite; }
.voice-enrollment button:disabled { cursor: default; opacity: 1; }
.voice-enrollment small { display: block; color: var(--muted); font-size: 9px; margin-top: 7px; }
.voice-enrollment.enrolled { background: #eef5ed; border-color: #d5e5d2; }
.voice-enrollment.enrolled small { color: #4c7c58; font-weight: 700; }
.add-button { grid-column: 1/-1; border: 1px dashed #d9c9ad; border-radius: 9px; background: #fffaf0; color: #956b2f; padding: 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.add-button span { font-size: 16px; margin-right: 4px; }
.unlock-status { display: flex; gap: 11px; align-items: center; padding: 14px; background: #f2f0eb; border-radius: 11px; margin: 18px 0 13px; transition: .3s; }
.unlock-status.ready { background: #eef5ed; }
.lock-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: white; color: var(--gold); font-size: 18px; }
.unlock-status strong, .unlock-status span { display: block; font-size: 11px; }
.unlock-status span { color: var(--muted); margin-top: 2px; font-size: 10px; }
.primary-button { width: 100%; border: 0; border-radius: 10px; background: var(--navy); color: white; padding: 13px 16px; font-weight: 600; font-size: 13px; cursor: pointer; display: flex; justify-content: center; gap: 14px; transition: .2s; }
.primary-button:hover { background: #223c68; transform: translateY(-1px); }
.primary-button:disabled { background: #c5c8cc; cursor: not-allowed; transform: none; }
.text-button { display: block; margin: 11px auto -8px; border: 0; background: transparent; color: #9a7339; font-size: 11px; cursor: pointer; }

.conversation-screen.active { height: calc(100vh - 84px); border-top: 1px solid var(--line); }
.conversation-sidebar { width: 300px; padding: 32px 26px 24px 42px; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: rgba(251,247,239,.75); }
.topic-block h2 { font-size: 25px; line-height: 1.15; color: var(--navy); margin: 10px 0; }
.edit-topic { border: 0; padding: 0; background: none; font-size: 11px; color: #9a7339; cursor: pointer; }
.voices-block { margin-top: 34px; }
.context-document-action { margin: 20px 0 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.context-document-action button { width: 100%; display: flex; align-items: center; gap: 7px; border: 1px dashed #d1c4ae; border-radius: 9px; background: rgba(255,255,255,.65); color: #8a642d; padding: 9px 10px; font-size: 10px; font-weight: 700; cursor: pointer; }
.context-document-action button:hover { background: white; border-color: var(--gold); }
.context-document-action button span { font-size: 14px; line-height: 1; }
.context-document-action small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-label { display: flex; justify-content: space-between; align-items: center; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); margin-bottom: 13px; }
.section-label b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #eee8dd; color: var(--navy); }
.sidebar-person { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-size: 12px; }
.sidebar-person .avatar { width: 30px; height: 30px; flex-basis: 30px; }
.sidebar-person div { flex: 1; }
.sidebar-person strong, .sidebar-person small { display: block; }
.sidebar-person small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.voice-bars { color: #71a480; letter-spacing: -2px; font-size: 12px; opacity: .5; }
.socrates-card { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 13px; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 10px 25px rgba(25,45,80,.06); }
.socrates-orb { width: 34px; height: 34px; flex: 0 0 34px; }
.socrates-card div:nth-child(2) { flex: 1; }
.socrates-card strong, .socrates-card span { display: block; font-size: 10px; }
.socrates-card span { color: var(--muted); font-size: 8px; line-height: 1.35; margin-top: 2px; }
.socrates-card .listening-dot { flex: 0 0 6px; height: 6px; }
.end-button { margin-top: 12px; border: 1px solid #cdbb9d; background: transparent; border-radius: 10px; padding: 11px; color: #7e5e2d; font-weight: 600; font-size: 11px; cursor: pointer; }
.talk-button { margin-top: 12px; border: 0; background: var(--navy); color: white; border-radius: 10px; padding: 12px; font-weight: 600; font-size: 11px; cursor: pointer; }

.conversation-main { min-width: 0; flex: 1; display: flex; flex-direction: column; background: rgba(255,253,248,.7); }
.conversation-topbar { height: 54px; padding: 0 34px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); }
.conversation-topbar > div { display: flex; gap: 9px; align-items: center; }
.meeting-connection>div{display:block}.meeting-connection strong,.meeting-connection small{display:block}.meeting-connection strong{font-size:11px;color:var(--navy)}.meeting-connection small{margin-top:2px;font-size:8px;color:var(--muted)}
.live-status { padding-left: 9px; border-left: 1px solid var(--line); color: #79869a; }
.ghost-button { border: 1px solid var(--line); background: white; border-radius: 9px; padding: 8px 12px; font-size: 11px; font-weight: 600; cursor: pointer; }
.mic-toggle-button { border: 1px solid #dfb5b2; background: #fbeceb; color: #9e403b; border-radius: 9px; padding: 8px 11px; font-size: 10px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.mic-toggle-button span { color: #c7534d; margin-right: 4px; }
.mic-toggle-button.active { border-color: #bfd7c4; background: #eef6ef; color: #477352; }
.mic-toggle-button.active span { color: #60a374; }
.mic-toggle-button.meeting-muted { border-color: #dfb5b2; background: #fbeceb; color: #9e403b; }
.mic-toggle-button.meeting-muted span { color: #c7534d; }
.transcript { flex: 1; overflow-y: auto; padding: 28px max(35px, calc((100% - 760px) / 2)); scroll-behavior: smooth; }
.day-divider { display: flex; align-items: center; gap: 12px; color: #a0a4aa; text-transform: uppercase; font-size: 9px; letter-spacing: .1em; margin: 3px 0 25px; }
.day-divider:before, .day-divider:after { content: ""; height: 1px; background: var(--line); flex: 1; }
.message { display: flex; gap: 12px; margin-bottom: 24px; animation: rise .35s ease; }
.message-avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; color: white; font-size: 12px; font-weight: 700; }
.owl-avatar { background: transparent; border-radius: 0; }
.message-body { max-width: 690px; }
.message-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 6px 2px; }
.message-meta strong { font-size: 12px; }
.message-meta span { color: var(--muted); font-size: 9px; }
.message-meta .turn-score { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #8a7047; }
.turn-speaker-correction { margin-left: auto; font-size: 8px; color: var(--muted); }
.turn-speaker-correction select { margin-left: 4px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font-size: 9px; padding: 3px; }
.message-bubble { display: inline-block; padding: 13px 16px; border-radius: 3px 14px 14px 14px; background: white; border: 1px solid var(--line); box-shadow: 0 5px 16px rgba(25,45,80,.04); }
.message-bubble p { margin: 0; font-size: 13px; line-height: 1.58; }
.socrates-message .message-bubble { background: #f7f0e3; border-color: #ead8b8; }
.evidence-card { margin-top: 11px; border-left: 2px solid var(--gold); padding: 9px 11px; background: rgba(255,255,255,.55); border-radius: 0 8px 8px 0; }
.evidence-card span { display: block; text-transform: uppercase; letter-spacing: .1em; color: #9a7339; font-size: 8px; font-weight: 700; margin-bottom: 4px; }
.evidence-card p { font-size: 10px; color: #677287; }
.evidence-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.evidence-card a { color: #7c5b29; font-weight: 600; }
.thinking .message-bubble { color: var(--muted); }
.thinking-dots { letter-spacing: 3px; animation: pulse 1.2s infinite; }
.interim-message { opacity: .62; }
.interim-message .message-bubble { border-style: dashed; }
.interim-avatar { background: #aeb5bf; font-size: 10px; letter-spacing: 1px; }
.composer-wrap { padding: 15px max(35px, calc((100% - 760px) / 2)) 22px; border-top: 1px solid var(--line); background: rgba(255,253,248,.94); }
.speaker-select-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; color: var(--muted); font-size: 9px; }
.speaker-select-wrap select { border: 0; background: transparent; font-weight: 700; color: var(--ink); outline: none; }
.composer { display: flex; align-items: flex-end; gap: 9px; border: 1px solid #dcd4c8; background: white; border-radius: 14px; padding: 8px; box-shadow: 0 7px 22px rgba(25,45,80,.07); }
.composer textarea { flex: 1; resize: none; border: 0; outline: 0; box-shadow: none; padding: 8px 4px; min-height: 36px; max-height: 110px; font-size: 12px; line-height: 1.5; }
.mic-button, .send-button { border: 0; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.mic-button { background: #f4ede0; color: #a77a37; }
.mic-button.recording { background: #bd5b5b; color: white; animation: micPulse 1.3s infinite; }
.mic-icon { font-size: 10px; }
.send-button { background: var(--navy); color: white; font-size: 18px; }
.composer-note { display: flex; justify-content: space-between; font-size: 8px; color: #9ca1a9; margin-top: 6px; padding: 0 5px; }
.speaker-diagnostics { color: #927342; font: 8px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }

dialog { border: 0; padding: 0; background: transparent; max-width: none; }
dialog::backdrop { background: rgba(16,32,59,.56); backdrop-filter: blur(5px); }
.dialog-card { width: min(480px, calc(100vw - 32px)); background: var(--paper); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; gap: 12px; }
.dialog-card h2 { color: var(--navy); font-size: 32px; line-height: 1.05; margin: 3px 0 10px; }
.dialog-close { position: absolute; right: 18px; top: 15px; border: 0; background: transparent; font-size: 25px; color: #9399a2; cursor: pointer; }
.dialog-card .primary-button { margin-top: 8px; }
.info-card p { color: var(--muted); line-height: 1.65; font-size: 13px; }
.info-card .prototype-disclaimer { background: #f3ede1; color: #866b45; padding: 12px; border-radius: 8px; font-size: 10px; }
.moshi-dialog { position: fixed; inset: auto 22px 22px auto; width: min(350px, calc(100vw - 32px)); height: min(460px, calc(100vh - 110px)); margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 55px rgba(16,32,59,.22); border: 1px solid #ddd3c3; }
.moshi-dialog::backdrop { display: none; }
.moshi-shell { height: 100%; background: var(--paper); display: flex; flex-direction: column; position: relative; }
.moshi-header { padding: 15px 82px 13px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.voice-title { display: flex; align-items: center; gap: 11px; }
.voice-title .socrates-orb { width: 38px; height: 38px; flex-basis: 38px; }
.moshi-header h2 { color: var(--navy); font-size: 21px; margin: 1px 0 0; }
.moshi-header p { color: var(--muted); font-size: 10px; margin: 2px 0 0; }
.minimize-voice-button { position: absolute; right: 47px; top: 17px; width: 27px; height: 27px; border: 0; border-radius: 50%; background: #f2eee6; color: var(--muted); font-size: 18px; cursor: pointer; }
.moshi-shell iframe { flex: 1; width: 100%; border: 0; background: #111b30; display: none; }
.moshi-loading { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; color: var(--muted); text-align: center; }
.moshi-loading .socrates-orb { width: 64px; height: 64px; }
.moshi-loading strong { color: var(--navy); font-family: "Newsreader", serif; font-size: 20px; }
.moshi-loading span { font-size: 11px; }
.moshi-loading code { color: #8a642d; background: #f4ede0; padding: 3px 6px; border-radius: 4px; }
.voice-minimized-bar { display: none; width: 100%; height: 58px; border: 0; background: var(--navy); color: white; align-items: center; gap: 9px; padding: 0 16px; cursor: pointer; }
.voice-minimized-bar strong { flex: 1; text-align: left; font-size: 11px; }
.voice-minimized-bar > span:last-child { color: var(--gold-light); font-size: 9px; }
.moshi-dialog.minimized { width: 260px; height: 460px; pointer-events: none; border-color: transparent; box-shadow: none; background: transparent; }
.moshi-dialog.minimized .moshi-shell { background: transparent; }
.moshi-dialog.minimized .moshi-header, .moshi-dialog.minimized .moshi-loading { display: none !important; }
.moshi-dialog.minimized iframe { display: block !important; position: absolute; width: 350px; height: 460px; right: 0; bottom: 0; opacity: .001; pointer-events: none; border: 0; }
.moshi-dialog.minimized .voice-minimized-bar { display: flex; position: absolute; right: 0; bottom: 0; z-index: 2; pointer-events: auto; border-radius: 12px; box-shadow: 0 12px 32px rgba(16,32,59,.2); }
.summary-dialog { width: min(920px, calc(100vw - 36px)); max-height: calc(100vh - 40px); border-radius: 22px; }
.summary-sheet { background: var(--paper); padding: 36px 40px 28px; position: relative; overflow-y: auto; max-height: calc(100vh - 40px); }
.summary-header { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.summary-header h2 { margin: 8px 0 3px; font-size: 38px; color: var(--navy); }
.summary-header p { margin: 0; color: var(--muted); font-size: 12px; }
.summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.viewpoint-card { border: 1px solid var(--line); border-radius: 12px; padding: 15px; display: flex; gap: 11px; }
.viewpoint-card strong { display: block; font-size: 12px; margin-bottom: 4px; }
.viewpoint-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.common-ground { display: flex; gap: 16px; padding: 22px; border-radius: 14px; background: #f5ecd9; border: 1px solid #e7d3ac; }
.common-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; background: var(--navy); color: var(--gold-light); border-radius: 50%; }
.common-ground h3 { font-size: 24px; color: var(--navy); margin: 6px 0; }
.common-ground p { margin: 0; color: #6d675e; font-size: 12px; line-height: 1.55; }
.open-questions { margin: 19px 0; font-size: 11px; }
.open-questions > strong { text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-size: 9px; }
.open-questions div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.open-questions p { margin: 0; padding: 10px 12px; background: #f4f3ef; border-radius: 8px; font-size: 10px; }
.summary-actions { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 18px; }
.summary-actions p { font-size: 10px; color: var(--muted); }
.summary-actions > div { display: flex; gap: 8px; }
.summary-actions .primary-button { width: auto; }
.wrap-up-section, .consent-section { margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.wrap-up-section h3 { margin: 5px 0 12px; color: var(--navy); }
.wrap-up-section label { display: block; font-size: 10px; color: var(--muted); margin: 9px 0 5px; }
.wrap-up-section input { width: 100%; }
#speakerEmailFields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.consent-section p { font-size: 11px; color: var(--muted); }
#consentFields { display: grid; gap: 7px; font-size: 11px; }
#consentFields label { display: flex; gap: 8px; align-items: center; }
.archive-dialog { width: min(900px, calc(100vw - 36px)); max-height: calc(100vh - 40px); border-radius: 22px; }
.archive-sheet { background: var(--paper); padding: 40px; min-height: 560px; max-height: calc(100vh - 40px); overflow: auto; position: relative; }
.archive-sheet h2 { color: var(--navy); font-size: 42px; margin: 10px 0 4px; }
.archive-intro { color: var(--muted); }
#archiveList { display: grid; gap: 14px; margin-top: 28px; }
.archive-card { padding: 22px; border-top: 1px solid var(--line); cursor: pointer; }
.archive-card h3 { color: var(--navy); font-size: 25px; margin: 4px 0; }
.archive-card p { color: var(--muted); font-size: 12px; }
#archiveReader h1 { color: var(--navy); font-size: 45px; }
.archive-transcript { display: grid; gap: 10px; margin-top: 24px; }
.archive-transcript p { padding: 12px; background: white; border: 1px solid var(--line); border-radius: 9px; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 30px); background: var(--navy-deep); color: white; border-radius: 9px; padding: 11px 16px; font-size: 11px; opacity: 0; pointer-events: none; transition: .3s; z-index: 50; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes micPulse { 50% { box-shadow: 0 0 0 6px rgba(189,91,91,.16); } }

@media (max-width: 900px) {
  #welcomeScreen { flex-direction: column; align-items: stretch; padding-top: 35px; }
  .welcome-copy { max-width: none; }
  .setup-card { width: 100%; flex-basis: auto; }
  .conversation-sidebar { width: 240px; padding-left: 22px; }
}
@media (max-width: 680px) {
  .site-header { padding: 0 20px; height: 68px; }
  #welcomeScreen { padding: 30px 20px 60px; }
  .principles { flex-direction: column; gap: 12px; }
  .setup-card { padding: 22px; }
  .prototype-pill { display: none; }
  .conversation-screen.active { height: calc(100vh - 68px); }
  .conversation-sidebar { display: none; }
  .transcript, .composer-wrap { padding-left: 18px; padding-right: 18px; }
  .summary-sheet { padding: 30px 20px 20px; }
  .summary-grid, .open-questions div { grid-template-columns: 1fr; }
  .summary-actions { align-items: stretch; flex-direction: column; }
  .moshi-dialog { inset: auto 10px 10px auto; width: min(350px, calc(100vw - 20px)); height: min(460px, calc(100vh - 88px)); }
}
