: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; }
#loginBtn { display:none !important; }
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); position:relative; overflow:visible; }
.topbar {
  flex-wrap: wrap;
  z-index: 600;
}
.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-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  width:100%;
}
.topbar-cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex: 1 1 320px;
  flex-wrap: wrap;
}
.app-chrome-menu-group{
  flex:0 0 auto;
}
.app-chrome-menu-btn{
  min-width:96px;
  white-space:nowrap;
}
.dropdown-menu-right{
  left:auto;
  right:0;
  max-width:min(340px, calc(100vw - 24px));
}
.app-language-inline{
  display:grid;
  gap:8px;
  width:100%;
}
.app-language-label{
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--muted);
}
.app-language-select{
  width:100%;
  min-height:38px;
  padding:8px 10px;
  border: 1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,0.92);
  color:var(--text);
  font-size:13px;
  font-weight:600;
  line-height:1.2;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.app-language-select:focus{
  outline:none;
  border-color:#43a047;
  box-shadow:0 0 0 3px rgba(67, 160, 71, 0.18);
}
.lang-menu button.is-active{
  background:#6ddc48;
  color:#101418;
  font-weight:800;
}
.user-session-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  max-width: 240px;
}
.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 .floor-tabs-select{
  min-width: 150px;
  border-radius: 999px;
}
.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-dialog-panel{
  max-height:min(78vh, 900px);
  display:grid;
  gap:12px;
  overflow:hidden;
}
.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:min(60vh, 640px);
  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;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}
.canvas-zoom-bar[hidden] { display:none !important; }
.canvas-zoom-row { display:flex; justify-content:flex-end; align-items:center; gap:8px; }
.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-zoom-lock-row{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:600;
  color:#334155;
  background:rgba(248,250,252,0.94);
  border:1px solid var(--line);
  border-radius:10px;
  padding:6px 10px;
}
.canvas-zoom-lock-row input{
  width:14px;
  height:14px;
  margin:0;
}
.canvas-viewport { position:relative; overflow:auto; border-radius:14px; border:1px solid var(--line); background:#fff; max-height:none; min-height:0; flex:1; overscroll-behavior:contain; scrollbar-width:none; isolation:isolate; }
.canvas-viewport::-webkit-scrollbar { width:0; height:0; }
.canvas-viewport.pan-mode { cursor: grab; }
.canvas-viewport.panning { cursor: grabbing; }
.canvas-viewport.measure-mode { cursor: crosshair; }
#plannerCanvas { display:block; width: 1400px; height: 860px; background: #fff; touch-action: none; transform-origin: top left; flex: 0 0 auto; position:relative; z-index:1; }
/* Keep drawing area tight to viewport: no extra white gutters around canvas */
#plannerCanvas{
  margin:0;
}
#plannerLabelCanvas{
  position:fixed;
  width:100%;
  height:100%;
  display:block;
  pointer-events:none;
  z-index:9998;
}
.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:flex;
  align-items:flex-start;
  gap:8px;
  min-height:0;
  padding:0 4px;
  font-size:14px;
  line-height:1.3;
  font-weight:700;
  color:var(--text);
  white-space:normal;
  overflow-wrap:anywhere;
  flex:1 1 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; }
.floorplan-tools-card{
  display:grid;
  gap:10px;
  padding:12px;
  margin:8px 0 14px;
  border:1px solid #e5eaf2;
  border-radius:16px;
  background:linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow:0 6px 18px rgba(15,23,42,0.05);
}
.floorplan-tools-card h3{
  margin:0;
  font-size:14px;
  font-weight:800;
  letter-spacing:.01em;
}
.floorplan-scale-box{
  margin-top:0;
}
#floorplanToolsSection .grid.two-col{
  gap:8px;
}
#savedProjectsSelect { min-height: 180px; }

