:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB",sans-serif;color:#26312e;background:#f6f7f5;color-scheme:light;--viewport-height:100dvh;--viewport-top:0px;--accent:#426b59;--line:#e2e8e3}*{box-sizing:border-box}[hidden]{display:none!important}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font-size:16px;line-height:1.65;-webkit-text-size-adjust:100%}button,input,textarea,select{font:inherit}button{border:1px solid var(--line);background:#fff;color:inherit;border-radius:12px;padding:8px 13px;min-height:44px;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.5;cursor:default}button:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #6d9680;outline-offset:2px}#app{position:fixed;top:var(--viewport-top);left:0;right:0;height:var(--viewport-height);max-width:840px;margin:auto;display:flex;flex-direction:column;min-height:0;background:#f6f7f5;padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}.app-header{flex:none;padding:calc(8px + env(safe-area-inset-top,0px)) 16px 9px;border-bottom:1px solid var(--line);background:#fbfcfa}.heading-row{display:flex;align-items:center;gap:12px}h1{font-size:20px;font-weight:650;margin:0;letter-spacing:.04em}#connection{color:#748078;font-size:12px;margin-left:auto}#settings-open{border:0;background:transparent;padding:5px 9px;font-size:14px}nav{display:flex;gap:6px;margin-top:7px}nav button{padding:4px 21px;min-height:34px;border-color:transparent;background:transparent;font-size:14px}nav button[aria-pressed=true]{color:#315843;background:#e4ede6;border-color:#dbe6dd}#conversation{position:relative;flex:1;min-height:0;display:flex}#messages{flex:1;min-width:0;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;overflow-anchor:none;padding:18px 14px 12px;scrollbar-width:thin}.message{max-width:88%;width:fit-content;margin:0 0 18px;padding:11px 14px;background:#fff;border:1px solid #e5eae5;border-radius:17px;overflow-wrap:anywhere;word-break:break-word}.message.user{margin-left:auto;background:#e3eee5;border-color:#dce7de}.message.assistant{margin-right:auto}.message.streaming{border-style:dashed}.message.small-status{color:#7c8881;font-size:13px;background:transparent;border:0;padding:0}.message small{display:block;font-size:11px;color:#7d8981;margin-bottom:5px}.message .message-text{white-space:pre-wrap;margin:0;font:inherit;line-height:1.75}.message .rich-text p{margin:0 0 .7em;white-space:pre-wrap}.message .rich-text p:last-child{margin-bottom:0}.rich-text h2,.rich-text h3,.rich-text h4{font-size:1.05em;margin:.9em 0 .5em;line-height:1.5}.rich-text ul,.rich-text ol{padding-left:1.4em;margin:.5em 0}.rich-text li{margin:.3em 0}.rich-text pre{max-width:100%;overflow-x:auto;background:#f1f4f0;border-radius:8px;padding:10px;white-space:pre;font:13px/1.6 ui-monospace,monospace}.rich-text code{background:#eef2ed;border-radius:4px;padding:1px 4px;font-size:.88em}.rich-text pre code{padding:0;background:none;font-size:inherit}.rich-text a{color:#426b59;overflow-wrap:anywhere}.tools{margin-top:7px;color:#7c8881;font-size:12px}.tools summary{display:inline-block;cursor:pointer;padding:3px 0}.tools .tool-buttons{display:flex;gap:5px;flex-wrap:wrap;padding-top:5px}.tools button{font-size:12px;min-height:34px;padding:3px 9px;border-radius:8px}.withdrawn{opacity:.6}blockquote{margin:0 0 8px;border-left:3px solid #a7baac;padding:3px 0 3px 9px;color:#6d7c72;font-size:14px;white-space:pre-wrap}.sticker{width:90px;height:90px}.photo{max-width:180px;max-height:140px;border-radius:8px}.generation-actions{display:flex;gap:7px;flex-wrap:wrap;padding-bottom:10px}.generation-actions button{font-size:13px;min-height:38px}#jump-latest{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);box-shadow:0 3px 12px #30463616;white-space:nowrap;font-size:13px;min-height:38px}.reply-status{flex:none;display:flex;align-items:center;justify-content:space-between;min-height:28px;padding:0 16px;color:#7a867d;font-size:12px}#stop{padding:3px 12px;font-size:13px;min-height:32px}#composer{flex:none;border-top:1px solid var(--line);padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:#fbfcfa}#attachments:empty{display:none}#attachments{display:flex;gap:8px;align-items:center;color:#6c7e70;font-size:12px}#quote{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:80%}#clear-attachment{font-size:12px;min-height:30px;padding:1px 8px}.compose-row{display:flex;align-items:flex-end;gap:9px}textarea{font-size:16px;line-height:1.5;border:1px solid #dbe3dc;border-radius:15px;padding:10px 12px;color:inherit;background:#fff;resize:none;outline:none}#text{flex:1;min-width:0;min-height:46px;max-height:150px;overflow-y:auto}#send{background:var(--accent);color:#fff;border-color:var(--accent);min-width:65px;flex:none}#status{font-size:12px;line-height:1.5;color:#8e604c;margin:5px 2px 0;overflow-wrap:anywhere}#status:empty{display:none}#retry-send{font-size:13px;margin-top:6px}dialog{border:1px solid #dfe6df;border-radius:18px;max-width:min(92vw,600px);width:600px;max-height:82dvh;padding:18px;color:inherit;background:#fbfcfa;overflow:auto;overscroll-behavior:contain}dialog::backdrop{background:#25372b55}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}dialog h2{font-size:18px;margin:4px 0 12px}dialog label{display:flex;gap:9px;align-items:center;justify-content:space-between;margin:12px 0}dialog select{max-width:65%;padding:7px;border:1px solid var(--line);border-radius:8px;background:white;font-size:16px}dialog textarea{width:100%}dialog pre{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}dialog details{margin-top:15px}.note,#environment,#context-label{font-size:13px;color:#7b887f}.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(min-width:650px){#messages{padding:24px 30px}.message{max-width:80%}#composer{padding-left:24px;padding-right:24px}}@media(max-height:430px){.app-header{padding-top:4px;padding-bottom:4px}nav{margin-top:0}.reply-status{min-height:22px}#text{max-height:80px}h1{font-size:17px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.login-page{overflow:auto}.login-page main{max-width:420px;margin:10dvh auto;padding:24px}.login-page input{display:block;width:100%;font-size:18px;padding:12px;margin:12px 0;border:1px solid #dbe3dc;border-radius:12px}
