/* =========================================================
   Room Decorator — UI Skin (VISUAL ONLY)
   macOS-inspired frosted-glass restyle.
   Layout metrics, IDs, classes and JS hooks are UNCHANGED.
   ========================================================= */

:root {
  --bg: #0b0e14;
  --viewport-bg: #05070d;

  --glass: rgba(23, 28, 39, 0.62);
  --glass-strong: rgba(17, 21, 30, 0.80);
  --panel-bg: rgba(23, 28, 39, 0.62);
  --panel-border: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.16);

  --text: #f9fafc;
  --muted-text: #9aa5b1;

  --primary: #5b9dff;
  --primary-hover: #74acff;
  --primary-deep: #2f6fe0;
  --violet: #8b7bff;
  --danger: #ff453a;
  --success: #30d158;

  --input-bg: rgba(255, 255, 255, 0.06);

  --shadow-glow: 0 0 0 1px rgba(91, 157, 255, 0.35), 0 6px 20px rgba(47, 111, 224, 0.25);
  --blur: blur(28px) saturate(160%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(91, 157, 255, 0.16), transparent 60%),
    radial-gradient(1000px 600px at -10% 110%, rgba(139, 123, 255, 0.14), transparent 60%),
    radial-gradient(900px 500px at 50% 55%, rgba(48, 209, 88, 0.05), transparent 65%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

::selection {
  background: rgba(91, 157, 255, 0.35);
}

:focus-visible {
  outline: 2px solid rgba(91, 157, 255, 0.7);
  outline-offset: 2px;
  border-radius: 6px;
}

.app {
  height: 100vh;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr) 48px;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--stroke);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 10;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}
.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--primary), var(--violet), var(--primary));
  box-shadow: 0 0 10px rgba(91, 157, 255, 0.8);
  display: inline-block;
}
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #ffffff, #cfd8e3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.topbar-center {
  color: var(--muted-text);
  font-size: 14px;
}
.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 220px;
}

/* ---------- Buttons ---------- */
.btn {
  border: 1px solid var(--stroke-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.btn:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}
.btn.active {
  background: linear-gradient(180deg, var(--primary-hover), var(--primary-deep));
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}
.btn-primary {
  background: linear-gradient(180deg, var(--primary-hover), var(--primary-deep));
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
}
.btn-danger {
  background: linear-gradient(180deg, #ff6b5e, #d93025);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(217, 48, 37, 0.35);
}
.btn-danger:hover:not(:disabled) {
  filter: brightness(1.08);
}

/* ---------- Main layout ---------- */
.main-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  min-height: 0;
}
.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-right: 1px solid var(--stroke);
  padding: 12px;
  overflow-y: auto;
}
.properties {
  border-right: none;
  border-left: 1px solid var(--stroke);
}
.panel-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-text);
  margin: 8px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--stroke), transparent);
}

/* ---------- Sidebar: categories ---------- */
.category-list {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}
.category-item {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 10px 12px 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(233, 238, 245, 0.86);
  cursor: pointer;
  font-size: 14px;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.category-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}
.category-item.active {
  background: linear-gradient(90deg, rgba(91, 157, 255, 0.22), rgba(139, 123, 255, 0.10));
  border-color: rgba(91, 157, 255, 0.35);
  color: #eaf2ff;
}
.category-item.active::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--violet));
  box-shadow: 0 0 8px rgba(91, 157, 255, 0.7);
}

/* ---------- Sidebar: assets ---------- */
.asset-list {
  display: grid;
  gap: 8px;
  min-height: 180px;
}
.asset-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.asset-card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(91, 157, 255, 0.45);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(91, 157, 255, 0.15);
}
.asset-card:active {
  transform: scale(0.99);
}
.asset-thumb,
.asset-thumb-img {
  width: 56px;
  height: 44px;
  border-radius: 10px;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 2px 8px rgba(0, 0, 0, 0.35);
}
.asset-thumb-img {
  object-fit: cover;
}
.asset-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.empty-note {
  color: var(--muted-text);
  font-size: 13px;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px;
}

