/* TeCAD Meble UI refresh
   Visual override layer only. Keep this file loaded after existing stylesheets. */

:root {
  --ui-bg: #f6f7fb;
  --ui-bg-soft: #eef2f7;
  --ui-surface: #ffffff;
  --ui-surface-muted: #f8fafc;
  --ui-surface-warm: #fff8f2;
  --ui-ink: #172033;
  --ui-ink-strong: #0f172a;
  --ui-muted: #65758b;
  --ui-muted-2: #8a96a8;
  --ui-line: rgba(15, 23, 42, 0.1);
  --ui-line-strong: rgba(15, 23, 42, 0.16);
  --ui-accent: #ff6b1a;
  --ui-accent-dark: #e9580a;
  --ui-accent-soft: #fff0e7;
  --ui-teal: #0f766e;
  --ui-teal-soft: #e6f6f3;
  --ui-blue: #2563eb;
  --ui-blue-soft: #eaf1ff;
  --ui-danger: #dc2626;
  --ui-danger-soft: #fff1f2;
  --ui-success: #059669;
  --ui-success-soft: #e8f8ef;
  --ui-warning: #d97706;
  --ui-warning-soft: #fff7ed;
  --ui-radius: 8px;
  --ui-radius-sm: 6px;
  --ui-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --ui-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --ui-shadow-md: 0 18px 48px rgba(15, 23, 42, 0.12);
  --ui-focus: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  background: var(--ui-bg);
}

body {
  color: var(--ui-ink);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 28rem),
    linear-gradient(180deg, #fbfcff 0%, var(--ui-bg) 48%, #f9fafb 100%);
  font-family: "Manrope", "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

body.production-mode,
body.client-preview-ready {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 107, 26, 0.08), transparent 25rem),
    radial-gradient(circle at 92% 10%, rgba(37, 99, 235, 0.07), transparent 26rem),
    linear-gradient(180deg, #fbfcff 0%, #f5f7fb 52%, #f8fafc 100%);
}

a {
  color: var(--ui-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #1d4ed8;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ui-ink-strong);
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.12;
  margin-top: 0;
}

p {
  color: var(--ui-muted);
}

::selection {
  background: rgba(255, 107, 26, 0.18);
}

/* Shared surfaces */
.panel,
.planner-panel,
.planner-card,
.table-card,
.planner-current-card,
.planner-config-card,
.planner-room-wrap,
.planner-auto-countertop-panel,
.planner-production-summary-card,
.planner-live-production-card,
.planner-sheet-card,
.planner-offer-settings-section,
.planner-offer-live-preview,
.account-card,
.account-plan-card,
.account-hero {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--ui-shadow-sm);
}

.panel,
.planner-panel {
  padding: 20px;
}

.planner-card,
.table-card,
.account-card {
  padding: 18px;
}

.panel-header,
.table-card-header,
.planner-current-header,
.planner-kitchen-scene-head,
.planner-offer-workspace-head,
.account-row {
  border-bottom: 1px solid var(--ui-line);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.panel-header h2,
.table-card-header h2,
.table-card-title-row h3,
.planner-current-header h3,
.planner-kitchen-scene-head h3,
.planner-offer-workspace-head h3,
.account-card h2 {
  font-size: 20px;
  margin: 0;
}

.planner-card h3,
.table-card h3,
.account-card h3 {
  font-size: 16px;
}

.panel-header p,
.table-card-header p,
.planner-current-header p,
.planner-offer-workspace-head p,
.account-card p {
  margin-top: 6px;
}

/* App top bar */
#saasAuthCard.v3-saas-card {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 18px;
  min-height: 50px;
  margin: 0;
  padding: 8px 18px;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

#saasAuthCard h3 {
  margin: 0;
  font-size: 15px;
  white-space: nowrap;
}

.v3-saas-topbar-brand {
  display: inline-flex;
  align-items: center;
  color: var(--ui-ink-strong);
}

#saasAuthCard .v3-saas-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.v3-saas-summary-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 4px 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.9);
  color: var(--ui-muted);
  line-height: 1.1;
}

.v3-saas-summary-row dt {
  color: var(--ui-muted-2);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.v3-saas-summary-row dd {
  color: var(--ui-ink);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-saas-auth-out {
  display: flex;
  justify-content: flex-end;
}

#saasAuthCard .ghost-button {
  min-height: 34px;
  padding: 0 14px;
}

.v3-saas-status,
.v3-legal-note {
  margin: 0;
  color: var(--ui-muted-2);
  font-size: 11px;
  line-height: 1.25;
}

.v3-saas-status {
  grid-column: 2;
}

.v3-legal-note {
  grid-column: 3;
  justify-self: end;
  white-space: nowrap;
}

/* Main shell and sidebar */
.app-shell {
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
}

.v3-main {
  min-width: 0;
  width: 100%;
}

.v3-left-rail {
  position: sticky;
  top: 66px;
  align-self: flex-start;
  max-height: calc(100vh - 82px);
  padding: 12px 10px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--ui-shadow-md);
  backdrop-filter: blur(18px);
}

.v3-brand {
  margin: 2px 0 10px;
  padding: 6px 4px 10px;
  border-bottom: 1px solid var(--ui-line);
}

.v3-brand-logo {
  max-width: 98px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.12));
}

.v3-steps {
  display: grid;
  gap: 7px;
}

.v3-step-btn {
  min-height: 0;
  padding: 9px 8px;
  border: 1px solid transparent;
  border-radius: var(--ui-radius);
  background: transparent;
  color: var(--ui-muted);
  box-shadow: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.v3-step-btn:hover {
  border-color: rgba(37, 99, 235, 0.12);
  background: rgba(37, 99, 235, 0.055);
  color: var(--ui-ink);
  transform: translateY(-1px);
}

.v3-step-btn.is-active {
  border-color: rgba(255, 107, 26, 0.28);
  background: linear-gradient(180deg, #fff8f2 0%, #fff1e7 100%);
  color: var(--ui-accent-dark);
  box-shadow: inset 3px 0 0 var(--ui-accent), var(--ui-shadow-xs);
}

.v3-step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface-muted);
  box-shadow: none;
}

.v3-step-num img {
  max-width: 28px;
  max-height: 28px;
  object-fit: contain;
}

.v3-step-btn > span:last-child {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.18;
}

.v3-module-nav {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ui-line);
}

.v3-module-nav-title {
  color: var(--ui-muted-2);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.v3-module-link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  color: var(--ui-ink);
  text-decoration: none;
  box-shadow: var(--ui-shadow-xs);
}

.v3-module-link:hover {
  border-color: rgba(15, 118, 110, 0.24);
  background: var(--ui-teal-soft);
  color: var(--ui-ink-strong);
}

.v3-module-link-media {
  width: 32px;
  height: 32px;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface-muted);
}

.v3-module-link-label {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

/* Compact product intro */
.product-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.6fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--ui-shadow-sm);
}

.product-intro-kicker {
  margin: 0 0 8px;
  color: var(--ui-teal);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-intro h1 {
  max-width: 720px;
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.08;
}

.product-intro p {
  margin-bottom: 0;
  font-size: 13px;
}

.product-intro-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.product-intro-cards article {
  min-height: 0;
  padding: 12px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-xs);
}

.product-intro-cards h2 {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.2;
}

.product-intro-cards p {
  font-size: 12px;
  line-height: 1.35;
}

/* Forms */
.app-shell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="button"]):not([type="submit"]),
.app-shell select,
.app-shell textarea,
.account-shell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="button"]):not([type="submit"]),
.account-shell select,
.account-shell textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--ui-line-strong);
  border-radius: var(--ui-radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ui-ink-strong);
  font: inherit;
  font-size: 13px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.app-shell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="button"]):not([type="submit"]),
.account-shell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="button"]):not([type="submit"]) {
  padding: 0 12px;
}

.app-shell select,
.account-shell select {
  padding: 0 34px 0 12px;
}

.app-shell textarea,
.account-shell textarea {
  min-height: 86px;
  padding: 10px 12px;
  resize: vertical;
}

.app-shell input:focus,
.app-shell select:focus,
.app-shell textarea:focus,
.account-shell input:focus,
.account-shell select:focus,
.account-shell textarea:focus {
  border-color: rgba(37, 99, 235, 0.62);
  background: #ffffff;
  box-shadow: var(--ui-focus);
}

.app-shell input::placeholder,
.app-shell textarea::placeholder,
.account-shell input::placeholder,
.account-shell textarea::placeholder {
  color: #9aa6b8;
}

.field,
.account-form {
  gap: 10px;
}

.field > span,
.decor-picker-heading,
.planner-project-label,
.account-offer-logo-field > span,
.planner-offer-toggle span {
  color: var(--ui-ink);
  font-size: 12px;
  font-weight: 800;
}

.planner-form-grid,
.planner-offer-form-grid,
.account-profile-form,
.account-offer-company-form {
  gap: 12px;
}

/* Button system */
button,
.primary-button,
.secondary-button,
.ghost-button,
.planner-export-button,
.planner-pill-button,
.account-link-button {
  font-family: inherit;
  font-weight: 800;
  border-radius: var(--ui-radius);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease;
}

button:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.planner-export-button:hover,
.planner-pill-button:hover,
.account-link-button:hover {
  transform: translateY(-1px);
}

button:active,
.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.planner-export-button:active,
.planner-pill-button:active,
.account-link-button:active {
  transform: translateY(0);
}

button:disabled,
.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled,
.planner-export-button:disabled,
.planner-pill-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.primary-button,
.account-form button[type="submit"].primary-button,
.planner-project-cloud-load-btn,
#plannerLoadProject,
#plannerClientOfferPrint,
#plannerOfferInlinePrint,
#accountEnterPlannerBtn,
#accountProfileSaveBtn,
#accountOfferCompanySaveBtn,
.account-link-button {
  border: 1px solid rgba(255, 107, 26, 0.8);
  background: linear-gradient(180deg, var(--ui-accent) 0%, var(--ui-accent-dark) 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(255, 107, 26, 0.24);
  text-decoration: none;
}

.primary-button:hover,
.planner-project-cloud-load-btn:hover,
#plannerLoadProject:hover,
#plannerClientOfferPrint:hover,
#plannerOfferInlinePrint:hover,
#accountEnterPlannerBtn:hover,
#accountProfileSaveBtn:hover,
#accountOfferCompanySaveBtn:hover,
.account-link-button:hover {
  background: linear-gradient(180deg, #ff7a2f 0%, #e9580a 100%);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(255, 107, 26, 0.3);
}

.secondary-button,
.planner-export-button,
.planner-production-export-btn {
  border: 1px solid rgba(15, 118, 110, 0.22);
  background: var(--ui-teal-soft);
  color: var(--ui-teal);
  box-shadow: var(--ui-shadow-xs);
}

.secondary-button:hover,
.planner-export-button:hover,
.planner-production-export-btn:hover {
  border-color: rgba(15, 118, 110, 0.38);
  background: #d9f1ed;
  color: #0b5d56;
}

.ghost-button,
.planner-pill-button,
.planner-room-actions button,
.planner-kitchen-control-btn,
.account-actions button,
.account-inline-help {
  border: 1px solid var(--ui-line-strong);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ui-ink);
  box-shadow: var(--ui-shadow-xs);
}

.ghost-button:hover,
.planner-pill-button:hover,
.planner-room-actions button:hover,
.planner-kitchen-control-btn:hover,
.account-actions button:hover,
.account-inline-help:hover {
  border-color: rgba(37, 99, 235, 0.24);
  background: var(--ui-blue-soft);
  color: #1d4ed8;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.planner-help-button,
.account-inline-help {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: 999px;
  color: var(--ui-muted);
}

.danger-button,
.account-project-row button:last-child,
button[data-danger="true"] {
  border-color: rgba(220, 38, 38, 0.22);
  background: var(--ui-danger-soft);
  color: var(--ui-danger);
}

/* Project header */
.planner-project-header {
  margin-top: 12px;
}

.planner-project-row {
  gap: 10px;
  align-items: center;
}

.planner-project-actions {
  gap: 8px;
}

.planner-pro-badge,
.planner-pro-badge-inline,
.account-mode-badge,
.account-status-badge {
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: var(--ui-teal-soft);
  color: var(--ui-teal);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

/* Configurator */
.planner-type-strip {
  margin-bottom: 16px;
}

.planner-type-strip-row,
.planner-type-catalog-head,
.planner-current-header,
.planner-config-header,
.planner-room-meta,
.planner-cloud-meta {
  gap: 10px;
}

.planner-step-badge {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--ui-blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.planner-type-catalog-grid,
.planner-type-grid,
.planner-tech-preset-list {
  gap: 12px;
}

.planner-type-catalog-grid > *,
.planner-type-grid > *,
.planner-tech-preset-button,
.planner-tab,
.planner-cabinet-card,
.planner-format-card,
.format-card {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-xs);
}

.planner-type-catalog-grid > *:hover,
.planner-type-grid > *:hover,
.planner-tech-preset-button:hover,
.planner-cabinet-card:hover,
.planner-format-card:hover,
.format-card:hover {
  border-color: rgba(255, 107, 26, 0.28);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.planner-tech-preset-button.is-active,
.planner-tab.is-active,
.planner-tab[aria-selected="true"] {
  border-color: rgba(255, 107, 26, 0.34);
  background: var(--ui-accent-soft);
  color: var(--ui-accent-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 26, 0.08);
}

.planner-tab-list,
.planner-tabs {
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface-muted);
}

.planner-tab {
  min-height: 34px;
  padding: 7px 11px;
  box-shadow: none;
}

.planner-layout {
  gap: 16px;
}

.planner-canvas-panel,
.planner-current-stage,
.planner-config-card,
.planner-tab-panel {
  min-width: 0;
}

.planner-current-stage {
  gap: 14px;
}

.planner-quick-pickers {
  gap: 10px;
}

.decor-field,
.decor-picker,
.planner-current-preview,
.planner-cad2d-open,
.planner-layout-popup,
.planner-custom-cabinet-panel {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface-muted);
}

.decor-toggle {
  border: 1px solid var(--ui-line-strong);
  border-radius: var(--ui-radius);
  background: #ffffff;
  color: var(--ui-ink);
}

.planner-current-preview {
  overflow: hidden;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.planner-preview-canvas,
.planner-cabinet-canvas,
.planner-room-canvas,
.planner-kitchen-plan-canvas,
.planner-kitchen-scene-canvas {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--ui-radius);
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--ui-shadow-xs);
}

.planner-actions,
.planner-room-actions,
.planner-offer-action-row,
.planner-modal-actions {
  gap: 8px;
}

.planner-cabinet-card {
  padding: 12px;
}

.planner-cabinet-mini-label,
.planner-current-badge,
#plannerCurrentBadge {
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: var(--ui-teal-soft);
  color: var(--ui-teal);
  font-size: 11px;
  font-weight: 900;
}