.cloud-project-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:12px;
  max-height:min(62vh,560px);
  overflow:auto;
  padding:6px 2px 4px;
}
.cloud-project-card{
  display:flex;
  flex-direction:column;
  gap:8px;
  border:1px solid var(--line,#d7dce7);
  background:var(--panel,#fff);
  border-radius:12px;
  padding:10px;
  cursor:pointer;
  transition:border-color .16s ease, box-shadow .16s ease, transform .12s ease;
}
.cloud-project-card:hover{
  border-color:#3b82f6;
  box-shadow:0 8px 20px rgba(15,23,42,0.12);
}
.cloud-project-card.is-selected{
  border-color:#16a34a;
  box-shadow:0 0 0 2px rgba(22,163,74,0.2);
}
.cloud-project-thumb{
  width:100%;
  aspect-ratio:16 / 10;
  border-radius:10px;
  border:1px solid var(--line,#d7dce7);
  background:#f8fafc;
  object-fit:cover;
}
.cloud-project-title{
  font:700 14px/1.35 system-ui,sans-serif;
  margin:0;
}
.cloud-project-meta{
  font:500 12px/1.35 system-ui,sans-serif;
  color:var(--muted,#5b6472);
  margin:0;
}
.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; }
.stepper-inline{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
  justify-content:flex-end;
}
.stepper-inline .small{
  min-width:28px;
  height:28px;
  padding:0 8px;
  line-height:1;
}
.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;
  cursor: move;
  user-select: none;
}
.dialog-header h2 {
  margin: 0;
}
.floating-dialog[open]{
  position: fixed;
}
.floating-dialog.dragging{
  opacity: 0.98;
}
.settings-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:8px 0;
}
.settings-label{
  text-align:left;
  flex:1 1 auto;
}
.settings-input{
  width:108px;
  min-width:108px;
  text-align:right;
}
.settings-checkrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:4px 0;
  width:100%;
}
.settings-checkrow input[type="checkbox"]{
  width:auto;
  margin-left:10px;
}
.help-dialog-content{
  display:grid;
  gap:12px;
  max-height:min(72vh, 720px);
  overflow:auto;
}
.help-dialog-content .help-intro{
  margin:0;
  color:var(--muted,#6b7280);
}
.help-dialog-content h3{
  margin:8px 0 4px;
}
.help-shortcut-list{
  margin:0;
  padding-left:18px;
  display:grid;
  gap:8px;
}
.help-shortcut-list code{
  font-weight:700;
}
.help-mail-section{
  display:grid;
  gap:12px;
}
.help-mail-grid{
  display:grid;
  gap:12px;
}
.help-mail-full{
  display:grid;
  gap:6px;
}
.help-mail-full input,
.help-mail-full textarea{
  width:100%;
}
.help-mail-note{
  margin:0;
}
.help-mail-attachments-wrap{
  display:grid;
  gap:8px;
}
.help-mail-attachments-wrap > span{
  font-size:13px;
  font-weight:700;
  color:#334155;
}
.help-mail-attachments-toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.help-mail-attachments-list{
  display:grid;
  gap:8px;
}
.help-mail-attachment{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#fff;
  padding:10px 12px;
}
.help-mail-attachment-meta{
  display:grid;
  gap:2px;
  min-width:0;
}
.help-mail-attachment-meta strong{
  font-size:13px;
  word-break:break-word;
}
.help-mail-attachment-meta span{
  font-size:12px;
  color:var(--muted,#6b7280);
}
.help-mail-status{
  min-height:1.2em;
  font-size:0.95rem;
  color:var(--muted,#6b7280);
}
.help-mail-status[data-kind="success"]{
  color:#2f8f3a;
}
.help-mail-status[data-kind="error"]{
  color:#b42318;
}
.spot-picker-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.spot-picker-filters label {
  flex: 1 1 180px;
}
.picker-sort-field{
  display:grid;
  gap:6px;
  align-items:start;
}
.picker-sort-control{
  display:flex;
  align-items:center;
  gap:8px;
}
.picker-sort-direction{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:1.25em;
  font-size:1.1em;
  font-weight:800;
  line-height:1;
  color:var(--text);
}
.track-palette-sort{
  display:grid;
  gap:6px;
  font-size:13px;
  font-weight:600;
}
.track-palette-sort-control{
  display:flex;
  align-items:center;
  gap:8px;
}
.spot-picker-grid-panel{
  flex:1 1 100%;
  display:grid;
  gap:8px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,0.78);
}
.spot-picker-grid-fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.spot-picker-grid-actions{
  display:flex;
  justify-content:flex-start;
}
.spot-picker-grid-fields label{
  min-width:0;
}
.spot-picker-grid-presets{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(64px, 1fr));
  gap:6px;
}
.spot-picker-grid-presets .small{
  min-height:30px;
  padding:6px 8px;
  font-size:12px;
}
.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-hero{
  position:relative;
}
.spot-picker-hero-badges{
  position:absolute;
  left:8px;
  right:8px;
  top:8px;
  pointer-events:none;
}
.spot-picker-hero-badges .picker-badge-row{
  gap:6px;
}
.spot-picker-hero-badges .picker-badge{
  background:rgba(255,255,255,0.92);
  color:#1e293b;
  border:1px solid rgba(148,163,184,0.45);
  box-shadow:0 6px 16px rgba(15,23,42,0.08);
}
.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;
}
.spot-picker-extra-short[hidden]{
  display:none !important;
}
.spot-picker-more-btn{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  width:max-content;
  font-size:12px;
  font-weight:700;
  color:var(--primary);
  cursor:pointer;
  user-select:none;
}
.spot-picker-more-btn:hover{
  text-decoration:underline;
}
.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);
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf4 100%);
  box-shadow: 0 0 0 2px rgba(1,200,1,0.22), 0 12px 28px rgba(15,23,42,0.08);
}
.room-setup-mode-option:has(input:checked){
  border-color: var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf4 100%);
  box-shadow: 0 0 0 2px rgba(1,200,1,0.22), 0 12px 28px rgba(15,23,42,0.08);
}
.room-setup-mode-option:has(input:checked) strong::after,
.room-setup-mode-option.is-selected strong::after{
  content:'  ✓';
  color:#16a34a;
  font-weight:900;
}
.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;
}
.door-placement-panel{
  grid-column:1 / -1;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
  background:rgba(255,255,255,0.72);
  display:grid;
  gap:8px;
}
.door-placement-options{
  display:flex;
  gap:10px;
}
.door-placement-option{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:600;
}
.door-placement-preview-wrap{
  display:flex;
  justify-content:flex-start;
}
.door-placement-preview{
  width:120px;
  height:auto;
  border:1px solid var(--line);
  border-radius:8px;
  background:#f3f4f6;
  padding:4px;
}
.door-placement-preview.is-right{
  transform:scaleX(-1);
}
.furniture-palette-note{
  margin-bottom:12px;
}
.furniture-palette-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.track-part-palette-filters{
  display:grid;
  gap:10px;
  margin-bottom:12px;
}
.track-palette-search{
  display:grid;
  gap:6px;
  font-size:13px;
  font-weight:600;
}
.track-palette-search input{
  width:100%;
}
.track-palette-filter-row{
  margin:0;
  flex-wrap:wrap;
}
.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-size-card{
  align-content:start;
}
.room-setup-size-fields{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin-top: 10px;
}
.room-setup-size-fields label{
  display:grid;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.room-setup-size-fields input{
  width: 100%;
}
.room-setup-size-fields .room-setup-create-actions{
  grid-column: 1 / -1;
  margin-top: 4px;
}
.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 .plan-lock-note{
  display:inline-flex;
  align-items:center;
  gap:6px;
  width:max-content;
  margin-top:4px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(15,23,42,.08);
  color:var(--text);
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.plan-lock-host{
  position:relative;
}
.dropdown-menu button.plan-lock-host,
.project-file-actions button.plan-lock-host,
.editor-block button.plan-lock-host{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  text-align:left;
}
#addMenu button.plan-lock-host{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
}
#addMenu button.plan-lock-host .plan-lock-inline{
  margin-left:auto;
}
.plan-lock-inline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  padding:2px 7px;
  border-radius:999px;
  background:rgba(15,23,42,.08);
  color:var(--text);
  font-size:10px;
  font-weight:700;
  line-height:1.2;
  text-transform:uppercase;
  letter-spacing:.04em;
  white-space:nowrap;
}
.is-disabled .plan-lock-inline{
  opacity:.92;
}
.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;
}
.suggest-photo-spot-row img,
.suggest-photo-shape img{
  transform:rotate(90deg);
}
.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;
}
.crop-frame.logo-mode{
  left:8%;
  top:34%;
  width:84%;
  height:32%;
  border-radius:14px;
}
.crop-rotate-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
}
.crop-rotate-row span{
  font-weight:600;
  color:var(--muted);
}
.crop-rotate-row strong{
  min-width:42px;
  text-align:right;
}
.account-logo-row{
  display:flex;
  gap:14px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.account-logo-preview-wrap{
  width:220px;
  height:72px;
  border:1px solid #dbe2ea;
  border-radius:12px;
  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:18px 18px;
  background-position:0 0, 9px 9px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
#accountLogoPreview{
  width:100%;
  height:100%;
  object-fit:contain;
}
.account-logo-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.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{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:14px;
}
.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:wrap;align-items:center;overflow:visible;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:calc(100% + 8px);left:0;z-index:5000;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:460px;
  max-width:560px;
  max-height:min(76vh, 760px);
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  padding-right:10px;
}
.dropdown-menu#defaultsMenu .menu-inline > label{
  display:block;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
  hyphens:auto;
  line-height:1.25;
  font-size:12px;
}
.dropdown-menu#defaultsMenu .menu-inline.default-product-inline > label{
  margin-bottom:4px !important;
}
.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#addMenu button{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  min-height:44px;
  padding:10px 14px;
}
.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:52px minmax(0,1fr);
  gap:10px;
  align-items:center;
  width:100%;
  min-height:64px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--panel);
}
.default-bundle-card{
  grid-template-columns:1fr;
  align-items:start;
  gap:10px 12px;
}
.default-bundle-copy{
  display:grid;
  gap:8px;
  min-width:0;
  overflow:hidden;
}
.default-bundle-mode{
  font-size:12px;
  font-weight:700;
  color:var(--text);
}
.default-bundle-items{
  display:grid;
  gap:6px;
  min-width:0;
}
.default-bundle-item{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:8px;
  align-items:center;
  min-width:0;
}
.default-bundle-item-thumb,
.default-bundle-item-thumb-empty{
  width:38px;
  height:38px;
  border-radius:10px;
  object-fit:cover;
  border:1px solid var(--line);
  background:#f4f6fa;
}
.default-bundle-item-thumb-empty{
  display:grid;
  place-items:center;
  font-size:10px;
  color:var(--muted);
}
.default-bundle-item-copy{
  min-width:0;
  overflow:hidden;
}
.default-bundle-item-title{
  display:block;
  font-size:11px;
  color:var(--muted);
  line-height:1.2;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.default-bundle-item-name{
  display:block;
  font-size:11px;
  font-weight:700;
  line-height:1.25;
  overflow-wrap:anywhere;
  word-break:break-word;
  hyphens:auto;
}
.picker-default-shortcut{
  border:1px solid #86efac;
  background:linear-gradient(180deg,#f7fff8 0%,#ecfff0 100%);
}
.picker-default-shortcut .picker-badge-previous{
  background:#16a34a;
}
.picker-default-strip-thumb-list{
  display:flex;
  gap:6px;
  margin:6px 0 2px;
}
.picker-default-strip-thumb,
.picker-default-strip-thumb-empty{
  width:34px;
  height:34px;
  border-radius:8px;
  border:1px solid var(--line);
  object-fit:cover;
  background:#f4f6fa;
}
.picker-default-strip-thumb-empty{
  display:grid;
  place-items:center;
  font-size:9px;
  color:var(--muted);
}
.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:12px;
  font-weight:700;
  line-height:1.2;
  overflow-wrap:anywhere;
  word-break:break-word;
  hyphens:auto;
}
.default-product-card-meta{
  font-size:11px;
  color:var(--muted);
  line-height:1.3;
  overflow-wrap:anywhere;
}
.default-product-card .secondary{
  grid-column:1 / -1;
  width:100%;
  min-width:0;
  padding:7px 10px;
  font-size:12px;
  text-align:center;
}
.default-bundle-card .secondary{
  grid-column:1 / -1;
  width:100%;
  min-width:0;
}
.menu-sep{height:1px;background:#edf1f6;margin:4px 0}
.roombar{padding-top:10px;padding-bottom:10px;z-index:200}
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: stretch;
}
.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;
}
.desktop-topbar .topbar-head{
  align-items:flex-start;
}
.desktop-topbar .brand-block.compact{
  min-width:220px;
  flex:1 1 280px;
}
.desktop-topbar .menu-toolbar{
  width:100%;
  overflow:visible;
  flex-wrap:wrap;
  justify-content:flex-start;
}
.desktop-topbar .topbar-cta{
  justify-content:flex-end;
  max-width:100%;
}
.desktop-topbar .user-session-chip{
  flex:0 1 auto;
}
.desktop-topbar .menu-cluster{
  flex-wrap:wrap;
}
.left-panel, .right-panel {
  min-width: 0;
}
.layout {
  grid-template-columns: 300px minmax(0,1fr) 420px;
  align-items: stretch;
}
.app-shell.focus-draw-mode .layout{
  grid-template-columns:minmax(0,1fr) 420px;
}
.app-shell.focus-draw-mode .left-panel{
  display:none;
}
.app-shell.focus-draw-mode .canvas-overlay-bar,
.app-shell.focus-draw-mode #heatmapLegend{
  display:none !important;
}
.app-shell.focus-draw-mode .canvas-panel{
  grid-column:1;
}
.app-shell.focus-draw-mode .right-panel{
  grid-column:2;
}
.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-group{
  flex: 0 0 auto;
}
.desktop-topbar .menu-btn{
  min-width:96px;
}
.desktop-topbar .theme-toggle-btn{
  white-space:nowrap;
}
.desktop-topbar .ledstore-checkout-btn{
  white-space:nowrap;
}