/* ---------- Viewport (metrics untouched) ---------- */
.viewport-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: var(--viewport-bg);
}
.viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.viewport-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(600px 400px at 50% 40%, rgba(91, 157, 255, 0.08), transparent 70%);
  background-size: 40px 40px, 40px 40px, auto;
}
.placeholder-card {
  width: min(560px, calc(100% - 48px));
  padding: 28px;
  text-align: center;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.placeholder-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.placeholder-card p {
  margin: 6px 0;
  color: var(--muted-text);
}

/* ---------- Properties panel ---------- */
.property-section {
  display: grid;
  gap: 10px;
}
.property-group-title {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: #bcd7ff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.property-group-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  box-shadow: 0 0 8px rgba(91, 157, 255, 0.8);
}
.property-field {
  display: grid;
  gap: 6px;
}
.property-field span {
  color: var(--muted-text);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.property-field input {
  width: 100%;
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 9px 10px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.property-field input:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.16);
}
.property-field input:focus {
  border-color: rgba(91, 157, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(91, 157, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}
.property-field input:disabled {
  opacity: 0.5;
}
.property-field input[type="color"] {
  height: 42px;
  padding: 4px;
  cursor: pointer;
}
.property-field input[type="file"] {
  font-size: 12px;
  padding: 6px 8px;
  cursor: pointer;
  border-style: dashed;
}
.property-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.hidden {
  display: none !important;
}

/* ---------- Color / file / range inputs (global) ---------- */
input[type="color"] {
  background: var(--input-bg);
  border: 1px solid var(--stroke);
  border-radius: 10px;
}
input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 3px;
}
input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 7px;
}
input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 7px;
}
input[type="file"]::file-selector-button {
  border: 1px solid var(--stroke-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.05));
  color: var(--text);
  border-radius: 8px;
  padding: 5px 10px;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}
input[type="file"]::file-selector-button:hover {
  background: rgba(255, 255, 255, 0.16);
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  height: 20px;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #cfe0ff);
  border: 1px solid rgba(0, 0, 0, 0.35);
  margin-top: -4.5px;
  box-shadow: 0 0 0 3px rgba(91, 157, 255, 0.25), 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.15s ease;
}
input[type="range"]:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(91, 157, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.4);
}
input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(91, 157, 255, 0.25);
}

/* ---------- Mode switch (top bar) ---------- */
.mode-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}
.mode-btn {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-text);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.mode-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}
.mode-btn.active {
  background: linear-gradient(180deg, var(--primary-hover), var(--primary-deep));
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(47, 111, 224, 0.35);
}

/* ---------- Scope pills (wall scope / mount wall / partition style) ---------- */
.wall-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.scope-btn {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
}

/* ---------- Scale options ---------- */
.scale-options {
  display: flex;
  gap: 4px;
  align-items: center;
}
.scale-options .btn {
  padding: 6px 9px;
  font-size: 11.5px;
}

/* ---------- Room lights ---------- */
.lights-list {
  display: grid;
  gap: 8px;
}
.light-row {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.light-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.light-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted-text);
  cursor: pointer;
}
.light-row-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.light-row input[type="range"] {
  flex: 1;
}
.light-row input[type="color"] {
  width: 36px;
  height: 26px;
  padding: 2px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--input-bg);
}
.light-remove-btn {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 8px;
}

/* ---------- iOS-style switches (light on/off + free placement) ---------- */
.light-toggle input[type="checkbox"],
.free-toggle input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  cursor: pointer;
  outline: none;
  flex: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.light-toggle input[type="checkbox"]::after,
