:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #29272e; background: #fbfaf8; font-synthesis: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { max-width: 820px; height: 100dvh; margin: 0 auto; padding: 0 28px; display: flex; flex-direction: column; }
header { display: flex; justify-content: space-between; align-items: center; padding: 27px 0 22px; border-bottom: 1px solid #e9e5e0; gap: 20px; }
h1 { font-size: 25px; letter-spacing: -.9px; margin: 0; font-weight: 650; }
h1 span { color: #785981; }
header p { color: #716b75; margin: 7px 0 0; font-size: 13px; font-variant-numeric: tabular-nums; }
main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
h2 { font-size: 24px; font-weight: 550; letter-spacing: -.6px; margin: 0 0 12px; }
p { line-height: 1.6; }
button, input, textarea { font: inherit; }
button { cursor: pointer; border: 0; border-radius: 10px; background: #3d3042; color: white; padding: 12px 20px; font-size: 14px; font-weight: 550; }
button:hover { background: #59445f; }
button:disabled { opacity: .5; cursor: default; }
button.quiet { background: transparent; color: #716b75; border: 1px solid #ded8d2; padding: 8px 12px; white-space: nowrap; }
button.quiet:hover { background: #f0ede9; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #886893; outline-offset: 3px; }
#login { width: 100%; max-width: 400px; margin: auto; padding: 50px 0; }
#login > p { color: #716b75; margin-bottom: 28px; font-size: 15px; }
#login-form { display: grid; gap: 12px; }
label { font-size: 13px; font-weight: 550; }
input { width: 100%; padding: 14px; border: 1px solid #dcd5ce; border-radius: 10px; background: white; font-size: 16px; }
#login-button { margin-top: 4px; }
#conversation { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-wrap: anywhere; padding: 28px 4px 12px; scrollbar-width: thin; }
#empty { color: #716b75; padding: 14vh 0 10vh; text-align: center; }
#empty h2 { color: #47414b; }
#empty p { font-size: 14px; }
.message { margin-bottom: 30px; }
.byline { display: flex; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 650; color: #70527b; margin-bottom: 8px; }
.user .byline { color: #34706b; }
.byline time, .byline span { color: #969099; font-size: 11px; font-weight: 400; }
.content { white-space: pre-wrap; line-height: 1.7; font-size: 15px; }
.user .content { color: #5d5760; }
#pending { opacity: .65; }
#waiting { color: #827388; font-size: 13px; margin: 0 0 20px; }
#waiting span { font-size: 9px; margin-right: 6px; }
#chat-form { padding: 12px 0 max(12px, env(safe-area-inset-bottom)); }
.composer { background: white; border: 1px solid #dcd5ce; border-radius: 14px; padding: 14px; display: flex; gap: 12px; align-items: flex-end; box-shadow: 0 3px 14px #30203804; }
textarea { flex: 1; min-width: 0; border: 0; background: transparent; resize: vertical; min-height: 65px; max-height: 200px; line-height: 1.5; font-size: 16px; color: inherit; }
textarea:focus-visible { outline-offset: 0; border-radius: 3px; }
textarea::placeholder { color: #aaa1ac; }
.composer button { padding: 10px 15px; }
.composer button span { margin-left: 5px; }
.hint { font-size: 11px; text-align: center; color: #969099; margin: 9px 0 0; }
#loading { color: #716b75; text-align: center; margin: auto; }
#error { color: #983f3f; background: #f9ece9; padding: 12px 16px; border-radius: 10px; font-size: 13px; margin: 10px 0; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 600px) { body { padding: 0 16px; } header { padding: 18px 0; } h1 { font-size: 23px; } .content { font-size: 16px; } .composer { padding: 12px; gap: 8px; } .hint { display: none; } #chat-form { padding-bottom: max(16px, env(safe-area-inset-bottom)); } }
