/* Brick Studio — a calm, tactile, system-native creative workspace. */
:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --app-bg: #f7f8fa;
  --surface: #ffffff;
  --surface-alt: #f7f8fa;
  --surface-hover: #f1f3f7;
  --text: #1c202b;
  --text-subtle: #596173;
  --muted: #929aaa;
  --line: #e9ebf0;
  --line-strong: #dce0e9;
  --accent: #2675fa;
  --accent-hover: #1764e8;
  --accent-soft: #edf4ff;
  --selected-outline: rgba(38,117,250,.35);
  --canvas-bg: #edf0f6;
  --glass: rgba(255,255,255,.84);
  --glass-border: rgba(255,255,255,.93);
  --shadow: 0 8px 30px rgba(35,48,80,.07), 0 2px 7px rgba(35,48,80,.035);
  --deep-shadow: 0 14px 46px rgba(32,49,86,.12), 0 3px 12px rgba(32,49,86,.045);
  background: var(--app-bg);
  color: var(--text);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --app-bg: #14171d;
  --surface: #1c2029;
  --surface-alt: #262b35;
  --surface-hover: #313744;
  --text: #f5f7fc;
  --text-subtle: #c4cbd8;
  --muted: #929aab;
  --line: #323843;
  --line-strong: #414958;
  --accent: #72a8ff;
  --accent-hover: #93bcff;
  --accent-soft: #263956;
  --selected-outline: rgba(112,166,255,.5);
  --canvas-bg: #242935;
  --glass: rgba(36,42,54,.83);
  --glass-border: rgba(111,124,146,.24);
  --shadow: 0 8px 30px rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.1);
  --deep-shadow: 0 14px 48px rgba(0,0,0,.3), 0 3px 10px rgba(0,0,0,.18);
}
* {box-sizing:border-box}
body {margin:0;min-width:320px}
button,input,select {font:inherit}
button {cursor:pointer;touch-action:manipulation}
button:disabled {cursor:not-allowed;opacity:.38;transform:none!important}
button, select, input {outline-offset:3px}
:focus-visible {outline:3px solid var(--selected-outline)}
button:focus:not(:focus-visible) {outline:none}
button, input { -webkit-tap-highlight-color: transparent }
button, input, select {color:inherit}
button {transition:background-color .17s ease,border-color .17s ease,color .17s ease,box-shadow .17s ease,transform .17s ease}
button:active:not(:disabled) {transform:scale(.97)}
[hidden] {display:none!important}
.icon-sprite {position:absolute;width:0;height:0;overflow:hidden}
.icon {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}
.tiny-icon {width:14px;height:14px}
.app-shell {height:100dvh;min-height:540px;display:flex;flex-direction:column;overflow:hidden}
.topbar {height:83px;min-height:83px;display:grid;grid-template-columns:338px minmax(160px,1fr) auto;align-items:center;padding:0 25px 0 27px;background:var(--surface);border-bottom:1px solid var(--line);position:relative;z-index:3}
.brand {display:flex;align-items:center;gap:13px;white-space:nowrap}
.brand-mark {width:40px;height:40px;flex:0 0 40px;background:linear-gradient(145deg,#519dff 0%,#2276ed 60%,#1663d3 100%);border-radius:12px;display:grid;grid-template-columns:repeat(2,8px);grid-template-rows:repeat(2,8px);gap:4px;align-content:center;justify-content:center;box-shadow:0 4px 12px rgba(32,113,242,.19), inset 0 1px 1px rgba(255,255,255,.5);transform:rotate(-3deg)}
.brand-mark span {display:block;border-radius:3px;background:#e8f4ff;box-shadow:0 2px 0 rgba(16,69,162,.35),inset 0 1px 0 white}
.brand-copy {display:flex;flex-direction:column;gap:3px}
.brand-copy strong {font-size:16px;letter-spacing:-.7px;font-weight:720}
.brand-copy>span {font-size:9px;font-weight:700;letter-spacing:1.65px;color:var(--muted)}
.project-identity {display:flex;flex-direction:column;gap:4px;align-items:flex-start;min-width:0}
.project-caption {color:var(--muted);font-size:9px;font-weight:750;letter-spacing:1.5px}
.project-details {display:flex;gap:11px;align-items:center;min-width:0;max-width:100%}
#projectName {border:1px solid transparent;background:transparent;border-radius:7px;margin-left:-7px;padding:2px 6px;font-size:14px;font-weight:630;letter-spacing:-.2px;min-width:80px;width:190px;max-width:22vw;text-overflow:ellipsis;transition:background .15s,border .15s}
#projectName:hover,#projectName:focus {background:var(--surface-alt);border-color:var(--line-strong)}
.saved-state {color:var(--muted);font-size:10px;white-space:nowrap;display:flex;align-items:center;gap:6px}
.saved-dot {width:6px;height:6px;border-radius:50%;background:#35bd87;box-shadow:0 0 0 3px rgba(53,189,135,.10)}
.save-error .saved-dot {background:#ecae54;box-shadow:0 0 0 3px rgba(236,174,84,.12)}
.top-actions {display:flex;align-items:center;gap:8px}
.action-cluster {display:flex;align-items:center;gap:3px}
.action-divider {width:1px;height:25px;background:var(--line-strong);margin:0 4px}
.icon-button {width:37px;height:37px;display:grid;place-items:center;border:0;background:transparent;border-radius:10px;color:var(--text-subtle);padding:0}
.icon-button:hover:not(:disabled) {background:var(--surface-alt);color:var(--text)}
.utility-button {display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:10px 13px;font-size:11px;font-weight:670;white-space:nowrap}
.utility-button .icon {width:16px;height:16px}
.utility-button:hover {background:var(--surface-alt);border-color:var(--line-strong)}
.utility-strong {background:#252e42;color:#fff;border-color:#252e42;box-shadow:0 2px 6px rgba(15,28,61,.10)}
.utility-strong:hover {background:#354159;border-color:#354159}
:root[data-theme="dark"] .utility-strong {background:#e6efff;color:#1a2437;border-color:#e6efff}
:root[data-theme="dark"] .utility-strong:hover {background:#fff}
.theme-button .icon {width:19px;height:19px}
.workspace {flex:1;min-height:0;display:grid;grid-template-columns:342px minmax(0,1fr)}
.sidebar {position:relative;z-index:2;background:var(--surface);border-right:1px solid var(--line);min-height:0;overflow:hidden}
.sidebar-scroll {height:100%;overflow-y:auto;padding:32px 24px 28px;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}
.sidebar-scroll::-webkit-scrollbar {width:5px}
.sidebar-scroll::-webkit-scrollbar-thumb {background:var(--line-strong);border-radius:6px}
.sidebar-intro {margin-bottom:27px}
.overline {display:flex;align-items:center;gap:9px;color:var(--accent);font-size:9px;letter-spacing:1.75px;font-weight:800}
.overline-dash {width:14px;height:1.5px;background:var(--accent);display:inline-block}
h1,h2,p {margin-top:0}
.sidebar-intro h1 {font-weight:750;font-size:29px;line-height:1.16;letter-spacing:-1.5px;margin:14px 0 11px}
.sidebar-intro h1 em {font-style:normal;color:var(--accent)}
.sidebar-intro p {font-size:11.5px;line-height:1.75;color:var(--muted);max-width:275px;margin:0}
.mode-switch {padding:4px;border-radius:13px;background:var(--surface-alt);display:flex;gap:3px;margin:0 0 24px}
.mode-button {border:0;flex:1;text-align:center;font-size:11px;font-weight:680;padding:11px 6px;color:var(--muted);background:transparent;border-radius:10px;white-space:nowrap}
.mode-button:hover {color:var(--text)}
.mode-button.active {background:var(--surface);color:var(--text);box-shadow:0 1px 4px rgba(25,40,73,.1),0 1px 1px rgba(25,40,73,.05)}
.panel {animation:panel-enter .17s ease both}
@keyframes panel-enter {from{opacity:.65;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.control-section {margin:0 0 23px}
.section-header {display:flex;align-items:center;justify-content:space-between;margin:0 0 12px}
.section-header h2 {margin:0;font-size:12px;letter-spacing:-.15px;font-weight:730}
.section-caption {font-size:10px;font-weight:600;color:var(--muted)}
.kinds {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.kind-button {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);border-radius:11px;background:var(--surface);padding:11px 2px 9px;min-width:0;min-height:73px;color:var(--text-subtle);font-size:9px;font-weight:650}
.kind-button:hover {border-color:var(--line-strong);background:var(--surface-alt)}
.kind-button.active {background:var(--accent-soft);border-color:var(--selected-outline);color:var(--accent)}
.kind-glyph {height:21px;width:29px;display:flex;align-items:center;justify-content:center}
.kind-glyph svg {width:30px;height:21px;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.shapes {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.shape {height:59px;border:1px solid var(--line);border-radius:11px;background:var(--surface);padding:7px 3px 6px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;color:var(--text-subtle);font-size:9px;font-weight:670;white-space:nowrap}
.shape:hover {background:var(--surface-alt);border-color:var(--line-strong)}
.shape.active {background:var(--accent-soft);border-color:var(--selected-outline);color:var(--accent)}
.mini {display:grid;gap:2px;width:max-content;align-items:center;justify-items:center;filter:drop-shadow(0 1px 1px rgba(20,48,97,.12))}
.mini i {display:block;width:5px;height:5px;border-radius:50%;background:#aab9d3;box-shadow:0 .6px 0 #8fa3c6}
.shape.active .mini i {background:#72a8ff;box-shadow:0 .6px 0 #3479d9}
.color-section {margin-bottom:19px}
.colors {display:grid;grid-template-columns:repeat(6,1fr);gap:10px 5px;padding:2px 1px 3px}
.swatch {width:29px;height:29px;border:3px solid var(--surface);border-radius:50%;padding:0;outline:1px solid var(--line-strong);justify-self:center;position:relative;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.08)}
.swatch:hover:not(:disabled) {transform:scale(1.13)}
.swatch.active {outline:2px solid var(--accent);outline-offset:2px}
.swatch.active:after {content:'';position:absolute;width:5px;height:9px;border:solid rgba(27,41,72,.75);border-width:0 1.8px 1.8px 0;transform:rotate(45deg);left:8px;top:5px}
.swatch[data-color="#3f4547"].active:after,.swatch[data-color="#4d8bc9"].active:after,.swatch[data-color="#c74137"].active:after {border-color:#fff}
.custom-color {margin-top:13px;padding:10px 12px;background:var(--surface-alt);border-radius:10px;display:flex;align-items:center;justify-content:space-between;color:var(--text-subtle);font-size:10.5px;font-weight:650;cursor:pointer}
.custom-color>span {display:flex;align-items:center;gap:8px}
.custom-color input {appearance:none;width:29px;height:25px;border:0;padding:0;background:none;cursor:pointer}
.custom-color input::-webkit-color-swatch-wrapper {padding:2px}
.custom-color input::-webkit-color-swatch {border:2px solid var(--surface);border-radius:8px;box-shadow:0 0 0 1px var(--line-strong)}
.custom-color input::-moz-color-swatch {border:2px solid var(--surface);border-radius:8px}
.selection-card {border:1px solid var(--line);border-radius:13px;display:flex;align-items:flex-start;gap:10px;padding:13px 11px;background:var(--surface-alt);margin:13px 0 13px;min-height:70px}
.selection-card.selected {border-color:var(--selected-outline);background:var(--accent-soft)}
.selection-icon {width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:var(--surface);color:var(--accent);flex:none}
.selection-icon .icon {width:17px;height:17px}
.selection-card strong {display:block;font-size:10.8px;font-weight:740;margin:2px 0 4px}
.selection-card p {margin:0;color:var(--muted);font-size:10px;line-height:1.55}
.selection-card.selected p {color:var(--text-subtle)}
.build-actions {display:flex;flex-direction:column;gap:8px}
.primary-button {display:flex;align-items:center;justify-content:center;width:100%;gap:10px;background:#2675fa;border:1px solid #2675fa;color:white;border-radius:12px;padding:12px 14px;min-height:44px;font-size:12px;font-weight:720;box-shadow:0 3px 8px rgba(38,117,250,.18)}
.primary-button>span {display:flex;align-items:center;gap:8px}
.primary-button .icon {width:17px;height:17px;stroke-width:2.1}
.primary-button kbd {margin-left:auto;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);color:white}
.primary-button:hover:not(:disabled) {background:#1764e8;border-color:#1764e8;box-shadow:0 4px 13px rgba(38,117,250,.2)}
.inline-actions {display:grid;grid-template-columns:1fr 1fr;gap:8px}
.secondary-button {display:flex;align-items:center;justify-content:center;gap:7px;min-height:37px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:10.5px;font-weight:680;color:var(--text-subtle)}
.secondary-button .icon {width:14px;height:14px}
.secondary-button:hover:not(:disabled) {background:var(--surface-alt);border-color:var(--line-strong)}
.danger-button:not(:disabled):hover {color:#e55757;background:rgba(233,80,80,.06);border-color:rgba(233,80,80,.25)}
.text-button {display:block;width:100%;background:transparent;border:0;padding:5px 4px;color:var(--muted);font-size:10px;font-weight:630}
.text-button:hover {color:var(--accent)}
.sidebar-footer {border-top:1px solid var(--line);margin:28px 0 0;padding-top:21px;position:relative}
.footer-icon {width:30px;height:30px;display:grid;place-items:center;background:#e6f8ef;color:#26a772;border-radius:9px;float:left;margin-right:10px}
:root[data-theme="dark"] .footer-icon {background:#254438;color:#72dbac}
.footer-icon .icon {width:16px;height:16px}
.sidebar-footer p {color:var(--muted);line-height:1.6;font-size:10px;margin:0 0 14px}
.sidebar-footer strong {color:var(--text-subtle);font-weight:720}
.shortcut-link {border:0;background:transparent;display:flex;align-items:center;gap:9px;color:var(--text-subtle);font-size:10.5px;font-weight:650;padding:8px 0}
.shortcut-link .icon {width:15px;height:15px}
.shortcut-link .arrow-icon {width:12px;height:12px;margin-left:auto;color:var(--muted)}
.shortcut-link:hover {color:var(--accent)}
.panel-intro {padding-bottom:10px}
.eyebrow {font-size:9px;letter-spacing:1.45px;font-weight:800;color:var(--accent)}
.panel-intro h2 {font-size:22px;letter-spacing:-.9px;line-height:1.13;margin:10px 0}
.panel-intro p {font-size:11px;line-height:1.68;color:var(--muted);margin:0 0 12px}
.presets {display:flex;flex-direction:column;gap:9px;margin:6px 0 17px}
.preset {display:flex;align-items:center;text-align:left;gap:13px;border:1px solid var(--line);background:var(--surface);padding:12px 11px;border-radius:13px;width:100%}
.preset:hover {background:var(--surface-alt);border-color:var(--selected-outline);transform:translateY(-1px)}
.preset-art {flex:0 0 48px;height:47px;display:grid;place-items:center;font-size:29px;border-radius:11px;background:var(--surface-alt);color:var(--accent);font-weight:400}
.preset.house .preset-art {background:#f0f5ff;color:#3679e7}
.preset.castle .preset-art {background:#f4f0ff;color:#8b68d5}
.preset.rocket .preset-art {background:#fff0e8;color:#ed885f}
.preset.garden .preset-art {background:#e8f8ee;color:#3cae75}
.preset.heart .preset-art {background:#ffedf2;color:#ec6e95}
:root[data-theme="dark"] .preset-art {background:var(--surface-alt)!important}
.preset-copy {flex:1;min-width:0}
.preset-copy b {display:block;font-size:11.5px;letter-spacing:-.1px;margin-bottom:4px}
.preset-copy small {display:block;color:var(--muted);font-size:10px;line-height:1.35}
.preset-arrow {width:15px;height:15px;color:var(--muted)}
.subtle-button {width:100%;border-radius:11px;background:var(--surface-alt);border:1px solid var(--line);padding:12px;display:flex;justify-content:center;align-items:center;gap:9px;font-size:11px;font-weight:650;color:var(--text-subtle)}
.subtle-button:hover {background:var(--surface-hover);border-color:var(--line-strong)}
.subtle-button .icon {width:15px;height:15px}
.photo-upload {display:flex;align-items:center;flex-direction:column;justify-content:center;gap:9px;min-height:152px;border:1.5px dashed var(--line-strong);border-radius:14px;background:var(--surface-alt);color:var(--text-subtle);cursor:pointer;padding:17px 10px;margin:4px 0 14px;transition:.2s}
.photo-upload:hover {border-color:var(--accent);background:var(--accent-soft)}
.photo-upload>.icon {color:var(--accent);width:25px;height:25px}
.photo-upload strong {font-size:12px}
.photo-upload span {color:var(--muted);font-size:9px}
#photoPreview {width:100%;max-height:205px;object-fit:contain;border-radius:11px;margin:0 0 15px;background:var(--surface-alt)}
.form-stack {display:grid;gap:12px;margin-top:18px}
.field {color:var(--text-subtle);font-size:10.5px;font-weight:680;display:block}
.field select {width:100%;appearance:none;display:block;border:1px solid var(--line);border-radius:10px;background:var(--surface-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23909bad' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;margin-top:7px;padding:11px 29px 11px 11px;font-size:11px;font-weight:520;color:var(--text)}
.photo-note {font-size:10px;color:var(--muted);line-height:1.65;display:flex;align-items:flex-start;gap:7px;margin:17px 0}
.photo-note .icon {width:14px;height:14px;margin-top:1px}
.viewport {background:var(--canvas-bg);min-width:0;min-height:0;position:relative;overflow:hidden;isolation:isolate}
#scene {position:absolute;inset:0;z-index:0;touch-action:none;cursor:grab}
#scene:active {cursor:grabbing}
#scene canvas {width:100%;height:100%;display:block;touch-action:none}
.canvas-heading {position:absolute;top:29px;left:31px;pointer-events:none;z-index:1}
.live-tag {display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:1.8px;font-weight:800;color:var(--text-subtle)}
.live-indicator {height:7px;width:7px;border-radius:50%;background:#34bf8a;box-shadow:0 0 0 4px rgba(52,191,138,.1)}
.canvas-description {color:var(--muted);font-size:11px;letter-spacing:-.1px;margin:9px 0 0 15px;font-weight:540}
.small-separator {color:var(--line-strong);padding:0 4px}
.view-controls {position:absolute;top:24px;right:28px;display:flex;align-items:center;gap:8px;z-index:1}
.view-segment {background:var(--glass);border:1px solid var(--glass-border);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);box-shadow:var(--shadow);padding:4px;display:flex;gap:3px;border-radius:12px}
.view-segment button {border:0;background:transparent;border-radius:9px;min-width:49px;padding:10px;font-size:10.5px;font-weight:720;color:var(--muted)}
.view-segment button.active {background:var(--surface);box-shadow:0 1px 4px rgba(25,40,73,.12);color:var(--text)}
.glass-button {width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--glass-border);border-radius:12px;background:var(--glass);color:var(--text-subtle);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);box-shadow:var(--shadow)}
.glass-button:hover {background:var(--surface)}
.glass-button.active {color:var(--accent)}
.selection-inspector {position:absolute;z-index:2;right:27px;top:86px;width:226px;border:1px solid var(--glass-border);border-radius:16px;background:var(--glass);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:var(--deep-shadow);padding:15px;animation:panel-enter .18s ease}
.inspector-heading {display:flex;align-items:center;gap:8px;font-size:11.5px;margin-bottom:9px}
.inspector-heading strong {font-weight:760}
.inspector-dot {height:8px;width:8px;background:var(--accent);border-radius:3px}
.inspector-close {margin-left:auto;display:grid;place-items:center;background:transparent;border:0;color:var(--muted);padding:2px;border-radius:6px}
.inspector-close:hover {background:var(--surface-hover);color:var(--text)}
.inspector-close .icon {width:14px;height:14px}
.inspector-description {font-size:12px;font-weight:670;margin:0 0 5px}
.inspector-coordinates {color:var(--muted);font-size:10px;margin:0 0 14px}
.inspector-buttons {display:grid;grid-template-columns:1fr 1fr;gap:6px}
.inspector-buttons button {padding:9px 5px;background:var(--surface);border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:10px;font-weight:680}
.inspector-buttons button:hover {background:var(--accent-soft);border-color:var(--selected-outline)}
.inspector-buttons .icon {width:13px;height:13px}
.scene-toast {position:absolute;bottom:114px;left:50%;transform:translateX(-50%);z-index:1;pointer-events:none;white-space:nowrap;max-width:min(85%,600px);overflow:hidden;text-overflow:ellipsis;padding:8px 13px;background:var(--glass);border:1px solid var(--glass-border);box-shadow:var(--shadow);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-radius:20px;color:var(--text-subtle);font-size:10px;font-weight:620;opacity:.96;text-align:center}
.canvas-footer-left {position:absolute;bottom:29px;left:28px;z-index:1;display:flex;align-items:center;gap:10px}
.help-button {display:flex;gap:8px;align-items:center;justify-content:center;background:var(--glass);border:1px solid var(--glass-border);border-radius:10px;padding:11px 12px;font-size:10px;font-weight:720;box-shadow:var(--shadow);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);color:var(--text-subtle)}
.help-button:hover {background:var(--surface)}
.help-button .icon {width:15px;height:15px}
.interaction-hint {font-size:10px;color:var(--muted)}
.build-dock {position:absolute;bottom:20px;left:50%;transform:translateX(-50%);display:flex;align-items:center;flex-direction:column;gap:8px;z-index:1}
.dock-actions {display:flex;align-items:center;gap:6px;background:var(--glass);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border:1px solid var(--glass-border);border-radius:17px;padding:6px;box-shadow:var(--deep-shadow)}
.dock-icon {width:43px;height:43px;border:0;background:transparent;color:var(--text-subtle);display:grid;place-items:center;border-radius:11px}
.dock-icon:hover {background:var(--surface-hover);color:var(--text)}
.dock-icon .icon {width:18px;height:18px}
.dock-primary {min-height:43px;display:flex;align-items:center;gap:8px;background:var(--accent);color:white;border:1px solid var(--accent);border-radius:11px;padding:10px 18px;font-size:11.5px;font-weight:740;white-space:nowrap;box-shadow:0 3px 7px rgba(38,117,250,.2)}
.dock-primary:hover {background:var(--accent-hover);border-color:var(--accent-hover)}
.dock-primary .icon {width:16px;height:16px;stroke-width:2.4}
.dock-hint {font-size:9.5px;font-weight:550;color:var(--muted);white-space:nowrap}
.dock-hint span {color:var(--text-subtle);font-weight:750;margin-left:2px}
.camera-toolbar {position:absolute;bottom:29px;right:25px;display:flex;align-items:center;gap:0;padding:5px;background:var(--glass);border:1px solid var(--glass-border);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:var(--shadow);border-radius:13px;z-index:1}
.camera-toolbar>button {width:31px;height:33px;padding:0;border:0;background:transparent;border-radius:8px;display:grid;place-items:center;font-weight:500;font-size:21px;color:var(--text-subtle)}
.camera-toolbar>button:hover {background:var(--surface-hover)}
.camera-toolbar>button .icon {width:17px;height:17px}
.camera-reading {display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:42px;gap:3px;font-variant-numeric:tabular-nums}
.camera-reading>span {font-size:7px;letter-spacing:1px;color:var(--muted);font-weight:750}
.camera-reading strong {font-size:12px;font-weight:710}
.toolbar-divider {height:21px;width:1px;background:var(--line-strong);margin:0 5px}
kbd {display:inline-block;border-radius:5px;border:1px solid var(--line-strong);background:var(--surface-alt);color:var(--text-subtle);font-family:inherit;font-size:9px;font-weight:700;line-height:1.2;padding:4px 6px;white-space:nowrap}
.shortcuts-dialog {border:1px solid var(--line);border-radius:24px;padding:26px;width:min(560px,calc(100vw - 28px));max-height:min(620px,calc(100dvh - 40px));background:var(--surface);color:var(--text);box-shadow:0 25px 80px rgba(15,25,47,.2);overflow-y:auto}
.shortcuts-dialog::backdrop {background:rgba(10,20,36,.48);backdrop-filter:blur(7px)}
.dialog-head {display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:19px}
.dialog-head h2 {font-size:26px;letter-spacing:-.9px;margin:7px 0 0}
.dialog-close {border:0;border-radius:9px;background:var(--surface-alt);display:grid;place-items:center;width:32px;height:32px}
.dialog-close:hover {background:var(--surface-hover)}
.dialog-close .icon {width:17px;height:17px}
.shortcuts-grid {display:grid;grid-template-columns:1fr 1fr;gap:24px}
.shortcuts-grid>div>strong {font-size:11px;color:var(--muted);letter-spacing:1px;text-transform:uppercase;display:block;padding:0 0 10px;border-bottom:1px solid var(--line);margin-bottom:5px}
.shortcuts-grid>div>div {display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:39px;font-size:10.5px;color:var(--text-subtle)}
.shortcuts-grid kbd {font-size:9px;padding:5px 6px}
.dialog-footnote {margin:20px 0 0;padding:13px 14px;border-radius:10px;background:var(--surface-alt);color:var(--muted);font-size:10.5px;line-height:1.6}
@media (min-width:1600px) {
  .topbar {grid-template-columns:388px minmax(160px,1fr) auto;padding-left:35px;padding-right:35px}
  .workspace {grid-template-columns:380px minmax(0,1fr)}
  .sidebar-scroll {padding:38px 29px 30px}
  .sidebar-intro h1 {font-size:32px}
  .kinds {gap:7px}
  .kind-button {min-height:77px}
  .shapes {gap:8px}
}
@media (max-width:1320px) {
  .topbar {grid-template-columns:260px minmax(135px,1fr) auto;padding-left:20px;padding-right:17px}
  .top-actions {gap:4px}
  .utility-button {padding:10px;font-size:10px;gap:5px}
  .workspace {grid-template-columns:318px minmax(0,1fr)}
  .sidebar-scroll {padding-left:19px;padding-right:19px}
  .interaction-hint {display:none}
  .canvas-footer-left {bottom:27px;left:16px}
  .camera-toolbar {bottom:27px;right:14px}
  .camera-toolbar>button {width:27px}
}
@media (max-width:1050px) {
  .topbar {grid-template-columns:214px minmax(100px,1fr) auto}
  .brand-copy strong {font-size:14px}
  .brand-mark {width:35px;height:35px;flex-basis:35px}
  #projectName {max-width:19vw;width:144px}
  .saved-state {display:none}
  .utility-button span {display:none}
  .utility-button {height:36px;width:37px;padding:0}
  .utility-button .icon {width:17px;height:17px}
  .action-divider {margin:0 2px}
  .workspace {grid-template-columns:302px minmax(0,1fr)}
  .sidebar-scroll {padding:27px 17px}
  .canvas-footer-left {bottom:103px}
  .view-controls {right:15px;top:18px}
  .canvas-heading {top:27px;left:19px}
  .build-dock {bottom:18px;left:32%;}
  .scene-toast {bottom:114px}
}
@media (max-width:760px) {
  .app-shell {height:auto;min-height:100dvh;overflow:visible}
  .topbar {height:67px;min-height:67px;grid-template-columns:1fr auto;padding:0 13px 0 16px}
  .brand {gap:8px}
  .brand-mark {width:34px;height:34px;flex-basis:34px;border-radius:10px}
  .brand-copy strong {font-size:14px}
  .brand-copy>span {font-size:8px;letter-spacing:1px}
  .project-identity {display:none}
  .top-actions {gap:4px}
  .top-actions .action-divider {display:none}
  .top-actions .action-cluster {gap:1px}
  .top-actions .icon-button {width:31px;height:34px}
  .top-actions .utility-button {width:33px;height:34px;border-radius:9px}
  .top-actions .theme-button {display:none}
  .workspace {display:flex;flex-direction:column;min-height:0}
  .viewport {order:0;min-height:380px;height:min(60svh,590px);flex:none}
  .sidebar {order:1;border-right:0;border-top:1px solid var(--line);overflow:visible}
  .sidebar-scroll {height:auto;overflow:visible;padding:24px 21px 36px;max-width:600px;margin:auto}
  .sidebar-intro {margin-bottom:18px}
  .sidebar-intro h1 {font-size:26px;margin:10px 0 8px}
  .sidebar-intro h1 br {display:none}
  .sidebar-intro p {max-width:100%}
  .mode-switch {margin-bottom:21px}
  .kinds {grid-template-columns:repeat(5,1fr);gap:7px}
  .shapes {grid-template-columns:repeat(5,1fr);gap:8px}
  .kind-button {min-height:72px}
  .canvas-heading {top:20px;left:19px}
  .canvas-description {font-size:10px}
  .view-controls {top:15px;right:14px;gap:5px}
  .view-segment button {padding:9px 8px;min-width:39px}
  .glass-button {width:36px;height:36px}
  .glass-button .icon {width:16px;height:16px}
  .build-dock {left:50%;bottom:14px}
  .dock-actions {padding:4px;gap:3px}
  .dock-icon {width:35px;height:37px}
  .dock-primary {min-height:37px;padding:8px 13px;font-size:10px}
  .dock-hint {display:none}
  .camera-toolbar {right:10px;bottom:14px;padding:3px}
  .camera-toolbar>button {width:23px;height:32px;font-size:18px}
  .camera-reading {min-width:30px}
  .camera-reading strong {font-size:10px}
  .toolbar-divider {margin:0 2px}
  .canvas-footer-left {bottom:14px;left:11px}
  .help-button {padding:10px}
  .help-button>span {display:none}
  .scene-toast {bottom:76px;max-width:90%;font-size:9.5px}
  .selection-inspector {right:11px;top:65px;width:205px;padding:11px}
}
@media (max-width:430px) {
  .brand-copy>span {display:none}
  .top-actions .utility-button {width:31px}
  .viewport {min-height:365px;height:54svh}
  .canvas-heading {top:19px;left:13px}
  .live-tag {font-size:8px;gap:6px}
  .canvas-description {margin-left:0;max-width:143px;line-height:1.5}
  .view-controls {right:9px;top:12px}
  .view-segment {padding:3px;gap:1px}
  .view-segment button {min-width:32px;padding:8px 6px}
  .glass-button {width:32px;height:34px;border-radius:10px}
  .build-dock {bottom:11px;left:47%}
  .dock-icon {width:29px}
  .dock-icon .icon {width:15px;height:15px}
  .dock-primary {padding:7px 10px;gap:4px}
  .camera-toolbar {bottom:72px;right:10px}
  .scene-toast {bottom:112px;max-width:95%;}
  .sidebar-scroll {padding:24px 16px 30px}
  .shortcuts-grid {grid-template-columns:1fr;gap:16px}
  .shortcuts-dialog {padding:20px}
}
@media (prefers-reduced-motion:reduce) {*,*::before,*::after {scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
