:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #17273a; background: #edf2f5; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 15% 0%, #d7edeb, transparent 40%), #edf2f5; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; border-radius: 10px; padding: 12px 18px; color: white; font-weight: 650; background: #087c72; }
button:hover { background: #086c64; }
button:disabled, select:disabled { opacity: .55; cursor: not-allowed; }
.shell { width: min(1120px, 100%); height: min(850px, calc(100vh - 48px)); min-height: 500px; background: #fff; border: 1px solid #dfe8eb; border-radius: 20px; box-shadow: 0 18px 60px #214a4e18; overflow: hidden; }
[hidden] { display: none !important; }
.login-view { display: flex; flex-direction: column; justify-content: center; max-width: 410px; height: 100%; margin: auto; padding: 28px; }
.brand-mark { display: grid; place-items: center; width: 52px; height: 52px; color: white; background: #087c72; border-radius: 16px; font-size: 24px; font-weight: 750; }
.brand-mark.small { width: 40px; height: 40px; border-radius: 12px; font-size: 19px; flex: none; }
.eyebrow { margin: 26px 0 0; color: #087c72; letter-spacing: .13em; font-size: 11px; font-weight: 750; }
h1 { margin: 10px 0; font-size: 30px; letter-spacing: -.03em; }
.subtitle, .note, .welcome p { color: #6b7b89; line-height: 1.5; }
.login-form { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.login-form label, .model-label { font-size: 13px; font-weight: 650; color: #42586a; }
input, select, textarea { border: 1px solid #d8e3e5; border-radius: 10px; color: #17273a; background: #fff; outline: none; }
input { padding: 13px; }
input:focus, select:focus, textarea:focus { border-color: #087c72; box-shadow: 0 0 0 3px #087c721c; }
.note { font-size: 12px; }
.chat-view { display: flex; flex-direction: column; height: 100%; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid #e8eff0; padding: 18px 24px; }
.identity { display: flex; align-items: center; gap: 11px; }
.identity small { display: block; color: #778894; font-size: 12px; margin-top: 3px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
select { max-width: 210px; padding: 10px; }
.secondary { background: #eef4f3; color: #375c59; padding: 10px 12px; font-size: 13px; }
.secondary:hover { background: #dbecea; }
.messages { flex: 1; overflow-y: auto; padding: 28px max(24px, calc((100% - 760px) / 2)); }
.welcome { text-align: center; padding-top: 18vh; }
.spark { color: #087c72; font-size: 32px; }
.welcome h2 { font-size: 24px; letter-spacing: -.02em; }
.message { display: flex; margin: 18px 0; }
.message.user { justify-content: flex-end; }
.bubble { max-width: min(85%, 670px); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; padding: 13px 16px; border-radius: 15px; background: #f0f5f5; }
.user .bubble { background: #087c72; color: #fff; }
.composer-area { max-width: 800px; width: 100%; margin: 0 auto; padding: 12px 24px 18px; }
.composer { display: flex; align-items: flex-end; gap: 12px; padding: 10px; border: 1px solid #d8e3e5; border-radius: 14px; box-shadow: 0 5px 16px #274a4d0b; }
.composer textarea { resize: none; flex: 1; border: 0; box-shadow: none; padding: 6px; max-height: 180px; }
.composer textarea:focus { box-shadow: none; }
.status { min-height: 1em; margin: 4px 0 8px; color: #b13d3d; font-size: 13px; }
.status.info { color: #55736f; }
@media (max-width: 700px) {
  body { padding: 0; }
  .shell { height: 100dvh; min-height: 0; border: 0; border-radius: 0; }
  .topbar { align-items: flex-start; flex-direction: column; padding: 14px; }
  .top-actions { width: 100%; flex-wrap: wrap; }
  select { flex: 1; min-width: 100px; }
  .messages { padding: 12px 16px; }
  .composer-area { padding: 8px 14px 12px; }
}
