.usage-stack{min-width:0;display:grid;gap:9px}.usage-row{display:grid;grid-template-columns:48px minmax(112px,auto) minmax(70px,1fr);align-items:center;gap:8px;font-size:12px}.usage-row strong{text-align:right;white-space:nowrap}.usage-row i{height:5px;background:var(--line);border-radius:5px;overflow:hidden}.usage-row b{display:block;height:100%;background:var(--violet)}.image-usage b{background:#d24d9d}.reset-live{display:flex;flex-wrap:wrap;justify-content:space-between;gap:3px 10px;color:var(--muted);font-size:11px}.reset-live small{width:100%;font-size:10px}.composer-row{display:flex;align-items:center;gap:8px}.composer textarea{position:static;flex:1;min-width:0}.tool-button,.send-button{position:static!important;flex:0 0 42px;width:42px!important;height:42px!important;border:1px solid var(--line)!important;border-radius:11px!important;background:var(--panel2)!important;color:var(--text)!important}.tool-button svg{width:21px;fill:none;stroke:currentColor;stroke-width:1.7}.send-button{background:var(--violet)!important;color:#fff!important}.composer>small{position:static!important;display:block;padding:5px 6px 0}.composer{border:1px solid var(--line);border-radius:16px;padding:10px;background:var(--panel)}.composer textarea{border:0!important;background:transparent!important;padding:10px!important}.composer.image-mode{border-color:#c244df;box-shadow:0 0 0 1px #c244df}.composer.image-mode #generateButton{background:#8a24aa!important;color:#fff!important}#attachment{display:flex;align-items:center;gap:10px;margin:0 0 8px 92px;padding:8px;border-radius:10px;background:var(--panel2)}#attachment[hidden],#modeNotice[hidden]{display:none}#attachment img{width:54px;height:54px;object-fit:cover;border-radius:8px}#attachment span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#attachment button,#modeNotice button{border:0;background:none;color:var(--text);cursor:pointer}#modeNotice{display:flex;justify-content:space-between;margin:0 0 8px 92px;padding:8px 12px;border-radius:9px;background:#81209c;color:#fff}#dropOverlay{display:none;position:absolute;z-index:20;inset:14px;border:2px dashed var(--violet);border-radius:22px;background:#170d1fe8;place-items:center;color:#fff;font-size:24px;font-weight:850;pointer-events:none}#dropOverlay.show{display:grid}.chat-main{position:relative}.image-result{padding:10px;max-width:min(720px,92%)}.image-result img{display:block;width:100%;height:auto;border-radius:13px}.image-result p{padding:4px 8px;margin:7px 0 0;color:var(--muted);font-size:13px}
@media(max-width:1180px){.chat-top{align-items:stretch;flex-direction:column}.usage-stack{width:100%;grid-template-columns:1fr 1fr;padding-top:2px}.reset-live{grid-column:1/-1}}
@media(max-width:760px){header{height:64px}.brand img{width:118px!important}nav{gap:6px!important}nav>a:first-child{display:none}.theme{width:auto!important;height:36px!important;padding:0 9px}.theme-label{display:none}.chat-shell{height:calc(100dvh - 64px);min-height:520px}.chat-main{grid-template-rows:auto minmax(0,1fr) auto}.chat-top{gap:10px;padding:10px!important}.model-picker{display:flex!important;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:3px}.model-card{flex:0 0 min(72vw,230px);min-height:58px;scroll-snap-align:start}.usage-stack{grid-template-columns:1fr;gap:6px}.usage-row{grid-template-columns:48px minmax(0,1fr);padding:7px 9px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.usage-row strong{text-align:left;font-size:11px}.usage-row i{grid-column:1/-1}.reset-live{grid-column:auto;display:grid;grid-template-columns:1fr 1fr;padding:0 3px;font-size:10px}.reset-live small{grid-column:1/-1}.messages{padding:18px 10px!important}.empty{margin-top:8vh}.empty h1{font-size:clamp(30px,10vw,38px)!important;line-height:1.08;margin:8px}.empty p{font-size:15px!important}.tool-button,.send-button{flex-basis:38px;width:38px!important;height:38px!important}.composer{width:calc(100% - 16px);margin-bottom:max(8px,env(safe-area-inset-bottom));padding:7px}.composer-row{gap:5px}.composer textarea{padding:8px 5px!important}.composer>small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#attachment,#modeNotice{margin-left:0}.bubble{max-width:96%!important;padding:12px 14px!important}.image-result{max-width:100%!important}footer{display:none}}
@media(max-width:390px){.tool-button,.send-button{flex-basis:36px;width:36px!important;height:36px!important}.model-card{flex-basis:78vw}.composer>small{display:none!important}}