.free-toggle input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease;
}
.light-toggle input[type="checkbox"]:checked,
.free-toggle input[type="checkbox"]:checked {
  background: linear-gradient(90deg, var(--primary), var(--violet));
  border-color: transparent;
}
.light-toggle input[type="checkbox"]:checked::after,
.free-toggle input[type="checkbox"]:checked::after {
  transform: translateX(16px);
}
.free-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-text);
  font-size: 13px;
  cursor: pointer;
}
.free-toggle input {
  width: auto;
}

/* ---------- Bottom bar ---------- */
.bottombar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-top: 1px solid var(--stroke);
  position: relative;
  z-index: 10;
}
.bottombar-left,
.bottombar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bottombar .btn {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 9px;
}
.status-message {
  margin-left: 10px;
  color: var(--muted-text);
  font-size: 12.5px;
  max-width: 40vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-message::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(48, 209, 88, 0.8);
  margin-right: 8px;
  vertical-align: middle;
}

/* ---------- Walk mode hint ---------- */
.walk-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  background: rgba(15, 19, 28, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(91, 157, 255, 0.35);
  color: var(--text);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ---------- Scrollbars ---------- */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
  background-clip: padding-box;
  border: 2px solid transparent;
}

/* ---------- Responsive (same breakpoints, same widths) ---------- */
@media (max-width: 1100px) {
  .main-layout {
    grid-template-columns: 220px minmax(0, 1fr) 280px;
  }
}
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 200px minmax(0, 1fr) 240px;
  }
  .topbar-center {
    display: none;
  }
}


.scale-options {
    transition: opacity 0.18s ease;
}
.scale-options.hidden {
    display: none !important;
}



/* =========================================================
   Bottom bar — labeled tool groups + Scale options tray
   (HTML/CSS only — makes it obvious which pills belong to Scale)
   ========================================================= */
.bottombar {
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bottombar::-webkit-scrollbar {
  display: none;
}
.bottombar-left,
.bottombar-right {
  gap: 8px;
  flex: none;
}
.bar-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
.bar-group::before {
  content: attr(data-label);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-text);
  margin: 0 4px;
  opacity: 0.85;
  pointer-events: none;
}
.bar-group:not([data-label])::before {
  display: none;
}
.tool-cluster {
  display: flex;
  align-items: center;
  gap: 4px;
}
/* Scale's axis pills = attached blue tray => clearly "Scale's options" */
.scale-options {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 4px;
  margin-left: 3px;
  background: rgba(91, 157, 255, 0.12);
  border: 1px solid rgba(91, 157, 255, 0.30);
  border-radius: 999px;
}
.scale-options::before {
  content: "axis";
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bcd7ff;
  margin: 0 3px 0 4px;
}
.scale-options .btn {
  padding: 4px 9px;
  font-size: 11px;
  border-radius: 999px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.scale-options .btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.10);
  transform: none;
}
.scale-options .btn.active {
  background: linear-gradient(180deg, var(--primary-hover), var(--primary-deep));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-glow);
}
.scale-options.hidden {
  display: none !important;
}




/* =========================================================
   Ad banner slot — square box at top of right sidebar
   (sits above Room / Selected-Object properties)
   ========================================================= */
.ad-banner-slot {
    margin: 0 0 14px;
    padding: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}
.ad-banner-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-text);
    margin: 0 0 6px 2px;
    opacity: 0.8;
    pointer-events: none;
}
.ad-banner-box {
    width: 100%;
    aspect-ratio: 1 / 1;        /* square banner */
    max-height: 190px;          /* keeps it small */
    min-height: 110px;
    overflow: auto;             /* scrollable if ad is bigger */
    border: 1px solid var(--stroke);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    display: grid;
    place-items: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.ad-banner-box::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.ad-banner-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}
.ad-banner-placeholder {
    display: grid;
    gap: 4px;
    place-items: center;
    padding: 10px;
    text-align: center;
    color: var(--muted-text);
    font-size: 13px;
}
.ad-banner-placeholder small {
    font-size: 10px;
    opacity: 0.7;
}