:root { color-scheme: light; font-family: system-ui, -apple-system, sans-serif; color: #20382e; background: #eef3ec; }
* { box-sizing: border-box; }
body { margin: 0; }
button,input,textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display:none !important; }
.app { max-width: 740px; margin: 0 auto; min-height: 100dvh; background: #f8faf5; display:flex; flex-direction:column; box-shadow:0 10px 45px #2a51351a; }
.top { display:flex; align-items:center; gap:12px; padding:24px 24px 20px; background:#fff; border-bottom:1px solid #e8eee6; }
.mark { display:grid; place-items:center; width:48px; height:48px; border-radius:16px; background:#e2f1e5; color:#2c7655; font-size:28px; }
h1 { margin:0; font-size:21px; letter-spacing:-.03em; } .top p { margin:3px 0 0; font-size:13px; color:#708779; }
.settings { margin-left:auto; border:0; background:#f1f5ef; border-radius:14px; width:44px; height:44px; font-size:22px; color:#36634e; }
.login { margin:auto; width:min(100%,440px); padding:38px 28px; }
.flower { color:#3b8864; font-size:48px; } h2 { margin:10px 0; font-size:26px; letter-spacing:-.03em; }
.login p, dialog p { line-height:1.55; color:#63786c; } label { display:block; margin:20px 0 8px; font-weight:650; font-size:14px; }
input,textarea { width:100%; border:1px solid #dce8da; border-radius:14px; padding:15px; background:#fff; color:#20382e; outline:none; }
input:focus,textarea:focus { border-color:#68a684; box-shadow:0 0 0 3px #cfe9d6; }
.primary { border:0; background:#2d7654; color:white; border-radius:14px; font-weight:700; min-height:52px; padding:0 22px; }
.login .primary, dialog .primary { margin-top:16px; width:100%; }
.workspace { display:flex; flex-direction:column; flex:1; min-height:calc(100dvh - 90px); }
.tabs { display:flex; gap:8px; padding:20px 20px 8px; }
.tab { flex:1; min-height:49px; border:1px solid #e5ede2; border-radius:13px; background:#fff; color:#536c5d; font-weight:650; font-size:14px; }
.tab span { font-size:17px; } .tab.active { color:#fff; background:#2d7654; border-color:#2d7654; }
.conversation { flex:1; padding:18px 20px 28px; display:flex; flex-direction:column; gap:12px; min-height:230px; overflow-wrap:anywhere; }
.message { padding:15px 17px; line-height:1.55; border-radius:18px; white-space:pre-wrap; max-width:94%; font-size:16px; }
.assistant { background:#fff; border:1px solid #edf2eb; align-self:flex-start; border-bottom-left-radius:5px; }
.user { background:#dcefe1; align-self:flex-end; border-bottom-right-radius:5px; }
.message img { display:block; width:100%; max-width:460px; height:auto; border-radius:12px; margin:8px 0; }
.message a { display:inline-block; margin-top:10px; color:#236442; font-weight:700; }
.composer { margin:0 20px; background:#fff; border:1px solid #dfe9dd; border-radius:20px; padding:8px; box-shadow:0 5px 25px #4e785714; }
textarea { resize:vertical; border:0; min-height:65px; max-height:180px; box-shadow:none !important; padding:12px; }
.composer-bottom { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:2px 4px 4px 10px; }
.composer-bottom #hint { font-size:12px; color:#8a9c8e; } .send { min-height:46px; padding:0 16px; white-space:nowrap; } .send span { margin-left:6px; font-size:18px; }
button:disabled { opacity:.6; cursor:wait; } .footnote { margin:11px 20px 18px; text-align:center; color:#92a497; font-size:11px; }
dialog { max-width:420px; width:calc(100% - 32px); border:0; border-radius:22px; padding:24px; color:#20382e; box-shadow:0 20px 90px #0b271a55; }
dialog::backdrop { background:#0e2f21a8; } .dialog-title { display:flex; align-items:center; justify-content:space-between; }
.dialog-title button { border:0; background:transparent; font-size:32px; color:#5f7769; } .small { font-size:13px; } .error { color:#a33737 !important; min-height:1em; }
.logout { display:block; margin:18px auto 0; border:0; background:none; color:#6c8274; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:420px) { .top {padding:18px 16px;} .tabs{padding:16px 12px 5px; gap:5px;} .tab{font-size:12px;} .conversation{padding:16px 12px;} .composer{margin:0 12px;} }
