/* QuickTPE editor presentation · 2026-10-21 · generated by scripts/build-editor-demos.mjs */
:root { font-family:Arial,Helvetica,sans-serif; color:#23262b; background:#eef1f4; color-scheme:light; --demo-border:#dfe3e8; --demo-muted:#7b8490; --demo-text:#23262b; }
* { box-sizing:border-box; }body { margin:0; }button { font:inherit; cursor:pointer; }[hidden] { display:none!important; }.demo-icon { flex:none; vertical-align:middle; }button:focus-visible { outline:2px solid #a58b00; outline-offset:-3px; }
.demo-stage { max-width:1100px; min-height:100svh; margin:auto; padding:40px; display:flex; flex-direction:column; justify-content:center; gap:20px; }
.demo-intro > span { font-size:20px; font-weight:700; letter-spacing:-.8px; }.demo-brand-dot { color:#c7a900; }.demo-intro h1 { font-size:clamp(26px,4vw,44px); font-weight:600; letter-spacing:-1.5px; margin:20px 0 10px; }.demo-intro p { font-size:13px; color:#7b8490; margin:0 0 4px; }
.demo-presentation { display:flex; flex-direction:column; min-height:0; height:570px; border:1px solid #d7dde3; border-radius:12px; background:#fff; box-shadow:0 15px 50px #1c253112; overflow:hidden; }
.demo-switcher { display:flex; flex:none; min-height:44px; background:#fff; border-bottom:1px solid var(--demo-border); }
.demo-switcher button { flex:1; position:relative; display:flex; gap:9px; align-items:center; justify-content:center; padding:10px; border:0; background:#fff; color:#8a929c; font-size:12px; transition:background .2s,color .2s; }.demo-switcher button + button { border-left:1px solid #edf0f3; }.demo-switcher button[aria-selected=true] { color:#262b30; background:#fffdf2; font-weight:600; }.demo-switcher button .demo-icon { width:17px; height:17px; }.demo-switcher button i { position:absolute; bottom:0; left:0; right:0; height:2px; background:#e0bf00; transform:scaleX(0); transform-origin:left; }
.demo-scene-heading { display:flex; align-items:center; gap:8px; flex:none; height:40px; padding:0 15px; font-size:11px; background:#fafbfc; border-bottom:1px solid var(--demo-border); color:#67727f; }.demo-scene-heading .demo-icon { width:16px; height:16px; }.demo-scene-heading span { margin-left:auto; font:10px Consolas,monospace; color:#98a0a9; }.demo-scene-heading strong { font-weight:600; }
.demo-viewport { flex:1; min-height:0; position:relative; overflow:hidden; }.demo-content { height:100%; min-height:0; }
.demo-caption { display:flex; flex:none; gap:8px; align-items:center; min-height:36px; padding:8px 12px; border-top:1px solid var(--demo-border); background:#fffdf5; color:#6d6448; }.demo-caption p { font-size:11px; line-height:1.4; margin:0; }.demo-step-dot { width:5px; height:5px; border-radius:50%; background:#c7a900; flex:none; }
.demo-controls { display:flex; flex:none; align-items:center; justify-content:space-between; color:#89919b; font-size:10px; gap:12px; }.demo-controls > div { display:flex; gap:4px; }.demo-controls button { display:grid; place-items:center; height:28px; width:30px; border:1px solid #d7dde3; border-radius:6px; background:#fff; color:#6a7681; }.demo-controls .demo-icon { width:13px; height:13px; }
.embedded { overflow:hidden; background:transparent; }.embedded .demo-intro { display:none; }.embedded .demo-stage { padding:10px; gap:7px; height:100svh; min-height:0; }.embedded .demo-presentation { flex:1; height:auto; min-height:0; box-shadow:0 6px 25px #00000012; }.embedded .demo-controls { min-height:25px; padding:0 3px; }.embedded .demo-controls button { width:26px; height:24px; }.embedded .demo-controls > span { font-size:9px; }
.paused *, .paused *::before, .paused *::after { animation-play-state:paused!important; }
@media (max-width:500px) { .demo-stage { padding:16px; gap:12px; }.demo-presentation { height:550px; }.embedded .demo-stage { padding:7px; gap:5px; }.demo-switcher button { font-size:11px; gap:7px; }.demo-caption p { font-size:10px; }.demo-caption { padding:7px 10px; }.demo-intro h1 { font-size:30px; } }
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation:none!important; transition:none!important; } }

.tpe-demo { display:flex; flex-direction:column; background:#fff; color:var(--demo-text); overflow:hidden; height:100%; }
.tpe-document-tabs { display:flex; align-items:stretch; min-height:40px; background:#f6f8fa; border-bottom:1px solid var(--demo-border); }
.tpe-tab { display:flex; align-items:center; gap:9px; padding:0 15px; color:#7b8490; font-size:12px; border-right:1px solid var(--demo-border); }
.tpe-tab.active { background:#fff; box-shadow:inset 0 3px #ffd400; color:#23262b; }
.tpe-tab b { font-weight:700; }.tpe-tab i { width:5px; height:5px; border-radius:50%; background:#d6ae00; }
.tpe-tab .tab-close { margin-left:15px; color:#9299a3; font-size:17px; }
.tpe-tab-add { display:grid; place-items:center; width:40px; color:#7b8490; }
.tpe-document-tabs .demo-icon { width:16px; height:16px; }
.tpe-actions { display:flex; gap:15px; align-items:center; justify-content:flex-end; min-height:40px; padding:5px 12px; border-bottom:1px solid #e7eaee; font-size:11px; }
.tpe-actions > span { display:flex; align-items:center; gap:6px; color:#626c79; }
.tpe-actions b { font-weight:500; }.tpe-actions .tpe-format { margin-right:auto; color:#89919c; font:10px Consolas,monospace; }
.tpe-actions .demo-icon { width:16px; height:16px; }.tpe-actions .tpe-action-save { color:#4e4730; }
.tpe-body { display:flex; flex:1; min-height:0; }.tpe-main { display:flex; flex:1; flex-direction:column; min-width:0; min-height:0; }
.tpe-code-area { flex:1; position:relative; min-height:0; overflow:hidden; padding:16px 0; }
.tpe-line { display:flex; align-items:center; min-height:26px; font:13px/26px Consolas,'Courier New',monospace; white-space:pre; }
.tpe-line.active { background:#fffbea; }.tpe-line.error { background:#fff4f2; }
.tpe-line-number { width:43px; padding-right:13px; text-align:right; flex:none; color:#9aa1ab; border-right:1px solid #eef0f3; font-size:11px; }
.tpe-line code { padding-left:13px; font:inherit; color:#333d49; }.tpe-line.error code { text-decoration:underline wavy #cf6457; text-underline-offset:5px; }
.tpe-demo .token-comment { color:#8a929d; }.tpe-demo .token-reference { color:#286da8; }.tpe-demo .token-motion { color:#b44d3f; font-weight:700; }.tpe-demo .token-instruction { color:#8a48a7; font-weight:600; }.tpe-demo .token-keyword { color:#9956b5; }.tpe-demo .token-number { color:#b47936; }.tpe-demo .token-operator { color:#68717e; }.tpe-demo .token-terminator { color:#b7bdc6; }.tpe-demo .token-string { color:#3f8462; }
.tpe-caret { display:inline-block; width:1px; height:16px; vertical-align:middle; margin-left:2px; background:#343a43; animation:demo-caret 1s steps(1) infinite; }
.tpe-rail { flex:none; width:42px; padding:7px 3px; border-left:1px solid var(--demo-border); background:#fff; overflow:hidden; }
.tpe-rail > div { display:grid; gap:4px; }.tpe-rail > div + div { margin-top:7px; padding-top:7px; border-top:1px solid var(--demo-border); }
.tpe-rail-tool { display:grid; place-items:center; height:29px; width:34px; color:#89919b; border-radius:6px; }.tpe-rail-tool.selected { color:#37372a; background:#ffd40035; }.tpe-rail-tool .demo-icon { width:17px; height:17px; }
.tpe-editor-status { display:flex; gap:6px; align-items:center; min-height:29px; padding:0 12px; font-size:9px; color:#87919b; border-top:1px solid #e7eaee; background:#fafbfc; }.tpe-editor-status small { margin-left:auto; font-size:9px; white-space:nowrap; }.tpe-status-dot { width:5px; height:5px; flex:none; border-radius:50%; background:#5b9b76; }
.tpe-completion { position:absolute; top:90px; left:58px; width:270px; max-width:calc(100% - 70px); border:1px solid #ded8bb; border-radius:9px; background:#fff; box-shadow:0 10px 30px #1c253123; z-index:2; overflow:hidden; }
.tpe-completion-heading { display:flex; align-items:center; gap:6px; padding:9px 10px; font-size:9px; text-transform:uppercase; letter-spacing:1px; color:#a18416; background:#fffdf4; }.tpe-completion-heading .demo-icon { width:12px; height:12px; }
.tpe-completion-choice { display:flex; gap:8px; flex-wrap:wrap; align-items:center; padding:9px 10px; margin:3px; border-radius:5px; background:#fff2b4; font-size:11px; color:#8f804d; }.tpe-completion-choice code { width:100%; font:12px Consolas,monospace; color:#786100; }.tpe-completion-choice kbd { margin-left:auto; }.tpe-completion-choice.alternate { background:#fff; color:#87919f; }.tpe-completion-choice.alternate code { color:#52699a; }
.tpe-completion-foot { display:flex; justify-content:space-between; padding:9px; background:#fafbf9; border-top:1px solid #efede4; font-size:9px; color:#8e978d; }
.tpe-line-help { position:absolute; right:13px; bottom:12px; width:238px; max-width:calc(100% - 58px); padding:12px 14px; border:1px solid #b89b32; border-radius:12px; box-shadow:0 4px 16px #00000012; background:#fff; font-size:11px; }.tpe-line-help p { margin:5px 0 0; color:#7a828c; font-size:10px; line-height:1.55; }.tpe-line-help:before { content:''; position:absolute; left:-7px; top:15px; width:12px; height:12px; background:#fff; border-bottom:1px solid #b89b32; border-left:1px solid #b89b32; transform:rotate(45deg); }
.tpe-bottom-panel { min-height:155px; border-top:1px solid var(--demo-border); background:#fff; }.tpe-panel-tabs { display:flex; gap:20px; align-items:center; height:35px; padding:0 15px; border-bottom:1px solid #eef0f3; color:#89919b; font-size:10px; }.tpe-panel-tabs b { height:100%; display:flex; align-items:center; gap:7px; color:#38424d; border-bottom:2px solid #ffd400; font-weight:600; }.tpe-issue-count { font-style:normal; font-size:9px; }
.tpe-diagnostic { display:flex; gap:10px; padding:14px; color:#a34c40; }.tpe-diagnostic-icon { display:grid; place-items:center; flex:none; width:19px; height:19px; border-radius:50%; background:#fff0ed; font-size:12px; font-weight:700; }.tpe-diagnostic strong { font-size:11px; }.tpe-diagnostic p { font-size:11px; color:#737d8b; line-height:1.5; margin:6px 0; }.tpe-fix { font:11px/1.7 Consolas,monospace; color:#2f6644; background:#edf5ef; padding:4px 7px; border-radius:4px; }.tpe-diagnostic kbd { align-self:flex-end; margin-left:auto; padding:4px; white-space:nowrap; color:#687585; border:1px solid #d7dde4; border-radius:4px; font-size:10px; }.tpe-diagnostic.resolved { color:#44845b; }.tpe-diagnostic.resolved .tpe-diagnostic-icon { background:#edf5ef; }
@keyframes demo-caret { 50% { opacity:0; } }
.compact .tpe-code-area { padding-block:10px; }
.compact .tpe-line { min-height:22px; line-height:22px; font-size:12px; }
.compact .tpe-rail { overflow-y:auto; scrollbar-width:none; }
.compact .tpe-rail::-webkit-scrollbar { display:none; }
.compact .tpe-rail-tool { height:24px; }
.compact .tpe-completion { top:74px; }
.compact .tpe-completion-heading { padding:5px 9px; font-size:8px; }
.compact .tpe-completion-choice { flex-wrap:nowrap; padding:6px 8px; margin:2px; gap:7px; font-size:9px; }
.compact .tpe-completion-choice code { width:auto; min-width:34px; font-size:11px; }
.compact .tpe-completion-foot { padding:6px 8px; font-size:8px; }
.compact .tpe-line-help { bottom:8px; padding:9px 12px; }
@media (min-width:800px) and (min-height:600px) { .tpe-line { font-size:16px; min-height:34px; line-height:34px; }.tpe-code-area { padding-top:24px; }.tpe-line-number { width:55px; font-size:12px; }.tpe-completion { top:126px; left:70px; }.tpe-line-help { bottom:35px; width:290px; font-size:14px; }.tpe-line-help p { font-size:12px; }.tpe-rail-tool { height:36px; }.tpe-rail-tool .demo-icon { width:19px; height:19px; } }
@media (max-width:400px) { .tpe-line { font-size:11px; }.tpe-line-number { width:30px; padding-right:9px; }.tpe-line code { padding-left:9px; }.tpe-actions { gap:10px; padding-inline:9px; }.tpe-actions b { font-size:10px; }.tpe-tab.secondary { display:none; }.tpe-tab-add { margin-left:auto; }.tpe-diagnostic { padding:10px; }.tpe-panel-tabs { gap:16px; }.tpe-editor-status { padding-inline:8px; font-size:8px; }.tpe-completion { left:39px; max-width:calc(100% - 49px); } }
@media (max-width:400px) { .compact .tpe-line { font-size:11px; } }

.html-demo {
  --html-blue: #007aff;
  color: var(--demo-text, #23262b);
  background: #fff;
  font: 13px/1.4 Arial, sans-serif;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.html-demo[hidden] { display: none; }
.html-demo > .html-heading, .html-demo > .html-toolbar, .html-demo > .html-status { flex-shrink: 0; }
.html-demo > .html-workspace { flex: 1; }
.html-demo *, .html-demo *::before, .html-demo *::after { box-sizing: border-box; }
.html-demo .demo-icon { width: 18px; height: 18px; flex-shrink: 0; }
.html-demo .html-heading { min-height: 49px; padding: 0 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px solid var(--demo-border, #dfe3e8); }
.html-demo .html-document { display: flex; align-items: center; gap: 8px; min-width: 0; }
.html-demo .html-document strong { font-size: 13px; letter-spacing: .02em; }
.html-demo .html-document-state { color: var(--demo-muted, #7b8490); font-size: 11px; }
.html-demo .html-product-label { color: #8a929d; font-size: 10px; letter-spacing: .08em; }
.html-demo .html-toolbar { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--demo-border, #dfe3e8); background: #fff; }
.html-demo .html-tools-start { display: flex; gap: 6px; align-items: center; min-width: 0; }
.html-demo .html-tool, .html-demo .html-zoom { display: flex; gap: 6px; align-items: center; justify-content: center; min-height: 32px; padding: 5px 9px; border: 1px solid #e2e6ec; border-radius: 7px; white-space: nowrap; background: #f7f8fa; font-size: 12px; }
.html-demo .html-icon-only { border-color: transparent; background: transparent; width: 30px; padding: 5px; }
.html-demo .html-icon-only > span { display: none; }
.html-demo .html-muted { opacity: .45; }
.html-demo .html-grid-tool { background: #f5f6f8; border-color: #e2e6ec; }
.html-demo .html-zoom { background: #fff; color: #586578; }
.html-demo .html-zoom .demo-icon { width: 12px; height: 12px; }
.html-demo .html-save-tool { background: #ffd400; color: #222512; border-color: #ffd400; font-weight: 600; }
.html-demo .html-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 210px 42px; min-height: 378px; }
.html-demo .html-canvas { min-width: 0; padding: 19px 24px 25px; background-color: #e8eef5; background-image: radial-gradient(#c8d5e5 .8px, transparent .8px); background-size: 16px 16px; display: flex; flex-direction: column; justify-content: center; }
.html-demo .html-canvas-meta { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 20px; color: #73869d; font: 10px/1.4 Consolas, monospace; }
.html-demo .html-page { width: 100%; max-width: 632px; aspect-ratio: 632 / 367; margin: auto; position: relative; box-shadow: 0 8px 20px #19283a23; background: #f0f3f7; border: 1px solid #e1e5eb; overflow: visible; }
.html-demo .html-page-heading { position: absolute; top: 6%; left: 4%; display: flex; flex-direction: column; gap: 4px; }
.html-demo .html-page-heading strong { font-size: clamp(13px, 1.8vw, 20px); font-weight: 500; letter-spacing: -.02em; }
.html-demo .html-page-heading > span { color: #758397; font-size: clamp(10px, 1.2vw, 12px); }
.html-demo .html-signal-card, .html-demo .html-value-card { position: absolute; top: 29%; width: 44%; height: 44%; border-radius: 15px; padding: clamp(9px, 1.5vw, 16px); background: #fff; border: 1px solid #e8e9ed; box-shadow: 0 2px 3px #2433451f; }
.html-demo .html-signal-card { left: 4%; }
.html-demo .html-value-card { right: 4%; display: flex; flex-direction: column; gap: 3px; }
.html-demo .html-card-caption { display: block; color: #8c98a7; font-size: clamp(9px, 1.15vw, 11px); margin-bottom: 9px; }
.html-demo .html-signal { display: flex; align-items: center; gap: 10px; margin-top: 9px; font-size: clamp(10px, 1.45vw, 14px); line-height: 1.25; }
.html-demo .html-signal i { flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; background: #cbd6e3; }
.html-demo .html-signal small { display: block; color: #8b97a8; margin-top: 4px; font-size: 9px; }
.html-demo .html-value-card > span:not(.html-card-caption) { color: #758397; font-size: clamp(10px, 1.3vw, 13px); }
.html-demo .html-value-card > strong { color: #0876d7; font-size: clamp(18px, 2.5vw, 26px); line-height: 1.2; font-weight: 600; }
.html-demo .html-value-card > small { color: #8d99a8; font-size: 9px; margin-top: auto; }
.html-demo .html-drop { position: absolute; left: 4%; right: 4%; top: 81%; bottom: 7%; display: flex; justify-content: center; align-items: center; gap: 8px; border: 1px dashed #b7c4d5; color: #8293a8; border-radius: 8px; font-size: 10px; }
.html-demo .html-drop .demo-icon { width: 13px; height: 13px; }
.html-demo .html-selected-component { position: absolute; left: 4%; width: 44%; top: 81%; height: 13%; transform: translateX(var(--html-component-offset, 22px)); opacity: 0; }
.html-demo.html-component-placed .html-selected-component { opacity: 1; }
.html-demo.html-component-placed .html-drop { opacity: 0; }
.html-demo .html-page-button { height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: linear-gradient(#1591ff, #007aff); box-shadow: 0 2px 3px #065abb35; color: #fff; font-size: clamp(11px, 1.6vw, 15px); font-weight: 600; }
.html-demo .html-selected-component::after { position: absolute; content: ''; inset: -2px; border: 1.5px solid #3989ff; pointer-events: none; }
.html-demo .html-selection-tag { position: absolute; bottom: calc(100% + 2px); left: -2px; padding: 2px 5px; color: #fff; background: #3989ff; white-space: nowrap; font-size: 9px; }
.html-demo .html-handle { position: absolute; z-index: 2; width: 6px; height: 6px; border: 1.5px solid #3989ff; background: #fff; }
.html-demo .html-handle-nw { top: -4px; left: -4px; }.html-demo .html-handle-ne { top: -4px; right: -4px; }
.html-demo .html-handle-sw { bottom: -4px; left: -4px; }.html-demo .html-handle-se { bottom: -4px; right: -4px; }
.html-demo .html-guide { position: absolute; background: #4b97ff; opacity: 0; pointer-events: none; }
.html-demo .html-guide-horizontal { left: 2%; right: 2%; top: 81%; height: 1px; }
.html-demo .html-guide-vertical { left: 4%; top: 3%; bottom: 3%; width: 1px; }
.html-demo[data-phase='1'] .html-guide { opacity: .65; }
.html-demo .html-pointer { position: absolute; left: calc(33% + var(--html-component-offset, 22px)); top: 88%; color: #1c2836; filter: drop-shadow(1px 2px 2px #fff); pointer-events: none; }
.html-demo .html-pointer .demo-icon { width: 23px; height: 23px; fill: #fff; }
.html-demo .html-panel { padding: 0 13px 14px; border-left: 1px solid var(--demo-border, #dfe3e8); min-width: 0; background: #fff; }
.html-demo .html-panel-heading { display: flex; align-items: center; justify-content: space-between; min-height: 45px; border-bottom: 1px solid #edf0f3; margin-bottom: 14px; }
.html-demo .html-panel-heading strong { font-size: 12px; font-weight: 650; }
.html-demo .html-panel-count { color: #9aa2ac; font-size: 10px; }
.html-demo .html-components-panel p { color: #86909e; font-size: 11px; line-height: 1.6; margin: 0 0 16px; }
.html-demo .html-component-item { display: flex; align-items: center; gap: 9px; min-height: 39px; margin-bottom: 7px; padding: 7px 9px; border: 1px solid #e0e5ec; border-radius: 7px; font-size: 11px; }
.html-demo .html-component-item > span { flex: 1; }
.html-demo .html-component-item .demo-icon { width: 16px; height: 16px; color: #647489; }
.html-demo .html-component-item .demo-icon:last-child { width: 12px; height: 12px; color: #a2acb9; }
.html-demo .html-button-item { border-color: #e6d16a; background: #fff9d8; }
.html-demo .html-property { min-width: 0; margin-bottom: 13px; }
.html-demo .html-property > span { display: block; color: #647387; margin-bottom: 5px; font-size: 10px; }
.html-demo .html-property-value { min-height: 33px; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #d6dfe9; border-radius: 6px; background: #fff; font-size: 11px; color: #42546a; }
.html-demo .html-property-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.html-demo .html-color-property i { width: 16px; height: 16px; border-radius: 3px; background: #007aff; }
.html-demo .html-properties-panel, .html-demo .html-preview-panel { display: none; }
.html-demo .html-preview-panel { padding-top: 35px; align-items: center; text-align: center; color: #6c7c90; }
.html-demo .html-preview-panel > .demo-icon { width: 28px; height: 28px; color: #a1aebb; }
.html-demo .html-preview-panel strong { margin-top: 12px; font-size: 13px; color: #334155; }
.html-demo .html-preview-panel p { font-size: 11px; margin: 9px 0 19px; }
.html-demo .html-preview-panel > span { font-size: 10px; }
.html-demo .html-rail { display: flex; flex-direction: column; gap: 5px; align-items: center; padding: 8px 3px; border-left: 1px solid var(--demo-border, #dfe3e8); background: #fff; }
.html-demo .html-rail-tool { width: 34px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: #89919b; }
.html-demo[data-phase='0'] .html-rail-components, .html-demo[data-phase='1'] .html-rail-properties, .html-demo[data-phase='2'] .html-rail-properties { background: #ffd40035; color: #535c65; }
.html-demo[data-phase='1'] .html-components-panel, .html-demo[data-phase='2'] .html-components-panel, .html-demo[data-phase='3'] .html-components-panel { display: none; }
.html-demo[data-phase='1'] .html-properties-panel, .html-demo[data-phase='2'] .html-properties-panel { display: block; }
.html-demo[data-phase='2'] .html-label-value { border-color: #6a9fe6; box-shadow: 0 0 0 2px #5397ff15; }
.html-demo.html-label-editing .html-label-value::after { content: ''; width: 1px; height: 14px; background: #386fab; }
.html-demo[data-phase='3'] .html-preview-panel { display: flex; flex-direction: column; }
.html-demo[data-phase='3'] .html-selected-component::after, .html-demo[data-phase='3'] .html-handle, .html-demo[data-phase='3'] .html-selection-tag, .html-demo[data-phase='3'] .html-pointer { display: none; }
.html-demo[data-phase='3'] .html-preview-tool { background: #fff6c3; border-color: #e5d27b; }
.html-demo .html-status { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 13px; min-height: 36px; border-top: 1px solid var(--demo-border, #dfe3e8); color: #7c8796; font-size: 10px; }
.html-demo .html-step { display: flex; align-items: center; gap: 7px; color: #5c6b7e; }
.html-demo .html-step i { width: 5px; height: 5px; background: #d5b200; border-radius: 50%; }
@media (max-width: 850px) {
  .html-demo .html-workspace { grid-template-columns: minmax(0, 1fr) 175px 42px; }
  .html-demo .html-canvas { padding: 16px; }
  .html-demo .html-canvas-meta { font-size: 9px; }
  .html-demo .html-page { min-height: 240px; }
  .html-demo .html-signal-card, .html-demo .html-value-card { padding: 10px; }
}
@media (max-width: 650px) {
  .html-demo .html-heading { padding-inline: 12px; }
  .html-demo .html-toolbar { padding: 8px; flex-wrap: wrap; }
  .html-demo .html-tools-start { gap: 4px; }
  .html-demo .html-tool, .html-demo .html-zoom { padding: 5px 7px; }
  .html-demo .html-fit { display: none; }
  .html-demo .html-save-tool > span { display: none; }
  .html-demo .html-save-tool { width: 32px; padding: 5px; }
  .html-demo .html-workspace { grid-template-columns: minmax(0, 1fr) 42px; min-height: 0; }
  .html-demo .html-canvas { grid-column: 1; grid-row: 1; padding: 14px; min-height: 305px; }
  .html-demo .html-canvas-meta { margin-bottom: 13px; }
  .html-demo .html-canvas-meta > span:last-child { display: none; }
  .html-demo .html-page { min-height: 236px; }
  .html-demo .html-panel { grid-column: 1 / 3; grid-row: 2; border-top: 1px solid var(--demo-border, #dfe3e8); border-left: 0; min-height: 145px; padding: 0 12px 12px; }
  .html-demo .html-panel-heading { min-height: 36px; margin-bottom: 10px; }
  .html-demo .html-components-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .html-demo .html-components-panel p { display: none; }
  .html-demo .html-component-item { margin: 0; min-height: 36px; font-size: 11px; }
  .html-demo .html-properties-panel { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; align-items: start; }
  .html-demo[data-phase='1'] .html-properties-panel, .html-demo[data-phase='2'] .html-properties-panel { display: grid; }
  .html-demo .html-size-property, .html-demo .html-color-property { display: none; }
  .html-demo .html-rail { grid-column: 2; grid-row: 1; }
  .html-demo .html-preview-panel { padding-top: 5px; }
  .html-demo .html-preview-panel > .demo-icon, .html-demo .html-preview-panel > span { display: none; }
  .html-demo .html-preview-panel strong { margin-top: 3px; }
  .html-demo .html-preview-panel p { margin: 7px 0; }
  .html-demo .html-status { flex-wrap: wrap; gap: 4px; font-size: 10px; }
  .html-demo .html-demo-label { margin-left: auto; }
}
@media (max-width: 380px) {
  .html-demo .html-document-state { display: none; }
  .html-demo .html-tools-start { gap: 2px; }
  .html-demo .html-icon-only { width: 26px; }
  .html-demo .html-toolbar { gap: 4px; }
  .html-demo .html-canvas { padding: 11px; }
  .html-demo .html-signal { gap: 6px; }
  .html-demo .html-signal i { width: 8px; height: 8px; flex-basis: 8px; }
  .html-demo .html-card-caption { font-size: 9px; }
}

/* Embedded homepage artwork: keep the real right rail and a compact properties strip. */
.compact .html-demo .html-heading { display: none; }
.compact .html-demo .html-toolbar { min-height: 34px; padding: 4px 7px; flex-wrap: nowrap; }
.compact .html-demo .html-tool, .compact .html-demo .html-zoom { min-height: 26px; padding: 3px 6px; font-size: 10px; }
.compact .html-demo .html-toolbar .demo-icon { width: 15px; height: 15px; }
.compact .html-demo .html-icon-only { width: 25px; }
.compact .html-demo .html-save-tool { width: auto; }
.compact .html-demo .html-save-tool > span { display: none; }
.compact .html-demo .html-fit { display: none; }
.compact .html-demo .html-workspace { grid-template-columns: minmax(0, 1fr) 42px; grid-template-rows: minmax(170px, 1fr) 76px; min-height: 0; }
.compact .html-demo .html-canvas { grid-column: 1; grid-row: 1; min-height: 170px; height: auto; padding: 8px 16px; }
.compact .html-demo .html-canvas-meta { display: none; }
.compact .html-demo .html-page { height: 154px; min-height: 0; width: min(100%, 355px); aspect-ratio: auto; flex-shrink: 0; }
.compact .html-demo .html-page-heading { top: 5%; gap: 1px; }
.compact .html-demo .html-page-heading strong { font-size: 13px; }
.compact .html-demo .html-page-heading > span { font-size: 9px; }
.compact .html-demo .html-signal-card, .compact .html-demo .html-value-card { top: 30%; height: 43%; padding: 7px 9px; border-radius: 9px; }
.compact .html-demo .html-card-caption { font-size: 8px; margin-bottom: 4px; }
.compact .html-demo .html-signal { font-size: 10px; margin-top: 6px; gap: 7px; }
.compact .html-demo .html-signal i { width: 8px; height: 8px; flex-basis: 8px; }
.compact .html-demo .html-signal small { display: none; }
.compact .html-demo .html-value-card > span:not(.html-card-caption) { font-size: 9px; }
.compact .html-demo .html-value-card > strong { font-size: 18px; }
.compact .html-demo .html-value-card > small { display: none; }
.compact .html-demo .html-page-button { border-radius: 6px; font-size: 10px; }
.compact .html-demo .html-selection-tag { font-size: 8px; padding: 1px 4px; }
.compact .html-demo .html-panel { grid-column: 1 / 3; grid-row: 2; border-top: 1px solid var(--demo-border, #dfe3e8); border-left: 0; padding: 0 10px 7px; min-height: 76px; height: 76px; }
.compact .html-demo .html-panel-heading { min-height: 23px; margin-bottom: 4px; border: 0; }
.compact .html-demo .html-panel-heading strong { font-size: 10px; }
.compact .html-demo[data-phase='0'] .html-components-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.compact .html-demo .html-components-panel p { display: none; }
.compact .html-demo .html-component-item { min-height: 31px; margin: 0; padding: 4px 6px; gap: 5px; font-size: 9px; }
.compact .html-demo .html-component-item > .demo-icon { width: 12px; height: 12px; }
.compact .html-demo .html-component-item > .demo-icon:last-child { display: none; }
.compact .html-demo .html-property { margin: 0; }
.compact .html-demo .html-property > span { margin-bottom: 3px; font-size: 9px; }
.compact .html-demo .html-property-value { min-height: 25px; height: 25px; padding: 3px 6px; font-size: 10px; }
.compact .html-demo .html-properties-panel { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
.compact .html-demo[data-phase='1'] .html-properties-panel, .compact .html-demo[data-phase='2'] .html-properties-panel { display: grid; }
.compact .html-demo .html-size-property, .compact .html-demo .html-color-property { display: none; }
.compact .html-demo .html-rail { grid-column: 2; grid-row: 1; padding: 6px 3px; }
.compact .html-demo .html-rail-tool { height: 32px; }
.compact .html-demo .html-preview-panel { padding: 0; }
.compact .html-demo[data-phase='3'] .html-preview-panel { flex-direction: row; gap: 9px; justify-content: center; min-height: 35px; }
.compact .html-demo .html-preview-panel > .demo-icon { display: block; width: 18px; height: 18px; }
.compact .html-demo .html-preview-panel > strong { margin: 0; font-size: 11px; }
.compact .html-demo .html-preview-panel > p { margin: 0; font-size: 10px; }
.compact .html-demo .html-preview-panel > span { display: none; }
.compact .html-demo .html-status { display: none; }
