.aie-trace{overflow:hidden}.aie-trace-head,.aie-actions{justify-content:space-between;align-items:center;gap:1rem;padding:1rem clamp(1rem,3vw,1.6rem);display:flex}.aie-trace-head h3,.aie-stage h4,.aie-variation h4{font-family:var(--font-display),sans-serif;font-weight:700;line-height:1.25}.aie-trace-head h3{font-size:clamp(1.15rem,2.4vw,1.55rem)}.aie-trace button,.aie-bench input{touch-action:manipulation}.aie-trace-head button,.aie-actions button,.aie-choices button{border:1px solid var(--border-strong);border-radius:7px;justify-content:center;align-items:center;gap:.45rem;min-height:44px;padding:.5rem .85rem;font-weight:600;display:inline-flex}.aie-actions button:disabled{opacity:.45}.aie-rail{color:#382658;background:#f2effb;border-block:1px solid #d8cfea;gap:0;padding:1rem clamp(.65rem,3vw,1.6rem);display:flex}.aie-rail li{flex:1;min-width:0;position:relative}.aie-rail li:not(:last-child):after{content:"";pointer-events:none;border-top:1px solid #a890c7;position:absolute;top:15px;left:50%;right:-50%}.aie-rail button{z-index:1;flex-direction:column;align-items:center;gap:.45rem;width:100%;min-height:52px;padding:0 .25rem;font-size:.83rem;line-height:1.25;display:flex;position:relative}.aie-station{background:#f9f7ff;border:1px solid #9077ad;border-radius:5px;place-items:center;width:30px;height:30px;font-weight:700;display:grid}.aie-rail [aria-current=step]{color:#492479;font-weight:700}.aie-rail [aria-current=step] .aie-station{color:#fff;background:#5c368f;border-color:#5c368f}.aie-trace-body{padding:1.3rem clamp(1rem,3vw,1.6rem) .35rem}.aie-stage{border-inline-start:3px solid #9872bc;padding-inline-start:1rem;animation:.22s ease-out aie-enter}.aie-boundary{color:var(--fg-muted);font-size:.85rem;font-weight:600}.aie-stage h4{overflow-wrap:anywhere;margin:.35rem 0 .5rem;font-size:clamp(1.25rem,3vw,1.65rem)}.aie-stage p:last-child,.aie-variation p{color:var(--fg-muted);line-height:1.65}.aie-actions{flex-wrap:wrap;justify-content:flex-start;gap:.5rem}.aie-variation{border-top:1px solid var(--border);padding:1.25rem clamp(1rem,3vw,1.6rem)}.aie-variation h4{font-size:1.08rem}.aie-choices{gap:.5rem;margin:.85rem 0;display:grid}.aie-choices button{text-align:start;justify-content:flex-start}.aie-choices [aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-soft-fg)}.aie-bench output{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}@keyframes aie-enter{0%{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.aie-stage{animation:none}}.aie-schematic{border-bottom:1px solid var(--border);background:#f6f7fb}.aie-schematic picture{display:block}.aie-schematic img{object-fit:contain;width:100%;height:clamp(150px,22vw,245px);display:block}@media (max-width:600px){.aie-schematic img{height:270px;padding-block:.5rem}}.aie-revision legend{margin-bottom:.45rem;font-weight:650}.aie-revision button{border:1px solid var(--border-strong);border-radius:5px;min-height:44px;margin-inline-end:.45rem;padding:.45rem 1rem;font-weight:600}.aie-revision button[aria-pressed=true]{color:var(--accent-soft-fg);background:var(--accent-soft);border-color:var(--accent)}.aie-fullsize{color:#374672;justify-content:flex-end;padding:0 1rem;font-size:.8rem;display:flex}.aie-fullsize a{align-items:center;min-height:44px;text-decoration:underline;display:inline-flex}@media (min-width:601px){.aie-trace:has(.aie-rail li:nth-child(4)) .aie-schematic img{height:auto;min-height:210px;max-height:480px;padding:12px}}@media (max-width:600px){.aie-trace:has(.aie-rail li:nth-child(4)) .aie-schematic img{height:auto;max-height:435px}.aie-rail:has(li:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;display:grid}.aie-rail:has(li:nth-child(4)) button{text-align:left;flex-direction:row;justify-content:flex-start;min-height:44px}.aie-rail:has(li:nth-child(4)) .aie-station{flex-shrink:0}.aie-rail:has(li:nth-child(4)) li:after{display:none}}
