:root{color-scheme:light;--ink:#142033;--muted:#748096;--line:rgba(38,58,94,.1);--blue:#2674ea;--violet:#7458e8;--green:#13a078;--surface:rgba(255,255,255,.92);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}html,body{height:100%;margin:0}body{overflow:hidden;color:var(--ink);background:#f6f7fb}button,textarea{font:inherit}button{color:inherit}.app-shell{width:min(100%,620px);height:100%;margin:auto;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:radial-gradient(circle at 94% 3%,rgba(96,112,245,.13),transparent 25%),linear-gradient(180deg,#fafbfe,#f5f6fa)}
svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.topbar{z-index:5;padding:calc(10px + env(safe-area-inset-top)) 14px 10px;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;border-bottom:1px solid rgba(42,61,94,.07);background:rgba(250,251,254,.84);backdrop-filter:blur(22px)}.icon-button{width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:13px;background:transparent;cursor:pointer}.icon-button:active{background:rgba(32,61,105,.06);transform:scale(.96)}.icon-button svg{width:21px}.identity{min-width:0;justify-self:center;padding:0 8px;display:flex;align-items:center;gap:9px;border:0;background:transparent;text-align:left;cursor:pointer}.avatar{width:36px;height:36px;padding:2px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,#e4edff,#ece7ff);box-shadow:0 7px 18px rgba(61,73,163,.12)}.avatar img{width:100%;height:100%;border-radius:10px}.identity-copy{min-width:0;display:grid}.identity-copy strong{max-width:230px;overflow:hidden;font-size:13px;letter-spacing:-.015em;text-overflow:ellipsis;white-space:nowrap}.identity-copy small{margin-top:2px;display:flex;align-items:center;gap:5px;color:#668078;font-size:8px}.identity-copy small i{width:6px;height:6px;border-radius:50%;background:#22ad82;box-shadow:0 0 0 4px rgba(34,173,130,.09)}.identity-copy small.offline{color:#a06d72}.identity-copy small.offline i{background:#d27680}.delivery-button{position:relative;justify-self:end;color:#63728a;background:rgba(236,240,248,.75)}.delivery-button.has-files{color:#286cda;background:#e8f0ff}.delivery-button b{position:absolute;top:2px;right:1px;min-width:16px;height:16px;padding:0 4px;display:grid;place-items:center;border:2px solid #fafbfe;border-radius:99px;color:#fff;background:#e46172;font-size:7px}
.chat-stage{min-height:0;padding:0 14px;overflow-y:auto;overscroll-behavior:contain}.welcome{min-height:100%;padding:58px 8px 42px;display:flex;flex-direction:column;align-items:center;text-align:center}.welcome[hidden]{display:none}.welcome-orb{width:74px;height:74px;padding:5px;margin-bottom:20px;border-radius:24px;background:linear-gradient(145deg,#e2ecff,#eee8ff);box-shadow:0 20px 50px rgba(64,73,153,.15)}.welcome-orb img{width:100%;height:100%;border-radius:20px}.eyebrow{color:#8793a7;font-size:7px;font-weight:850;letter-spacing:.19em}.welcome h1{margin:9px 0 9px;font-size:28px;letter-spacing:-.045em}.welcome>p{max-width:350px;margin:0;color:var(--muted);font-size:11px;line-height:1.7}.suggestions{width:100%;margin-top:33px;display:grid;gap:9px}.suggestions button{width:100%;padding:15px 16px;display:grid;gap:4px;border:1px solid rgba(255,255,255,.95);border-radius:17px;color:inherit;background:rgba(255,255,255,.76);box-shadow:0 10px 30px rgba(49,66,105,.05);text-align:left;cursor:pointer}.suggestions button:active{transform:scale(.99);background:#fff}.suggestions b{font-size:11px}.suggestions small{color:#8995a8;font-size:9px}
.messages{padding:24px 4px 6px;display:grid;gap:24px}.message{animation:message-in .25s ease both}.message time{display:block;color:#a0a9b8;font-size:7px}.message.user{display:flex;flex-direction:column;align-items:flex-end}.message.user .bubble{max-width:84%;padding:11px 14px;border-radius:19px 19px 5px 19px;color:#fff;background:linear-gradient(135deg,#3478e7,#675bdc);box-shadow:0 9px 23px rgba(59,82,198,.17)}.message.user .bubble p{margin:0;font-size:11px;line-height:1.65}.message.user time{margin:5px 4px 0}.message-files{margin-top:9px;display:grid;gap:7px}.message-file{min-width:210px;padding:8px;display:flex;align-items:center;gap:8px;border-radius:12px;background:rgba(255,255,255,.14)}.message-file>b{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border-radius:9px;color:#4164b7;background:rgba(255,255,255,.9);font-size:7px}.message-file>span{min-width:0;display:grid;gap:3px}.message-file strong{max-width:220px;overflow:hidden;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.message-file small{color:rgba(255,255,255,.72);font-size:7px}.message.assistant{display:block;max-width:100%}.assistant-body{min-width:0}.assistant-text{max-width:100%;padding-right:10px;font-size:11px;line-height:1.78;overflow-wrap:anywhere}.assistant-text code{padding:2px 4px;border-radius:5px;color:#465877;background:#e9edf5;font-size:.9em}.assistant-text strong{font-weight:800}.assistant-body>time{margin-top:7px}.typing{height:34px;display:flex;align-items:center;gap:4px}.typing i{width:6px;height:6px;border-radius:50%;background:#8090a9;animation:pulse 1.15s infinite}.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}.activity{max-width:100%;margin:10px 0 8px;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.68);overflow:hidden}.activity summary{height:38px;padding:0 11px;display:grid;grid-template-columns:22px minmax(0,1fr) 10px;align-items:center;gap:7px;list-style:none;cursor:pointer}.activity summary::-webkit-details-marker{display:none}.activity summary>span{width:22px;height:22px;display:grid;place-items:center;border-radius:7px;color:#687996;background:#edf0f6;font-size:9px}.activity summary>span.running{color:#3970d2;background:#eaf2ff;animation:soft-pulse 1.4s infinite}.activity summary>b{overflow:hidden;font-size:8px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.activity summary>i{width:6px;height:6px;border-right:1.5px solid #8a96a9;border-bottom:1.5px solid #8a96a9;transform:rotate(45deg);transition:.2s}.activity[open] summary>i{transform:rotate(225deg)}.activity>div{padding:0 11px 9px;display:grid;gap:6px}.activity p{margin:0;display:grid;grid-template-columns:7px minmax(0,1fr);gap:7px;color:#778399;font-size:7px;line-height:1.45}.activity p span{width:5px;height:5px;margin-top:3px;border-radius:50%;background:#aeb7c5}.activity p span.running{background:#4e83dd}.activity p span.completed{background:#2aaf83}.activity p span.failed{background:#d36574}.bottom-spacer{height:15px}
.stream-message{max-width:100%;padding:2px 8px 2px 0;font-size:11px;line-height:1.78;overflow-wrap:anywhere}.stream-message+.stream-message{margin-top:15px}.stream-message.commentary{color:#3f4c61}.stream-message.final{margin-top:18px;color:var(--ink)}.stream-message code{padding:2px 4px;border-radius:5px;color:#465877;background:#e9edf5;font-size:.9em}.stream-message strong{font-weight:800}.stream-action{width:100%;min-height:38px;margin:11px 0;padding:7px 10px;display:grid;grid-template-columns:24px minmax(0,1fr) 28px;align-items:center;gap:8px;border:1px solid rgba(49,69,103,.09);border-radius:12px;color:#69768a;background:rgba(241,244,249,.72);font:inherit;text-align:left}.stream-action.clickable{cursor:pointer}.stream-action.clickable:active{border-color:rgba(58,101,180,.22);background:#e9f1fc;transform:scale(.995)}.stream-action>span{width:24px;height:24px;display:grid;place-items:center;border-radius:8px;color:#57719d;background:#fff;font-size:9px}.stream-action p{margin:0;font-size:8px;line-height:1.45;overflow-wrap:anywhere}.stream-tail{display:flex;align-items:center;justify-content:flex-end;gap:3px}.stream-tail>i{width:7px;height:7px;border-radius:50%;background:#2ba77f}.stream-tail svg{width:14px;color:#8290a5}.stream-action.running .stream-tail>i{border:1.5px solid #517bd0;border-top-color:transparent;background:transparent;animation:spin .75s linear infinite}.stream-action.failed .stream-tail>i{background:#d36574}.stream-action.file.completed{color:#47698d;background:#edf5ff}.stream-action.file.completed>span{color:#2b78c4;background:#fff}.stream-action.command p{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:7.5px}.stream-action-group{margin:11px 0;border:1px solid rgba(49,69,103,.1);border-radius:14px;background:rgba(241,244,249,.72);overflow:hidden}.stream-action-group>summary{min-height:48px;padding:8px 10px;display:grid;grid-template-columns:28px minmax(0,1fr) 28px;align-items:center;gap:9px;list-style:none;cursor:pointer}.stream-action-group>summary::-webkit-details-marker{display:none}.stream-group-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;color:#5473a8;background:#fff;font-size:10px}.stream-group-copy{min-width:0;display:grid;gap:3px}.stream-group-copy strong{overflow:hidden;color:#46566f;font-size:8.5px;text-overflow:ellipsis;white-space:nowrap}.stream-group-copy small{color:#8d98a9;font-size:7px}.stream-group-tail{display:flex;align-items:center;justify-content:flex-end;gap:5px}.stream-group-tail i{width:7px;height:7px;border-radius:50%;background:#2ba77f}.stream-action-group.running .stream-group-tail i{border:1.5px solid #517bd0;border-top-color:transparent;background:transparent;animation:spin .75s linear infinite}.stream-action-group.failed .stream-group-tail i{background:#d36574}.stream-group-tail svg{width:14px;color:#8290a5;transition:transform .2s}.stream-action-group[open] .stream-group-tail svg{transform:rotate(180deg)}.stream-action-list{padding:0 8px 8px;display:grid;gap:6px}.stream-action-list .stream-action{min-height:36px;margin:0;border-color:rgba(49,69,103,.07);background:rgba(255,255,255,.72)}.stream-action-list .stream-action:first-child{margin-top:2px}
.composer-wrap{z-index:6;padding:8px 12px calc(8px + env(safe-area-inset-bottom));border-top:1px solid rgba(42,61,94,.07);background:rgba(249,250,253,.92);backdrop-filter:blur(22px)}.attachment-strip{display:none;gap:7px;padding:0 1px 8px;overflow-x:auto}.attachment-strip.visible{display:flex}.attachment-chip{position:relative;min-width:190px;max-width:250px;padding:8px 30px 8px 8px;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:8px;border:1px solid var(--line);border-radius:13px;background:#fff;overflow:hidden}.attachment-chip>b{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;color:#416dc7;background:#edf3ff;font-size:7px}.attachment-chip>span{min-width:0;display:grid;gap:3px}.attachment-chip strong{overflow:hidden;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.attachment-chip small{color:#8c98aa;font-size:7px}.attachment-chip button{position:absolute;top:5px;right:5px;width:22px;height:22px;border:0;border-radius:8px;color:#8390a3;background:#f0f2f6;font-size:14px}.attachment-chip>i{position:absolute;left:0;bottom:0;height:2px;background:linear-gradient(90deg,#377be8,#765be2)}.composer{min-height:50px;padding:5px;display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:end;gap:3px;border:1px solid rgba(39,58,94,.12);border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(43,56,91,.09)}.attach-button,.send-button{width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:15px;cursor:pointer}.attach-button{color:#607089;background:#f1f3f7}.attach-button svg{width:19px}.send-button{color:#fff;background:linear-gradient(140deg,#2879e9,#6c59df);box-shadow:0 7px 17px rgba(57,82,201,.2)}.send-button svg{width:19px}.attach-button:disabled{opacity:.45;box-shadow:none}.send-button:disabled{opacity:1;box-shadow:0 7px 17px rgba(57,82,201,.2)}.send-button.sending svg{display:none}.send-button.sending::after{content:"";width:15px;height:15px;border:2px solid rgba(255,255,255,.34);border-top-color:#fff;border-radius:50%;animation:spin .72s linear infinite}.composer textarea{width:100%;min-height:40px;max-height:128px;padding:10px 8px 8px;resize:none;border:0;outline:0;color:var(--ink);background:transparent;font-size:11px;line-height:1.55}.composer textarea::placeholder{color:#9ba5b4}.composer-hint{margin:6px 0 0;color:#9aa4b3;font-size:7px;text-align:center}
.drawer{position:fixed;z-index:20;inset:0;visibility:hidden}.drawer.open{visibility:visible}.drawer-backdrop{position:absolute;inset:0;background:rgba(13,20,34,.35);opacity:0;transition:.25s}.drawer.open .drawer-backdrop{opacity:1}.drawer-panel{position:absolute;inset:0 auto 0 0;width:min(88%,360px);padding:calc(18px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom));display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;background:#f8f9fc;box-shadow:24px 0 70px rgba(19,28,48,.18);transform:translateX(-102%);transition:.28s cubic-bezier(.2,.8,.2,1)}.drawer.open .drawer-panel{transform:none}.drawer-head{padding:0 4px 14px;display:flex;align-items:center;justify-content:space-between}.drawer-head h2{margin:5px 0 0;font-size:23px;letter-spacing:-.04em}.drawer-new{padding:10px;display:grid;grid-template-columns:43px minmax(0,1fr);align-items:center;gap:10px;border:0;border-radius:16px;color:#fff;background:linear-gradient(130deg,#2779e7,#7159e3);box-shadow:0 12px 28px rgba(52,77,198,.2);text-align:left}.drawer-new>svg{width:43px;height:43px;padding:12px;border-radius:12px;background:rgba(255,255,255,.14)}.drawer-new span{display:grid;gap:4px}.drawer-new strong{font-size:11px}.drawer-new small{color:rgba(255,255,255,.73);font-size:8px}.conversation-list{padding:16px 0;display:grid;align-content:start;gap:6px;overflow-y:auto}.conversation-row{display:grid;grid-template-columns:minmax(0,1fr) 36px;border-radius:15px}.conversation-row.active{background:#fff;box-shadow:0 7px 24px rgba(45,59,91,.07)}.conversation-open{min-width:0;padding:9px;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:9px;border:0;background:transparent;text-align:left}.conversation-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:#667792;background:#eceedf}.conversation-mark svg{width:15px}.conversation-mark i{width:8px;height:8px;border:2px solid #4b7bd3;border-top-color:transparent;border-radius:50%;animation:spin .8s linear infinite}.conversation-open>span:last-child{min-width:0;display:grid;gap:4px}.conversation-open strong,.conversation-open small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-open strong{font-size:9px}.conversation-open small{color:#8d98aa;font-size:7px}.conversation-more{border:0;color:#909bae;background:transparent;font-size:10px;letter-spacing:1px}.drawer-empty{padding:35px;color:#939dae;text-align:center;font-size:9px}.drawer-footer{padding:12px 4px 2px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);color:#929daf;font-size:8px}.drawer-footer button{padding:7px 9px;border:1px solid var(--line);border-radius:9px;color:#77849a;background:#fff;font-size:8px}
.dialog-layer{position:fixed;z-index:30;inset:0;display:grid;place-items:center;visibility:hidden}.dialog-layer.open{visibility:visible}.dialog-backdrop{position:absolute;inset:0;background:rgba(13,20,34,.4);opacity:0;transition:.2s}.dialog-layer.open .dialog-backdrop{opacity:1}.dialog-card{position:relative;width:min(calc(100% - 34px),360px);padding:24px;border-radius:23px;background:#fff;box-shadow:0 30px 90px rgba(15,23,40,.25);text-align:center;opacity:0;transform:translateY(12px) scale(.98);transition:.23s}.dialog-layer.open .dialog-card{opacity:1;transform:none}.dialog-icon{width:48px;height:48px;margin:auto;display:grid;place-items:center;border-radius:15px;color:#c35466;background:#fff0f2}.dialog-icon svg{width:21px}.dialog-card h3{margin:14px 0 8px;font-size:17px}.dialog-card p{margin:0;color:#7d899d;font-size:9px;line-height:1.6}.dialog-card>div{margin-top:20px;display:grid;grid-template-columns:1fr 1fr;gap:9px}.dialog-card button{height:42px;border:0;border-radius:13px;color:#65738a;background:#eff2f7;font-size:10px;font-weight:700}.dialog-card button.danger{color:#fff;background:linear-gradient(135deg,#dc6674,#c84c61)}.toast{position:fixed;z-index:40;left:50%;bottom:calc(90px + env(safe-area-inset-bottom));max-width:calc(100% - 40px);padding:10px 14px;border-radius:12px;color:#fff;background:rgba(24,32,48,.93);box-shadow:0 15px 38px rgba(19,25,39,.22);font-size:9px;opacity:0;transform:translate(-50%,10px);transition:.23s;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes pulse{0%,60%,100%{opacity:.28;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes soft-pulse{50%{opacity:.55}}@keyframes message-in{from{opacity:0;transform:translateY(6px)}}@media(max-width:380px){.topbar{padding-left:10px;padding-right:10px}.chat-stage{padding-left:11px;padding-right:11px}.composer-wrap{padding-left:9px;padding-right:9px}.welcome{padding-top:40px}.message.user .bubble{max-width:88%}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.message.user.sending .bubble{box-shadow:0 9px 23px rgba(59,82,198,.12)}.message.user.sending time{color:#7186ad}.message.user.failed .bubble{background:linear-gradient(135deg,#8390a8,#737f95);box-shadow:none}
.composer.has-active-turn{grid-template-columns:40px minmax(0,1fr) 40px 40px}.pause-button{width:40px;height:40px;display:grid;place-items:center;border:1px solid rgba(45,64,99,.1);border-radius:15px;color:#42516a;background:#edf0f5;cursor:pointer}.pause-button[hidden]{display:none}.pause-button svg{width:17px;fill:currentColor;stroke:none}.pause-button:active{transform:scale(.96)}.pause-button:disabled{opacity:1}.pause-button.pausing svg{display:none}.pause-button.pausing::after{content:"";width:14px;height:14px;border:2px solid #c7ced9;border-top-color:#51647f;border-radius:50%;animation:spin .72s linear infinite}
.composer-meta{height:28px;padding:3px 5px 0;display:flex;align-items:center;justify-content:space-between}.composer-meta>button{height:24px;padding:0 6px;display:flex;align-items:center;gap:5px;border:0;border-radius:8px;color:#627088;background:transparent;font-size:7px}.composer-meta>button:active{background:#eef1f6}.composer-meta>button b{font-size:8px}.composer-meta>button i{width:2px;height:2px;border-radius:50%;background:#9aa5b5}.composer-meta>button svg{width:11px}.model-spark{color:#536fd0}.composer-meta p{margin:0;color:#9aa4b3;font-size:7px;text-align:right}
.settings-sheet,.delivery-sheet,.action-detail-sheet,.new-chat-sheet{position:fixed;z-index:35;inset:0;visibility:hidden}.settings-sheet.open,.delivery-sheet.open,.action-detail-sheet.open,.new-chat-sheet.open{visibility:visible}.sheet-backdrop{position:absolute;inset:0;background:rgba(13,20,34,.38);opacity:0;transition:.22s}.settings-sheet.open .sheet-backdrop,.delivery-sheet.open .sheet-backdrop,.action-detail-sheet.open .sheet-backdrop,.new-chat-sheet.open .sheet-backdrop{opacity:1}.sheet-panel{position:absolute;left:50%;bottom:0;width:min(100%,620px);max-height:90%;padding:9px 16px calc(16px + env(safe-area-inset-bottom));overflow-y:auto;border-radius:27px 27px 0 0;background:#f9fafc;box-shadow:0 -25px 75px rgba(17,25,42,.2);transform:translate(-50%,102%);transition:.3s cubic-bezier(.2,.8,.2,1)}.settings-sheet.open .sheet-panel,.delivery-sheet.open .sheet-panel,.action-detail-sheet.open .sheet-panel,.new-chat-sheet.open .sheet-panel{transform:translate(-50%,0)}.sheet-handle{width:38px;height:4px;margin:1px auto 12px;border-radius:99px;background:#d9dee7}.sheet-head{display:flex;align-items:center;justify-content:space-between}.sheet-head h2{margin:5px 0 0;font-size:21px;letter-spacing:-.04em}.sheet-panel section{margin-top:21px}.sheet-panel section>h3{margin:0 0 9px;font-size:10px}.model-options{display:grid;gap:7px}.model-options>button{min-height:61px;padding:9px 12px;display:grid;grid-template-columns:40px minmax(0,1fr) 18px;align-items:center;gap:10px;border:1px solid var(--line);border-radius:16px;background:#fff;text-align:left}.model-options>button.selected{border-color:rgba(65,108,218,.34);background:#f2f6ff;box-shadow:0 8px 24px rgba(50,73,150,.07)}.model-glyph{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;color:#fff;font-size:12px;font-weight:850}.model-glyph.sol{background:linear-gradient(145deg,#3d75e3,#7657df)}.model-glyph.terra{background:linear-gradient(145deg,#168ca5,#1ca37f)}.model-glyph.luna{background:linear-gradient(145deg,#6a7188,#9299ad)}.model-options>button>span:nth-child(2){display:grid;gap:4px}.model-options strong{font-size:10px}.model-options small{color:#8995a8;font-size:8px}.model-options button>i{width:16px;height:16px;border:1.5px solid #cbd2dd;border-radius:50%}.model-options button.selected>i{border:5px solid #4c72d4}.reasoning-options{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.reasoning-options button{height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:1px solid var(--line);border-radius:14px;background:#fff}.reasoning-options button.selected{border-color:#4d73d4;color:#3f62b8;background:#edf3ff}.reasoning-options strong{font-size:9px}.reasoning-options small{color:#96a1b1;font-size:6px}.reasoning-note{margin:8px 2px 0;color:#8d98aa;font-size:7px;line-height:1.55}.access-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.access-options button{min-height:67px;padding:9px 7px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;border:1px solid var(--line);border-radius:14px;background:#fff;text-align:left}.access-options button.selected{border-color:#4d73d4;background:#edf3ff;box-shadow:0 7px 20px rgba(50,73,150,.07)}.access-options span{font-size:9px;font-weight:750}.access-options small{color:#8c98aa;font-size:7px;line-height:1.4}.access-options i{width:13px;height:13px;margin-top:auto;border:1.5px solid #cbd2dd;border-radius:50%}.access-options button.selected i{border:4px solid #4d73d4}.save-settings{width:100%;height:46px;margin-top:19px;border:0;border-radius:15px;color:#fff;background:linear-gradient(130deg,#2878e7,#7159e3);box-shadow:0 11px 25px rgba(54,77,196,.2);font-size:10px;font-weight:750}.delivery-panel{min-height:330px}.delivery-intro{margin:12px 1px 16px;color:#7f8b9e;font-size:9px}.delivery-list{display:grid;gap:8px}.delivery-file{width:100%;padding:10px;display:grid;grid-template-columns:42px minmax(0,1fr) 28px;align-items:center;gap:10px;border:1px solid var(--line);border-radius:16px;background:#fff;text-align:left}.delivery-type{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:#416dc7;background:#edf3ff;font-size:8px;font-weight:800}.delivery-file>span:nth-child(2){min-width:0;display:grid;gap:4px}.delivery-file strong{overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.delivery-file small{color:#8b97a9;font-size:7px}.delivery-file svg{width:19px;color:#4874d0}.delivery-empty{min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.delivery-empty>span{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;color:#6680b9;background:#edf2fb;font-size:22px}.delivery-empty strong{margin-top:13px;font-size:11px}.delivery-empty p{margin:6px 0 0;color:#8d98aa;font-size:8px}
.new-chat-panel{min-height:430px}.new-chat-intro{margin:12px 1px 0;color:#7f8b9e;font-size:9px;line-height:1.65}.project-path-options{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.project-path-options button{min-height:78px;padding:11px 10px;display:grid;grid-template-columns:minmax(0,1fr) 15px;grid-template-rows:auto auto;align-items:center;gap:5px 8px;border:1px solid var(--line);border-radius:15px;background:#fff;text-align:left}.project-path-options button.selected{border-color:#4d73d4;background:#edf3ff;box-shadow:0 7px 20px rgba(50,73,150,.07)}.project-path-options span{font-size:9px;font-weight:800}.project-path-options small{grid-column:1;color:#8c98aa;font-size:7px;line-height:1.35}.project-path-options i{grid-column:2;grid-row:1/3;width:14px;height:14px;border:1.5px solid #cbd2dd;border-radius:50%}.project-path-options button.selected i{border:4px solid #4d73d4}
.action-detail-panel{min-height:360px}.action-detail-content{padding:14px 0 4px;display:grid;gap:11px}.detail-loading{min-height:210px;display:flex;align-items:center;justify-content:center;gap:9px;color:#7d899b;font-size:9px}.detail-loading i{width:15px;height:15px;border:2px solid #d6dce6;border-top-color:#4f78d1;border-radius:50%;animation:spin .75s linear infinite}.detail-error{min-height:170px;display:grid;place-items:center;padding:25px;color:#8792a4;font-size:9px;text-align:center}.detail-summary{padding:11px;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:10px;border:1px solid var(--line);border-radius:15px;background:#fff}.detail-summary>span{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:#456dbe;background:#edf3ff;font-size:16px}.detail-summary>div{min-width:0;display:grid;gap:4px}.detail-summary strong{font-size:9px}.detail-summary small{overflow:hidden;color:#8995a7;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.detail-block{margin:0!important;padding:12px;border:1px solid var(--line);border-radius:15px;background:#fff}.detail-block h3{margin:0 0 8px!important;color:#748197;font-size:8px!important}.detail-block pre,.file-change-detail pre{max-height:290px;margin:0;padding:10px;overflow:auto;border-radius:10px;color:#35435a;background:#f3f5f9;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:7.5px;line-height:1.55;white-space:pre-wrap;word-break:break-word}.detail-block.output pre{color:#dbe7f5;background:#1e2938}.file-change-detail{padding:11px;border:1px solid var(--line);border-radius:15px;background:#fff}.file-change-detail header{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px}.file-change-detail header span{padding:4px 7px;border-radius:7px;color:#376cba;background:#edf4ff;font-size:7px}.file-change-detail header span.add{color:#257c5d;background:#eaf8f2}.file-change-detail header span.delete{color:#b85666;background:#fff0f2}.file-change-detail header strong{overflow-wrap:anywhere;font-size:8px}.file-change-detail>p{margin:9px 0 0;color:#7f8b9e;font-size:7.5px}.file-change-detail pre{margin-top:10px}

/* Witt 2.1.6 — quiet server workspace */
.boot-screen{position:fixed;z-index:100;inset:0;padding:env(safe-area-inset-top) 24px env(safe-area-inset-bottom);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#17243a;background:radial-gradient(circle at 50% 43%,rgba(74,116,216,.11),transparent 30%),linear-gradient(160deg,#fbfcff,#f0f4fa);transition:opacity .42s ease,transform .42s ease}.boot-screen.leaving{opacity:0;transform:scale(1.015);pointer-events:none}.boot-wordmark{width:148px;font-family:system-ui,-apple-system,"Roboto","Noto Sans",sans-serif;font-size:52px;font-weight:850;font-synthesis:none;letter-spacing:-.055em;line-height:1;text-align:center}.boot-wordmark span,.welcome h1 span{color:#2b78dc}.boot-screen>p{margin:15px 0 34px;color:#8090a8;font-size:8px;font-weight:800;letter-spacing:.28em}.boot-track{position:relative;width:112px;height:2px;border-radius:99px;background:#dfe5ee;overflow:hidden}.boot-track i{position:absolute;width:45%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2c77dd,#28a499);animation:boot-track 1.25s ease-in-out infinite}.boot-screen>small{margin-top:12px;color:#8b98aa;font-size:9px}.avatar{padding:0;color:#fff;background:linear-gradient(145deg,#226fcf,#1aa098);font-size:14px;font-weight:850;letter-spacing:-.06em}.avatar img{display:none}
.welcome{padding-top:50px}.welcome-mark{width:86px;height:78px;margin-bottom:18px;display:grid;grid-template-columns:1fr auto;grid-template-rows:1fr auto;align-items:end;text-align:left}.welcome-mark>span{font-size:55px;font-weight:850;letter-spacing:-.12em;line-height:.82}.welcome-mark>i{width:9px;height:9px;margin:0 3px 4px;border-radius:50%;background:#27a091;box-shadow:0 0 0 6px rgba(39,160,145,.09)}.welcome-mark>b{grid-column:1/3;margin-top:10px;color:#77869c;font-size:7px;letter-spacing:.34em}.welcome h1{font-size:30px}.suggestions{max-width:460px}.suggestions button{min-height:66px;padding:16px 18px;border:1px solid rgba(45,66,104,.06);border-radius:19px;background:rgba(255,255,255,.72);box-shadow:0 14px 42px rgba(40,57,92,.055)}.suggestions b{font-size:12px}.suggestions small{font-size:9px}
.drawer-panel{grid-template-rows:auto auto minmax(0,1fr) auto auto;background:linear-gradient(180deg,#fafbfe,#f5f7fb)}.drawer-new{background:linear-gradient(130deg,#216fd1,#239b91)}.drawer-profile{width:100%;min-height:58px;padding:8px 10px;display:grid;grid-template-columns:38px minmax(0,1fr) 20px;align-items:center;gap:10px;border:1px solid rgba(38,58,94,.08);border-radius:16px;background:rgba(255,255,255,.78);text-align:left}.profile-monogram{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;color:#fff;background:linear-gradient(145deg,#263b61,#327f92);font-size:13px;font-weight:850}.drawer-profile>span:nth-child(2){display:grid;gap:4px}.drawer-profile strong{font-size:10px}.drawer-profile small{color:#8794a7;font-size:8px}.drawer-profile svg{width:16px;color:#8996aa}.conversation-mark{color:#55728f;background:#edf2f6}.conversation-row.active{box-shadow:0 10px 28px rgba(39,58,91,.065)}
.composer-meta{height:31px;padding-top:4px;gap:8px}.composer-meta-left{min-width:0;display:flex;align-items:center;gap:3px}.composer-meta-left>button{height:25px;padding:0 7px;display:flex;align-items:center;gap:5px;border:0;border-radius:9px;color:#627088;background:transparent;font-size:7px;white-space:nowrap}.composer-meta-left>button:active{background:#eef1f6}.composer-meta-left>button b{font-size:8px}.composer-meta-left>button i{width:2px;height:2px;border-radius:50%;background:#9aa5b5}.composer-meta-left>button svg{width:11px}.composer-meta-left #projectButton{color:#3e6e83;background:#eef6f7}.composer-meta-left #projectButton>svg:first-child{width:12px}.composer-meta-left #projectButton .meta-chevron{width:9px}.composer-meta p{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.settings-sheet,.delivery-sheet,.action-detail-sheet,.project-sheet,.profile-sheet{position:fixed;z-index:35;inset:0;visibility:hidden}.settings-sheet.open,.delivery-sheet.open,.action-detail-sheet.open,.project-sheet.open,.profile-sheet.open{visibility:visible}.settings-sheet.open .sheet-backdrop,.delivery-sheet.open .sheet-backdrop,.action-detail-sheet.open .sheet-backdrop,.project-sheet.open .sheet-backdrop,.profile-sheet.open .sheet-backdrop{opacity:1}.settings-sheet.open .sheet-panel,.delivery-sheet.open .sheet-panel,.action-detail-sheet.open .sheet-panel,.project-sheet.open .sheet-panel,.profile-sheet.open .sheet-panel{transform:translate(-50%,0)}
.app-server-status{padding:10px 12px;border:1px solid var(--line);border-radius:13px;color:#617086;background:rgba(255,255,255,.72);font-size:8px;line-height:1.55}.app-server-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:8px}.app-server-actions button{min-height:64px;padding:9px 8px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;border:1px solid var(--line);border-radius:14px;background:#fff;text-align:left}.app-server-actions strong{font-size:9px}.app-server-actions small{color:#8995a8;font-size:7px;line-height:1.4}.app-server-actions button:disabled{opacity:.42}
.project-panel{min-height:370px}.project-intro{margin:12px 1px 18px;color:#7b899e;font-size:9px;line-height:1.6}.project-options{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.project-options>button{min-height:78px;padding:11px;display:grid;grid-template-columns:37px minmax(0,1fr) 15px;align-items:center;gap:9px;border:1px solid rgba(39,59,95,.09);border-radius:17px;background:#fff;text-align:left;transition:.18s}.project-options>button.selected{border-color:rgba(33,123,159,.35);background:#eef8f7;box-shadow:0 10px 25px rgba(32,98,114,.08)}.project-code{width:37px;height:37px;display:grid;place-items:center;border-radius:11px;color:#3d6882;background:#edf3f7;font-size:9px;font-weight:850}.project-options>button.selected .project-code{color:#fff;background:linear-gradient(145deg,#2879d3,#229c91)}.project-options>button>span:nth-child(2){min-width:0;display:grid;gap:4px}.project-options strong{font-size:10px}.project-options small{overflow:hidden;color:#8a97a9;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.project-options i{width:14px;height:14px;border:1.5px solid #c9d1dc;border-radius:50%}.project-options button.selected i{border:4px solid #2a899d}
.profile-panel{min-height:590px;background:linear-gradient(180deg,#f8fafc,#f3f6fa)}.profile-hero{margin-top:15px!important;padding:15px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;border:1px solid rgba(39,59,95,.07);border-radius:19px;background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(239,247,249,.88));box-shadow:0 14px 35px rgba(41,62,93,.055)}.profile-letter{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;color:#fff;background:linear-gradient(145deg,#233b64,#258f90);font-size:17px;font-weight:850}.profile-hero>div:nth-child(2){display:grid;gap:5px}.profile-hero strong{font-size:11px}.profile-hero small{color:#8290a5;font-size:8px}.profile-hero>span{padding:5px 8px;border-radius:99px;color:#27816d;background:#e7f6f1;font-size:7px;font-weight:750}.usage-loading{min-height:330px;display:flex;align-items:center;justify-content:center;gap:9px;color:#7e8ca0;font-size:9px}.usage-loading i{width:15px;height:15px;border:2px solid #d6dce6;border-top-color:#27869b;border-radius:50%;animation:spin .75s linear infinite}.usage-stats{margin-top:12px!important;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.usage-stats article{min-height:82px;padding:13px 11px;display:flex;flex-direction:column;justify-content:space-between;border:1px solid rgba(39,59,95,.07);border-radius:17px;background:#fff}.usage-stats small{color:#8190a4;font-size:8px}.usage-stats strong{font-size:18px;letter-spacing:-.04em}.usage-stats em{font-size:8px;font-style:normal;font-weight:650}.usage-card{margin-top:11px!important;padding:15px;border:1px solid rgba(39,59,95,.07);border-radius:20px;background:#fff;box-shadow:0 14px 38px rgba(40,60,92,.045)}.usage-card>header{display:flex;align-items:flex-start;justify-content:space-between}.usage-card>header>div{display:grid;gap:4px}.usage-card header strong{font-size:11px}.usage-card header small,.usage-card header>span{color:#8794a7;font-size:7px}.usage-card header>span{padding:5px 7px;border-radius:8px;background:#f0f4f7}.usage-board{margin-top:18px;display:grid;grid-template-columns:17px minmax(0,1fr);gap:7px;overflow-x:auto}.usage-weekdays{height:95px;display:flex;flex-direction:column;justify-content:space-between;color:#9aa4b3;font-size:6px}.usage-grid{display:flex;gap:3px;min-width:max-content}.usage-week{display:grid;grid-template-rows:repeat(7,11px);gap:3px}.usage-day{width:11px;height:11px;padding:0;border:0;border-radius:3px;background:#e9edf2}.usage-day.level-1,.usage-card footer i.level-1{background:#b9e3dc}.usage-day.level-2,.usage-card footer i.level-2{background:#72c6bb}.usage-day.level-3,.usage-card footer i.level-3{background:#319d91}.usage-day.level-4,.usage-card footer i.level-4{background:#176f72}.usage-day:active{outline:2px solid rgba(35,111,114,.2);outline-offset:2px}.usage-card footer{margin-top:14px;display:flex;align-items:center;justify-content:space-between;color:#8d98a9;font-size:7px}.usage-card footer>div{display:flex;align-items:center;gap:3px}.usage-card footer i{width:9px;height:9px;border-radius:2px;background:#e9edf2}.usage-error{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.usage-error strong{font-size:11px}.usage-error small{max-width:280px;margin-top:6px;color:#8996a8;font-size:8px;line-height:1.5}.usage-error button{margin-top:15px;padding:9px 14px;border:0;border-radius:11px;color:#fff;background:#287e91;font-size:8px}
.topbar,.composer-wrap{backdrop-filter:blur(24px) saturate(1.1)}.composer{border-color:rgba(38,59,94,.1);box-shadow:0 12px 35px rgba(39,55,86,.075)}.send-button,.save-settings{background:linear-gradient(140deg,#2475d6,#209a90)}.message.user .bubble{background:linear-gradient(135deg,#2c74ce,#36879a)}
@keyframes boot-track{0%{left:-48%;opacity:.45}50%{opacity:1}100%{left:104%;opacity:.45}}
@media(max-width:380px){.composer-meta p{display:none}.project-options{grid-template-columns:1fr}.profile-panel{min-height:560px}.usage-card{padding-left:12px;padding-right:12px}.usage-week{grid-template-rows:repeat(7,10px)}.usage-day{width:10px;height:10px}}

/* Single morphing send / guide / pause control */
.composer.has-active-turn{grid-template-columns:40px minmax(0,1fr) 40px}
.send-button.working svg,.send-button.pausing svg{display:none}
.send-button.working::after,.send-button.pausing::after{content:"";width:16px;height:16px;border:2px solid rgba(255,255,255,.34);border-top-color:#fff;border-radius:50%;animation:spin .72s linear infinite}
.send-button.working{background:linear-gradient(145deg,#315b82,#218f8c);box-shadow:0 7px 18px rgba(35,94,111,.2)}
.send-button.working:active{transform:scale(.94);background:linear-gradient(145deg,#263f5c,#277b7a)}
.send-button.pausing::after{animation-duration:.48s}
.message.user.guided .bubble{max-width:88%;color:#35566b;border:1px solid rgba(39,118,130,.1);background:linear-gradient(135deg,#eef6f8,#e8f2f5);box-shadow:0 8px 22px rgba(43,88,104,.07)}
.message.user.guided .message-file{background:rgba(255,255,255,.66)}
.message.user.guided .message-file small{color:#718797}
.message.user.guided time{color:#3d8b8b;font-weight:700;letter-spacing:.02em}
.inline-image{width:154px;margin:11px 0 4px;padding:0;display:block;border:1px solid rgba(38,58,94,.1);border-radius:13px;color:inherit;background:#f0f3f6;box-shadow:0 7px 18px rgba(31,48,78,.07);overflow:hidden;text-align:left;cursor:zoom-in}.inline-image img{width:100%;height:112px;display:block;object-fit:cover;background:#eef1f4}.inline-image>span{min-height:30px;padding:5px 8px;display:flex;align-items:center;justify-content:space-between;gap:6px;background:#fff}.inline-image b{min-width:0;overflow:hidden;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.inline-image small{flex:0 0 auto;color:#8b97a8;font-size:6.5px}.execution-image{margin-top:10px}.message-image-gallery{margin-top:11px;display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px}.message-image-gallery .inline-image{width:154px;margin:0}.message-image-gallery .inline-image:only-child{width:154px}.message-image-gallery img,.message-image-gallery .inline-image:only-child img{height:112px;max-height:none}.image-viewer{position:fixed;z-index:60;inset:0;display:grid;place-items:center;padding:calc(16px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom));visibility:hidden}.image-viewer.open{visibility:visible}.image-viewer-backdrop{position:absolute;inset:0;border:0;background:rgba(8,14,25,.84);opacity:0;transition:.22s}.image-viewer.open .image-viewer-backdrop{opacity:1}.image-viewer-panel{position:relative;width:min(100%,900px);max-height:100%;display:grid;grid-template-rows:minmax(0,1fr) auto;border-radius:22px;background:#121c2a;box-shadow:0 35px 100px rgba(0,0,0,.42);overflow:hidden;opacity:0;transform:scale(.97);transition:.22s}.image-viewer.open .image-viewer-panel{opacity:1;transform:none}.image-viewer-panel>img{width:100%;height:100%;max-height:calc(100vh - 120px);object-fit:contain;background:#0d1520}.image-viewer-panel footer{min-height:54px;padding:7px 8px 7px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#e8eef7;background:#172333}.image-viewer-panel footer strong{min-width:0;overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.image-viewer-panel .icon-button{flex:0 0 auto;color:#dbe6f5;background:rgba(255,255,255,.08)}