@media (max-width: 1500px){
  .desktop-topbar .topbar-head{
    flex-direction:column;
    align-items:stretch;
  }
  .desktop-topbar .topbar-cta{
    justify-content:flex-start;
  }
}
.lighting-assignment-list{
  display:grid;
  gap:12px;
}
.lighting-assignment-row{
  display:grid;
  grid-template-columns:auto 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-select{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.lighting-assignment-select input{
  width:16px;
  height:16px;
}
.lighting-assignment-bulkbar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 10px;
  padding:10px 12px;
  border:1px dashed var(--line);
  border-radius:12px;
  background:#f8fbff;
}
.lighting-assignment-bulkcheck{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:600;
}
.lighting-assignment-bulkmeta{
  min-width:56px;
  text-align:center;
  padding:4px 8px;
  border-radius:999px;
  background:#eef6ff;
  color:#0b5fc1;
  font-size:12px;
  font-weight:700;
}
.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;
  }
  .lighting-assignment-select{
    justify-content:flex-start;
  }
  .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: 100%;
  min-height: 44px;
  border-radius: 12px;
  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;
}
@media (max-width: 1720px){
  .desktop-topbar{
    grid-template-columns:minmax(220px,1fr);
    gap:12px;
  }
  .desktop-topbar .brand-block.compact{
    grid-column:1;
    grid-row:auto;
  }
  .desktop-topbar .menu-toolbar{
    grid-column:1;
    grid-row:auto;
    min-width:0;
  }
  .desktop-topbar .topbar-cta{
    grid-column:1;
    grid-row:auto;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  .desktop-topbar .menu-btn{
    min-width:96px;
    padding-inline:12px;
    font-size:14px;
  }
  .desktop-topbar .theme-toggle-btn,
  .desktop-topbar .ledstore-checkout-btn,
  .desktop-topbar .user-session-chip,
  .desktop-topbar .app-language-select{
    min-height:44px;
  }
  .desktop-topbar .ledstore-checkout-btn{
    padding-inline:14px;
  }
}
.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;
  min-width:0;
  white-space:normal;
  overflow-wrap:anywhere;
}
.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{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
  position:relative;
  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:relative;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  margin-top:0;
  padding:0 0 2px 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);
}

/* Latest topbar usability overrides */
.desktop-topbar{
  gap:10px;
}
.desktop-topbar .topbar-head{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto;
  align-items:start;
  gap:12px 16px;
}
.desktop-topbar .brand-block.compact{
  min-width:0;
  flex:none;
}
.desktop-topbar .brand-block.compact h1{
  font-size:18px;
  line-height:1.1;
}
.desktop-topbar .brand-meta-line{
  gap:4px 10px;
  font-size:12px;
}
.desktop-topbar .topbar-cta{
  flex:none;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
}
.desktop-topbar .user-session-chip{
  max-width:200px;
  min-height:40px;
  padding:8px 10px;
}
.desktop-topbar .app-chrome-menu-btn{
  min-width:44px;
  width:44px;
  height:44px;
  padding:0;
  font-size:20px;
}
.desktop-topbar .menu-toolbar{
  width:100%;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  overflow:visible;
}
.desktop-topbar .menu-cluster{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  min-width:0;
}
.desktop-topbar .menu-group{
  flex:0 0 auto;
}
.desktop-topbar .menu-btn{
  min-width:auto;
  min-height:44px;
  padding:10px 14px;
  white-space:nowrap;
}
.desktop-topbar .dropdown-menu-right{
  min-width:280px;
  right:0;
  left:auto;
}
.desktop-topbar .dropdown-menu-right #quoteRequestBtn{
  background:#43a047;
  color:#fff;
  border-color:#2f8f4e;
  font-weight:700;
}
.desktop-topbar .dropdown-menu-right #quoteRequestBtn:hover{
  background:#388e3c;
  border-color:#2b7f44;
}
@media (max-width: 1540px){
  .desktop-topbar .topbar-head{
    grid-template-columns:1fr;
  }
  .desktop-topbar .topbar-cta{
    justify-content:space-between;
  }
}
.desktop-topbar .menu-toolbar{
  flex-wrap:wrap;
  overflow:visible;
  padding-bottom:0;
  -webkit-overflow-scrolling:auto;
  scrollbar-width:none;
}
.desktop-topbar .menu-toolbar::-webkit-scrollbar{
  height:8px;
}
.desktop-topbar .menu-cluster{
  flex-wrap:nowrap;
}
.desktop-topbar .toolbar-action-btn{
  flex:0 0 auto;
}
.desktop-topbar .menu-btn{
  font-size:13px;
  line-height:1.1;
}
/* Single-row desktop topbar */
.desktop-topbar{
  display:grid;
  grid-template-columns:minmax(220px, auto) minmax(0, 1fr) auto;
  align-items:center;
  gap:12px;
  padding-top:10px;
  padding-bottom:10px;
}
.desktop-topbar .topbar-head{
  display:contents;
}
.desktop-topbar .brand-block.compact{
  min-width:0;
  display:grid;
  gap:2px;
  align-self:center;
}
.desktop-topbar .brand-block.compact h1{
  margin:0;
  font-size:18px;
  line-height:1.05;
}
.desktop-topbar .brand-meta-line{
  display:flex;
  flex-wrap:nowrap;
  gap:6px 10px;
  font-size:12px;
  overflow:hidden;
}
.desktop-topbar .brand-meta-line span{
  overflow:hidden;
  text-overflow:ellipsis;
}
.desktop-topbar .menu-toolbar{
  grid-column:2;
  width:auto;
  min-width:0;
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:6px;
  overflow-x:auto;
  overflow-y:visible;
  padding-bottom:0;
  scrollbar-width:none;
}
.desktop-topbar .menu-toolbar::-webkit-scrollbar{
  display:none;
}
.desktop-topbar .menu-cluster{
  flex-wrap:nowrap;
  gap:6px;
}
.desktop-topbar .menu-cluster + .menu-cluster{
  margin-left:4px;
  padding-left:10px;
}
.desktop-topbar .topbar-cta{
  grid-column:3;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  flex:none;
  flex-wrap:nowrap;
}
.desktop-topbar .user-session-chip{
  max-width:180px;
  min-height:38px;
  padding:7px 10px;
}
.desktop-topbar .app-chrome-menu-btn{
  min-width:40px;
  width:40px;
  height:40px;
  font-size:18px;
}
.desktop-topbar .menu-btn{
  min-width:auto;
  min-height:40px;
  padding:8px 12px;
  font-size:13px;
  border-radius:14px;
  white-space:nowrap;
}
@media (max-width: 1480px){
  .desktop-topbar{
    grid-template-columns:minmax(220px, auto) minmax(0, 1fr);
  }
  .desktop-topbar .topbar-cta{
    grid-column:2;
    justify-content:flex-end;
  }
}
@media (max-width: 1280px){
  .desktop-topbar{
    display:flex;
    flex-direction:column;
    align-items:stretch;
  }
  .desktop-topbar .topbar-head{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:10px;
  }
  .desktop-topbar .menu-toolbar{
    width:100%;
  }
}
.app-menu-user-summary{
  display:grid;
  gap:2px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#f8fafc;
}
.app-menu-user-summary strong{
  font-size:13px;
  color:#0f172a;
}
.app-menu-user-summary span{
  font-size:12px;
  color:var(--muted);
  word-break:break-word;
}
/* Final desktop topbar override */
.desktop-topbar{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:12px !important;
}
.desktop-topbar > .topbar-head{
  display:grid !important;
  grid-template-columns:220px minmax(0, 1fr) auto !important;
  align-items:center !important;
  gap:12px !important;
}
.desktop-topbar .brand-block.compact{
  align-self:center;
  width:220px;
  max-width:220px;
  min-width:220px;
  pointer-events:none;
}
.desktop-topbar .brand-block.compact,
.desktop-topbar .brand-block.compact *{
  pointer-events:none !important;
}
.desktop-topbar .menu-toolbar{
  width:auto !important;
  min-width:0;
  position:relative;
  z-index:20;
  flex-wrap:nowrap !important;
  overflow-x:auto !important;
  overflow-y:visible !important;
  align-self:center;
}
.desktop-topbar .menu-cluster,
.desktop-topbar .menu-group,
.desktop-topbar .menu-btn{
  position:relative;
  z-index:21;
  pointer-events:auto !important;
}
.desktop-topbar .topbar-cta{
  position:relative;
  z-index:22;
  align-self:center;
  flex-wrap:nowrap !important;
}
.desktop-topbar .user-session-chip{
  display:none !important;
}
@media (max-width: 1280px){
  .desktop-topbar{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
  }
  .desktop-topbar > .topbar-head{
    display:grid !important;
    grid-template-columns:1fr auto;
  }
  .desktop-topbar .menu-toolbar{
    width:100% !important;
  }
}