/* Room and 3D visualization */
.planner-room-wrap {
  padding: 18px;
}

.planner-kitchen-scene-wrap {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

.planner-kitchen-main-toolbar,
.planner-kitchen-control-group,
.planner-kitchen-scene-controls,
.planner-room-actions {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: rgba(248, 250, 252, 0.86);
}

.planner-kitchen-canvas-stage {
  padding: 12px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    #f8fafc;
  background-size: 24px 24px;
}

.planner-kitchen-scene-canvas {
  min-height: 520px;
}

.planner-kitchen-plan-canvas {
  min-height: 420px;
}

.planner-room-meta,
.planner-cloud-meta,
.planner-offer-meta,
.planner-pro-caption,
.account-status {
  color: var(--ui-muted);
  font-size: 12px;
}

.planner-module-list,
.planner-room-module-list,
.planner-kitchen-module-list {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
}

.planner-module-list > *,
.planner-room-module-list > *,
.planner-kitchen-module-list > * {
  border-bottom: 1px solid var(--ui-line);
}

/* Cutlist and production */
.planner-sheet-materials-summary,
.planner-sheet-layout,
.planner-production-grid,
.planner-export-grid {
  gap: 12px;
}

.planner-sheet-materials-summary > *,
.planner-sheet-layout > *,
.planner-material-card,
.planner-sheet-group,
.planner-board-card,
.planner-stat-card,
.planner-export-grid > *,
.planner-cost-card,
.planner-report-card {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-xs);
}

.planner-sheet-materials-summary > *,
.planner-material-card,
.planner-stat-card,
.planner-cost-card,
.planner-report-card {
  padding: 12px;
}

.planner-sheet-card {
  overflow: hidden;
}

.planner-sheet-card header,
.planner-sheet-card .planner-sheet-header,
.planner-board-card header,
.planner-production-summary-card header,
.planner-live-production-card header {
  border-bottom: 1px solid var(--ui-line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.planner-sheet-card canvas,
.planner-board-card canvas {
  border-radius: var(--ui-radius);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.planner-production-summary-card {
  position: sticky;
  top: 76px;
  align-self: flex-start;
}

.planner-production-summary-card strong,
.planner-live-production-card strong,
.planner-cost-card strong {
  color: var(--ui-ink-strong);
}

.planner-material-usage,
.planner-usage-bar,
.planner-progress,
.account-status-badge {
  overflow: hidden;
}

.planner-usage-bar,
.planner-progress {
  border-radius: 999px;
  background: #e5eaf2;
}

.planner-usage-bar > *,
.planner-progress > * {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ui-teal), var(--ui-blue));
}

/* Tables and reports */
.table-card {
  overflow: hidden;
}

.table-card table,
.planner-offer-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-card th,
.table-card td,
.planner-offer-table th,
.planner-offer-table td {
  border-bottom: 1px solid var(--ui-line);
  padding: 10px 12px;
  vertical-align: top;
}

.table-card th,
.planner-offer-table th {
  background: var(--ui-surface-muted);
  color: var(--ui-muted);
  font-size: 11px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.table-card tr:hover td {
  background: rgba(37, 99, 235, 0.035);
}

.table-card td {
  color: var(--ui-ink);
  font-size: 13px;
}

/* Client offer */
.planner-offer-workspace-card {
  padding: 18px;
}

.planner-offer-workspace {
  align-items: start;
  gap: 16px;
}

.planner-offer-editor {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.planner-offer-settings-section {
  padding: 14px;
  box-shadow: var(--ui-shadow-xs);
}

.planner-offer-section-head {
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--ui-line);
}

.planner-offer-section-head h4 {
  margin: 0;
  font-size: 15px;
}

.planner-offer-company-summary {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface-muted);
}

.planner-offer-visibility-grid {
  gap: 8px;
}

.planner-offer-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: #ffffff;
  box-shadow: var(--ui-shadow-xs);
}

.planner-offer-toggle:hover {
  border-color: rgba(37, 99, 235, 0.22);
  background: var(--ui-blue-soft);
}

.planner-offer-toggle input[type="checkbox"],
.planner-offer-toggle input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--ui-accent);
}

.planner-offer-toggle-muted {
  opacity: 0.72;
}

.planner-offer-live-preview {
  position: sticky;
  top: 76px;
  max-height: none !important;
  overflow: visible !important;
  padding: 14px;
}

.planner-offer-live-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--ui-line);
}

.planner-offer-live-preview-head h4 {
  margin: 0;
  font-size: 15px;
}

.planner-offer-document,
.planner-offer-document-inline {
  max-height: none !important;
  overflow: visible !important;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--ui-radius);
  background: #ffffff;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.14);
}

.planner-offer-document-inner,
.planner-offer-doc-page,
.planner-offer-document article {
  color: #172033;
  background: #ffffff;
}

.planner-offer-doc-header,
.planner-offer-doc-section,
.planner-offer-doc-footer,
.planner-offer-doc-costs {
  border-color: rgba(15, 23, 42, 0.12);
}

.planner-offer-pro-message {
  border: 1px solid rgba(255, 107, 26, 0.24);
  border-radius: var(--ui-radius);
  background: var(--ui-accent-soft);
  color: var(--ui-accent-dark);
  font-weight: 800;
}

.planner-offer-visual-preview {
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: var(--ui-radius);
  background: var(--ui-surface-muted);
}

.planner-modal {
  border-radius: var(--ui-radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
}

.planner-modal-header,
.planner-modal-actions {
  border-color: var(--ui-line);
  background: var(--ui-surface);
}

/* Account */
.account-shell {
  max-width: 1240px;
  padding: 22px;
}

.account-hero {
  align-items: center;
  padding: 18px 22px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.1), transparent 16rem),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.account-hero-logo {
  max-height: 70px;
  filter: drop-shadow(0 12px 22px rgba(15, 23, 42, 0.14));
}

.account-hero-copy h1 {
  margin: 0 0 6px;
  font-size: 30px;
}

.account-hero-subtitle {
  max-width: 760px;
  margin: 0;
  color: var(--ui-muted);
}

.account-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.account-hero-badges span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 107, 26, 0.18);
  border-radius: 999px;
  background: var(--ui-accent-soft);
  color: var(--ui-accent-dark);
  font-size: 11px;
  font-weight: 900;
}

.account-hero-actions {
  gap: 10px;
}

.account-legal-links {
  margin: 0;
  font-size: 12px;
}

.account-grid {
  gap: 16px;
}

.account-card {
  box-shadow: var(--ui-shadow-sm);
}

.account-card[hidden] {
  display: none !important;
}

.account-card h2 {
  margin-bottom: 8px;
}

.account-card h3 {
  margin: 16px 0 8px;
}

.account-actions {
  gap: 8px;
}

.account-actions .ghost-button,
.account-card .ghost-button,
.account-card .primary-button {
  min-height: 38px;
}

.account-profile-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-profile-form button,
.account-offer-company-form button {
  grid-column: 1 / -1;
}

.account-offer-company {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
}

.account-offer-company-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-offer-company-form textarea,
.account-offer-company-form .account-offer-logo-field,
.account-offer-logo-preview,
.account-offer-company-form input[type="url"] {
  grid-column: 1 / -1;
}

.account-offer-logo-field {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface-muted);
}

.account-offer-logo-preview {
  display: grid;
  place-items: center;
  min-height: 92px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: var(--ui-radius);
  background: #ffffff;
  color: var(--ui-muted);
}

.account-offer-source-summary {
  margin: 10px 0;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface-muted);
}

.account-billing {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 18rem),
    #ffffff;
}

.account-billing-grid {
  gap: 10px;
}

.account-metric {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-xs);
}

.account-metric-label {
  color: var(--ui-muted-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-metric strong {
  color: var(--ui-ink-strong);
  font-size: 15px;
}

.account-mode-badge--live,
.account-status-badge--success {
  background: var(--ui-success-soft);
  color: var(--ui-success);
  border-color: rgba(5, 150, 105, 0.2);
}

.account-mode-badge--unknown,
.account-status-badge--info {
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
  border-color: rgba(37, 99, 235, 0.18);
}

.account-status-alert {
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: var(--ui-radius);
  background: var(--ui-warning-soft);
  color: var(--ui-warning);
  padding: 10px 12px;
}

.account-subscription-card,
.account-project-row,
.account-invoice-row {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-xs);
}

.account-project-list {
  gap: 8px;
}

.account-plan-grid {
  gap: 16px;
}

.account-plan-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.account-plan-card--free {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.account-plan-card--pro {
  border-color: rgba(255, 107, 26, 0.26);
  background:
    radial-gradient(circle at top right, rgba(255, 107, 26, 0.13), transparent 15rem),
    linear-gradient(180deg, #ffffff 0%, #fff8f2 100%);
}

.account-plan-card--pro::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ui-accent), var(--ui-blue), var(--ui-teal));
}

.account-plan-media {
  width: 58px;
  height: 58px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  object-fit: contain;
  padding: 6px;
}

.account-plan-price-line strong {
  color: var(--ui-ink-strong);
  font-size: 28px;
  line-height: 1;
}

.account-plan-price-line span {
  color: var(--ui-muted);
}

.account-plan-section h4 {
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-plan-list {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.account-plan-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ui-ink);
}

.account-plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--ui-teal-soft);
  box-shadow: inset 0 0 0 4px rgba(15, 118, 110, 0.24);
}

.account-plan-list--cons li::before {
  background: var(--ui-warning-soft);
  box-shadow: inset 0 0 0 4px rgba(217, 119, 6, 0.22);
}

/* Print-friendly offer output */
@media print {
  body {
    background: #ffffff !important;
  }

  #saasAuthCard,
  .v3-left-rail,
  .product-intro,
  .planner-offer-editor,
  .planner-offer-live-preview-head,
  .planner-offer-action-row,
  .planner-modal-header,
  .planner-modal-actions {
    display: none !important;
  }

  .app-shell,
  .v3-main,
  .panel,
  .planner-panel,
  .planner-offer-workspace-card,
  .planner-offer-live-preview,
  .planner-offer-document {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }

  .planner-offer-document {
    page-break-inside: avoid;
  }
}

/* Responsive refinement */
@media (max-width: 1120px) {
  .product-intro {
    grid-template-columns: 1fr;
  }

  .product-intro-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planner-offer-workspace {
    grid-template-columns: 1fr;
  }

  .planner-offer-live-preview,
  .planner-production-summary-card {
    position: static;
  }
}

@media (max-width: 900px) {
  #saasAuthCard.v3-saas-card {
    grid-template-columns: 1fr auto;
  }

  #saasAuthCard .v3-saas-summary,
  .v3-saas-status,
  .v3-legal-note {
    grid-column: 1 / -1;
  }

  .app-shell {
    padding: 12px;
  }

  .v3-left-rail {
    position: static;
    max-height: none;
  }

  .v3-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .v3-step-btn {
    justify-content: center;
  }

  .v3-step-btn > span:last-child {
    font-size: 11px;
  }

  .planner-kitchen-scene-canvas,
  .planner-kitchen-plan-canvas {
    min-height: 360px;
  }

  .account-shell {
    padding: 14px;
  }

  .account-hero,
  .account-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 13px;
  }

  .panel,
  .planner-panel,
  .planner-card,
  .table-card,
  .account-card {
    padding: 14px;
  }

  .product-intro h1,
  .account-hero-copy h1 {
    font-size: 24px;
  }

  .product-intro-cards,
  .planner-project-row,
  .planner-project-actions,
  .planner-offer-form-grid,
  .account-profile-form,
  .account-offer-company-form,
  .account-plan-grid {
    grid-template-columns: 1fr;
  }

  .v3-steps {
    grid-template-columns: 1fr 1fr;
  }

  .v3-step-btn {
    min-height: 58px;
  }

  .planner-kitchen-scene-canvas,
  .planner-kitchen-plan-canvas {
    min-height: 300px;
  }

  .planner-offer-document {
    box-shadow: var(--ui-shadow-sm);
  }

  .account-profile-form button,
  .account-offer-company-form button,
  .account-offer-company-form textarea,
  .account-offer-company-form .account-offer-logo-field,
  .account-offer-logo-preview,
  .account-offer-company-form input[type="url"] {
    grid-column: auto;
  }
}

/* QA refinements */
.v3-module-link-label {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none;
}

