:root{--ss-bg:#f8fafc;--ss-surface:#fff;--ss-surface-sunken:#f1f5f9;--ss-border:#e2e8f0;--ss-border-strong:#cbd5e1;--ss-text:#0f172a;--ss-text-2:#475569;--ss-text-3:#64748b;--ss-accent:#2563eb;--ss-accent-strong:#1d4ed8;--ss-accent-soft:#eff6ff;--ss-accent-border:#bfdbfe;--ss-info:#1e40af;--ss-success:#15803d;--ss-success-soft:#f0fdf4;--ss-warning:#9a3412;--ss-warning-soft:#fff7ed;--ss-warning-border:#fed7aa;--ss-danger:#b91c1c;--ss-danger-soft:#fef2f2;--ss-danger-border:#fecaca;--ss-d-current:#2563eb;--ss-d-past:#475569;--ss-d-future:#8796ac;--ss-d-inactive:#b4c0d0;--ss-d-text-muted:#475569;--ss-d-text-inactive:#64748b;--ss-d-hatch:#e2e8f0;--ss-font:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;--ss-font-mono:ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;--ss-control-h:36px;--ss-radius-sm:6px;--ss-radius-md:8px;--ss-radius-lg:12px;--ss-shadow-panel:0 1px 2px #0f172a0a, 0 1px 3px #0f172a0f;--ss-duration:.16s;--ss-ease:cubic-bezier(.2, 0, 0, 1)}*{box-sizing:border-box}body{background:var(--ss-bg);color:var(--ss-text);font:15px/1.55 var(--ss-font);margin:0}p{color:var(--ss-text-2);line-height:1.6}h1,h2{color:var(--ss-text)}button,select{height:var(--ss-control-h);border:1px solid var(--ss-border-strong);border-radius:var(--ss-radius-sm);color:var(--ss-text);font:inherit;background:#fff;padding:0 14px;font-size:14px}button{white-space:nowrap;cursor:pointer;transition:background-color var(--ss-duration) var(--ss-ease), border-color var(--ss-duration) var(--ss-ease);justify-content:center;align-items:center;gap:8px;font-weight:600;display:inline-flex}button:hover:not(:disabled){background:var(--ss-surface-sunken);border-color:var(--ss-text-3)}button:disabled{background:var(--ss-surface-sunken);border-color:var(--ss-border);color:var(--ss-text-3);cursor:not-allowed}button.primary{background:var(--ss-accent);border-color:var(--ss-accent);color:#fff}button.primary:hover:not(:disabled){background:var(--ss-accent-strong);border-color:var(--ss-accent-strong)}button.primary:disabled{background:var(--ss-surface-sunken);border-color:var(--ss-border);color:var(--ss-text-3)}select{appearance:none;cursor:pointer;text-overflow:ellipsis;background-color:#fff;background-image:linear-gradient(45deg, transparent 50%, var(--ss-text-2) 50%), linear-gradient(135deg, var(--ss-text-2) 50%, transparent 50%);background-position:calc(100% - 18px),calc(100% - 13px);background-repeat:no-repeat;background-size:5px 5px;min-width:0;max-width:100%;padding:0 34px 0 12px}select:disabled{background-color:var(--ss-surface-sunken);color:var(--ss-text-3);cursor:not-allowed}button:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--ss-accent);outline-offset:2px}[data-player]:focus-visible{outline:2px solid var(--ss-accent);outline-offset:3px}.player-icon{flex:none;width:16px;height:16px}.player-icon path{fill:none;stroke:currentColor;stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round}.player-icon[data-filled] path{fill:currentColor;stroke:none}.player-ghost{color:var(--ss-text-2);background:0 0;border-color:#0000}kbd{border:1px solid var(--ss-border-strong);color:var(--ss-text-2);font:11px/1.5 var(--ss-font-mono);background:#fff;border-bottom-width:2px;border-radius:4px;padding:1px 6px}[data-controls]{flex-wrap:wrap;align-items:flex-end;gap:12px 16px;margin:16px 0 0;display:flex}.player-paths{flex-wrap:wrap;flex:300px;gap:12px;min-width:0;display:flex}.player-paths:empty{display:none}@media (width>=600px){.player-paths{overscroll-behavior:contain;max-height:136px;margin:-4px;padding:4px;overflow-y:auto}.player-paths[data-overflow]{box-shadow:inset 0 -10px 8px -8px #0f172a38}}@media (width>=600px) and (height<=820px){.player-paths{max-height:70px}}.player-path{flex:220px;gap:4px;min-width:0;max-width:380px;display:grid}.player-path-head{flex-wrap:wrap;justify-content:space-between;gap:2px 8px;font-size:12px;display:flex}.player-path-name{color:var(--ss-text-2);font-weight:700}[data-other-path]{color:var(--ss-text-3);overflow-wrap:anywhere}.player-path select{width:100%}.player-switch{border-radius:999px;gap:8px;padding:0 12px 0 8px}.player-switch-track{background:var(--ss-border-strong);width:30px;height:18px;transition:background-color var(--ss-duration) var(--ss-ease);border-radius:999px;position:relative}.player-switch-track:after{content:"";width:14px;height:14px;transition:transform var(--ss-duration) var(--ss-ease);background:#fff;border-radius:50%;position:absolute;top:2px;left:2px;box-shadow:0 1px 2px #0f172a4d}.player-switch[aria-pressed=true] .player-switch-track{background:var(--ss-accent)}.player-switch[aria-pressed=true] .player-switch-track:after{transform:translate(12px)}.player-switch:disabled .player-switch-track{opacity:.45}.path-help{align-items:center;gap:6px;margin:10px 0 12px;font-size:12px;display:flex}.path-help:before{content:"i";width:14px;height:14px;font:700 9px/11px var(--ss-font);text-align:center;border:1.5px solid;border-radius:50%;flex:none}[data-diagram]{border:1px solid var(--ss-border);border-radius:var(--ss-radius-md);background:#fff;max-height:clamp(240px,70vh,720px);padding:20px;position:relative;overflow:auto}[data-diagram]>svg{z-index:1;width:100%;min-width:600px;height:auto;display:block;position:relative}.diagram-underlay,.diagram-overlay{pointer-events:none;position:absolute}.diagram-underlay{z-index:0}.diagram-overlay{z-index:2}.case-region{position:absolute}.case-region[data-selected=false]{background:#f1f5f9bf repeating-linear-gradient(135deg, var(--ss-d-hatch) 0 2px, transparent 2px 8px)}.step-badge{background:var(--ss-d-current);color:#fff;width:22px;height:22px;font:700 11px/22px var(--ss-font);text-align:center;font-variant-numeric:tabular-nums;border-radius:50%;position:absolute;transform:translate(-50%,-50%);box-shadow:0 0 0 2px #fff}.step-badge[hidden]{display:none}svg text[data-seq-step],svg text[data-seq-case]{paint-order:stroke;stroke-linejoin:round;stroke:#fff!important;stroke-width:5px!important}svg line[data-seq-participant]{stroke-dasharray:3 5;stroke-width:1.25px!important}svg g[data-seq-participant] rect{filter:drop-shadow(0 1px 2px #0f172a1a);stroke-width:1.25px!important}svg line[data-phase],svg path[data-phase],svg rect.note{transition:stroke var(--ss-duration) var(--ss-ease), fill var(--ss-duration) var(--ss-ease)}svg marker path{fill:context-stroke!important;stroke:context-stroke!important}svg line[data-phase=inactive],svg path[data-phase=inactive]{stroke:var(--ss-d-inactive)!important}svg text[data-phase=inactive],svg text[data-phase=inactive] tspan,svg [data-phase=inactive] text,svg [data-phase=inactive] tspan{fill:var(--ss-d-text-inactive)!important}svg [data-phase=inactive] rect.note{stroke-dasharray:4 3;fill:var(--ss-bg)!important;stroke:var(--ss-d-inactive)!important}svg text[data-seq-case][data-selected=false]{fill:var(--ss-d-text-inactive)!important}svg[data-focus=true] line[data-phase=past],svg[data-focus=true] path[data-phase=past]{stroke:var(--ss-d-past)!important}svg[data-focus=true] line[data-phase=future],svg[data-focus=true] path[data-phase=future]{stroke:var(--ss-d-future)!important}svg[data-focus=true] text[data-phase=future],svg[data-focus=true] text[data-phase=future] tspan,svg[data-focus=true] [data-phase=future] text,svg[data-focus=true] [data-phase=future] tspan{fill:var(--ss-d-text-muted)!important}svg[data-focus=true] [data-phase=future] rect.note{stroke:var(--ss-d-future)!important}svg line[data-phase=current],svg path[data-phase=current]{stroke:var(--ss-d-current)!important;stroke-width:2.75px!important}svg text[data-phase=current],svg text[data-phase=current] tspan,svg [data-phase=current] text,svg [data-phase=current] tspan{fill:var(--ss-accent-strong)!important}svg [data-phase=current] rect.note{fill:var(--ss-accent-soft)!important;stroke:var(--ss-d-current)!important;stroke-width:2.5px!important}svg g[data-seq-participant][data-active=true] rect{fill:var(--ss-accent-soft)!important;stroke:var(--ss-d-current)!important;stroke-width:2px!important}svg g[data-seq-participant][data-active=true] line,svg g[data-seq-participant][data-active=true] circle,svg g[data-seq-participant][data-active=true] path{stroke:var(--ss-d-current)!important}svg g[data-seq-participant][data-active=true] text,svg g[data-seq-participant][data-active=true] tspan{fill:var(--ss-accent-strong)!important}svg line[data-seq-participant][data-active=true]{stroke:#93c5fd!important;stroke-width:2px!important}.player-dock{border:1px solid var(--ss-border);border-radius:var(--ss-radius-md);background:#fff;gap:10px;margin-top:12px;padding:14px 16px;display:grid}.step-meta{min-height:22px;max-height:52px;color:var(--ss-text-2);overflow-wrap:anywhere;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0;font-size:12px;display:flex;overflow-y:auto}.step-kind{background:var(--ss-accent-soft);color:var(--ss-accent-strong);letter-spacing:.06em;text-transform:uppercase;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:700}.step-kind[hidden]{display:none}[data-step-details]{min-width:0;line-height:1.9}.participant-chip{border:1px solid var(--ss-border);border-radius:var(--ss-radius-sm);background:var(--ss-bg);color:var(--ss-text);overflow-wrap:anywhere;padding:1px 7px;font-weight:600;line-height:1.5;display:inline-block}[data-status]{min-height:40px;color:var(--ss-text);overflow-wrap:anywhere;align-items:flex-start;margin:0;font-size:18px;font-weight:600;line-height:1.4;display:flex}[data-status] .step-count{font-variant-numeric:tabular-nums;flex:none;order:0;font-size:28px;font-weight:700;line-height:1.1}[data-status] .step-total{border-right:1px solid var(--ss-border);color:var(--ss-text-2);font-variant-numeric:tabular-nums;flex:none;order:1;margin-right:16px;padding-right:16px;font-size:14px;font-weight:500}[data-status] .step-sep{display:none}[data-status] .step-text{overscroll-behavior:contain;flex:1;order:2;min-width:0;max-height:calc(2.8em + 4px);padding-top:4px;overflow-y:auto}@media (width>=600px) and (height>=860px){[data-status] .step-text{max-height:calc(4.2em + 4px)}}[data-status] .step-total{padding-top:10px}[data-status][data-overview] .step-text{color:var(--ss-text-2);font-weight:500}.player-dock-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}[data-transport]{flex-wrap:wrap;gap:8px;display:flex}.player-play{min-width:104px}.player-help{color:var(--ss-text-3);flex-wrap:wrap;align-items:center;gap:4px 6px;margin:0;font-size:12px;display:flex}.export-page{padding:0 28px 28px}.export-bar{align-items:center;gap:12px;max-width:1120px;min-height:64px;margin:0 auto;display:flex}.export-bar h1{letter-spacing:-.01em;align-items:center;gap:10px;margin:0;font-size:18px;display:inline-flex}.offline-pill{background:var(--ss-surface-sunken);color:var(--ss-text-2);border-radius:999px;padding:3px 10px;font-size:12px;font-weight:600}.export-panel{border:1px solid var(--ss-border);border-radius:var(--ss-radius-lg);max-width:1120px;box-shadow:var(--ss-shadow-panel);background:#fff;margin:0 auto;padding:20px}.export-panel>p:first-child{margin-top:0}.export-foot{color:var(--ss-text-3);text-align:center;margin:16px 0 0;font-size:12px}@media (width>=600px){.export-panel{flex-direction:column;max-height:calc(100dvh - 80px);display:flex}.export-panel>*{flex:none}.export-panel>[data-diagram]{flex:0 auto;min-height:140px;max-height:720px}}@media (width<=599px){button,select{height:44px}[data-diagram]{max-height:420px;padding:12px}[data-transport]{width:100%}[data-transport] button{flex:1;padding:0 8px}[data-transport] .player-play{flex:2;min-width:0}[data-transport] [data-action=previous] .player-label,[data-transport] [data-action=next] .player-label,[data-transport] [data-action=reset] .player-label{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.player-dock{padding:12px}.player-dock .player-help{display:none}[data-status] .step-count{font-size:22px}[data-status] .step-total{margin-right:12px;padding-right:12px}[data-status]{font-size:16px}[data-status] .step-text{max-height:calc(5.6em + 2px);padding-top:2px}[data-status] .step-total{padding-top:6px}.export-page{padding:0 12px 16px}.export-panel{padding:16px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
