:root {
  --bg: #f4f6f9; --panel: #fff; --line: #d8dde6; --text: #152033; --muted: #667289;
  --primary: #2563eb; --primary-soft: #dbeafe; --danger: #dc2626; --ok: #059669; --warn:#b45309;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Verdana, system-ui, "Helvetica Neue", Helvetica, sans-serif; color: var(--text); background: var(--bg); }
button, input, select { font: inherit; }
button { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
button:hover { border-color: var(--primary); }
button.secondary, .file-label.secondary { background: #f8fafc; }
button.danger { color: #fff; background: var(--danger); border-color: var(--danger); }
button.small { padding: 8px 10px; }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
input[type="number"]{
  appearance:textfield;
  -moz-appearance:textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}
label { display: block; font-size: 14px; margin-bottom: 12px; }
.app-shell { display: flex; flex-direction: column; min-height: 100vh; }
.topbar, .roombar { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
.topbar {
  flex-wrap: nowrap;
}
.menu-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}
.menu-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
}
.menu-cluster + .menu-cluster {
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
}
.topbar-cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.language-btn {
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  background: transparent;
  border: 1px solid transparent;
}
.language-btn:hover {
  transform: translateY(-1px);
}
.language-btn.is-active {
  background: #edf7ee;
  border-color: #43a047;
  color: #1f5d2c;
  box-shadow: 0 8px 16px rgba(67, 160, 71, 0.14);
}
.user-session-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  max-width: 320px;
}
.user-session-chip span {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ledstore-checkout-btn {
  border: 1px solid #2f8f4e;
  background: #43a047;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(67, 160, 71, 0.22);
}
.ledstore-checkout-btn:hover {
  border-color: #2b7f44;
  background: #388e3c;
  color: #fff;
}
.ledstore-checkout-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}
.catalog-preload-bar {
  display: grid;
  gap: 8px;
  padding: 10px 20px 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border-bottom: 1px solid #dbe7fb;
  transition: opacity .25s ease, transform .25s ease, max-height .25s ease, padding .25s ease, border-width .25s ease;
  max-height: 120px;
  overflow: hidden;
}
.catalog-preload-bar.is-hidden {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-width: 0;
  pointer-events: none;
}
.catalog-preload-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.catalog-preload-copy strong {
  font-size: 13px;
}
.catalog-preload-copy span {
  color: var(--muted);
  white-space: nowrap;
}
.catalog-preload-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  overflow: hidden;
}
.catalog-preload-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
  transition: width 260ms ease;
}
.catalog-preload-bar.done .catalog-preload-fill {
  background: linear-gradient(90deg, #059669 0%, #34d399 100%);
}
.brand-block h1 { margin: 0 0 6px; font-size: 24px; }
.brand-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--muted);
}
.brand-meta-line span { white-space: nowrap; }
.top-actions, .roombar-actions, .room-tabs, .project-file-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.room-tabs button.active, .tool.active { border-color: var(--primary); background: var(--primary-soft); }
.layout { display: grid; grid-template-columns: 320px minmax(760px,1fr) 390px; gap: 18px; padding: 18px; flex: 1; align-items: stretch; }
.panel, .canvas-panel { background: var(--panel); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid #e9edf3; }
.panel { padding: 18px; overflow: auto; }
.left-panel,
.right-panel,
.canvas-panel {
  height: calc(100vh - 180px);
  min-height: 0;
}
.right-panel{
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.right-panel section{
  display:flex;
  flex-direction:column;
  min-height:0;
}
.right-panel section:first-child{
  flex:1 1 auto;
}
.debug-panel-section{
  margin-top:14px;
  flex:0 0 auto;
  min-height:220px;
}
.debug-panel-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.debug-panel{
  min-height:180px;
  max-height:260px;
  overflow:auto;
  border:1px solid #dbe4ee;
  border-radius:14px;
  background:#f8fafc;
  padding:10px;
  display:grid;
  gap:8px;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size:12px;
  line-height:1.45;
}
.debug-log-entry{
  padding:8px 10px;
  border-radius:10px;
  background:#ffffff;
  border:1px solid #e2e8f0;
  word-break:break-word;
}
.debug-log-entry strong{
  display:block;
  margin-bottom:4px;
  font-size:11px;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:#475569;
}
.debug-log-entry.error{
  border-color:#fecaca;
  background:#fff5f5;
}
.debug-log-entry.error strong{
  color:#b91c1c;
}
#selectionPanel{
  overflow:auto;
  flex:1 1 auto;
  min-height:0;
  max-height:100%;
  padding-right:4px;
}
.panel section + section { margin-top: 22px; padding-top: 18px; border-top: 1px solid #edf1f6; }
.panel h2 { margin: 0 0 12px; font-size: 18px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool-hint, .muted { color: var(--muted); font-size: 13px; line-height: 1.45; }
.status {
  color: #c62828;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  display:flex;
  align-items:center;
  min-height:42px;
}
.canvas-panel { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.canvas-toolbar { display: flex; justify-content: space-between; gap: 16px; }
.canvas-toolbar-actions { display:flex; align-items:center; gap:10px; min-height:42px; }
.canvas-toolbar-actions .small { min-height:34px; padding:6px 12px; white-space:nowrap; }
.canvas-zoom-bar { display:flex; justify-content:flex-end; align-items:center; gap:8px; }
.canvas-zoom-bar[hidden] { display:none !important; }
.canvas-zoom-bar button { width:40px; min-width:40px; height:40px; padding:0; font-size:22px; line-height:1; }
#zoomLevel { min-width:64px; text-align:center; font-weight:600; color:#334155; }
.canvas-viewport { overflow:auto; border-radius:14px; border:1px solid var(--line); background:#fff; max-height:none; min-height:0; flex:1; overscroll-behavior:contain; }
.canvas-viewport.pan-mode { cursor: grab; }
.canvas-viewport.panning { cursor: grabbing; }
#plannerCanvas { display:block; width: 1400px; height: 860px; background: #fff; touch-action: none; transform-origin: top left; flex: 0 0 auto; }
.wall-calibration-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  background: #fbfdff;
}
.wall-calibration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.wall-calibration-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}
.wall-calibration-card.active {
  border-color: #2563eb;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}
.wall-calibration-card strong {
  font-size: 13px;
}
.wall-calibration-card .muted {
  font-size: 12px;
}
.crop-stage { cursor: grab; }
.crop-stage.dragging { cursor: grabbing; }
.canvas-overlay-bar {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 10px 12px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(8px);
}
.overlay-controls-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.overlay-controls-left{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  min-width:0;
}
.overlay-room-target{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:0 4px;
  font-size:18px;
  line-height:1.3;
  font-weight:700;
  color:var(--text);
  white-space:nowrap;
  flex:0 0 auto;
}
.overlay-room-target-marker{
  color:#dc2626;
  font-size:16px;
  line-height:1;
  transform:translateY(-1px);
}
.overlay-controls-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-left:auto;
}
.overlay-legend-row{
  width:100%;
  min-width:0;
  justify-self:stretch;
}
.overlay-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.overlay-check input {
  width: auto;
}
.canvas-legend {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display:block;
  justify-self:stretch;
  align-self:stretch;
}
.heatmap-legend-card{
  display:grid;
  gap:10px;
  padding:12px 16px;
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(255,255,255,0.62);
  width:100%;
  min-width:0;
  justify-self:stretch;
}
.heatmap-legend-main{
  display:grid;
  grid-template-columns:minmax(0,3fr) minmax(180px,1fr);
  gap:18px;
  align-items:center;
  width:100%;
  min-width:0;
}
.heatmap-legend-scale-block{
  display:grid;
  gap:10px;
  min-width:0;
}
body[data-theme="dark"] .heatmap-legend-card{
  background:rgba(255,255,255,0.04);
}
.heatmap-legend-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
}
.heatmap-legend-head strong{
  font-size:20px;
  letter-spacing:-0.02em;
}
.heatmap-legend-head span{
  font-size:13px;
  color:var(--muted);
  font-weight:600;
}
.heatmap-scale{
  height:18px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,0.08);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.35);
}
.heatmap-scale-wrap{
  position:relative;
  min-height:22px;
}
.heatmap-target-band{
  position:absolute;
  top:2px;
  bottom:2px;
  border-radius:999px;
  background:rgba(15,23,42,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.24);
  pointer-events:none;
}
.heatmap-target-marker{
  position:absolute;
  top:-4px;
  bottom:-4px;
  width:2px;
  border-radius:999px;
  background:rgba(15,23,42,0.78);
  box-shadow:0 0 0 1px rgba(255,255,255,0.42);
  pointer-events:none;
}
.heatmap-target-note{
  font-size:12px;
  color:var(--muted);
  font-weight:700;
}
.heatmap-target-note strong{
  color:var(--text);
}
.heatmap-average-marker{
  position:absolute;
  top:-6px;
  bottom:-6px;
  width:3px;
  border-radius:999px;
  background:#dc2626;
  box-shadow:0 0 0 1px rgba(255,255,255,0.58), 0 0 10px rgba(220,38,38,0.22);
  pointer-events:none;
}
.heatmap-average-pointer{
  position:absolute;
  top:-11px;
  width:0;
  height:0;
  margin-left:-8px;
  border-left:8px solid transparent;
  border-right:8px solid transparent;
  border-top:13px solid #dc2626;
  filter:drop-shadow(0 2px 4px rgba(220,38,38,0.28));
  pointer-events:none;
}
.heatmap-ticks{
  display:grid;
  grid-template-columns:repeat(6, minmax(0,1fr));
  gap:8px;
  font-size:12px;
  color:var(--muted);
  font-weight:700;
}
.heatmap-ticks span{
  white-space:nowrap;
}
.heatmap-ticks span:last-child{
  text-align:right;
}
.heatmap-legend-metrics-side{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:8px;
  align-content:center;
  align-items:stretch;
  font-size:12px;
  color:var(--muted);
}
.heatmap-legend-metrics-side span{
  display:grid;
  gap:2px;
  align-content:center;
  min-height:64px;
  padding:8px 8px;
  border:1px solid rgba(15,23,42,0.08);
  border-radius:12px;
  background:rgba(255,255,255,0.45);
  text-align:left;
}
.heatmap-legend-metrics-side em{
  font-style:normal;
  font-size:11px;
  font-weight:700;
  color:var(--muted);
}
.heatmap-legend-metrics-side strong{
  color:var(--text);
  font-size:16px;
  font-weight:700;
}
.success-action{
  background: linear-gradient(180deg, #50b85f 0%, #318d43 100%);
  border-color: #2b7a3b;
  color: #fff;
}
.success-action:hover{
  background: linear-gradient(180deg, #5bc56b 0%, #2d7f3d 100%);
}
.wall-color-native-input{
  position:absolute !important;
  inline-size:1px;
  block-size:1px;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
}
.wall-color-presets{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:10px;
}
.wall-color-swatch{
  min-height:42px;
  border-radius:14px;
  border:2px solid rgba(15,23,42,0.10);
  background:var(--swatch);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.46);
}
.wall-color-swatch.active{
  border-color:var(--primary);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent), inset 0 0 0 1px rgba(255,255,255,0.6);
}
.wall-color-custom-btn{
  width:100%;
  min-height:44px;
  font-weight:700;
}
.picker-badge-previous{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  padding:0 8px;
  border-radius:999px;
  background:color-mix(in srgb, var(--primary) 14%, transparent);
  color:var(--primary);
  font-size:11px;
  font-weight:800;
  letter-spacing:0.01em;
}
.spot-picker-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.spot-picker-card-top .picker-badge-previous{
  flex:0 0 auto;
}
.picker-badge-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.picker-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:0 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:0.01em;
  border:1px solid rgba(15,23,42,0.08);
  background:#f8fafc;
  color:#334155;
}
.picker-badge-strip-count{
  background:color-mix(in srgb, var(--primary) 14%, white);
  color:var(--primary);
  border-color:color-mix(in srgb, var(--primary) 18%, #dbeafe);
}
.picker-badge-family{
  background:#eef2ff;
  color:#4338ca;
  border-color:#c7d2fe;
}
.picker-badge-type{
  background:#ecfeff;
  color:#0f766e;
  border-color:#a5f3fc;
}
.picker-badge-white-power{
  min-height:28px;
  padding:2px 12px;
  font-size:13px;
  font-weight:900;
  background:color-mix(in srgb, var(--primary) 14%, #ffffff);
  color:#14532d;
  border-color:color-mix(in srgb, var(--primary) 24%, #bbf7d0);
}
.picker-badge-ip{
  background:#fef3c7;
  color:#92400e;
  border-color:#fde68a;
}
@media (max-width: 900px){
  .overlay-controls-row{
    align-items:stretch;
  }
  .overlay-controls-left,
  .overlay-controls-right{
    width:100%;
  }
  .overlay-controls-right{
    justify-content:flex-end;
  }
  .canvas-legend{
    min-width: 100%;
  }
  .heatmap-legend-main{
    grid-template-columns:1fr;
  }
  .heatmap-legend-metrics-side{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }
  .heatmap-legend-card{
    gap: 10px;
    padding: 12px 14px;
  }
  .heatmap-legend-head strong{
    font-size: 18px;
  }
  .heatmap-legend-head span,
  .heatmap-ticks,
  .heatmap-legend-metrics-side{
    font-size: 12px;
  }
  .heatmap-scale{
    height: 16px;
  }
  .heatmap-legend-metrics-side strong{
    font-size: 15px;
  }
  .auto-suggest-result-actions{
    grid-template-columns:1fr;
  }
  .auto-suggest-result-panel{
    grid-template-columns:1fr;
    width:min(96vw, 700px);
  }
  #autoSuggestResultDialog{
    top:74px;
    width:min(96vw, 700px);
  }
}
.file-label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; cursor: pointer; margin-bottom: 10px; }
.checkrow { display: flex; align-items: center; gap: 10px; }
.checkrow input { width: auto; }
.summary-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.summary-table th, .summary-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #edf1f6; vertical-align: top; }
#summaryPanel h3,
#summaryPanel .summary-table {
  display: none;
}
.summary-kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.kpi { border: 1px solid #edf1f6; background: #fbfdff; border-radius: 14px; padding: 12px; }
.kpi strong { display: block; font-size: 20px; margin-top: 4px; }
.selection-empty { padding: 12px; border: 1px dashed var(--line); border-radius: 14px; }
.editor-block { display: grid; gap: 12px; }
.editor-subsection{
  display:grid;
  gap:12px;
  padding:14px;
  border:1px solid #edf1f6;
  border-radius:16px;
  background:#fbfdff;
}
.editor-subsection h4{
  margin:0;
  font-size:16px;
}
.product-media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #edf1f6;
  border-radius: 14px;
  background: #fbfdff;
}
.product-media-inline{
  align-items:stretch;
}
.selection-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.media-title {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}
.product-image-stack {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 220px;
  align-self:center;
}
.product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-image-main,
.product-image-dimension {
  position: absolute;
  inset: 0;
  transition: opacity 180ms ease;
}
.product-image-dimension {
  opacity: 0;
  pointer-events: none;
}
.product-image-stack.has-dimension-image:hover .product-image-dimension,
.product-image-stack.has-dimension-image:focus-within .product-image-dimension {
  opacity: 1;
}
.product-image-stack.has-dimension-image:hover .product-image-main,
.product-image-stack.has-dimension-image:focus-within .product-image-main {
  opacity: 0.08;
}
.media-action-btn{
  width:100%;
  max-width:320px;
  align-self:center;
}
.selection-product-copy{
  display:grid;
  gap:4px;
  width:100%;
  max-width:320px;
  margin:0 auto;
  text-align:left;
}
.selection-product-copy strong{
  font-size:15px;
  line-height:1.35;
}
.selection-product-copy span{
  font-size:13px;
  line-height:1.4;
  color:var(--muted);
}
.strip-installation-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #edf1f6;
  border-radius: 14px;
  background: #fbfdff;
}
.strip-installation-image {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}
.strip-installation-copy strong {
  display: block;
  font-size: 14px;
}
.scale-box { margin-top: 10px; padding: 10px; border: 1px solid #edf1f6; border-radius: 12px; background: #fbfdff; }
#savedProjectsSelect { min-height: 180px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }
.legend .sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(15,23,42,0.1); margin-right: 6px; vertical-align: -2px; }
.metric-row { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: #eef6ff; color: #1d4ed8; font-size: 12px; font-weight: 700; }
.badge.warn { background:#fff7ed; color:#b45309; }
.note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.wall-reflectance-card{
  display:grid;
  gap:2px;
  padding:10px 12px;
  border:1px solid #edf1f6;
  border-radius:14px;
  background:#fbfdff;
}
.mini-table { width:100%; border-collapse: collapse; font-size:13px; }
.mini-table td { padding:6px 4px; border-bottom:1px solid #edf1f6; vertical-align:top; }
.quote-result-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
}
.quote-result-panel strong {
  display: block;
  margin-bottom: 8px;
}
.quote-result-panel .quote-meta {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
}
.quote-result-panel .quote-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.quote-result-panel code {
  word-break: break-all;
}
.quote-result-panel .quote-warning {
  margin-bottom: 10px;
  color: #975a16;
  font-weight: 600;
}
.lighting-control-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}
.lighting-control-summary {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  min-height: 720px;
  align-content: start;
}
.lighting-group-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fbfdff;
  box-shadow: 0 10px 24px rgba(15,23,42,0.05);
}
.lighting-group-card h3 {
  margin: 0;
  font-size: 15px;
}
.lighting-group-meta {
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.lighting-product-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}
.lighting-product-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.lighting-assign-shell {
  display: grid;
  gap: 12px;
}
.lighting-group-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lighting-group-pill {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
}
.lighting-group-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.lighting-wall-map {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}
.lighting-wall-map svg {
  display: block;
  width: 100%;
  height: auto;
}
.lighting-wall-segment {
  cursor: pointer;
}
.lighting-wall-label {
  font: 700 12px/1 sans-serif;
  fill: #0f172a;
  pointer-events: none;
}
.lighting-wall-list {
  display: grid;
  gap: 6px;
}
.lighting-wall-list-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.lighting-wall-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
}
.product-dialog-panel {
  width: min(1240px, calc(100vw - 24px));
  max-width: 1240px;
  max-height: min(88vh, 900px);
  margin: 0;
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.dialog-header h2 {
  margin: 0;
}
.spot-picker-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.spot-picker-filters label {
  flex: 1 1 180px;
}
.spot-picker-group-check{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,0.72);
  font-size:14px;
  font-weight:700;
  color:var(--text);
  margin:0;
}
.spot-picker-group-check input{
  width:auto;
}
.spot-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.spot-picker-card {
  display: grid;
  gap: 10px;
  text-align: left;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
}
.spot-picker-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}
.spot-picker-card.active{
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.spot-picker-thumb {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 10px;
  background: #f8fafc;
}
.spot-picker-thumb-stack {
  position: relative;
  width: 100%;
  height: 120px;
}
.spot-picker-thumb-main,
.spot-picker-thumb-dimension {
  position: absolute;
  inset: 0;
  transition: opacity 180ms ease;
}
.spot-picker-thumb-dimension {
  opacity: 0;
  pointer-events: none;
}
.spot-picker-thumb-stack.has-dimension-image:hover .spot-picker-thumb-dimension,
.spot-picker-thumb-stack.has-dimension-image:focus-within .spot-picker-thumb-dimension {
  opacity: 1;
}
.spot-picker-thumb-stack.has-dimension-image:hover .spot-picker-thumb-main,
.spot-picker-thumb-stack.has-dimension-image:focus-within .spot-picker-thumb-main {
  opacity: 0.08;
}
.spot-picker-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  border: 1px dashed #cbd5e1;
}
.spot-picker-name {
  font-weight: 700;
  font-size: 17px;
}
.spot-picker-meta {
  color: var(--muted);
  font-size: 14px;
}
.spot-picker-card-actions {
  display:flex;
  justify-content:flex-end;
}
.spot-picker-open-link {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:700;
  color:var(--primary);
  text-decoration:none;
}
.spot-picker-open-link:hover {
  text-decoration:underline;
}
.lighting-button-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 14px;
}
.lighting-button-filter-row label {
  flex: 1 1 180px;
}
.lighting-button-picker-note {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}
.lighting-button-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}
.lighting-product-copy {
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}
.lighting-product-bullets {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}
.lighting-product-bullets li {
  line-height: 1.4;
}
.product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.room-setup-panel {
  width: min(1040px, calc(100vw - 24px));
  max-width: 1040px;
  max-height: min(94vh, 1040px);
  overflow: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  background: var(--panel);
}
.onboarding-panel {
  max-width: 720px;
}
.auth-panel {
  padding: 0;
  overflow: hidden;
}
.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 0.95fr);
  min-height: 560px;
}
.auth-hero {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 34px 34px 30px;
  background:
    radial-gradient(circle at top left, rgba(67,160,71,0.18), transparent 38%),
    linear-gradient(180deg, #f8fff8 0%, #f3f6f9 100%);
  border-right: 1px solid #e5ecf3;
}
.auth-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #dce7dd;
  color: #256b37;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.auth-hero h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.08;
}
.auth-hero p {
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.55;
}
.auth-benefits {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.auth-benefit {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.86);
  border: 1px solid #e3eaef;
  border-radius: 18px;
}
.auth-benefit strong {
  font-size: 15px;
}
.auth-benefit span {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}
.auth-card {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 34px;
  background: #fff;
}
.auth-provider-stack {
  display: grid;
  gap: 10px;
}
.auth-provider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 16px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.auth-grid label span {
  display: block;
  margin-bottom: 8px;
}
.auth-note {
  font-size: 13px;
}
.auth-continue-btn {
  width: 100%;
  background: #43a047;
  border-color: #43a047;
  color: #fff;
  font-weight: 700;
  min-height: 52px;
  box-shadow: 0 12px 24px rgba(67, 160, 71, 0.2);
}
.auth-continue-btn:hover {
  background: #388e3c;
  border-color: #388e3c;
  color: #fff;
}
.onboarding-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.onboarding-hero p {
  margin: 0;
}
.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.onboarding-note {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.onboarding-mode-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:10px;
}
.onboarding-mode-card{
  position:relative;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:14px;
  align-items:flex-start;
  border:2px solid #dbe4ee;
  border-radius:18px;
  padding:18px;
  background:linear-gradient(180deg,#ffffff 0%,#f6faf7 100%);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.onboarding-mode-card:hover{
  transform:translateY(-2px);
  border-color:var(--primary);
  box-shadow:0 14px 34px rgba(15,23,42,0.12);
}
.onboarding-mode-card.is-selected{
  border-color:var(--primary);
  box-shadow:0 14px 34px rgba(1,200,1,0.14);
  background:linear-gradient(180deg,#ffffff 0%,#eefbf0 100%);
}
.onboarding-mode-card input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.onboarding-mode-icon{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border-radius:16px;
  font-size:28px;
  background:#f1f5f9;
  border:1px solid #dbe4ee;
}
.onboarding-mode-copy{
  display:grid;
  gap:4px;
}
.onboarding-mode-copy strong{
  font-size:18px;
  font-weight:800;
}
.onboarding-mode-copy small{
  color:var(--muted);
  line-height:1.45;
}
.room-setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.room-setup-name-block,
.room-setup-type-block {
  margin-top: 10px;
}
.room-setup-mode-block {
  margin-top: 10px;
}
.room-setup-mode-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.room-setup-mode-group.compact {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.room-setup-mode-option {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.room-setup-mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.room-setup-mode-option span {
  display: grid;
  gap: 6px;
  width: 100%;
}
.room-setup-mode-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}
.room-setup-mode-option.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(1,200,1,0.14), 0 12px 28px rgba(15,23,42,0.08);
}
.room-setup-mode-option strong {
  font-size: 18px;
  font-weight: 800;
}
.room-setup-mode-option small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.furniture-picker-dialog{
  width:min(860px, calc(100vw - 48px));
}
.furniture-picker-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:14px;
}
.furniture-picker-card{
  display:grid;
  gap:10px;
  align-content:start;
  text-align:left;
  padding:16px;
  border:1px solid #dce3ec;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 20px rgba(15,23,42,0.05);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.furniture-picker-card:hover{
  transform:translateY(-2px);
  border-color:#16a34a;
  box-shadow:0 16px 26px rgba(15,23,42,0.08);
}
.furniture-picker-card strong{
  font-size:16px;
  font-weight:700;
}
.furniture-picker-card small{
  color:var(--muted);
  font-size:13px;
}
.furniture-picker-thumb{
  height:92px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:linear-gradient(180deg,#f8fafc 0%,#eef2f7 100%);
  border:1px solid #e2e8f0;
  overflow:hidden;
}
.furniture-picker-thumb span{
  display:block;
  border-radius:12px;
  box-shadow:inset 0 0 0 2px rgba(15,23,42,0.08);
}
.furniture-picker-thumb img{
  width:min(84px, 82%);
  height:min(64px, 70%);
  object-fit:contain;
  filter:drop-shadow(0 6px 12px rgba(15,23,42,0.08));
}
.furniture-palette-card .furniture-picker-thumb img{
  width:min(72px, 84%);
  height:min(54px, 72%);
}
.furniture-bed span,
.furniture-bed_90x200 span,
.furniture-bed_180x200 span{
  width:58px;
  height:78px;
}
.furniture-cabinet span,
.furniture-cabinet_60x60 span,
.furniture-sofa_80x80 span{
  width:60px;
  height:60px;
}
.furniture-sofa span{
  width:60px;
  height:60px;
}
.furniture-desk span,
.furniture-desk_60x160 span{
  width:80px;
  height:36px;
}
.furniture-worktop span,
.furniture-worktop_60x120 span,
.furniture-worktop_60x180 span{
  width:84px;
  height:34px;
}
.furniture-upper_cabinet span,
.furniture-upper_cabinet_35x60 span,
.furniture-upper_cabinet_35x80 span,
.furniture-range_hood_60 span{
  width:76px;
  height:28px;
}
.furniture-range_hood span{
  width:76px;
  height:28px;
}
.furniture-palette-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.furniture-palette-note{
  margin-bottom:12px;
}
.furniture-palette-card{
  padding:12px;
  gap:8px;
}
.furniture-palette-card strong{
  font-size:15px;
}
.furniture-palette-card small{
  font-size:12px;
}
.furniture-palette-card.is-selected{
  border-color:#16a34a;
  box-shadow:0 0 0 2px rgba(22,163,74,0.15), 0 16px 26px rgba(15,23,42,0.08);
  background:linear-gradient(180deg,#ffffff 0%,#f4fbf5 100%);
}
.furniture-config-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:16px;
}
.furniture-config-grid label{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.room-setup-panel input,
.room-setup-panel select,
.room-setup-panel option {
  font-weight: 400;
}
.room-setup-panel select option {
  font-weight: 400;
}
.room-setup-card {
  display: grid;
  gap: 8px;
  text-align: left;
  padding: 16px;
  min-height: 124px;
}
.room-setup-create-actions{
  width:100%;
}
.room-setup-create-actions #setupCreateRoomBtn{
  width:100%;
  justify-content:center;
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
  font-weight:700;
}
.room-setup-card.is-disabled {
  opacity: .55;
  filter: saturate(.75);
}
.room-setup-card strong {
  font-size: 16px;
}
.room-setup-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.auto-suggest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-top: 12px;
}
.auto-suggest-section {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.suggest-visual-control{
  position:relative;
  width:48px;
  height:48px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,0.12);
  background:linear-gradient(180deg, #ffffff, #f3f6fa);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.9);
}
.suggest-visual-control-dim::before{
  content:'';
  position:absolute;
  inset:10px 18px 10px 18px;
  border-radius:999px;
  background:linear-gradient(180deg, #475569, #0f172a);
}
.suggest-visual-control-dim::after{
  content:'';
  position:absolute;
  left:14px;
  right:14px;
  top:22px;
  height:4px;
  border-radius:999px;
  background:#cbd5e1;
  box-shadow:0 0 0 1px rgba(15,23,42,0.06);
}
.suggest-visual-control-cct{
  background:
    linear-gradient(90deg, #f59e0b 0%, #fde68a 35%, #e2e8f0 58%, #bae6fd 76%, #60a5fa 100%);
  border-color:rgba(96,165,250,0.25);
}
.suggest-visual-control-cct::after{
  content:'CCT';
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  font-size:12px;
  font-weight:900;
  letter-spacing:0.04em;
  color:#0f172a;
}
.suggest-visual-level{
  position:relative;
  width:48px;
  height:48px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,0.12);
  background:linear-gradient(180deg, #ffffff, #f3f6fa);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.9);
}
.suggest-visual-level::before{
  content:'';
  position:absolute;
  left:11px;
  right:11px;
  bottom:11px;
  height:9px;
  border-radius:999px;
  background:#dbe4ee;
}
.suggest-visual-level-minimum::after,
.suggest-visual-level-recommended::after{
  content:'';
  position:absolute;
  width:12px;
  height:12px;
  border-radius:999px;
  border:2px solid #ffffff;
  box-shadow:0 1px 4px rgba(15,23,42,0.2);
}
.suggest-visual-level-minimum::after{
  left:12px;
  bottom:9px;
  background:#f59e0b;
}
.suggest-visual-level-recommended::after{
  right:10px;
  top:10px;
  background:#01c801;
}
.suggest-visual-level-recommended{
  background:linear-gradient(180deg, #f7fff5, #eefbf0);
  border-color:rgba(1,200,1,0.22);
}
.suggest-visual-level-minimum{
  background:linear-gradient(180deg, #fffaf0, #fff4dd);
  border-color:rgba(245,158,11,0.22);
}
.suggest-photo{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:68px;
}
.suggest-photo img{
  display:block;
  max-width:100%;
  max-height:68px;
  object-fit:contain;
}
.suggest-photo-shape{
  min-height:74px;
}
.suggest-photo-shape img{
  max-height:74px;
}
.suggest-photo-line{
  min-height:84px;
  padding:4px 0;
}
.suggest-photo-line img{
  width:100%;
  max-width:220px;
  max-height:84px;
  border-radius:12px;
  object-fit:contain;
}
.suggest-photo-spot-row{
  gap:8px;
}
.suggest-photo-spot-row img{
  width:56px;
  height:40px;
  max-width:none;
  max-height:none;
  object-fit:contain;
}
.suggest-photo-control{
  min-height:84px;
  padding:4px 0;
}
.suggest-photo-control img{
  width:100%;
  max-width:120px;
  max-height:84px;
  border-radius:12px;
  object-fit:contain;
}
.auto-suggest-section > label,
.room-setup-name-block > label,
.room-setup-type-block > label,
.room-setup-mode-block > label,
.auto-suggest-grid > label{
  font-weight: 800;
}
.auto-suggest-summary-note{
  display:flex;
  align-items:center;
  padding: 12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#f8fafc;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}
.auto-suggest-result-actions{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
  margin-top:0;
}
.auto-suggest-result-actions button{
  min-height:46px;
  font-size:14px;
  font-weight:800;
}
.auto-suggest-result-panel{
  width:min(1120px, calc(100vw - 40px));
  max-width:1120px;
  padding:14px 16px;
  display:grid;
  grid-template-columns:minmax(240px, 1.35fr) minmax(0, 2fr);
  gap:16px;
  align-items:center;
}
#autoSuggestResultDialog{
  position:fixed;
  top:86px;
  left:50%;
  transform:translateX(-50%);
  width:min(1120px, calc(100vw - 40px));
  margin:0;
  padding:0;
  background:transparent;
  z-index:1200;
}
#autoSuggestResultDialog::backdrop{
  background:transparent;
}
.auto-suggest-result-copy{
  display:grid;
  gap:4px;
}
.auto-suggest-result-copy strong{
  font-size:18px;
  font-weight:800;
}
.auto-suggest-result-copy p{
  margin:0;
  font-size:14px;
  line-height:1.45;
}
.auto-suggest-accept-btn{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}
.auto-suggest-accept-btn:hover{
  filter:brightness(1.04);
}
.crop-dialog-panel {
  max-width: 980px;
}
.crop-stage {
  position: relative;
  height: min(62vh, 620px);
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #dbe2ea;
  background:
    linear-gradient(45deg, #eef2f7 25%, transparent 25%, transparent 75%, #eef2f7 75%, #eef2f7),
    linear-gradient(45deg, #eef2f7 25%, transparent 25%, transparent 75%, #eef2f7 75%, #eef2f7);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  touch-action: none;
  user-select: none;
}
.crop-preview-image {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  max-width: none;
  max-height: none;
  will-change: transform;
  pointer-events: none;
}
.crop-frame {
  position: absolute;
  left: 11%;
  top: 12%;
  width: 78%;
  height: 76%;
  border: 2px solid rgba(37, 99, 235, 0.95);
  border-radius: 18px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.38);
  pointer-events: none;
}
.product-table th,
.product-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #edf1f6;
  vertical-align: top;
}
.product-table tfoot th {
  padding-top: 12px;
}
.product-room-sections{
  display:grid;
  gap:20px;
}
.product-room-section{
  display:grid;
  gap:14px;
}
.product-room-title{
  margin:0;
  font-size:24px;
}
.product-group-card{
  display:grid;
  gap:10px;
  padding:16px;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:#fff;
}
.product-group-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-end;
  flex-wrap:wrap;
}
.product-group-head h4{
  margin:0;
  font-size:18px;
}
.product-group-subtitle{
  color:var(--muted);
  font-size:13px;
}
.product-group-list{
  display:grid;
  gap:8px;
}
.product-group-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:12px;
  align-items:start;
  padding:8px 0;
  border-bottom:1px solid #edf1f6;
}
.product-group-row:last-child{
  border-bottom:0;
}
.product-group-row strong{
  display:block;
  margin-bottom:2px;
}
.product-group-row .muted{
  font-size:12px;
}
.product-group-total{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  font-weight:700;
  padding-top:6px;
}
@media (max-width: 1350px) { .layout { grid-template-columns: 1fr; } .canvas-panel { height: auto; min-height: auto; } .canvas-viewport { max-height: none; } }

dialog::backdrop { background: rgba(15,23,42,0.35); }
dialog { border: 0; padding: 0; background: transparent; }

.desktop-topbar{align-items:center;gap:18px}
.brand-block.compact h1{font-size:20px;margin-bottom:6px}
.onboarding-grid{grid-template-columns:1fr 1fr}
.onboarding-mode-grid{grid-template-columns:1fr 1fr}
.menu-toolbar{display:flex;gap:8px;flex-wrap:nowrap;align-items:center;overflow-x:auto;scrollbar-width:none}
.menu-toolbar::-webkit-scrollbar{display:none}
.menu-group{position:relative}
.menu-btn{min-width:112px;font-weight:600}
.dropdown-menu{display:none;position:absolute;top:100%;left:0;z-index:50;min-width:250px;background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:8px}
.dropdown-menu.open{display:grid;gap:6px}
.dropdown-menu#defaultsMenu{min-width:320px}
.dropdown-menu button,.dropdown-file,.menu-inline{width:100%;text-align:left;border:1px solid transparent;background:#fff;border-radius:10px;padding:10px 12px}
.dropdown-menu button:hover,.dropdown-file:hover{border-color:var(--primary);background:#f8fbff}
.dropdown-file{display:block;cursor:pointer}
.menu-inline select{width:100%;border:1px solid var(--line);margin:0}
.default-product-inline{display:grid;gap:8px}
.default-product-card{
  display:grid;
  grid-template-columns:56px 1fr auto;
  gap:12px;
  align-items:center;
  width:100%;
  min-height:72px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--panel);
}
.default-product-card-thumb,
.default-product-card-thumb-empty{
  width:56px;
  height:56px;
  border-radius:12px;
  object-fit:cover;
  background:#f4f6fa;
  border:1px solid var(--line);
}
.default-product-card-thumb-empty{
  display:grid;
  place-items:center;
  font-size:11px;
  color:var(--muted);
}
.default-product-card-copy{
  min-width:0;
  display:grid;
  gap:4px;
}
.default-product-card-name{
  font-size:14px;
  font-weight:700;
  line-height:1.2;
}
.default-product-card-meta{
  font-size:12px;
  color:var(--muted);
  line-height:1.3;
}
.default-product-card .secondary{
  min-width:84px;
  text-align:center;
}
.menu-sep{height:1px;background:#edf1f6;margin:4px 0}
.roombar{padding-top:10px;padding-bottom:10px}
dialog::backdrop { background: rgba(15,23,42,0.35); }
dialog { border: 0; padding: 0; background: transparent; }
@media (max-width: 900px){
  .auth-shell{grid-template-columns:1fr}
  .auth-hero{border-right:0;border-bottom:1px solid #e5ecf3}
  .onboarding-grid{grid-template-columns:1fr}
  .onboarding-mode-grid{grid-template-columns:1fr}
  .room-setup-mode-group{grid-template-columns:1fr}
  .room-setup-grid{grid-template-columns:1fr}
  .auto-suggest-grid{grid-template-columns:1fr}
}


html, body { min-height: 100%; }
body { overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
button, input, select { touch-action: manipulation; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  backdrop-filter: blur(10px);
}
.desktop-topbar {
  align-items: center;
}
.mobile-canvas-hint{
  display:none;
  width:100%;
  font-size:12px;
  color:var(--muted);
}
@media (max-width: 720px){
  .auth-hero,
  .auth-card{padding:22px}
  .auth-hero h2{font-size:30px}
  .user-session-chip{max-width:220px}
}
  .canvas-panel {
    min-width: 0;
  }
  .canvas-viewport {
    max-height: none;
  }
  #plannerCanvas {
    display:block;
    width:100%;
    height:auto;
  }
.menu-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.left-panel, .right-panel {
  min-width: 0;
}
.layout {
  grid-template-columns: 300px minmax(0,1fr) 340px;
  align-items: stretch;
}
.panel {
  padding: 14px;
}
.panel section + section {
  margin-top: 16px;
  padding-top: 14px;
}
.panel h2 {
  font-size: 16px;
  margin-bottom: 10px;
}
.panel section:first-child {
  margin-top: 0;
}
.desktop-topbar .menu-toolbar{
  overflow: visible;
  flex-wrap: nowrap;
  justify-content: center;
}
.desktop-topbar .menu-group{
  flex: 0 0 auto;
}
.lighting-assignment-list{
  display:grid;
  gap:12px;
}
.lighting-assignment-row{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(180px,0.9fr);
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}
.lighting-assignment-copy{
  min-width:0;
  display:grid;
  gap:4px;
}
.lighting-assignment-titleline,
.lighting-wall-copy{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  flex-wrap:wrap;
}
.lighting-section-title{
  margin:8px 0 2px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#64748b;
}
.lighting-item-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
}
.lighting-item-badge{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  background:#eef6ff;
  color:#0b5fc1;
  font-size:11px;
  font-weight:700;
  line-height:1;
}
.lighting-assignment-copy strong{
  font-size:14px;
}
.lighting-assignment-copy .muted{
  font-size:12px;
}
.lighting-assignment-empty{
  padding:14px;
  border:1px dashed var(--line);
  border-radius:14px;
  background:#fbfdff;
}
.lighting-group-card-wide{
  display:grid;
  gap:16px;
  min-height: 560px;
}
.lighting-group-layout{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(280px,0.95fr) minmax(280px,0.95fr);
  gap:22px;
  align-items:stretch;
}
.lighting-group-column{
  min-width:0;
  height:100%;
}
.lighting-group-main,
.lighting-group-side{
  display:grid;
  gap:14px;
  align-content:start;
}
.lighting-group-card-wide h3{
  font-size: 22px;
}
.lighting-group-card-wide .lighting-group-meta{
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  font-size: 14px;
}
.lighting-group-card-wide .lighting-wall-list-item{
  font-size: 14px;
}
.lighting-group-side{
  align-content:start;
}
.lighting-tab-shell{
  display:grid;
  gap:16px;
}
.lighting-room-tabs{
  display:flex;
  flex-wrap:nowrap;
  gap:8px;
  overflow-x:auto;
  padding-bottom:2px;
}
.lighting-group-pills{
  display:flex;
  flex-wrap:nowrap;
  gap:8px;
  overflow-x:auto;
}
.lighting-control-grid{
  display:none !important;
}
.lighting-assignment-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}
.lighting-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:#eef6ff;
  color:#0b5fc1;
  font-size:12px;
  font-weight:700;
}
.lighting-inline-select{
  min-width:180px;
}
.lighting-wall-list{
  display:grid;
  gap:10px;
}
.lighting-wall-list-item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:12px;
  background:#f8fafc;
  border:1px solid #e8edf5;
}
@media (max-width: 980px) {
  .lighting-assignment-row,
  .lighting-group-layout{
    grid-template-columns:1fr;
  }
  .product-group-row{
    grid-template-columns:1fr;
  }
}
@media (max-width: 980px) {
  .topbar {
    padding: 10px 12px;
  }
  .desktop-topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .brand-block.compact {
    display:grid;
    gap:8px;
  }
  .brand-block.compact h1 {
    font-size: 18px;
    margin: 0;
  }
  .brand-meta-line {
    display:grid;
    gap:4px;
  }
  .menu-toolbar {
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
    gap:8px;
    padding-bottom:4px;
    scrollbar-width:none;
    -webkit-overflow-scrolling: touch;
  }
  .menu-toolbar::-webkit-scrollbar { display:none; }
  .menu-group {
    flex: 0 0 auto;
  }
  .menu-btn {
    min-width: 54px;
    width: 54px;
    height: 54px;
    padding: 8px;
    border-radius: 16px;
    font-size: 22px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-indent: -9999px;
    position: relative;
  }
  .menu-btn::before{
    content: attr(aria-label);
    display:none;
  }
  .menu-btn[data-menu="fileMenu"] { text-indent:0; font-size:0; }
  .menu-btn[data-menu="fileMenu"]::after { content:"📁"; font-size:24px; }
  .menu-btn[data-menu="importMenu"] { text-indent:0; font-size:0; }
  .menu-btn[data-menu="importMenu"]::after { content:"📥"; font-size:24px; }
  .menu-btn[data-menu="addMenu"] { text-indent:0; font-size:0; }
  .menu-btn[data-menu="addMenu"]::after { content:"➕"; font-size:24px; }
  .menu-btn[data-menu="roomMenu"] { text-indent:0; font-size:0; }
  .menu-btn[data-menu="roomMenu"]::after { content:"🏠"; font-size:24px; }
  .menu-btn[data-menu="docMenu"] { text-indent:0; font-size:0; }
  .menu-btn[data-menu="docMenu"]::after { content:"📄"; font-size:24px; }

  .dropdown-menu {
    position: fixed;
    left: 12px !important;
    right: 12px !important;
    top: auto;
    width: auto;
    min-width: 0;
    max-height: min(70vh, 560px);
    overflow: auto;
    border-radius: 18px;
  }

  .roombar {
    padding: 8px 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .room-tabs {
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
    gap:8px;
    scrollbar-width:none;
  }
  .room-tabs::-webkit-scrollbar{ display:none; }
  .room-tabs button {
    flex:0 0 auto;
    white-space:nowrap;
  }
  .mobile-canvas-hint{
    display:block;
  }

  .layout {
    display:flex;
    flex-direction:column;
    gap:12px;
    padding:12px;
  }
  .canvas-panel {
    order: 1;
    padding: 10px;
    border-radius: 18px;
  }
  .left-panel {
    order: 2;
    padding: 14px;
  }
  .right-panel {
    order: 3;
    padding: 14px;
  }
  .canvas-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap:6px;
  }
  #plannerCanvas {
    min-height: 52vh;
    background:#fff;
  }
  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }
  .summary-kpi {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 10px;
  }
  .brand-meta-line {
    gap:2px;
  }
  .layout {
    padding: 10px;
  }
  #plannerCanvas {
    min-height: 58vh;
  }
  .tool-grid {
    grid-template-columns: 1fr 1fr;
    gap:8px;
  }
  button, .dropdown-menu button, .dropdown-file, .menu-inline {
    min-height: 44px;
  }
  .panel, .canvas-panel {
    border-radius: 16px;
  }
  .summary-kpi {
    grid-template-columns: 1fr;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(188, 170, 140, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(103, 136, 112, 0.10), transparent 22%),
    linear-gradient(180deg, #f7f4ef 0%, #f2eee8 36%, #ece8e1 100%);
  color: var(--text);
}
body[data-theme="light"] {
  --bg: #f7f7f7;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: #e0e0e0;
  --text: #333333;
  --muted: #5e5e5e;
  --primary: #01c801;
  --primary-soft: rgba(1, 200, 1, 0.12);
  --danger: #d70e1c;
  --ok: #48c857;
  --warn: #b98900;
  --shadow: 0 10px 28px rgba(27, 35, 46, 0.08);
}
body[data-theme="dark"] {
  --bg: #172939;
  --panel: #1b232e;
  --panel-strong: #222b36;
  --line: rgba(255,255,255,0.10);
  --text: #f9f9f9;
  --muted: #cdcdcd;
  --primary: #48c857;
  --primary-soft: rgba(72, 200, 87, 0.16);
  --danger: #ff6b78;
  --ok: #48c857;
  --warn: #f5c15c;
  --shadow: 0 24px 64px rgba(0,0,0,0.26);
  background: linear-gradient(180deg, #172939 0%, #1b232e 100%);
}
body[data-theme="dark"] dialog::backdrop {
  background: rgba(0, 0, 0, 0.56);
}
body[data-theme="light"] .panel,
body[data-theme="light"] .canvas-panel,
body[data-theme="light"] .dropdown-menu,
body[data-theme="light"] .product-dialog-panel,
body[data-theme="light"] .quote-result-panel,
body[data-theme="light"] .lighting-group-card,
body[data-theme="light"] .lighting-product-card,
body[data-theme="light"] .product-group-card,
body[data-theme="light"] .kpi,
body[data-theme="light"] .selection-empty,
body[data-theme="light"] .wall-calibration-panel,
body[data-theme="light"] .strip-installation-card,
body[data-theme="light"] .product-media,
body[data-theme="light"] .onboarding-note,
body[data-theme="light"] .lighting-wall-map {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
body[data-theme="dark"] .panel,
body[data-theme="dark"] .canvas-panel,
body[data-theme="dark"] .dropdown-menu,
body[data-theme="dark"] .product-dialog-panel,
body[data-theme="dark"] .quote-result-panel,
body[data-theme="dark"] .lighting-group-card,
body[data-theme="dark"] .lighting-product-card,
body[data-theme="dark"] .product-group-card,
body[data-theme="dark"] .kpi,
body[data-theme="dark"] .selection-empty,
body[data-theme="dark"] .wall-calibration-panel,
body[data-theme="dark"] .strip-installation-card,
body[data-theme="dark"] .product-media,
body[data-theme="dark"] .onboarding-note,
body[data-theme="dark"] .lighting-wall-map {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
body[data-theme="light"] .topbar,
body[data-theme="light"] .desktop-topbar {
  background: #222222;
  border-bottom: 1px solid #222222;
}
body[data-theme="light"] .roombar {
  background: #fafce2;
  border-bottom: 1px solid #e5e5c9;
}
body[data-theme="dark"] .topbar,
body[data-theme="dark"] .roombar {
  background: #1b232e;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
}
.roombar {
  position: sticky;
  top: 74px;
  z-index: 20;
}
.brand-block.compact h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand-block,
.brand-block *{
  color: inherit;
}
body[data-theme="light"] .topbar .brand-block,
body[data-theme="light"] .topbar .brand-block *{
  color:#f9f9f9;
}
body[data-theme="light"] .roombar,
body[data-theme="light"] .roombar *{
  color:#333333;
}
.menu-cluster + .menu-cluster{
  border-left-color: rgba(34,33,30,0.1);
}
body[data-theme="dark"] .menu-cluster + .menu-cluster{
  border-left-color: rgba(255,255,255,0.12);
}
button,
input,
select {
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}
button {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--text);
  font-weight: 600;
}
button:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
  box-shadow: 0 8px 18px rgba(27, 35, 46, 0.10);
  transform: translateY(-1px);
}
button.secondary,
.file-label.secondary {
  background: #ffffff;
}
body[data-theme="dark"] button.secondary,
body[data-theme="dark"] .file-label.secondary {
  background: #222b36;
}
input,
select {
  background: rgba(255,255,255,0.82);
  color: var(--text);
  border-color: var(--line);
  border-radius: 14px;
}
body[data-theme="dark"] input,
body[data-theme="dark"] select {
  background: rgba(255,255,255,0.05);
}
input:focus,
select:focus,
button:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
.menu-btn {
  min-width: 116px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
body[data-theme="light"] .menu-btn,
body[data-theme="light"] .theme-toggle-btn {
  background:#ffffff;
  color:#333333;
  border-color:#d9d9d9;
}
body[data-theme="light"] .menu-btn.menu-action-btn#openLightingControlTopBtn{
  background:#01c801;
  color:#ffffff;
  border-color:#01c801;
}
.menu-action-btn {
  white-space: nowrap;
}
.dropdown-menu {
  background: var(--panel-strong);
  border-radius: 18px;
  padding: 10px;
}
.dropdown-menu button,
.dropdown-file,
.menu-inline {
  background: transparent;
  border-radius: 14px;
}
body[data-theme="dark"] .default-product-card-thumb,
body[data-theme="dark"] .default-product-card-thumb-empty{
  background: rgba(255,255,255,0.04);
}
.dropdown-menu button:hover,
.dropdown-file:hover {
  background: color-mix(in srgb, var(--primary-soft) 60%, transparent);
  border-color: transparent;
  box-shadow: none;
}
.theme-toggle-btn {
  min-width: 118px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
}
.topbar-cta {
  gap: 10px;
}
.ledstore-checkout-btn {
  min-height: 50px;
  border-radius: 999px;
  padding-inline: 18px;
  background: #01c801;
  border-color: #01c801;
  box-shadow: 0 10px 24px rgba(1, 200, 1, 0.18);
}
.ledstore-checkout-btn:hover {
  background: #00b800;
  border-color: #00b800;
}
.room-tabs button.active,
.tool.active,
.lighting-group-pill.active {
  background: #333333;
  border-color: #333333;
  color: #fff;
}
body[data-theme="dark"] .room-tabs button.active,
body[data-theme="dark"] .tool.active,
body[data-theme="dark"] .lighting-group-pill.active {
  background: linear-gradient(180deg, #f4efe6 0%, #e4ddd3 100%);
  border-color: #e7ddd1;
  color: #141413;
}
.room-tabs button,
.lighting-group-pill {
  border-radius: 999px;
}
.layout {
  gap: 20px;
  padding: 20px;
}
.panel,
.canvas-panel {
  border-radius: 28px;
}
.left-panel,
.right-panel,
.canvas-panel {
  height: calc(100vh - 188px);
}
.canvas-panel {
  padding: 18px;
}
.canvas-toolbar {
  align-items: center;
  margin-bottom: 2px;
}
#activeRoomInfo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.canvas-viewport {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(248,246,241,0.94) 100%);
}
body[data-theme="dark"] .canvas-viewport {
  background: linear-gradient(180deg, rgba(33,32,31,0.96) 0%, rgba(26,25,24,0.96) 100%);
}
#plannerCanvas {
  border-radius: 24px;
}
.canvas-overlay-bar {
  border-radius: 18px;
}
.kpi {
  border-radius: 20px;
  padding: 14px;
}
.kpi strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}
.selection-empty,
.wall-calibration-card,
.spot-picker-card,
.lighting-product-card,
.product-group-card,
.quote-result-panel {
  border-radius: 20px;
}
.dialog-header h2,
.panel h2,
.product-room-title {
  letter-spacing: -0.03em;
}
.spot-picker-card {
  padding: 14px;
}
.spot-picker-thumb {
  border-radius: 14px;
}
.lighting-control-summary {
  gap: 16px;
}
.lighting-group-card-wide h3 {
  letter-spacing: -0.03em;
}
body[data-theme="dark"] .spot-picker-thumb,
body[data-theme="dark"] .strip-installation-image {
  background: rgba(255,255,255,0.04);
}
body[data-theme="dark"] .lighting-wall-list-item,
body[data-theme="dark"] .wall-calibration-card,
body[data-theme="dark"] .product-group-row,
body[data-theme="dark"] .canvas-overlay-bar {
  background: rgba(255,255,255,0.04);
}
body[data-theme="dark"] .lighting-assignment-empty,
body[data-theme="dark"] .onboarding-note,
body[data-theme="dark"] .scale-box {
  background: rgba(255,255,255,0.04);
}
body[data-theme="dark"] .badge {
  background: rgba(139,198,164,0.16);
  color: #d8f3e4;
}
body[data-theme="dark"] .badge.warn {
  background: rgba(255,180,84,0.16);
  color: #ffd79a;
}
body[data-theme="dark"] .ledstore-checkout-btn {
  color: #fff;
}

