:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:var(--ink);background:var(--background);font-synthesis:none;text-rendering:optimizelegibility;--background:#0c111a;--canvas:#0e1620;--paper:#151e2a;--surface:#1b2837;--surface-hover:#233446;--ink:#e9f1fb;--muted:#a4b5c8;--border:#2a394b;--border-strong:#495d73;--grid:#243345;--accent:#66e4cd;--accent-deep:#a6f1e3;--accent-light:#193832;--accent-border:#437e75;--on-accent:#092b26;--warning:#fc9;--warning-surface:#34251d;--warning-border:#845638;--mono:ui-monospace, SFMono-Regular, Consolas, monospace;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:0;margin:0}button,input,select{font:inherit}button,summary{cursor:pointer}button{background:var(--paper);color:var(--ink);border:1px solid var(--border);border-radius:8px;padding:10px 15px;font-size:13px;font-weight:650}button:hover:enabled{background:var(--surface-hover);border-color:var(--border-strong)}button:disabled{cursor:not-allowed;opacity:.46}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}h1,h2,h3,p{margin:0}code{font-family:var(--mono)}input[type=checkbox]{accent-color:var(--accent);width:23px;height:23px}input[type=number]{border:1px solid var(--border-strong);width:92px;color:var(--ink);border-radius:6px;padding:7px}.sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.frame-structure{--changed-ink:#ffda8b;--changed-fill:#49361b;gap:18px;width:min(100%,1440px);padding-bottom:30px}.structure-heading,.structure-panel-heading,.structure-step-note{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;display:flex}.structure-heading p{color:var(--muted);margin-top:6px;font-size:14px;line-height:1.45}.structure-example-picker{color:var(--muted);flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:13px;font-weight:650;display:flex}.structure-example-picker select{border:1px solid var(--border-strong);background:var(--paper);max-width:100%;min-height:40px;color:var(--ink);border-radius:8px;padding:7px 10px}.structure-journey,.structure-diagram,.structure-explainer{background:var(--paper);border:1px solid var(--border);border-radius:12px;min-width:0;padding:clamp(12px,1.45vw,21px)}.structure-steps,.structure-sections{margin:0;padding:0;list-style:none}.structure-steps{flex-wrap:wrap;align-items:center;gap:6px 0;display:flex}.structure-steps li{align-items:center;display:flex}.structure-steps li:not(:last-child):after{content:"";background:var(--border-strong);width:clamp(8px,2vw,28px);height:1px;margin:0 4px}.structure-steps button{white-space:nowrap;min-height:36px;padding:6px 13px}.structure-step-note{color:var(--muted);margin-top:10px;font-size:13px;line-height:1.4}.structure-changed-legend{color:var(--changed-ink);font-size:12px}.structure-changed-legend:before{content:"";background:var(--changed-ink);border-radius:2px;width:7px;height:7px;margin-right:6px;display:inline-block}.structure-grid{grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);align-items:start;gap:14px;display:grid}.structure-panel-heading{margin-bottom:12px}.structure-panel-heading h2,.structure-explainer h2{letter-spacing:-.025em;font-size:19px;line-height:1.2}.structure-panel-heading>span{color:var(--muted);font-family:var(--mono);font-size:11px}.structure-sections{grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:5px;display:grid}.structure-sections button,.structure-fields button{text-align:left;background:var(--canvas);align-content:center;justify-items:start;gap:5px;width:100%;height:100%;min-height:56px;padding:9px;display:grid}.structure-sections button{min-height:62px;box-shadow:inset 0 2px var(--layer);font-size:12px}.structure-sections button[data-layer=ethernet]{--layer:#98bcfa}.structure-sections button[data-layer=ethercat]{--layer:var(--accent)}.structure-sections button[data-layer=datagram]{--layer:#bca9f5}.structure-sections button[data-layer=padding]{--layer:#7d92ac}.structure-sections button[data-layer=fcs]{border-style:dashed}.structure-sections small,.structure-offset,.structure-select-hint,.structure-explainer-intro p{color:var(--muted)}.structure-sections small{font:11px var(--mono)}.structure-steps button[aria-pressed=true],.structure-sections button[aria-pressed=true],.structure-fields button[aria-pressed=true],.structure-raw button[aria-pressed=true]{background:var(--accent-light);border-color:var(--accent);color:var(--accent-deep)}.structure-field-groups{border-top:1px solid var(--border);gap:12px;margin-top:15px;padding-top:15px;display:grid}.structure-field-groups h3{color:var(--muted);margin-bottom:6px;font-size:12px}.structure-fields{grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:5px;display:grid}.structure-fields code{flex-wrap:wrap;gap:2px 6px;font-size:13px;display:flex}.structure-explainer{gap:10px;scroll-margin-top:12px;display:grid}.structure-explainer-intro p,.structure-select-hint{margin-top:4px;font-size:13px;line-height:1.45}.structure-offset{font-size:12px}.structure-raw{flex-wrap:wrap;align-items:center;gap:5px;display:flex}.structure-raw>code{padding:3px 4px}.structure-raw button{min-width:38px;min-height:38px;padding:4px}.structure-field-usage{border-top:1px solid var(--border);color:var(--muted);gap:6px;padding-top:10px;font-size:13px;line-height:1.45;display:grid}.structure-field-usage h3{color:var(--ink);font-size:13px}.structure-field-usage a{color:var(--accent-deep);text-underline-offset:3px;justify-self:start}.structure-readings{gap:4px;margin:0;font-size:13px;display:grid}.structure-readings>div{border:1px solid var(--border);border-radius:6px;padding:7px 9px}.structure-readings div[aria-current=true]{border-color:var(--accent-border);background:var(--accent-light)}.structure-readings dt{font-weight:650}.structure-readings dd{color:var(--muted);flex-wrap:wrap;gap:3px 10px;margin:3px 0 0;display:flex}.structure-readings code{color:var(--ink)}.structure-explainer .field-value-guide{font-size:12px}.structure-explainer .field-value-guide summary{padding:8px 0}.structure-explainer .field-value-guide dl>div{padding:6px 8px}.structure-back{display:none}@media (width<=800px){.frame-structure{gap:12px}.structure-grid{grid-template-columns:minmax(0,1fr);gap:10px}.structure-back{color:var(--accent-deep);text-align:left;justify-self:start;padding:5px 0;display:block}}@media (pointer:coarse){.structure-steps button,.structure-raw button,.structure-example-picker select,.structure-back,.structure-explainer .field-value-guide summary{align-content:center;min-height:44px}.structure-raw button{min-width:44px}}.app{flex-direction:column;min-height:100svh;display:flex}.workspace-panel:not([hidden]){flex-direction:column;flex:1;min-width:0;display:flex}.site-attribution{border-top:1px solid var(--border);color:var(--muted);flex-wrap:wrap;justify-content:space-between;gap:5px 16px;padding:8px clamp(14px,3.5vw,56px);font-size:11px;line-height:1.4;display:flex}.site-attribution a{color:var(--accent-deep);text-underline-offset:3px}.workspace-tabs{border:1px solid var(--border);background:var(--canvas);border-radius:9px;gap:3px;padding:3px;display:flex}.workspace-tabs button{color:var(--muted);white-space:nowrap;background:0 0;border-color:#0000;padding:8px 11px}.workspace-tabs button[aria-selected=true]{border-color:var(--accent-border);background:var(--accent-light);color:var(--accent-deep)}.topbar{border-bottom:1px solid var(--border);background:var(--background);justify-content:space-between;align-items:center;gap:12px;min-height:60px;padding:8px clamp(18px,3.5vw,56px);display:flex}.brand{letter-spacing:-.45px;align-items:center;gap:5px;font-size:17px;font-weight:700;display:flex}.brand strong{color:var(--muted);font-weight:500}main{flex-direction:column;flex:1;gap:14px;width:min(100%,1700px);margin:0 auto;padding:26px clamp(18px,3.5vw,56px) 14px;display:flex}.lab-heading h1{letter-spacing:-.045em;font-size:clamp(26px,3vw,40px);font-weight:660;line-height:1.12}.about-page{gap:16px;max-width:760px;padding-block:clamp(24px,6vw,72px) 28px;line-height:1.55}.about-page p{color:var(--muted)}.about-page a{color:var(--accent-deep);text-underline-offset:4px}.about-page a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.about-links{flex-wrap:wrap;gap:4px 20px;margin:0;padding:0;list-style:none;display:flex}.about-notice{border-top:1px solid var(--border);gap:6px;padding-top:16px;display:grid}.about-notice h2{font-size:16px}.about-notice>a{justify-self:start}.topology{border:1px solid var(--border);background:radial-gradient(circle, var(--grid) 1px, transparent 1px) var(--canvas);background-size:24px 24px;border-radius:14px;flex-direction:column;flex:1;min-width:0;display:flex}.canvas-toolbar{border-bottom:1px solid var(--border);background:var(--paper);border-radius:14px 14px 0 0;justify-content:space-between;align-items:center;gap:6px;padding:6px 12px 6px 16px;display:flex}.simulation-status{flex-wrap:wrap;align-items:center;gap:7px;min-width:0;font-size:12px;font-weight:620;display:flex}.status-dot{background:#8296ab;border-radius:50%;width:7px;height:7px}.status-dot.playing{background:var(--accent)}.cycle-status{border-left:1px solid var(--border-strong);color:var(--muted);font:11px var(--mono);white-space:nowrap;margin-left:6px;padding-left:11px}.text-button{background:0 0;border-color:#0000}.frame-tools{color:var(--muted);white-space:nowrap;padding:8px}.frame-tools span{margin-left:3px}.learning-hint{border-bottom:1px solid var(--border);background:var(--paper);color:var(--muted);padding:9px 16px;font-size:12px;line-height:1.45}.graph-scroll{border-radius:0 0 14px 14px;flex:1;min-width:0;min-height:370px;position:relative;overflow:auto}.topology-graph{position:absolute;inset:0 auto auto 0}.station{width:0;height:0;position:absolute}.graph-edge{transform-origin:0;background:#506e83;height:2px;position:absolute}.graph-cable.disconnected .graph-edge{background:repeating-linear-gradient(to right, var(--warning-border) 0 5px, transparent 5px 10px)}.graph-cable.recovery .graph-edge{background:var(--warning-border)}.station-button{background:0 0;border-color:#0000;flex-direction:column;align-items:center;gap:4px;width:max-content;max-width:168px;padding:0 5px 3px;display:flex;position:absolute;transform:translate(-50%,-39px)}.station-button:hover:enabled{background:0 0;border-color:#0000}.station-icon{--device-symbol-size:44px;border:1px solid var(--border-strong);background:var(--paper);border-radius:16px;flex:none;place-items:center;width:76px;height:76px;display:grid;position:relative;box-shadow:0 5px 16px #070c12a6}.station-controller .station-icon{background:var(--surface)}.station-button:hover .station-icon,.station.current .station-icon{border-color:var(--accent);background:var(--accent-light);box-shadow:0 0 0 4px #66e4cd27}.station.offline .station-icon{border-color:var(--warning-border);border-style:dashed}.station-name{text-overflow:ellipsis;white-space:nowrap;max-width:145px;margin-top:4px;font-size:15px;line-height:1.15;overflow:hidden}.station-label{color:var(--muted);white-space:nowrap;font-size:11px;font-weight:500}.station.offline .station-label,.station.offline .device-symbol{color:var(--warning)}.device-symbol{--symbol-stroke:max(1.5px, .06em);width:1em;height:1em;font-size:var(--device-symbol-size,30px);color:var(--device-symbol-color,var(--accent));flex:none;display:block;position:relative}.device-symbol:before,.device-symbol:after,.device-symbol>span:before,.device-symbol>span:after{content:"";box-sizing:border-box;position:absolute}.symbol-controller:before{border:var(--symbol-stroke) solid currentColor;border-radius:.13em;inset:14% 9%}.symbol-controller:after{height:var(--symbol-stroke);background:currentColor;inset:44% 11% auto}.controller-terminals{background:currentColor;border-radius:.025em;width:.15em;height:.085em;position:absolute;top:62%;left:30%;box-shadow:.25em 0}.symbol-analog{--device-symbol-color:#a4c7ff}.symbol-analog:before,.symbol-analog:after{border:var(--symbol-stroke) solid currentColor;width:44%;height:24%}.symbol-analog:before{border-bottom:0;border-radius:50% 50% 0 0/100% 100% 0 0;bottom:49%;left:9%}.symbol-analog:after{border-top:0;border-radius:0 0 50% 50%/0 0 100% 100%;top:49%;right:9%}.symbol-digital{--device-symbol-color:#cfb8ff}.symbol-digital:before{clip-path:polygon(8% 63%,26% 63%,26% 31%,74% 31%,74% 63%,92% 63%,92% 70%,67% 70%,67% 38%,33% 38%,33% 70%,8% 70%);background:currentColor;inset:0}.symbol-output{--device-symbol-color:#ffd794}.lamp-bulb{border:var(--symbol-stroke) solid currentColor;border-radius:52% 52% 42% 42%;position:absolute;inset:22% 26% 29%}.symbol-output:after{border:var(--symbol-stroke) solid currentColor;border-top:0;border-radius:0 0 .09em .09em;inset:70% 37% 13%}.symbol-output.lit .lamp-bulb{background:currentColor;box-shadow:0 0 .28em #ffc26585}.symbol-output.lit:before,.symbol-output.lit .lamp-bulb:before,.symbol-output.lit .lamp-bulb:after{width:var(--symbol-stroke);background:currentColor;border-radius:.04em;height:.12em}.symbol-output.lit:before{top:3%;left:50%;transform:translate(-50%)}.symbol-output.lit .lamp-bulb:before{top:-.08em;left:-.13em;transform:rotate(-48deg)}.symbol-output.lit .lamp-bulb:after{top:-.08em;right:-.13em;transform:rotate(48deg)}.symbol-junction{--device-symbol-color:#9cdbef}.symbol-junction:before{clip-path:polygon(0 45%,45% 45%,45% 0,100% 0,100% 11%,55% 11%,55% 89%,100% 89%,100% 100%,45% 100%,45% 55%,0 55%);background:currentColor;inset:21% 16%}.symbol-junction:after,.junction-center-branch:after{background:currentColor;border-radius:50%;width:.14em;height:.14em}.symbol-junction:after{top:.43em;left:.09em;box-shadow:.68em -.26em,.68em .26em}.junction-center-branch{height:var(--symbol-stroke);background:currentColor;position:absolute;top:50%;left:50%;right:16%;transform:translateY(-50%)}.junction-center-branch:after{top:50%;right:-.07em;transform:translateY(-50%)}.cable-button{z-index:2;width:94px;min-height:44px;color:var(--accent);background:0 0;border:0;justify-items:center;padding:7px 0 0;display:grid;position:absolute;transform:translate(-50%,-21px)}.cable-button:hover:enabled{background:0 0}.cable-symbol{border:1px solid var(--border-strong);background:var(--canvas);width:26px;height:26px;font:750 17px/1 var(--mono);border-radius:50%;place-items:center;display:grid}.cable-button:hover .cable-symbol{border-color:var(--accent);background:var(--accent-light)}.cable-label{color:var(--muted);margin-top:4px;font-size:10px;font-weight:550}.cable-alert .cable-label{color:var(--warning)}.cable-button.unplugged .cable-symbol{color:var(--warning);border-color:var(--warning-border);background:var(--warning-surface)}.frame-position{z-index:3;position:absolute;transform:translate(-50%,-50%)}.frame-marker{border:1px solid var(--accent);background:var(--accent);color:var(--on-accent);font:650 11px var(--mono);border-radius:20px;align-items:center;gap:6px;padding:5px 8px;display:flex;box-shadow:0 3px 7px #040b17ac}.frame-marker:hover:enabled{background:var(--accent-deep);border-color:var(--accent-deep)}.packet-symbol{border:1px solid;border-radius:2px;width:12px;height:8px;position:relative}.packet-symbol:after{content:"";border-top:1px solid;position:absolute;top:3px;left:2px;right:2px}.packet-direction{font-size:13px}.event-layer{pointer-events:none;position:absolute;inset:0}.event-note{text-align:center;width:max-content;min-width:120px;max-width:166px;color:var(--accent-deep);animation:.18s .47s both note-arrive;position:absolute;transform:translate(-50%,92px)}.event-note strong{color:inherit;font:700 15px/1.3 var(--mono);display:block}.event-note span{color:var(--muted);margin-top:3px;font-size:11px;line-height:1.3;display:block}.event-note.warning strong{color:var(--warning)}.byte-transfer{z-index:4;border:1px solid var(--accent-border);background:var(--accent-light);color:var(--accent-deep);font:700 11px var(--mono);border-radius:5px;padding:3px 6px;animation:.55s .39s both transfer-bytes;position:absolute}@keyframes transfer-bytes{0%{opacity:0;transform:translate(-50%,-50%)}25%{opacity:1}76%{opacity:1}to{opacity:0;transform:translate(-50%,calc(-59px - 50%))}}@keyframes note-arrive{0%{opacity:0}to{opacity:1}}.playback{z-index:5;padding:11px clamp(18px, 4vw, 64px) max(11px, env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--background);align-items:center;gap:12px;display:flex;position:sticky;bottom:0}.playback-buttons{gap:7px;display:flex}.playback-buttons button{white-space:nowrap;min-height:42px}.primary,.primary:hover:enabled{color:var(--on-accent);border-color:var(--accent);background:var(--accent)}.primary:hover:enabled{background:var(--accent-deep);border-color:var(--accent-deep)}.primary span{margin-left:7px}.run-button{min-width:77px}.run-button span{color:var(--accent)}.reset{white-space:nowrap;color:var(--muted);margin-left:auto}.details-sheet{width:min(430px,100%);max-width:none;min-height:100dvh;max-height:100dvh;color:var(--ink);border:0;border-left:1px solid var(--border);background:var(--paper);margin:0;padding:0;position:fixed;inset:0 0 0 auto}.details-sheet::backdrop{background:#060a12b3}.sheet-content{min-height:inherit}.sheet-header{z-index:1;border-bottom:1px solid var(--border);background:var(--paper);justify-content:space-between;align-items:center;gap:8px;padding:15px 22px;display:flex;position:sticky;top:0}.sheet-header h2{letter-spacing:-.5px;font-size:21px}.close-details{width:44px;height:44px;padding:0;font-size:25px;font-weight:400}.sheet-body{padding:20px 24px 28px;font-size:14px}.sheet-body p{color:var(--muted);line-height:1.55}.detail-section{border-top:1px solid var(--border);margin:19px 0;padding-top:17px}.detail-section h3{margin-bottom:8px;font-size:14px}.detail-section summary{font-weight:650}.detail-list{margin:13px 0}.detail-list>div,.detail-counter,.setting{justify-content:space-between;align-items:center;gap:10px;margin:9px 0;display:flex}.detail-list dt{color:var(--muted)}.detail-list dd{text-align:right;margin:0}.detail-actions{flex-wrap:wrap;gap:8px;margin:12px 0;display:flex}.device-value{align-items:center;gap:13px;margin-bottom:15px;display:flex}.device-value .station-icon{--device-symbol-size:32px;border-radius:10px;width:50px;height:50px}.device-value strong{font-size:20px;display:block}.setting small{color:var(--muted);display:block}.byte-strip{gap:7px;margin:11px 0 6px;display:flex}.byte-strip>div{background:var(--surface);border:1px solid var(--border);border-radius:6px;justify-items:center;gap:4px;min-width:49px;padding:7px;display:grid}.byte-strip>.changed{border-color:var(--accent-border);background:var(--accent-light)}.byte-strip span,.byte-map,.detail-footnote{font-size:11px}.byte-strip code{font-size:17px}.event-bytes{margin-top:8px}.history{gap:10px;padding:0;list-style:none;display:grid}.history li{border-bottom:1px solid var(--border);gap:4px;padding:8px 0;display:grid}.history small,.history code{color:var(--muted);font-size:11px}.profile-list{padding-left:17px;line-height:1.9}@media (width<=680px){.topbar{min-height:56px;padding-inline:14px}.lesson-topbar{flex-wrap:wrap;row-gap:6px}.workspace-tabs{order:2;width:100%}.workspace-tabs button{flex:1;min-height:38px}.brand{gap:4px;font-size:14px}main{gap:11px;padding:16px 12px 12px}.lab-heading h1{font-size:27px}.topology{border-radius:12px}.graph-scroll{min-height:420px}.canvas-toolbar{padding:4px 8px}.simulation-status{font-size:11px}.cycle-status{margin-left:0;padding-left:6px;font-size:9px}.frame-tools{padding:6px 4px;font-size:11px}.learning-hint{gap:4px;font-size:10px}.playback{padding:7px 10px max(7px, env(safe-area-inset-bottom));flex-wrap:wrap;justify-content:space-between;gap:4px}.playback-buttons{gap:4px}.playback button{padding:8px;font-size:11px}.playback-buttons button{min-height:44px}.playback .run-button{min-width:60px}.primary span{margin-left:2px}.details-sheet{width:100%;min-height:0;max-height:83dvh;padding-bottom:env(safe-area-inset-bottom);border:0;border-radius:16px 16px 0 0;inset:auto 0 0}.sheet-header{padding:9px 16px}.sheet-body{padding:14px 18px 22px}}@media (prefers-reduced-motion:reduce){.frame-position,.event-note{animation:none}.byte-transfer{display:none}}.editor-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.canvas-actions{flex-wrap:wrap;justify-content:flex-end;gap:3px;display:flex}.design-tools{gap:8px;display:grid}.design-toolbar{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.connect-button{color:var(--accent-deep);border-color:var(--accent-border)}.connect-button[aria-pressed=true]{background:var(--accent-light);border-color:var(--accent)}.design-feedback{border:1px solid var(--accent-border);background:var(--accent-light);border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 10px;display:flex}.design-feedback p{flex:195px}.design-feedback strong{color:var(--accent-deep)}.design-notice{padding:0 2px}.design-feedback p,.design-notice{color:var(--muted);font-size:13px}.inline-warning{color:var(--warning)!important}.design-issues{border:1px solid var(--warning-border);background:var(--warning-surface);border-radius:7px;padding:8px 11px;font-size:13px}.design-issues summary{color:var(--warning);font-weight:650}.design-issues ul{margin:4px 0 0;padding:0;list-style:none}.design-issues li{flex-wrap:wrap;align-items:center;gap:5px 10px;display:flex}.design-issues button{padding:5px 9px}.apply-button{white-space:nowrap;margin-left:auto}.graph-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.graph-ports{z-index:3;gap:3px;min-width:106px;display:grid;position:absolute;top:82px;left:0;transform:translate(-50%)}.graph-port{min-height:44px;padding:5px 7px;font-size:11px}.graph-port span{color:var(--muted)}.graph-port.valid-port{border-color:var(--accent-border);background:var(--accent-light);color:var(--accent-deep)}.graph-port.active-port{border-color:var(--accent);background:var(--accent);color:var(--on-accent)}.graph-port.active-port span{color:var(--on-accent)}.editing .station-button{transform:translate(-50%,-32px)}.editing .station-icon{border-radius:13px;width:62px;height:62px}.station.selected .station-icon{outline:2px solid var(--accent);outline-offset:3px}.station.unconnected .station-icon{border-style:dashed}.station.unconnected .station-label{color:var(--warning)}.editing.wiring .station-button{cursor:pointer}.wiring .station:not(.wire-start,.wire-target) .station-icon{box-shadow:none}.wiring .wire-target .station-icon{border:2px solid var(--accent);background:var(--accent-light)}.wiring .wire-start .station-icon{border-color:var(--accent)}.wiring .station.selected.unconnected:not(.wire-target,.wire-start) .station-icon{outline-color:var(--warning)}.wiring .wire-target .station-label,.wiring .wire-start .station-label{color:var(--accent-deep)}.empty-graph{text-align:center;color:var(--muted);position:absolute;inset:45% 0 auto}.catalog-search,.connect-form label,.rename-form label{gap:5px;font-weight:600;display:grid}.sheet-body input:not([type=checkbox],[type=number]),.sheet-body select{border:1px solid var(--border-strong);background:var(--paper);width:100%;min-width:0;min-height:39px;color:var(--ink);font:inherit;border-radius:6px;padding:7px}.catalog-list,.component-list,.cable-list{padding:0;list-style:none}.catalog-list li{border-bottom:1px solid var(--border);grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:10px 0;display:grid}.catalog-list .station-icon{--device-symbol-size:25px;border-radius:9px;width:39px;height:39px}.catalog-list h3{font-size:14px}.catalog-list p{font-size:12px}.catalog-list button{min-height:44px;padding-inline:9px}.load-starter{padding-left:0}.connect-form{gap:13px;display:grid}.rename-form{align-items:end;gap:8px;display:flex}.rename-form label{flex:1;min-width:0}.move-controls{flex-wrap:wrap;gap:5px;margin-bottom:13px;display:flex}.move-controls span{color:var(--muted);flex-basis:100%}.move-controls button{padding-inline:9px}.delete-button{color:var(--warning);margin-top:9px}.component-list li,.cable-list li{flex-wrap:wrap;align-items:center;gap:5px 8px;padding:7px 0;display:flex}.component-list small{flex-basis:100%}.component-list span,.component-list small,.cable-list small{color:var(--muted);font-size:12px}.cable-list button{text-align:left}.byte-strip{padding-bottom:4px;overflow-x:auto}.event-bytes,.detail-list code,.history code,.sheet-header h2{overflow-wrap:anywhere}.vertical-graph .station-button{text-align:left;grid-template-columns:auto 1fr;gap:3px 10px;padding:0 2px 0 0;display:grid;transform:translate(-24px,-50%)}.vertical-graph .station-icon{--device-symbol-size:32px;border-radius:11px;grid-row:span 2;width:49px;height:49px}.vertical-graph .station-name{align-self:end;max-width:100px;margin-top:0;font-size:14px}.vertical-graph .station-label{align-self:start;font-size:10px}.vertical-graph .station.current .station-label{visibility:hidden}.vertical-graph .cable-button{grid-auto-flow:column;align-items:center;gap:8px;width:max-content;min-width:44px;padding:0 5px 0 7px;transform:translate(-21px,-50%)}.vertical-graph .cable-label{margin-top:0}.vertical-graph .frame-marker{gap:1px;padding:5px 4px;font-size:9px}.vertical-graph .packet-symbol{display:none}.vertical-graph .event-note{text-align:left;transform:translate(35px,2px)}.vertical-graph .event-note strong{font-size:12px}.vertical-graph .event-note span{margin-top:1px;font-size:10px}.vertical-graph .graph-ports{top:25px;left:32px;transform:none}.vertical-graph .byte-transfer{animation-name:transfer-bytes-vertical}@keyframes transfer-bytes-vertical{0%{opacity:0;transform:translate(-50%,-50%)}25%,76%{opacity:1}to{opacity:0;transform:translate(calc(-40px - 50%),-50%)}}@media (width<=680px){.editor-heading{align-items:center}.design-toolbar button{min-height:40px;padding:6px 9px;font-size:12px}.canvas-actions{flex-shrink:0;gap:1px}}.sheet-controls{align-items:center;gap:5px;display:flex}.sheet-controls button{white-space:nowrap}.sheet-controls button:not(.close-details){padding:7px 9px;font-size:11px}.live-sheet{--inspector-width:448px;z-index:8;width:min(var(--inspector-width), 100%);overflow:auto;box-shadow:-8px 0 25px #04070fb3}.live-sheet .sheet-body{padding-top:15px}@media (width>=1080px){.inspector-open #simulator-panel>main,.inspector-open #simulator-panel>.playback,.inspector-open>.topbar,.inspector-open>.site-attribution{padding-right:calc(clamp(18px,4vw,64px) + 448px)}}@media (width<=680px){.live-sheet{max-height:76dvh}.sheet-controls .close-details{width:35px}.live-sheet .sheet-header h2{font-size:17px}.live-sheet .hex-row{grid-template-columns:52px repeat(8,29px)}}.frame-inspector{gap:12px;display:grid}.frame-inspector .detail-section{margin:0;padding-top:11px}.inspector-history-controls{color:var(--muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:5px 9px;font-size:12px;display:flex}.follow{color:var(--ink);align-items:center;gap:6px;font-weight:650;display:flex}.follow input{width:18px;height:18px;margin:3px 1px 3px 0}.inspector-view-buttons,.datagram-picker>div,.change-navigation{flex-wrap:wrap;gap:5px;display:flex}.inspector-view-buttons button,.datagram-picker button,.change-navigation button{min-height:36px;padding:6px 8px;font-size:11px}.inspector-view-buttons button[aria-pressed=true],.datagram-picker button[aria-pressed=true],.event-history button[aria-pressed=true]{border-color:var(--accent-border);background:var(--accent-light);color:var(--accent-deep)}.datagram-picker{color:var(--muted);gap:5px;font-size:12px;display:grid}.inspect-section{border-top:1px solid var(--border);gap:9px;padding:12px 0;display:grid}.inspect-section h3{font-size:15px}.frame-inspector .inspect-muted,.frame-inspector .linked-device{font-size:12px}.wkc-change{background:var(--surface);border-radius:6px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:5px 12px;padding:8px 10px;font-size:12px;display:flex}.wkc-change strong{font:700 15px var(--mono)}.change-list{gap:6px;margin:0;padding:0;list-style:none;display:grid}.change-list li{border:1px solid var(--border);border-radius:8px;padding:7px 9px}.inspect-link{color:var(--accent-deep);text-align:left;background:0 0;border:0;padding:3px 2px;display:inline}.inspect-link:hover:enabled{text-decoration:underline}.change-values{align-items:center;gap:9px;margin:4px 0;display:flex}.change-values>span:first-child,.change-values>span:last-child{gap:2px;display:grid}.change-values code{font-size:14px}.change-list small,.memory-table small,.decoded-fields small{color:var(--muted);font-size:11px;display:block}.inspect-label{gap:4px;font-size:12px;font-weight:650;display:grid}.frame-inspector details .inspect-label{margin-top:8px}.decoded-fields,.memory-table{gap:5px;margin:0;display:grid}.decoded-fields>div,.memory-table>div{border:1px solid var(--border);border-radius:6px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:3px 8px;padding:5px 6px;display:grid}.decoded-fields dd,.memory-table dd{overflow-wrap:anywhere;margin:0}.decoded-fields dd{align-self:center;font-size:12px}.decoded-fields .field-explanation{color:var(--muted);grid-column:1/-1}.decoded-fields .mapped-field,.memory-table .mapped-field{background:var(--accent-light);border-color:var(--accent-border)}.hex-scroll{max-height:295px;padding:4px;overflow:auto}.hex-row{grid-template-columns:55px repeat(8,32px);align-items:center;gap:2px;width:max-content;display:grid}.hex-row>span{font:11px var(--mono);color:var(--muted)}.hex-row button{min-height:32px;font:12px var(--mono);border-radius:5px;padding:0}.hex-row .changed{background:var(--warning-surface);border-color:var(--warning-border)}.hex-row .mapped{box-shadow:inset 0 -3px var(--accent)}.hex-row .selected-byte{background:var(--accent);color:var(--on-accent)}.hex-row .selected-byte:hover:enabled{background:var(--accent-deep);color:var(--on-accent)}.hex-legend{flex-wrap:wrap;gap:5px 12px;font-size:11px;display:flex}.hex-legend span{border-bottom:3px solid var(--warning-border)}.hex-legend span:nth-child(2){border-color:var(--accent)}.hex-legend span:nth-child(3){border-color:var(--accent-deep)}.field-tip{border-left:3px solid var(--accent-border);background:var(--surface);padding:8px;font-size:12px}.field-value-guide{color:var(--ink);margin-top:3px;font-size:11px;line-height:1.4}.field-value-guide summary{color:var(--accent-deep);padding:4px 0;font-weight:650}.field-guide-context{color:var(--accent-deep);font-weight:650}.header-bit-guide{margin:3px 0 0}.header-bit-guide>div{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;margin-top:3px;display:grid}.header-bit-guide span{border:1px solid var(--border);background:var(--canvas);text-align:center;border-radius:4px;justify-items:center;padding:3px;display:grid}.header-bit-guide span code{letter-spacing:.08em;font-size:13px}.header-bit-guide .reserved-bit{border-color:var(--accent-border);background:var(--accent-light);color:var(--accent-deep)}.field-value-guide dl{gap:2px;margin:4px 0;display:grid}.field-value-guide dl>div{background:var(--canvas);border-radius:4px;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:6px;padding:4px 5px;display:grid}.field-value-guide dl>[aria-current]{background:var(--accent-light)}.field-value-guide dt{overflow-wrap:anywhere;font-weight:650}.field-value-guide dd{font-size:inherit;color:var(--muted);margin:0}.field-guide-note{color:var(--muted)}.event-history .history{max-height:240px;padding:3px;overflow:auto}.event-history .history li{border:0;padding:0}.event-history button{text-align:left;gap:3px;padding:6px;display:grid}.lab-menu,.editor-tool-menu{position:relative}.lab-menu>summary,.editor-tool-menu>summary,.run-resources summary{color:var(--muted);border:1px solid #0000;border-radius:8px;padding:8px 10px;font-size:13px;font-weight:650}.lab-menu>summary{border-color:var(--border)}.lab-menu>summary:hover,.editor-tool-menu>summary:hover,.run-resources summary:hover{background:var(--surface);color:var(--ink)}.lesson-switcher,.editor-tool-options{z-index:6;border:1px solid var(--border-strong);background:var(--paper);border-radius:10px;gap:4px;width:max-content;min-width:155px;padding:6px;display:grid;position:absolute;top:calc(100% + 6px);box-shadow:0 10px 25px #04070fb3}.lesson-switcher{right:0}.editor-tool-options{left:0}.lesson-switcher button,.editor-tool-options button{text-align:left;background:0 0;padding:8px 10px}.editor-tool-options select{width:100%}.lesson-switcher button[aria-pressed=true]{background:var(--accent-light);color:var(--accent-deep);border-color:var(--accent-border)}.startup-lesson{background:var(--paper);border:1px solid var(--border);border-radius:12px;gap:11px;min-width:0;padding:clamp(13px,2.15vw,25px);display:grid}.startup-heading,.startup-failure{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.startup-heading h2{font-size:19px}.startup-lesson p{color:var(--muted);font-size:13px;line-height:1.4}.startup-buttons{flex-wrap:wrap;gap:6px;display:flex}.startup-playback,.startup-speed{align-items:center}.startup-speed{color:var(--muted);gap:7px;font-size:12px;font-weight:650;display:flex}.startup-speed select{border:1px solid var(--border-strong);background:var(--canvas);min-height:37px;color:var(--ink);border-radius:8px;padding:6px 8px}.startup-event{flex-wrap:wrap;align-items:center;gap:4px 10px;display:flex}.startup-event button{color:var(--accent-deep);text-align:left;padding:5px 7px}.startup-complete{color:var(--accent-deep);background:var(--accent-light);border-radius:7px;padding:7px 10px}.startup-checklist,.startup-history{margin:0;padding:0;list-style:none}.startup-checklist{grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:7px;display:grid}.startup-checklist li{border:1px solid var(--border);border-radius:8px;min-width:0;padding:9px}.startup-checklist li.checked{border-color:var(--accent-border);background:var(--accent-light)}.startup-checklist li.rejected,.startup-failure{color:var(--warning);border-color:var(--warning-border);background:var(--warning-surface)}.startup-checklist li>div{justify-content:space-between;gap:4px;font-size:13px;display:flex}.startup-checklist li span{color:var(--muted);font-size:11px}.startup-checklist p{margin-top:5px;font-size:12px}.startup-failure{border:1px solid var(--warning-border);border-radius:8px;padding:10px}.startup-failure p{margin-top:3px}.startup-statuses{grid-template-columns:repeat(auto-fit,minmax(144px,1fr));gap:6px;display:grid}.startup-statuses button{text-align:left;gap:4px;display:grid}.startup-statuses span,.startup-statuses small{color:var(--muted);font-size:11px}.startup-experiment{border-top:1px solid var(--border);padding-top:8px}.startup-experiment summary{font-size:13px;font-weight:650}.startup-experiment p,.startup-experiment .startup-buttons,.startup-experiment>button{margin-top:7px}.startup-history{max-height:290px;margin-top:7px;overflow:auto}.startup-history li{border-top:1px solid var(--border);grid-template-columns:61px minmax(0,1fr) auto;align-items:center;gap:6px;padding:6px 0;font-size:12px;display:grid}.startup-history li.failure{color:var(--warning)}.startup-history button{padding:5px 7px;font-size:11px}.startup-history-code{grid-column:2/-1}@media (width<=480px){.design-toolbar{position:relative}.editor-tool-menu{position:static}.editor-tool-options{left:0}.startup-checklist{grid-template-columns:repeat(2,minmax(0,1fr))}.startup-statuses{grid-template-columns:1fr}.startup-history li{grid-template-columns:54px minmax(0,1fr)}.startup-history li button{grid-column:2;justify-self:start}}.target-faults{gap:8px;display:grid}.target-faults>div>button{margin-top:5px}.target-faults summary,.fault-advanced summary{color:var(--muted);font-size:13px;font-weight:650}.fault-schedule{flex-wrap:wrap;align-items:end;gap:6px;margin:8px 0;display:flex}.fault-schedule label{gap:4px;font-size:12px;display:grid}.fault-summary{justify-items:start;gap:6px;font-size:13px;display:grid}.fault-summary>section,.fault-advanced[open]{border:1px solid var(--border);background:var(--paper);border-radius:8px;width:100%;padding:8px 10px}.run-resources{flex-wrap:wrap;align-items:flex-start;gap:4px 8px;display:flex}.run-resources>details[open]{flex:100%}.run-resources .fault-advanced:not([open]) summary{padding-inline:8px}.fault-row{flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:5px;display:flex}.fault-row button{padding:5px 8px;font-size:11px}.fault-log{max-height:260px;margin:8px 0 0;padding:0;list-style:none;overflow:auto}.fault-log li{border-top:1px solid var(--border);padding:5px 0}.fault-log small{color:var(--muted)}.fault-log p,.fault-advanced p{color:var(--muted);margin-top:4px}.frame-validity{border-left:3px solid var(--accent-border);background:var(--surface);padding:7px 9px;font-size:12px}.frame-validity.invalid{border-color:var(--warning-border);background:var(--warning-surface)}.input-quality,.challenge-evidence{gap:5px;margin:0;padding:0;list-style:none;display:grid}.input-quality li,.challenge-evidence li{border:1px solid var(--border);border-radius:6px;gap:3px;padding:6px 8px;display:grid}.input-quality span,.challenge-evidence span{color:var(--muted);font-size:12px}.challenge .startup-buttons span{color:var(--muted);align-self:center;font-size:12px}.workspace-modes,.palette-heading,.palette-items,.insertion-prompt,.capture-picker{flex-wrap:wrap;align-items:center;gap:7px;display:flex}.workspace-modes{border:1px solid var(--border);background:var(--canvas);border-radius:10px;flex-shrink:0;gap:3px;padding:3px}.workspace-modes button{color:var(--muted);background:0 0;border-color:#0000;padding:8px 11px}.editor-tool-options button[aria-pressed=true]{background:var(--accent-light);color:var(--accent-deep)}.workspace-modes button[aria-pressed=true],.capture-picker button[aria-pressed=true],.frame-rows button[aria-pressed=true]{border-color:var(--accent-border);background:var(--accent-light);color:var(--accent-deep)}.template-picker select,.palette-heading input{border:1px solid var(--border);background:var(--paper);max-width:100%;min-height:36px;color:var(--ink);font:inherit;border-radius:8px;padding:6px 9px;font-size:13px}.canvas-palette,.insertion-prompt,.frame-list[open]{border:1px solid var(--border);background:var(--paper);border-radius:9px;padding:10px 12px}.frame-list summary span{color:var(--muted);font-family:var(--mono);margin-left:4px;font-weight:500}.frame-list[open]>summary{padding:2px 0 6px}.palette-heading{justify-content:space-between;margin-bottom:8px}.palette-heading label{flex-wrap:wrap;align-items:center;gap:7px;font-size:13px;font-weight:650;display:flex}.palette-items button{align-items:center;gap:8px;display:inline-flex}.palette-items button[draggable=true]{cursor:grab}.palette-items .device-symbol{--device-symbol-size:24px}.palette-help{color:var(--muted);margin-top:8px;font-size:13px}.palette-help summary{width:fit-content;padding:4px 0}.palette-help dl{gap:5px;margin:5px 0 0;display:grid}.palette-help dt{color:var(--ink);font-weight:650}.palette-help dd{margin:0}.insertion-prompt{border-color:var(--accent-border);font-size:13px}.insertion-prompt p{flex:230px}.editing .station-button,.editing .graph-port{touch-action:none;-webkit-user-select:none;user-select:none}.editing .station-button{cursor:grab}.editing .graph-port{cursor:crosshair}.editing .station-button:active,.palette-items button:active{cursor:grabbing}.graph-edge.wire-preview,.insert-target .graph-edge{background:repeating-linear-gradient(to right, var(--accent) 0 7px, transparent 7px 10px);pointer-events:none;height:3px}.insert-target .cable-symbol{outline:3px solid var(--accent);outline-offset:2px}.frame-list-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:7px;display:flex}.frame-list p{color:var(--muted);margin-top:6px;font-size:12px}.frame-list-heading button{margin-right:4px;padding:4px 8px;font-size:11px}.frame-rows{gap:6px;margin:8px -2px -2px;padding:3px;display:flex;overflow-x:auto}.frame-rows button{text-align:left;flex-shrink:0;gap:3px;min-width:112px;padding:7px 9px;display:grid}.frame-rows span{color:var(--muted);font-size:11px;font-weight:500}.capture-picker{margin-top:1px}.capture-picker strong{margin-right:auto}.capture-picker button{padding:6px 10px}@media (width<=680px){.editor-heading{flex-wrap:wrap}.workspace-modes button,.palette-heading button,.palette-items button{padding:7px 8px;font-size:11px}.palette-items{gap:5px}}.graph-ports{grid-template-columns:repeat(2,minmax(0,1fr));width:156px;min-width:0}.station-controller .graph-ports{grid-template-columns:1fr;width:80px}.graph-port{padding-inline:3px}.vertical-graph .graph-ports{width:119px}.vertical-graph .station-controller .graph-ports{width:72px}.frame-preview{--changed-ink:#ffda8b;--changed-fill:#49361b;z-index:20;border:1px solid var(--border-strong);background:var(--paper);width:min(366px,100vw - 20px);color:var(--ink);border-radius:10px;padding:8px 10px;font-size:12px;position:fixed;top:10px;left:10px;box-shadow:0 8px 26px #04070fbf}.frame-preview:after{content:"";left:var(--frame-pointer,50%);border-right:1px solid var(--border-strong);border-bottom:1px solid var(--border-strong);background:var(--paper);pointer-events:none;width:10px;height:10px;position:absolute;top:100%;transform:translate(-50%,-50%)rotate(45deg)}.frame-preview[data-placement=below]:after{top:0;transform:translate(-50%,-50%)rotate(225deg)}.frame-preview-heading{align-items:center;gap:7px;display:flex}.frame-preview-heading strong{font-size:14px}.frame-preview-heading span{color:var(--muted)}.frame-preview .frame-preview-close{border:0;min-height:28px;margin-left:auto;padding:0 6px;font-size:18px}.frame-preview-hex{overscroll-behavior:contain;gap:5px;max-height:min(156px,33dvh);padding:4px 3px 4px 0;display:grid;overflow:auto}.frame-preview-hex h3{color:var(--muted);margin-bottom:3px;font-size:10px}.frame-preview-fields{flex-wrap:wrap;gap:3px;display:flex}.frame-preview .frame-preview-field{background:var(--surface);border-color:var(--border-strong);max-width:100%;font:11px/1.3 var(--mono);text-align:left;border-radius:4px;flex-wrap:wrap;gap:2px 4px;padding:4px 5px;display:flex}.frame-preview .frame-preview-field:hover,.frame-preview .frame-preview-field[aria-pressed=true]{background:var(--accent-light);border-color:var(--accent-border);color:var(--accent-deep)}.frame-preview-byte-changed{background:var(--changed-fill);color:var(--changed-ink);box-shadow:0 0 0 1px var(--changed-fill);text-underline-offset:2px;border-radius:2px;font-weight:750;text-decoration:underline}.frame-preview-explanation{overscroll-behavior:contain;scrollbar-gutter:stable;border-left:2px solid var(--accent-border);background:var(--surface);height:clamp(72px,17dvh,132px);margin-top:3px;padding:5px 7px;line-height:1.35;overflow:auto}.frame-preview-explanation small{color:var(--muted);margin-left:6px}.frame-preview-explanation p{margin-top:2px}.frame-preview-change-title{color:var(--changed-ink)}.frame-preview-changes{gap:5px;margin:4px 0 0;padding:0;list-style:none;display:grid}.frame-preview-changes li{flex-wrap:wrap;align-items:baseline;gap:0 8px;display:flex}.frame-preview-changes code{color:var(--changed-ink);white-space:normal}.frame-preview-changes li small{flex-basis:100%;margin-left:0}.frame-preview-changes li strong{font-weight:650}.frame-preview footer{justify-content:flex-end;margin-top:5px;display:flex}.frame-preview footer button{padding:4px 7px;font-size:11px}@media (pointer:coarse){.frame-preview .frame-preview-field{align-items:center;min-height:30px}.design-toolbar button,.canvas-actions button,.lab-menu>summary,.editor-tool-menu>summary,.workspace-tabs button,.startup-playback button,.startup-speed select,.startup-event button{min-height:44px}.lab-menu>summary,.editor-tool-menu>summary{align-content:center}}