/* Final planner usability override */
.layout{
  grid-template-columns: 28px minmax(760px, 1fr) 420px;
}
.app-shell.left-panel-open .layout{
  grid-template-columns: 360px minmax(760px, 1fr) 420px;
}
.left-panel{
  position:relative;
  display:flex;
  align-items:stretch;
  gap:14px;
  padding:14px 14px 14px 10px;
  overflow:hidden;
}
.left-panel-tab{
  flex:0 0 18px;
  width:18px;
  border:none;
  border-radius:12px;
  background:linear-gradient(180deg, #d7dee8 0%, #b9c6d8 100%);
  color:#243043;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 0;
  cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.left-panel-tab:hover{
  background:linear-gradient(180deg, #c8d4e4 0%, #adc0d8 100%);
}
.left-panel-tab-icon{
  font-size:12px;
  line-height:1;
}
.left-panel-tab-text{
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.left-panel-content{
  flex:1 1 auto;
  min-width:0;
  overflow:auto;
  overflow-x:hidden;
}
.room-sidebar-controls{
  display:grid;
  gap:10px;
  margin-bottom:14px;
}
.left-panel:not(.is-expanded) .left-panel-content{
  display:none;
}
.left-panel:not(.is-expanded){
  padding-right:8px;
  padding-left:6px;
}
.left-panel.furniture-picking{
  overflow:hidden;
}
.left-panel.furniture-picking #furniturePaletteSection{
  margin-top:0;
  padding-top:0;
  border-top:none;
}
.overlay-controls-row{
  display:grid !important;
  grid-template-columns:1fr !important;
  align-items:start !important;
  gap:10px !important;
}
.overlay-controls-left{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  align-items:start !important;
  gap:8px 10px !important;
  min-width:0;
}
.overlay-controls-center{
  min-width:0;
}
.overlay-controls-right{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  justify-content:flex-start !important;
  flex-wrap:wrap !important;
}
.overlay-check{
  display:inline-flex;
  align-items:center;
  gap:5px;
  white-space:normal;
  font-size:13px;
  font-weight:700;
}
.overlay-check input{
  margin:0;
}
.overlay-guide-actions{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.overlay-guide-actions .small{
  min-height:30px;
  padding:6px 10px;
  font-size:12px;
}
.canvas-legend{
  margin:0 !important;
}
.room-sidebar-controls .canvas-legend{
  width:100%;
}
.heatmap-legend-card{
  padding:8px 10px !important;
  border-radius:14px !important;
}
.heatmap-legend-main{
  display:grid !important;
  grid-template-columns:1fr !important;
  align-items:center !important;
  gap:10px !important;
}
.heatmap-legend-head{
  margin-bottom:4px !important;
}
.heatmap-legend-head strong{
  font-size:13px !important;
}
.heatmap-legend-head span,
.heatmap-ticks,
.heatmap-legend-metrics-side span{
  font-size:11px !important;
}
.heatmap-scale{
  height:18px !important;
}
.heatmap-legend-metrics-side{
  display:flex !important;
  align-items:stretch !important;
  gap:8px !important;
}
.heatmap-legend-metrics-side em{
  font-size:11px !important;
}
.heatmap-legend-metrics-side strong{
  font-size:12px !important;
}
.desktop-topbar{
  display:block !important;
  gap:0 !important;
}
.desktop-topbar > .topbar-head{
  display:grid !important;
  grid-template-columns:190px minmax(0, 1fr) 44px !important;
  align-items:center !important;
  gap:10px !important;
}
.desktop-topbar .brand-block.compact{
  width:190px !important;
  max-width:190px !important;
  min-width:190px !important;
}
.desktop-topbar .menu-toolbar{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  width:100% !important;
  min-width:0 !important;
  overflow:visible !important;
  overflow-y:visible !important;
  flex-wrap:nowrap !important;
}
.desktop-topbar .topbar-cta{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  justify-self:end !important;
  width:44px !important;
  min-width:44px !important;
}
.desktop-topbar .app-chrome-menu-group{
  display:flex !important;
  align-items:center !important;
  margin:0 !important;
  width:44px !important;
  min-width:44px !important;
  justify-content:flex-end !important;
}
.desktop-topbar .app-chrome-menu-btn{
  min-width:40px !important;
  width:40px !important;
  height:40px !important;
  min-height:40px !important;
  padding:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}
@media (max-width: 1480px){
  .layout,
  .app-shell.left-panel-open .layout{
    grid-template-columns:28px minmax(0, 1fr) 340px;
  }
  .app-shell.left-panel-open .layout{
    grid-template-columns:300px minmax(0, 1fr) 340px;
  }
}
.desktop-topbar > .topbar-head,
.desktop-topbar .menu-toolbar,
.desktop-topbar .topbar-cta,
.desktop-topbar .app-chrome-menu-group{
  align-items:center !important;
}
.desktop-topbar .topbar-cta,
.desktop-topbar .app-chrome-menu-group,
.desktop-topbar .app-chrome-menu-btn{
  align-self:center !important;
  margin-top:0 !important;
  top:0 !important;
  transform:none !important;
  line-height:1 !important;
}
.room-tabs{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  flex-wrap:nowrap !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
}
.room-tabs .floor-tabs-select,
.room-tabs button{
  flex:0 0 auto !important;
}
.room-tabs .floor-tabs-select{
  min-width:180px !important;
  width:auto !important;
}
.desktop-topbar .topbar-cta,
.desktop-topbar .app-chrome-menu-group{
  height:40px !important;
}
.desktop-topbar .app-chrome-menu-btn{
  vertical-align:middle !important;
}

/* Topbar height/alignment hotfix: keep app menu button on same row */
.desktop-topbar{
  padding:10px 20px !important;
}
.desktop-topbar > .topbar-head{
  display:flex !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  gap:12px !important;
  min-height:44px !important;
}
.desktop-topbar .brand-block.compact{
  flex:0 0 190px !important;
  width:190px !important;
  min-width:190px !important;
  max-width:190px !important;
  margin:0 !important;
}
.desktop-topbar .menu-toolbar{
  flex:1 1 auto !important;
  min-width:0 !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  margin:0 !important;
}
.desktop-topbar .topbar-cta{
  flex:0 0 44px !important;
  width:44px !important;
  min-width:44px !important;
  height:44px !important;
  min-height:44px !important;
  margin:0 !important;
  padding:0 !important;
  align-self:center !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.desktop-topbar .app-chrome-menu-group{
  width:44px !important;
  min-width:44px !important;
  height:44px !important;
  margin:0 !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.desktop-topbar .app-chrome-menu-btn{
  width:40px !important;
  min-width:40px !important;
  height:40px !important;
  min-height:40px !important;
  margin:0 !important;
  padding:0 !important;
  position:static !important;
  top:auto !important;
  transform:none !important;
  align-self:center !important;
}

/* Final final topbar compact fix */
.topbar.desktop-topbar{
  display:block !important;
  padding:8px 20px !important;
  min-height:0 !important;
}
.topbar.desktop-topbar > .topbar-head{
  display:grid !important;
  grid-template-columns:190px minmax(0, 1fr) 44px !important;
  align-items:center !important;
  gap:10px !important;
  width:100% !important;
  min-height:44px !important;
}
.topbar.desktop-topbar .brand-block.compact{
  width:190px !important;
  min-width:190px !important;
  max-width:190px !important;
  margin:0 !important;
  align-self:center !important;
}
.topbar.desktop-topbar .brand-block.compact h1{
  margin:0 !important;
  line-height:1.15 !important;
}
.topbar.desktop-topbar .brand-meta-line{
  margin-top:2px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  max-width:190px !important;
}
.topbar.desktop-topbar .menu-toolbar{
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  gap:8px !important;
  min-width:0 !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  margin:0 !important;
}
.topbar.desktop-topbar .menu-cluster{
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  gap:8px !important;
}
.topbar.desktop-topbar .topbar-cta{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:44px !important;
  min-width:44px !important;
  height:44px !important;
  min-height:44px !important;
  margin:0 !important;
  padding:0 !important;
}
.topbar.desktop-topbar .app-chrome-menu-group{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:44px !important;
  min-width:44px !important;
  height:44px !important;
  margin:0 !important;
}
.topbar.desktop-topbar .app-chrome-menu-btn{
  width:40px !important;
  min-width:40px !important;
  height:40px !important;
  min-height:40px !important;
  margin:0 !important;
  padding:0 !important;
}

/* Ensure topbar controls stay clickable above content */
.topbar.desktop-topbar{
  position:relative !important;
  z-index:1200 !important;
  overflow:visible !important;
}
.topbar.desktop-topbar > .topbar-head,
.topbar.desktop-topbar .menu-toolbar,
.topbar.desktop-topbar .menu-cluster,
.topbar.desktop-topbar .menu-group,
.topbar.desktop-topbar .menu-btn,
.topbar.desktop-topbar .topbar-cta,
.topbar.desktop-topbar .app-chrome-menu-group,
.topbar.desktop-topbar .app-chrome-menu-btn{
  position:relative !important;
  z-index:1201 !important;
  pointer-events:auto !important;
}

/* App menu moved to left side as first toolbar button */
.topbar.desktop-topbar > .topbar-head{
  grid-template-columns:190px minmax(0, 1fr) !important;
}
.topbar.desktop-topbar .topbar-cta{
  display:none !important;
}

/* Menu danger rows: keep same text color as other menu rows */
.dropdown-menu button.danger,
.canvas-context-menu button.danger{
  color: var(--text) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
}
.dropdown-menu button.danger:hover,
.canvas-context-menu button.danger:hover{
  color: var(--danger) !important;
  background: color-mix(in srgb, var(--danger) 10%, transparent) !important;
  border-color: color-mix(in srgb, var(--danger) 35%, transparent) !important;
}

/* Force app menu dropdown below header, same direction as other topbar menus */
.topbar.desktop-topbar #appChromeMenu{
  top:calc(100% + 8px) !important;
  left:0 !important;
  right:auto !important;
  transform:none !important;
}

/* Final topbar lock (single row + right-opening app menu) */
.topbar.desktop-topbar{
  min-height:58px !important;
  max-height:58px !important;
}
.topbar.desktop-topbar > .topbar-head{
  display:grid !important;
  grid-template-columns:minmax(180px,220px) minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:10px !important;
}
.topbar.desktop-topbar .brand-block.compact{
  flex:unset !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
}
.topbar.desktop-topbar .menu-toolbar{
  grid-column:2 !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scrollbar-width:none !important;
}
.topbar.desktop-topbar .menu-toolbar::-webkit-scrollbar{
  display:none !important;
}
.topbar.desktop-topbar .topbar-cta{
  display:flex !important;
  grid-column:3 !important;
  align-items:center !important;
  justify-content:flex-end !important;
}
.topbar.desktop-topbar .app-chrome-menu-group{
  margin-left:auto !important;
}
.topbar.desktop-topbar .app-chrome-menu-group .dropdown-menu,
.topbar.desktop-topbar .dropdown-menu-right{
  left:auto !important;
  right:0 !important;
}
.roombar{
  margin-top:0 !important;
  border-top:0 !important;
}

/* Fill main 3 panels to visible viewport bottom */
:root{
  --app-chrome-height: 116px;
}
.layout{
  height:calc(100vh - var(--app-chrome-height)) !important;
  min-height:0 !important;
  align-items:stretch !important;
}
.left-panel,
.canvas-panel,
.right-panel{
  height:100% !important;
  max-height:100% !important;
  min-height:0 !important;
}

/* Final viewport lock: maximize drawing height without page scrolling */
html, body{
  height:100% !important;
  overflow:hidden !important;
}
body{
  margin:0 !important;
}
.app-shell{
  height:100vh !important;
  min-height:100vh !important;
  max-height:100vh !important;
  overflow:hidden !important;
}
.topbar.desktop-topbar{
  flex:0 0 auto !important;
}
.roombar{
  flex:0 0 auto !important;
  margin-top:0 !important;
  border-top:none !important;
  position:relative !important;
  top:-1px !important;
}
.layout{
  flex:1 1 auto !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:hidden !important;
  padding-top:8px !important;
  padding-bottom:8px !important;
}
.left-panel,
.canvas-panel,
.right-panel{
  overflow:hidden !important;
}
.left-panel-content,
#selectionPanel{
  overflow:auto !important;
  box-sizing:border-box;
  scrollbar-gutter:stable;
}
.canvas-panel{
  display:flex !important;
  flex-direction:column !important;
}
.canvas-viewport{
  flex:1 1 auto !important;
  min-height:0 !important;
  max-height:none !important;
}
.canvas-context-menu{
  position:fixed;
  z-index:5200;
  display:grid;
  gap:4px;
  min-width:190px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  box-shadow:var(--shadow);
}
.canvas-context-menu button{
  width:100%;
  text-align:left;
  min-height:30px;
  padding:6px 9px;
  border-radius:9px;
  font-size:12px;
  line-height:1.2;
}
.canvas-context-menu[hidden]{
  display:none !important;
}

/* Right panel compact mode: fit more selection details without vertical page pressure */
.right-panel{
  padding:10px !important;
}
.right-panel .panel h2{
  margin:0 0 8px !important;
  font-size:16px !important;
  line-height:1.1 !important;
}
#selectionPanel{
  padding-right:12px !important;
  padding-left:2px !important;
}
.left-panel-content{
  padding-right:10px !important;
}
#summaryPanel{
  box-sizing:border-box;
  padding-right:8px;
}
#summaryPanel .metric-row,
.right-panel .metric-row{
  align-items:start;
}
.right-panel .selection-empty{
  padding:8px !important;
  border-radius:10px !important;
}
.right-panel .editor-block{
  gap:8px !important;
}
.right-panel .editor-subsection{
  gap:8px !important;
  padding:9px !important;
  border-radius:11px !important;
}
.right-panel .editor-subsection h4{
  font-size:14px !important;
  margin:0 !important;
}
.right-panel .metric-row{
  display:grid !important;
  grid-template-columns:minmax(74px, 0.42fr) minmax(0, 0.58fr) !important;
  align-items:start !important;
  margin:3px 0 !important;
  column-gap:8px !important;
  row-gap:2px !important;
  font-size:12px !important;
  line-height:1.22 !important;
}
.right-panel .metric-row > span{
  min-width:0 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}
.right-panel .metric-row > strong{
  min-width:0 !important;
  text-align:right !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
}
.right-panel .project-file-actions{
  gap:6px !important;
}
.right-panel button,
.right-panel .dropdown-file,
.right-panel .menu-inline,
.right-panel .small{
  min-height:28px !important;
  padding:4px 8px !important;
  border-radius:9px !important;
  font-size:12px !important;
  line-height:1.15 !important;
}
.right-panel input,
.right-panel select,
.right-panel textarea{
  padding:6px 8px !important;
  font-size:12px !important;
  border-radius:9px !important;
}
.right-panel .selection-media-grid{
  grid-template-columns:1fr !important;
  gap:8px !important;
}
.right-panel .product-media{
  gap:6px !important;
  padding:8px !important;
  border-radius:10px !important;
}
.right-panel .product-image-stack{
  max-width:180px !important;
  height:110px !important;
}
.right-panel .product-image{
  border-radius:8px !important;
}
.right-panel .tool-hint,
.right-panel .muted{
  font-size:11px !important;
  line-height:1.25 !important;
}

/* 2026-05-01: final compact usability layout */
.topbar.desktop-topbar{
  position:sticky !important;
  top:0 !important;
  z-index:3200 !important;
  min-height:52px !important;
  padding:6px 12px !important;
  overflow:visible !important;
}
.topbar.desktop-topbar > .topbar-head{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  min-height:38px !important;
}
.topbar.desktop-topbar .brand-block.compact{
  flex:0 0 170px !important;
  width:170px !important;
  min-width:170px !important;
  max-width:170px !important;
}
.topbar.desktop-topbar .brand-block.compact h1{
  font-size:18px !important;
  line-height:1.05 !important;
}
.topbar.desktop-topbar .brand-meta-line{
  font-size:11px !important;
  line-height:1.1 !important;
}
.topbar.desktop-topbar .menu-toolbar{
  flex:1 1 auto !important;
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
  flex-wrap:nowrap !important;
  overflow-x:auto !important;
  overflow-y:visible !important;
}
.topbar.desktop-topbar .menu-btn{
  min-height:32px !important;
  height:32px !important;
  padding:5px 10px !important;
  border-radius:12px !important;
  font-size:12px !important;
  line-height:1 !important;
}
.topbar.desktop-topbar .menu-group,
.topbar.desktop-topbar .menu-cluster{
  display:flex !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  gap:6px !important;
}
.topbar.desktop-topbar .dropdown-menu{
  z-index:4200 !important;
}
.topbar.desktop-topbar .dropdown-menu button,
.topbar.desktop-topbar .dropdown-file,
.topbar.desktop-topbar .menu-inline{
  padding:7px 9px !important;
  font-size:12px !important;
  line-height:1.2 !important;
  border-radius:9px !important;
}

/* App menu must open to the right from the menu button */
.topbar.desktop-topbar #appChromeMenu{
  left:calc(100% + 8px) !important;
  right:auto !important;
  top:0 !important;
  transform-origin:top left !important;
  max-height:min(72vh, 420px) !important;
  overflow:auto !important;
  min-width:230px !important;
  padding:7px !important;
}

/* Compact floor/room tab row */
.roombar{
  padding:6px 12px !important;
  min-height:44px !important;
}
.room-tabs{
  gap:6px !important;
  flex-wrap:nowrap !important;
  overflow-x:auto !important;
}
.room-tabs button,
.room-tabs .floor-tabs-select{
  min-height:32px !important;
  height:32px !important;
  padding:4px 10px !important;
  font-size:12px !important;
  border-radius:999px !important;
}
.room-tabs .floor-tabs-select{
  min-width:132px !important;
}

/* Make room header/status area lower */
.canvas-toolbar{
  gap:8px !important;
  min-height:30px !important;
  margin-bottom:4px !important;
}
#activeRoomInfo{
  font-size:13px !important;
  line-height:1.15 !important;
}
.status{
  min-height:22px !important;
  font-size:12px !important;
  line-height:1.1 !important;
}
.canvas-toolbar-actions{
  min-height:24px !important;
  gap:6px !important;
}
.canvas-toolbar-actions .small{
  min-height:26px !important;
  padding:4px 8px !important;
  font-size:12px !important;
}

