:root {
  color-scheme: light;
  --ink:#40392e; --sub:#706a60; --rose:#9c4955; --rose-dark:#873d49; --rose-pale:#f8e8e5;
  --cream:#fbf8f0; --card:#fffdf8; --line:#e4ddce; --sage:#686f4a;
  --sans:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --serif:"Songti SC","STSong","Noto Serif CJK SC","Source Han Serif SC",Georgia,serif;
  font-family:var(--sans); color:var(--ink); font-size:16px; -webkit-text-size-adjust:100%;
}
* {box-sizing:border-box}
[hidden] {display:none!important}
body {margin:0; background:var(--cream)}
button,input,textarea {font:inherit; color:inherit}
button {border:0; cursor:pointer; -webkit-tap-highlight-color:transparent}
button:disabled {cursor:default}
button:focus-visible,a:focus-visible {outline:3px solid #a56057; outline-offset:4px}
button,input,textarea {touch-action:manipulation}
img {display:block; max-width:100%}
svg.icon {width:1.3rem; height:1.3rem; flex-shrink:0; stroke:currentColor; fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round}
h1,h2,p,figure {margin:0}
.icon-button {width:42px;height:42px;display:inline-grid;place-items:center;border-radius:12px;color:var(--sub);background:transparent;padding:0}
.icon-button:hover {background:#e9e1d457;color:var(--ink)}
.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}
.wordmark {display:flex;gap:.75rem;align-items:center;font-family:var(--serif);font-weight:700;letter-spacing:.05em;white-space:nowrap}
.orange-mark {position:relative;display:inline-block;width:24px;height:22px;flex-shrink:0;border-radius:49% 53% 52% 53%;background:#e9a44e;box-shadow:inset -3px -3px 0 #d58337;transform:rotate(-8deg);margin-top:4px}
.orange-mark::before {content:"";position:absolute;width:11px;height:6px;left:13px;top:-5px;border-radius:90% 5% 90% 8%;background:#7a8655;transform:rotate(-9deg)}
.orange-mark::after {content:"";position:absolute;width:4px;height:7px;left:4px;top:5px;border-radius:50%;background:#f6c879;transform:rotate(25deg)}
.paper {background-color:#faf7ee;background-image:radial-gradient(#a99a742c .7px,transparent .8px);background-size:7px 7px}
.login-page {min-height:100svh;display:flex;flex-direction:column}
.masthead {width:min(1272px,90%);margin:0 auto;padding:clamp(24px,4.1vh,46px) 0;border-bottom:1px solid #dcd5c6}
.masthead .wordmark {font-size:1.1rem}
.login-layout {width:min(1160px,86%);flex:1;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.86fr);align-items:center;gap:clamp(50px,7vw,115px);padding:clamp(48px,8vh,98px) 0 clamp(70px,12vh,140px)}
.postcard {position:relative;background:#fffdf6;border:1px solid #e6decf;border-radius:6px;padding:clamp(9px,1.25vw,18px) clamp(9px,1.25vw,18px) 0;transform:rotate(-2.25deg);box-shadow:0 3px 4px #67533114,0 14px 28px -12px #705a3b3b}
.postcard-image {width:100%;height:auto;aspect-ratio:1.34;object-fit:cover;object-position:50% 44%;border-radius:2px;background:#ebd6aa}
.postcard figcaption {display:flex;align-items:center;justify-content:space-between;padding:clamp(13px,2.4vw,30px) 3%;gap:10px;font:600 clamp(18px,1.7vw,27px)/1.35 var(--serif);letter-spacing:.08em}
.signature {display:flex;align-items:center;gap:6px;color:var(--rose);font-size:.83em;transform:rotate(-6deg)}
.signature .icon {width:.95em;height:.95em}
.washi {z-index:1;position:absolute;top:-13px;left:36%;width:27%;height:34px;background-color:#e7bbacdf;background-image:repeating-linear-gradient(90deg,#fff5eb5e 0 3px,transparent 3px 8px),repeating-linear-gradient(0deg,#fff5eb55 0 3px,transparent 3px 8px);transform:rotate(4deg);clip-path:polygon(0 0,100% 0,98% 15%,100% 28%,98% 43%,100% 57%,98% 76%,100% 100%,0 100%,2% 83%,0 64%,2% 51%,0 34%,2% 20%)}
.entry {width:100%;max-width:390px;justify-self:center}
.envelope {position:relative;width:42px;height:29px;border:1.8px solid #aa8d70;border-radius:4px;background:#fff5dc;transform:rotate(-8deg);margin:0 0 21px 3px;overflow:hidden;box-shadow:1px 2px 0 #e5dac5}
.envelope::before {content:"";position:absolute;left:5px;top:-15px;width:26px;height:26px;border:1.6px solid #b79a7e;border-radius:3px;transform:rotate(45deg)}
.envelope span {position:absolute;left:14px;top:5px;font-size:14px;color:var(--rose);line-height:1}
.entry h1,.welcome h1 {font-family:var(--serif);font-weight:700;letter-spacing:-.055em}
.entry h1 {font-size:clamp(2.05rem,3.05vw,3.25rem);line-height:1.35;white-space:nowrap}
.pink-dot {color:#bc7075}
.intro-line {font-size:1rem;line-height:1.65;color:var(--sub);margin-top:.45rem}
#login-form {margin-top:clamp(24px,4vh,38px)}
#login-form label {display:block;font-weight:650;font-size:.9rem;margin:0 0 9px}
.field {display:flex;align-items:center;gap:11px;border:1px solid #d8cebd;border-radius:14px;background:#fffdf8;color:#927e68;min-height:52px;padding:0 14px;transition:border-color .16s,box-shadow .16s}
.field:focus-within {border-color:var(--rose);box-shadow:0 0 0 3px #ba7c8618}
.field + label {margin-top:20px!important}
.field input {width:100%;min-width:0;border:0;background:transparent;outline:0;line-height:1.5;color:var(--ink);padding:13px 0}
.field input::placeholder,.composer textarea::placeholder {color:#857d71;opacity:1}
.field .icon {width:19px;height:19px}
.peek {width:36px;height:40px;margin-right:-7px;flex-shrink:0}
.primary,.new-chat {display:flex;align-items:center;justify-content:center;gap:.65rem;font-weight:650}
.primary {border-radius:14px;background:var(--rose);color:#fffaf6;box-shadow:0 3px 0 #783540}
.primary:hover {background:var(--rose-dark)}
.primary:active {transform:translateY(2px);box-shadow:0 1px 0 #783540}
.primary:disabled {opacity:.75}
.enter-button {margin-top:25px;min-height:52px;width:100%}
.form-error {font-size:.88rem;color:#8e3646;margin-top:12px;line-height:1.5}
.chat-shell {height:100vh;height:100dvh;display:grid;grid-template-columns:270px minmax(0,1fr);overflow:hidden}
.sidebar {display:flex;flex-direction:column;min-height:0;padding:27px 17px 10px;background:#f3efdf;border-right:1px solid var(--line)}
.side-head {display:flex;align-items:center;justify-content:space-between;padding:3px 6px 0}
.side-head .wordmark {font-size:1.04rem}
.new-chat {width:100%;background:#e8deca;color:#544330;border:1px solid #d6c8ac;border-radius:13px;min-height:45px;margin:30px 0 28px}
.new-chat:hover {background:#e2d6bd}
.history-section {flex:1;min-height:0;overflow:auto;scrollbar-width:thin}
.history-section h2 {font-size:.85rem;font-weight:600;color:#726b5e;margin:0 10px 10px}
#empty-history {color:#797264;font-size:.88rem;line-height:1.7;padding:4px 10px}
.history-row {display:flex;align-items:center;gap:1px;border-radius:10px;margin-bottom:3px}
.history-row.active {background:#e9e0cf}
.history-row:hover {background:#ece5d5}
.history-link {border-radius:9px;background:none;text-align:left;min-width:0;flex:1;display:flex;align-items:center;gap:8px;padding:10px;font-size:.93rem}
.history-link span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-link .icon {width:16px;height:16px;color:#8c806b}
.history-row .delete {width:32px;height:34px;opacity:0}
.history-row .delete .icon {width:16px;height:16px}
.history-row:focus-within .delete,.history-row:hover .delete,.history-row.active .delete {opacity:1}
.side-foot {border-top:1px solid #dcd4c3;margin-top:10px;padding-top:9px}
.album-open {display:flex;align-items:center;gap:.7rem;padding:10px;background:none;border-radius:10px;font-size:.93rem}
.album-open:hover {background:#e9e1d2}
.profile {display:flex;align-items:center;gap:9px;padding:9px 5px 3px;font-size:.95rem;font-weight:600}
.profile img {width:40px;height:40px;object-fit:contain;background:#f7e0d9;border-radius:50%}
.profile button {margin-left:auto}
.chat-main {min-width:0;min-height:0;display:flex;flex-direction:column;background:#fffcf6}
.chat-bar {display:flex;align-items:center;min-height:64px;gap:8px;padding:9px clamp(16px,3vw,44px);border-bottom:1px solid #ebe5d8}
.chat-heading {display:flex;gap:12px;min-width:0;align-items:center;flex:1}
#thread-title {font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.model-tag {flex-shrink:0;color:#63684a;background:#eef0e4;font-size:.76rem;font-weight:650;border-radius:6px;padding:4px 7px;line-height:1.2;letter-spacing:.02em}
.conversation {min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;scrollbar-width:thin}
.welcome {width:min(100%,840px);margin:auto;padding:32px 24px;text-align:center}
.portrait-pair {display:flex;justify-content:center;align-items:center;position:relative;margin:0 auto 25px;width:168px}
.portrait {height:85px;width:85px;display:grid;place-items:center;background:#f5e9c9;border:4px solid #fffdf7;border-radius:26px;box-shadow:0 2px 8px #725b3121;overflow:hidden}
.portrait img {height:100%;width:100%;object-fit:contain}
.portrait.lulu {transform:rotate(-9deg)}
.portrait.lumei {background:#f6dfdc;transform:rotate(9deg);margin-left:-6px}
.pair-heart {position:absolute;z-index:1;top:-12px;left:51%;color:#bd7177;font-size:19px;transform:rotate(13deg)}
.welcome h1 {font-size:clamp(2rem,3.2vw,3.15rem);line-height:1.35}
.welcome>p {color:var(--sub);margin:11px 0 24px;line-height:1.7}
.prompts {display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.prompts button {display:inline-flex;align-items:center;gap:8px;border:1px solid #e6decd;background:#fffdf7;border-radius:13px;padding:9px 13px 9px 9px;font-size:.91rem;transition:transform .17s,border-color .17s}
.prompts button:hover {transform:translateY(-2px);border-color:#bca98c}
.prompt-icon {display:grid;place-items:center;width:28px;height:28px;border-radius:9px}
.prompt-icon .icon {width:16px;height:16px}
.pink {background:#f8e1df;color:#9d4555}.orange {background:#f9e7c6;color:#985b27}.green {background:#e9eddd;color:#647448}
.messages,.compose-area {width:min(100%,860px);align-self:center;padding-inline:clamp(16px,4vw,48px)}
.messages {padding-top:22px}
.messages:empty {display:none}
.turn {padding-bottom:24px}
.user-wrap {display:flex;justify-content:flex-end;margin:3px 0 22px}
.user-bubble {background:#f6e4df;border:1px solid #efd7d1;padding:11px 16px;border-radius:18px 18px 4px 18px;max-width:min(86%,620px);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}
.assistant-head {display:flex;align-items:center;gap:8px;font-size:.88rem;font-weight:650;margin:0 0 6px}
.assistant-head img {width:30px;height:30px;object-fit:contain;border-radius:9px;background:#f6ebd4}
.answer {overflow-wrap:anywhere;line-height:1.8;min-width:0}
.answer p,.answer ul,.answer ol,.answer pre,.answer blockquote,.answer table,.answer h1,.answer h2,.answer h3,.answer h4 {margin:0 0 .8em}
.answer>:last-child {margin-bottom:0}
.answer h1,.answer h2,.answer h3,.answer h4 {line-height:1.45;margin-top:1em}
.answer h1 {font-size:1.45rem}.answer h2 {font-size:1.23rem}.answer h3 {font-size:1.1rem}
.answer ul,.answer ol {padding-left:1.65em}
.answer li+li {margin-top:.25em}
.answer blockquote {border-left:3px solid #d5ad8c;padding-left:.8em;color:#74644f}
.answer pre {white-space:pre;max-width:100%;overflow:auto;border:1px solid #e1d9c9;background:#f6f2e9;border-radius:12px;padding:12px 15px;line-height:1.55}
.answer code {font-family:ui-monospace,Menlo,monospace;font-size:.9em;background:#f1eadf;border-radius:4px;padding:.1em .25em}
.answer pre code {padding:0;background:none;border:0}
.answer table {border-collapse:collapse;display:block;max-width:100%;overflow:auto}
.answer th,.answer td {padding:5px 9px;border:1px solid var(--line);text-align:left}
.answer a {color:var(--rose);text-underline-offset:3px}
.answer hr {border:none;border-top:1px solid var(--line);margin:12px 0}
.answer.thinking {font-size:.9rem;color:var(--sub)}
.turn-foot {display:flex;align-items:center;gap:8px;margin-top:5px;min-height:24px;color:var(--sub);font-size:.82rem}
.turn-foot .icon-button {width:33px;height:32px}
.turn-foot .icon {width:15px;height:15px}
.compose-area {padding-top:10px;padding-bottom:max(10px,env(safe-area-inset-bottom))}
.notice {background:#f9ebdf;color:#784a36;border:1px solid #e8d1bd;font-size:.88rem;border-radius:10px;padding:8px 12px;margin:0 0 8px}
.composer {display:flex;align-items:flex-end;gap:10px;background:#fffefb;border:1px solid #d9cbb9;border-radius:20px;padding:9px 10px 9px 16px;box-shadow:0 3px 14px #6c4c290a}
.composer:focus-within {border-color:#ba8583;box-shadow:0 0 0 3px #bc828512}
.composer textarea {flex:1;resize:none;min-width:0;outline:0;background:none;border:0;max-height:min(160px,28dvh);padding:8px 0;line-height:1.55}
#send {flex-shrink:0;display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--rose);color:white}
#send:disabled {background:#e3d9d0;color:#796e65}
#stop {flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:13px;color:var(--ink);background:#eee5da}
#stop:disabled {opacity:.55}
#stop[hidden],#quote-selection[hidden],.draft-quotes[hidden] {display:none}
#quote-selection {position:fixed;z-index:9;padding:6px 12px;border-radius:9px;background:#493f34;color:white;font-size:.85rem;box-shadow:0 3px 12px #37271629}
.draft-quotes {margin:0 0 6px;padding:0;border:0;min-width:0;max-height:min(24dvh,185px);overflow:auto}
.draft-quote {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:3px 6px;margin:3px 0;padding:7px 9px 5px 12px;border:1px solid var(--line);border-radius:12px;background:#fcf8f1}
.draft-quote blockquote,.sent-quote blockquote {margin:0;border-left:2px solid #bc9283;padding:1px 0 1px 9px;color:var(--sub);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45;font-size:.86rem}
.draft-quote blockquote {max-height:3em;overflow:auto}
.draft-quote .remove-quote {width:26px;height:26px}
.quote-note {grid-column:1/-1;width:100%;max-height:6em;resize:vertical;border:0;background:none;color:var(--ink);font:inherit;padding:3px 0}
.sent-quote {border:1px solid var(--line);border-radius:10px;background:#faf6ef;max-width:87%;padding:7px 11px}
.sent-quote p {margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.user-wrap:has(.sent-quote) {flex-direction:column;align-items:flex-end;gap:5px}
.steers {margin:-12px 0 12px;text-align:right}
.steer-heading {color:var(--sub);font-size:.76rem}
.steers .user-wrap {text-align:start;margin:4px 0}
.compose-foot {margin:0 0 0 auto;color:#797267;text-align:center;font-size:.73rem;line-height:1.4;white-space:nowrap}
.foot-heart {color:#ab6874}
dialog {border:1px solid #dfd5c5;border-radius:20px;background:var(--card);color:var(--ink);box-shadow:0 16px 80px #33271944;max-width:calc(100vw - 32px)}
dialog::backdrop {background:#302a2380}
.album-dialog {width:490px;padding:18px}
.dialog-head,.album-caption,.dialog-actions {display:flex;align-items:center;justify-content:space-between;gap:12px}
.dialog-head h2,.confirm-dialog h2 {font:700 1.4rem/1.4 var(--serif)}
.dialog-head {margin:0 0 9px}
.album-frame {border-radius:12px;overflow:hidden;background:#f2eee6;aspect-ratio:1.5}
.album-frame img {width:100%;height:100%;object-fit:contain}
.album-caption {padding:13px 2px 0;font-size:.92rem}
.album-dots {display:flex}
.album-dots button {width:28px;height:28px;display:grid;place-items:center;background:transparent}
.album-dots button::before {content:"";width:9px;height:9px;border-radius:50%;background:#d8cbbc}
.album-dots button[aria-pressed=true]::before {background:var(--rose)}
.confirm-dialog {width:360px;padding:24px}
.confirm-dialog p {margin:12px 0 22px;color:var(--sub);line-height:1.6;overflow-wrap:anywhere}
.dialog-actions {justify-content:flex-end}
.dialog-actions button {border-radius:10px;padding:9px 16px;background:#eee8dc;font-size:.94rem}
.dialog-actions .danger {background:var(--rose);color:white}
.mobile-only,.scrim {display:none}
@media(max-width:940px) and (min-width:761px){
 .login-layout {gap:38px;width:90%;grid-template-columns:1.08fr 1fr}.chat-shell{grid-template-columns:230px minmax(0,1fr)}.side-head .wordmark{font-size:.94rem;gap:8px}.prompts{gap:6px}.prompts button{padding-right:9px;font-size:.85rem}
}
@media(max-width:760px){
 .masthead{padding:17px 0;width:calc(100% - 40px)}.masthead .wordmark{font-size:1rem}
 .login-layout{flex:initial;grid-template-columns:1fr;gap:27px;width:min(420px,calc(100% - 44px));padding:27px 0 34px}
 .postcard{width:93%;justify-self:center;padding:7px 7px 0;transform:rotate(-1.7deg)}
 .postcard-image{aspect-ratio:2.13}.postcard figcaption{font-size:16px;padding:8px 3% 9px}
 .washi{height:23px;top:-9px}.entry{max-width:100%}.envelope{display:none}
 .entry h1{font-size:clamp(2rem,7.4vw,2.4rem)}.intro-line{margin-top:2px;font-size:.95rem}
 #login-form{margin-top:18px}.field+label{margin-top:15px!important}.enter-button{margin-top:20px}
 .chat-shell{display:block}.chat-main{height:100%;width:100%}
 .sidebar{position:fixed;z-index:4;inset:0 auto 0 0;width:min(300px,83vw);height:100dvh;transform:translateX(-102%);visibility:hidden;transition:transform .2s,visibility .2s;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(10px,env(safe-area-inset-bottom))}
 .chat-shell.menu-open .sidebar{transform:translateX(0);visibility:visible}
 .mobile-only{display:inline-grid}.scrim{position:fixed;z-index:3;inset:0;display:block;background:#302a2355;width:100%;height:100%}
 .chat-bar{min-height:54px;padding:4px 8px;gap:2px}.chat-heading{justify-content:center;gap:6px;font-size:.93rem}
 .model-tag{font-size:.73rem;padding:3px 5px}.welcome{padding:24px 15px}.welcome>p{font-size:.94rem}
 .portrait{width:72px;height:72px;border-radius:22px}.portrait-pair{margin-bottom:19px}
 .prompts{gap:7px}.prompts button{font-size:.83rem;padding:7px 8px;gap:5px}.prompt-icon{width:24px;height:24px;border-radius:8px}
 .history-row .delete{opacity:1}.messages{padding-top:16px}.compose-area{padding-inline:10px}
 .user-bubble{max-width:91%}.side-head .wordmark{font-size:1rem}
}
@media(max-width:380px){.login-layout{width:calc(100% - 34px);gap:20px}.prompt-icon{display:none}.chat-heading{font-size:.86rem}.album-dialog{padding:12px}.welcome h1{font-size:1.75rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:0s!important;transition:none!important;scroll-behavior:auto!important}}
#file-list {max-height:60dvh;overflow:auto}
.files-empty {color:var(--sub);padding:10px 0 20px;line-height:1.7}
.file-link {display:flex;align-items:center;gap:10px;padding:12px 3px;border-top:1px solid var(--line);text-decoration:none;color:var(--rose);overflow-wrap:anywhere}
.file-link small {color:var(--sub);white-space:nowrap;margin-left:auto}
.project-switch {margin:22px 3px 0}
.project-switch label,.note-label {display:block;font-size:.82rem;font-weight:650;color:var(--sub);margin-bottom:6px}
.project-switch>div {display:flex;gap:6px}
.project-switch select,.model-tag,.dialog-input,#project-notes {font:inherit;color:var(--ink);border:1px solid var(--line);background:var(--card);border-radius:10px}
.project-switch select {flex:1;min-width:0;height:39px;font-size:.95rem;padding:0 8px}
#new-project {height:39px;padding:0 11px;white-space:nowrap;font-size:.85rem;font-weight:600;color:var(--ink);background:#e8deca;border-radius:10px}
.project-switch+.new-chat {margin:12px 0 20px}
select.model-tag {color:#556044;background:#edf0e3;font:600 .82rem/1.4 var(--sans);padding:5px 6px;max-width:155px;min-height:32px}
.effort-picker {display:inline-flex;align-items:center;gap:2px;flex:none;padding-left:8px;border:1px solid var(--line);border-radius:10px;background:#f6f2e9;color:#615747;font:600 .82rem/1.4 var(--sans)}
.effort-picker span {font-weight:450}
.effort-picker select {min-height:30px;padding:2px 3px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;cursor:pointer}
.effort-picker:has(select:disabled) {opacity:.65}
@media(max-width:540px){.chat-heading{flex-wrap:wrap;justify-content:flex-start;gap:3px 6px}.chat-heading #thread-title{flex-basis:100%;min-width:0}.chat-bar{padding-block:6px}.effort-picker{font-size:.76rem}}
.settings-dialog {width:min(420px,calc(100vw - 26px));padding:20px}
#settings-fields {margin:0;padding:0;border:0;min-width:0}
.settings-dialog .dialog-head {margin-bottom:18px}.settings-dialog .dialog-head button{font-size:1.45rem}
.setting-row {display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--line)}
.setting-row small {display:block;color:var(--sub);font-size:.8rem;font-weight:400;margin-top:3px}
.setting-row input {width:22px;height:22px;accent-color:var(--rose)}
.fixed-setting {font-size:.86rem;color:var(--sage)}
.note-label {margin-top:16px}.dialog-input,#project-notes {padding:10px 12px;display:block;width:100%;margin:6px 0 10px;line-height:1.6;font:inherit}
#project-notes{resize:vertical}.dialog-message {font-size:.85rem;color:var(--rose);margin:8px 0;min-height:1em}
.library-actions {display:flex;align-items:center;gap:9px;margin-bottom:12px}.library-actions>span,.reply-model {font-size:.76rem;color:var(--sub);font-weight:400}
.soft-button,.add-file {background:#f1e9d8;color:var(--ink);border-radius:8px;padding:8px 12px;font-size:.9rem}
#file-list h3 {font-size:.88rem;color:var(--sub);margin:12px 0 4px}
.library-row {display:flex;gap:7px;align-items:center}.library-row .file-link{flex:1;min-width:0}.library-row a span{overflow-wrap:anywhere}
.add-file {flex-shrink:0;font-size:.83rem}.attached,.message-files {display:flex;flex-wrap:wrap;gap:5px}
.attached {padding:0 4px 6px;max-height:85px;overflow-y:auto}.attached button,.message-files a {font-size:.82rem;color:#6a513c;background:#f6ebda;border:1px solid #e7dac5;border-radius:9px;padding:4px 8px;overflow-wrap:anywhere;max-width:100%;text-decoration:none}
.user-wrap:has(.message-files) {flex-direction:column;align-items:flex-end;gap:5px}
#attach {flex-shrink:0;width:35px;height:42px}#attach .icon {width:23px;height:23px}
.composer:has(#attach) {padding-left:7px;gap:6px}
.voice-button {display:inline-flex;align-items:center;justify-content:center;align-self:flex-end;gap:4px;flex:none;min-width:42px;min-height:42px;padding:0 9px;border-radius:12px;color:var(--ink);background:#f3ecdf;font-size:.88rem;white-space:nowrap}
.voice-button span:empty {display:none}
.voice-button .icon {width:19px;height:19px}
.voice-button:disabled {opacity:.55}
.voice-button[data-active="true"] {background:var(--rose);color:#fff}
.voice-panel {display:flex;align-items:center;gap:8px;margin:0 0 7px;padding:7px 10px;border-radius:10px;background:#f4eee4;color:var(--ink);font-size:.9rem}
#voice-status {min-width:0;overflow-wrap:anywhere}
#voice-clock {white-space:nowrap;font-variant-numeric:tabular-nums}
#voice-cancel {margin-left:auto;flex:none;min-height:32px;padding:3px 9px;border-radius:7px;color:var(--ink);background:var(--card)}
@media(max-width:480px){.voice-button{padding:0 6px}.voice-panel{gap:5px}}
.composer-meta {display:flex;flex-wrap:wrap;align-items:center;gap:0 10px;margin-top:3px;padding:0 3px}
.usage-tools {display:flex;flex-wrap:wrap;align-items:center;max-width:100%;gap:0 5px}
.meta-button {display:inline-flex;align-items:center;gap:5px;max-width:100%;min-height:32px;padding:2px 4px;background:transparent;border-radius:6px;color:var(--sub);font-size:.79rem;line-height:1.4;text-align:left;font-variant-numeric:tabular-nums}
.meta-button:hover,.meta-button:focus-visible {background:#f1ecdf;color:var(--ink)}
.meta-button strong {color:var(--ink);font-weight:600}
.context-button,.meta-label,.quota-value {white-space:nowrap}
.context-ring {width:16px;height:16px;flex:none;fill:none;stroke-width:2.6}
.ring-track {stroke:#d8d2c2}
.context-button[data-measured="false"] .ring-track {stroke-dasharray:3 2}
#usage-arc {stroke:var(--sage)}
.context-button[data-measured="false"] strong {color:var(--sub);font-weight:400}
#usage:not([hidden]) + .quota-glance::before {content:"";height:12px;width:1px;flex:none;background:var(--line);margin-right:4px}
.quota-glance::after {content:"";width:5px;height:5px;flex:none;border:solid currentColor;border-width:1px 1px 0 0;transform:rotate(45deg);margin:0 2px}
#quota-glance-values {display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:0 9px;min-width:0}
.quota-value {display:inline-flex;gap:3px;align-items:baseline}
.context-dialog {width:360px}
.context-note {margin:2px 0;color:var(--sub);font-size:.9rem;line-height:1.55}
#usage-capacity {margin:15px 0}
.capacity-label,.context-facts div {display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.capacity-label {font-size:.92rem}
.capacity-label strong,.context-facts dd {font-variant-numeric:tabular-nums}
#usage-bar {display:block;width:100%;height:6px;margin-top:7px;border:0;border-radius:8px;overflow:hidden;appearance:none;background:#e7e2d4;color:var(--sage);accent-color:var(--sage)}
#usage-bar::-webkit-progress-bar {background:#e7e2d4}
#usage-bar::-webkit-progress-value {background:var(--sage)}
#usage-bar::-moz-progress-bar {background:var(--sage)}
.context-facts {margin:12px 0 0;border-top:1px solid var(--line);padding-top:8px;font-size:.88rem;line-height:1.5}
.context-facts div {padding:4px 0}
.context-facts dt {color:var(--sub)}
.context-facts dd {margin:0;text-align:right;overflow-wrap:anywhere}
.quota-dialog {max-height:calc(100dvh - 28px);overflow-y:auto}
.quota-model {display:flex;align-items:center;justify-content:space-between;gap:7px}
.quota-model strong {font-size:1rem}
.quota-caption,#quota-message {font-size:.85rem;color:var(--sub);line-height:1.55}
.quota-channel {border-top:1px solid var(--line);padding:12px 0}
.quota-channel h3,.quota-channel p {margin:0}
.quota-channel h3 {font-size:1rem}
.quota-channel .quota-state {margin:5px 0 0;font-size:1rem;line-height:1.45}
.quota-channel .quota-caption {margin-top:3px}
.quota-row {display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:2px 8px;margin-top:10px;font-size:.94rem}
.quota-row strong {font-variant-numeric:tabular-nums}
.quota-count {grid-column:1/-1;text-align:right;font-variant-numeric:tabular-nums;color:var(--sub);font-size:.87rem}
.quota-warning,.quota-glance .quota-warning {color:var(--rose)}
.quota-account {padding-top:10px;border-top:1px solid var(--line)}
.quota-account summary {cursor:pointer;font-size:.9rem;color:var(--ink)}
.quota-scope {margin:8px 0 0;font-size:.86rem;line-height:1.55}
.quota-scope div {display:flex;justify-content:space-between;flex-wrap:wrap;gap:2px 8px}
.quota-scope div+div {margin-top:5px}
.quota-scope dd {margin:0;color:var(--sub)}
@media(max-width:600px){.composer-meta{padding:0}.compose-foot{width:100%;margin:0}.usage-tools{gap:0 2px}.meta-button{font-size:.76rem;padding-inline:3px;gap:4px}#quota-glance-values{column-gap:6px}}
@media(max-width:410px){
 .usage-tools{column-gap:1px}.meta-button{padding-inline:2px;gap:3px}.quota-api,.quota-glance::after{display:none}
 #usage:not([hidden]) + .quota-glance::before{margin-right:1px}
}
@media(max-width:350px){
 #usage-qualifier,#usage:not([hidden]) + .quota-glance::before{display:none}
 .usage-tools{column-gap:4px}.meta-button{padding-inline:1px;gap:2px}.context-ring{width:14px;height:14px}
 #quota-glance-values{column-gap:3px}.quota-value{gap:2px}
}
@media(max-width:760px){.project-switch{margin-top:14px}.project-switch+.new-chat{margin:8px 0 15px}select.model-tag{font-size:.76rem;max-width:130px} .side-foot{padding-top:4px}.album-open{padding:7px 10px}.reply-model{font-size:.72rem}}
