.shortcut-key { display:inline-block; margin-left:5px; padding:1px 3px; border:1px solid currentColor; border-radius:3px; font:9px/1.2 ui-sans-serif,system-ui,sans-serif; opacity:.65; white-space:nowrap; vertical-align:middle; }
.tool .shortcut-key { margin:0; font-size:9px; }
#app { grid-template-rows:auto minmax(0,1fr); }
#topbar { flex-wrap:wrap; gap:8px 12px; padding:8px 12px; }
#topbar .brand { min-width:150px; }
#topbar .concept-box { min-width:440px; flex-wrap:wrap; }
#topbar .top-actions { flex-wrap:wrap; margin-left:auto; }
#dashboard { top:var(--planner-header,56px); }
#panPad { display:none; }
#designName { flex:1; min-width:100px; }
.concept-box .menu-wrap { flex-shrink:0; }
.btn.icon.shortcut-button { width:auto; min-width:34px; padding:6px; }
.form-label { display:block; margin:14px 0 7px; font-size:13px; }
#modal input[type=password] { width:100%; border:1px solid var(--line); border-radius:8px; padding:9px; font:inherit; }
#newDesignFile { display:block; width:100%; padding:10px 0; }
.readonly-notes { font-size:13px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
#cameraControls { position:absolute; left:12px; bottom:64px; z-index:4; flex-wrap:wrap; max-width:calc(100% - 120px); }
#cameraControls button { padding:5px 7px; font-size:12px; }
#app.nav-open #cameraControls { left:284px; max-width:calc(100% - 400px); }
#panel #tourCard { position:static; transform:none; width:100%; max-width:none; background:#fff; border-radius:0; box-shadow:none; padding:14px 16px; border-bottom:1px solid var(--line); }
#tourCard p,#tourDots { display:none; }
#tourCard.details-open p { display:block; }
#tourCard.details-open #tourDots { display:flex; }
#tourCard h3 { font-size:15px; margin:8px 0 12px; }
.tour-top { align-items:center; gap:5px; flex-wrap:wrap; }
.tour-ctrl { flex-wrap:wrap; }
.tour-ctrl .btn { flex:1; padding:6px; font-size:12px; }
#panel #walkHud { position:static; padding:12px 16px; gap:10px; background:#f7faff; border-bottom:1px solid var(--line); }
.walk-help { background:none; color:var(--ink2); padding:0; font-size:12px; line-height:1.7; }
.walk-help kbd { color:var(--ink); background:#e6edf5; }
.dpad { align-self:center; }
.dpad button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; border:1px solid var(--line); box-shadow:none; background:#fff; }
.dpad .shortcut-key { margin:0; }
.walk-turns { display:grid; grid-template-columns:1fr 1fr; gap:5px; width:100%; }
.walk-turns kbd { font:inherit; font-size:11px; margin-left:4px; }
#panel #minimap { position:static; max-width:100%; align-self:center; box-shadow:none; border:1px solid var(--line); }
#app.fp-view #toolOptions,#app.fp-view #props,#app.fp-view #palette { display:none!important; }
#app.fp-view #tools { opacity:.35; }
#app.fp-view #cameraControls { bottom:80px; }
#app.design-locked .lbl.room { cursor:default; pointer-events:none; }
#app.design-locked .tool:disabled { opacity:.35; cursor:default; }
#app.design-locked #btnLock { color:var(--blue); border-color:var(--blue); }
#conceptMenu .menu-lock-note { padding:8px 10px;margin-bottom:5px;border-bottom:1px solid var(--line);font-size:12px;line-height:1.4;color:var(--ink2); }
#conceptMenu button:disabled,#conceptMenu button:disabled:hover { color:#7b8794;background:#f3f5f7;cursor:not-allowed;opacity:.65; }
@media(max-width:1300px) { #btnCheat,#btnShot { display:none; } #topbar { gap:7px; } .brand div { display:none; } #topbar .shortcut-key { font-size:8px; margin-left:3px; } }
@media(max-width:1100px) { #topbar .concept-box { min-width:300px; } #topbar .btn { padding:6px 7px; } }
@media(max-width:760px) { #app { grid-template-rows:auto 58px minmax(200px,1fr) 34vh; } #app.fp-view { grid-template-rows:auto 0 minmax(220px,1fr) 32vh; } #app.fp-view #tools { display:none; } .top-actions { flex-wrap:wrap; } #cameraControls,#app.nav-open #cameraControls { left:6px; bottom:98px; max-width:calc(100% - 12px); background:rgba(255,255,255,.92); } #app.fp-view #cameraControls { bottom:88px; } #cameraControls button { padding:4px 5px; } #panel #walkHud { padding:10px 14px; } #panel #tourCard { padding:10px 14px; } #topbar .shortcut-key { font-size:8px; } }
@media(max-width:760px) {
  #tools { grid-row:2; } #stage { grid-row:3; min-height:0; } #panel { grid-row:4; min-height:0; }
  #topbar .brand { min-width:0; } #topbar .concept-box { min-width:100%; }
  #topbar .top-actions { margin-left:0; } #topbar .btn { padding:5px 6px; }
  #viewbar,#app.nav-open #viewbar { flex-wrap:nowrap; overflow-x:auto; justify-content:flex-start; max-width:calc(100% - 12px); left:6px; right:6px; transform:none; padding-bottom:3px; }
  #viewbar>.seg { flex-shrink:0; } #compass { bottom:50px; }
  #dashboard { top:0; }
  #cameraControls,#app.fp-view #cameraControls { bottom:58px; max-width:calc(100% - 48px); }
}