/* Remove unused bottom white strip and give area to canvas */
.canvas-overlay-bar{
  display:none !important;
}
.canvas-panel{
  padding:10px !important;
  gap:6px !important;
}
.canvas-viewport{
  flex:1 1 auto !important;
  min-height:0 !important;
  height:100% !important;
}

/* Compact desktop topbar height */
.topbar.desktop-topbar{
  height:64px !important;
  min-height:64px !important;
  max-height:64px !important;
  padding:6px 14px !important;
}
.topbar.desktop-topbar > .topbar-head{
  height:100% !important;
  min-height:0 !important;
}
.topbar.desktop-topbar .brand-block.compact{
  height:100% !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
}
.topbar.desktop-topbar .brand-meta-line{
  display:none !important;
}

/* Keep topbar buttons strictly inside the bar */
.topbar.desktop-topbar > .topbar-head{
  overflow:hidden !important;
}
.topbar.desktop-topbar .menu-toolbar{
  flex-wrap:nowrap !important;
  align-items:center !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  white-space:nowrap !important;
}
.topbar.desktop-topbar .menu-cluster{
  flex-wrap:nowrap !important;
  align-items:center !important;
}
.topbar.desktop-topbar .menu-group{
  flex:0 0 auto !important;
}
.topbar.desktop-topbar .menu-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:36px !important;
  height:36px !important;
  margin:0 !important;
  top:auto !important;
  transform:none !important;
}

