.chat{grid-template-columns:minmax(0,1fr);gap:20px;width:100%;max-width:720px;margin:0 auto;padding-top:5vh;display:grid}.chat .err{color:var(--err);margin:0;font-size:13px}.wmark{background:#0b1120;flex:none;place-items:center;display:grid;position:relative}.wmark svg{display:block}.wmark-sm{border-radius:9px;width:28px;height:28px}.wmark-sm svg{width:18px;height:18px}.wmark-lg{border-radius:16px;width:52px;height:52px}.wmark-lg svg{width:32px;height:32px}.wmark.pulse:after{content:"";border:2px solid var(--accent);opacity:0;border-radius:12px;animation:1.8s ease-out infinite w-ring;position:absolute;inset:-4px}.hello{text-align:center;justify-items:center;gap:6px;display:grid}.hello h2{color:var(--ink);letter-spacing:-.01em;margin-top:8px;font-size:26px;font-weight:700}.hello p{color:var(--muted);margin:0}.eyebrow{color:var(--muted);margin:0 0 8px;font-size:13px;font-weight:600}.sugg{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.sugg button{border:1px solid var(--border);background:var(--surface);color:var(--ink);text-align:left;border-radius:12px;align-items:flex-start;gap:10px;padding:12px 14px;font-weight:500;line-height:1.4;display:flex}.sugg button:hover{border-color:var(--accent)}.sugg .i{width:17px;height:17px;color:var(--accent-fg);flex:none;margin-top:1px}.thread{grid-template-columns:minmax(0,1fr);gap:16px;display:grid}.msg-u{background:var(--bubble);color:#fff;overflow-wrap:anywhere;border-radius:14px 14px 4px;justify-self:end;max-width:80%;padding:10px 14px;scroll-margin-top:12px}.msg-w{grid-template-columns:28px minmax(0,1fr);align-items:start;gap:10px;display:grid}.w-col{grid-template-columns:minmax(0,1fr);justify-items:start;gap:10px;min-width:0;display:grid}.w-col>*{max-width:100%}.w-dots{border:1px solid var(--border);background:var(--surface);border-radius:4px 14px 14px;align-items:center;gap:5px;height:40px;padding:0 14px;display:inline-flex}.w-dots span{background:var(--muted);opacity:.6;border-radius:50%;width:6px;height:6px;animation:1.2s ease-in-out infinite w-dot}.w-dots span:nth-child(2){animation-delay:.15s}.w-dots span:nth-child(3){animation-delay:.3s}.w-think{align-items:center;min-height:28px;margin:0;font-size:14px;font-weight:600;display:flex}.w-timer{font-variant-numeric:tabular-nums;color:var(--muted);white-space:pre;font-weight:500}.w-slow{color:var(--muted);margin:0;font-size:13px}.w-shimmer{background:linear-gradient(90deg, var(--ink) 0%, var(--ink) 35%, var(--accent) 50%, var(--ink) 65%, var(--ink) 100%);color:#0000;background-size:220% 100%;-webkit-background-clip:text;background-clip:text;animation:2s linear infinite w-shim}.w-fold{min-height:28px;color:var(--muted);text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:6px;padding:2px 10px 2px 4px;font-size:13px;font-weight:600;display:inline-flex}.w-fold:hover{background:var(--accented)}.w-fold .w-ok{background:var(--ok-tint);width:18px;height:18px;color:var(--ok);border-radius:5px;flex:none;place-items:center;display:grid}.w-fold .w-ok .i{stroke-width:2.6px;width:12px;height:12px}.w-fold .w-chev{flex:none;width:15px;height:15px;transition:transform .15s}.w-fold[aria-expanded=true] .w-chev{transform:rotate(180deg)}.w-fold.live{color:var(--ink);padding-left:0;font-size:14px}.w-steps{border:1px solid var(--border);background:var(--surface);border-radius:12px;gap:2px;width:100%;margin:0;padding:6px;list-style:none;display:grid}.w-step{color:var(--muted);border-radius:8px;align-items:center;gap:10px;padding:7px 8px;font-size:14px;display:flex}.w-step .w-ico{background:var(--ok-tint);width:24px;height:24px;color:var(--ok);border-radius:7px;flex:none;place-items:center;display:grid}.w-step .w-ico .i{stroke-width:2.4px;width:14px;height:14px}.w-step.now{color:var(--ink);font-weight:600;animation:.2s ease-out both w-step-in}.w-step.now .w-ico{background:var(--accent-tint)}.w-spin{border:2px solid var(--accent-tint);border-top-color:var(--accent);border-radius:50%;width:14px;height:14px;animation:.8s linear infinite w-spin}.w-ans{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);overflow-wrap:anywhere;border-radius:4px 14px 14px;padding:12px 14px}.w-ans p{margin:0}.w-ans b{color:var(--ink)}.w-ans a{color:var(--accent-fg);font-weight:600}.w-ans .fresh{animation:.15s ease-out both w-fade}.w-metric{border:1px solid var(--border);background:var(--surface);border-radius:12px;gap:2px;width:max-content;min-width:min(240px,100%);max-width:100%;padding:14px 16px;display:grid}.w-metric .w-lbl{color:var(--muted);font-size:12.5px;font-weight:600}.w-metric .w-val{color:var(--ink);letter-spacing:-.02em;font-variant-numeric:tabular-nums;font-size:28px;font-weight:700;line-height:1.2}.w-metric .w-meta{color:var(--muted);font-size:12px}.w-rule{border:1px solid var(--border);background:var(--surface);overflow-wrap:anywhere;border-radius:12px;grid-template-columns:minmax(0,1fr);gap:10px;width:min(480px,100%);min-width:0;padding:14px 16px;display:grid}.w-rule-head{flex-wrap:wrap;align-items:center;gap:6px 10px;min-width:0;display:flex}.w-rule-head h3{min-width:0;color:var(--ink);flex:160px;margin:0;font-size:14.5px;font-weight:700}.w-rule-badge{background:var(--warn-tint);color:var(--warn);border-radius:999px;padding:2px 9px;font-size:12px;font-weight:600}.w-rule-badge.ok{background:var(--ok-tint);color:var(--ok)}.w-rule-badge.wait{background:var(--accented);color:var(--muted)}.w-rule-line{color:var(--text);margin:0;font-size:13.5px;line-height:1.5}.w-rule-line b{color:var(--ink)}.w-rule-old,.w-rule-old b{color:var(--muted)}.w-rule-tag{color:var(--muted);margin-right:6px;font-size:12px;font-weight:600;display:inline-block}.w-rule-warn{color:var(--warn)}.w-rule-target{grid-template-columns:minmax(0,1fr);gap:4px;display:grid}.w-rule-target p{margin:0}.w-rule-host{color:var(--ink);word-break:break-all;font-size:14px;font-weight:700}.w-rule-url{color:var(--muted);word-break:break-all;font-size:12.5px}.w-rule-target .w-rule-note{margin-top:4px}.w-rule-q{background:var(--warn-tint);color:var(--warn);border-radius:10px;padding:10px 12px;font-size:13px}.w-rule-q p{margin:0;font-weight:600}.w-rule-q ul{gap:4px;margin:6px 0 0;padding-left:18px;display:grid}.w-rule-note{background:var(--warn-tint);color:var(--warn);border-radius:10px;margin:0;padding:10px 12px;font-size:13px;line-height:1.5}.w-rule-note.danger{background:var(--err-tint);color:var(--err)}.w-rule-err{border:1px solid var(--err);background:var(--err-tint);color:var(--err);border-radius:10px;margin:0;padding:10px 12px;font-size:13px}.w-rule-done{background:var(--ok-tint);color:var(--ok);border-radius:10px;align-items:flex-start;gap:8px;margin:0;padding:10px 12px;font-size:13px;line-height:1.5;display:flex}.w-rule-done .i{flex:none;width:16px;height:16px;margin-top:2px}.w-rule-done a{color:inherit;font-weight:600;text-decoration:underline}.w-rule-act{grid-template-columns:minmax(0,1fr);gap:8px;display:grid}.w-rule-btns{flex-wrap:wrap;gap:8px;display:flex}.w-rbtn{background:var(--accent);color:#fff;border:0;border-radius:10px;flex:140px;min-height:44px;padding:8px 14px;font-size:13.5px;font-weight:600}.w-rbtn:hover{filter:brightness(.94)}.w-rbtn.alt{border:1px solid var(--border);background:var(--surface);color:var(--ink)}.w-rbtn.danger{background:var(--err);color:var(--surface)}.w-rbtn[disabled]{opacity:.6;cursor:default}.w-src{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.w-src .w-lbl{color:var(--muted);margin-right:2px;font-size:12.5px;font-weight:600}.w-chip{border:1px solid var(--border);background:var(--surface);max-width:100%;min-height:28px;color:var(--ink);border-radius:999px;align-items:center;gap:6px;padding:3px 10px 3px 4px;font-size:12.5px;font-weight:500;text-decoration:none;display:inline-flex}.w-chip:hover{border-color:var(--accent)}.w-chip .w-n{background:var(--accented);width:20px;height:20px;color:var(--muted);border-radius:50%;flex:none;place-items:center;font-size:11px;font-weight:700;display:grid}.w-chip .w-t{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.w-acts{flex-wrap:wrap;align-items:center;gap:2px;margin-left:-6px;display:flex}.w-act{min-width:34px;height:34px;color:var(--muted);background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:0 9px;font-size:12.5px;font-weight:600;display:inline-flex}.w-act:hover{background:var(--accented);color:var(--ink)}.w-act .i{width:15px;height:15px}.w-act[aria-pressed=true]{background:var(--accent-tint);color:var(--accent-fg)}.w-act.copied{color:var(--ok)}.w-strip{border:1px solid var(--err);background:var(--err-tint);width:100%;color:var(--err);border-radius:10px;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:10px 12px;font-size:13px;font-weight:500;animation:.2s ease-out both w-fail-in;display:flex}.w-strip .i{flex:none;width:16px;height:16px}.w-strip span{flex:200px;min-width:0}.w-strip .w-retry{border:1px solid var(--err);background:var(--surface);min-height:30px;color:var(--err);border-radius:8px;padding:4px 12px;font-size:13px;font-weight:600}.w-stopped{color:var(--muted);margin:0;font-size:13px}.chat.has-thread{flex-direction:column;min-height:calc(100dvh - 180px);display:flex}.chat.has-thread>*{min-width:0}.chat.has-thread>.w-dock{margin-top:auto}.w-dock{z-index:2;padding:14px 0 calc(12px + env(safe-area-inset-bottom,0px));background:linear-gradient(transparent, var(--bg) 28%);gap:8px;margin-top:4px;display:grid;position:sticky;bottom:0}.w-latest{border:1px solid var(--border);background:var(--surface);min-height:34px;color:var(--ink);box-shadow:var(--shadow);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:6px 14px;font-size:13px;font-weight:600;animation:.2s ease-out both w-jump-in;display:inline-flex;position:absolute;bottom:calc(100% - 6px);left:50%;transform:translate(-50%)}.w-latest .i{width:15px;height:15px}@property --orbit{syntax:"<angle>";inherits:false;initial-value:0deg}.orbit{isolation:isolate;position:relative}.orbit.on:before{content:"";z-index:-1;background:conic-gradient(from var(--orbit), transparent 0deg, transparent 190deg, #00ffff80 240deg, #0076ff99 290deg, #b1ff0080 340deg, transparent 360deg);filter:blur(12px);border-radius:14px;animation:2.8s linear infinite w-orbit;position:absolute;inset:2px}.composer{border:1.5px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:14px;padding:12px 12px 10px 14px}.composer:focus-within{border-color:var(--accent)}.composer.busy{background:linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--orbit), var(--border) 0deg, var(--border) 170deg, #0ff 230deg, #0076ff 285deg, #009a00 330deg, #b1ff00 352deg, var(--border) 360deg) border-box;border-color:#0000;animation:2.8s linear infinite w-orbit}.composer textarea{resize:none;width:100%;min-height:48px;max-height:135px;color:var(--ink);background:0 0;border:0;outline:none;margin:0;padding:0;font-size:15px;line-height:1.5;display:block;overflow-y:auto}.composer textarea::placeholder{color:var(--muted)}.c-row{align-items:center;gap:8px;margin-top:6px;display:flex}.c-hint{min-width:0;color:var(--muted);flex:1;font-size:12px}.c-count{color:var(--muted);font-variant-numeric:tabular-nums;flex:none;font-size:12px}.c-count.over{color:var(--err)}.c-attach{width:36px;height:36px;color:var(--muted);background:0 0;border:0;border-radius:10px;flex:none;place-items:center;display:grid}.c-attach:hover:not(:disabled){background:var(--accented);color:var(--ink)}.c-attach:disabled{opacity:.45;cursor:default}.c-attach .i{width:18px;height:18px}.c-imgs{flex-wrap:wrap;gap:8px;margin:0 0 10px;display:flex}.c-img{width:56px;height:56px;position:relative}.c-img-open,.c-img-wait{border:1px solid var(--border);background:var(--accented);border-radius:10px;place-items:center;width:56px;height:56px;padding:0;display:grid;overflow:hidden}.c-img-open img{object-fit:cover;width:100%;height:100%;display:block}.c-img-x{border:1px solid var(--border);background:var(--surface);width:22px;height:22px;color:var(--ink);border-radius:50%;place-items:center;padding:0;display:grid;position:absolute;top:-6px;right:-6px}.c-img-x .i{width:12px;height:12px}.composer.drop{border-style:dashed;border-color:var(--accent)}.u-imgs{flex-wrap:wrap;justify-content:flex-end;justify-self:end;gap:8px;max-width:min(80%,336px);margin-bottom:-8px;scroll-margin-top:12px;display:flex}.u-img{border:1px solid var(--border);background:var(--accented);border-radius:12px;width:104px;height:104px;padding:0;overflow:hidden}.u-img:only-child{width:auto;max-width:240px;height:auto}.u-img:only-child img{width:auto;max-width:100%;max-height:240px}.u-img img{object-fit:cover;width:100%;height:100%;display:block}.w-lightbox{background:0 0;border:0;width:fit-content;max-width:100vw;height:fit-content;max-height:100vh;margin:auto;padding:12px;position:fixed;inset:0;overflow:visible}.w-lightbox::backdrop{background:#0c1424c7}.w-lightbox img{border-radius:8px;max-width:92vw;max-height:86vh;display:block}.w-lightbox-x{background:var(--surface);width:36px;height:36px;color:var(--ink);border:0;border-radius:50%;place-items:center;padding:0;display:grid;position:absolute;top:0;right:0}.send{background:var(--accent);color:#fff;border:0;border-radius:10px;flex:none;place-items:center;width:36px;height:36px;display:grid}.send:disabled{background:var(--accent-tint);color:var(--muted);cursor:default}.send .i{width:16px;height:16px}.send.stop{background:var(--ink);color:var(--surface)}.send.stop .i{fill:currentColor;width:12px;height:12px}@keyframes w-ring{0%{opacity:.55;transform:scale(.92)}to{opacity:0;transform:scale(1.3)}}@keyframes w-dot{0%,60%,to{opacity:.35;transform:none}30%{opacity:1;transform:translateY(-3px)}}@keyframes w-shim{0%{background-position:100% 0}to{background-position:-120% 0}}@keyframes w-spin{to{transform:rotate(360deg)}}@keyframes w-step-in{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}@keyframes w-fade{0%{opacity:0}to{opacity:1}}@keyframes w-fail-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}@keyframes w-jump-in{0%{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%)}}@keyframes w-orbit{to{--orbit:360deg}}.ph-chat-btns{align-items:center;gap:8px;display:flex}.hbtn{border:1px solid var(--border);background:var(--surface);min-height:36px;color:var(--ink);white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:6px 12px;font-size:13px;font-weight:600;display:inline-flex}.hbtn:hover{border-color:var(--accent)}.hbtn[aria-disabled=true]{opacity:.55;cursor:not-allowed}.hbtn[aria-disabled=true]:hover{border-color:var(--border)}.hbtn[aria-expanded=true]{background:var(--accent-tint);border-color:var(--accent);color:var(--accent-fg)}.hbtn .i{width:16px;height:16px}.chat-shell{grid-template-columns:minmax(0,1fr);gap:28px;display:grid}.chat-shell.with-panel{grid-template-columns:288px minmax(0,1fr);align-items:start}.hist-wrap.is-panel{max-height:calc(100dvh - 32px);display:flex;position:sticky;top:16px}.hist-wrap.is-drawer{z-index:50;position:fixed;inset:0}.hist-scrim{background:#0c142480;position:absolute;inset:0}.hist{background:var(--surface);min-width:0;min-height:0;color:var(--text);flex-direction:column;display:flex}.is-panel .hist{border:1px solid var(--border);border-radius:14px;width:100%;overflow:hidden}.is-drawer .hist{border-right:1px solid var(--border);width:min(320px,86vw);padding-top:env(safe-area-inset-top,0px);padding-left:env(safe-area-inset-left,0px);position:absolute;top:0;bottom:0;left:0;box-shadow:16px 0 40px #0c14242e}.hist-h{align-items:center;gap:8px;padding:14px 14px 6px 16px;display:flex}.hist-h h2{color:var(--ink);flex:1;margin:0;font-size:15px;font-weight:700}.hist-x{width:32px;height:32px;color:var(--muted);background:0 0;border:0;border-radius:8px;flex:none;place-items:center;display:grid}.hist-x:hover{background:var(--accented);color:var(--ink)}.hist-x .i{width:18px;height:18px}.hist-top{gap:8px;padding:6px 14px 10px;display:grid}.hist-new{justify-content:center;width:100%;min-height:38px}.hist-new:disabled{opacity:.6;cursor:default}.hist-search{display:block;position:relative}.hist-search>.i{width:16px;height:16px;color:var(--muted);pointer-events:none;margin-top:-8px;position:absolute;top:50%;left:10px}.hist-search input{border:1px solid var(--border);background:var(--surface);width:100%;min-height:36px;color:var(--ink);border-radius:8px;padding:6px 10px 6px 32px;font-size:14px}.hist-search input:focus{border-color:var(--accent);outline:none}.hist-body{flex:1;min-height:0;padding:0 8px 12px;overflow-y:auto}.hist-note{color:var(--muted);flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0;padding:6px 8px;font-size:13px;display:flex}.hist-top .hist-note{padding:0 2px}.hist-group h3{color:var(--muted);margin:12px 0 4px;padding:0 8px;font-size:12px;font-weight:600}.hist-group ul{gap:2px;margin:0;padding:0;list-style:none;display:grid}.hist-li{border-radius:8px;grid-template-columns:minmax(0,1fr) auto;align-items:center;display:grid;position:relative}.hist-li.active{background:var(--accent-tint);box-shadow:inset 3px 0 0 var(--accent)}.hist-item{min-width:0;min-height:38px;color:var(--ink);text-align:left;background:0 0;border:0;border-radius:8px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 8px 6px 12px;font-size:14px;display:grid}.hist-item:hover:not(:disabled){background:var(--accented)}.hist-li.active .hist-item:hover:not(:disabled){background:0 0}.hist-item:disabled{color:var(--muted);cursor:default}.hist-t{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:500;overflow:hidden}.hist-time{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px}.hist-act{width:32px;height:32px;color:var(--muted);background:0 0;border:0;border-radius:8px;flex:none;place-items:center;margin-right:2px;display:none}.hist-act:hover{background:var(--accented);color:var(--err)}.hist-act.on{display:grid}.hist-act.on:hover{color:var(--ink)}.hist-act .i{width:16px;height:16px}.hist-li:hover .hist-act,.hist-li:focus-within .hist-act{display:grid}.hist-li:hover .hist-time,.hist-li:focus-within .hist-time{display:none}.is-drawer .hist-time{display:block!important}.hist-menu{z-index:2;border:1px solid var(--border);background:var(--surface);min-width:190px;box-shadow:var(--shadow);border-radius:10px;padding:4px;position:absolute;top:calc(100% - 2px);right:4px}.hist-menu button{width:100%;min-height:40px;color:var(--err);text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:8px;padding:6px 10px;font-size:14px;font-weight:600;display:flex}.hist-menu button:hover{background:var(--err-tint)}.hist-menu .i{width:16px;height:16px}.hist-ask{border:1px solid var(--border);background:var(--surface);border-radius:10px;grid-column:1/-1;gap:6px;padding:10px 12px;display:grid}.hist-q{color:var(--ink);overflow-wrap:anywhere;margin:0;font-size:14px;font-weight:600}.hist-small{color:var(--muted);margin:0;font-size:12.5px}.hist-err{color:var(--err);margin:0;font-size:12.5px}.hist-btns{justify-content:flex-end;gap:8px;display:flex}.hist-del{background:var(--err)}.hist-del:hover{background:#8f1b12}.hist-foot{color:var(--muted);text-align:center;margin:10px 0 0;padding:0 8px;font-size:12px}.hist-enter-active,.hist-leave-active{transition:opacity .18s}.hist-enter-active.is-drawer .hist,.hist-leave-active.is-drawer .hist{transition:transform .2s}.hist-enter-from,.hist-leave-to{opacity:0}.hist-enter-from.is-drawer .hist,.hist-leave-to.is-drawer .hist{transform:translate(-100%)}@container (width<=640px){.ph.ph-chat{grid-template-columns:minmax(0,1fr) auto;row-gap:10px}.ph.ph-chat .seg{width:auto}.ph.ph-chat .ph-r{grid-column:1/-1;justify-content:stretch}.ph.ph-chat .ph-chat-btns{justify-content:space-between;width:100%}.ph.ph-chat .hbtn{min-height:44px}.ph.ph-chat .hbtn.icon-only{min-width:44px;padding:6px 10px}.ph.ph-chat .hbtn.icon-only span{display:none}.sugg{grid-template-columns:minmax(0,1fr)}}@media (width<=640px){.chat{padding-top:2vh}.c-hint{display:none}.c-row{justify-content:flex-end}.send{width:44px;height:44px}.c-attach{width:44px;height:44px;margin-right:auto}.c-img-x{width:28px;height:28px;top:-8px;right:-8px}.w-act,.w-fold,.w-strip .w-retry,.w-latest{min-height:44px}.w-act{min-width:44px}.w-chip{min-height:44px;padding-right:14px}.sugg button,.hist-item,.hist-new{min-height:44px}.hist-act,.hist-x{width:44px;height:44px}.hist-search input{min-height:44px}}@media (prefers-reduced-motion:reduce){.chat *,.chat :before,.chat :after{transition:none!important;animation:none!important}.w-shimmer{color:var(--ink);background:0 0}.w-spin{border-color:var(--accent);border-style:dotted}.composer.busy{background:linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, #0ff, #0076ff 40%, #009a00 75%, #b1ff00) border-box}.orbit.on:before{display:none}.hist-enter-active,.hist-leave-active,.hist-enter-active .hist,.hist-leave-active .hist{transition:none!important}}
