.stage-track{counter-reset:s;grid-template-columns:repeat(6,minmax(0,1fr));gap:.25rem;display:grid}.stage-track li{text-align:center;justify-items:center;gap:.4rem;display:grid;position:relative}.stage-track li:before{content:"";background:var(--line-strong);height:2px;position:absolute;top:1rem;left:calc(1.1rem - 50%);right:calc(50% + 1.1rem)}.stage-track li:first-child:before{display:none}.stage-dot{border:1px solid var(--line-strong);width:2rem;height:2rem;font-family:var(--font-mono);color:var(--fg-subtle);background:var(--bg);border-radius:999px;justify-content:center;align-items:center;font-size:.8rem;display:inline-flex;position:relative}.stage-label{color:var(--fg-subtle);font-size:.8rem}.stage-track li[data-state=done] .stage-dot{background:color-mix(in oklab, var(--brand) 20%, var(--bg));border-color:var(--brand);color:var(--brand)}.stage-track li[data-state=done]:before,.stage-track li[data-state=current]:before{background:var(--brand)}.stage-track li[data-state=current] .stage-dot{background:var(--brand);border-color:var(--brand);color:var(--brand-ink);font-weight:600}.stage-track li[data-state=current] .stage-label{color:var(--fg);font-weight:600}@media (width<=480px){.stage-label{font-size:.68rem}}.activity{border:1px solid var(--line-strong);border-radius:1rem;align-items:flex-start;gap:.75rem;padding:.85rem 1rem;display:flex}.activity-dot{background:var(--fg-subtle);border-radius:999px;flex:none;width:.7rem;height:.7rem;margin-top:.4rem}.activity[data-state=received] .activity-dot,.activity[data-state=working] .activity-dot{background:var(--brand);animation:1.4s ease-in-out infinite pulse}.activity[data-state=done] .activity-dot{background:#16a34a}@keyframes pulse{50%{opacity:.3}}@media (prefers-reduced-motion:reduce){.activity-dot{animation:none!important}}.chat-card{flex-direction:column;padding:0;display:flex;position:relative;overflow:hidden}.chat-head{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem 1rem;padding:1rem 1.25rem;display:flex}.chat-live{border:1px solid var(--line-strong);color:var(--fg-muted);white-space:nowrap;border-radius:999px;align-items:center;gap:.45rem;padding:.25rem .7rem;font-size:.8rem;display:inline-flex}.chat-live-dot{background:var(--fg-subtle);border-radius:999px;width:.55rem;height:.55rem}.chat-live[data-state=received] .chat-live-dot,.chat-live[data-state=working] .chat-live-dot{background:var(--brand);animation:1.4s ease-in-out infinite pulse}.chat-live[data-state=done] .chat-live-dot{background:#16a34a}.chat-live[data-state=waiting] .chat-live-dot{background:#f5b041}.chat-scroll{overscroll-behavior:contain;background:var(--bg);scroll-behavior:auto;height:min(68vh,44rem);min-height:18rem;padding:1rem .9rem 1.25rem;overflow-y:auto}.chat-log{flex-direction:column;gap:.2rem;display:flex}.chat-day{color:var(--fg-subtle);background:var(--bg-elev-2);border-radius:999px;align-self:center;margin:.9rem 0 .4rem;padding:.15rem .7rem;font-size:.72rem}.chat-sys{text-align:center;max-width:92%;color:var(--fg-subtle);align-self:center;margin:.35rem 0;font-size:.78rem}.chat-sys a{color:var(--fg-muted);text-underline-offset:2px;text-decoration:underline}.chat-msg{flex-direction:column;max-width:min(85%,36rem);margin-top:.65rem;display:flex}.chat-msg.cont{margin-top:.15rem}.chat-msg.cont .chat-meta{display:none}.chat-msg[data-side=pm]{align-self:flex-end;align-items:flex-end}.chat-msg[data-side=iemi]{align-self:flex-start;align-items:flex-start}.chat-meta{color:var(--fg-subtle);margin:0 .5rem .2rem;font-size:.72rem}.chat-meta strong{color:var(--fg-muted);font-weight:600}.bubble{overflow-wrap:anywhere;border-radius:1.1rem;min-width:0;max-width:100%;padding:.6rem .85rem;font-size:.93rem;line-height:1.55}.chat-msg[data-side=pm] .bubble{background:var(--brand);color:var(--brand-ink);border-bottom-right-radius:.35rem}.chat-msg[data-side=iemi] .bubble{background:var(--bg-elev-2);color:var(--fg);border:1px solid var(--line);border-bottom-left-radius:.35rem}.chat-msg[data-side=pm] .bubble a{color:inherit;text-decoration:underline}.bubble .studio-md{color:inherit;line-height:1.55}.bubble .studio-md>*+*{margin-top:.5rem}.bubble .studio-md h3,.bubble .studio-md h4,.bubble .studio-md h5{margin-top:.6rem}.bubble-text{white-space:pre-line}.bubble-kind{letter-spacing:.02em;opacity:.8;text-transform:uppercase;margin-bottom:.2rem;font-size:.72rem;font-weight:600;display:block}.bubble-quote{opacity:.8;border-left:2px solid;margin-bottom:.35rem;padding-left:.6rem;font-size:.85rem}.bubble-img{cursor:zoom-in;background:#fff;border:0;border-radius:.8rem;margin:.15rem -.35rem .1rem;padding:0;display:block;overflow:hidden}.bubble-img img{width:auto;max-width:100%;height:auto;max-height:22rem;display:block}.bubble-tools{flex-wrap:wrap;gap:.5rem;margin-top:.35rem;font-size:.78rem;display:flex}.bubble-tools button,.bubble-tools a{text-underline-offset:2px;opacity:.85;text-decoration:underline}.bubble-file{border:1px solid;border-radius:.7rem;align-items:center;gap:.5rem;padding:.45rem .7rem;font-size:.85rem;display:inline-flex;text-decoration:none!important}.bubble dl{font-size:.85rem}.bubble dt{opacity:.7}.bubble form{margin-top:.6rem}.bubble .q-opt{border:1px solid var(--line-strong);cursor:pointer;background:var(--bg);border-radius:.7rem;align-items:flex-start;gap:.6rem;padding:.45rem .65rem;display:flex}.bubble .q-opt+.q-opt{margin-top:.35rem}.bubble[data-pending]{opacity:.6}.typing{vertical-align:middle;align-items:center;gap:.25rem;margin-right:.35rem;display:inline-flex}.typing i{background:var(--fg-subtle);border-radius:999px;width:.4rem;height:.4rem;animation:1.2s ease-in-out infinite blink}.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}@keyframes blink{0%,80%,to{opacity:.25}40%{opacity:1}}@media (prefers-reduced-motion:reduce){.typing i,.chat-live-dot{animation:none!important}}.chat-jump{background:var(--fg);color:var(--bg);border-radius:999px;padding:.35rem .9rem;font-size:.8rem;position:absolute;bottom:9.5rem;left:50%;transform:translate(-50%);box-shadow:0 4px 14px #00000040}.chat-composer{border-top:1px solid var(--line);background:var(--bg-elev);padding:.75rem .9rem .6rem}.chat-row{align-items:flex-end;gap:.4rem;display:flex}.chat-icon{width:2.6rem;height:2.6rem;color:var(--fg-muted);cursor:pointer;border-radius:999px;flex:none;justify-content:center;align-items:center;display:inline-flex}.chat-icon:hover{color:var(--fg);background:var(--bg-elev-2)}#u-files:focus-visible+.chat-icon{outline:2px solid var(--brand);outline-offset:2px}.chat-input{resize:none;border:1px solid var(--line-strong);background:var(--bg);min-width:0;min-height:2.6rem;max-height:12rem;color:var(--fg);font:inherit;border-radius:1.3rem;flex:1;padding:.6rem .95rem;font-size:.95rem;line-height:1.4}.chat-input:focus{outline:2px solid color-mix(in oklab, var(--brand) 60%, transparent);outline-offset:0;border-color:#0000}.chat-send{background:var(--brand);width:2.6rem;height:2.6rem;color:var(--brand-ink);border-radius:999px;flex:none;justify-content:center;align-items:center;display:inline-flex}.chat-send:disabled{opacity:.5}.chat-foot{color:var(--fg-subtle);justify-content:space-between;gap:1rem;margin:.35rem .3rem 0;font-size:.72rem;display:flex}.chat-chips{flex-wrap:wrap;gap:.4rem;margin-bottom:.5rem;display:flex}.chat-chips li{border:1px solid var(--line-strong);border-radius:999px;align-items:center;gap:.4rem;max-width:100%;padding:.2rem .3rem .2rem .6rem;font-size:.8rem;display:inline-flex}.chat-chips li span{text-overflow:ellipsis;white-space:nowrap;max-width:14rem;overflow:hidden}.chat-chips button{border-radius:999px;width:1.5rem;height:1.5rem}.chat-chips button:hover{background:var(--bg-elev-2)}.chat-sketch{border:1px solid var(--line);border-radius:1rem;margin:0 .9rem .9rem;padding:.75rem 1rem}.chat-zoom{background:#fff;border:0;border-radius:1rem;max-width:min(96vw,70rem);max-height:92vh;padding:0}.chat-zoom::backdrop{background:#000000b3}.chat-zoom img{max-width:100%;max-height:88vh;display:block}.chat-zoom button{color:#fff;background:#000000a6;border-radius:999px;padding:.3rem .7rem;font-size:.85rem;position:absolute;top:.5rem;right:.5rem}@media (width<=640px){.chat-msg{max-width:92%}.chat-scroll{height:62vh}.chat-foot>span:first-child{display:none}}