/* Emergency restore: keep desktop topbar visible and buttons present */
.topbar.desktop-topbar{
  position:sticky !important;
  top:0 !important;
  z-index:2600 !important;
  display:flex !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  min-height:64px !important;
  max-height:none !important;
  height:auto !important;
  overflow:visible !important;
}
.topbar.desktop-topbar > .topbar-head{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  width:100% !important;
  gap:10px !important;
  overflow:visible !important;
}
.topbar.desktop-topbar .brand-block.compact{
  flex:0 0 180px !important;
  width:180px !important;
  min-width:180px !important;
  max-width:180px !important;
}
.topbar.desktop-topbar .menu-toolbar{
  display:flex !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  height:40px !important;
  align-items:center !important;
  gap:8px !important;
  flex-wrap:nowrap !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
}
.topbar.desktop-topbar .menu-cluster,
.topbar.desktop-topbar .menu-group{
  display:flex !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  flex:0 0 auto !important;
}
.topbar.desktop-topbar .menu-btn{
  display:inline-flex !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
}
.topbar.desktop-topbar .menu-toolbar .app-chrome-menu-group{
  width:auto !important;
  min-width:auto !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
}

/* Open app menu like other dropdowns (from button downwards, left-aligned) */
.topbar.desktop-topbar #appChromeMenu{
  left:0 !important;
  right:auto !important;
  top:calc(100% + 8px) !important;
}

