.dhs-app{--bg:#f5f7fb;--panel:#fff;--border:#dfe4ec;--text:#172033;--muted:#667085;--accent:#3157d5;--accent-soft:#eef2ff;--high:#16a34a;--low:#94a3b8;--danger:#b42318;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg);border:1px solid var(--border);min-height:760px;overflow:hidden}.dhs-app *{box-sizing:border-box}.dhs-app [hidden]{display:none!important}.dhs-eyebrow{display:block;font-size:11px;font-weight:800;letter-spacing:.14em;color:var(--accent);margin-bottom:10px}.dhs-btn,.dhs-link-btn{appearance:none;border:1px solid var(--border);background:#fff;color:var(--text);padding:9px 13px;border-radius:7px;font-weight:700;cursor:pointer}.dhs-btn:hover{border-color:#aeb8c8;background:#fafbfc}.dhs-btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}.dhs-btn-danger{color:var(--danger)}.dhs-link-btn{border:0;background:transparent;padding:4px;color:var(--muted)}
.dhs-home{min-height:760px;padding:72px 7%;display:flex;flex-direction:column;justify-content:center;background:radial-gradient(circle at 80% 10%,#eef2ff 0,transparent 34%),linear-gradient(180deg,#fff 0,#f6f8fc 100%)}.dhs-home-hero{width:100%;max-width:1180px;margin-left:auto;margin-right:auto}.dhs-home-hero h2{font-size:clamp(38px,6vw,72px);line-height:1.02;letter-spacing:-.045em;margin:0 0 22px}.dhs-home-hero p{font-size:19px;line-height:1.6;color:var(--muted);max-width:720px}.dhs-home-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:48px auto 0;width:100%;max-width:1180px}.dhs-home-card{min-height:180px;text-align:left;padding:24px;border:1px solid var(--border);border-radius:12px;background:#fff;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;box-shadow:0 10px 30px rgba(28,39,60,.05)}.dhs-home-card:hover{transform:translateY(-2px);border-color:#b6c2e6}.dhs-home-card.is-primary{background:var(--accent);color:#fff;border-color:var(--accent)}.dhs-home-icon{font-size:12px;font-weight:900;letter-spacing:.12em;opacity:.75;margin-bottom:auto}.dhs-home-card strong{font-size:21px;margin-bottom:7px}.dhs-home-card small{font-size:14px;opacity:.75}.dhs-home-footer{width:100%;max-width:1180px;margin:38px auto 0;color:var(--muted);font-size:12px}
.dhs-library{padding:42px;background:#f7f8fb;min-height:760px}.dhs-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:30px}.dhs-section-head h2{font-size:36px;letter-spacing:-.03em;margin:0 0 8px}.dhs-section-head p{color:var(--muted);max-width:760px;margin:0}.dhs-example-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.dhs-example-card{border:1px solid var(--border);background:#fff;border-radius:10px;overflow:hidden;display:flex;flex-direction:column;min-height:310px}.dhs-example-preview{height:105px;display:grid;place-items:center;background:linear-gradient(135deg,#eef2ff,#f8fafc);border-bottom:1px solid var(--border)}.dhs-example-preview span{font-size:25px;font-weight:900;color:var(--accent);letter-spacing:.05em}.dhs-example-content{padding:20px;display:flex;flex:1;flex-direction:column}.dhs-example-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase}.dhs-example-card h3{font-size:20px;margin:14px 0 8px}.dhs-example-card p{font-size:14px;line-height:1.5;color:var(--muted);margin:0 0 18px}.dhs-example-actions{display:flex;gap:8px;margin-top:auto}
.dhs-lesson{display:grid;grid-template-columns:360px minmax(0,1fr);min-height:760px;background:#fff}.dhs-lesson-sidebar{padding:34px;border-right:1px solid var(--border)}.dhs-lesson-sidebar h2{font-size:30px;letter-spacing:-.03em;margin:6px 0 20px}.dhs-progress{height:5px;background:#edf0f5;border-radius:10px;overflow:hidden;margin-bottom:32px}.dhs-progress span{display:block;height:100%;background:var(--accent);transition:width .2s}.dhs-lesson-sidebar [data-lesson-copy]{font-size:15px;line-height:1.65}.dhs-lesson-sidebar [data-lesson-copy] h3{font-size:21px;margin-top:0}.dhs-success{padding:14px;background:#edfdf3;border:1px solid #b7ebc6;border-radius:8px;color:#126b31;font-weight:700}.dhs-lesson-actions{display:flex;justify-content:space-between;gap:10px;margin-top:30px}.dhs-lesson-stage{min-width:0;background:#eef1f5;display:flex;align-items:center}.dhs-workspace-wrap.is-lesson{width:100%}.dhs-workspace-wrap.is-lesson .dhs-statusbar{display:flex}
.dhs-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 16px;background:#fff;border-bottom:1px solid var(--border)}.dhs-brand{display:flex;align-items:center;gap:10px}.dhs-brand strong{font-size:15px}.dhs-brand span{font-size:12px;color:var(--muted)}.dhs-actions{display:flex;gap:8px;flex-wrap:wrap}.dhs-layout{display:grid;grid-template-columns:210px minmax(0,1fr) 270px;min-height:700px}.dhs-palette,.dhs-inspector{background:#fff;padding:16px}.dhs-palette{border-right:1px solid var(--border)}.dhs-inspector{border-left:1px solid var(--border)}.dhs-palette h3,.dhs-inspector h3{margin:0 0 8px;font-size:15px}.dhs-inspector h2{font-size:24px;margin:5px 0 10px}.dhs-inspector p{font-size:13px;line-height:1.5;color:var(--muted)}.dhs-help,.dhs-muted{font-size:13px;color:var(--muted)}.dhs-component-list{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:14px}.dhs-palette-item{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:9px;border:1px solid var(--border);border-radius:6px;background:#fff;cursor:grab;text-align:left}.dhs-palette-item:hover{border-color:var(--accent);box-shadow:0 0 0 2px rgba(49,87,213,.08)}.dhs-palette-symbol{font-size:12px;font-weight:900}.dhs-palette-name{font-size:10px;color:var(--muted)}.dhs-instructions{margin-top:20px;padding-top:15px;border-top:1px solid var(--border);font-size:12px;color:var(--muted);line-height:1.45}.dhs-workspace-wrap{position:relative;min-width:0;background:#eef1f5;overflow:hidden}.dhs-workspace{display:block;width:100%;height:660px;touch-action:none;user-select:none}.dhs-grid-small-path{fill:none;stroke:#e7eaf0;stroke-width:1}.dhs-grid-path{fill:none;stroke:#d7dce5;stroke-width:1.2}.dhs-statusbar{height:40px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);background:#fff;border-top:1px solid var(--border)}.dhs-node{cursor:move}.dhs-node-body{fill:#fff;stroke:#aeb7c4;stroke-width:1.5;filter:drop-shadow(0 4px 5px rgba(0,0,0,.12))}.dhs-node.is-selected .dhs-node-body{stroke:var(--accent);stroke-width:2.5}.dhs-node-title{font-size:14px;font-weight:900;fill:#18202a;pointer-events:none}.dhs-node-subtitle{font-size:10px;fill:#687386;pointer-events:none}.dhs-port{stroke:#fff;stroke-width:2;cursor:crosshair}.dhs-port.input{fill:#64748b}.dhs-port.output{fill:var(--accent)}.dhs-port.is-pending{stroke:#f59e0b;stroke-width:4}.dhs-wire{fill:none;stroke:var(--low);stroke-width:4;cursor:pointer;pointer-events:stroke}.dhs-wire.is-high{stroke:var(--high)}.dhs-wire:hover{stroke-width:7}.dhs-led-ring{fill:#e5e7eb;stroke:#9ca3af;stroke-width:2}.dhs-led-light{fill:#9ca3af}.dhs-led-light.is-high{fill:#22c55e;filter:drop-shadow(0 0 8px rgba(34,197,94,.8))}.dhs-input-toggle{fill:#e5e7eb;stroke:#9ca3af;stroke-width:1.5}.dhs-input-toggle.is-high{fill:#22c55e;stroke:#15803d}.dhs-inspector-grid{display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px 0;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4;font-size:13px}.dhs-inspector-grid span{color:var(--muted)}.dhs-truth-table{margin-top:18px}.dhs-truth-table table{width:100%;border-collapse:collapse;font-size:12px}.dhs-truth-table th,.dhs-truth-table td{padding:6px;border:1px solid var(--border);text-align:center}.dhs-truth-table th{background:#f8fafc}
@media(max-width:1050px){.dhs-example-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dhs-layout{grid-template-columns:180px minmax(0,1fr)}.dhs-inspector{grid-column:1/-1;border-left:0;border-top:1px solid var(--border)}.dhs-lesson{grid-template-columns:310px minmax(0,1fr)}}
@media(max-width:760px){.dhs-home{padding:42px 22px}.dhs-home-actions,.dhs-example-grid{grid-template-columns:1fr}.dhs-home-card{min-height:135px}.dhs-library{padding:24px 16px}.dhs-section-head{flex-direction:column}.dhs-lesson{display:block}.dhs-lesson-sidebar{border-right:0;border-bottom:1px solid var(--border)}.dhs-toolbar{align-items:flex-start;flex-direction:column}.dhs-layout{display:block}.dhs-palette{border-right:0;border-bottom:1px solid var(--border)}.dhs-component-list{grid-template-columns:repeat(3,minmax(0,1fr))}.dhs-workspace{height:520px}.dhs-statusbar span:last-child{display:none}}

/* 0.2.1 Workspace Edition */
.dhs-app{position:relative;z-index:100;width:100%;max-width:none;margin:0;border-left:0;border-right:0;min-height:calc(100vh - 40px);background:#f3f6fa;isolation:isolate}
.dhs-studio{min-height:calc(100vh - 40px)}
.dhs-toolbar{position:sticky;top:0;z-index:20;padding:14px 24px;box-shadow:0 8px 24px rgba(15,23,42,.06)}
.dhs-layout{grid-template-columns:240px minmax(620px,1fr) 320px;min-height:calc(100vh - 108px)}
.dhs-workspace{height:calc(100vh - 150px);min-height:680px}
.dhs-palette,.dhs-inspector{padding:22px}
.dhs-component-list{grid-template-columns:1fr;gap:9px}
.dhs-palette-item{min-height:58px;padding:11px 13px;border-radius:10px;background:linear-gradient(180deg,#fff,#fbfcfe)}
.dhs-palette-symbol{font-size:13px}.dhs-palette-name{font-size:11px}
.dhs-node-body{fill:#fff;stroke:#8390a5;stroke-width:2;filter:drop-shadow(0 8px 12px rgba(15,23,42,.14))}
.dhs-node-title{font-size:16px}.dhs-node-subtitle{font-size:11px}
.dhs-wire{stroke-width:5}.dhs-wire.is-high{stroke:#16a34a;filter:drop-shadow(0 0 4px rgba(22,163,74,.45))}
.dhs-gate-fill{fill:#fff;stroke:#617086;stroke-width:3;filter:drop-shadow(0 8px 12px rgba(15,23,42,.13))}
.dhs-gate-label{font-size:15px;font-weight:900;fill:#172033;pointer-events:none}
.dhs-gate-bubble{fill:#fff;stroke:#617086;stroke-width:3}
.dhs-app.is-fullscreen{position:fixed;inset:0;z-index:999999;width:100vw;height:100vh;margin:0;background:#f3f6fa}
.dhs-app.is-fullscreen .dhs-workspace{height:calc(100vh - 102px);min-height:0}
.dhs-app.is-fullscreen .dhs-layout{min-height:calc(100vh - 64px)}
body.dhs-no-scroll{overflow:hidden}
@media(max-width:1200px){.dhs-layout{grid-template-columns:210px minmax(520px,1fr) 280px}.dhs-palette,.dhs-inspector{padding:16px}}
@media(max-width:900px){.dhs-app{width:100%;margin-left:0;margin-right:0}.dhs-layout{grid-template-columns:190px minmax(520px,1fr)}.dhs-inspector{grid-column:1/-1}.dhs-workspace{min-height:600px}}

/* 0.2.2 Wide Screen Fix */
.dhs-host-overflow{overflow:visible!important}
.dhs-app[data-dhs-viewport-fit="1"]{box-shadow:0 18px 50px rgba(15,23,42,.08)}
.dhs-home{position:relative;z-index:2}
.dhs-library,.dhs-lesson,.dhs-studio{position:relative;z-index:2}
@media(min-width:1500px){.dhs-home{padding-left:clamp(48px,6vw,120px);padding-right:clamp(48px,6vw,120px)}.dhs-library{padding-left:clamp(48px,6vw,120px);padding-right:clamp(48px,6vw,120px)}.dhs-example-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* 0.2.3 Exact Viewport Alignment */
body.dhs-page-active{overflow-x:hidden}
.dhs-app[data-dhs-viewport-fit="1"]{position:relative!important;left:0!important;margin-left:0!important;margin-right:0!important;max-width:none!important;z-index:9999;background:#f3f6fa}
.dhs-app[data-dhs-viewport-fit="1"] .dhs-home{overflow:hidden}
@media(min-width:1400px){
  .dhs-home{padding-top:64px;padding-bottom:64px}
  .dhs-home-hero,.dhs-home-actions,.dhs-home-footer{max-width:1320px}
  .dhs-home-actions{grid-template-columns:repeat(3,minmax(280px,1fr))}
}

/* 0.3.0 WordPress Integration */
.dhs-app:not(.dhs-mode-full){width:100%;min-height:0;margin:28px 0;border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 34px rgba(15,23,42,.08);overflow:hidden}
.dhs-app:not(.dhs-mode-full) .dhs-studio{min-height:0}
.dhs-app:not(.dhs-mode-full) .dhs-toolbar{position:relative;top:auto;padding:11px 14px;box-shadow:none}
.dhs-app:not(.dhs-mode-full) .dhs-layout{min-height:0}
.dhs-app:not(.dhs-mode-full) .dhs-workspace{height:var(--dhs-embed-height,620px);min-height:420px}
.dhs-app:not(.dhs-mode-full) .dhs-btn[data-action="fullscreen"]{display:none}
.dhs-mode-example .dhs-palette,.dhs-mode-example .dhs-inspector{display:none}
.dhs-mode-example .dhs-layout{display:block}
.dhs-mode-example .dhs-actions [data-open="examples"],
.dhs-mode-example .dhs-actions [data-action="save"],
.dhs-mode-example .dhs-actions [data-action="load"],
.dhs-mode-example .dhs-actions [data-action="delete"],
.dhs-mode-example .dhs-actions [data-action="clear"]{display:none}
.dhs-mode-example .dhs-brand .dhs-link-btn{display:none}
.dhs-mode-example .dhs-workspace{height:var(--dhs-embed-height,520px);min-height:360px}
.dhs-mode-example .dhs-statusbar{height:36px}
.dhs-mode-sandbox .dhs-toolbar [data-open="home"],.dhs-mode-sandbox .dhs-brand .dhs-link-btn{display:none}
.dhs-mode-sandbox .dhs-layout{grid-template-columns:210px minmax(0,1fr) 270px}
.dhs-mode-lesson .dhs-lesson{min-height:620px}
.dhs-mode-lesson .dhs-lesson-sidebar .dhs-link-btn{display:none}
.dhs-mode-lesson .dhs-workspace{height:620px;min-height:520px}
@media(max-width:900px){.dhs-mode-sandbox .dhs-layout{grid-template-columns:180px minmax(480px,1fr)}.dhs-mode-sandbox .dhs-inspector{grid-column:1/-1}}
@media(max-width:760px){.dhs-app:not(.dhs-mode-full){border-radius:8px;margin:18px 0}.dhs-mode-sandbox .dhs-layout{display:block}.dhs-mode-example .dhs-workspace{min-height:320px}.dhs-mode-lesson .dhs-workspace{height:500px;min-height:420px}}

/* 0.4.0 editor workflow */
.dhs-actions{flex-wrap:wrap}
.dhs-zoom-controls{display:inline-flex;gap:4px;padding:3px;border:1px solid var(--dhs-border,#dbe2ea);border-radius:10px;background:rgba(255,255,255,.65)}
.dhs-zoom-controls .dhs-btn{min-width:34px;padding-inline:9px}
.dhs-zoom-label{min-width:58px!important;font-variant-numeric:tabular-nums}
.dhs-btn:disabled{opacity:.42;cursor:not-allowed;filter:grayscale(1)}
@media (max-width:900px){.dhs-zoom-controls{display:none}}

/* 0.5.0 Foundations */
.dhs-lesson-subtitle{margin:0 0 12px;color:var(--dhs-muted,#667085);font-size:13px}.dhs-course-progress{font-size:12px;font-weight:700;margin:8px 0;color:#475467}.dhs-lesson-list{display:grid;gap:5px;max-height:220px;overflow:auto;margin:12px 0;padding-right:4px}.dhs-lesson-item{display:grid;grid-template-columns:32px 1fr;align-items:center;gap:8px;width:100%;border:1px solid #e4e7ec;background:#fff;border-radius:8px;padding:7px 9px;text-align:left;cursor:pointer}.dhs-lesson-item span{font-size:11px;color:#667085}.dhs-lesson-item strong{font-size:12px}.dhs-lesson-item.is-active{border-color:#6172f3;background:#eef4ff}.dhs-lesson-item.is-complete strong:after{content:' ✓';color:#079455}.dhs-mode-lesson .dhs-lesson-list{display:none}@media(max-width:900px){.dhs-lesson-list{max-height:150px}.dhs-lesson-sidebar{overflow:auto}}


/* 0.7.0 Sequential Logic Edition */
.dhs-workspace{height:calc(100vh - 118px);min-height:820px}
.dhs-workspace-wrap{min-height:860px}
.dhs-palette,.dhs-inspector{max-height:calc(100vh - 82px);overflow:auto}
.dhs-mode-example .dhs-workspace{height:var(--dhs-embed-height,760px);min-height:640px}
.dhs-mode-sandbox .dhs-workspace{height:var(--dhs-embed-height,820px);min-height:700px}
.dhs-mode-lesson .dhs-workspace{height:760px;min-height:680px}
.dhs-palette-item[data-component-type="CLOCK"],.dhs-palette-item[data-component-type="D_FF"],.dhs-palette-item[data-component-type="T_FF"],.dhs-palette-item[data-component-type="SR_LATCH"],.dhs-palette-item[data-component-type="REGISTER4"],.dhs-palette-item[data-component-type="COUNTER4"],.dhs-palette-item[data-component-type="SHIFT4"]{border-left:4px solid #6172f3}
@media(max-width:760px){.dhs-workspace{height:620px;min-height:560px}.dhs-workspace-wrap{min-height:600px}.dhs-palette,.dhs-inspector{max-height:none}}


/* 0.8.0 Canvas & Lesson UX */
.dhs-workspace{height:calc(100vh - 104px);min-height:920px}
.dhs-workspace-wrap{min-height:960px;background:#f4f7fb}
.dhs-mode-example .dhs-workspace{height:var(--dhs-embed-height,860px);min-height:760px}
.dhs-mode-sandbox .dhs-workspace{height:var(--dhs-embed-height,920px);min-height:800px}
.dhs-mode-lesson .dhs-lesson{grid-template-columns:minmax(330px,390px) minmax(0,1fr);align-items:stretch;min-height:1040px}
.dhs-mode-lesson .dhs-lesson-sidebar{position:relative;z-index:3;max-height:1040px;overflow:auto;background:#fff}
.dhs-lesson-stage-shell{min-width:0;background:#f4f7fb;border-left:1px solid var(--border)}
.dhs-lesson-canvas-toolbar{height:58px;padding:9px 16px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:5}
.dhs-lesson-canvas-title{font-size:13px;font-weight:800;color:#344054}
.dhs-lesson-canvas-toolbar .dhs-zoom-controls{display:inline-flex!important}
.dhs-mode-lesson .dhs-workspace{height:1060px;min-height:920px}
.dhs-mode-lesson .dhs-workspace-wrap{min-height:1100px}
.dhs-palette-item{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:12px;min-height:68px;padding:10px 14px;border:1px solid #dfe5ee;border-radius:12px;box-shadow:none;background:#fff;text-align:left;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.dhs-palette-item:hover{border-color:#8da2fb;box-shadow:0 8px 22px rgba(30,64,175,.10);transform:translateY(-1px)}
.dhs-palette-symbol{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:#eef3ff;color:#2f54d7;font-size:11px;font-weight:900;letter-spacing:.02em}
.dhs-palette-name{font-size:13px;font-weight:750;line-height:1.25;color:#263246}
.dhs-palette-item[data-component-type="CLOCK"],.dhs-palette-item[data-component-type="D_FF"],.dhs-palette-item[data-component-type="T_FF"],.dhs-palette-item[data-component-type="SR_LATCH"],.dhs-palette-item[data-component-type="REGISTER4"],.dhs-palette-item[data-component-type="COUNTER4"],.dhs-palette-item[data-component-type="SHIFT4"]{border-left:1px solid #dfe5ee}
.dhs-palette-item[data-component-type="CLOCK"] .dhs-palette-symbol,.dhs-palette-item[data-component-type="D_FF"] .dhs-palette-symbol,.dhs-palette-item[data-component-type="T_FF"] .dhs-palette-symbol,.dhs-palette-item[data-component-type="SR_LATCH"] .dhs-palette-symbol,.dhs-palette-item[data-component-type="REGISTER4"] .dhs-palette-symbol,.dhs-palette-item[data-component-type="COUNTER4"] .dhs-palette-symbol,.dhs-palette-item[data-component-type="SHIFT4"] .dhs-palette-symbol{background:#ede9fe;color:#6d28d9}
@media(max-width:900px){.dhs-mode-lesson .dhs-lesson{grid-template-columns:300px minmax(560px,1fr)}.dhs-lesson-canvas-toolbar .dhs-zoom-controls{display:inline-flex!important}}
@media(max-width:760px){.dhs-mode-lesson .dhs-lesson{display:block;min-height:0}.dhs-mode-lesson .dhs-lesson-sidebar{max-height:none}.dhs-lesson-stage-shell{border-left:0;border-top:1px solid var(--border)}.dhs-mode-lesson .dhs-workspace{height:720px;min-height:640px}.dhs-mode-lesson .dhs-workspace-wrap{min-height:760px}.dhs-lesson-canvas-toolbar{position:relative}.dhs-palette-item{grid-template-columns:44px minmax(0,1fr)}.dhs-palette-symbol{width:38px;height:38px}}
.dhs-wire-preview{stroke:#3157d5;stroke-dasharray:10 8;opacity:.75;pointer-events:none}
.dhs-port{pointer-events:all}

/* 0.10.8 — lesson port guidance */
.dhs-port-label{font-size:10px;font-weight:800;fill:#475569;pointer-events:none}.dhs-node.is-lesson-dim{opacity:.42}.dhs-node.is-lesson-dim .dhs-port.is-lesson-focus{opacity:1}.dhs-port.is-lesson-focus{fill:#22c55e!important;stroke:#dcfce7;stroke-width:5;filter:drop-shadow(0 0 7px rgba(34,197,94,.9))}.dhs-port.is-lesson-focus:hover{r:16}

/* Sequential logic diagnostics */
.dhs-node.is-invalid .dhs-node-body,.dhs-node.is-invalid .dhs-gate-body{stroke:#dc2626!important;stroke-width:4!important;}
.dhs-node.is-invalid [data-role="subtitle"]{fill:#b91c1c!important;font-weight:800;}

/* 0.12.1 — functional sequential simulator */
.dhs-node.is-captured .dhs-node-body{stroke:#7c3aed!important;stroke-width:4!important;filter:drop-shadow(0 0 9px rgba(124,58,237,.42))}
.dhs-node.is-captured [data-role="subtitle"]{fill:#6d28d9!important;font-weight:900}
.dhs-seq-controls{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.dhs-seq-history{margin:8px 0 16px;padding-left:22px;font-size:12px;color:#475467}
.dhs-seq-history li{margin:4px 0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}

/* 0.16.0: MCU entry on the main plugin screen */
.dhs-home-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1050px){.dhs-home-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.dhs-home-actions{grid-template-columns:1fr}}