@media (max-width: 1100px) {
  .app-shell {
    display: grid;
    grid-template-columns: 1fr;
  }

  .v3-left-rail {
    position: static;
    width: 100%;
    max-height: none;
  }

  .v3-brand {
    display: none;
  }

  .v3-steps {
    grid-template-columns: repeat(5, minmax(112px, 1fr));
  }

  .v3-step-btn {
    min-height: 64px;
    justify-content: center;
  }

  .v3-module-nav {
    display: none;
  }

  .v3-module-link {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .v3-module-link-label {
    font-size: 11px;
    line-height: 1.15;
  }

  .product-intro {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .product-intro h1 {
    font-size: 24px;
  }

  .product-intro-cards {
    display: none;
  }
}

@media (max-width: 680px) {
  #saasAuthCard.v3-saas-card {
    gap: 4px 8px;
    min-height: 48px;
    padding: 7px 8px;
  }

  #saasAuthCard h3 {
    font-size: 0;
  }

  #saasAuthCard h3::before {
    content: "TeCAD";
    font-size: 13px;
  }

  #saasAuthCard .v3-saas-summary {
    display: none;
  }

  .v3-saas-status,
  .v3-legal-note {
    display: none;
  }

  .app-shell {
    gap: 10px;
    padding: 10px 8px;
  }

  .v3-left-rail {
    padding: 8px;
    overflow: hidden;
  }

  .v3-module-nav {
    display: none;
  }

  .v3-steps {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .v3-step-btn {
    flex: 0 0 104px;
    min-height: 74px;
    padding: 8px 6px;
    scroll-snap-align: start;
  }

  .v3-step-num {
    width: 30px;
    height: 30px;
  }

  .v3-step-btn > span:last-child {
    font-size: 11px;
    line-height: 1.08;
  }

  .product-intro {
    gap: 10px;
    padding: 14px;
  }

  .product-intro-cards {
    display: none;
  }

  .product-intro h1 {
    font-size: 22px;
  }

  .product-intro p {
    font-size: 12px;
  }

  .planner-kitchen-main-toolbar,
  .planner-kitchen-scene-controls,
  .planner-reports-tabs,
  .planner-export-grid {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  #plannerReportTableWrap,
  .planner-report-table-wrap,
  .table-card {
    overflow-x: auto;
  }

  .planner-report-table,
  #plannerReportTableWrap table {
    min-width: 760px;
  }

  .account-hero {
    padding: 16px;
  }

  .account-hero-logo {
    max-height: 54px;
  }

  .account-hero-copy h1 {
    font-size: 23px;
  }

  .account-hero-subtitle {
    font-size: 13px;
    line-height: 1.42;
  }

  .planner-project-row,
  .planner-project-actions,
  .planner-project-cloud-load {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  .planner-project-actions > *,
  .planner-project-cloud-load > *,
  .planner-project-row .planner-project-name-input,
  .planner-project-load-field,
  .planner-project-load-select {
    width: 100%;
  }
}

@media print {
  html,
  body {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  header#saasAuthCard.v3-saas-card,
  .v3-left-rail,
  .product-intro,
  .planner-panel > .panel-header,
  .planner-offer-workspace-head,
  .planner-offer-action-row,
  .planner-offer-meta,
  .planner-offer-editor,
  .planner-offer-live-preview-head,
  .planner-modal-header,
  .planner-modal-actions {
    display: none !important;
  }

  .app-shell,
  .v3-main,
  .panel,
  .planner-panel,
  .planner-offer-workspace-card,
  .planner-offer-workspace,
  .planner-offer-live-preview {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  .planner-offer-document-inline,
  .planner-offer-document {
    display: block !important;
    width: 210mm !important;
    max-width: 210mm !important;
    min-height: 297mm !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
}

/* Configurator UI V2 - presentation-only workflow refresh */
body[data-v3-active-step="meble"] .product-intro {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px 14px;
}

body[data-v3-active-step="meble"] .product-intro-kicker {
  margin-bottom: 3px;
  font-size: 10px;
}

body[data-v3-active-step="meble"] .product-intro h1 {
  max-width: 620px;
  margin-bottom: 5px;
  font-size: 20px;
  line-height: 1.05;
}

body[data-v3-active-step="meble"] .product-intro p {
  max-width: 680px;
  font-size: 12px;
  line-height: 1.35;
}

body[data-v3-active-step="meble"] .product-intro-cards {
  display: none;
}

body[data-v3-active-step="meble"] .product-intro-cards article {
  min-height: 0;
  padding: 10px 11px;
  border-color: rgba(15, 23, 42, 0.07);
  box-shadow: none;
}

body[data-v3-active-step="meble"] .product-intro-cards h2 {
  margin-bottom: 3px;
  font-size: 12px;
  line-height: 1.15;
}

body[data-v3-active-step="meble"] .product-intro-cards p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-v3-active-step="meble"] .planner-panel {
  padding: 16px;
}

body[data-v3-active-step="meble"] .planner-panel > .panel-header {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding-bottom: 12px;
}

body[data-v3-active-step="meble"] .planner-panel > .panel-header h2 {
  margin-bottom: 2px;
  font-size: 22px;
  line-height: 1.08;
}

body[data-v3-active-step="meble"] .planner-project-header {
  gap: 5px;
}

body[data-v3-active-step="meble"] .planner-project-row {
  display: grid !important;
  grid-template-columns: minmax(220px, 0.52fr) minmax(0, 1fr) !important;
  gap: 8px;
  align-items: end;
}

body[data-v3-active-step="meble"] .planner-project-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px;
  align-items: end;
  justify-content: flex-end;
}

body[data-v3-active-step="meble"] .planner-project-sample-btn {
  display: none !important;
}

body[data-v3-active-step="meble"] .planner-project-cloud-load {
  display: flex !important;
  flex: 1 1 230px;
  gap: 7px;
  align-items: end;
}

body[data-v3-active-step="meble"] .planner-project-load-field {
  flex: 1 1 160px;
  min-width: 160px;
}

body[data-v3-active-step="meble"] .planner-project-load-select {
  min-height: 38px;
}

body[data-v3-active-step="meble"] .planner-project-actions .ghost-button,
body[data-v3-active-step="meble"] .planner-project-actions .planner-project-cloud-load-btn {
  min-height: 36px;
  padding: 7px 10px;
  width: auto !important;
  white-space: nowrap;
}

body[data-v3-active-step="meble"] .planner-type-strip {
  position: relative;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

body[data-v3-active-step="meble"] .planner-type-strip::before,
body[data-v3-active-step="meble"] .planner-current-card::before,
body[data-v3-active-step="meble"] .planner-current-summary::before,
body[data-v3-active-step="meble"] .planner-gallery-wrap::before {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 9px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  color: #0f766e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-v3-active-step="meble"] .planner-type-strip::before {
  content: "ETAP 1 - Presety mebli";
}

body[data-v3-active-step="meble"] .planner-current-card::before {
  content: "ETAP 2 - Wizualizacja i projektowany modul";
}

body[data-v3-active-step="meble"] .planner-current-summary::before {
  content: "ETAP 3 / 4 - Podsumowanie i formatki";
}

body[data-v3-active-step="meble"] .planner-gallery-wrap::before {
  content: "ETAP 5 - Zestaw projektu";
}

body[data-v3-active-step="meble"] .planner-type-strip-row {
  display: none;
}

body[data-v3-active-step="meble"] .planner-type-catalog {
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

body[data-v3-active-step="meble"] .planner-type-presets,
body[data-v3-active-step="meble"] .planner-type-strip {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

body[data-v3-active-step="meble"] .planner-type-catalog-head h4 {
  font-size: 14px;
}

body[data-v3-active-step="meble"] .planner-type-catalog-grid {
  display: flex;
  flex-wrap: nowrap !important;
  gap: 8px;
  width: auto !important;
  max-width: 100%;
  max-height: none;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 2px 2px 4px;
  scrollbar-width: thin;
}

body[data-v3-active-step="meble"] .planner-archetype-tile,
body[data-v3-active-step="meble"] .planner-type-tile {
  min-height: 74px;
  padding: 9px;
  border-color: rgba(15, 23, 42, 0.07);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

body[data-v3-active-step="meble"] .planner-type-catalog-grid > * {
  flex: 0 0 148px;
  min-height: 82px !important;
  max-width: 148px;
  white-space: normal;
}

body[data-v3-active-step="meble"] .planner-type-catalog-grid img,
body[data-v3-active-step="meble"] .planner-type-catalog-grid svg {
  max-width: 46px;
  max-height: 46px;
}

body[data-v3-active-step="meble"] .planner-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

body[data-v3-active-step="meble"] .planner-canvas-panel {
  display: contents !important;
  min-width: 0;
}

body[data-v3-active-step="meble"] .planner-sidebar {
  display: contents !important;
  min-width: 0;
}

body[data-v3-active-step="meble"] .planner-config-card {
  grid-column: 2;
  grid-row: 3;
  position: static;
  justify-self: stretch;
  align-self: start;
  width: 100% !important;
  min-width: 320px !important;
  box-sizing: border-box;
  max-height: none;
  overflow: visible;
  padding: 14px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
  scrollbar-width: thin;
}

body[data-v3-active-step="meble"] .planner-config-card-head {
  position: sticky;
  top: -14px;
  z-index: 2;
  margin: -14px -14px 10px;
  padding: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

body[data-v3-active-step="meble"] .planner-config-card-head h3 {
  font-size: 17px;
  line-height: 1.15;
}

body[data-v3-active-step="meble"] .planner-tabs {
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.78);
}

body[data-v3-active-step="meble"] .planner-tab {
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

body[data-v3-active-step="meble"] .planner-tab.is-active,
body[data-v3-active-step="meble"] .planner-tab[aria-selected="true"] {
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

body[data-v3-active-step="meble"] .planner-tab-panels,
body[data-v3-active-step="meble"] .planner-tab-panel {
  gap: 10px;
}

body[data-v3-active-step="meble"] .planner-config-card .field {
  gap: 5px;
}

body[data-v3-active-step="meble"] .planner-config-card input,
body[data-v3-active-step="meble"] .planner-config-card select,
body[data-v3-active-step="meble"] .planner-config-card textarea {
  min-height: 38px;
}

body[data-v3-active-step="meble"] .planner-current-card {
  display: contents;
  position: relative;
  padding: 14px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.1);
}

body[data-v3-active-step="meble"] .planner-current-header {
  grid-column: 1 / -1;
  grid-row: 1;
  align-items: center;
  margin-bottom: 10px;
  padding: 14px 14px 10px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

body[data-v3-active-step="meble"] .planner-current-header h3 {
  font-size: 18px;
  line-height: 1.18;
}

body[data-v3-active-step="meble"] .planner-current-stage {
  display: contents !important;
}

body[data-v3-active-step="meble"] .planner-visual-stage {
  display: contents;
  grid-column: 1 / -1;
  min-width: 0;
}

body[data-v3-active-step="meble"] .planner-quick-pickers {
  grid-column: 1 / -1;
  grid-row: 5;
  order: 4;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 9px !important;
  padding: 10px;
  border: 0;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.92);
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-field {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 13px;
  background: #ffffff;
  box-shadow: none;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-picker-heading {
  font-size: 11px;
}

body[data-v3-active-step="meble"] .planner-current-preview-bridge {
  display: contents !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell,
body[data-v3-active-step="meble"] .planner-current-preview-click-shell {
  min-width: 0;
  border: 0;
  border-radius: 18px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 70%;
  min-width: min(100%, 720px);
  justify-self: start;
}

body[data-v3-active-step="meble"] .planner-current-preview-click-shell {
  grid-column: 1;
  grid-row: 3;
  min-width: 0;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-head,
body[data-v3-active-step="meble"] .planner-current-preview-click-head {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

body[data-v3-active-step="meble"] .planner-current-preview-3d {
  min-height: 560px !important;
  height: 52vh !important;
  max-height: 760px;
  border-radius: 0 0 18px 18px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.8), transparent 34%),
    linear-gradient(180deg, #dce6f2 0%, #f8fafc 56%, #eef3f9 100%);
}

body[data-v3-active-step="meble"] .planner-current-preview-clickmap {
  min-height: 520px !important;
  height: auto !important;
  max-height: none;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

body[data-v3-active-step="meble"] .planner-current-summary {
  grid-column: 1 / -1;
  grid-row: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 0;
  padding: 8px;
  border: 0;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1);
}

body[data-v3-active-step="meble"] .planner-current-summary::before {
  margin-bottom: 0;
}

body[data-v3-active-step="meble"] #plannerCurrentProductionSummary.planner-module-production-card {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-v3-active-step="meble"] #plannerCurrentProductionSummary[hidden] {
  display: none !important;
}

body[data-v3-active-step="meble"] #plannerCurrentProductionSummary > * {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

body[data-v3-active-step="meble"] #plannerCurrentProductionSummary .planner-module-production-head {
  display: none !important;
}

body[data-v3-active-step="meble"] #plannerCurrentProductionSummary .planner-module-production-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-v3-active-step="meble"] #plannerCurrentProductionSummary .planner-module-production-chip {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding: 8px 10px !important;
  white-space: normal;
}

body[data-v3-active-step="meble"] #plannerCurrentProductionSummary .planner-module-production-chip strong,
body[data-v3-active-step="meble"] #plannerCurrentProductionSummary .planner-module-production-chip span {
  min-width: 0;
  overflow-wrap: anywhere;
}

body[data-v3-active-step="meble"] .planner-board-hint {
  margin-top: 0;
  padding: 10px 12px;
  border: 1px dashed rgba(20, 184, 166, 0.24);
  border-radius: 14px;
  background: rgba(240, 253, 250, 0.64);
  color: #475569;
  font-size: 12px;
}

body[data-v3-active-step="meble"] .planner-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  max-height: none;
  overflow: visible;
  padding: 6px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1);
  scrollbar-width: thin;
}

body[data-v3-active-step="meble"] .planner-board-grid:empty {
  display: none;
}

body[data-v3-active-step="meble"] .planner-board-card,
body[data-v3-active-step="meble"] .planner-format-card,
body[data-v3-active-step="meble"] .planner-part-card {
  height: auto !important;
  min-height: 0;
  overflow: visible !important;
  padding: 9px;
  border-color: rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  box-shadow: none;
}

body[data-v3-active-step="meble"] .planner-board-card *,
body[data-v3-active-step="meble"] .planner-format-card *,
body[data-v3-active-step="meble"] .planner-part-card * {
  min-width: 0;
  max-width: 100%;
  text-overflow: clip !important;
  white-space: normal !important;
}

body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini,
body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini *,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini *,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini * {
  overflow: hidden !important;
}

body[data-v3-active-step="meble"] .planner-board-mini {
  height: 138px;
  max-width: 100%;
}

body[data-v3-active-step="meble"] .planner-board-mini-plate-wrap {
  max-width: 100% !important;
  max-height: 100% !important;
}

body[data-v3-active-step="meble"] .planner-board-card strong,
body[data-v3-active-step="meble"] .planner-board-card span,
body[data-v3-active-step="meble"] .planner-board-card small,
body[data-v3-active-step="meble"] .planner-format-card strong,
body[data-v3-active-step="meble"] .planner-format-card span,
body[data-v3-active-step="meble"] .planner-format-card small,
body[data-v3-active-step="meble"] .planner-part-card strong,
body[data-v3-active-step="meble"] .planner-part-card span,
body[data-v3-active-step="meble"] .planner-part-card small {
  overflow-wrap: anywhere;
}

body[data-v3-active-step="meble"] .planner-step-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 237, 213, 0.58);
}

body[data-v3-active-step="meble"] .planner-actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

body[data-v3-active-step="meble"] .planner-gallery-wrap {
  grid-column: 1 / -1;
  grid-row: 6;
  position: relative;
  padding: 16px;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

body[data-v3-active-step="meble"] .planner-gallery-head {
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

body[data-v3-active-step="meble"] .planner-gallery-head h3 {
  font-size: 22px;
  line-height: 1.12;
}

body[data-v3-active-step="meble"] .planner-gallery-search input {
  min-height: 42px;
}

body[data-v3-active-step="meble"] .planner-gallery-canvas {
  display: flex;
  align-items: stretch;
  gap: 18px;
  min-height: 430px !important;
  padding: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
  scrollbar-width: thin;
}

body[data-v3-active-step="meble"] .planner-cabinet-card {
  flex: 0 0 210px;
  width: 210px !important;
  min-height: 320px;
  padding: 14px;
  border-color: rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
}

body[data-v3-active-step="meble"] .planner-cabinet-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 0, 0.28);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.12);
}

body[data-v3-active-step="meble"] .planner-cabinet-card-head {
  margin-bottom: 10px;
}

body[data-v3-active-step="meble"] .planner-cabinet-mini-toggle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

body[data-v3-active-step="meble"] .planner-cabinet-card-panel {
  min-height: 190px;
}

body[data-v3-active-step="meble"] .planner-cabinet-mini-label {
  margin-top: 10px;
  color: #172033;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.18;
}

body[data-v3-active-step="pomieszczenie"] .planner-kitchen-scene-wrap {
  padding: 16px;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.1);
}

body[data-v3-active-step="pomieszczenie"] .planner-kitchen-canvas-stage {
  gap: 14px;
}

body[data-v3-active-step="pomieszczenie"] .planner-kitchen-plan-canvas,
body[data-v3-active-step="pomieszczenie"] .planner-kitchen-scene-canvas {
  min-height: 680px !important;
  border: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

@media (max-width: 1320px) {
  body[data-v3-active-step="meble"] .planner-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr) !important;
  }

  body[data-v3-active-step="meble"] .planner-current-preview-3d,
  body[data-v3-active-step="meble"] .planner-current-preview-clickmap {
    min-height: 500px !important;
  }
}

