/* The menu takes its colours from Lanternwood House: the blue house and its deep-blue
   windows, the red fish-scale roof, the yellow title banner and the white trim. --teal, the accent for
   buttons, sliders and focus rings, is the deep house blue (white text on it passes WCAG AA). */
:root{--ink:#284849;--teal:#20699f;--rust:#b56535;--line:#d8dfd7;--panel:#fbfaf6;--muted:#6b7f7f;--canvas:#eef2ee;
  --house:#1c91d4;--house-deep:#20699f;--navy:#203c6f;--roof:#de1d22;--roof-scale:#f2683c;--banner:#ffcb28;
  --round:ui-rounded,"SF Pro Rounded","Arial Rounded MT Bold","Varela Round",system-ui,sans-serif}
*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;background:var(--panel);color:var(--ink);font:13px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}
body{position:fixed;inset:0;height:100dvh;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);display:grid;grid-template-rows:86px 57px minmax(0,1fr)}
button,input{font:inherit}button{cursor:pointer;color:var(--ink)}
button{padding:8px 10px;border:1px solid var(--line);background:var(--panel);border-radius:6px;font-size:12px;transition:background .15s,border-color .15s}
button:hover{border-color:var(--teal);background:#e9f0ed}button:disabled{cursor:default;opacity:.5}
:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
[hidden]{display:none!important}
/* The header is the red roof, its fish-scale shingles in two offset rows, with a white eave below. */
.app-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 32px;border-bottom:4px solid #fff;
  background:radial-gradient(circle at 50% 0,#0000 10px,var(--roof-scale) 10.5px 12.5px,#0000 13px) 0 0/26px 15px,
    radial-gradient(circle at 50% 0,#0000 10px,var(--roof-scale) 10.5px 12.5px,#0000 13px) 13px 7.5px/26px 15px,var(--roof)}
/* The name sits on the yellow title banner, a ribbon with a notched tail. */
.brand{display:flex;gap:11px;align-items:center;padding:7px 30px 7px 14px;border-radius:10px 0 0 10px;background:var(--banner);
  clip-path:polygon(0 0,100% 0,calc(100% - 13px) 50%,100% 100%,0 100%);transform:rotate(-1.5deg);
  text-decoration:none;color:var(--roof);font:800 24px/1.05 var(--round);letter-spacing:.4px;text-transform:uppercase}
.brand svg{width:28px;height:36px;fill:none;stroke:var(--navy);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.brand small{display:block;margin-top:3px;font:700 8.5px/1.4 var(--round);letter-spacing:1.6px;color:var(--navy)}
.workspace-label{display:flex;align-items:center;gap:8px;padding:7px 14px;border-radius:999px;background:#fff;color:var(--navy);font:700 12px var(--round);box-shadow:0 2px 0 #0000002e}
.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#518b71;flex:none}
/* The tab bar is the house's blue plank wall; each tab is a white-framed window with a yellow number. */
.workspace-tabs{display:flex;align-items:center;padding:0 32px;gap:10px;
  background:repeating-linear-gradient(90deg,#0000 0 15px,#ffffff17 15px 16px,#00000021 16px 17px),var(--house-deep)}
.workspace-tabs button{display:inline-flex;align-items:center;gap:8px;border:2px solid #ffffffb3;border-radius:999px;background:#ffffff14;
  padding:5px 15px 5px 5px;font:700 13px var(--round);color:#fff;transition:background .15s,border-color .15s,transform .15s}
.workspace-tabs button span{display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;background:var(--banner);
  color:var(--navy);font-size:10px;font-weight:800;font-variant-numeric:tabular-nums}
.workspace-tabs button:hover{background:#ffffff33;border-color:#fff;transform:translateY(-1px)}
.workspace-tabs button[aria-selected=true]{background:#fff;border-color:#fff;color:var(--navy);box-shadow:0 2px 0 #0000003d}
.workspace-tabs button[aria-selected=true] span{background:var(--roof);color:#fff}
.workspace-tabs :focus-visible{outline:3px solid var(--banner);outline-offset:3px}
.tabs-note{margin-left:auto;align-self:center;font:italic 600 15px Georgia,serif;color:#fff}
#workspace{min-height:0;position:relative}.preview-panel{height:100%;min-height:0}
#housePanel{display:grid;grid-template-columns:304px minmax(0,1fr)}
.house-stage{grid-column:2;grid-row:1;position:relative;min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:var(--canvas)}
.stage-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:28px 32px 6px;z-index:1}
.eyebrow{margin:0 0 6px;color:var(--muted);font-size:9px;font-weight:600;letter-spacing:1.7px}
h1{font:normal 28px/1.2 Georgia,serif;letter-spacing:-.6px;margin:0}
.view-badge{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:10px;border:1px solid #d4dfd4;border-radius:20px;padding:5px 10px;background:#f7f9f3;color:#55716a}
#view{position:relative;min-width:0;min-height:0;overflow:hidden}#view canvas{display:block;touch-action:none}
.stage-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:61px;margin:0 28px;border-top:1px solid #d7dfd6;color:var(--muted);font-size:11px}
.fit-button{background:transparent;white-space:nowrap;border-color:#cbd7cd}.fit-button>span{margin-left:4px}
#panel{display:flex;flex-direction:column;grid-column:1;grid-row:1;overflow:auto;min-height:0;border-right:1px solid var(--line);scrollbar-width:thin;background:var(--panel)}
#houseTools{min-height:0;overflow:auto;flex:1;scrollbar-width:thin}
.tools-summary{display:flex;justify-content:space-between;align-items:center;padding:22px 22px 14px;font-size:16px;font-weight:600;cursor:pointer;list-style:none}
.tools-summary::-webkit-details-marker{display:none}.tools-summary small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:2px}.summary-chevron{display:none}
.tools-content{padding:0 22px 8px}.sub{font-size:10px;color:var(--muted);margin:0 0 20px;line-height:1.7}
h2,.control-section>summary{font-size:11px;font-weight:650;letter-spacing:.02em;margin:0 0 12px}
.control-section{border-top:1px solid var(--line);padding-top:17px;margin-top:19px}.control-section>summary{cursor:pointer;margin:0}.control-section[open]>summary{margin-bottom:14px}
label.row{display:flex;align-items:center;gap:8px;margin:9px 0;font-size:11px;cursor:pointer}
.slider{display:grid;grid-template-columns:80px minmax(0,1fr) 43px;align-items:center;gap:5px;margin:12px 0;font-size:11px}.slider output{text-align:right;font-variant-numeric:tabular-nums;color:var(--muted)}
input[type=range]{width:100%;accent-color:var(--teal)}input[type=checkbox]{accent-color:var(--teal)}
.seg{display:grid;grid-template-columns:repeat(2,1fr);gap:5px}.views{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.views button{padding:7px 3px;font-size:10px}
button.on{background:var(--teal);border-color:var(--teal);color:#fff}.actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:12px}.actions button{font-size:10px;padding:9px 4px}.actions button:first-child{background:var(--ink);color:#fff;border-color:var(--ink)}
#elementSearch{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:5px}
#elementId{min-width:0;width:100%;padding:8px;border:1px solid var(--line);border-radius:6px;background:white;color:var(--ink);font-size:11px;text-transform:uppercase}#elementId[aria-invalid=true]{border-color:var(--rust)}
#searchStatus{font-size:10px;color:var(--muted);margin:7px 0 0;line-height:1.6}
#assemblyCompanion{flex:none;margin:18px 16px 22px;padding:16px;border:1px solid #d8dfcf;border-radius:8px;background:#f0f2e9}
.companion-label{font-size:8px;letter-spacing:.7px;display:flex;align-items:center;gap:5px;color:#627961}.companion-label>span:first-child{font-size:15px}.soon-badge{font-size:8px;letter-spacing:0;background:#e2e8d9;border-radius:4px;padding:2px 4px;margin-left:auto;white-space:nowrap}
#assemblyTitle{font:normal 19px/1.25 Georgia,serif;margin:10px 0 7px;letter-spacing:-.3px}#assemblyCompanion p{margin:0;font-size:11px;line-height:1.7;color:#6a7c69}
#info{position:absolute;right:24px;bottom:76px;max-width:320px;max-height:50%;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:15px;box-shadow:0 5px 24px #28484918;display:none;z-index:2;font-size:12px}
#info b{font-size:14px}#info .meta{color:var(--muted);font-size:11px;margin:5px 0}#info .tag{display:inline-block;font-size:9px;padding:2px 6px;border-radius:8px;background:#f3e3d5;color:var(--rust);margin-left:6px}
.dim{font:600 11px/1.2 system-ui,sans-serif;color:#126a84;background:#ffffffdf;border:1px solid #9cc9d6;border-radius:4px;padding:1px 5px;white-space:nowrap;pointer-events:none}.dim.mark{color:var(--ink);border-color:#c8d0c8}
.piece-id{font:600 10px/1.2 system-ui,sans-serif;color:#183b44;background:#fffffff0;border:1px solid #92aeb5;border-radius:3px;padding:2px 4px;white-space:nowrap;pointer-events:none}
.key{display:inline-block;width:10px;height:10px;border-radius:2px;vertical-align:-1px;flex:none}.key.new{background:#3fae6b}.key.changed{background:#f0b93a}
#thicknessLegend{margin:4px 0 8px 24px;font-size:10px;color:var(--muted)}#thicknessLegend .key{border:1px solid #0004;margin-right:5px}#thicknessLegend p{margin:3px 0}
#changes{padding-left:16px;font-size:11px}#changes li{margin:5px 0}
#loading{position:absolute;inset:100px 0 62px;display:grid;place-items:center;text-align:center;padding:24px;color:var(--muted);pointer-events:none}
#dxfPanel{display:flex;flex-direction:column}.dxf-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:25px 32px 18px;border-bottom:1px solid var(--line)}
.dxf-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:12px 24px}.dxf-toolbar button{min-height:34px}.dxf-toolbar label.row{margin:0 0 0 8px}#dxfLayers{display:flex;flex-wrap:wrap;gap:12px;margin-left:auto}#dxfLayers label{display:flex;align-items:center;gap:5px;font-size:11px}#dxfLayers .key{border:1px solid #52666b}
#dxfViewport{position:relative;flex:1;min-height:100px;background:#101c23;overflow:hidden}#dxfViewport canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab;outline-offset:-3px}#dxfViewport canvas:active{cursor:grabbing}
#dxfStatus{margin:0;padding:10px 24px 4px;font-size:11px;overflow-wrap:anywhere}#dxfHelp{padding:0 24px 12px;color:var(--muted);font-size:10px}#dxfZoom{min-width:45px;text-align:center;font-variant-numeric:tabular-nums}
#printablesFrame{border:0;width:100%;height:100%;display:block}
@media(max-width:1000px){.tabs-note{display:none}.stage-heading{padding:24px 22px 6px}.stage-heading h1{font-size:24px}.view-badge{font-size:9px;padding:4px 7px}}
@media(max-width:760px){
 body{grid-template-rows:65px 52px minmax(0,1fr)}.app-header{padding:0 14px}.brand{font-size:18px;gap:8px;padding:6px 24px 6px 10px}.brand small{font-size:6.5px;letter-spacing:1.1px}.brand svg{width:22px;height:29px}.workspace-label{font-size:0;gap:0;padding:8px}.workspace-label .status-dot{width:8px;height:8px}
 .workspace-tabs{padding:0 8px;gap:4px;justify-content:space-between}.workspace-tabs button{min-height:44px;font-size:11px;gap:4px;padding:3px 6px 3px 3px;white-space:nowrap}.workspace-tabs button span{width:19px;height:19px;font-size:9px}
 #housePanel{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}.house-stage{grid-column:1;grid-row:1}.stage-heading{padding:20px 20px 2px}.stage-heading h1{font-size:23px}.stage-heading .view-badge{font-size:0;gap:0;padding:8px}.eyebrow{font-size:8px}.stage-footer{margin:0 18px;min-height:52px;font-size:9px;gap:6px}.fit-button{font-size:11px;padding:6px}.fit-button span{display:none}
 #panel{display:block;grid-column:1;grid-row:2;border-right:0;border-top:1px solid var(--line);max-height:42dvh}.tools-summary{padding:14px 20px;font-size:13px}.tools-summary>span:first-child{display:flex;align-items:baseline;gap:12px}.tools-summary small{font-size:10px}.summary-chevron{display:block}#houseTools[open] .summary-chevron{transform:rotate(180deg)}.tools-content{padding:0 20px 12px}#houseTools{overflow:visible}#assemblyCompanion{display:none}#houseTools[open]+#assemblyCompanion{display:block}
 #info{right:12px;left:12px;bottom:62px;max-width:none;font-size:11px}.dxf-header{padding:18px}.dxf-header h1{font-size:23px}.dxf-header .view-badge{display:none}.dxf-toolbar{padding:10px;gap:5px}.dxf-toolbar button{padding:6px 8px;font-size:11px}#dxfLayers{width:100%;margin:3px 0}.dxf-toolbar label.row{font-size:10px}#dxfStatus{padding:8px 12px 4px;font-size:10px}#dxfHelp{padding:0 12px 10px;font-size:9px}
}
/* Keep phone controls usable with a keyboard open or the phone turned sideways. */
@media(max-width:760px), (max-height:500px) and (pointer:coarse){
  button,.control-section>summary{min-height:44px}
  .control-section>summary{display:flex;align-items:center}
  .control-section>summary::before{content:"▸";margin-right:8px}
  .control-section[open]>summary::before{content:"▾"}
  input[type=range]{height:36px;margin:0;touch-action:pan-y}
  label.row{min-height:40px;margin:4px 0;font-size:12px}
  input[type=checkbox]{width:18px;height:18px;flex:none}
  #elementId{font-size:16px;min-height:44px}
  #panel{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .fit-button{min-width:44px}
  .dxf-toolbar{max-height:38%;overflow:auto;flex:none;overscroll-behavior:contain}
  #dxfHelp{font-size:10px}
}
@media(max-height:500px) and (pointer:coarse){
  body{grid-template-rows:48px 48px minmax(0,1fr)}
  .app-header{padding:0 12px}.brand{font-size:16px;padding:3px 22px 3px 8px}.brand svg{height:26px}.brand small{font-size:6px}
  .workspace-tabs{padding:0 12px}.workspace-tabs button{min-height:40px;font-size:11px}.tabs-note{display:none}
  #housePanel{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
  .house-stage{grid-column:1;grid-row:1}.stage-heading{padding:8px 16px 0}.stage-heading h1{font-size:19px}.stage-heading .eyebrow{display:none}
  .stage-footer{min-height:44px;margin:0 16px}
  #panel{display:block;grid-column:1;grid-row:2;max-height:48dvh;border-right:0;border-top:1px solid var(--line)}
  #houseTools{overflow:visible}.tools-summary{padding:10px 16px;font-size:12px;min-height:44px}.tools-summary>span:first-child{display:flex;gap:12px;align-items:baseline}.tools-summary small{font-size:10px}.summary-chevron{display:block}
  #assemblyCompanion{display:none}
  .dxf-header{padding:8px 16px}.dxf-header h1{font-size:19px}.dxf-header .eyebrow{display:none}
  #dxfHelp{display:none}.dxf-toolbar{padding:4px 12px;max-height:45%}#dxfLayers{width:auto;margin-left:auto}
}
@media(prefers-reduced-motion:reduce){button{transition:none}.workspace-tabs button:hover{transform:none}}

/* Build companion: a scrollable preparation list and an independent assembly stage. */
.workspace-tabs{overflow-x:auto;scrollbar-width:thin}.workspace-tabs button{flex-shrink:0;white-space:nowrap}
#instructionsPanel{display:flex;flex-direction:column;overflow:hidden}
.instruction-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 28px;border-bottom:1px solid var(--line)}
.instruction-header-controls{display:flex;align-items:center;gap:12px}
.lang-switch-button{background:white;border:1px solid var(--line);border-radius:6px;padding:6px 12px;font-size:12px;font-weight:700;color:var(--navy);cursor:pointer;transition:all .15s;line-height:1}
.lang-switch-button:hover{background:var(--banner);border-color:var(--teal);color:var(--teal)}
.instruction-notices{padding:0 28px}.instruction-notices p:empty{display:none}.instruction-notices p{margin:8px 0}
#instructionLoad{padding:24px}#instructionPrep{padding:24px 28px;overflow:auto;min-height:0}
.preparation-intro{display:flex;justify-content:space-between;gap:28px;max-width:1100px;margin:auto}.preparation-intro h2{font:24px Georgia,serif;margin-bottom:12px}.preparation-intro p{max-width:680px}.start-build{min-width:210px;max-width:280px;padding-top:16px}
.download-pdf-button{display:block;margin-top:10px;padding:10px 14px;border:1px solid var(--line);border-radius:6px;background:white;color:var(--navy);font-size:12px;font-weight:600;text-decoration:none;text-align:center;transition:all .15s}
.download-pdf-button:hover{background:var(--banner);border-color:var(--teal);color:var(--teal)}
button.primary{background:var(--teal);border-color:var(--teal);color:white;font-weight:650;padding:12px 18px}button.primary:hover{background:var(--navy)}
#instructionChecklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:1100px;margin:24px auto}
#instructionChecklist fieldset{min-width:0;border:1px solid var(--line);border-radius:10px;padding:12px 18px;background:white}
#instructionChecklist legend{font-weight:650;font-size:15px;padding:0 6px}#instructionChecklist label{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid #e8ece5;cursor:pointer}#instructionChecklist label:last-child{border:0}
#instructionChecklist input{margin-top:4px;flex:none;width:18px;height:18px}#instructionChecklist strong{font-weight:550;display:block}#instructionChecklist small{display:block;color:#52696a;line-height:1.6;margin-top:4px}
.instruction-warning{padding:12px 16px;background:#fff1d8;border-left:4px solid #b56535;border-radius:4px}.instruction-warning p{margin:0}#instructionIssues{max-width:1100px;margin:20px auto}
#instructionBuild{display:grid;grid-template-columns:minmax(0,1fr) 390px;flex:1;min-height:0}
.instruction-stage{position:relative;min-height:0;min-width:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;background:var(--canvas)}
.instruction-stage-heading{display:flex;justify-content:space-between;gap:12px;padding:18px 24px;color:var(--navy)}#instructionCount{font-weight:700;white-space:nowrap}#instructionChapterLabel{text-align:right}
#instructionView{position:relative;min-height:100px;overflow:hidden}#instructionView canvas{display:block;touch-action:none}
.instruction-view-tools{display:flex;flex-wrap:wrap;gap:8px;padding:12px 20px 0}.instruction-view-tools button{min-height:40px}#instructionSceneStatus{padding:4px 20px 12px;margin:0;color:#52696a;font-size:11px}
#instructionInspect{position:absolute;left:20px;bottom:110px;max-width:320px;max-height:45%;overflow:auto;background:var(--panel);padding:15px;border:1px solid var(--line);border-radius:8px;box-shadow:0 5px 24px #28484918}#instructionInspect p{margin:6px 0}
.instruction-copy{overflow:auto;min-height:0;padding:20px 24px;border-left:1px solid var(--line);scrollbar-width:thin}.instruction-copy label{display:block;font-size:11px;margin-bottom:6px}.instruction-copy select{font:inherit;max-width:100%;width:100%;padding:10px;border:1px solid var(--line);border-radius:6px;background:white;color:var(--ink)}
.instruction-progress{margin:14px 0 22px}.instruction-progress progress{width:100%;accent-color:var(--teal);height:8px}.instruction-progress span{display:block;font-size:11px;color:var(--muted);margin-top:4px}
#instructionStepTitle{font:26px/1.2 Georgia,serif;margin:0 0 16px}.instruction-copy h3{font-size:12px;margin:18px 0 8px}.instruction-copy ul{padding-left:20px;line-height:1.7}.instruction-copy li{margin-bottom:6px;overflow-wrap:anywhere}.instruction-copy details{border-top:1px solid var(--line);padding:12px 0}.instruction-copy summary{cursor:pointer;font-weight:600}.instruction-copy p{line-height:1.7}
.instruction-repeat{background:var(--banner);color:var(--navy);padding:8px 12px;border-radius:6px;font-weight:650}.instruction-check{border-top:1px solid var(--line);margin-top:10px;padding-bottom:8px}.instruction-check p{margin:6px 0}.instruction-navigation{display:grid;grid-template-columns:1fr 1fr;gap:8px}.instruction-navigation .primary{grid-column:1/-1}.instruction-secondary{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.instruction-secondary button{font-size:11px}
#instructionDone{padding:12px;background:#e0efdf;border-radius:6px}
.instruction-scrub-box{display:flex;align-items:center;min-width:80px;max-width:130px;flex:1}
.instruction-scrub-box input[type="range"]{width:100%;accent-color:var(--teal);cursor:pointer;height:6px}
#instructionIsolate.active{background:var(--teal);border-color:var(--teal);color:white}
.instruction-view-angles{display:inline-flex;border:1px solid var(--line);border-radius:6px;overflow:hidden}
.instruction-view-angles button{border:0;border-right:1px solid var(--line);border-radius:0;padding:6px 10px;font-size:11px}
.instruction-view-angles button:last-child{border-right:0}
.instruction-status-bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;padding:4px 20px 10px;gap:8px}
.instruction-status-bar p{margin:0;font-size:11px;color:#52696a}
.instruction-keys-hint kbd{background:#e3e8e5;border:1px solid #cbd5cf;border-radius:3px;padding:1px 4px;font-family:inherit;font-size:10px;color:var(--navy)}
.instruction-part-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 6px;border-radius:4px;cursor:pointer;transition:background .15s}
.instruction-part-item:hover{background:#e8f4f4}
.instruction-part-item.highlighted-part{background:#e0f2fe;border-left:3px solid #0284c7;padding-left:8px}
.dxf-jump-btn{background:transparent;border:1px solid #b8cbd3;border-radius:12px;padding:2px 8px;font-size:10px;color:#20699f;cursor:pointer;flex-shrink:0;min-height:auto}
.dxf-jump-btn:hover{background:#20699f;color:white;border-color:#20699f}
@media(max-width:1000px){.tabs-note{display:none}#instructionBuild{grid-template-columns:minmax(0,1fr) 340px}.instruction-header h1{font-size:24px}}
@media(max-width:760px){
 .instruction-header{padding:14px 16px}.instruction-header h1{font-size:23px}.instruction-header .view-badge{display:none}.instruction-header .eyebrow{font-size:8px}.instruction-notices{padding:0 16px}
 #instructionPrep{padding:16px}.preparation-intro{display:block}.start-build{max-width:none;padding:0}.start-build button{width:100%}#instructionChecklist{grid-template-columns:1fr;gap:16px}
 #instructionBuild{display:flex;flex-direction:column;overflow:auto}.instruction-stage{flex:none;height:42dvh;min-height:280px}.instruction-copy{overflow:visible;border-left:0;border-top:1px solid var(--line);padding:20px 16px;flex:none}
 .instruction-stage-heading{padding:10px 16px;font-size:11px}.instruction-view-tools{gap:6px;padding:6px 12px 0}.instruction-view-tools button{padding:8px;font-size:11px;min-height:40px}#instructionSceneStatus{font-size:10px;padding:4px 0 8px}.instruction-status-bar{padding:4px 12px 8px}.instruction-keys-hint{display:none}.instruction-scrub-box{min-width:60px}
 #instructionStepTitle{font-size:25px}.instruction-copy button{min-height:44px}.instruction-copy select{font-size:16px}#instructionInspect{left:12px;bottom:105px;max-width:calc(100% - 24px);font-size:11px}
}

.instruction-rail{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;min-width:0;border-left:1px solid var(--line);background:white}
.instruction-action-bar{padding:14px 20px 12px;border-bottom:1px solid var(--line);background:#fafcfa;display:flex;flex-direction:column;gap:8px}
.instruction-action-bar .primary{width:100%;font-size:13px;padding:12px 16px;cursor:pointer}
.instruction-nav-arrows{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.instruction-nav-arrows button{font-size:12px;font-weight:600;padding:8px 12px;min-height:38px}
.instruction-rail .instruction-copy{border-left:0}
.instruction-rail .instruction-field-hints{margin:0;padding:12px 24px;border-radius:0;border:0;border-top:1px dashed #b9c9b5;max-height:170px;overflow:auto}
.instruction-field-hints h3 small{display:inline;margin-left:8px}
@media(max-width:760px){
  .instruction-rail{display:block;flex:none;border:0}
  .instruction-action-bar{position:sticky;top:0;z-index:20;background:#fafcfa;box-shadow:0 2px 8px rgba(0,0,0,0.06);padding:10px 16px}
  .instruction-rail .instruction-field-hints{padding:16px;max-height:none}
}