/* Hard reset for reliable single-row clickable topbar */
.topbar.desktop-topbar{
  display:flex !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  padding:8px 16px !important;
  min-height:56px !important;
  max-height:none !important;
  position:sticky !important;
  top:0 !important;
  z-index:2500 !important;
  isolation:isolate !important;
  overflow:visible !important;
}
.topbar.desktop-topbar > .topbar-head{
  display:flex !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  gap:10px !important;
  width:100% !important;
  min-height:40px !important;
  position:relative !important;
  z-index:2501 !important;
}
.topbar.desktop-topbar .brand-block.compact{
  flex:0 0 180px !important;
  width:180px !important;
  min-width:180px !important;
  max-width:180px !important;
  margin:0 !important;
  align-self:center !important;
}
.topbar.desktop-topbar .brand-meta-line{
  font-size:12px !important;
  line-height:1.2 !important;
}
.topbar.desktop-topbar .menu-toolbar{
  flex:1 1 auto !important;
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  gap:8px !important;
  overflow:visible !important;
  position:relative !important;
  z-index:2502 !important;
}
.topbar.desktop-topbar .menu-cluster{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  flex-wrap:nowrap !important;
}
.topbar.desktop-topbar .menu-group{
  position:relative !important;
  z-index:2503 !important;
}
.topbar.desktop-topbar .menu-btn{
  position:relative !important;
  z-index:2504 !important;
  pointer-events:auto !important;
  min-height:40px !important;
}
.topbar.desktop-topbar .dropdown-menu{
  z-index:3000 !important;
}
.topbar.desktop-topbar .topbar-cta{
  display:none !important;
}
/* UI mode switch: classic vs focus-canvas */
.right-panel{
  position:relative;
}
.right-panel-tab{
  position:absolute;
  left:-12px;
  top:10px;
  z-index:6;
  width:28px;
  height:42px;
  border-radius:10px;
  border:1px solid var(--line);
  background:var(--panel);
  font-weight:700;
  cursor:pointer;
}
.app-shell.interface-focus .left-panel:not(.is-expanded){
  width:44px;
  min-width:44px;
}
.app-shell.interface-focus .right-panel.is-collapsed{
  width:20px;
  min-width:20px;
  padding:0;
  overflow:visible;
}
.app-shell.interface-focus .right-panel.is-collapsed section > :not(#rightPanelToggleBtn){
  display:none;
}
.floating-add-toolbar{
  position:absolute;
  left:18px;
  top:90px;
  z-index:30;
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.94);
  box-shadow:0 8px 24px rgba(15,23,42,.14);
}
.floating-add-toolbar button{
  min-width:38px;
  height:38px;
  padding:0 10px;
  border-radius:10px;
}
.floating-add-toolbar-close{
  min-width:30px !important;
  width:30px;
  height:30px !important;
  padding:0 !important;
  border-radius:8px !important;
  font-size:13px;
  line-height:1;
  color:#64748b;
}
.floating-add-toolbar-handle{
  cursor:grab;
  user-select:none;
  font-weight:700;
  color:#64748b;
  padding:0 6px;
}
.floating-add-toolbar.is-vertical{
  flex-direction:column;
  align-items:stretch;
}
.floating-add-toolbar.is-vertical .floating-add-toolbar-handle{
  writing-mode:vertical-rl;
  text-orientation:mixed;
  text-align:center;
  padding:6px 0;
}
.room-meta-save{
  background:var(--ok) !important;
  border-color:var(--ok) !important;
  color:#fff !important;
}
.floating-add-toolbar.dragging .floating-add-toolbar-handle{
  cursor:grabbing;
}
/* Concept-B style focus canvas */
.app-shell.interface-focus .layout{
  grid-template-columns:44px minmax(0,1fr) 20px;
  gap:10px;
  padding:10px;
}
.app-shell.interface-focus.left-panel-open .layout{
  grid-template-columns:360px minmax(0,1fr) 20px;
}
.app-shell.interface-focus.right-panel-open .layout{
  grid-template-columns:44px minmax(0,1fr) 360px;
}
.app-shell.interface-focus.left-panel-open.right-panel-open .layout{
  grid-template-columns:360px minmax(0,1fr) 360px;
}
.app-shell.interface-focus .canvas-panel{
  border-radius:14px;
  padding:10px;
  min-height:calc(100vh - 170px);
}
.app-shell.interface-focus .canvas-toolbar{
  min-height:42px;
  padding:6px 8px;
}
.app-shell.interface-focus .canvas-viewport{
  min-height:calc(100vh - 260px);
}
.app-shell.interface-focus .left-panel.is-expanded{
  width:320px;
  min-width:320px;
}
.app-shell.interface-focus .right-panel:not(.is-collapsed){
  width:360px;
  min-width:360px;
}

/* Concept-B focus layout */
.focus-room-tabs-section{
  margin-bottom:10px;
}
.focus-room-tabs-host{
  display:grid;
  gap:8px;
}
.app-shell.interface-focus .roombar{
  display:none !important;
}
.app-shell.interface-focus .left-panel.is-expanded .focus-room-tabs-section{
  display:block !important;
}
.app-shell.interface-focus .focus-room-tabs-host .room-tabs{
  display:grid !important;
  gap:8px !important;
  overflow:visible !important;
}
.app-shell.interface-focus .focus-room-tabs-host .room-tabs .floor-tabs-select{
  min-width:0 !important;
  width:100% !important;
  height:34px !important;
}
.app-shell.interface-focus .focus-room-tabs-host .room-tabs button{
  width:100% !important;
  justify-content:flex-start !important;
  text-align:left !important;
  height:34px !important;
  min-height:34px !important;
  border-radius:12px !important;
}

/* Concept-B top actions: compact row in focus mode */
.app-shell.interface-focus .topbar.desktop-topbar .menu-cluster-files{
  opacity:1;
}
.app-shell.interface-focus .topbar.desktop-topbar .menu-btn{
  min-height:34px !important;
  height:34px !important;
  padding:4px 10px !important;
}