@media (max-width: 1180px) {
  body[data-v3-active-step="meble"] .product-intro {
    grid-template-columns: 1fr;
  }

  body[data-v3-active-step="meble"] .planner-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-v3-active-step="meble"] .planner-canvas-panel,
  body[data-v3-active-step="meble"] .planner-sidebar,
  body[data-v3-active-step="meble"] .planner-current-card,
  body[data-v3-active-step="meble"] .planner-current-stage,
  body[data-v3-active-step="meble"] .planner-visual-stage,
  body[data-v3-active-step="meble"] .planner-current-preview-bridge {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  body[data-v3-active-step="meble"] .planner-panel > .panel-header,
  body[data-v3-active-step="meble"] .planner-project-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-v3-active-step="meble"] .planner-project-actions {
    flex-wrap: wrap !important;
    justify-content: flex-start;
  }

  body[data-v3-active-step="meble"] .planner-config-card {
    grid-column: auto;
    grid-row: auto;
    position: static;
    max-height: none;
  }

  body[data-v3-active-step="meble"] .planner-current-preview-3d-shell,
  body[data-v3-active-step="meble"] .planner-current-preview-click-shell,
  body[data-v3-active-step="meble"] .planner-current-summary,
  body[data-v3-active-step="meble"] .planner-gallery-wrap,
  body[data-v3-active-step="meble"] .planner-quick-pickers {
    grid-column: auto;
    grid-row: auto;
    width: auto;
    min-width: 0;
  }

  body[data-v3-active-step="meble"] .planner-current-preview-bridge {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-v3-active-step="meble"] .planner-current-preview-clickmap {
    min-height: 360px !important;
    height: auto !important;
  }

  body[data-v3-active-step="meble"] #plannerCurrentProductionSummary .planner-module-production-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-v3-active-step="meble"] .planner-quick-pickers {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body[data-v3-active-step="meble"] .planner-panel {
    padding: 10px;
  }

  body[data-v3-active-step="meble"] .planner-type-catalog-grid {
    display: flex;
    max-height: none;
  }

  body[data-v3-active-step="meble"] .planner-current-card,
  body[data-v3-active-step="meble"] .planner-gallery-wrap {
    padding: 11px;
    border-radius: 16px;
  }

  body[data-v3-active-step="meble"] .planner-current-preview-3d,
  body[data-v3-active-step="meble"] .planner-current-preview-clickmap {
    min-height: 380px !important;
    height: auto !important;
  }

  body[data-v3-active-step="meble"] .planner-quick-pickers,
  body[data-v3-active-step="meble"] #plannerCurrentProductionSummary.planner-module-production-card {
    grid-template-columns: 1fr !important;
  }

  body[data-v3-active-step="meble"] #plannerCurrentProductionSummary .planner-module-production-grid {
    grid-template-columns: 1fr;
  }

  body[data-v3-active-step="meble"] .planner-gallery-head {
    align-items: stretch;
  }

  body[data-v3-active-step="meble"] .planner-gallery-canvas {
    min-height: 360px !important;
    padding: 12px;
  }

  body[data-v3-active-step="meble"] .planner-cabinet-card {
    flex-basis: 185px;
    width: 185px !important;
  }

  body[data-v3-active-step="pomieszczenie"] .planner-kitchen-plan-canvas,
  body[data-v3-active-step="pomieszczenie"] .planner-kitchen-scene-canvas {
    min-height: 460px !important;
  }
}

/* Configurator UI V2 - compact correction */
body[data-v3-active-step="meble"] .planner-layout {
  grid-template-columns: minmax(0, 1.85fr) minmax(340px, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
}

body[data-v3-active-step="meble"] .planner-config-card {
  grid-column: 2;
  grid-row: 2 / span 2;
  min-width: 340px !important;
  max-height: min(620px, calc(100vh - 178px));
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  min-height: 0 !important;
  height: auto !important;
  justify-self: stretch;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d {
  min-height: 320px !important;
  height: clamp(320px, 35vh, 420px) !important;
  max-height: 420px;
}

body[data-v3-active-step="meble"] .planner-quick-pickers {
  grid-column: 1;
  grid-row: 3;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 5px;
  border-radius: 14px;
  overflow: visible;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 6px;
  align-items: end;
  flex: unset !important;
  width: auto !important;
  min-height: 0 !important;
  padding: 5px !important;
  border-radius: 12px;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-picker-heading {
  grid-column: 1 / -1;
  font-size: 10px;
  line-height: 1.15;
}

body[data-v3-active-step="meble"] .planner-quick-pickers input {
  min-height: 28px !important;
  height: 28px !important;
  padding-inline: 8px !important;
  font-size: 11px !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-picker {
  min-width: 0;
  min-height: 0 !important;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle {
  aspect-ratio: auto !important;
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 8px !important;
  font-size: 11px !important;
  white-space: nowrap;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .helper,
body[data-v3-active-step="meble"] .planner-quick-pickers .decor-preview {
  display: none !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-click-shell {
  grid-column: 1;
  grid-row: 4;
  min-height: 0 !important;
  height: auto !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-clickmap {
  min-height: 340px !important;
  height: clamp(340px, 34vh, 430px) !important;
  max-height: 430px;
}

body[data-v3-active-step="meble"] .planner-current-summary {
  display: contents;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body[data-v3-active-step="meble"] .planner-current-summary::before {
  display: none;
}

body[data-v3-active-step="meble"] #plannerCurrentProductionSummary.planner-module-production-card {
  grid-column: 2;
  grid-row: 4;
  align-self: start;
  padding: 8px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1);
}

body[data-v3-active-step="meble"] #plannerCurrentProductionSummary > * {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-v3-active-step="meble"] #plannerCurrentProductionSummary .planner-module-production-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

body[data-v3-active-step="meble"] #plannerCurrentProductionSummary .planner-module-production-chip {
  justify-content: space-between;
  padding: 7px 9px !important;
  border-radius: 11px;
}

body[data-v3-active-step="meble"] .planner-board-hint {
  grid-column: 1 / -1;
  grid-row: 5;
  padding: 8px 10px;
}

body[data-v3-active-step="meble"] .planner-board-grid {
  grid-column: 1 / -1;
  grid-row: 6;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 6px;
  padding: 5px;
}

body[data-v3-active-step="meble"] .planner-board-card,
body[data-v3-active-step="meble"] .planner-format-card,
body[data-v3-active-step="meble"] .planner-part-card {
  padding: 7px;
}

body[data-v3-active-step="meble"] .planner-board-mini {
  height: 92px;
}

body[data-v3-active-step="meble"] .planner-step-inline {
  grid-column: 1;
  grid-row: 7;
}

body[data-v3-active-step="meble"] .planner-actions-inline {
  grid-column: 2;
  grid-row: 7;
  justify-content: flex-end;
}

body[data-v3-active-step="meble"] .planner-gallery-wrap {
  grid-column: 1 / -1;
  grid-row: 8;
  width: 100%;
}

@media (max-width: 1180px) {
  body[data-v3-active-step="meble"] .planner-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-v3-active-step="meble"] .planner-canvas-panel,
  body[data-v3-active-step="meble"] .planner-sidebar,
  body[data-v3-active-step="meble"] .planner-current-card,
  body[data-v3-active-step="meble"] .planner-current-stage,
  body[data-v3-active-step="meble"] .planner-visual-stage,
  body[data-v3-active-step="meble"] .planner-current-preview-bridge,
  body[data-v3-active-step="meble"] .planner-current-summary {
    display: contents !important;
  }

  body[data-v3-active-step="meble"] .planner-config-card,
  body[data-v3-active-step="meble"] .planner-current-preview-3d-shell,
  body[data-v3-active-step="meble"] .planner-current-preview-click-shell,
  body[data-v3-active-step="meble"] #plannerCurrentProductionSummary.planner-module-production-card,
  body[data-v3-active-step="meble"] .planner-board-hint,
  body[data-v3-active-step="meble"] .planner-board-grid,
  body[data-v3-active-step="meble"] .planner-step-inline,
  body[data-v3-active-step="meble"] .planner-actions-inline,
  body[data-v3-active-step="meble"] .planner-gallery-wrap,
  body[data-v3-active-step="meble"] .planner-quick-pickers {
    grid-column: auto;
    grid-row: auto;
  }

  body[data-v3-active-step="meble"] .planner-config-card {
    grid-column: 1;
    grid-row: 6;
    min-width: 0 !important;
    max-height: none;
    overflow: visible !important;
  }

  body[data-v3-active-step="meble"] .planner-current-preview-3d-shell {
    grid-column: 1;
    grid-row: 2;
  }

  body[data-v3-active-step="meble"] .planner-quick-pickers {
    grid-column: 1;
    grid-row: 3;
  }

  body[data-v3-active-step="meble"] .planner-quick-pickers {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-v3-active-step="meble"] .planner-current-preview-click-shell {
    grid-column: 1;
    grid-row: 4;
  }

  body[data-v3-active-step="meble"] #plannerCurrentProductionSummary.planner-module-production-card {
    grid-column: 1;
    grid-row: 5;
  }

  body[data-v3-active-step="meble"] #plannerCurrentProductionSummary .planner-module-production-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-v3-active-step="meble"] .planner-board-hint {
    grid-column: 1;
    grid-row: 7;
  }

  body[data-v3-active-step="meble"] .planner-board-grid {
    grid-column: 1;
    grid-row: 8;
  }

  body[data-v3-active-step="meble"] .planner-step-inline {
    grid-column: 1;
    grid-row: 9;
  }

  body[data-v3-active-step="meble"] .planner-actions-inline {
    grid-column: 1;
    grid-row: 10;
    justify-content: flex-start;
  }

  body[data-v3-active-step="meble"] .planner-gallery-wrap {
    grid-column: 1;
    grid-row: 11;
  }
}

@media (max-width: 760px) {
  body[data-v3-active-step="meble"] .planner-current-preview-3d {
    min-height: 340px !important;
    height: auto !important;
  }

  body[data-v3-active-step="meble"] .planner-current-preview-clickmap {
    min-height: 320px !important;
    height: auto !important;
  }

  body[data-v3-active-step="meble"] .planner-quick-pickers,
  body[data-v3-active-step="meble"] #plannerCurrentProductionSummary .planner-module-production-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Configurator UI V2 - ergonomic layout polish */
body[data-v3-active-step="meble"] .planner-config-card {
  grid-column: 2;
  grid-row: 2 / 5;
  align-self: stretch;
  min-height: 100%;
  max-height: none;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body[data-v3-active-step="meble"] #plannerCurrentProductionSummary.planner-module-production-card {
  grid-column: 1;
  grid-row: 5;
  align-self: start;
  padding: 4px 5px;
  border-radius: 14px;
}

body[data-v3-active-step="meble"] #plannerCurrentProductionSummary .planner-module-production-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

body[data-v3-active-step="meble"] #plannerCurrentProductionSummary .planner-module-production-chip {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  max-height: 32px;
  padding: 4px 6px !important;
  gap: 5px;
  overflow: hidden !important;
  white-space: nowrap;
}

body[data-v3-active-step="meble"] #plannerCurrentProductionSummary .planner-module-production-chip strong {
  font-size: 0.82rem;
  line-height: 1.1;
  white-space: nowrap;
}

body[data-v3-active-step="meble"] #plannerCurrentProductionSummary .planner-module-production-chip span {
  font-size: 0.62rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-v3-active-step="meble"] .planner-board-hint {
  grid-column: 1 / -1;
  grid-row: 6;
}

body[data-v3-active-step="meble"] .planner-board-grid {
  grid-column: 1 / -1;
  grid-row: 7;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  align-items: start;
}

body[data-v3-active-step="meble"] .planner-board-card,
body[data-v3-active-step="meble"] .planner-format-card,
body[data-v3-active-step="meble"] .planner-part-card {
  min-height: 0;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini,
body[data-v3-active-step="meble"] .planner-board-mini-canvas,
body[data-v3-active-step="meble"] .planner-board-mini-fit {
  overflow: visible !important;
}

body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini *,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini *,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini * {
  overflow: visible !important;
}

body[data-v3-active-step="meble"] .planner-board-mini {
  height: 146px !important;
  min-height: 146px;
  max-width: 100%;
}

body[data-v3-active-step="meble"] .planner-board-mini-fit {
  inset: 22px 28px 18px 36px;
}

body[data-v3-active-step="meble"] .planner-board-mini-plate-wrap {
  max-width: 100% !important;
  max-height: 100% !important;
}

body[data-v3-active-step="meble"] .planner-board-mini-plate {
  overflow: hidden !important;
}

body[data-v3-active-step="meble"] .planner-board-mini-grain {
  overflow: hidden !important;
}

body[data-v3-active-step="meble"] .planner-step-inline {
  grid-column: 1;
  grid-row: 8;
  align-self: stretch;
}

body[data-v3-active-step="meble"] .planner-current-summary > .planner-actions-inline {
  grid-column: 2;
  grid-row: 8;
  align-self: stretch;
  align-items: center;
  justify-content: flex-end;
}

body[data-v3-active-step="meble"] .planner-gallery-wrap {
  grid-column: 1 / -1;
  grid-row: 9;
  margin-top: -2px;
}

@media (max-width: 1180px) {
  body[data-v3-active-step="meble"] .planner-config-card {
    grid-column: 1;
    grid-row: 6;
    min-height: 0;
    max-height: none;
    overflow: visible !important;
  }

  body[data-v3-active-step="meble"] #plannerCurrentProductionSummary.planner-module-production-card {
    grid-column: 1;
    grid-row: 5;
  }

  body[data-v3-active-step="meble"] #plannerCurrentProductionSummary .planner-module-production-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body[data-v3-active-step="meble"] .planner-board-hint {
    grid-column: 1;
    grid-row: 7;
  }

  body[data-v3-active-step="meble"] .planner-board-grid {
    grid-column: 1;
    grid-row: 8;
  }

  body[data-v3-active-step="meble"] .planner-step-inline {
    grid-column: 1;
    grid-row: 9;
  }

  body[data-v3-active-step="meble"] .planner-current-summary > .planner-actions-inline {
    grid-column: 1;
    grid-row: 10;
    justify-content: flex-start;
  }

  body[data-v3-active-step="meble"] .planner-gallery-wrap {
    grid-column: 1;
    grid-row: 11;
  }
}

