/* RAI DASH instrument family, real PP Hammer state and editor assets. */
:root{--hammer-hud-frame:url('hud-frame.png');--hammer-divider:url('hud-divider.png')}
body:not([data-hammer-mode="menu"]){background:#020914;color:#cfe3f7}
body:not([data-hammer-mode="menu"]) .shell>header{border-color:#33669966}
body:not([data-hammer-mode="menu"]) .shell>header .brand b,body:not([data-hammer-mode="menu"]) button,body:not([data-hammer-mode="menu"]) select{font-family:Orbitron,monospace}
.workspace.editor-open{grid-template-columns:280px minmax(0,1fr);gap:9px;align-items:start}
.workspace.editor-open .editor-panel{grid-column:1;grid-row:1}.workspace.editor-open .game-column{grid-column:2;grid-row:1}
.editor-panel.editor-workbench{background:#020a16;border:1px solid #336699;border-radius:2px;box-shadow:inset 0 0 24px #33669922;padding:10px;scrollbar-color:#336699 #020914}
.editor-panel h2,.editor-panel h3,.editor-panel summary{font-family:Orbitron,monospace}.editor-panel h2{font-size:11px!important}.editor-panel label{font-size:11px;color:#bed5e9}.editor-panel .muted{font-size:11px;line-height:1.6}
.editor-panel input:not([type=range]),.editor-panel select{background:#041222;color:#deedfb;border-color:#33669980;border-radius:3px;font-size:11px}.editor-panel input:focus-visible,.editor-panel select:focus-visible{outline:2px solid #83b8ee;outline-offset:2px}
.editor-panel button{border:1px solid #33669980;background:#051526;color:#bed8ef;border-radius:3px;box-shadow:inset 0 0 8px #33669915;font-size:9px;transform:none!important}
.editor-panel button:hover:not(:disabled){background:#17395c;border-color:#8eb9e4;box-shadow:0 0 10px #33669977;color:#fff}.editor-panel button[aria-pressed=true],.editor-panel button[aria-selected=true]{background:#15395e;border-color:#97c3ef;box-shadow:inset 0 0 12px #33669999,0 0 7px #33669966;color:#fff}
#editor-workbench-heading{border-color:#33669970;gap:5px}#editor-main-menu{padding:7px 9px;font-size:8px}#editor-mode-badge{display:none}.editor-tabs{gap:4px}.editor-tabs button{font-size:8px}
#selected-tool-inspector{grid-template-columns:56px minmax(0,1fr);padding:7px;gap:7px;background:#031121;border-color:#33669970;border-radius:3px}#selected-tool-name{font-size:11px}#selected-tool-description{font-size:10px;line-height:1.5}#selected-tool-preview{width:54px;height:64px;background-size:contain;background-position:center;background-repeat:no-repeat}#selected-tool-preview[data-kind=scenery]>*{display:none}#selected-tool-inspector small{font-size:7px}
#hammer-editor-controls{margin:0 0 8px}#editor-search{width:100%;padding:8px!important}#editor-autodraft-state{font:8px/1.6 Orbitron,monospace;color:#95bce1;margin:5px 0;overflow-wrap:anywhere}
.theme-material-section{background:#051526;border-color:#33669970;border-radius:3px;padding:7px}.theme-material-header b{font-size:8px}.theme-chip-row{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-chip-row button{font-size:8px}.variant-grid{grid-template-columns:1fr}.swatch-row{gap:3px}.variant-swatch{font-size:7px!important}
#tools{display:block;margin:9px 0}.tool-category{background:#031120;border-color:#33669970;border-radius:3px;margin:6px 0}.tool-category>summary{font-size:8px;letter-spacing:.05em;padding:10px 7px;color:#b9d7f3}
.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:6px}.tool-grid .tool-card{min-width:0;min-height:83px;padding:5px 2px;font:8px/1.5 Orbitron,monospace;white-space:normal;text-align:center}.tool-card-visual{height:42px;min-height:42px}.tool-card-visual[data-kind=scenery],.tool-card:has(.scenery-preview)>.tool-card-visual{display:none}
.scenery-preview{display:block;width:60px;height:48px;background-repeat:no-repeat;margin:auto;pointer-events:none}.tool-card small{font:6px/1.5 Orbitron,monospace;color:#85abd0;display:block}.tool-grid .tool-card[hidden]{display:none!important}.editor-test-action{background:linear-gradient(transparent,#020a16 35%)}
#hammer-legacy-catalog{font:11px/1.6 Arial,sans-serif;padding-bottom:10px}#hammer-legacy-catalog p{padding:0 9px;color:#aac6dd}#hammer-legacy-catalog ul{padding-left:25px;color:#b8d1e7;line-height:1.9}#hammer-legacy-catalog a{display:block;font:8px/1.5 Orbitron,monospace;padding:10px;background:#33669935;border:1px solid #33669970;margin:7px}
.hammer-stone-hud{box-sizing:border-box;height:88px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;border:18px solid transparent;border-left-width:43px;border-right-width:43px;border-radius:0;border-image-source:var(--hammer-hud-frame);border-image-slice:70 135 fill;border-image-repeat:stretch;background:#000;overflow:visible;box-shadow:none;text-shadow:0 0 7px #336699;isolation:isolate;padding:0}
.hammer-stone-hud .hammer-hud-cell{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:0 10px;color:#edf6ff}
.hammer-stone-hud .hammer-hud-cell:not(:first-child):before{content:'';position:absolute;left:-12px;top:-18px;width:24px;height:88px;background:var(--hammer-divider) center/100% 100% no-repeat;pointer-events:none;z-index:2}
.hammer-stone-hud small{font:800 9px/1.3 Orbitron,monospace;letter-spacing:.03em;text-align:center;white-space:nowrap;color:#cfe8ff;max-width:100%;overflow:hidden;text-overflow:ellipsis;margin:0}.hammer-stone-hud strong{font:800 19px/1.2 Orbitron,monospace;letter-spacing:.02em;white-space:nowrap;text-align:center;max-width:100%;overflow:hidden;text-overflow:ellipsis;color:#f0f8ff}.hammer-stone-hud #level-name{font-size:12px}.hammer-stone-hud #mode-label{font-size:7px}
.hud-bottom{border:13px solid transparent;border-left-width:30px;border-right-width:30px;border-image-source:var(--hammer-hud-frame);border-image-slice:70 135 fill;border-image-repeat:stretch;border-radius:0;background:#000;box-shadow:none;padding:1px 5px;grid-template-columns:minmax(190px,1.1fr) minmax(160px,.8fr) minmax(170px,1fr);gap:15px;height:112px}
.hud-bottom .inventory{gap:4px;align-items:center}.hud-bottom .inventory button{border-color:#33669980;background:#041526;border-width:1px;border-radius:2px;min-height:58px;padding:4px 2px}.hud-bottom .slot-name{font:7px/1.5 Orbitron,monospace}.hud-bottom .slot-count{font:10px/1.5 Orbitron,monospace;color:#e7f3ff}.hud-bottom .slot-number{font-size:7px}.hud-bottom .hud-message{padding-left:10px;border-color:#33669970}.hud-bottom .hud-message b{font:8px/1.5 Orbitron,monospace;color:#c5e0f8}.hud-bottom .hud-message span{font:11px/1.5 Arial,sans-serif}.hud-bottom .meter{background:#031120;border-color:#33669980;border-radius:1px}.hud-bottom .meter i{background:#0b1d30}.hud-bottom .energy i.lit{background:#d94f5e}.hud-bottom .power i.lit{background:#336699}.hud-bottom .battery i.lit{background:#dbeafa}.hud-bottom .meters b,.hud-bottom .meters output{font-family:Orbitron,monospace;font-size:8px}#inventory-empty{grid-column:1/-1;font:8px/1.8 Orbitron,monospace;color:#7ea4ca;letter-spacing:.05em;text-align:center;white-space:nowrap}
body[data-hammer-mode=play][data-hammer-test=false] .play-toolbar{display:none}body[data-hammer-mode=play][data-hammer-test=true] .play-toolbar>span,body[data-hammer-mode=play][data-hammer-test=true] .play-toolbar button:not(#back-editor){display:none}body[data-hammer-mode=play][data-hammer-test=true] .play-toolbar{padding:5px}
#hammer-scenery-speech{position:absolute;z-index:7;max-width:300px;color:#8ebcf2;font:800 13px/1.6 Orbitron,monospace;text-align:center;text-shadow:0 1px 3px #000,0 0 12px #336699;transform:translate(-50%,-100%);pointer-events:none}
@media(max-width:1100px){.workspace.editor-open{grid-template-columns:240px minmax(0,1fr)}.hammer-stone-hud{border-left-width:27px;border-right-width:27px;height:80px}.hammer-stone-hud .hammer-hud-cell:not(:first-child):before{height:80px}.hammer-stone-hud strong{font-size:14px}.hammer-stone-hud small{font-size:7px}.hammer-stone-hud #level-name{font-size:10px}.hud-bottom{grid-template-columns:minmax(140px,1fr) minmax(140px,1fr);gap:10px}.hud-bottom .hud-message{grid-column:1/-1;border:0;padding:0;display:none}}
@media(max-width:700px){.workspace.editor-open{grid-template-columns:190px minmax(0,1fr);gap:5px}.editor-panel.editor-workbench{padding:6px}.tool-grid{gap:3px;padding:3px}.tool-grid .tool-card{font-size:6px;min-height:69px}.scenery-preview{width:48px;height:39px}.hammer-stone-hud{height:66px;border-width:12px 18px}.hammer-stone-hud .hammer-hud-cell{padding:0 3px;gap:3px}.hammer-stone-hud .hammer-hud-cell:not(:first-child):before{height:66px;top:-12px;left:-7px;width:14px}.hammer-stone-hud small{font-size:5px}.hammer-stone-hud strong{font-size:10px}.hammer-stone-hud #level-name{font-size:7px}.hammer-stone-hud #mode-label{font-size:5px}.hud-bottom{border-width:10px 18px;padding:0 3px;height:94px;min-height:94px}.hud-bottom .slot-name{font-size:5px}#inventory-empty{font-size:6px}.hud-bottom .inventory button{min-height:48px}.hud-bottom .meter{gap:1px}.hud-bottom .meters{min-width:0}.hud-bottom .meters b,.hud-bottom .meters output{font-size:6px}.hud-bottom .meters>div{grid-template-columns:9px 1fr 20px;gap:3px}#selected-tool-inspector{display:block}#selected-tool-preview{display:none}}
/* Owner supplied exact stone bars. Full native PNGs are unchanged; source crops
   TOP [0,243,2170,231], BOTTOM [0,248,2170,181] exclude only black padding. */
body[data-hammer-mode="play"]{height:100dvh;min-height:0;overflow:hidden;padding:6px 14px}
body[data-hammer-mode="play"] .shell{height:100%;min-height:0;display:flex;flex-direction:column}
body[data-hammer-mode="play"] .workspace{flex:1;min-height:0;display:flex}
body[data-hammer-mode="play"] .game-column{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;gap:3px}
body[data-hammer-mode="play"] #viewport{flex:1;min-height:140px;height:auto!important;max-height:none;aspect-ratio:auto;border-radius:2px}
body[data-hammer-mode="play"] .play-toolbar{flex:none;min-height:28px;padding:2px 0;gap:4px}
body[data-hammer-mode="play"] .play-toolbar>span,body[data-hammer-mode="play"] .footer-hint,body[data-hammer-mode="play"] .shell>footer{display:none}
body[data-hammer-mode="play"] .touch-controls{flex:none;margin:2px 0}
body:not([data-hammer-mode="menu"]) .hud-top.hammer-stone-hud{position:relative;display:block!important;width:100%;height:auto!important;min-height:0;aspect-ratio:2170/231;flex:none;margin:0;padding:0;border:0;border-image:none;border-radius:0;background:#000 url('owner-hud-top97.png') center 49.1902834%/100% 313.8528139% no-repeat;box-shadow:none;overflow:hidden;text-shadow:0 1px 2px #000,0 0 4px #000;color:#f5e9d3}
.hud-top.hammer-stone-hud .hammer-hud-cell{position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:0;gap:4%;height:62%;top:13%;min-width:0}
.hud-top.hammer-stone-hud .hammer-hud-cell::before{display:none!important}
.hud-top.hammer-stone-hud .hammer-hud-cell:nth-child(1){left:32%;width:21.5%;height:45%;top:16%}
.hud-top.hammer-stone-hud .hammer-hud-cell:nth-child(2){left:65%;width:8.8%}
.hud-top.hammer-stone-hud .hammer-hud-cell:nth-child(3){left:15.3%;width:9.5%}
.hud-top.hammer-stone-hud .hammer-hud-cell:nth-child(4){left:32%;width:21.5%;top:59%;height:16%;flex-direction:row;gap:8px}
.hud-top.hammer-stone-hud .hammer-hud-cell:nth-child(5){left:83.4%;width:12.4%}
.hud-top.hammer-stone-hud small{font:700 clamp(6px,.66vw,10px)/1.3 Orbitron,monospace;color:#d0c1a7;letter-spacing:.06em;white-space:nowrap;margin:0}
.hud-top.hammer-stone-hud strong{font:800 clamp(10px,1.5vw,23px)/1.3 Orbitron,monospace;color:#f2e6cc;letter-spacing:.025em}
.hud-top.hammer-stone-hud #level-name{font-size:clamp(9px,1.17vw,18px)}
.hud-top.hammer-stone-hud #mode-label{font-size:clamp(6px,.64vw,10px)}
.hud-top.hammer-stone-hud #hud-items-value{font-size:clamp(8px,.8vw,12px)}
body:not([data-hammer-mode="menu"]) .hud-bottom{position:relative;display:block;width:100%;height:auto!important;min-height:0;aspect-ratio:2170/181;flex:none;margin:0;padding:0;border:0;border-image:none;border-radius:0;background:#000 url('owner-hud-bottom97.png') center 45.5882353%/100% 400.5524862% no-repeat;box-shadow:none;overflow:hidden;text-shadow:0 1px 2px #000}
.hud-bottom .inventory{position:absolute;left:2.8%;top:15%;width:29.4%;height:64%;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1.9%;align-items:center}
.hud-bottom .inventory button{position:relative;min-width:0;min-height:0;width:100%;height:100%;padding:0 1px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#e3d4b7;opacity:1}
.hud-bottom .slot-name{font:700 clamp(4px,.46vw,7px)/1.2 Orbitron,monospace;color:#d3c6ad;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hud-bottom .slot-number{font:600 clamp(4px,.45vw,7px)/1.2 Orbitron,monospace;color:#a7977d}
.hud-bottom .slot-count{font:800 clamp(7px,.7vw,11px)/1.2 Orbitron,monospace;color:#faf0db}
.hud-bottom #inventory-empty{position:absolute;top:100%;left:0;width:100%;font:600 clamp(5px,.5vw,8px)/1.4 Orbitron,monospace;color:#b7a58c}
.hud-bottom .meters{position:absolute;left:36.7%;top:18%;width:37%;height:58%;display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:3px}
.hud-bottom .meters>div{grid-template-columns:4% minmax(0,1fr) 7%;gap:8px;font:700 clamp(7px,.75vw,12px)/1 Orbitron,monospace;color:#dfd0b4}
.hud-bottom .meters b,.hud-bottom .meters output{font-size:clamp(6px,.65vw,10px)}
.hud-bottom .meter{height:70%;padding:0 2px;border:0;background:#090a0a;gap:2px}
.hud-bottom .meter i{background:#201d18}
.hud-bottom .energy i.lit{background:#d27564}.hud-bottom .power i.lit{background:#6697c1}.hud-bottom .battery i.lit{background:#e7dfc9}
.hud-bottom .hud-message{position:absolute;left:77%;top:26%;width:19%;height:44%;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:0;border:0}
.hud-bottom .hud-message b{font:800 clamp(6px,.62vw,10px)/1.3 Orbitron,monospace;color:#e4d1ad;letter-spacing:.04em}
.hud-bottom .hud-message span{font:clamp(6px,.68vw,11px)/1.35 Arial,sans-serif;color:#d0c1a5}
.hud-bottom .hud-message progress{height:3px;accent-color:#c4a77e}
@media(max-width:760px){body[data-hammer-mode="play"]{padding:4px}.hud-top.hammer-stone-hud{min-height:65px!important;aspect-ratio:auto!important}.hud-top.hammer-stone-hud strong{font-size:9px}.hud-top.hammer-stone-hud #level-name{font-size:8px}.hud-top.hammer-stone-hud small,.hud-top.hammer-stone-hud #mode-label{font-size:5px}body:not([data-hammer-mode="menu"]) .hud-bottom{min-height:64px;aspect-ratio:auto}.hud-bottom .hud-message span{font-size:6px}.hud-bottom .meters>div{gap:3px}.hud-bottom .meter{gap:1px}.hud-bottom .hud-message{display:flex}.hud-bottom .inventory{gap:1%}}


/* Explicit allowlisted world background guide. Existing maps do not resize. */
.hammer-background-controls102{margin:8px 0;padding:9px;border:1px solid #33669988;border-radius:4px;background:#071a2a}
.hammer-background-controls102 h3{margin:0 0 6px;font:700 10px/1.5 Orbitron,monospace;color:#c4d9eb}
.hammer-background-controls102 label{margin:5px 0;font-size:10px}.hammer-background-controls102 select,.hammer-background-controls102 input[type=number]{font-size:12px!important;min-height:30px;padding:4px 7px!important}
.hammer-bg-size102{display:grid;grid-template-columns:1fr 1fr;gap:7px}.hammer-background-controls102 input[type=range]{width:100%;accent-color:#336699;min-height:20px}
.hammer-background-controls102>div:last-of-type{display:flex;gap:6px}.hammer-background-controls102 button{flex:1;min-width:0;white-space:normal;font-size:8px!important;padding:6px!important}
#hammer-bg-hint{font:11px/1.5 Arial,sans-serif;margin:6px 0 0;color:#a7c1d6;overflow-wrap:anywhere}

/* Six actual consumable slots; batteries retain the separate goal counter. */
.hud-bottom .inventory button[data-empty="true"] {opacity:.32}
.hud-bottom .inventory button[disabled] {cursor:default}
.hud-bottom .inventory button .hammer-inventory-sprite {filter:var(--hammer-atlas-filter,none)}
.hud-bottom #hammer-active-effects {display:block;color:#ffdc76;font:700 clamp(5px,.52vw,9px)/1.25 Orbitron,monospace;white-space:nowrap}

/*117 native inventory icons + keys/counts; labels remain in accessible names. */
.hud-bottom .inventory .slot-name {display:none}
.hud-bottom .hud-message b,.hud-bottom .hud-message span {font-family:Orbitron,'Segoe UI',sans-serif}
.hud-bottom #action-message {font:600 clamp(6px,.58vw,10px)/1.3 Orbitron,'Segoe UI',sans-serif;white-space:normal;overflow-wrap:break-word;word-break:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden;max-height:6.5em}
body[data-hammer-mode="editor"] #hammer-book-hint-controls {display:grid;gap:6px;padding:10px;border:1px solid #336699;background:#0a1e34;color:#d4e7fc;font:700 11px/1.4 Orbitron,sans-serif}
body[data-hammer-mode="editor"] #hammer-book-hint-controls[hidden] {display:none}
body[data-hammer-mode="editor"] #hammer-book-hint {width:100%;min-width:0;min-height:80px;resize:vertical;max-height:140px;font:13px/1.5 'Segoe UI',Arial,sans-serif;padding:8px;user-select:text}
body[data-hammer-mode="editor"] #hammer-book-hint-count {font:11px/1.3 'Segoe UI',Arial,sans-serif;text-align:right;color:#a3c2e0}