/* Menu typography and visual option upgrades */
.menu-btn,
.theme-toggle-btn {
  font-size: 17px;
  font-weight: 700;
}
.dropdown-menu button,
.dropdown-file,
.menu-inline,
.menu-inline select,
.dropdown-menu label {
  font-size: 15px;
}
.dialog-header h2,
.panel h2,
.panel h3,
.panel h4,
.product-group-head h4,
.editor-subsection h4,
.lighting-group-card h3,
.lighting-group-card-wide h3 {
  font-weight: 800;
}

.room-setup-visual-option span {
  align-items: start;
}
.room-setup-visual-option strong {
  font-size: 15px;
  font-weight: 800;
}
.room-setup-visual-option small {
  font-size: 13px;
}
.suggest-visual {
  display: block;
  width: 100%;
  min-height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}
.suggest-visual-shape {
  width: 54px;
  min-height: 54px;
  justify-self: start;
  background: linear-gradient(180deg, #ffffff 0%, #e9eef5 100%);
  position: relative;
}
.suggest-visual-shape::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 3px solid #4b5563;
  background: rgba(1, 200, 1, 0.08);
}
.suggest-visual-shape-round::after {
  border-radius: 999px;
}
.suggest-visual-shape-square::after {
  border-radius: 10px;
}
.suggest-visual-swatch {
  height: 42px;
  min-height: 42px;
}
.suggest-visual-swatch-white {
  background: linear-gradient(180deg, #ffffff 0%, #edf1f5 100%);
}
.suggest-visual-swatch-black {
  background: linear-gradient(180deg, #1f2937 0%, #0f172a 100%);
  border-color: rgba(255,255,255,0.16);
}
.suggest-visual-swatch-silver {
  background: linear-gradient(180deg, #eff2f6 0%, #c9d1da 100%);
}
.suggest-visual-strip {
  height: 34px;
  min-height: 34px;
}
.suggest-visual-strip-single {
  background:
    linear-gradient(90deg, #f1d6b5 0%, #f6f2ea 48%, #f4f7fb 52%, #d9e5f2 100%);
}
.suggest-visual-strip-cct {
  background: linear-gradient(90deg, #f0c89c 0%, #f5e4cb 28%, #f8f8f5 52%, #e0edf9 76%, #bfd7ee 100%);
}
.suggest-visual-strip-rgbw {
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 24%, #22c55e 48%, #3b82f6 72%, #f8fafc 100%);
}
.suggest-visual-strip-rgbcct {
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 18%, #22c55e 36%, #3b82f6 54%, #d8b4fe 72%, #fde8c6 86%, #dbeafe 100%);
}
.suggest-visual-mainlight {
  min-height: 54px;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #eef3f8 100%);
}
.suggest-visual-mainlight::before,
.suggest-visual-mainlight::after {
  content: '';
  position: absolute;
}
.suggest-visual-mainlight-spots::before {
  inset: 12px 14px;
  background:
    radial-gradient(circle at 18% 30%, rgba(51,65,85,0.95) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 30%, rgba(51,65,85,0.95) 0 6px, transparent 7px),
    radial-gradient(circle at 82% 30%, rgba(51,65,85,0.95) 0 6px, transparent 7px),
    radial-gradient(circle at 18% 74%, rgba(51,65,85,0.95) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 74%, rgba(51,65,85,0.95) 0 6px, transparent 7px),
    radial-gradient(circle at 82% 74%, rgba(51,65,85,0.95) 0 6px, transparent 7px);
}
.suggest-visual-mainlight-lines::before,
.suggest-visual-mainlight-lines-symmetric::before,
.suggest-visual-mainlight-lines-asymmetric::before {
  left: 12px;
  right: 12px;
  top: 14px;
  bottom: 14px;
}
.suggest-visual-mainlight-lines::before,
.suggest-visual-mainlight-lines-symmetric::before {
  background:
    linear-gradient(#2563eb,#2563eb) left 0 top 22% / 100% 4px no-repeat,
    linear-gradient(#2563eb,#2563eb) left 0 center / 100% 4px no-repeat,
    linear-gradient(#2563eb,#2563eb) left 0 bottom 22% / 100% 4px no-repeat;
}
.suggest-visual-mainlight-lines-asymmetric::before {
  background:
    linear-gradient(#2563eb,#2563eb) left 0 top 18% / 68% 4px no-repeat,
    linear-gradient(#2563eb,#2563eb) right 0 center / 100% 4px no-repeat,
    linear-gradient(#2563eb,#2563eb) left 0 bottom 18% / 54% 4px no-repeat;
}
.product-media-name {
  width: 100%;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

body[data-theme="dark"] .suggest-visual {
  border-color: rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
body[data-theme="dark"] .suggest-visual-shape {
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
}
body[data-theme="dark"] .suggest-visual-shape::after {
  border-color: #cbd5e1;
  background: rgba(1, 200, 1, 0.12);
}

/* Latest canvas layout overrides */
.canvas-panel{
  position:relative;
  overflow:hidden;
}
.canvas-zoom-bar{
  position:absolute;
  top:70px;
  right:18px;
  z-index:14;
  padding:8px 10px;
  border:1px solid #dbe2ea;
  border-radius:16px;
  background:rgba(248,250,252,0.94);
  backdrop-filter:blur(8px);
  box-shadow:0 8px 24px rgba(15,23,42,0.08);
}
.canvas-overlay-bar{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  z-index:13;
  margin-top:0;
  box-shadow:0 8px 24px rgba(15,23,42,0.08);
}
.left-panel.furniture-picking #summarySection{
  display:none;
}
.left-panel.furniture-picking #furniturePaletteSection{
  display:block;
}
body[data-theme="dark"] .canvas-zoom-bar{
  background:rgba(32,33,36,0.92);
  border-color:rgba(255,255,255,0.08);
}
