:root { color-scheme: light; font-family: "DM Sans", "Noto Sans SC", sans-serif; color: #1b1b20; background: #fff; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, textarea, input { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; max-width: 1320px; margin: auto; padding: 0 42px; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #efeff1; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 700; letter-spacing: -.03em; font-size: 18px; }
.brand-mark, .avatar { display: grid; place-items: center; color: #fff; background: #202025; border-radius: 11px; }
.brand-mark { width: 30px; height: 30px; font-size: 15px; }
.new-chat { padding: 10px 14px; background: #fff; border: 1px solid #e3e3e6; border-radius: 10px; color: #35353b; font-weight: 600; font-size: 14px; }
.new-chat:hover { background: #f7f7f8; }
.header-actions { display: flex; align-items: center; gap: 9px; }.settings-trigger { padding: 10px 13px; border: 0; border-radius: 10px; background: transparent; color: #62626b; font-weight: 600; font-size: 14px; }.settings-trigger:hover { background: #f5f5f6; color: #24242a; }
.conversation { width: min(100%, 760px); align-self: center; justify-self: center; transform: translateY(-5%); }
.welcome { text-align: center; }
.avatar { width: 52px; height: 52px; margin: 0 auto 22px; font-size: 24px; border-radius: 18px; box-shadow: 0 8px 22px #17171c1c; }
.eyebrow { margin: 0 0 10px; color: #7b7b85; font-size: 14px; font-weight: 600; }
h1 { margin: 0; font-size: clamp(30px, 5vw, 48px); line-height: 1.14; letter-spacing: -.055em; }
.subtitle { max-width: 520px; margin: 17px auto 35px; color: #777780; line-height: 1.7; }
.suggestions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.suggestions button { min-height: 88px; padding: 16px; text-align: left; border: 1px solid #e8e8eb; border-radius: 14px; background: #fff; color: #4b4b53; font-size: 14px; line-height: 1.5; transition: .18s ease; }
.suggestions span { display: block; margin-top: 8px; color: #9a9aa3; font-size: 18px; }.suggestions button:hover { transform: translateY(-2px); border-color: #d5d5da; box-shadow: 0 9px 18px #22222b0b; }
.messages { display: grid; gap: 18px; padding: 8px 0 40px; }.messages[hidden] { display: none; }.conversation.has-messages { align-self: start; transform: none; padding-top: 52px; }.conversation.has-messages .welcome, .conversation.has-messages .suggestions { display: none; }.message { max-width: 84%; padding: 13px 16px; border-radius: 16px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }.message.user { justify-self: end; background: #202025; color: #fff; border-bottom-right-radius: 5px; }.message.assistant { justify-self: start; background: #f5f5f6; color: #29292f; border-bottom-left-radius: 5px; }.message.error { justify-self: start; background: #fff2f1; color: #af3028; border: 1px solid #ffd5d1; font-size: 14px; }.message.loading::after { content: '…'; display: inline-block; width: 18px; overflow: hidden; vertical-align: bottom; animation: dots 1.2s steps(4,end) infinite; }@keyframes dots { to { width: 0; } }
.composer { width: min(100%, 760px); justify-self: center; padding-bottom: 24px; position: relative; }
textarea { width: 100%; min-height: 58px; max-height: 170px; resize: none; padding: 17px 62px 16px 19px; border: 1px solid #dcdce1; border-radius: 17px; outline: none; box-shadow: 0 6px 20px #1c1c2410; color: #242429; line-height: 1.45; }
textarea:focus { border-color: #97979f; box-shadow: 0 0 0 3px #27272a0d; }
.send { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border: 0; border-radius: 12px; background: #202025; color: white; font-size: 21px; line-height: 1; }
.send:disabled { background: #d7d7dc; }.composer p { margin: 9px 0 0; text-align: center; color: #a1a1a8; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.settings-dialog { width: min(92vw, 470px); padding: 0; border: 1px solid #e4e4e7; border-radius: 20px; color: #24242a; box-shadow: 0 25px 80px #15151d2b; }.settings-dialog::backdrop { background: #17171d4a; backdrop-filter: blur(3px); }.settings-dialog form { padding: 27px; }.settings-head { display: flex; align-items: flex-start; justify-content: space-between; }.settings-head .eyebrow { margin-bottom: 5px; }.settings-head h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }.close-settings { width: 32px; height: 32px; border: 0; border-radius: 9px; background: #f5f5f6; color: #666670; font-size: 23px; line-height: 1; }.settings-copy { margin: 17px 0 22px; color: #777780; font-size: 13px; line-height: 1.55; }.settings-dialog label { display: grid; gap: 8px; margin-top: 16px; color: #3e3e46; font-size: 13px; font-weight: 600; }.settings-dialog input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #dedee3; border-radius: 10px; outline: 0; color: #28282e; font-size: 14px; font-weight: 400; }.settings-dialog input:focus { border-color: #888891; box-shadow: 0 0 0 3px #2020250d; }.key-field { display: flex; }.key-field input { border-radius: 10px 0 0 10px; }.key-field button { width: 58px; margin-left: -1px; border: 1px solid #dedee3; border-radius: 0 10px 10px 0; background: #fafafa; color: #676770; font-size: 12px; }.settings-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 27px; }.settings-actions button { padding: 10px 15px; border-radius: 10px; font-size: 14px; font-weight: 600; }.cancel-settings { border: 1px solid #e1e1e5; background: #fff; color: #666670; }.save-settings { border: 1px solid #202025; background: #202025; color: #fff; }
@media (max-width: 600px) { .app-shell { padding: 0 18px; }.topbar { height: 68px; }.conversation { transform: translateY(-2%); }.suggestions { grid-template-columns: 1fr; }.suggestions button { min-height: 56px; }.suggestions span { display: inline; margin-left: 5px; }.subtitle { margin-bottom: 25px; } }
