:root { color-scheme: light; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #203430; background: #fafbf8; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 48rem; min-height: 100dvh; margin: auto; padding: 1rem clamp(1rem,4vw,2.4rem) 1.2rem; }
header, .actions, .compose { display: flex; gap: .6rem; align-items: center; }
header { justify-content: space-between; padding: .9rem 0 1.2rem; border-bottom: 1px solid #d6dfd9; }
.brand, small, label, .meta { color: #4e6561; }
.brand { font-size: .9rem; font-weight: 700; }.brand span { font-weight: 450; }
h1 { margin: .25rem 0 0; font-size: 1.6rem; } h2 { font-size: 1.17rem; }
p { line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.intro { color: #526660; max-width: 42rem; }
button, select, textarea { font: inherit; color: inherit; border: 1px solid #bacac1; border-radius: .7rem; background: #fff; padding: .6rem .8rem; }
button { min-height: 42px; cursor: pointer; } button:disabled { opacity: .55; cursor: default; }
button:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid #378376; outline-offset: 2px; }
.primary { background: #1c6255; color: white; border-color: #1c6255; }
label { display: block; margin: .8rem 0 .3rem; font-weight: 600; font-size: .92rem; }
textarea { width: 100%; resize: vertical; }
#messages { min-height: 18dvh; }
.turn, .review { padding: .7rem 0 1rem; border-bottom: 1px solid #dbe2dc; }
.question { width: fit-content; max-width: 88%; margin-left: auto; border-radius: 1rem 1rem .2rem 1rem; padding: .65rem .95rem; background: #e6efe8; }
.answer { margin: .6rem 0; }
.meta, #status { font-size: .88rem; }
.actions { flex-wrap: wrap; margin-top: .65rem; }
.actions button { font-size: .9rem; }
#composer { background: #fafbf8; position: sticky; bottom: 0; padding: .35rem 0 max(.6rem, env(safe-area-inset-bottom)); }
.compose { align-items: stretch; } .compose textarea { min-width: 0; }
dialog { width: min(32rem, 94vw); max-height: 90dvh; overflow: auto; border: 1px solid #b9cbc2; border-radius: 1rem; padding: 1.3rem; color: inherit; background: #fafbf8; }
dialog::backdrop { background: #1e332f80; }
dialog:not([open]) { display:none; }
.check { display: flex; align-items: baseline; gap: .5rem; line-height: 1.35; }
#preview, #history-preview, .context { border-left: 3px solid #a3bfb0; padding-left: .75rem; font-size: .94rem; }
#counts { margin: 1rem 0; } table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .45rem .3rem; text-align: left; border-bottom: 1px solid #dbe2dc; }
#status:empty, #feedback-error:empty { display: none; }
#shell { display:grid; grid-template-columns: 16rem minmax(0,1fr); height:100vh; height:100dvh; overflow:hidden; }
#sidebar { padding:1.35rem .95rem 1rem; display:flex; flex-direction:column; gap:.55rem; min-height:0; background:#eef2ed; border-right:1px solid #dbe3dc; }
.side-head { display:flex; justify-content:space-between; align-items:center; padding:0 .45rem .85rem; }
.brand { display:inline-flex; align-items:center; gap:.65rem; color:#183c33; font-size:1.4rem; font-weight:690; letter-spacing:-.03em; text-decoration:none; }
.monogram, .welcome-mark { display:grid; place-items:center; background:#215b4f; color:#fafbf8; font-family:Georgia,serif; }
.monogram { width:1.85rem; height:1.85rem; border-radius:.58rem; font-size:1.38rem; }
.new-chat { text-align:left; font-weight:610; background:#fafcf9; border:1px solid #c2d2c6; }
.new-chat span { margin-right:.38rem; }.side-label { margin:1rem .55rem .2rem; font-size:.77rem; font-weight:640; color:#647970; }
#chat-list { display:flex; flex-direction:column; gap:.12rem; overflow:auto; min-height:0; }
#chat-list button, .side-tools button { text-align:left; background:transparent; border:0; border-radius:.55rem; font-size:.9rem; }
#chat-list button { min-height:37px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#chat-list button:hover, .side-tools button:hover, #chat-list button[aria-current="page"] { background:#dfe9df; }
.side-tools { display:grid; margin-top:auto; padding-top:.65rem; border-top:1px solid #ced9cf; }
#account { padding:.5rem .8rem 0; color:#657971; font-size:.8rem; }
main { width:100%; max-width:none; height:100%; min-height:0; padding:0; display:flex; flex-direction:column; position:relative; }
header { flex:none; justify-content:flex-start; padding:.85rem clamp(1rem,4vw,3rem); min-height:4.3rem; }
.heading { min-width:0; }.heading h1 { margin:0; font-size:1.05rem; font-weight:660; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.model { display:inline-block; font-size:.81rem; color:#577168; margin-top:.2rem; }
.model[data-ready="true"]::before { content:""; display:inline-block; width:.5rem; height:.5rem; margin-right:.43rem; border-radius:50%; background:#428371; }
#refresh { margin-left:auto; } #status { margin:.5rem auto; padding:0 1rem; }
#guest { flex:1; min-height:0; display:flex; flex-direction:column; }
.scroll { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
#messages, #welcome, #composer, .panel { width:min(100%,50rem); margin-inline:auto; padding-inline:clamp(1rem,4vw,2.2rem); }
#messages { min-height:0; }.turn { border:0; padding:1rem 0; }.question { margin-top:0; max-width:83%; }
#welcome { min-height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; padding-block:2rem; }
.welcome-mark { width:3.25rem; height:3.25rem; border-radius:1.05rem; font-size:2.42rem; }
#welcome h2 { font-size:clamp(1.65rem,3.4vw,2.35rem); letter-spacing:-.05em; margin:1.1rem 0 1.35rem; color:#23483f; }
.starters { display:flex; justify-content:center; flex-wrap:wrap; gap:.45rem; }
.starters button { border-radius:2rem; font-size:.84rem; min-height:37px; background:transparent; }
.actions button { min-height:37px; }
.turn .actions button { background:transparent; color:#39675b; border:0; padding:.2rem .55rem; min-height:36px; }
.turn .actions button:hover { background:#e8efe8; }
#composer { flex:none; position:static; padding-top:.45rem; }
.compose { align-items:flex-end; padding:.45rem; border:1px solid #bdcbc1; border-radius:1.15rem; background:white; box-shadow:0 2px 6px #1b322709; }
.compose:focus-within { border-color:#4d8373; }
.compose textarea { max-height:9rem; min-height:2.7rem; resize:none; border:0; background:transparent; padding:.65rem .55rem; outline:none; line-height:1.4; }
.send { flex:none; border-radius:.72rem; width:2.75rem; height:2.75rem; padding:0; font-size:1.4rem; line-height:1; }
.send:disabled { color:#698075; background:#e5ece6; border-color:#e5ece6; opacity:1; }
.compose-note { display:flex; justify-content:space-between; margin:.42rem .15rem 0; gap:.5rem; font-size:.75rem; color:#5c7268; }
.panel { overflow:auto; padding-block:1.2rem 2rem; }.panel > p:first-child { margin-top:0; }
.invite-card { display:flex; gap:.8rem; justify-content:space-between; align-items:center; border-bottom:1px solid #dbe3dc; padding:.75rem 0; flex-wrap:wrap; }
.invite-card .actions { margin:0; } .invite-card h2 { margin:0; }.invite-card p { margin:.2rem 0 0; }
.personal-link { padding:.5rem; color:#215b4f; font-size:.9rem; }
.response-stats { margin:.45rem 0 0; font-size:.78rem; color:#526961; font-variant-numeric:tabular-nums; }
#credential { width:100%; padding:.65rem; border:1px solid #bacac1; border-radius:.6rem; font:inherit; }
.mobile { display:none; }.icon { border:0; background:transparent; font-size:1.25rem; min-width:42px; }
#scrim { position:fixed; inset:0; border:0; padding:0; border-radius:0; z-index:9; background:#17332855; }
@media (max-width:700px) {
 #shell { grid-template-columns:minmax(0,1fr); } .mobile { display:inline-grid; place-items:center; }
 #sidebar { display:none; position:fixed; inset:0 auto 0 0; width:min(82vw,18rem); z-index:10; box-shadow:8px 0 26px #20343015; }
 #shell.menu-open #sidebar { display:flex; }
 header { min-height:3.85rem; padding:.55rem .65rem; }.heading { flex:1; }
 #composer { padding-inline:.7rem; } #welcome { padding-bottom:8dvh; }
}
