:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #202b3d; background: #f7f9fc; font-synthesis: none; --ink: #202b3d; --muted: #687489; --line: #e2e7ef; --blue: #275db8; --navy: #151e30; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: var(--blue); text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #6c9de9; outline-offset: 3px; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { line-height: 1.2; }
h2 { font-size: 1.25rem; letter-spacing: -.025em; }
h3 { font-size: 1rem; }
small, .small { font-size: .8125rem; line-height: 1.5; }
input, select, textarea { width: 100%; border: 1px solid #cdd5e2; border-radius: 8px; padding: 11px 12px; background: #fff; color: var(--ink); }
textarea { resize: vertical; min-height: 84px; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #7e8999; }
.button { border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font-size: .875rem; padding: 9px 14px; font-weight: 550; transition: background .15s, border-color .15s; }
.button:hover:not(:disabled) { background: #edf2fa; border-color: #cad5e6; }
.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.primary:hover:not(:disabled) { background: #1d4e9f; border-color: #1d4e9f; }
.quiet { background: transparent; border-color: transparent; }
.text-button { color: var(--blue); border: none; background: transparent; padding: 3px 0; text-align: left; }
.text-button:hover:not(:disabled) { background: transparent; text-decoration: underline; }
.icon { border: none; background: transparent; font-size: 1.5rem; line-height: 1; padding: 6px 10px; }
.danger { background: #a93539; color: #fff; border-color: #a93539; }
.danger:hover:not(:disabled) { background: #8f272c; color: #fff; border-color: #8f272c; }
.danger-text { color: #a12e34; background: transparent; border-color: #e8c9cd; }
.muted { color: var(--muted); }
.eyebrow { font-size: .75rem; letter-spacing: .12em; font-weight: 650; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; letter-spacing: -.035em; font-weight: 650; white-space: nowrap; }
.brand-mark { background: #dce9fc; color: #18345d; border-radius: 9px; font-size: 1.5rem; width: 36px; height: 36px; text-align: center; font-weight: 650; letter-spacing: -.075em; line-height: 33px; }
.badge { display: inline-flex; font-size: .75rem; line-height: 1.5; border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; color: #647185; background: #f7f9fc; white-space: nowrap; }
.badge.blue { background: #e9f1ff; color: #285594; border-color: #d6e5ff; }
.badge.green { background: #eaf7f0; color: #256247; border-color: #d5e9dc; }
.loading { padding: 15vh 10vw; }
.loading p { margin: 20px 0; }
.entry { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.entry-art { background: #151e30; color: #eef3fd; padding: 56px 10%; display: flex; flex-direction: column; justify-content: space-between; gap: 80px; }
.entry-art .eyebrow { color: #a7c3ef; margin-bottom: 24px; }
.entry-art h1 { font-size: clamp(2.5rem, 4.1vw, 4.5rem); letter-spacing: -.055em; line-height: 1.1; white-space: pre-line; font-weight: 550; }
.entry-subtitle { color: #b9c5d8; max-width: 380px; margin-top: 28px; font-size: 1.125rem; line-height: 1.7; }
.entry-foot { font-size: .875rem; color: #9dacc4; }
.entry-form { margin: auto; padding: 55px 50px; width: 100%; max-width: 540px; }
.entry-form h2 { font-size: 2rem; margin: 24px 0 12px; }
.entry-form form { margin-top: 32px; }
.entry-form form .primary { width: 100%; padding: 12px; margin-top: 4px; }
.entry-privacy { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.entry-privacy strong { font-size: .875rem; }
.entry-privacy p { color: var(--muted); margin-top: 10px; font-size: .875rem; }
.app-shell { height: 100dvh; display: flex; flex-direction: column; }
.topbar { height: 76px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.connection { color: #44735d; font-size: .8125rem; margin-right: 8px; }
.connection::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #548366; margin-right: 8px; vertical-align: middle; }
.connection.warning { color: #8e6617; }
.connection.warning::before { background: #aa812a; }
.workspace { display: grid; grid-template-columns: 240px minmax(350px, 1fr) 320px; min-height: 0; flex: 1; }
.room-sidebar { background: var(--navy); color: #b7c4d9; padding: 30px 18px 22px; display: flex; flex-direction: column; overflow-y: auto; }
.room-sidebar > .eyebrow { margin: 0 12px 20px; color: #889bb8; }
.room-selected { display: flex; gap: 12px; padding: 14px; background: #25344e; border-radius: 8px; color: #f1f5fb; margin-bottom: 34px; }
.room-selected > span { color: #98b9e8; font-size: 1.3rem; }
.room-selected strong { font-size: .875rem; font-weight: 600; }
.room-selected small { display: block; font-size: .75rem; color: #a2b4d0; margin-top: 3px; }
.section-label { font-size: .75rem; letter-spacing: .1em; font-weight: 600; margin: 0 12px 14px; color: #889bb8; }
.member { display: flex; align-items: center; gap: 10px; padding: 10px 8px; }
.member > div { min-width: 0; flex: 1; }
.member strong { font-size: .875rem; color: #e3eaf5; overflow-wrap: anywhere; }
.member small { display: block; font-size: .75rem; color: #93a5c0; }
.member .badge { padding: 1px 5px; font-size: .75rem; background: transparent; color: #a5b5ca; border-color: #39485f; }
.member .badge.green { color: #b6e1c8; border-color: #446653; }
.avatar { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; background: #e9eef5; color: #4b5d77; border-radius: 10px; font-size: .875rem; font-weight: 600; }
.avatar.agent { background: #e5eefe; color: #3970ba; font-size: 1.125rem; }
.room-sidebar .avatar { background: #30405a; color: #cedcf1; }
.invite-button { width: 100%; margin: 20px 0 8px; background: transparent; color: #c0d1ea; border: 1px dashed #4c607e; }
.invite-button:hover:not(:disabled) { background: #25344e; color: #fff; border-color: #6b83a6; }
#invite-area > p { margin: 16px 10px; color: #8f9fb8; }
.sidebar-note { margin: 48px 12px 35px; line-height: 1.6; }
.tiny-mark { font-size: 1.75rem; color: #9abce8; margin-bottom: 15px; }
.sidebar-note strong { font-size: .875rem; color: #cfdbed; font-weight: 550; }
.sidebar-note p { font-size: .8125rem; color: #92a4c0; margin-top: 10px; }
#storage-pill { margin-top: auto; padding: 18px 12px 0; border-top: 1px solid #324158; }
.storage-label strong { font-size: .8125rem; color: #dce6f5; display: block; }
.storage-label small { display: block; font-size: .75rem; color: #98abc6; margin: 6px 0; }
.storage-label .text-button { color: #a8c9f6; font-size: .8125rem; }
.conversation { display: flex; flex-direction: column; background: #fff; min-height: 0; min-width: 0; }
.conversation-head { padding: 31px 34px 24px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.conversation-head .eyebrow { color: #748198; margin-bottom: 10px; }
.conversation-head h1 { font-size: 1.625rem; letter-spacing: -.045em; font-weight: 600; }
.conversation-head > span { font-size: .8125rem; white-space: nowrap; }
.privacy-strip { display: flex; align-items: center; gap: 10px; background: #f2f6fd; padding: 11px 25px; border-top: 1px solid #e8eef8; border-bottom: 1px solid #e8eef8; color: #4b6488; font-size: .8125rem; }
.privacy-strip > span:nth-child(2) { flex: 1; }
.privacy-strip .text-button { font-size: .8125rem; }
.privacy-icon { font-size: 1.1rem; }
.messages { flex: 1; overflow-y: auto; padding: 28px 32px; overscroll-behavior: contain; min-height: 220px; }
.empty-state { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 50px 0; }
.empty-symbol { font-size: 3.75rem; color: #648bc6; line-height: 1; margin-bottom: 25px; }
.empty-state h2 { font-size: 1.4rem; font-weight: 550; letter-spacing: -.03em; }
.empty-state p { color: #7c889a; font-size: .9375rem; max-width: 320px; margin-top: 13px; line-height: 1.7; }
.empty-hint { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: .75rem; color: #748198; }
.empty-hint span { color: #4c6c98; font-size: .75rem; margin-left: 6px; }
.message { display: flex; gap: 13px; margin-bottom: 28px; }
.message-content { min-width: 0; flex: 1; }
.message-meta { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.message-meta strong { font-size: .9375rem; font-weight: 600; }
.message-meta time { font-size: .75rem; color: #8c96a6; }
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; margin-top: 7px; color: #384458; }
.model-label { display: block; font-size: .75rem; color: #7c8aa0; margin-top: 4px; overflow-wrap: anywhere; }
.message.agent { padding: 18px; margin-left: -12px; margin-right: -12px; background: #f5f8fd; border: 1px solid #e4ecf8; border-radius: 10px; }
.thinking { display: flex; justify-content: space-between; align-items: center; padding: 0 32px; color: #5a7193; font-size: .875rem; min-height: 30px; }
.composer { margin: 8px 26px 24px; border: 1px solid #ced8e6; border-radius: 10px; padding: 4px; box-shadow: 0 3px 12px #223c6510; }
.composer textarea { border: none; resize: none; padding: 12px 14px; background: transparent; min-height: 65px; }
.composer textarea:focus-visible { outline-offset: -2px; }
.composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 8px; }
.composer-bottom small { font-size: .75rem; color: #7d899d; max-width: 310px; padding-left: 6px; }
.composer-bottom button { flex-shrink: 0; }
.detail-sidebar { background: #f8faff; border-left: 1px solid var(--line); overflow-y: auto; min-height: 0; }
.tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 22px; gap: 26px; height: 63px; align-items: stretch; }
.button.tab { border: none; background: none; border-radius: 0; padding: 0 0; color: #7c889a; font-weight: 550; }
.button.tab.active { border-bottom: 2px solid #2d5ba4; color: #294e89; }
#details { padding: 25px 20px; }
.details-heading { margin-bottom: 24px; }
.details-heading h2 { font-size: 1rem; font-weight: 600; letter-spacing: -.02em; }
.details-heading p { color: #7e899b; font-size: .8125rem; margin-top: 8px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.agent-card { background: #fff; border: 1px solid #dce4f0; border-radius: 10px; padding: 17px; margin-bottom: 14px; }
.agent-top { display: flex; gap: 11px; align-items: center; }
.agent-top h3 { font-size: .9375rem; font-weight: 600; overflow-wrap: anywhere; }
.agent-top small { color: #8090a7; font-size: .75rem; }
.agent-personality { font-size: .8125rem; line-height: 1.65; color: #758297; margin: 15px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.agent-capabilities { display: flex; flex-wrap: wrap; gap: 5px; }
.consent-status { display: flex; flex-wrap: wrap; gap: 12px; font-size: .75rem; margin-top: 15px; color: #8b95a4; }
.consent-status .approved { color: #39745d; }
.agent-actions { display: flex; justify-content: space-between; gap: 6px; margin: 14px 0 9px; }
.agent-actions .text-button { font-size: .8125rem; }
.ask-button { width: 100%; background: #edf3fd; color: #2d5899; border-color: #dde8f9; }
.add-agent { width: 100%; border: 1px dashed #bccde5; color: #4e6b94; background: transparent; padding: 12px; }
.agent-explainer { margin: 30px 4px; padding-top: 24px; border-top: 1px solid var(--line); }
.agent-explainer strong { display: block; font-size: .8125rem; color: #5c7090; font-weight: 600; }
.agent-explainer p { margin-top: 9px; font-size: .8125rem; color: #7b899e; line-height: 1.7; }
.key-warning { font-size: .75rem; color: #896322; margin-top: 12px; }
.activity-item { border-left: 1px solid #d7e0ed; padding: 0 0 23px 14px; margin-left: 2px; }
.activity-item time { font-size: .75rem; color: #8b97aa; }
.activity-item p { font-size: .875rem; line-height: 1.6; margin-top: 4px; color: #60718a; overflow-wrap: anywhere; }
dialog { border: 1px solid #dce3ed; padding: 0; border-radius: 14px; width: calc(100% - 32px); max-width: 540px; max-height: 90dvh; box-shadow: 0 25px 90px #12233e40; color: var(--ink); }
dialog.wide { max-width: 760px; }
dialog::backdrop { background: #14213780; backdrop-filter: blur(3px); }
.dialog-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding: 20px 26px; background: #fff; z-index: 1; }
.dialog-body { padding: 24px 26px 28px; }
.dialog-body > p { margin-bottom: 20px; font-size: .9375rem; line-height: 1.7; }
.dialog-body > .button { margin-top: 10px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 19px; }
.field > span { font-size: .875rem; font-weight: 550; }
.field small { color: #748298; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.check { display: flex; align-items: center; gap: 10px; font-size: .875rem; margin-bottom: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--blue); }
fieldset { padding: 18px; margin: 6px 0 22px; border: 1px solid var(--line); border-radius: 8px; }
legend { font-size: .875rem; font-weight: 600; padding: 0 7px; }
fieldset > small { color: #748298; }
fieldset .field { margin-bottom: 0; }
.form-error { font-size: .875rem; color: #a12e34; margin: 10px 0; }
.notice { border: 1px solid #e7dfcf; background: #fcf9f1; border-radius: 7px; color: #796947; padding: 14px 16px; font-size: .875rem; line-height: 1.6; margin: 15px 0; }
.blue-notice { background: #eff5ff; border-color: #d9e6fc; color: #45638e; }
.review-list { font-size: .9375rem; }
.review-list dt { font-size: .8125rem; color: #79879c; margin-top: 18px; }
.review-list dd { margin: 5px 0 0; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.endpoint { border: 1px solid var(--line); background: #f7f9fd; border-radius: 8px; padding: 15px; margin-bottom: 20px; }
.endpoint small { display: block; font-size: .75rem; color: #71829b; letter-spacing: .05em; margin-bottom: 5px; }
.endpoint code { font-size: .8125rem; overflow-wrap: anywhere; }
details { border: 1px solid var(--line); border-radius: 7px; padding: 12px 15px; }
summary { font-size: .875rem; color: #436696; }
.request-preview { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 340px; overflow: auto; font-size: .8125rem; line-height: 1.6; background: #f6f8fc; padding: 16px; border-radius: 6px; }
.privacy-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; font-size: .8125rem; background: #edf3fc; border-radius: 8px; padding: 18px; color: #3a5882; margin-bottom: 20px; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 26px 0; }
.privacy-grid h3 { font-size: .9375rem; margin-bottom: 9px; }
.privacy-grid p { color: #6d7b90; font-size: .875rem; line-height: 1.7; }
.policy-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: .875rem; margin: 20px 0; }
.delete-area { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 26px; }
.delete-area strong { font-size: .9375rem; }
.delete-area p { font-size: .875rem; color: #748298; margin: 10px 0 17px; }
#toast { position: fixed; z-index: 20; left: 50%; bottom: 28px; transform: translate(-50%, 12px); max-width: min(560px, calc(100vw - 32px)); width: max-content; padding: 13px 20px; border-radius: 9px; background: #25354e; color: #fff; box-shadow: 0 6px 30px #172d4930; font-size: .875rem; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1600px) { .workspace { grid-template-columns: 270px minmax(350px, 1fr) 350px; } .messages { padding-left: max(40px, calc((100% - 850px) / 2)); padding-right: max(40px, calc((100% - 850px) / 2)); } }
@media (max-width: 1150px) { .workspace { grid-template-columns: 190px minmax(320px, 1fr) 280px; } .room-sidebar { padding-left: 10px; padding-right: 10px; } .conversation-head { padding: 25px 24px; align-items: flex-start; flex-direction: column; gap: 8px; } .composer-bottom { align-items: flex-end; } .composer-bottom small { max-width: 180px; } .member { gap: 8px; } .member .badge { display: none; } #details { padding: 24px 15px; } }
@media (max-width: 940px) { .workspace { grid-template-columns: minmax(320px, 1fr) 285px; } .room-sidebar { display: none; } .conversation-head { flex-direction: row; align-items: center; } .topbar { padding: 0 24px; } .topbar-actions { gap: 3px; } .conversation-head > span { white-space: normal; text-align: right; max-width: 110px; } .entry-art { padding: 40px 10%; } .entry-form { padding: 40px 30px; } }
@media (max-width: 680px) { .app-shell { height: auto; min-height: 100dvh; } .topbar { min-height: 72px; height: auto; padding: 15px 18px; gap: 10px; flex-wrap: wrap; } .brand { font-size: 1.1rem; } .topbar-actions { gap: 4px; } .topbar-actions .quiet { padding: 7px; font-size: .8125rem; } .connection { display: none; } .workspace { display: flex; flex-direction: column; } .room-sidebar { display: block; padding: 14px 18px; order: 1; } .room-sidebar > .eyebrow, .room-selected, .section-label, .sidebar-note, #storage-pill { display: none; } #members { display: flex; gap: 12px; flex-wrap: wrap; } .member { flex: 1; padding: 3px 0; min-width: 135px; } .member .badge { display: inline-flex; } .member strong { font-size: .8125rem; } .invite-button { margin: 12px 0 0; } #invite-area > p { display: none; } .conversation { order: 2; min-height: 580px; } .conversation-head { padding: 24px 20px 20px; } .conversation-head h1 { font-size: 1.4rem; } .conversation-head .eyebrow { font-size: .6875rem; } .conversation-head > span { font-size: .75rem; } .privacy-strip { padding: 10px 18px; font-size: .75rem; } .messages { min-height: 260px; max-height: 55dvh; padding: 24px 20px; } .empty-state { padding: 32px 0; } .empty-state h2 { font-size: 1.2rem; } .empty-state p { font-size: .875rem; } .empty-hint { display: none; } .composer { margin: 8px 16px 20px; } .composer-bottom small { max-width: none; } .composer-bottom button { padding: 9px 10px; font-size: .8125rem; } .detail-sidebar { order: 3; border-left: 0; border-top: 1px solid var(--line); overflow: visible; } .agent-card { max-width: none; } #details { padding: 24px 20px; } .details-heading { margin-bottom: 18px; } .agent-personality { -webkit-line-clamp: 2; } .agent-explainer { margin-bottom: 5px; } .entry { display: block; } .entry-art { padding: 30px 26px; gap: 36px; } .entry-art .eyebrow, .entry-subtitle, .entry-foot { display: none; } .entry-art h1 { font-size: 2.5rem; } .entry-form { padding: 32px 26px; } .entry-form h2 { margin-top: 17px; } .privacy-grid, .form-grid { grid-template-columns: 1fr; gap: 15px; } .dialog-head { padding: 18px 20px; } .dialog-body { padding: 20px; } .dialog-head h2 { font-size: 1.125rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* The audience and consent controls remain visible at every screen size. */
.composer-audience { display: flex; align-items: center; gap: 10px; padding: 8px 12px 0; font-size: .8125rem; color: var(--muted); }
.composer-audience select { width: auto; max-width: calc(100% - 35px); font-size: .8125rem; padding: 5px 8px; background: #f5f8fd; }
.room-agreement > p { font-size: .875rem; line-height: 1.6; }
.rule-point { margin: 18px 0; }
.rule-point h3 { font-size: .875rem; margin-bottom: 6px; }
.rule-point p { font-size: .8125rem; color: #596a82; line-height: 1.7; }
.agreement-check { margin-top: 18px; align-items: flex-start; line-height: 1.6; }
.check input { flex-shrink: 0; }
.message.notice { border-left: 3px solid #d8bf88; padding-left: 12px; }
.message.notice .message-text { font-size: .875rem; color: #796947; }
.agent-card > .text-button { margin: 0 0 12px; font-size: .8125rem; }
@media (max-width: 1150px) { .topbar-actions { gap: 3px; } .topbar { padding-left: 20px; padding-right: 20px; } }
@media (max-width: 680px) { .topbar-actions { flex-wrap: wrap; } .composer-bottom { align-items: center; } .entry-form { max-width: 620px; } }