@media (max-width: 760px) {
  body[data-v3-active-step="meble"] #plannerCurrentProductionSummary .planner-module-production-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-v3-active-step="meble"] .planner-board-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-v3-active-step="meble"] .planner-board-mini {
    height: 158px !important;
    min-height: 158px;
  }
}

/* Configurator UI V2 - ergonomic presentation polish */
body[data-v3-active-step="meble"] .planner-current-preview-3d,
body[data-v3-active-step="meble"] .planner-current-preview-clickmap {
  height: auto !important;
  max-height: none !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d {
  min-height: clamp(330px, 35vh, 430px) !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-clickmap {
  min-height: clamp(330px, 34vh, 440px) !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-click-shell {
  overflow: visible !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d:has(.planner-cabinet.is-tall) {
  min-height: clamp(500px, 54vh, 690px) !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-clickmap:has(.planner-cabinet.is-tall) {
  min-height: clamp(560px, 60vh, 760px) !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d:has(.planner-cabinet.is-wall),
body[data-v3-active-step="meble"] .planner-current-preview-3d:has(.planner-cabinet.is-corner) {
  min-height: clamp(320px, 33vh, 410px) !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-clickmap:has(.planner-cabinet.is-wall),
body[data-v3-active-step="meble"] .planner-current-preview-clickmap:has(.planner-cabinet.is-corner) {
  min-height: clamp(360px, 37vh, 470px) !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-field {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto minmax(92px, 1fr);
  align-content: stretch;
  min-height: 154px;
  padding: 10px !important;
  gap: 7px !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-picker-heading {
  min-height: auto;
  font-size: 0.7rem !important;
  line-height: 1.15;
}

body[data-v3-active-step="meble"] .planner-quick-pickers input {
  order: 3;
  width: 100%;
  min-height: 34px !important;
  height: auto !important;
  padding: 7px 8px !important;
  font-size: 0.73rem !important;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-picker {
  order: 2;
  min-width: 0;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(72px, 1fr) auto;
  place-items: center;
  width: 100%;
  min-height: 94px !important;
  height: auto !important;
  padding: 8px !important;
  gap: 6px;
  border-radius: 14px;
  overflow: hidden;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle-label {
  align-self: end;
  max-width: 100%;
  font-size: 0.72rem !important;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle-chip,
body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle.has-image-only .decor-toggle-chip {
  width: 100% !important;
  height: 72px !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 11px !important;
  object-fit: cover;
}

body[data-v3-active-step="meble"] .planner-quick-pickers [data-decor-target="plannerHandleDecor"] .decor-toggle-chip {
  object-fit: contain;
  background: rgba(255, 255, 255, 0.86);
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle.has-image-only .decor-toggle-label {
  display: none !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .helper,
body[data-v3-active-step="meble"] .planner-quick-pickers .decor-preview {
  display: none !important;
}

body[data-v3-active-step="meble"] .planner-board-card,
body[data-v3-active-step="meble"] .planner-format-card,
body[data-v3-active-step="meble"] .planner-part-card {
  overflow: hidden !important;
}

body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini,
body[data-v3-active-step="meble"] .planner-board-mini,
body[data-v3-active-step="meble"] .planner-board-mini-canvas {
  overflow: hidden !important;
}

body[data-v3-active-step="meble"] .planner-board-mini {
  width: 100% !important;
  max-width: 176px;
  height: 132px !important;
  min-height: 132px;
  margin-inline: auto;
  padding: 0;
}

body[data-v3-active-step="meble"] .planner-board-mini-canvas {
  padding: 0;
}

body[data-v3-active-step="meble"] .planner-board-mini-fit {
  inset: 26px 28px 22px 40px !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] .planner-board-mini-plate-wrap {
  max-width: 100% !important;
  max-height: 100% !important;
  transform: scale(0.94);
  transform-origin: center;
}

body[data-v3-active-step="meble"] .planner-board-mini-dim {
  z-index: 5;
  max-width: 100px;
  color: rgba(20, 26, 36, 0.9);
  font-size: 8px !important;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.88);
}

body[data-v3-active-step="meble"] .planner-board-mini-dim.width {
  top: -18px;
}

body[data-v3-active-step="meble"] .planner-board-mini-dim.height {
  left: -24px;
}

body[data-v3-active-step="meble"] .planner-board-mini-plate {
  border-width: 4px !important;
  overflow: hidden !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.44),
    0 4px 10px rgba(15, 23, 42, 0.08);
}

body[data-v3-active-step="meble"] .planner-board-mini-grain,
body[data-v3-active-step="meble"] .planner-board-mini-grain-fill,
body[data-v3-active-step="meble"] .planner-board-mini-grain-lines {
  overflow: hidden !important;
}

body[data-v3-active-step="meble"] .planner-board-mini-grain {
  inset: 0 !important;
}

body[data-v3-active-step="meble"] .planner-board-mini-grain-fill {
  inset: -24% !important;
  background-size: 132% 132%;
  background-position: center;
}

body[data-v3-active-step="meble"] .planner-board-mini-grain::after {
  height: 3px;
  opacity: 0.9;
}

body[data-v3-active-step="meble"] .planner-board-mini-grain-lines {
  opacity: 0.44;
}

body[data-v3-active-step="meble"] .planner-board-mini.is-grain-horizontal .planner-board-mini-grain-lines {
  background: repeating-linear-gradient(
    0deg,
    rgba(18, 27, 40, 0.5),
    rgba(18, 27, 40, 0.5) 1px,
    transparent 1px,
    transparent 6px
  ) !important;
}

body[data-v3-active-step="meble"] .planner-board-mini.is-grain-vertical .planner-board-mini-grain-lines {
  background: repeating-linear-gradient(
    90deg,
    rgba(18, 27, 40, 0.5),
    rgba(18, 27, 40, 0.5) 1px,
    transparent 1px,
    transparent 6px
  ) !important;
}

body[data-v3-active-step="meble"] .planner-board-card:hover .planner-board-mini-plate,
body[data-v3-active-step="meble"] .planner-format-card:hover .planner-board-mini-plate,
body[data-v3-active-step="meble"] .planner-part-card:hover .planner-board-mini-plate {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.58),
    0 0 0 2px rgba(47, 143, 125, 0.14),
    0 8px 18px rgba(15, 23, 42, 0.12);
}

@media (max-width: 1180px) {
  body[data-v3-active-step="meble"] .planner-quick-pickers {
    grid-template-columns: repeat(2, minmax(150px, 1fr)) !important;
  }

  body[data-v3-active-step="meble"] .planner-current-preview-3d:has(.planner-cabinet.is-tall) {
    min-height: clamp(440px, 52vh, 620px) !important;
  }

  body[data-v3-active-step="meble"] .planner-current-preview-clickmap:has(.planner-cabinet.is-tall) {
    min-height: clamp(500px, 58vh, 700px) !important;
  }
}

@media (max-width: 760px) {
  body[data-v3-active-step="meble"] .planner-quick-pickers {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-v3-active-step="meble"] .planner-quick-pickers .decor-field {
    min-height: 142px;
  }

  body[data-v3-active-step="meble"] .planner-current-preview-3d,
  body[data-v3-active-step="meble"] .planner-current-preview-clickmap,
  body[data-v3-active-step="meble"] .planner-current-preview-3d:has(.planner-cabinet.is-wall),
  body[data-v3-active-step="meble"] .planner-current-preview-3d:has(.planner-cabinet.is-corner),
  body[data-v3-active-step="meble"] .planner-current-preview-clickmap:has(.planner-cabinet.is-wall),
  body[data-v3-active-step="meble"] .planner-current-preview-clickmap:has(.planner-cabinet.is-corner) {
    min-height: 360px !important;
  }

  body[data-v3-active-step="meble"] .planner-current-preview-3d:has(.planner-cabinet.is-tall),
  body[data-v3-active-step="meble"] .planner-current-preview-clickmap:has(.planner-cabinet.is-tall) {
    min-height: 560px !important;
  }

  body[data-v3-active-step="meble"] .planner-board-mini {
    max-width: 190px;
    height: 144px !important;
    min-height: 144px;
  }
}

/* Configurator UI V2 - final scale polish */
body[data-v3-active-step="meble"] .planner-board-mini {
  max-width: 184px !important;
  height: 148px !important;
  min-height: 148px !important;
}

body[data-v3-active-step="meble"] .planner-board-mini-fit {
  inset: 28px 24px 22px 38px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

body[data-v3-active-step="meble"] .planner-board-mini-plate-wrap {
  width: var(--plate-width, 88px) !important;
  height: var(--plate-height, 52px) !important;
  max-width: none !important;
  max-height: none !important;
  flex: 0 0 auto;
  transform: none !important;
  aspect-ratio: auto !important;
}

body[data-v3-active-step="meble"] .planner-board-mini-plate {
  width: 100% !important;
  height: 100% !important;
  min-width: 2px;
  min-height: 2px;
}

body[data-v3-active-step="meble"] .planner-board-mini-grain-fill {
  inset: 0 !important;
  width: 100%;
  height: 100%;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transform: none !important;
}

body[data-v3-active-step="meble"] .planner-board-mini.is-grain-horizontal,
body[data-v3-active-step="meble"] .planner-board-mini.is-grain-vertical,
body[data-v3-active-step="meble"] .planner-board-mini.is-grain-none {
  --plate-fill-scale: 1;
}

body[data-v3-active-step="meble"] .planner-board-mini-grain-lines {
  mix-blend-mode: multiply;
}

body[data-v3-active-step="meble"] .planner-board-mini-plate::after {
  content: "";
  position: absolute;
  inset: -4px;
  pointer-events: none;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

body[data-v3-active-step="meble"] .planner-board-card strong span,
body[data-v3-active-step="meble"] .planner-format-card strong span,
body[data-v3-active-step="meble"] .planner-part-card strong span {
  overflow-wrap: anywhere;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell:has(.planner-cabinet.is-tall) {
  width: min(100%, 920px) !important;
  min-width: min(100%, 760px) !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d:has(.planner-cabinet.is-tall),
body[data-v3-active-step="meble"] .planner-current-preview-clickmap:has(.planner-cabinet.is-tall) {
  min-height: clamp(620px, 66vh, 780px) !important;
  padding-inline: 4px !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-clickmap:has(.planner-cabinet.is-tall) {
  min-height: clamp(650px, 70vh, 820px) !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d:has(.planner-cabinet.is-tall) .planner-cabinet,
body[data-v3-active-step="meble"] .planner-current-preview-clickmap:has(.planner-cabinet.is-tall) .planner-cabinet {
  transform: scale(1.1);
  transform-origin: center center;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d:has(.planner-cabinet.is-tall) .planner-cabinet.is-pro3d,
body[data-v3-active-step="meble"] .planner-current-preview-clickmap:has(.planner-cabinet.is-tall) .planner-cabinet.is-pro3d {
  margin-inline: auto;
}

@media (max-width: 1180px) {
  body[data-v3-active-step="meble"] .planner-current-preview-3d:has(.planner-cabinet.is-tall),
  body[data-v3-active-step="meble"] .planner-current-preview-clickmap:has(.planner-cabinet.is-tall) {
    min-height: clamp(600px, 68vh, 760px) !important;
  }
}

@media (max-width: 760px) {
  body[data-v3-active-step="meble"] .planner-board-mini {
    max-width: 196px !important;
    height: 154px !important;
    min-height: 154px !important;
  }

  body[data-v3-active-step="meble"] .planner-current-preview-3d:has(.planner-cabinet.is-tall),
  body[data-v3-active-step="meble"] .planner-current-preview-clickmap:has(.planner-cabinet.is-tall) {
    min-height: 620px !important;
  }

  body[data-v3-active-step="meble"] .planner-current-preview-3d:has(.planner-cabinet.is-tall) .planner-cabinet,
  body[data-v3-active-step="meble"] .planner-current-preview-clickmap:has(.planner-cabinet.is-tall) .planner-cabinet {
    transform: scale(1.02);
  }
}

/* Configurator UI V2 - image fitting polish */
body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle,
body[data-v3-active-step="meble"] .planner-config-card .decor-field-compact .decor-toggle,
body[data-v3-active-step="meble"] .field-countertop-material .decor-toggle {
  padding: 3px !important;
  gap: 3px !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle.has-image-only,
body[data-v3-active-step="meble"] .planner-config-card .decor-field-compact .decor-toggle.has-image-only,
body[data-v3-active-step="meble"] .field-countertop-material .decor-toggle.has-image-only,
body[data-v3-active-step="meble"] .field-countertop-material .decor-toggle.is-countertop-filled {
  grid-template-rows: minmax(0, 1fr) !important;
  place-items: stretch !important;
  align-items: stretch !important;
  justify-items: stretch !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle-chip,
body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle.has-image-only .decor-toggle-chip,
body[data-v3-active-step="meble"] .planner-config-card .decor-field-compact .decor-toggle-chip,
body[data-v3-active-step="meble"] .planner-config-card .decor-field-compact .decor-toggle.has-image-only .decor-toggle-chip,
body[data-v3-active-step="meble"] .field-countertop-material .decor-toggle-chip,
body[data-v3-active-step="meble"] .field-countertop-material .decor-toggle.has-image-only .decor-toggle-chip {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers [data-decor-target="plannerHandleDecor"] .decor-toggle-chip,
body[data-v3-active-step="meble"] .planner-config-card [data-decor-target="plannerHandleDecor"] .decor-toggle-chip {
  object-fit: contain !important;
  padding: 3px;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle::after,
body[data-v3-active-step="meble"] .planner-config-card .decor-field-compact .decor-toggle::after,
body[data-v3-active-step="meble"] .field-countertop-material .decor-toggle::after {
  right: 5px !important;
  bottom: 5px !important;
  background-color: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
}

body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini,
body[data-v3-active-step="meble"] .planner-board-mini,
body[data-v3-active-step="meble"] .planner-board-mini-canvas,
body[data-v3-active-step="meble"] .planner-board-mini-fit {
  overflow: visible !important;
}

body[data-v3-active-step="meble"] .planner-board-mini {
  display: block !important;
  position: relative;
  height: 148px !important;
  min-height: 148px !important;
  isolation: isolate;
}

body[data-v3-active-step="meble"] .planner-board-mini-canvas {
  position: relative;
  display: block !important;
  width: 100%;
  height: 100%;
  padding: 0 !important;
}

body[data-v3-active-step="meble"] .planner-board-mini-fit {
  inset: 22px 24px 26px 38px !important;
  display: grid !important;
  place-items: center !important;
}

body[data-v3-active-step="meble"] .planner-board-mini-plate-wrap {
  width: var(--plate-width, 88px) !important;
  height: var(--plate-height, 52px) !important;
  max-width: calc(100% - 2px) !important;
  max-height: calc(100% - 2px) !important;
  transform: scale(0.9) !important;
  transform-origin: center center !important;
}

body[data-v3-active-step="meble"] .planner-board-mini-plate,
body[data-v3-active-step="meble"] .planner-board-mini-grain {
  overflow: hidden !important;
}

body[data-v3-active-step="meble"] .planner-board-mini-plate {
  display: block !important;
  border-width: 3px !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

body[data-v3-active-step="meble"] .planner-board-mini-grain-fill {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transform: none !important;
}

body[data-v3-active-step="meble"] .planner-board-mini-grain::after {
  display: none !important;
}

body[data-v3-active-step="meble"] .planner-board-mini-plate::after {
  inset: 0 !important;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46);
}

body[data-v3-active-step="meble"] .planner-board-mini-dim.width {
  top: -15px !important;
}

body[data-v3-active-step="meble"] .planner-board-mini-dim.height {
  left: -22px !important;
}

@media (max-width: 760px) {
  body[data-v3-active-step="meble"] .planner-board-mini-fit {
    inset: 22px 24px 28px 38px !important;
  }
}

/* Configurator UI V2 - measured DOM fitting fix */
body[data-v3-active-step="meble"] .planner-quick-pickers .decor-field {
  grid-template-rows: minmax(0, 1fr) auto !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-picker,
body[data-v3-active-step="meble"] .planner-config-card .decor-field-compact .decor-picker {
  display: grid !important;
  grid-row: 1 !important;
  align-self: stretch !important;
  min-height: 0 !important;
  height: 100% !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers input {
  grid-row: 2 !important;
  align-self: end !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle,
body[data-v3-active-step="meble"] .planner-config-card .decor-field-compact .decor-toggle {
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle.has-image-only,
body[data-v3-active-step="meble"] .planner-config-card .decor-field-compact .decor-toggle.has-image-only {
  min-height: 0 !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle.has-image-only .decor-toggle-chip,
body[data-v3-active-step="meble"] .planner-config-card .decor-field-compact .decor-toggle.has-image-only .decor-toggle-chip {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers [data-decor-target="plannerHandleDecor"] .decor-toggle.has-image-only .decor-toggle-chip,
body[data-v3-active-step="meble"] .planner-config-card [data-decor-target="plannerHandleDecor"] .decor-toggle.has-image-only .decor-toggle-chip {
  object-fit: contain !important;
}

body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini,
body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini-canvas,
body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini-fit,
body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini-plate-wrap,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini-canvas,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini-fit,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini-plate-wrap,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini-canvas,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini-fit,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini-plate-wrap {
  overflow: visible !important;
}

body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini-plate,
body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini-grain,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini-plate,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini-grain,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini-plate,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini-grain {
  display: block !important;
  overflow: hidden !important;
}

body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini-plate-wrap,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini-plate-wrap,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini-plate-wrap {
  transform: scale(0.86) !important;
}

body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini-grain-fill,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini-grain-fill,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini-grain-fill {
  display: block !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Configurator UI V2 - board miniature material polish */
body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini-plate,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini-plate,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini-plate {
  box-sizing: border-box !important;
  position: relative !important;
  display: block !important;
  background-color: var(--plate-fill-color, #efe7da) !important;
  overflow: hidden !important;
}

body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini-grain,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini-grain,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini-grain {
  position: absolute !important;
  display: block !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  background-color: var(--plate-fill-color, #efe7da) !important;
}

body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini-grain-fill,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini-grain-fill,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini-grain-fill {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: var(--plate-fill-color, #efe7da) !important;
  background-image: var(--plate-fill-image, none) !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transform: none !important;
}

body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini-grain-lines,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini-grain-lines,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini-grain-lines {
  position: absolute !important;
  display: block !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.3 !important;
  mix-blend-mode: multiply;
  pointer-events: none;
}

body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini.is-grain-horizontal .planner-board-mini-grain-lines,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini.is-grain-horizontal .planner-board-mini-grain-lines,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini.is-grain-horizontal .planner-board-mini-grain-lines {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(15, 23, 42, 0.24) 0,
      rgba(15, 23, 42, 0.24) 1px,
      transparent 1px,
      transparent 7px
    ) !important;
}

body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini.is-grain-vertical .planner-board-mini-grain-lines,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini.is-grain-vertical .planner-board-mini-grain-lines,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini.is-grain-vertical .planner-board-mini-grain-lines {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.24) 0,
      rgba(15, 23, 42, 0.24) 1px,
      transparent 1px,
      transparent 7px
    ) !important;
}

body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini.is-grain-none .planner-board-mini-grain-lines,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini.is-grain-none .planner-board-mini-grain-lines,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini.is-grain-none .planner-board-mini-grain-lines {
  display: none !important;
}

body[data-v3-active-step="meble"] .planner-board-card .planner-board-mini-plate::after,
body[data-v3-active-step="meble"] .planner-format-card .planner-board-mini-plate::after,
body[data-v3-active-step="meble"] .planner-part-card .planner-board-mini-plate::after {
  display: none !important;
}

/* Current cabinet 3D texture loader */
body[data-v3-active-step="meble"] .planner-current-preview-3d,
body[data-v3-active-step="meble"] .planner-current-preview {
  position: relative;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d.is-texture-loading:not(.is-pro-preview-locked)::before,
body[data-v3-active-step="meble"] .planner-current-preview.is-texture-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.86), rgba(241, 245, 249, 0.72));
  backdrop-filter: blur(7px);
  pointer-events: none;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d.is-texture-loading:not(.is-pro-preview-locked)::after,
body[data-v3-active-step="meble"] .planner-current-preview.is-texture-loading::after {
  content: "\0141adowanie dekor\00F3w...";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 21;
  transform: translate(-50%, -50%);
  min-width: 154px;
  padding: 38px 14px 12px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.14);
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  pointer-events: none;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d.is-texture-loading:not(.is-pro-preview-locked) canvas,
body[data-v3-active-step="meble"] .planner-current-preview.is-texture-loading .planner-cabinet {
  opacity: 0.18;
  transition: opacity 160ms ease;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d.is-texture-loading:not(.is-pro-preview-locked) .planner-pro-lock-overlay {
  z-index: 30;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d.is-texture-loading:not(.is-pro-preview-locked) {
  cursor: progress;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d.is-texture-loading:not(.is-pro-preview-locked)::after {
  content: "\0141adowanie dekor\00F3w...";
}

body[data-v3-active-step="meble"] .planner-current-preview.is-texture-loading::after {
  content: "\0141adowanie podgl\0105du...";
}

@supports (background: conic-gradient(from 0deg, #000, #fff)) {
  body[data-v3-active-step="meble"] .planner-current-preview-3d.is-texture-loading:not(.is-pro-preview-locked)::after,
  body[data-v3-active-step="meble"] .planner-current-preview.is-texture-loading::after {
    background:
      radial-gradient(circle at 50% 24px, #fff 0 8px, transparent 9px),
      conic-gradient(from 0deg at 50% 24px, #ff6b00, #14b8a6, #ff6b00),
      rgba(255, 255, 255, 0.92);
    background-size: 100% 100%, 22px 22px, 100% 100%;
    background-repeat: no-repeat;
    background-position: center, center 13px, center;
    animation: tecad-current-preview-loader-card 1s linear infinite;
  }
}

@keyframes tecad-current-preview-loader-card {
  0% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.18);
  }
  100% {
    filter: saturate(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-v3-active-step="meble"] .planner-current-preview-3d.is-texture-loading:not(.is-pro-preview-locked)::after,
  body[data-v3-active-step="meble"] .planner-current-preview.is-texture-loading::after {
    animation: none;
  }
}

/* 2026-06 preset and module-choice tile readability */
body[data-v3-active-step="meble"] .planner-config-card .planner-tabs {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)) !important;
  gap: 8px !important;
  padding: 6px !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] .planner-config-card .planner-tab {
  min-height: 118px !important;
  padding: 10px 8px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  overflow: visible !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  background: #ffffff !important;
}

body[data-v3-active-step="meble"] .planner-config-card .planner-tab::before {
  display: none !important;
}

body[data-v3-active-step="meble"] .planner-config-card .planner-tab-icon {
  width: 76px !important;
  height: 68px !important;
  flex: 0 0 68px !important;
  display: block !important;
  border-radius: 12px !important;
  background-color: rgba(248, 250, 252, 0.92) !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  object-fit: contain !important;
}

body[data-v3-active-step="meble"] .planner-config-card .planner-tab span:last-child {
  display: block !important;
  width: 100% !important;
  min-height: 18px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

body[data-v3-active-step="meble"] .planner-config-card .planner-tab.is-active,
body[data-v3-active-step="meble"] .planner-config-card .planner-tab[aria-selected="true"] {
  border-color: rgba(249, 115, 22, 0.58) !important;
  background: linear-gradient(180deg, #fff7ed, #ffffff 76%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(249, 115, 22, 0.18),
    0 12px 24px rgba(249, 115, 22, 0.14) !important;
  color: #9a3412 !important;
}

body[data-v3-active-step="meble"] .planner-config-card .planner-tab.is-active .planner-tab-icon,
body[data-v3-active-step="meble"] .planner-config-card .planner-tab[aria-selected="true"] .planner-tab-icon {
  background-color: rgba(255, 237, 213, 0.95) !important;
}

body[data-v3-active-step="meble"] .planner-type-catalog {
  overflow: visible !important;
}

body[data-v3-active-step="meble"] .planner-type-catalog-grid {
  gap: 12px !important;
  padding: 3px 3px 8px !important;
}

body[data-v3-active-step="meble"] .planner-type-catalog-grid > .planner-type-category {
  flex: 0 0 192px !important;
  max-width: 192px !important;
  min-height: 132px !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07) !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] .planner-type-category.is-active {
  border-color: rgba(249, 115, 22, 0.62) !important;
  background: linear-gradient(180deg, #fff7ed, #ffffff 72%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(249, 115, 22, 0.18),
    0 14px 28px rgba(249, 115, 22, 0.14) !important;
}

body[data-v3-active-step="meble"] .planner-type-category-trigger {
  min-height: 126px !important;
  padding: 10px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 8px !important;
}

body[data-v3-active-step="meble"] .planner-type-category-lead {
  min-width: 0 !important;
  display: grid !important;
  grid-template-rows: 88px auto !important;
  gap: 7px !important;
  align-items: center !important;
}

body[data-v3-active-step="meble"] .planner-type-category-thumb {
  width: 100% !important;
  height: 88px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%) !important;
}

body[data-v3-active-step="meble"] .planner-type-category-thumb .planner-type-tile-image,
body[data-v3-active-step="meble"] .planner-type-tile-thumb .planner-type-tile-image,
body[data-v3-active-step="meble"] .planner-type-catalog-grid img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 4px !important;
  box-sizing: border-box !important;
}

body[data-v3-active-step="meble"] .planner-type-category-thumb .planner-type-tile-image.is-static-preset {
  padding: 0 !important;
  object-fit: contain !important;
}

body[data-v3-active-step="meble"] .planner-type-category h5 {
  width: 100% !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  color: #1f2937 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: normal !important;
}

body[data-v3-active-step="meble"] .planner-type-category-count {
  min-width: 24px !important;
  height: 24px !important;
  padding: 0 7px !important;
  border-color: rgba(20, 184, 166, 0.24) !important;
  background: rgba(240, 253, 250, 0.92) !important;
  color: #0f766e !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

body[data-v3-active-step="meble"] .planner-type-category.is-active .planner-type-category-count {
  border-color: rgba(249, 115, 22, 0.32) !important;
  background: #ffedd5 !important;
  color: #9a3412 !important;
}

body[data-v3-active-step="meble"] .planner-type-tile {
  grid-template-columns: 112px minmax(0, 1fr) !important;
  min-height: 132px !important;
  align-items: center !important;
}

body[data-v3-active-step="meble"] .planner-type-tile-thumb {
  width: 112px !important;
  height: 112px !important;
  overflow: hidden !important;
}

body[data-v3-active-step="meble"] .planner-type-tile-title {
  font-size: 14px !important;
  font-weight: 850 !important;
  color: #1f2937 !important;
}

body[data-v3-active-step="meble"] .planner-type-tile-meta {
  font-size: 12px !important;
  color: #64748b !important;
}

@media (max-width: 760px) {
  body[data-v3-active-step="meble"] .planner-config-card .planner-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-v3-active-step="meble"] .planner-type-catalog-grid > .planner-type-category {
    flex-basis: 176px !important;
    max-width: 176px !important;
  }
}

/* Same tile fixes before the active V3 step attribute is initialized. */
.planner-config-card .planner-tabs {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)) !important;
  gap: 8px !important;
  padding: 6px !important;
  overflow: visible !important;
}

.planner-config-card .planner-tab {
  min-height: 118px !important;
  padding: 10px 8px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  overflow: visible !important;
}

.planner-config-card .planner-tab-icon {
  width: 76px !important;
  height: 68px !important;
  flex: 0 0 68px !important;
  display: block !important;
  border-radius: 12px !important;
  background-color: rgba(248, 250, 252, 0.92) !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  object-fit: contain !important;
}

.planner-tab[data-planner-tab="korpus"] .planner-tab-icon {
  background-image: url("../grafiki/korpus.png") !important;
}

.planner-tab[data-planner-tab="wnetrze"] .planner-tab-icon {
  background-image: url("../grafiki/wnetrze.png") !important;
}

.planner-tab[data-planner-tab="fronty"] .planner-tab-icon {
  background-image: url("../grafiki/fronty.png") !important;
}

.planner-tab[data-planner-tab="szuflady"] .planner-tab-icon {
  background-image: url("../grafiki/szuflady.png") !important;
}

.planner-tab[data-planner-tab="maskownice"] .planner-tab-icon {
  background-image: url("../grafiki/maskownice.png") !important;
}

.planner-config-card .planner-tab::before {
  display: none !important;
}

.planner-config-card .planner-tab.is-active,
.planner-config-card .planner-tab[aria-selected="true"] {
  border-color: rgba(249, 115, 22, 0.58) !important;
  background: linear-gradient(180deg, #fff7ed, #ffffff 76%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(249, 115, 22, 0.18),
    0 12px 24px rgba(249, 115, 22, 0.14) !important;
  color: #9a3412 !important;
}

.planner-type-catalog {
  overflow: visible !important;
}

.planner-type-catalog-grid {
  gap: 12px !important;
  padding: 3px 3px 8px !important;
}

.planner-type-catalog-grid > .planner-type-category {
  flex: 0 0 192px !important;
  max-width: 192px !important;
  min-height: 132px !important;
  overflow: visible !important;
}

.planner-type-category-trigger {
  min-height: 126px !important;
  padding: 10px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 8px !important;
}

.planner-type-category-lead {
  min-width: 0 !important;
  display: grid !important;
  grid-template-rows: 88px auto !important;
  gap: 7px !important;
  align-items: center !important;
}

.planner-type-category-thumb {
  width: 100% !important;
  height: 88px !important;
  position: relative !important;
  overflow: hidden !important;
}

.planner-type-tile-thumb {
  position: relative !important;
}

.planner-type-category-thumb .planner-type-tile-image,
.planner-type-tile-thumb .planner-type-tile-image {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 4px !important;
  box-sizing: border-box !important;
}

.planner-type-catalog-grid img {
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  box-sizing: border-box !important;
}

/* 2026-06 static preset thumbnail structure */
.planner-type-catalog-grid > .planner-type-category {
  min-width: 208px !important;
}

.planner-type-category-trigger {
  min-height: 150px !important;
  padding: 10px !important;
  border-color: rgba(226, 232, 240, 0.92) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07) !important;
}

.planner-type-category.is-active .planner-type-category-trigger,
.planner-type-category-trigger:hover {
  border-color: rgba(255, 111, 21, 0.55) !important;
  box-shadow: 0 18px 42px rgba(255, 111, 21, 0.16) !important;
}

.planner-type-category-lead {
  grid-template-rows: 106px auto !important;
  gap: 8px !important;
}

.planner-type-category-thumb {
  height: 106px !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.86) 72%) !important;
}

.planner-type-category-thumb .planner-type-tile-image,
.planner-type-tile-thumb .planner-type-tile-image,
.planner-type-tile-image.is-static-preset {
  object-fit: contain !important;
  object-position: center !important;
}

.planner-type-category-thumb .planner-type-tile-image.is-static-preset {
  padding: 3px !important;
}

.planner-type-category h5 {
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
}

.planner-type-category-count {
  top: 9px !important;
  right: 9px !important;
  min-width: 24px !important;
  height: 24px !important;
  padding: 0 7px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #64748b !important;
  background: rgba(248, 250, 252, 0.94) !important;
  border-color: rgba(203, 213, 225, 0.88) !important;
}

.planner-type-category.is-active .planner-type-category-count {
  color: #ff6f15 !important;
  background: #fff7ed !important;
  border-color: rgba(255, 111, 21, 0.36) !important;
}

.planner-type-tiles-modal {
  gap: 14px !important;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)) !important;
}

.planner-type-tile {
  min-height: 204px !important;
  padding: 12px !important;
  border-radius: 18px !important;
  border-color: rgba(226, 232, 240, 0.92) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)) !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08) !important;
}

.planner-type-tile:hover,
.planner-type-tile.is-active {
  border-color: rgba(255, 111, 21, 0.6) !important;
  box-shadow: 0 20px 46px rgba(255, 111, 21, 0.16) !important;
}

.planner-type-tile-thumb {
  width: 100% !important;
  height: 136px !important;
  margin: 0 0 10px !important;
  border-radius: 15px !important;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.9) 74%) !important;
}

.planner-type-tile-thumb .planner-type-tile-image {
  padding: 6px !important;
}

.planner-type-tile-thumb .planner-type-tile-image.is-static-module {
  padding: 4px !important;
}

.planner-type-tile > span:last-child {
  display: grid !important;
  gap: 4px !important;
  width: 100% !important;
  text-align: left !important;
}

.planner-type-tile-title {
  font-size: 14px !important;
  line-height: 1.18 !important;
  font-weight: 850 !important;
  color: #172033 !important;
}

.planner-type-tile-meta {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: 3px 7px !important;
  border-radius: 999px !important;
  color: #64748b !important;
  background: rgba(241, 245, 249, 0.9) !important;
  font-size: 11px !important;
  font-weight: 750 !important;
}

body[data-v3-active-step="meble"] .planner-type-catalog-grid > .planner-type-category {
  min-width: 208px !important;
}

body[data-v3-active-step="meble"] .planner-type-category-trigger {
  min-height: 150px !important;
  padding: 10px !important;
}

body[data-v3-active-step="meble"] .planner-type-category-lead {
  grid-template-rows: 106px auto !important;
}

body[data-v3-active-step="meble"] .planner-type-category-thumb {
  height: 106px !important;
}

body[data-v3-active-step="meble"] .planner-type-tiles-modal {
  gap: 14px !important;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)) !important;
}

body[data-v3-active-step="meble"] .planner-type-tile {
  min-height: 204px !important;
  padding: 12px !important;
  border-radius: 18px !important;
}

body[data-v3-active-step="meble"] .planner-type-tile-thumb {
  width: 100% !important;
  height: 136px !important;
  margin: 0 0 10px !important;
}

.planner-type-category h5 {
  width: 100% !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: normal !important;
}

/* 2026-06 single-cabinet defaults: handle choice hidden, full front previews visible */
.planner-handle-decor-field {
  display: none !important;
}

.decor-picker[data-decor-target="plannerFrontStyle"] .decor-toggle.has-image-only .decor-toggle-chip,
.decor-picker[data-decor-target="plannerFrontStyle"] .decor-toggle-chip,
.decor-picker[data-decor-target="plannerFrontStyle"] .decor-preview img,
.decor-picker[data-decor-target="plannerFrontStyle"] .decor-option img,
body[data-v3-active-step="meble"] .planner-quick-pickers .decor-picker[data-decor-target="plannerFrontStyle"] .decor-toggle.has-image-only .decor-toggle-chip,
body[data-v3-active-step="meble"] .planner-quick-pickers .decor-picker[data-decor-target="plannerFrontStyle"] .decor-toggle-chip,
body[data-v3-active-step="meble"] .planner-config-card .decor-picker[data-decor-target="plannerFrontStyle"] .decor-toggle.has-image-only .decor-toggle-chip,
body[data-v3-active-step="meble"] .planner-config-card .decor-picker[data-decor-target="plannerFrontStyle"] .decor-toggle-chip {
  object-fit: contain !important;
  object-position: center !important;
  background-color: rgba(255, 255, 255, 0.94) !important;
  padding: 4px !important;
}

.decor-picker[data-decor-target="plannerFrontStyle"] .decor-option,
.decor-picker[data-decor-target="plannerFrontStyle"] .decor-preview {
  overflow: visible !important;
}

/* 2026-06 compact visible decor/front pickers; handle picker stays hidden */
.planner-handle-decor-field {
  display: none !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers,
.planner-quick-pickers {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 4px !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-field:not(.planner-handle-decor-field),
.planner-quick-pickers .decor-field:not(.planner-handle-decor-field) {
  min-height: 78px !important;
  padding: 5px !important;
  gap: 3px !important;
  grid-template-rows: auto minmax(36px, 1fr) 20px !important;
  align-content: stretch !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-picker-heading,
.planner-quick-pickers .decor-picker-heading {
  grid-row: 1 !important;
  min-height: 0 !important;
  font-size: 9px !important;
  line-height: 1.05 !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-picker,
.planner-quick-pickers .decor-picker {
  grid-row: 2 !important;
  min-height: 36px !important;
  height: 40px !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-field > input,
.planner-quick-pickers .decor-field > input {
  grid-row: 3 !important;
  min-height: 20px !important;
  height: 20px !important;
  padding: 0 6px !important;
  font-size: 9px !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle,
.planner-quick-pickers .decor-toggle {
  min-height: 36px !important;
  height: 40px !important;
  padding: 3px 6px !important;
  border-radius: 9px !important;
  font-size: 10px !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle.has-image-only,
.planner-quick-pickers .decor-toggle.has-image-only {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle-chip,
body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle.has-image-only .decor-toggle-chip,
.planner-quick-pickers .decor-toggle-chip,
.planner-quick-pickers .decor-toggle.has-image-only .decor-toggle-chip {
  height: 32px !important;
  min-height: 0 !important;
  border-radius: 8px !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-picker[data-decor-target="plannerFrontStyle"] .decor-toggle-chip,
.planner-quick-pickers .decor-picker[data-decor-target="plannerFrontStyle"] .decor-toggle-chip {
  object-fit: contain !important;
  padding: 2px !important;
}

@media (max-width: 760px) {
  body[data-v3-active-step="meble"] .planner-quick-pickers,
  .planner-quick-pickers {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* 2026-06 overlay pickers final order guard */
body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers {
  position: absolute !important;
  top: 62px !important;
  left: 12px !important;
  z-index: 42 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-field:not([hidden]):not(.planner-handle-decor-field) {
  display: block !important;
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  padding: 4px !important;
  border-radius: 14px !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-picker,
body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-toggle {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-picker-heading,
body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-field > input,
body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .helper,
body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-preview {
  display: none !important;
}

/* 2026-06 real 3D viewport overlay final order guard */
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers {
  position: relative !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers {
  position: absolute !important;
  top: 18px !important;
  left: 18px !important;
  z-index: 80 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  gap: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field:not([hidden]):not(.planner-handle-decor-field) {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) 18px !important;
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  height: 96px !important;
  min-height: 96px !important;
  max-height: 96px !important;
  padding: 6px !important;
  gap: 5px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(15, 23, 42, 0.18) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16) !important;
  backdrop-filter: blur(10px);
  overflow: visible !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field:not([hidden]):not(.planner-handle-decor-field)::after {
  content: attr(data-overlay-label);
  display: block;
  grid-row: 2;
  color: #111827;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.05;
  text-align: center;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-picker,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-toggle {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-picker-heading,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field > input,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .helper,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-preview {
  display: none !important;
}

/* 2026-06 real 3D viewport overlay final guard */
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers {
  position: relative !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers {
  position: absolute !important;
  top: 18px !important;
  left: 18px !important;
  z-index: 80 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  gap: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field:not([hidden]):not(.planner-handle-decor-field) {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) 18px !important;
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  height: 96px !important;
  min-height: 96px !important;
  max-height: 96px !important;
  padding: 6px !important;
  gap: 5px !important;
  border-radius: 16px !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field:not([hidden]):not(.planner-handle-decor-field)::after {
  content: attr(data-overlay-label);
  display: block;
  grid-row: 2;
  color: #111827;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.05;
  text-align: center;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-picker,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-toggle {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-picker-heading,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field > input,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .helper,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-preview {
  display: none !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-toggle.has-image-only .decor-toggle-label {
  display: none !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field-compact .decor-dropdown {
  top: 0 !important;
  left: calc(100% + 12px) !important;
  width: clamp(320px, 34vw, 440px) !important;
}

/* 2026-06 overlay pickers anchored to the real 3D viewport */
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers {
  position: relative !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers {
  position: absolute !important;
  top: 18px !important;
  left: 18px !important;
  z-index: 80 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  gap: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field:not([hidden]):not(.planner-handle-decor-field) {
  position: relative !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) 18px !important;
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  height: 96px !important;
  min-height: 96px !important;
  max-height: 96px !important;
  padding: 6px !important;
  gap: 5px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(15, 23, 42, 0.18) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16) !important;
  backdrop-filter: blur(10px);
  overflow: visible !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field:not([hidden]):not(.planner-handle-decor-field)::after {
  content: attr(data-overlay-label);
  display: block;
  grid-row: 2;
  min-width: 0;
  color: #111827;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-picker-heading,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field > input,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .helper,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-preview {
  display: none !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-picker {
  position: relative !important;
  display: block !important;
  grid-row: 1 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-toggle {
  display: grid !important;
  place-items: stretch !important;
  grid-template-rows: minmax(0, 1fr) !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  padding: 5px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-toggle-label {
  align-self: center !important;
  justify-self: center !important;
  color: #475569 !important;
  font-size: 10px !important;
  line-height: 1.05 !important;
  text-align: center !important;
  white-space: normal !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-toggle-chip,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-toggle.has-image-only .decor-toggle-chip {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 9px !important;
  object-fit: cover !important;
  object-position: center !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-toggle.has-image-only .decor-toggle-label {
  display: none !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-picker[data-decor-target="plannerFrontStyle"] .decor-toggle-chip {
  object-fit: contain !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  padding: 3px !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-toggle::after {
  top: -5px !important;
  right: -5px !important;
  width: 20px !important;
  height: 20px !important;
  font-size: 12px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18) !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field-compact .decor-dropdown {
  top: 0 !important;
  left: calc(100% + 12px) !important;
  width: clamp(320px, 34vw, 440px) !important;
  max-width: min(440px, calc(100vw - 150px)) !important;
}

@media (max-width: 760px) {
  body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers {
    top: 12px !important;
    left: 12px !important;
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    gap: 8px !important;
  }

  body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field:not([hidden]):not(.planner-handle-decor-field) {
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    height: 88px !important;
    min-height: 88px !important;
    max-height: 88px !important;
  }
}

/* Final guard: overlay swatches must stay square even after older compact overrides. */
body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers {
  position: absolute !important;
  top: 62px !important;
  left: 12px !important;
  grid-template-columns: 1fr !important;
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-field:not([hidden]):not(.planner-handle-decor-field),
body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-picker,
body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-toggle {
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
}

/* 2026-06 overlay pickers: compact decor controls inside the single-cabinet 3D viewport */
body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers {
  position: relative !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers {
  position: absolute !important;
  top: 62px !important;
  left: 12px !important;
  z-index: 42 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-field:not([hidden]):not(.planner-handle-decor-field) {
  display: block !important;
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  padding: 4px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14) !important;
  backdrop-filter: blur(8px);
  overflow: visible !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-picker-heading,
body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-field > input,
body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .helper,
body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-preview {
  display: none !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-picker {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-toggle {
  display: grid !important;
  place-items: stretch !important;
  grid-template-rows: minmax(0, 1fr) !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  padding: 4px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-toggle-label {
  align-self: center !important;
  justify-self: center !important;
  font-size: 9px !important;
  line-height: 1.05 !important;
  text-align: center !important;
  white-space: normal !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-toggle-chip,
body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-toggle.has-image-only .decor-toggle-chip {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 9px !important;
  object-fit: cover !important;
  object-position: center !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-toggle.has-image-only .decor-toggle-label {
  display: none !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-picker[data-decor-target="plannerFrontStyle"] .decor-toggle-chip {
  object-fit: contain !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  padding: 2px !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-toggle::after {
  top: -4px !important;
  right: -4px !important;
  width: 18px !important;
  height: 18px !important;
  font-size: 11px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18) !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-field-compact .decor-dropdown {
  top: 0 !important;
  left: calc(100% + 10px) !important;
  width: clamp(300px, 34vw, 420px) !important;
  max-width: min(420px, calc(100vw - 130px)) !important;
}

@media (max-width: 760px) {
  body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers {
    top: 54px !important;
    left: 8px !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    gap: 6px !important;
  }

  body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-field:not([hidden]):not(.planner-handle-decor-field) {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
  }
}

/* 2026-06 compact-2: readable decor tiles, no handle tile placeholder */
.planner-handle-decor-field,
.planner-quick-pickers .decor-field:has(#plannerHandleDecor),
.planner-quick-pickers .decor-field:has([data-decor-target="plannerHandleDecor"]),
.planner-config-card .decor-field:has(#plannerHandleDecor),
.planner-config-card .decor-field:has([data-decor-target="plannerHandleDecor"]) {
  display: none !important;
}

#plannerHandleDecor,
.decor-picker[data-decor-target="plannerHandleDecor"] {
  display: none !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers,
.planner-quick-pickers {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 6px !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-field:not([hidden]):not(.planner-handle-decor-field),
.planner-quick-pickers .decor-field:not([hidden]):not(.planner-handle-decor-field) {
  min-height: 124px !important;
  padding: 8px !important;
  gap: 6px !important;
  grid-template-rows: auto minmax(70px, 1fr) 28px !important;
  align-content: stretch !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-picker-heading,
.planner-quick-pickers .decor-picker-heading {
  grid-row: 1 !important;
  min-height: 0 !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-picker,
.planner-quick-pickers .decor-picker {
  grid-row: 2 !important;
  min-height: 70px !important;
  height: 76px !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-field > input,
.planner-quick-pickers .decor-field > input {
  grid-row: 3 !important;
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 8px !important;
  font-size: 11px !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle,
.planner-quick-pickers .decor-toggle {
  min-height: 70px !important;
  height: 76px !important;
  padding: 5px 8px !important;
  border-radius: 12px !important;
  font-size: 11px !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle.has-image-only,
.planner-quick-pickers .decor-toggle.has-image-only {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle-chip,
body[data-v3-active-step="meble"] .planner-quick-pickers .decor-toggle.has-image-only .decor-toggle-chip,
.planner-quick-pickers .decor-toggle-chip,
.planner-quick-pickers .decor-toggle.has-image-only .decor-toggle-chip {
  width: 100% !important;
  height: 62px !important;
  min-height: 0 !important;
  max-height: 62px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  object-position: center !important;
}

body[data-v3-active-step="meble"] .planner-quick-pickers .decor-picker[data-decor-target="plannerFrontStyle"] .decor-toggle-chip,
.planner-quick-pickers .decor-picker[data-decor-target="plannerFrontStyle"] .decor-toggle-chip {
  object-fit: contain !important;
  padding: 3px !important;
}

@media (max-width: 760px) {
  body[data-v3-active-step="meble"] .planner-quick-pickers,
  .planner-quick-pickers {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* 2026-06 overlay pickers final order guard after compact-2 */
body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers {
  position: absolute !important;
  top: 62px !important;
  left: 12px !important;
  z-index: 42 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-field:not([hidden]):not(.planner-handle-decor-field) {
  display: block !important;
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  padding: 4px !important;
  border-radius: 14px !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-picker,
body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-toggle {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-picker-heading,
body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-field > input,
body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .helper,
body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers .decor-preview {
  display: none !important;
}

/* 2026-06 real 3D viewport overlay final guard after compact-2 */
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers {
  position: relative !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers {
  position: absolute !important;
  top: 18px !important;
  left: 18px !important;
  z-index: 80 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  gap: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field:not([hidden]):not(.planner-handle-decor-field) {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) 18px !important;
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  height: 96px !important;
  min-height: 96px !important;
  max-height: 96px !important;
  padding: 6px !important;
  gap: 5px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(15, 23, 42, 0.18) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16) !important;
  backdrop-filter: blur(10px);
  overflow: visible !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field:not([hidden]):not(.planner-handle-decor-field)::after {
  content: attr(data-overlay-label);
  display: block;
  grid-row: 2;
  color: #111827;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.05;
  text-align: center;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-picker,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-toggle {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-picker-heading,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field > input,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .helper,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-preview {
  display: none !important;
}
/* 2026-06 overlay pickers on 3D viewport: final presentation guard */
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers {
  position: relative !important;
  overflow: hidden !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers {
  position: absolute !important;
  inset: 18px auto auto 18px !important;
  z-index: 18 !important;
  display: grid !important;
  grid-template-columns: 118px !important;
  gap: 12px !important;
  width: 118px !important;
  max-width: 118px !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field:not([hidden]):not(.planner-handle-decor-field) {
  position: relative !important;
  display: grid !important;
  grid-template-rows: 1fr auto !important;
  width: 118px !important;
  min-width: 118px !important;
  height: 118px !important;
  min-height: 118px !important;
  padding: 8px !important;
  overflow: visible !important;
  border: 1px solid rgba(18, 121, 102, 0.22) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16) !important;
  backdrop-filter: blur(12px) !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field:not([hidden]):not(.planner-handle-decor-field)::after {
  content: attr(data-overlay-label) !important;
  display: block !important;
  align-self: end !important;
  min-height: 16px !important;
  margin-top: 5px !important;
  color: #1f2937 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-align: center !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-picker,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-toggle {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-toggle {
  position: relative !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-toggle-chip,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-toggle.has-image-only .decor-toggle-chip {
  display: block !important;
  width: 100% !important;
  height: 78px !important;
  min-height: 78px !important;
  max-height: 78px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 12px !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  object-fit: cover !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-picker[data-decor-target="plannerFrontStyle"] .decor-toggle-chip {
  background-color: #fff !important;
  background-size: contain !important;
  object-fit: contain !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-toggle.has-image-only .decor-toggle-label,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-picker-heading,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field > input,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .helper,
body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-preview {
  display: none !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-toggle::after {
  top: 4px !important;
  right: 4px !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 999px !important;
}

body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field-compact .decor-dropdown {
  top: 0 !important;
  left: calc(100% + 12px) !important;
  right: auto !important;
  width: min(420px, calc(100vw - 190px)) !important;
  max-height: min(520px, calc(100vh - 150px)) !important;
  overflow: auto !important;
}

body[data-v3-active-step="meble"] .planner-current-preview-3d-shell.has-overlay-pickers > .planner-quick-pickers {
  display: none !important;
}

@media (max-width: 860px) {
  body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers {
    inset: 12px auto auto 12px !important;
    grid-template-columns: repeat(3, 84px) !important;
    width: auto !important;
    max-width: calc(100% - 24px) !important;
    gap: 8px !important;
  }

  body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field:not([hidden]):not(.planner-handle-decor-field) {
    width: 84px !important;
    min-width: 84px !important;
    height: 88px !important;
    min-height: 88px !important;
    padding: 6px !important;
    border-radius: 13px !important;
  }

  body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-toggle-chip,
  body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-toggle.has-image-only .decor-toggle-chip {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
  }

  body[data-v3-active-step="meble"] #plannerCurrentPreview3d.has-overlay-pickers > .planner-quick-pickers .decor-field-compact .decor-dropdown {
    top: calc(100% + 8px) !important;
    left: 0 !important;
    width: min(360px, calc(100vw - 32px)) !important;
  }
}
