/* MS-0.2 — progressive visual upgrade. Original IDs and gameplay controls stay intact. */
:root {
  color-scheme: dark;
  --studio-library-width:258px; --studio-inspector-width:300px;
  --line:#26374b;--panel:#111c2d;--muted:#9aaec0;--gold:#e0c58d;--mint:#86dbc7;--purple:#bd9bff;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:13px;color:#e3e9f5;background:#09111e;
}
body {background:radial-gradient(ellipse at 35% -32%,#272452 0,transparent 45%),#09111e}
button, input, select {font-family:inherit}
button {background:#1a2940;border:1px solid #30425e;border-radius:9px;color:#e4e9f3;min-height:32px;padding:7px 11px;font-size:12px;font-weight:520;transition:background .14s,border .14s,transform .14s,box-shadow .14s}
button:hover {background:#273a56;border-color:#6b7a9f}
button:active:not(:disabled){transform:translateY(1px)}
button:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible {outline:2px solid #ceb2ff;outline-offset:2px}
button.active {background:#4a3673;border-color:#9b7ad6;color:#fcf7ff;box-shadow:inset 0 0 0 1px #9273d24b}
button:disabled{opacity:.37;cursor:not-allowed}
input,select {background:#101b2d;border:1px solid #334560;color:#edf2fb;border-radius:8px;min-height:31px;padding:7px 9px}
input::placeholder {color:#788ca4}
input[type=checkbox] {accent-color:#9d81e6;min-height:auto}
input[type=number] {font-variant-numeric:tabular-nums}
small,p {color:#9fb0c4}
header {height:74px;gap:22px;padding:0 18px;border-color:#2c3a54;background:linear-gradient(112deg,#151d35 0%,#0e1a2a 48%,#0b1727 100%);box-shadow:0 3px 20px #0003;position:relative;z-index:5}
header::after {content:'';position:absolute;left:18px;bottom:-1px;width:160px;height:2px;background:linear-gradient(90deg,#aa85f4,transparent);pointer-events:none}
.brand {min-width:264px;gap:10px}
.brand strong {font:650 18px/1.2 ui-sans-serif,system-ui,sans-serif;letter-spacing:.4px;color:#f2eaff}
.brand strong span {display:block;font:600 9px/1.5 ui-sans-serif,system-ui,sans-serif;letter-spacing:2.3px;color:#a38bd7;margin-top:2px}
.brand small {font-size:10px;color:#a6b5ca;letter-spacing:.1px;margin-top:3px}
.crystal {font-size:39px;color:#bb9ffb;text-shadow:0 0 18px #9458f5a8,0 0 34px #7650d157}
nav {gap:5px}
nav button {background:transparent;border-color:transparent;font-size:12px;color:#bac6d9;font-weight:550}
nav button:hover {background:#243455;border-color:#36486c;color:#f3effd}
.actions {gap:6px}
.actions #command-trigger {background:#111d31;border-color:#3d4a6b;min-width:140px;display:flex;align-items:center;gap:7px;justify-content:space-between}
#command-trigger kbd {font:600 10px ui-monospace,monospace;color:#aab5ca;padding:3px 5px;background:#24334a;border:1px solid #394765;border-radius:5px;white-space:nowrap}
#quick-add {background:#332756;border-color:#76569e;color:#e7d9ff}
.actions button.view-toggle {min-width:32px;font-size:17px;padding:4px 7px}
#undo,#redo{font-size:21px;min-width:34px;padding:3px 5px}
.actions #save {background:#243b4a;border-color:#456171}
.actions #export {background:#202c45;border-color:#4c557d;color:#e1dff7}
.primary,#play{background:linear-gradient(120deg,#5b3b96,#7754bc);border-color:#a387e0;color:#fff;font-weight:700;box-shadow:0 6px 18px #3c287340}
.primary:hover,#play:hover{background:linear-gradient(120deg,#7050b0,#8b67ce);border-color:#d0afff}
#notice {height:29px;line-height:18px;font-size:11px;letter-spacing:.12px;color:#a7dbc9;padding:5px 18px;background:#102a31;border-bottom:1px solid #24545a}
#notice.error {color:#ffc6ce;background:#422333;border-color:#7d4651}
main {height:calc(100dvh - 131px);position:relative;display:grid;grid-template-columns:var(--studio-library-width) 48px minmax(0,1fr) var(--studio-inspector-width);gap:9px;padding:10px;transition:grid-template-columns .12s ease}
.library{grid-column:1;grid-row:1}.tools{grid-column:2;grid-row:1}.workspace{grid-column:3;grid-row:1}.inspector{grid-column:4;grid-row:1}
aside {gap:9px}
section {background:linear-gradient(180deg,#141f33,#111b2a);border:1px solid #304059;border-radius:11px;padding:11px;box-shadow:0 4px 12px #0001}
.section-head {color:#b7aacd;letter-spacing:1.22px;font-size:10px;font-weight:760;margin-bottom:9px;min-height:24px}
.section-head button {color:#c6d1e5;border:1px solid #40506d;background:#25324a;border-radius:7px}
#scene-search,#asset-search {font-size:12px;border-radius:8px;margin-bottom:9px}
#scene-list {gap:6px;max-height:158px}
#scene-list button {font-size:12px;padding:10px 11px;text-align:left;background:#101a2b;border:1px solid #2e3d55;border-radius:9px;color:#cad8e9}
#scene-list button.active {background:linear-gradient(100deg,#4c387c,#292848);border-color:#9870d4;box-shadow:inset 3px 0 #b99aff}
#scene-list small {font-variant-numeric:tabular-nums;font-size:9px;color:#9cafc4;float:none;display:block;margin-top:3px}
.button-row button{padding:6px 7px;font-size:10px;flex:1}
#new-scene {font-size:17px;font-weight:600}
.asset-section {padding:11px;scrollbar-color:#4a577b transparent}
.tabs {gap:5px;padding:2px;background:#0c1727;border:1px solid #2b3955;border-radius:9px;margin-bottom:10px}
.tabs button {border:0;background:transparent;padding:8px 5px;font-size:11px;color:#a5b5ce;min-height:31px}
.tabs button.active {background:#41326b;color:#f4eaff;border:1px solid #765ab2}
.palette-grid {gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
.asset-card {border-radius:9px;min-height:100px;padding:8px 5px;background:#0f1b2b;font-size:10px;border:1px solid #2c3d56;color:#bbcadc}
.asset-card img {height:65px;margin-bottom:8px;border-radius:5px}
.asset-card.active {background:#33294d;border-color:#a080ed}
.terrain-card {min-height:79px;height:auto;padding:11px;gap:10px;font-size:11px;background:linear-gradient(180deg,#1d3040,#15242f)}
.terrain-icon {height:21px;background:linear-gradient(#6a8c6d,#26394c);border-top:5px solid #9bbd86}
.type-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.type-list button {font-size:11px;padding:9px 7px;text-align:left;background:#17273c;min-height:46px}
#minimap {height:70px;border-radius:7px;border:1px solid #51607e}
#map-size{display:block;margin-top:5px;color:#b3c2d6}
.tools{padding:7px 5px;border:1px solid #354562;border-radius:11px;background:linear-gradient(180deg,#18263f,#111e30);gap:6px;align-items:stretch;scrollbar-width:thin}
.tools button {width:36px;min-height:38px;height:38px;border-radius:9px;font-size:19px;background:transparent;border-color:transparent;color:#9eb2cd}
.tools button:hover {background:#273954;color:#f7f2ff}
.tools button.active {background:linear-gradient(135deg,#57358f,#4b3a7a);border-color:#9877da;color:#f8efff;box-shadow:0 3px 12px #6f4da845}
.workspace {border:1px solid #354861;border-radius:12px;background:#0d1928;box-shadow:0 0 0 1px #18284333,0 14px 30px #0002;min-width:0}
.workspace-context {display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 14px;background:linear-gradient(90deg,#202940,#17263c);border-bottom:1px solid #334561;min-height:55px}
.context-left {display:flex;gap:9px;align-items:center;min-width:0;flex-wrap:wrap}
.context-left .eyebrow {font-size:9px;color:#8c9db8;letter-spacing:1px;font-weight:800;padding-right:8px;border-right:1px solid #465571}
#tool-heading {font-size:12px;color:#e9dafd;white-space:nowrap}
#context-hint {font-size:10px;color:#a9b9cf;overflow:hidden;max-width:510px;text-overflow:ellipsis;white-space:nowrap}
.context-right {display:flex;gap:5px;align-items:center;flex-shrink:0}
.context-right button {min-height:29px;padding:5px 9px;font-size:12px}
.canvas-bar {padding:8px 11px;min-height:45px;background:#131f31;border-bottom:1px solid #2a3e54;gap:8px}
.canvas-bar>span {font-size:12px;font-weight:700;color:#e7d1a8}
.canvas-bar label{font-size:11px;color:#b6c4d8}
.canvas-bar input[type=number]{width:60px;font-size:11px}
.canvas-bar button {font-size:11px}
.canvas-wrap {background:radial-gradient(ellipse at center,#14243a,#0b1323 75%)}
#canvas-caption {top:12px;left:12px;padding:9px 12px;border:1px solid #687aa35e;border-radius:8px;background:#0c1628d7;font-size:10px;letter-spacing:.9px;color:#d2c6eb;box-shadow:0 3px 15px #0005}
.dot{height:7px;width:7px;box-shadow:0 0 12px #93e3cd;background:#8bdbce}
.canvas-tip {position:absolute;right:14px;bottom:14px;z-index:1;pointer-events:none;color:#c5d5e7;font-size:10px;background:#0a1728cd;border:1px solid #334662;border-radius:8px;padding:7px 10px}
.edit-row {padding:9px;background:#121f31;gap:6px;border-color:#2d3c56}
.edit-row button,.edit-row select {font-size:11px;padding:6px 9px;min-height:30px}
.diagnostics {height:156px;background:#101b2d;border-color:#31415c;padding:7px 11px 9px;overflow:hidden;display:flex;flex-direction:column}
.diagnostics .section-head{flex-shrink:0;margin-bottom:6px}
.diagnostics .section-head input{width:210px;min-height:29px;font-size:11px}
.diagnostics .section-head button{font-size:11px}
.diag-tabs {display:flex;align-items:center;gap:4px}
.diag-tabs .diag-tab {font-size:11px;min-height:29px;padding:6px 11px;color:#9fb3d0;border:0;background:transparent;border-radius:8px;letter-spacing:.1px}
.diag-tabs .diag-tab.active{color:#f6ebff;background:#40345c;border:1px solid #735c9b;box-shadow:inset 0 -2px #ab8bdd}
#validation-list,#object-explorer {overflow:auto;min-height:0;flex:1;scrollbar-color:#5c6585 transparent}
#validation-list[hidden],#object-explorer[hidden]{display:none}
#object-list {display:flex;flex-direction:column;gap:2px}
.diag {font-size:11px;padding:7px 10px;border-radius:7px;min-height:31px;background:#19253b;border:1px solid transparent;margin:2px 0;color:#f0d6a2}
.diag.blocker {color:#ffb3c0;border-color:#703d58;background:#302236}
.object-count-line {font-size:10px;color:#829ab8;padding:4px 8px}
.object-list-item {width:100%;border:0;background:transparent;display:flex;gap:9px;align-items:center;text-align:left;border-radius:7px;padding:7px 9px;min-height:46px}
.object-list-item:hover {background:#253653}
.object-list-item.active {background:#3b305d;border:1px solid #8f6cc1}
.object-glyph {font-size:18px;color:#bd9df7;width:24px;text-align:center}
.object-label {flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.object-label strong {font-size:11px;color:#dfe8f7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.object-label small {font-size:9px;color:#95a8c1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.object-focus-icon {font-size:15px;color:#92a8c9}
.empty-state {font-size:11px;padding:11px}
.inspector>section:first-child {max-height:47%;scrollbar-color:#515f82 transparent}
.properties {scrollbar-color:#515f82 transparent;padding:12px}
.layer {padding:3px 5px;border-radius:8px;gap:7px}
.layer.active {background:#352b50;border-color:#866abb}
.layer>.name {font-size:11px;text-overflow:ellipsis}
.layer>button {min-height:28px;padding:4px 6px}
.field{grid-template-columns:minmax(84px,40%) 1fr;gap:8px;font-size:11px;margin:8px 0;color:#a9bad0}
.field input,.field select {font-size:11px;padding:7px 8px}
.prop-group{padding:12px 0 4px;font-weight:800;letter-spacing:1px;color:#d6b5fb}
#layer-settings{border-color:#2e3b57;margin-top:12px}
#history {font-size:11px;max-height:90px}
footer{height:28px;background:#0e1829;border-color:#2b3954;color:#90a5be;font-size:10px;gap:15px;padding:5px 13px}
.footer-shortcut{margin-left:6px;color:#6f83a1}
#dirty {color:#d9c69b;white-space:nowrap}
.status-context{display:flex;align-items:center;gap:6px;white-space:nowrap;color:#bad8ce}
.status-light{height:7px;width:7px;border-radius:50%;background:#6addbb;box-shadow:0 0 9px #48bb9c}
#performance {margin-left:auto;font-variant-numeric:tabular-nums}
.resize-grip {position:absolute;top:13px;bottom:13px;width:7px;z-index:3;cursor:col-resize;border-radius:3px;opacity:0;transition:opacity .15s;background:#ad8ce861}
.resize-grip:hover,.resize-grip.dragging,.resize-grip:focus-visible {opacity:1}
.resize-grip-left {left:calc(10px + var(--studio-library-width) + 1px)}
.resize-grip-right{right:calc(10px + var(--studio-inspector-width) + 1px)}
body.library-hidden main {grid-template-columns:0 48px minmax(0,1fr) var(--studio-inspector-width)}
body.inspector-hidden main {grid-template-columns:var(--studio-library-width) 48px minmax(0,1fr) 0}
body.library-hidden.inspector-hidden main {grid-template-columns:0 48px minmax(0,1fr) 0}
body.library-hidden .library,body.inspector-hidden .inspector {display:none}
body.library-hidden #resize-left,body.inspector-hidden #resize-right {display:none}
body.focus-mode main {grid-template-columns:minmax(0,1fr);padding:8px}
body.focus-mode .workspace {grid-column:1;grid-row:1}
body.focus-mode .library,body.focus-mode .inspector,body.focus-mode .tools,body.focus-mode .resize-grip {display:none}
body.diagnostics-hidden .diagnostics {display:none}
body.high-contrast{--line:#5b7293;--panel:#182a40;--muted:#d4dfef}
body.high-contrast section,body.high-contrast .workspace {border-color:#8198ba}
body.high-contrast button {border-color:#7186a4}
#command-modal {padding:0;max-width:min(720px,92vw);width:650px;max-height:min(74dvh,660px);border:1px solid #8c7ac1;border-radius:15px;background:#10192b;box-shadow:0 30px 100px #000d;overflow:hidden}
#command-modal::backdrop {background:#060d1bbc;backdrop-filter:blur(5px)}
.command-shell {display:flex;flex-direction:column;min-height:200px;max-height:74dvh}
.command-input-row {display:flex;gap:10px;align-items:center;border-bottom:1px solid #3a4566;padding:13px 15px;background:#1a2640}
.command-icon{font-size:24px;color:#b59ce6}
#command-search {flex:1;background:transparent;min-height:42px;border:0;font-size:15px;outline:none;color:#eef1ff}
.command-input-row kbd{padding:5px 8px;border-radius:6px;border:1px solid #535775;background:#303653;font:11px ui-monospace,monospace;color:#e0d1f5}
#command-list {flex:1;min-height:0;overflow:auto;padding:8px;scrollbar-color:#55527b transparent}
.command-result {display:flex;width:100%;justify-content:space-between;align-items:center;gap:10px;border:1px solid transparent;border-radius:8px;background:transparent;text-align:left;min-height:43px;padding:9px 13px}
.command-result strong {font-size:12px;font-weight:580;color:#e1e9fb}
.command-result span {font-size:10px;color:#93a4c1;white-space:nowrap}
.command-result.active,.command-result:hover {background:#342c58;border-color:#7961b2}
.command-empty {padding:14px;text-align:center}
.command-footer {margin:0;padding:11px 16px;border-top:1px solid #34415d;font-size:10px;text-align:right;background:#151f34}
.quick-search {width:100%;font-size:13px;padding:10px 12px}
.quick-heading {font-size:11px;letter-spacing:1.1px;color:#bda4e6;margin:17px 0 10px;text-transform:uppercase}
.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.quick-tile {min-height:78px;padding:13px;text-align:left;border-color:#465273;background:linear-gradient(145deg,#1d2b46,#172238);display:flex;flex-direction:column;justify-content:space-between;gap:5px}
.quick-tile strong {font-size:12px;color:#e5def9}
.quick-tile small {font-size:10px;color:#9bb2c8}
.template-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:15px}
.template-card{min-height:190px;padding:16px;display:flex;flex-direction:column;align-items:start;text-align:left;gap:10px;background:linear-gradient(140deg,#27284a,#19283d);border-color:#6a568a}
.template-card strong{font-size:15px;color:#e9dafd}
.template-card p{font-size:11px;line-height:1.6;margin:0;flex:1}
.template-card small{font-size:10px;color:#c6b3e1}
#modal {border-radius:14px;border-color:#7a71a2;background:#131e31;box-shadow:0 30px 100px #000d}
.modal-head {padding-bottom:12px;border-bottom:1px solid #36445d}
#modal-content .field{grid-template-columns:minmax(120px,38%) 1fr}
#modal-content .modal-actions {flex-wrap:wrap}
.project-card,.world-card{background:#1a2940;border-color:#3d4e6b;border-radius:10px}
#play-modal {background:#0e182a;border-color:#8b74c3}
#play-output {font-size:11px;color:#bcd5e4}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (max-width:1350px) {
 header {gap:8px;padding:0 10px}
 .brand {min-width:205px}.brand strong {font-size:15px}.brand strong span{font-size:8px}
 main{grid-template-columns:min(22vw,var(--studio-library-width)) 42px minmax(0,1fr) min(23vw,var(--studio-inspector-width));padding:7px;gap:6px}
 .context-left .eyebrow{display:none}
 #context-hint{max-width:250px}
 .actions #command-trigger{min-width:98px}
 #command-trigger kbd{display:none}
 .resize-grip{display:none}
}
@media (max-width:1050px) {
 nav{display:none}
 .actions #command-trigger span{display:none}
 .actions #command-trigger{min-width:36px}
 #context-hint{display:none}
 .canvas-tip{display:none}
 .footer-shortcut{display:none}
 .palette-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px) {
 header{height:59px}.brand strong span{display:none}
 #notice{height:31px;padding:5px 9px}
 main,body.library-hidden main,body.inspector-hidden main,body.focus-mode main {height:calc(100dvh - 139px);display:block;padding:5px}
 .workspace,body.focus-mode .workspace{height:100%}
 .workspace-context{min-height:43px;padding:6px 9px}
 .context-right{gap:3px}.context-right button{min-height:27px;font-size:10px;padding:3px 6px}
 #tool-heading{font-size:11px}
 .canvas-bar{display:none}
 .canvas-tip{display:none}
 .diagnostics{height:142px}
 .diagnostics .section-head input{width:125px;font-size:10px}
 footer{font-size:9px;gap:7px;padding:5px}
 #performance{display:none}
 #modal-content .field{grid-template-columns:1fr}
 .template-grid,.quick-grid{grid-template-columns:1fr}
 .template-card{min-height:105px}
 .actions #command-trigger,.actions #quick-add,.actions .view-toggle{display:none}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

.preference-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 10px;margin:5px 0;border:1px solid #374863;background:#1b2a42;border-radius:9px;font-size:12px;color:#dce7f6}.preference-row input[type=range]{width:180px;accent-color:#b697f1}.preferences-widths{margin-top:15px}#snap-selection:disabled{opacity:.35}

.canvas-wrap.drag-accept::after{content:'PUSŤ OBRÁZEK PRO VLOŽENÍ DO SCÉNY';position:absolute;inset:16px;z-index:4;pointer-events:none;display:grid;place-items:center;background:#31264c99;color:#fff;font-weight:800;letter-spacing:1.4px;border:2px dashed #c8a4ff;border-radius:12px;font-size:15px}.asset-card[draggable=true]{cursor:grab}.asset-card[draggable=true]:active{cursor:grabbing}

/* Stability pass: keep phone controls reachable without horizontal scrolling. */
@media(max-width:760px){
 header .brand{min-width:0;flex:1;overflow:hidden}
 header .brand>div{min-width:0}
 header .brand small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
 header .actions{flex-shrink:0}
 .diagnostics .section-head{flex-wrap:wrap;gap:5px}
 .diagnostics .section-head>div:last-child{display:flex;gap:5px;flex:1;min-width:0}
 .diagnostics .section-head input{width:0;min-width:60px;flex:1}
 #context-state{overflow:hidden;text-overflow:ellipsis;max-width:175px}
 footer .status-context{min-width:0;flex:1}
 #selection-status{display:none}
 #touch-controls{flex-wrap:wrap}
 #touch-controls button{min-height:38px;flex:1}
}
@media(max-width:360px){
 #cursor{display:none}
 .brand strong{font-size:13px}
 .brand .crystal{font-size:28px}
 .diag-tabs .diag-tab{font-size:10px;padding:5px 7px}
}
@media(max-width:760px){
 body{display:flex;flex-direction:column}
 header,footer,#phone-note{flex-shrink:0}
 #notice{height:auto;min-height:31px;flex-shrink:0;overflow-wrap:anywhere}
 main,body.library-hidden main,body.inspector-hidden main,body.focus-mode main{height:auto;min-height:0;flex:1}
 .diagnostics .section-head>div:last-child{flex:0 0 100%;width:100%}
 #canvas-caption{max-width:calc(100% - 24px);overflow:hidden}
 #canvas-mode-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* MS-0.3.0 — editable two-pass depth masks */
.depth-designer{display:flex;flex-direction:column;gap:11px;min-width:0}
.depth-help{margin:0;color:#c6d2e6;line-height:1.6;font-size:12px}
.depth-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.depth-actions button{font-size:11px;min-height:32px;background:#293552;border:1px solid #526488;border-radius:8px}
.depth-actions button:hover{background:#49376d;border-color:#ac8ddd}
.depth-actions .primary{background:#7352af;color:white;border-color:#b38cf0}
.depth-actions select{flex:1;min-width:150px}
.depth-preview{width:100%;height:auto;aspect-ratio:640 / 370;background:#0b1726;border:1px solid #5d5381;border-radius:9px;touch-action:none;cursor:crosshair}
.depth-status{font-size:11px;color:#b4cadb;margin:0;min-height:20px}
.depth-designer label{display:flex;align-items:center;gap:12px;font-size:12px;color:#b9c6db}
.depth-designer input[type=range]{flex:1;accent-color:#bb92eb}
#modal:has(.depth-designer){width:min(850px,96vw);max-height:96dvh;overflow:auto}

/* MS-0.4.0 — advanced depth mask designer */
.depth-preview{outline-offset:3px;touch-action:none;max-height:60vh;object-fit:contain}
.depth-preview:focus-visible{outline:2px solid #cdb8ff}
.depth-designer .depth-actions{gap:7px}
.depth-designer .depth-actions button{white-space:normal;line-height:1.25;min-height:34px;padding:7px 10px}
.depth-designer .depth-actions button:disabled{cursor:not-allowed;opacity:.4}
.depth-designer .depth-actions button:focus-visible{outline:2px solid #e1c6ff;outline-offset:2px}
.depth-designer .depth-snap-label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;background:#29364c;padding:6px 8px;border-radius:7px}
.depth-designer .depth-status{padding:5px 6px;border-left:2px solid #9277ce;line-height:1.5}
@media(max-width:760px){.depth-preview{max-height:40vh}.depth-designer .depth-actions button{min-height:38px}}
