/* Chim studio: paper, pencil, and a little colour. Loaded after page styles. */
:root {
  --bg: #f5f1e8;
  --surface: #fcfaf5;
  --surface2: #eee9de;
  --border: #ded8ca;
  --border2: #c7bead;
  --text: #302e28;
  --text2: #575348;
  --muted: #756f62;
  --accent: #a65438;
  --accent-hover: #87422c;
  --strong: #34382e;
  --strong-hover: #484d3f;
  --on-strong: #fcfaf5;
  --radius: 5px;
  --radius-sm: 4px;
  --shadow: 0 2px 0 rgba(70, 60, 40, .05);
  --shadow-md: 0 8px 24px rgba(70, 60, 40, .08);
  --studio-serif: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --studio-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --studio-grid: linear-gradient(rgba(117, 103, 77, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(117, 103, 77, .055) 1px, transparent 1px);
}

body.theme-dark {
  --bg: #252620;
  --surface: #2c2d26;
  --surface2: #34362e;
  --border: #45473b;
  --border2: #626451;
  --text: #f0ecdf;
  --text2: #d3cdbd;
  --muted: #b2ac9a;
  --accent: #e3a183;
  --accent-hover: #efb598;
  --strong: #e5dfcd;
  --strong-hover: #f3eddd;
  --on-strong: #292b23;
}

body { background-color: var(--bg); font-family: 'Segoe UI', system-ui, sans-serif; }
button, input, textarea, select { font-family: inherit; }
::selection { background: #d9ba98; color: #302e28; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
:where(button, a, input, select, textarea) { -webkit-tap-highlight-color: transparent; }
/* Component display rules must not reveal hidden panels or filtered cards. */
[hidden] { display: none !important; }

nav {
  height: 64px;
  padding-inline: clamp(1.2rem, 5vw, 5rem);
  background: var(--bg);
  border-bottom: 1px solid var(--border2);
  box-shadow: none;
}
.brand-mark { font-size: 1.8rem; font-weight: 500; letter-spacing: -.07em; }
.nav-brand::after {
  content: 'a room for ideas';
  padding-left: 1.1rem;
  margin-left: 1.1rem;
  border-left: 1px solid var(--border2);
  font: 10px var(--studio-mono);
  letter-spacing: .02em;
  color: var(--muted);
}
.nav-links { gap: 1.3rem; }
.nav-links a { color: var(--text2); font-size: .8rem; }
.btn, .nav-links .nav-action-btn {
  border-radius: 3px 5px 4px 3px;
  box-shadow: none;
  font-weight: 600;
  letter-spacing: 0;
}
.nav-links .nav-action-btn {
  background: var(--strong);
  color: var(--on-strong);
  border: 1px solid var(--strong);
}
.nav-links .nav-action-btn:hover { background: var(--strong-hover); box-shadow: 2px 2px 0 var(--border2); }
.btn-primary { border: 1px solid var(--strong); }
.btn-primary:hover { box-shadow: 3px 3px 0 var(--border2); }
.btn-ghost { background: transparent; }

/* An architectural study on an open sheet of paper. */
.landing-page { background: var(--bg); }
.landing-hero {
  min-height: min(790px, calc(100svh - 64px));
  max-width: 1440px;
  margin-inline: auto;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 2rem;
  padding: 5rem clamp(1.5rem, 5vw, 5rem) 4rem;
  overflow: visible;
  isolation: auto;
}
.landing-hero-inner { color: var(--text); max-width: 590px; }
.landing-hero .landing-eyebrow, .landing-kicker, .page-kicker, .room-entry-kicker {
  color: var(--accent);
  font-family: var(--studio-mono);
  font-size: .64rem;
  line-height: 1.6;
  letter-spacing: .11em;
  font-weight: 400;
  text-transform: uppercase;
}
.landing-hero h1 {
  color: var(--text);
  max-width: 590px;
  font-size: clamp(3.6rem, 5.8vw, 5.9rem);
  line-height: 1.02;
  letter-spacing: -.065em;
  font-weight: 400;
  text-wrap: initial;
}
.landing-hero h1 em { color: #8b634b; font-weight: 400; }
.landing-lede { color: var(--text2); max-width: 410px; font-size: 1rem; line-height: 1.8; margin-top: 1.7rem; }
.landing-actions { margin-top: 2rem; gap: .8rem; }
.landing-actions .landing-primary-action, .landing-final .landing-primary-action {
  background: var(--strong);
  color: var(--on-strong);
  border: 1px solid var(--strong);
  border-radius: 3px;
  min-height: 48px;
  padding: .8rem 1.3rem;
  box-shadow: 3px 3px 0 #c8beaa;
}
.landing-actions .landing-primary-action:hover, .landing-final .landing-primary-action:hover { background: var(--strong-hover); color: var(--on-strong); border-color: var(--strong); }
.landing-primary-action span { margin-left: 1rem; font-size: 1.2rem; }
.landing-actions .landing-secondary-action { color: var(--text2); background: transparent; border: 0; border-bottom: 1px solid var(--border2); border-radius: 0; backdrop-filter: none; }
.landing-actions .landing-secondary-action:hover { background: var(--surface2); color: var(--text); border-color: var(--text2); }
.landing-hero-modes { display: flex; flex-wrap: wrap; gap: .65rem 1rem; margin-top: 2.8rem; }
.landing-hero-modes span { padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font: .57rem var(--studio-mono); }
.landing-hero-modes span::before { display: none; }
.studio-room-study {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 1.25rem 1.15rem .95rem;
  border: 1px solid var(--border2);
  background-color: #faf7ef;
  background-image: var(--studio-grid);
  background-size: 24px 24px;
  box-shadow: 6px 7px 0 -1px var(--bg), 6px 7px 0 var(--border2);
  transform: rotate(-1.2deg);
}
.studio-study-heading, .studio-room-study figcaption { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.studio-study-heading { font: .58rem var(--studio-mono); letter-spacing: .12em; }
.studio-room-drawing { display: block; width: 100%; height: auto; margin-block: 1rem; overflow: visible; }
.studio-room-study figcaption { padding-top: .8rem; border-top: 1px solid var(--border2); font: italic .9rem var(--studio-serif); }
.studio-room-study figcaption span:last-child { font: .58rem var(--studio-mono); align-self: center; }
.studio-margin-note { position: absolute; right: 1.2rem; bottom: -2.7rem; color: var(--accent); font: italic 1rem var(--studio-serif); transform: rotate(-5deg); }
.landing-band { max-width: 1280px; padding-block: 4.8rem; }
.landing-section-head h2, .landing-workflow h2, .landing-final h2 { font-family: var(--studio-serif); letter-spacing: -.05em; font-weight: 400; }
.landing-section-head h2 { font-size: clamp(2.3rem, 4vw, 3.7rem); }
.landing-section-head > p { color: var(--text2); font-size: .9rem; line-height: 1.8; }
.landing-practice, .landing-community, .landing-workflow { border-top: 1px solid var(--border2); }
.landing-practice-grid { gap: 1.5rem; }
.landing-practice-card { border: 1px solid var(--border2); border-radius: 3px; background: var(--surface); box-shadow: 3px 4px 0 var(--surface2); }
.landing-practice-number { font-family: var(--studio-mono); color: var(--accent); }
.landing-practice-art { border: 1px solid var(--border2); border-radius: 2px; filter: saturate(.55); }
.landing-practice-card h3 { color: var(--text); font-weight: 400; font-size: 1.55rem; }
.landing-practice-card p { color: var(--text2); line-height: 1.7; }
.landing-community-card, .landing-community-media, .landing-workflow-media { border-radius: 3px; }
.landing-community-card { padding: .65rem; border: 1px solid var(--border2); background: var(--surface); box-shadow: 3px 4px 0 var(--surface2); }
.landing-community-card:hover { transform: translateY(-3px) rotate(-.5deg); border-color: var(--accent); box-shadow: 5px 7px 0 var(--surface2); }
.landing-community-details { padding: 1rem .25rem .35rem; }
.landing-community-open { border-radius: 3px; background: var(--strong); }
.landing-community-empty { background: var(--surface); border: 1px dashed var(--border2); border-radius: 3px; color: var(--text2); }
.landing-workflow-media { padding: .65rem; border: 1px solid var(--border2); background: var(--surface); transform: rotate(-1deg); }
.landing-workflow-list li { border-color: var(--border2); }
.landing-final { background: #e6e4d5; border: 1px solid var(--border2); border-radius: 3px; color: var(--text); margin-bottom: 3rem; }
.landing-final h2 { color: var(--text); }
.landing-final .landing-kicker { color: var(--accent); }

/* A portfolio of rooms, and a simple paper brief for each new one. */
.scene-library-page, .room-entry-page { max-width: 1240px; }
.scene-library-header, .room-entry-header { padding-bottom: 1.8rem; border-bottom: 1px solid var(--border2); }
.page-title, .room-entry-header h1, .auth-title { font: 400 clamp(2.5rem, 4.5vw, 4rem)/1.1 var(--studio-serif); letter-spacing: -.05em; }
.scene-library-summary, .room-entry-intro { color: var(--text2); }
.scene-library-toolbar { background: transparent; border-color: var(--border2); border-radius: 3px; }
.scene-library-count, .scene-card-date, .scene-privacy-pill { font-family: var(--studio-mono); }
.scene-card { padding: .65rem; border: 1px solid var(--border2); border-radius: 3px; background: var(--surface); box-shadow: 3px 4px 0 var(--surface2); }
.scene-card:hover { border-color: var(--accent); box-shadow: 4px 6px 0 var(--surface2); transform: translateY(-2px); }
.scene-card-thumb { border-radius: 2px; background-color: var(--surface2); background-image: var(--studio-grid); background-size: 20px 20px; }
.scene-card-thumb img { transition: transform .3s ease; }
.scene-card:hover .scene-card-thumb img { transform: scale(1.025); }
.scene-card-body { padding: 1rem .35rem .5rem; }
.scene-library-page .scene-card { border-radius: 3px; }
.scene-card-name { font-family: var(--studio-serif); font-size: 1.3rem; font-weight: 400; }
.scene-library-page .scene-card-name { font-size: 1.15rem; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; }
.scene-privacy-pill { border-radius: 3px; }
.room-entry-tool, .auth-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 4px; box-shadow: 5px 6px 0 var(--surface2); }
.room-entry-tool { padding: clamp(1rem, 3vw, 2rem); }
.room-entry-tool textarea, .room-entry-mode-switch, .room-entry-mode { border-radius: 4px; }
.room-entry-drop { background-color: var(--bg); background-image: var(--studio-grid); background-size: 24px 24px; border: 1px dashed var(--border2); border-radius: 3px; }
.room-entry-drop:hover { border-color: var(--accent); background-color: #f0eadc; }
.room-entry-drop-visual { background: var(--surface); color: var(--accent); border: 1px solid var(--border2); border-radius: 3px; transform: rotate(-4deg); }
.room-entry-mode-switch { background: var(--surface2); border-color: var(--border2); }
.room-entry-mode.is-active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.auth-page { background-image: var(--studio-grid); background-size: 32px 32px; }

/* Keep the room central; give the surrounding tools the same paper palette. */
.editor-shell, .editor-sidebar, .editor-toolbar { background: var(--surface); }
.editor-toolbar { border-bottom: 1px solid var(--border2); box-shadow: none; }
.editor-toolbar-left .brand-mark { font-size: 1.7rem; }
.editor-toolbar-title { font-family: var(--studio-serif); font-size: 1.1rem; font-weight: 400; }
.editor-sidebar-header { font-family: var(--studio-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; border-color: var(--border2); }
.editor-sidebar-panel-title, .editor-inspector-label, .editor-catalog-kicker { font-family: var(--studio-mono); letter-spacing: .08em; color: var(--muted); }
.editor-stage { background-color: var(--bg); background-image: var(--studio-grid); background-size: 24px 24px; }
.editor-toolbar :is(.editor-text-btn, .editor-render-btn), .editor-icon-btn, .editor-view-btn { border-radius: 4px; box-shadow: none; }
.editor-toolbar :is(.editor-text-btn, .editor-render-btn) { background: var(--surface); color: var(--text2); border-color: var(--border2); }
.editor-toolbar .editor-catalog-open-btn { background: var(--strong); color: var(--on-strong); border-color: var(--strong); }
.editor-toolbar .editor-catalog-open-btn:hover { background: var(--strong-hover); color: var(--on-strong); }
.editor-toolbar .editor-catalog-open-btn[aria-expanded='true'] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.editor-view-btn { background: var(--surface); color: var(--text2); border-color: var(--border2); }
#sketch-view-btn { width: 34px; height: 34px; padding: 7px; }
#sketch-view-btn[aria-pressed='true'] { background: #ede0cb; color: #7d4f33; border-color: #b99d7d; }
.editor-tool-btn.is-active { background: var(--surface2); color: var(--accent); border-color: var(--accent); }
.editor-chat-panel, .editor-chat-header, .editor-chat-context { background: var(--bg); color: var(--text2); border-color: var(--border); box-shadow: none; }
.editor-chat-header { min-height: 48px; padding-inline: 16px; }
.editor-chat-title { font: italic 1.05rem var(--studio-serif); color: var(--text); }
.editor-chat-context-label, .editor-chat-composer-label, .editor-message-role { font-family: var(--studio-mono); color: var(--muted); }
.editor-chat-mark, .editor-message-role::before, .editor-chat-history > .editor-empty::before { background: var(--surface2); border-color: var(--border2); color: var(--accent); border-radius: 3px; }
.editor-chat-context-value { background: var(--surface); border-color: var(--border2); color: var(--text2); border-radius: 3px; }
.editor-chat-context-value::before { background: #7d8865; }
.editor-chat-history { padding: 16px; scrollbar-color: var(--border2) transparent; }
.editor-message { color: var(--text2); border-color: var(--border); line-height: 1.65; }
.editor-message.user { background: var(--surface); border-color: var(--border2); color: var(--text); border-radius: 4px 4px 0 4px; box-shadow: 2px 2px 0 var(--surface2); }
.editor-message.assistant .editor-message-role, .editor-message.user .editor-message-role { color: var(--muted); }
.editor-chat-composer, .editor-chat-input-shell { background: var(--surface); border-color: var(--border2); border-radius: 4px; box-shadow: none; }
.editor-chat-composer { margin: 0 12px 12px; box-shadow: 2px 3px 0 var(--surface2); }
.editor-chat-composer textarea { background: transparent; color: var(--text); min-height: 76px; }
.editor-chat-composer textarea::placeholder { color: var(--muted); }
.editor-chat-composer-label strong { color: var(--text2); font-weight: 500; }
.editor-chat-send { background: var(--strong); color: var(--on-strong); border-radius: 3px; padding: 8px 12px; }
.editor-chat-send:hover:not(:disabled) { background: var(--strong-hover); }
.editor-chat-quick button { background: transparent; border-color: var(--border2); color: var(--text2); border-radius: 3px; }
.editor-chat-quick button:hover { background: var(--surface2); color: var(--accent); border-color: var(--accent); }
.editor-chat-status, .editor-chat-history > .editor-empty, .editor-chat-history > .editor-empty span { color: var(--muted); }
.editor-chat-history > .editor-empty strong { color: var(--text2); }
.editor-workspace-resizer { background: var(--surface2); border-color: var(--border2); }
.editor-stage-loading-card { background: var(--surface); border-color: var(--border2); border-radius: 4px; box-shadow: 4px 5px 0 var(--surface2); }
.editor-stage-loading.is-scene-loading .editor-stage-loading-card { border-color: var(--border2); box-shadow: 4px 5px 0 var(--surface2); }
.editor-stage-loading-progress { background: var(--surface2); border-color: var(--border); }
.editor-stage-loading-progress span { background: linear-gradient(90deg, #7d8865, #adb691); }
.editor-stage-loading-count, .editor-stage-loading-event { color: var(--muted); }
.editor-stage-loading-spinner { border-color: var(--border); border-top-color: var(--accent); }

/* Catalog cards read like a tray of material and furniture samples. */
.editor-catalog-dialog, body.theme-dark .editor-catalog-dialog { background: var(--surface); border-color: var(--border2); box-shadow: 4px 0 20px rgba(48, 42, 29, .07); }
.editor-catalog-header { padding: .5rem .15rem 1rem; border-bottom: 1px solid var(--border2); }
.editor-catalog-title { font: 400 1.75rem/1.2 var(--studio-serif); color: var(--text); letter-spacing: -.03em; }
.editor-catalog-subtitle { color: var(--muted); line-height: 1.6; }
.editor-catalog-search input { background: var(--bg); color: var(--text); border-color: var(--border2); border-radius: 3px; }
.editor-catalog-search button { background: var(--strong); color: var(--on-strong); border-radius: 3px; }
.editor-catalog-collections button, body.theme-dark .editor-catalog-collections button { background: var(--surface); border-color: var(--border2); color: var(--text2); border-radius: 3px; }
.editor-catalog-collections button.is-active, body.theme-dark .editor-catalog-collections button.is-active { color: var(--accent); background: var(--surface2); border-color: var(--accent); }
.editor-catalog-filters, body.theme-dark .editor-catalog-filters { border-color: var(--border); border-radius: 3px; background: var(--bg); color: var(--text2); }
.editor-catalog-category-card, .editor-catalog-dialog .editor-catalog-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 4px; box-shadow: none; }
.editor-catalog-category-card:hover, .editor-catalog-dialog .editor-catalog-card:hover { background: var(--bg); border-color: var(--accent); box-shadow: 2px 3px 0 var(--surface2); }
.editor-catalog-swatch, .editor-catalog-dialog .editor-catalog-swatch { border-radius: 3px; background-color: var(--bg); }
.editor-catalog-dialog .editor-catalog-card-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.editor-catalog-status { color: var(--muted); font-size: .72rem; }
.editor-catalog-list { scrollbar-color: var(--border2) transparent; }
.editor-catalog-list .editor-empty { padding: 2rem 1rem; border: 1px dashed var(--border2); background: var(--bg); border-radius: 3px; color: var(--text2); text-align: center; }
.editor-catalog-retry { margin-top: .8rem; }
body.theme-dark #sketch-view-btn[aria-pressed='true'] { background: #544837; color: #f0ceb0; border-color: #a48967; }
body.theme-dark .editor-toolbar,
body.theme-dark .editor-sidebar-header,
body.theme-dark .editor-sidebar,
body.theme-dark .editor-chat-header,
body.theme-dark .editor-stage-loading-card,
body.theme-dark .editor-settings-dialog,
body.theme-dark .editor-toolbar-tools,
body.theme-dark .editor-view-controls {
  background: var(--surface);
  color: var(--text2);
  border-color: var(--border);
  box-shadow: none;
}
body.theme-dark .editor-chat-panel,
body.theme-dark .editor-chat-context,
body.theme-dark .editor-chat-history,
body.theme-dark .editor-stage-loading,
body.theme-dark .editor-stage { background: var(--bg); color: var(--text2); }
body.theme-dark .editor-message.assistant { background: transparent; color: var(--text2); border-color: var(--border); }
body.theme-dark .editor-message.user,
body.theme-dark .editor-chat-composer,
body.theme-dark .editor-chat-input-shell { background: var(--surface); color: var(--text); border-color: var(--border2); }
body.theme-dark .editor-chat-panel .editor-chat-send { background: var(--strong); color: var(--on-strong); }
body.theme-dark .editor-toolbar :is(.editor-text-btn, .editor-render-btn, .editor-icon-btn),
body.theme-dark .editor-view-btn,
body.theme-dark .editor-catalog-category-card,
body.theme-dark .editor-catalog-card { background: var(--surface2); color: var(--text2); border-color: var(--border2); }
body.theme-dark .editor-toolbar .editor-catalog-open-btn { background: var(--strong); color: var(--on-strong); }
body.theme-dark .editor-toolbar .editor-catalog-open-btn[aria-expanded='true'] { background: #8a4e36; color: #fff4e7; }
body.theme-dark .editor-stage-loading.is-scene-loading .editor-stage-loading-card { background: var(--surface); border-color: var(--border2); }
body.theme-dark .editor-sidebar-header, body.theme-dark .editor-chat-title, body.theme-dark .editor-toolbar-title { color: var(--text); }
body.theme-dark .editor-chat-composer-label kbd { background: var(--surface2); color: var(--muted); border-color: var(--border2); }
.editor-plan-properties, body.theme-dark .editor-plan-properties { background: var(--surface); color: var(--text); border-color: var(--border2); box-shadow: -4px 0 20px rgba(48, 42, 29, .07); }
.editor-plan-properties-header, body.theme-dark .editor-plan-properties-header { background: var(--surface); border-color: var(--border); }
.editor-plan-properties-header strong { font: 400 1.25rem var(--studio-serif); }
.editor-plan-properties-header span, .editor-plan-properties-section p, .editor-plan-field-grid label > span, .editor-plan-field > span { color: var(--muted); }
.editor-plan-properties-section h3 { color: var(--text); }
.editor-plan-properties input, .editor-plan-properties select, .editor-plan-properties output,
body.theme-dark .editor-plan-properties input, body.theme-dark .editor-plan-properties select, body.theme-dark .editor-plan-properties output { background: var(--bg); color: var(--text); border-color: var(--border2); border-radius: 3px; }
.editor-customise-rail, body.theme-dark .editor-customise-rail { background: var(--bg); border-color: var(--border); }
.editor-plan-properties button, body.theme-dark .editor-plan-properties button { background: var(--surface2); color: var(--text2); border-color: var(--border2); border-radius: 3px; }
.editor-customise-rail button.is-active, body.theme-dark .editor-customise-rail button.is-active { background: var(--surface2); color: var(--accent); border-bottom: 2px solid var(--accent); }
.editor-customise-rail { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 0; height: auto; gap: 0; }
.editor-customise-rail button em { font-size: .58rem; }
.editor-customise-rail button { border-radius: 0; }
.editor-tool-palette #plan-view-btn { border-top: 1px solid var(--border2); border-radius: 0 0 3px 3px; }
.editor-tool-palette #plan-view-btn span { font-size: .6rem; }
.studio-opening-shortcut { pointer-events: auto; align-self: flex-start; justify-self: center; width: auto; margin-top: .4rem; padding: .45rem .7rem; background: var(--surface); color: var(--accent); border: 1px solid var(--border2); border-radius: 3px; box-shadow: 0 2px 8px #302a1d0c; font: inherit; font-size: .72rem; cursor: pointer; }
.studio-opening-shortcut:hover { border-color: var(--accent); }
.studio-opening-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.studio-opening-library button { position: relative; display: grid; justify-items: start; align-content: start; gap: .3rem; padding: .8rem; min-height: 130px; text-align: left; }
.studio-opening-library button svg { width: 35px; height: 40px; color: var(--text2); margin-bottom: .2rem; }
.studio-opening-library button strong { color: var(--text); font-size: .75rem; }
.studio-opening-library button small { color: var(--muted); font-size: .66rem; line-height: 1.45; }
.editor-plan-properties .studio-opening-library button.is-active { border-color: var(--accent); background: var(--bg); box-shadow: inset 0 0 0 1px var(--accent); }
.studio-opening-library button.is-active::after { content: '✓'; position: absolute; right: .6rem; top: .5rem; color: var(--accent); font-size: .75rem; }
.editor-plan-properties button:hover:not(:disabled) { border-color: var(--accent); }
.editor-plan-properties .editor-plan-primary-btn { background: var(--strong); color: var(--on-strong); border-color: var(--strong); }
.editor-catalog-swatch-icon { width: 43px; height: 43px; color: #514f43; filter: none; }
.editor-catalog-swatch-icon :is(path, rect, circle) { stroke-width: 1.15; }
.studio-catalog-type-icon { display: grid; place-items: center; width: 100%; height: 100%; color: var(--text2); background: var(--studio-grid), var(--surface2); background-size: 12px 12px; }
.studio-catalog-type-icon svg { width: 43px; height: 43px; }
#object-opening-card select { width: 100%; min-height: 34px; background: var(--bg); color: var(--text); border: 1px solid var(--border2); border-radius: 3px; padding: .4rem; }
#object-opening-card .editor-object-material-btn { margin-top: .45rem; font-size: .72rem; }
.editor-plan-properties-scroll { overscroll-behavior: contain; }
.editor-stage.is-plan-mode #plan-overlay { width: calc(100% - min(380px, 42%)); }
@media (max-width: 900px) {
  .studio-opening-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-plan-properties { inset: auto 0 0; width: 100%; max-width: none; height: 46%; border-left: 0; border-top: 1px solid var(--border2); }
  .editor-stage.is-plan-mode #plan-overlay { width: 100%; height: 54%; }
  .editor-plan-properties-header { padding: .65rem .85rem; min-height: 52px; }
  .editor-plan-properties-scroll { height: calc(100% - 104px); }
  .editor-tool-palette #plan-view-btn { border-top: 0; border-left: 1px solid var(--border2); }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .editor-workspace { --editor-chat-width: 300px; }
  .editor-toolbar-primary-actions { gap: .3rem; }
  .editor-customise-room-btn span { display: none; }
}
@media (max-width: 1000px) {
  .landing-hero { gap: 1.5rem; padding-inline: 2rem; }
  .landing-hero h1 { font-size: clamp(3.5rem, 6.2vw, 5rem); }
  .landing-hero-modes { gap: .7rem; }
}
@media (max-width: 760px) {
  nav { height: 60px; padding-inline: 1rem; }
  .nav-brand::after { display: none; }
  .nav-links { gap: .9rem; }
  .landing-hero { min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 3rem; padding: 3.5rem 1.5rem 4.8rem; }
  .landing-hero h1 { font-size: clamp(3.6rem, 11.5vw, 5.5rem); }
  .landing-hero-inner, .landing-lede { max-width: 100%; }
  .landing-hero-modes { margin-top: 1.7rem; gap: .7rem 1.1rem; }
  .landing-actions { display: flex; flex-wrap: wrap; max-width: none; }
  .landing-actions .btn { width: auto; padding-inline: 1rem; font-size: .82rem; }
  .studio-room-study { max-width: 590px; width: 100%; justify-self: center; padding: 1rem .7rem .8rem; }
  .studio-margin-note { bottom: -2.3rem; }
  .landing-band { padding-block: 3rem; }
  .landing-practice-card { transform: none; }
  .landing-final { padding: 2rem 1.5rem; margin: 1.5rem 1rem; }
  .studio-study-heading { font-size: .53rem; }
  .studio-room-study figcaption { font-size: .85rem; }
  .room-entry-header { align-items: flex-start; }
}
@media (max-width: 900px) {
  .editor-catalog-modal { pointer-events: auto; background: rgba(38, 35, 28, .35); }
  .editor-catalog-dialog { border-radius: 0 5px 5px 0; }
  .editor-chat-composer { width: auto; }
  .editor-toolbar .editor-catalog-open-btn { width: auto; gap: .3rem; padding-inline: .6rem; }
  .editor-toolbar .editor-catalog-open-btn span { display: inline; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