/* Right sidebar: same full-height tab behavior as left sidebar */
.right-panel{
  position:relative !important;
  display:flex !important;
  align-items:stretch !important;
  gap:14px !important;
  padding:14px 10px 14px 14px !important;
  overflow:hidden !important;
}
.right-panel > section{
  display:grid !important;
  grid-template-columns:18px minmax(0,1fr) !important;
  align-items:stretch !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  min-height:0 !important;
  height:100% !important;
}
.right-panel-tab{
  position:static !important;
  grid-column:1 !important;
  grid-row:1 !important;
  flex:0 0 18px !important;
  width:18px !important;
  height:100% !important;
  min-height:100% !important;
  align-self:stretch !important;
  border:none !important;
  border-radius:12px !important;
  background:linear-gradient(180deg, #d7dee8 0%, #b9c6d8 100%) !important;
  color:#243043 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  padding:10px 0 !important;
  box-shadow:inset 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
}
.right-panel #selectionPanel{
  grid-column:2 !important;
  grid-row:1 !important;
}
.right-panel-tab:hover{
  background:linear-gradient(180deg, #c8d4e4 0%, #adc0d8 100%) !important;
}
.right-panel-tab-icon{
  font-size:12px;
  line-height:1;
}
.right-panel-tab-text{
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.right-panel.is-collapsed{
  padding-right:8px !important;
  padding-left:6px !important;
}
.right-panel.is-collapsed #selectionPanel{
  display:none !important;
}

/* Auto-hide top chrome: reveal by moving mouse to top */
.topbar.desktop-topbar,
.roombar{
  transition:transform .22s ease, opacity .22s ease !important;
  will-change:transform, opacity;
}
.app-shell.chrome-hidden .topbar.desktop-topbar,
.app-shell.chrome-hidden .roombar{
  transform:translateY(-120%) !important;
  opacity:0 !important;
  pointer-events:none !important;
}
.app-shell.chrome-hidden .layout{
  padding-top:4px !important;
  height:calc(100vh - 8px) !important;
}

/* Remove remaining white strip under drawing area */
.canvas-panel{
  padding-bottom:0 !important;
}
.canvas-viewport{
  background:transparent !important;
  border-bottom:0 !important;
  margin-bottom:0 !important;
  padding-bottom:0 !important;
  display:grid !important;
  align-content:start !important;
}

/* Final sidebar viewport lock (normal + focus)
   Prevent sidebars from going under canvas or outside viewport. */
.layout{
  grid-template-columns:28px minmax(0,1fr) 20px !important;
}
.app-shell.left-panel-open .layout{
  grid-template-columns:clamp(280px, 24vw, 340px) minmax(0,1fr) 20px !important;
}

/* Topbar: ensure File/Import/App menu buttons are not transparent */
.topbar.desktop-topbar #appChromeMenuBtn,
.topbar.desktop-topbar #importMenuBtn,
.topbar.desktop-topbar #fileMenuBtn{
  opacity: 1 !important;
  background: var(--btn-bg, #f7f8fa) !important;
  border: 1px solid var(--line, #d8dde6) !important;
  color: var(--text, #1f2937) !important;
  backdrop-filter: none !important;
}
.topbar.desktop-topbar #appChromeMenuBtn:hover,
.topbar.desktop-topbar #importMenuBtn:hover,
.topbar.desktop-topbar #fileMenuBtn:hover{
  background: var(--btn-bg-hover, #eceff4) !important;
}
.app-shell.right-panel-open .layout{
  grid-template-columns:28px minmax(0,1fr) clamp(300px, 26vw, 360px) !important;
}
.app-shell.left-panel-open.right-panel-open .layout{
  grid-template-columns:clamp(280px, 24vw, 340px) minmax(0,1fr) clamp(300px, 26vw, 360px) !important;
}

.app-shell.interface-focus .layout{
  grid-template-columns:44px minmax(0,1fr) 20px !important;
}
.app-shell.interface-focus.left-panel-open .layout{
  grid-template-columns:clamp(280px, 24vw, 340px) minmax(0,1fr) 20px !important;
}
.app-shell.interface-focus.right-panel-open .layout{
  grid-template-columns:44px minmax(0,1fr) clamp(300px, 26vw, 360px) !important;
}
.app-shell.interface-focus.left-panel-open.right-panel-open .layout{
  grid-template-columns:clamp(280px, 24vw, 340px) minmax(0,1fr) clamp(300px, 26vw, 360px) !important;
}

.left-panel,
.right-panel,
.canvas-panel{
  min-width:0 !important;
}
.app-shell.interface-focus .left-panel.is-expanded,
.app-shell.interface-focus .right-panel:not(.is-collapsed){
  width:auto !important;
  min-width:0 !important;
}

/* Top chrome behavior: overlay by default, optional locked mode */
.app-shell{
  --chrome-height: 128px;
}
.app-shell.chrome-overlay .layout{
  margin-top:calc(-1 * var(--chrome-height)) !important;
  height:calc(100vh + var(--chrome-height)) !important;
}
.app-shell.chrome-overlay.chrome-hidden .layout{
  margin-top:0 !important;
  height:100vh !important;
}
.app-shell.chrome-locked .layout{
  margin-top:0 !important;
  height:calc(100vh - var(--chrome-height)) !important;
}

/* Updated SVG icon set for menu + floating toolbar */
#toolAddSpotBtn,
#toolAddDownlightBtn,
#toolAddStripBtn,
#toolAddCustomIesBtn,
#toolAddFurnitureBtn,
#toolMeasureBtn,
#helpBtn{
  background-repeat:no-repeat;
  background-position:12px center;
  background-size:18px 18px;
  padding-left:36px !important;
}
#toolAddSpotBtn{ background-image:url('ui-icons/downlight.svg'); }
#toolAddDownlightBtn{ background-image:url('ui-icons/downlight.svg'); }
#toolAddStripBtn{ background-image:url('ui-icons/led-strip.svg'); }
#toolAddCustomIesBtn{ background-image:url('ui-icons/panel-round.svg'); }
#toolAddFurnitureBtn{ background-image:url('ui-icons/furniture.svg'); }
#toolMeasureBtn{ background-image:url('ui-icons/measure.svg'); }
#helpBtn{ background-image:url('ui-icons/help.svg'); }

#floatingAddSpotBtn,
#floatingAddStripBtn,
#floatingAddWallLightBtn,
#floatingAddPanelBtn,
#floatingAddFurnitureBtn{
  font-size:0 !important;
  color:transparent !important;
  text-indent:-9999px;
  overflow:hidden;
  background-repeat:no-repeat;
  background-position:center center;
  background-size:20px 20px;
}
#floatingAddSpotBtn{ background-image:url('ui-icons/downlight.svg'); }
#floatingAddStripBtn{ background-image:url('ui-icons/led-strip.svg'); }
#floatingAddWallLightBtn{ background-image:url('ui-icons/wall-light.svg'); }
#floatingAddPanelBtn{ background-image:url('ui-icons/panel-square.svg'); }
#floatingAddFurnitureBtn{ background-image:url('ui-icons/furniture.svg'); }
#floatingToggleHeatmapBtn{
  font-size:0 !important;
  color:transparent !important;
  position:relative;
  overflow:hidden;
}
#floatingToggleHeatmapBtn::before{
  content:'◉';
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  line-height:1;
  color:#dc2626;
}
#floatingToggleHeatmapBtn.is-on{
  border-color:#4ade80;
  background:#f0fdf4;
}
#floatingToggleHeatmapBtn.is-on::before{
  color:#16a34a;
}
#floatingToggleHeatmapBtn.is-off{
  border-color:#fca5a5;
  background:#fef2f2;
}
#floatingToggleHeatmapBtn.is-off::before{
  color:#dc2626;
}

/* Heatmap icon override: use a dedicated contour icon with ON/OFF colors. */
#floatingToggleHeatmapBtn{
  text-indent:-9999px;
}
#floatingToggleHeatmapBtn::before{
  content:'';
  inset:8px;
  display:block;
  background-color:#dc2626;
  -webkit-mask-image:url('ui-icons/heatmap.svg');
  -webkit-mask-repeat:no-repeat;
  -webkit-mask-position:center;
  -webkit-mask-size:contain;
  mask-image:url('ui-icons/heatmap.svg');
  mask-repeat:no-repeat;
  mask-position:center;
  mask-size:contain;
}
#floatingToggleHeatmapBtn.is-on::before{
  background-color:#16a34a;
}
#floatingToggleHeatmapBtn.is-off::before{
  background-color:#dc2626;
}

/* Room tabs traffic-light state (lux vs recommendation) */
.room-tabs button.room-lux-health{
  position:relative;
  overflow:hidden;
}
.room-tabs button.room-lux-health::before{
  content:"";
  position:absolute;
  inset:0;
  width:var(--room-lux-fill, 0%);
  background:var(--room-lux-color, #ef4444);
  opacity:.22;
  pointer-events:none;
}
.room-tabs button.room-lux-health > *{
  position:relative;
  z-index:1;
}
.room-tabs button.room-lux-tone-bad{ --room-lux-color:#ef4444; }
.room-tabs button.room-lux-tone-warn{ --room-lux-color:#f59e0b; }
.room-tabs button.room-lux-tone-ok{ --room-lux-color:#22c55e; }
.room-tabs button.room-lux-ok{
  background:#e9f8ee !important;
  border-color:#79d39a !important;
  color:#166534 !important;
}
.room-tabs button.room-lux-warn{
  background:#fff6e6 !important;
  border-color:#f3c780 !important;
  color:#9a4a00 !important;
}
.room-tabs button.room-lux-bad{
  background:#fdecec !important;
  border-color:#ee9f9f !important;
  color:#9f1239 !important;
}
.room-tabs button.room-lux-ok.active{
  background:#22c55e !important;
  border-color:#16a34a !important;
  color:#ffffff !important;
}
.room-tabs button.room-lux-warn.active{
  background:#f59e0b !important;
  border-color:#d97706 !important;
  color:#ffffff !important;
}
.room-tabs button.room-lux-bad.active{
  background:#ef4444 !important;
  border-color:#dc2626 !important;
  color:#ffffff !important;
}
.room-tabs button.room-lux-health.active::before{
  opacity:.34;
}
.room-tabs button.room-lux-health.room-lux-over::after{
  content:"+";
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  font-weight:800;
  font-size:13px;
  line-height:1;
  color:#0f172a;
  background:rgba(255,255,255,.82);
  border-radius:999px;
  width:16px;
  height:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  z-index:2;
}
