/*
 * Funifytools simulator UI
 * Shared foundation for interactive simulator pages.
 */
        .simulator-page{--simulator-run:#2e9d63;--simulator-wait:#f3a51b;--simulator-secondary:#7c4dff;--simulator-accent:#3861fb;--simulator-muted:#7b8794}.simulator-page .hero{position:relative;margin-top:18px;padding:24px 28px;overflow:hidden;border:1px solid var(--gh-border);border-radius:16px;background:linear-gradient(120deg,var(--gh-canvas) 0%,color-mix(in srgb,var(--simulator-accent) 7%,var(--gh-canvas)) 100%)}.simulator-page .hero::after{content:"";position:absolute;top:-70px;right:-35px;width:190px;height:190px;border-radius:50%;background:color-mix(in srgb,var(--simulator-accent) 8%,transparent);pointer-events:none}.hero-label{display:flex;align-items:center;gap:9px;margin:0 0 10px;color:var(--gh-muted);font-size:.7rem;font-weight:800;letter-spacing:.075em;text-transform:uppercase}.hero-label::before{content:"";width:22px;height:3px;border-radius:3px;background:linear-gradient(90deg,var(--simulator-accent),var(--simulator-secondary));box-shadow:0 0 0 3px color-mix(in srgb,var(--simulator-accent) 8%,transparent)}.simulator-page h1{position:relative;z-index:1;max-width:900px;margin:0;font-size:clamp(1.85rem,3.6vw,2.8rem);line-height:1.1;letter-spacing:-.035em}.hero-description{position:relative;z-index:1;display:flex;align-items:center;gap:10px;margin-top:12px;flex-wrap:wrap}.simulator-page .lead{max-width:760px;margin:0;color:var(--gh-muted);font-size:.95rem;line-height:1.55}.hero-note{margin:0;padding-left:10px;border-left:1px solid var(--gh-border);color:var(--gh-muted);font-size:.74rem;white-space:nowrap}.simulator-page .note{color:var(--gh-muted);font-size:1rem}.simulator-panel{margin-top:18px;padding:18px;border:1px solid var(--gh-border);border-radius:16px;background:var(--gh-canvas);box-shadow:0 8px 24px rgba(20,32,51,.06)}
        .workspace-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.workspace-head h2{margin:0;font-size:2rem}.workspace-head p{margin:2px 0 0}.controls-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.simulator-field{padding:11px;border:1px solid var(--gh-border);border-radius:12px;background:var(--gh-canvas-subtle)}.simulator-field label{display:flex;justify-content:space-between;gap:8px;margin-bottom:7px;font-size:.76rem;font-weight:800}.simulator-field output{color:var(--simulator-accent)}.simulator-field input,.simulator-field select{width:100%}.simulator-selects{display:grid;grid-template-columns:2fr 1fr;gap:10px;margin-top:10px}.simulator-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.statusbar{display:block;margin-top:10px;padding-top:10px;border-top:1px solid var(--gh-border)}.simulator-button{padding:10px 15px;border:1px solid var(--gh-border);border-radius:10px;background:var(--gh-canvas);color:var(--gh-fg);font-weight:800}.simulator-button.primary{border-color:var(--simulator-accent);background:var(--simulator-accent);color:#fff}
        .view-tabs{display:flex;gap:4px;margin-top:18px;padding:4px;border:1px solid var(--gh-border);border-radius:12px;background:var(--gh-canvas-subtle)}.view-tab{flex:1;padding:10px 14px;border:0;border-radius:8px;background:transparent;color:var(--gh-muted);font-weight:800;cursor:pointer}.view-tab[aria-selected="true"]{background:var(--gh-canvas);color:var(--gh-fg);box-shadow:0 1px 4px rgba(20,32,51,.1)}.view-panel[hidden]{display:none}.view-panel>.simulator-panel:first-child,.view-panel>.sim-grid:first-child{margin-top:12px}
        .sim-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sim-card{padding:0;overflow:hidden}.sim-head{display:flex;justify-content:space-between;gap:12px;padding:17px;border-bottom:1px solid var(--gh-border)}.sim-head h2{margin:0}.sim-head p{margin:3px 0 0;color:var(--gh-muted);font-size:.85rem}.badge{align-self:flex-start;padding:5px 8px;border-radius:99px;background:var(--gh-canvas-subtle);font-size:.72rem;font-weight:800}.sim-body{padding:16px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.metric{padding:9px;border:1px solid var(--gh-border);border-radius:10px;background:var(--gh-canvas-subtle)}.metric span{display:block;color:var(--gh-muted);font-size:.66rem;font-weight:800}.metric strong{font-size:1.2rem}.machine{padding:12px;border:1px dashed var(--gh-border);border-radius:12px;background:var(--gh-canvas-subtle)}.machine-title{display:flex;justify-content:space-between;margin-bottom:9px;color:var(--gh-muted);font-size:.72rem;font-weight:800}.rows{display:grid;gap:7px}.socket-grid{grid-template-columns:1fr 1fr}.state-row{display:grid;grid-template-columns:78px 1fr 70px;gap:8px;align-items:center;padding:8px;border:1px solid var(--gh-border);border-radius:9px;background:var(--gh-canvas)}.socket-grid .state-row{grid-template-columns:64px 1fr 58px;padding:7px}.state-name,.state{font-size:.7rem;font-weight:800}.state{text-align:right}.bar{height:7px;overflow:hidden;border-radius:99px;background:var(--gh-border-muted)}.fill{height:100%;width:0;border-radius:99px}.queue{margin-top:10px;padding:9px;border:1px solid var(--gh-border);border-radius:9px;background:var(--gh-canvas)}.queue h3{margin:0 0 7px;font-size:.73rem}.chips{display:flex;min-height:22px;gap:5px;flex-wrap:wrap}.chip{padding:3px 6px;border-radius:6px;background:var(--gh-canvas-subtle);font-size:.66rem;font-weight:800}
        .section-head{display:flex;justify-content:space-between;gap:12px;align-items:end;flex-wrap:wrap}.section-head h2{margin:0}.section-head p{margin:3px 0;color:var(--gh-muted)}.timeline-wrap{overflow-x:auto}.timeline{min-width:700px}.trow{display:grid;grid-template-columns:105px 1fr;gap:8px;align-items:center;margin:7px 0}.tlabel{font-size:.7rem;font-weight:800}.track{position:relative;height:21px;overflow:hidden;border:1px solid var(--gh-border);border-radius:6px;background:var(--gh-canvas-subtle)}.seg{position:absolute;top:0;height:100%}.simulator-page .run{background:var(--simulator-run)}.simulator-page .wait{background:var(--simulator-wait)}.simulator-page .async{background:var(--simulator-secondary)}.simulator-page .ready{background:var(--simulator-accent)}.cursor{position:absolute;inset-block:0;width:2px;background:var(--gh-fg)}.stepper{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center}.result-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;margin-top:12px;border:1px solid var(--gh-border);border-radius:10px;overflow:hidden}.result-grid>*{padding:10px;border-bottom:1px solid var(--gh-border)}.result-grid>*:nth-child(3n+2),.result-grid>*:nth-child(3n+3){border-left:1px solid var(--gh-border)}.result-grid>*:nth-last-child(-n+3){border-bottom:0}.rhead{background:var(--gh-canvas-subtle);font-weight:800}.better{color:var(--simulator-run);font-weight:900}.concept-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0}.concept-grid h3{margin-top:0}.insight{margin-top:12px;padding:12px;border:1px solid var(--gh-border);border-radius:10px;background:var(--gh-canvas-subtle)}
        @media(max-width:950px){.controls-grid{grid-template-columns:repeat(2,1fr)}.sim-grid,.concept-grid{grid-template-columns:1fr}}@media(max-width:620px){.simulator-page .hero{margin-top:10px;padding:20px 18px}.simulator-page h1{font-size:clamp(1.7rem,8vw,2.2rem)}.hero-description{display:block}.hero-note{margin-top:9px;padding:0;border:0;white-space:normal}.workspace-head{align-items:flex-start}.workspace-head {
          flex-direction: column;
        }
        
        .simulator-actions {
          width: 100%;
          flex-direction: row;
          align-items: stretch;
        }
        
        .simulator-actions .simulator-button {
          flex: 1;
          width: auto;
        }
        .controls-grid,.simulator-selects,.socket-grid{grid-template-columns:1fr}.view-tab{padding:9px 5px;font-size:.78rem}.stepper{grid-template-columns:1fr 1fr}.step-copy{grid-column:1/-1;grid-row:1}.state-row,.socket-grid .state-row{grid-template-columns:68px 1fr 64px}.result-grid>*{padding:8px;font-size:.75rem}}
    .hero-label::before{height:5px}
    .simulator-button{white-space:nowrap}.simulator-button.primary{border-color:#27815a;background:#27815a;color:#fff;box-shadow:0 2px 6px rgba(39,129,90,.2)}
    .simulator-button.primary:hover{border-color:#216f4e;background:#216f4e}
    .workspace-head .simulator-actions{display:flex;width:auto;flex-flow:row nowrap;align-items:center}
    .workspace-head .simulator-actions .simulator-button{width:auto;min-width:132px;flex:0 0 auto}
    .controls-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
    @media(max-width:950px){.controls-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
    @media(max-width:620px){.workspace-head .simulator-actions{width:100%;flex-direction:row}.workspace-head .simulator-actions .simulator-button{width:auto;min-width:0;flex:1 1 0}}
    @media(max-width:620px){.controls-grid{grid-template-columns:1fr}}
    .sim-card{position:relative;border-top-width:4px;box-shadow:0 8px 22px rgba(20,32,51,.05)}
    .simulator-model-primary{border-top-color:#d98b25}
    .nonsimulator-model-primary{border-top-color:#258b83}
    .sim-head{padding:16px 18px 14px;background:linear-gradient(180deg,var(--gh-canvas-subtle),var(--gh-canvas))}
    .sim-head h2{margin:2px 0 3px;font-size:1.3rem}
    .model-label{color:var(--gh-muted);font-size:.65rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase}
    .sim-head .badge{border:1px solid var(--gh-border);background:var(--gh-canvas);box-shadow:0 1px 3px rgba(20,32,51,.06)}
    .simulator-model-primary .badge{border-color:color-mix(in srgb,#d98b25 30%,var(--gh-border));color:#a66512}
    .nonsimulator-model-primary .badge{border-color:color-mix(in srgb,#258b83 30%,var(--gh-border));color:#1d756e}
    .sim-body{padding-top:12px}
    .metrics{gap:0;overflow:hidden;border:1px solid var(--gh-border);border-radius:11px;background:var(--gh-canvas-subtle)}
    .metric{padding:10px 13px;border:0;border-radius:0;background:transparent}
    .metric+.metric{border-left:1px solid var(--gh-border)}
    .metric strong{font-size:1.35rem;line-height:1.2}
    .simulator-model-primary .metric strong{color:#a66512}
    .nonsimulator-model-primary .metric strong{color:#1d756e}
    .calculator-page.simulator-page{width:var(--funify-page-width,min(1440px,calc(100% - 32px)))}
    .sim-card,.simulator-model-primary,.nonsimulator-model-primary{border-top-width:1px;border-top-color:var(--gh-border)}
    .sim-head{background:var(--gh-canvas)}
    .model-label{color:var(--gh-muted);letter-spacing:.06em}
    .model-label b{display:inline-grid;place-items:center;width:22px;height:18px;margin-right:6px;border:1px solid var(--gh-border);border-radius:4px;background:var(--gh-canvas-subtle);color:var(--gh-fg);font-size:.61rem;letter-spacing:0}
    .sim-head .badge,.simulator-model-primary .badge,.nonsimulator-model-primary .badge{border-color:var(--gh-border);background:transparent;color:var(--gh-muted);box-shadow:none}
    .simulator-model-primary .metric strong,.nonsimulator-model-primary .metric strong{color:var(--gh-fg)}
    @media(max-width:640px){.calculator-page.simulator-page{width:min(100% - 20px,1440px)}}
    .concept-first{margin-top:14px;padding:0;border:1px solid var(--gh-border);border-radius:16px;overflow:hidden;background:var(--gh-canvas)}
    .concept-first-head{padding:18px 20px;border-bottom:1px solid var(--gh-border)}
    .concept-first-head h2{margin:0 0 4px;font-size:1.25rem}.concept-first-head p{margin:0;color:var(--gh-muted);font-size:.88rem}
    .concept-compare{display:grid;grid-template-columns:1fr 1fr}
    .concept-side{padding:20px}.concept-side+.concept-side{border-left:1px solid var(--gh-border)}
    .concept-side h3{display:flex;align-items:center;gap:8px;margin:0 0 7px;font-size:1.1rem}.concept-side h3::before{content:"";width:8px;height:8px;border:2px solid currentColor}
    .concept-side.round-marker h3::before{border-radius:50%}.concept-sentence{margin:0 0 16px;font-size:1rem;font-weight:750}
    .concept-flow{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.concept-flow span{padding:6px 9px;border:1px solid var(--gh-border);border-radius:6px;background:var(--gh-canvas-subtle);font-size:.75rem;font-weight:750}.concept-flow i{color:var(--gh-muted);font-style:normal}
    .concept-detail{margin:14px 0 0;color:var(--gh-muted);font-size:.8rem}
    .simple-demo{margin-top:14px;padding:18px 20px;border:1px solid var(--gh-border);border-radius:16px;background:var(--gh-canvas)}
    .simple-demo-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.simple-demo-head h2{margin:0;font-size:1.1rem}.simple-demo-head p{margin:3px 0 0;color:var(--gh-muted);font-size:.8rem}
    .demo-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.demo-model{padding:14px;border:1px solid var(--gh-border);border-radius:12px;background:var(--gh-canvas-subtle)}.demo-model h3{margin:0 0 3px;font-size:.92rem}.demo-message{margin:0 0 12px;color:var(--gh-muted);font-size:.76rem}
    .demo-row{display:grid;grid-template-columns:68px 1fr;gap:8px;align-items:center;margin:6px 0}.demo-row>span{color:var(--gh-muted);font-size:.69rem;font-weight:800}.demo-track{position:relative;height:20px;overflow:hidden;border:1px solid var(--gh-border);border-radius:4px;background:var(--gh-canvas)}.demo-segment{position:absolute;top:2px;bottom:2px;left:var(--left);width:var(--width);border-radius:3px;transform-origin:left;background:#30363d}.demo-segment.waiting{background:repeating-linear-gradient(135deg,#d9dde3 0 5px,#f2f4f7 5px 10px)}.demo-segment.secondary-work{background:#7b61b3}.demo-segment.other-work{background:#397b68}.demo-segment.callback{background:#30363d}
    .simple-demo.is-replaying .demo-segment{animation:demoReveal .55s ease both;animation-delay:var(--delay,0s)}@keyframes demoReveal{from{opacity:0;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}
    .demo-legend{display:flex;gap:12px;margin-top:10px;color:var(--gh-muted);font-size:.68rem}.demo-legend span::before{content:"";display:inline-block;width:9px;height:9px;margin-right:4px;border-radius:2px;background:#30363d;vertical-align:-1px}.demo-legend .legend-wait::before{background:#d9dde3}.demo-legend .legend-secondary::before{background:#7b61b3}.demo-note{margin:12px 0 0;color:var(--gh-muted);font-size:.7rem;text-align:right}
    .settings-divider{display:flex;align-items:center;gap:10px;margin:22px 0 0;color:var(--gh-muted);font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.settings-divider::after{content:"";height:1px;flex:1;background:var(--gh-border)}
    @media(max-width:760px){.concept-compare,.demo-grid{grid-template-columns:1fr}.concept-side+.concept-side{border-top:1px solid var(--gh-border);border-left:0}.simple-demo-head{align-items:flex-start}.demo-row{grid-template-columns:58px 1fr}}
    @media(prefers-reduced-motion:reduce){.simple-demo.is-replaying .demo-segment{animation:none}}
    .simple-demo-head .concept-replay{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;width:auto!important;min-width:0!important;flex:0 0 auto!important;padding:7px 11px;border:1px solid var(--gh-border);border-radius:7px;background:var(--gh-canvas);color:var(--gh-fg);font:inherit;font-size:.74rem;font-weight:750;cursor:pointer;box-shadow:0 1px 2px rgba(20,32,51,.06)}
    .simple-demo-head .concept-replay:hover{border-color:var(--gh-muted);background:var(--gh-canvas-subtle)}.simple-demo-head .concept-replay:active{transform:translateY(1px)}.simple-demo-head .concept-replay:focus-visible{outline:2px solid var(--simulator-accent);outline-offset:2px}.concept-replay span{font-size:1rem;line-height:1}
    @media(max-width:520px){.simple-demo-head{display:flex;flex-direction:row}.simple-demo-head .concept-replay{white-space:nowrap}.concept-replay{font-size:0!important}.concept-replay span{font-size:1rem}}
    .demo-track::after{content:"";position:absolute;z-index:4;top:-2px;bottom:-2px;left:0;width:2px;border-radius:2px;background:#e5484d;box-shadow:0 0 0 2px rgba(229,72,77,.12);opacity:0;pointer-events:none}
    .simple-demo.is-replaying .demo-track::after{animation:demoPlayhead 4.8s linear both}
    .simple-demo.is-replaying .demo-segment{animation:demoReveal .7s ease both;animation-delay:var(--delay,0s)}
    .concept-replay.is-playing{border-color:var(--simulator-accent);color:var(--simulator-accent)}.concept-replay.is-playing span{animation:replaySpin 1s linear infinite}
    @keyframes demoPlayhead{0%{left:0;opacity:1}96%{opacity:1}100%{left:calc(100% - 2px);opacity:0}}
    @keyframes replaySpin{to{transform:rotate(360deg)}}
    .demo-track::before{content:"";position:absolute;z-index:3;inset:0 0 0 0;border-radius:3px;background:var(--gh-canvas);opacity:0;pointer-events:none}
    .simple-demo.is-replaying .demo-track::before{animation:demoRevealMask 4.8s linear both}
    .simple-demo.is-replaying .demo-segment{animation:none}
    @keyframes demoRevealMask{0%{left:0;opacity:1}99.5%{left:99.5%;opacity:1}100%{left:100%;opacity:0}}
    .demo-segment{background:#91b7df}
    .demo-segment.waiting{background:repeating-linear-gradient(135deg,#f4cfaa 0 5px,#fff0df 5px 10px)}
    .demo-segment.secondary-work{background:#b9a7e8}
    .demo-segment.other-work{background:#9fd4c4}
    .demo-segment.callback{background:#efb0b7}
    .demo-segment.queued{background:#cbd5e1}
    .demo-legend span:first-child::before{background:linear-gradient(90deg,#91b7df 0 50%,#9fd4c4 50%)}.demo-legend .legend-wait::before{background:#f4cfaa}.demo-legend .legend-queue::before{background:#cbd5e1}.demo-legend .legend-secondary::before{background:#b9a7e8}
    .demo-model h3 small{margin-left:6px;color:var(--gh-muted);font-size:.66rem;font-weight:650}
    .demo-segment{display:flex;align-items:center;justify-content:center;padding:0 2px;overflow:hidden;color:#243447;font-size:.56rem;font-style:normal;font-weight:800;line-height:1;white-space:nowrap}
    .demo-segment.waiting{color:#754f2d}.demo-segment.secondary-work{color:#493d72}.demo-segment.other-work{color:#285f51}.demo-segment.callback{color:#713c44}
    .demo-legend .legend-end::before{background:#efb0b7}
    .demo-segment.productive{background:#a9d9c8;color:#285f51}
    .demo-legend .legend-productive::before{background:#a9d9c8}
    .demo-or{display:flex;align-items:center;gap:8px;margin:10px 0 8px;color:var(--gh-muted);font-size:.62rem;font-weight:850;letter-spacing:.08em}.demo-or::before,.demo-or::after{content:"";height:1px;flex:1;background:var(--gh-border)}.demo-or span{padding:2px 7px;border:1px solid var(--gh-border);border-radius:999px;background:var(--gh-canvas)}
    .single-thread-row{padding-top:1px}
    .demo-legend span:first-child::before{background:#91b7df}
    .demo-clarifier{margin:-6px 0 12px;padding-left:9px;border-left:2px solid #a9d9c8;color:var(--gh-muted);font-size:.7rem}
    .simulator-state-list-wide .state-row{grid-template-columns:78px minmax(0,1fr) 92px}
    .simulator-state-list-wide .state{white-space:nowrap}
    .timeline .track{height:30px}
    .timeline .tlabel{font-size:.78rem}
    .timeline .seg{display:flex;align-items:center;justify-content:center;padding:0 5px;overflow:hidden;color:#243447;font-size:.78rem;font-style:normal;font-weight:800;line-height:1;white-space:nowrap}
    .timeline .seg.tl-start{background:#91b7df}.timeline .seg.wait{background:repeating-linear-gradient(135deg,#f4cfaa 0 5px,#fff0df 5px 10px);color:#754f2d}.timeline .seg.tl-free{background:#a9d9c8;color:#285f51}.timeline .seg.tl-handle{background:#efb0b7;color:#713c44}
    .timeline-legend{display:flex;gap:12px;margin-top:7px;flex-wrap:wrap;color:var(--gh-muted);font-size:.72rem}.timeline-legend span::before{content:"";display:inline-block;width:10px;height:10px;margin-right:5px;border-radius:2px;vertical-align:-1px}.tl-legend-start::before{background:#91b7df}.tl-legend-wait::before{background:#f4cfaa}.tl-legend-free::before{background:#a9d9c8}.tl-legend-handle::before{background:#efb0b7}
    .settings-toggle{display:none;align-items:center;justify-content:center;width:auto;min-width:auto;height:auto;padding:0;border:0;background:none;color:#7ba7f7;transition:color .18s ease}.settings-toggle:hover,.settings-toggle:focus-visible{color:#4a82e8;background:none}.settings-toggle svg{width:20px;height:20px;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.simulation-settings-drawer{position:fixed;inset:64px 0 0;z-index:90;display:grid;justify-items:end;background:rgba(15,23,42,.46)}.simulation-settings-drawer[hidden]{display:none}.simulation-settings-drawer-panel{width:min(92vw,390px);height:100%;overflow:auto;padding:16px;background:var(--gh-canvas);border-left:1px solid var(--gh-border);box-shadow:-18px 0 42px rgba(15,23,42,.24);animation:simulationSettingsSlideIn .18s ease-out}.simulation-settings-drawer-head{position:sticky;top:-16px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-16px -16px 0;padding:12px 14px;border-bottom:1px solid var(--gh-border);background:var(--gh-canvas)}.simulation-settings-drawer-head h2{margin:0;font-size:1.05rem}.settings-drawer-close{display:flex;align-items:center;justify-content:center;width:34px;min-width:34px;height:34px;padding:0;border:0;background:transparent;color:var(--gh-fg);cursor:pointer}.settings-drawer-close:hover,.settings-drawer-close:focus-visible{background:var(--gh-canvas-subtle)}.settings-drawer-close svg{display:block;width:19px;height:19px;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.simulation-settings-drawer-body{padding-top:18px}.simulation-settings-drawer-body .controls-grid,.simulation-settings-drawer-body .simulator-selects{grid-template-columns:1fr}.simulation-settings-drawer-body .simulator-selects{margin-top:10px}body.simulation-settings-open{overflow:hidden}@keyframes simulationSettingsSlideIn{from{transform:translateX(24px);opacity:.65}to{transform:translateX(0);opacity:1}}
    @media(max-width:900px){.settings-toggle{display:inline-flex;position:absolute;top:2px;right:0}.workspace-head{position:relative;align-items:flex-start;padding-right:0}.workspace-head>div:first-child{padding-right:30px}.workspace-head .simulator-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.workspace-head .simulator-actions .simulator-button{width:100%;min-width:0}.sim-head .badge{display:none}.demo-segment{font-size:0}.demo-legend span,.timeline-legend span{position:relative;padding-left:14px}.demo-legend span::before,.timeline-legend span::before{position:absolute;top:.18em;left:0;margin-right:0}.view-tabs,.view-panel,.view-panel>.simulator-panel,.section-head,.timeline-wrap{box-sizing:border-box;min-width:0;max-width:100%}.view-tab{min-width:0;padding-inline:3px;font-size:.7rem;white-space:nowrap}.timeline-wrap{width:100%;overflow-x:auto;overscroll-behavior-inline:contain}.stepper>*{min-width:0}.stepper .simulator-button{width:100%;min-width:0}.simulation-settings-drawer-panel{padding:10px 12px}.simulation-settings-drawer-head{top:-10px;margin:-10px -12px 0;padding:9px 12px}.simulation-settings-drawer-body{padding-top:7px}.simulation-settings-drawer-body .controls-grid,.simulation-settings-drawer-body .simulator-selects{gap:5px}.simulation-settings-drawer-body .simulator-selects{margin-top:5px}.simulation-settings-drawer-body .simulator-field{min-width:0;padding:6px 9px}.simulation-settings-drawer-body .simulator-field label{margin-bottom:0;line-height:1.15}.simulation-settings-drawer-body input[type="range"]{height:20px;min-height:20px;margin:0}.simulation-settings-drawer-body select{box-sizing:border-box;min-width:0;min-height:34px;padding-right:28px;font-size:clamp(11px,3.35vw,14px);white-space:nowrap}}

/* Simulator directory pages */
.simulator-directory-page{display:block;width:min(1280px,calc(100% - 32px));margin:28px auto 44px;padding:0}.simulator-directory-grid,.simulator-directory-main{display:grid;grid-template-columns:minmax(0,1fr);gap:28px}.simulator-directory-panel{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}.simulator-directory-panel-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid color-mix(in oklab,var(--gh-border),transparent 20%)}.simulator-directory-panel-head h2{margin:0;color:var(--gh-fg);font-size:1.45rem;line-height:1.2}.simulator-directory-kicker{margin:0 0 5px;color:var(--gh-accent);font-size:.75rem;font-weight:750;text-transform:uppercase}.simulator-directory-hub{padding:26px;border:1px solid #dbe5f4;border-radius:10px;background:#f8faff;box-shadow:0 8px 24px rgba(31,77,152,.08)}.simulator-directory-hub>.simulator-directory-panel-head{display:grid;grid-template-columns:minmax(0,3fr) minmax(260px,2fr);grid-template-areas:"copy art" "search art";align-items:stretch;gap:20px;margin-bottom:20px;padding-bottom:0;border-bottom:0}.simulator-directory-hero-copy{grid-area:copy;display:flex;min-width:0;flex-direction:column}.simulator-directory-hub .simulator-directory-kicker{display:inline-flex;align-self:flex-start;margin-bottom:10px;padding:5px 9px;border:1px solid #dbe6ff;border-radius:4px;background:#f1f5ff;color:#2667e8}.simulator-directory-hub .simulator-directory-panel-head h2{color:#101936;font-size:clamp(1.75rem,4vw,2.25rem)}.simulator-directory-hub .simulator-directory-panel-head h2 strong{color:#2868ed;font-weight:inherit}.simulator-directory-intro{max-width:760px;margin:10px 0 0;color:var(--gh-muted);font-size:.9rem;line-height:1.6}.simulator-directory-art{grid-area:art;display:grid;place-items:center;width:100%;aspect-ratio:16/9;align-self:center;overflow:hidden;border:1px solid color-mix(in oklab,var(--gh-accent),transparent 76%);border-radius:8px;background:linear-gradient(135deg,#eef4ff,#f8faff);box-shadow:0 12px 28px rgba(31,77,152,.09),inset 0 0 0 4px color-mix(in oklab,var(--gh-canvas),transparent 28%)}.simulator-directory-art img{display:block;width:100%;height:100%;object-fit:contain}.simulator-directory-search{grid-area:search;position:relative;width:100%}.simulator-directory-search .search-frame{min-height:48px;border-radius:6px;background:var(--gh-canvas)}.simulator-directory-shell{display:grid;gap:18px}.simulator-directory-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.simulator-directory-tab{position:relative;width:100%;min-height:70px;padding:12px 12px 12px 15px;border:1px solid var(--gh-border);border-radius:8px;background:var(--gh-canvas);color:var(--gh-fg);text-align:left}.simulator-directory-tab::before{content:"";position:absolute;top:13px;bottom:13px;left:0;width:3px;background:var(--gh-accent)}.simulator-directory-tab strong{display:block;font-size:.92rem;line-height:1.25}.simulator-directory-tab span{display:block;margin-top:5px;color:var(--gh-muted);font-size:.74rem;line-height:1.35}.simulator-directory-category{display:grid;gap:16px;padding:20px 0 0;border-top:1px solid var(--gh-border)}.simulator-directory-category-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}.simulator-directory-category-head h2{margin:0 0 6px;color:var(--gh-fg);font-size:1.25rem}.simulator-directory-category-head p{max-width:820px;margin:0;color:var(--gh-muted);font-size:.88rem;line-height:1.6}.simulator-directory-meta{position:relative;padding:2px 0 2px 13px;color:var(--gh-accent);font-size:.8rem;font-weight:700;white-space:nowrap}.simulator-directory-meta::before{content:"";position:absolute;top:50%;left:0;width:6px;height:6px;border-radius:50%;background:currentColor;transform:translateY(-50%)}.simulator-directory-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.simulator-directory-card{display:grid;gap:10px;min-height:166px;padding:18px;border:1px solid color-mix(in oklab,var(--gh-border),transparent 15%);border-radius:8px;background:var(--gh-canvas);color:inherit;text-decoration:none;box-shadow:0 4px 14px rgba(31,55,91,.05);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.simulator-directory-card:hover,.simulator-directory-card:focus-visible{border-color:color-mix(in oklab,var(--gh-accent),transparent 50%);box-shadow:0 10px 24px rgba(31,77,152,.1);transform:translateY(-2px)}.simulator-directory-card strong{color:var(--gh-fg);font-size:.98rem;line-height:1.4}.simulator-directory-card p{margin:0;color:var(--gh-muted);font-size:.84rem;line-height:1.62}.simulator-directory-card small{margin-top:auto;color:var(--gh-accent);font-size:.74rem;font-weight:700;line-height:1.35}.simulator-directory-copy{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.simulator-directory-copy article{padding:18px;border:1px solid var(--gh-border);border-radius:8px;background:var(--gh-canvas)}.simulator-directory-copy h3{margin:0 0 7px}.simulator-directory-copy p{margin:0;color:var(--gh-muted);line-height:1.6}
html[data-theme="dark"] .simulator-directory-hub{border-color:var(--gh-border);background:var(--gh-canvas-subtle)}html[data-theme="dark"] .simulator-directory-hub .simulator-directory-panel-head h2{color:var(--gh-fg)}html[data-theme="dark"] .simulator-directory-hub .simulator-directory-kicker{border-color:var(--gh-border);background:var(--gh-canvas);color:var(--gh-accent)}html[data-theme="dark"] .simulator-directory-art{background:var(--gh-canvas)}
@media(max-width:920px){.simulator-directory-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.simulator-directory-hub>.simulator-directory-panel-head{grid-template-columns:minmax(0,3fr) minmax(180px,2fr)}}
@media(max-width:700px){.simulator-directory-hub>.simulator-directory-panel-head{grid-template-columns:1fr;grid-template-areas:"copy" "art" "search"}.simulator-directory-art{max-height:190px}.simulator-directory-tabs,.simulator-directory-cards,.simulator-directory-copy{grid-template-columns:1fr}}
@media(max-width:620px){.simulator-directory-repo-hero .repo-actions{display:none}.simulator-directory-page{width:min(100% - 20px,1280px);margin-top:18px}.simulator-directory-hub{padding:18px}.simulator-directory-panel-head{align-items:flex-start}.simulator-directory-card{min-height:150px}}
.simulator-directory-prose{display:grid;gap:12px;margin-bottom:18px}.simulator-directory-prose h3{margin:10px 0 0;font-size:1.08rem}.simulator-directory-prose p{max-width:1040px;margin:0;color:var(--gh-muted);font-size:.9rem;line-height:1.75}.simulator-directory-note{margin:16px 0 0;padding:13px 15px;border-left:3px solid var(--gh-accent);background:var(--gh-canvas-subtle);color:var(--gh-muted);font-size:.84rem;line-height:1.6}.simulator-directory-article-nav{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}.simulator-directory-article-nav a{padding:7px 10px;border:1px solid var(--gh-border);border-radius:6px;background:var(--gh-canvas-subtle);color:var(--gh-fg);font-size:.78rem;font-weight:750;text-decoration:none}.simulator-directory-article-nav a:hover,.simulator-directory-article-nav a:focus-visible{border-color:var(--gh-accent);color:var(--gh-accent)}.simulator-directory-articles{display:grid;gap:14px}.simulator-directory-articles article{padding:20px;border:1px solid var(--gh-border);border-radius:8px;background:var(--gh-canvas)}.simulator-directory-articles h3{margin:0 0 10px;font-size:1.08rem}.simulator-directory-articles p{margin:0;color:var(--gh-muted);font-size:.88rem;line-height:1.72}.simulator-directory-articles p+p{margin-top:10px}
