/* V3 UX shell inspired by planner workflow (without changing engine logic). */
body {
  background: #efefef;
}

.app-shell {
  max-width: none;
  width: 100%;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
}

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

[data-v3-pane][hidden] {
  display: none !important;
}

.v3-left-rail {
  position: sticky;
  top: 10px;
  align-self: start;
  background: #f9f9f9;
  border: 1px solid #d9d9d9;
  border-radius: 14px;
  overflow: hidden;
}

.v3-brand {
  padding: 16px;
  border-bottom: 1px solid #e1e1e1;
  display: block;
}

.v3-brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 84px;
  object-fit: contain;
}

.v3-steps {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.v3-step-btn {
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: 12px;
  min-height: 52px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  text-align: left;
  font-weight: 700;
  color: #444;
  cursor: pointer;
}

.v3-step-btn .v3-step-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
}

.v3-step-btn .v3-step-num img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.v3-step-btn.is-active {
  border-color: #f3b03f;
  box-shadow: 0 0 0 2px rgba(243, 176, 63, 0.2);
}

.v3-module-nav {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.v3-module-nav-title {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: #6c665b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.v3-module-link {
  position: relative;
  display: grid;
  grid-template-rows: 64px auto;
  place-items: center;
  border: 1px solid #ddd4c7;
  border-radius: 12px;
  padding: 10px 10px 10px;
  background: linear-gradient(180deg, #fffdfa 0%, #f8f2ea 100%);
  color: #3f372d;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.v3-module-link-media {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  border: 1px solid rgba(86, 74, 59, 0.16);
  background: linear-gradient(180deg, #fff, #f3ebe1);
  display: inline-grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  color: #6d5b45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.v3-module-link-media::before {
  content: attr(data-module-icon);
}

.v3-module-link.has-module-image .v3-module-link-media {
  background-image: var(--module-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.v3-module-link.has-module-image .v3-module-link-media::before {
  content: "";
}

.v3-module-link-label {
  display: inline-block;
}

.v3-module-link:hover {
  border-color: #f0b24b;
  box-shadow: 0 8px 20px rgba(160, 124, 76, 0.12);
  transform: translateY(-1px);
}

.v3-module-link[data-module-locked="1"]::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 42px;
  height: 20px;
  border-radius: 999px;
  background-image: url("./grafiki/pro.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 4px 8px rgba(29, 116, 100, 0.28));
}

.v3-module-link--locked {
  filter: saturate(0.85);
}

body[data-product="kitchen"] .v3-module-link[data-product-link="kitchen"],
body[data-product="wardrobe"] .v3-module-link[data-product-link="wardrobe"],
body[data-product="dresser"] .v3-module-link[data-product-link="dresser"],
body[data-product="bed"] .v3-module-link[data-product-link="bed"] {
  border-color: #f0b24b;
  background: linear-gradient(180deg, #fff7ea 0%, #f7ead4 100%);
  box-shadow: 0 0 0 2px rgba(240, 178, 75, 0.2);
}

.is-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero {
  margin-bottom: 10px;
}

.planner-panel {
  background: #fff;
  border-color: #d5d5d5;
}

/* Bring the "planner canvas area" to the foreground. */
.planner-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 12px;
}

.planner-canvas-panel {
  order: 1;
}

.planner-sidebar {
  order: 2;
}

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

.planner-kitchen-room-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 180px));
  gap: 8px;
  align-items: end;
}

.planner-kitchen-room-fields .field {
  margin: 0;
}

.planner-kitchen-plan-canvas {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(189, 198, 214, 0.36) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(189, 198, 214, 0.36) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(rgba(142, 153, 176, 0.6) 1px, transparent 1px) 0 0 / 100px 100px,
    linear-gradient(90deg, rgba(142, 153, 176, 0.6) 1px, transparent 1px) 0 0 / 100px 100px,
    #f8fafc;
}

.planner-type-catalog {
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
}

.planner-type-catalog-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.planner-type-catalog-head h4 {
  margin: 0 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.planner-type-catalog-head p {
  margin: 0 0 8px;
  font-size: 12px;
  color: #6d655a;
}

.planner-type-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.planner-type-category {
  border: 1px solid #e0d7cb;
  border-radius: 12px;
  padding: 0;
  background: #fdfbf8;
  min-height: 46px;
}

.planner-type-category.is-active {
  border-color: #2f8f83;
  box-shadow: 0 0 0 2px rgba(47, 143, 131, 0.12);
}

.planner-type-category-inline {
  padding: 10px;
  width: 100%;
}

.planner-type-category-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 10px;
}

.planner-type-category-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  text-align: left;
}

.planner-type-category-lead {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.planner-type-category-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #cfdae9;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fc 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.planner-type-category-thumb .planner-type-tile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

.planner-type-category-thumb-fallback {
  font-size: 13px;
  font-weight: 800;
  color: #5b6880;
}

.planner-type-category-thumb-add {
  border-style: dashed;
  border-color: #87bcae;
  background: linear-gradient(180deg, #effaf8 0%, #e1f4ef 100%);
}

.planner-type-category-thumb-add > span {
  font-size: 18px;
  font-weight: 700;
  color: #2f8f83;
  line-height: 1;
}

.planner-type-category-trigger-action h5 {
  color: #2f605a;
}

.planner-type-category h5 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #5d5448;
}

.planner-type-category-count {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e7f3f1;
  border: 1px solid #b8d9d3;
  color: #2e786d;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.planner-type-tiles {
  display: grid;
  gap: 8px;
  padding: 0 8px 8px;
}

.planner-type-category-inline .planner-type-tiles {
  padding: 0;
}

.planner-type-tiles-modal {
  padding: 8px;
  max-height: min(68vh, 620px);
  overflow: auto;
}

.planner-type-tile {
  border: 1px solid #dfd5c8;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.planner-type-tile.is-active {
  border-color: #2f8f83;
  box-shadow: 0 0 0 2px rgba(47, 143, 131, 0.18);
}

.planner-type-tile-thumb {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  border: 1px solid #cfd8e6;
  background: linear-gradient(180deg, #f7f9fd 0%, #ecf2fb 54%, #e6edf8 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
}

.planner-type-tile-thumb::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -8px;
  height: 34px;
  background: radial-gradient(ellipse at center, rgba(120, 136, 165, 0.28) 0%, rgba(120, 136, 165, 0) 72%);
  pointer-events: none;
}

.planner-type-tile-thumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(101, 122, 159, 0) 0%, rgba(101, 122, 159, 0.34) 50%, rgba(101, 122, 159, 0) 100%);
  pointer-events: none;
}

.planner-type-tile-thumb .planner-cabinet {
  position: absolute !important;
  left: 50% !important;
  top: 56% !important;
  transform: translate(-50%, -50%) scale(0.52);
  transform-origin: center center !important;
  margin: 0;
  filter: drop-shadow(0 6px 10px rgba(44, 57, 82, 0.24));
}

.planner-type-tile-thumb .planner-cabinet.is-pro3d.is-solid-3d {
  filter: drop-shadow(0 7px 12px rgba(39, 52, 76, 0.26));
}

.planner-type-tile-thumb .planner-cabinet-dim,
.planner-type-tile-thumb .planner-cabinet-label {
  display: none !important;
}

.planner-type-tile-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 7px;
  position: relative;
  z-index: 1;
  padding: 0;
  box-sizing: border-box;
}

.planner-type-tile-image.is-tall {
  padding: 0;
}

.planner-type-tile-title {
  font-size: 13px;
  font-weight: 700;
  color: #3f372d;
  line-height: 1.25;
}

.planner-type-tile-meta {
  font-size: 11px;
  color: #7a7064;
  line-height: 1.2;
}

.planner-type-strip-row-minimal {
  display: block;
  padding: 0;
}

.planner-step-badge {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #f3b03f;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.planner-step-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 10px;
  color: #4c4338;
}

.planner-help-button {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #c7d2df;
  background: #fff;
  color: #5b6780;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.planner-help-button:hover {
  border-color: #7aaea3;
  color: #2f8f83;
}

.planner-config-card-head h3 {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.planner-current-header h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.planner-type-modal-open {
  overflow: hidden;
}

body.planner-help-modal-open {
  overflow: hidden;
}

.planner-type-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
}

.planner-type-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 24, 38, 0.34);
}

.planner-type-modal-window {
  position: relative;
  width: min(980px, calc(100vw - 36px));
  max-height: calc(100vh - 42px);
  border-radius: 14px;
  border: 1px solid #d8dfe9;
  background: #f7fbff;
  box-shadow: 0 24px 60px rgba(22, 36, 57, 0.32);
  overflow: hidden;
}

.planner-type-modal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #d9e1ec;
  background: linear-gradient(180deg, #fdfefe 0%, #f2f7fd 100%);
}

.planner-type-modal-head h5 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #4a5a73;
}

.planner-type-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #c7d2e0;
  background: #fff;
  color: #4f5f77;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.planner-help-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
}

.planner-help-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 24, 38, 0.32);
}

.planner-help-modal-window {
  position: relative;
  width: min(480px, calc(100vw - 24px));
  border-radius: 14px;
  border: 1px solid #d7dfec;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(17, 30, 50, 0.3);
  overflow: hidden;
}

.planner-help-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #e1e7f0;
  background: linear-gradient(180deg, #fdfefe 0%, #f4f7fc 100%);
}

.planner-help-modal-head strong {
  color: #415069;
  font-size: 13px;
}

.planner-help-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #cbd6e6;
  background: #fff;
  color: #4a5870;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.planner-help-modal-body {
  padding: 14px 14px 16px;
  color: #4d4a44;
  font-size: 13px;
  line-height: 1.5;
}

.planner-plan2d-root {
  position: absolute;
  inset: 0;
}

.planner-plan2d-root.is-commercial {
  --plan-bg-warm: rgba(248, 243, 234, 0.78);
  --plan-grid-minor: rgba(177, 160, 133, 0.2);
  --plan-grid-major: rgba(142, 122, 92, 0.36);
  --plan-wall-fill: rgba(171, 149, 115, 0.14);
  --plan-wall-stroke: rgba(103, 83, 55, 0.78);
  --plan-room-stroke: #7d6342;
  --plan-box-stroke: #7a6546;
  --plan-box-bg-top: rgba(255, 252, 247, 0.98);
  --plan-box-bg-bottom: rgba(244, 233, 214, 0.98);
  --plan-front-band-bg: rgba(210, 182, 138, 0.78);
  --plan-front-band-stroke: rgba(122, 96, 58, 0.68);
  --plan-front-piece-bg: rgba(243, 226, 194, 0.94);
  --plan-front-piece-stroke: rgba(124, 98, 63, 0.58);
}

.planner-plan2d-wall {
  position: absolute;
  background: var(--plan-wall-fill, rgba(84, 102, 138, 0.1));
  border: 1px solid var(--plan-wall-stroke, rgba(41, 54, 76, 0.85));
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(51, 38, 22, 0.1);
}

.planner-plan2d-room {
  position: absolute;
  border: 2px solid var(--plan-room-stroke, #3f4f66);
  background: var(--plan-bg-warm, rgba(243, 246, 251, 0.66));
  border-radius: 10px;
}

.planner-plan2d-room-grid {
  position: absolute;
  background-repeat: repeat;
  border: 1px dashed rgba(129, 113, 83, 0.36);
  border-radius: 8px;
}

.planner-plan2d-room-grid.minor {
  background-image:
    linear-gradient(var(--plan-grid-minor, rgba(162, 175, 197, 0.2)) 1px, transparent 1px),
    linear-gradient(90deg, var(--plan-grid-minor, rgba(162, 175, 197, 0.2)) 1px, transparent 1px);
}

.planner-plan2d-room-grid.major {
  background-image:
    linear-gradient(var(--plan-grid-major, rgba(109, 130, 162, 0.48)) 1px, transparent 1px),
    linear-gradient(90deg, var(--plan-grid-major, rgba(109, 130, 162, 0.48)) 1px, transparent 1px);
}

.planner-plan2d-dimension-line {
  position: absolute;
  background: #1a2330;
  pointer-events: none;
  z-index: 5;
}

.planner-plan2d-dimension-line.is-horizontal {
  height: 1px;
}

.planner-plan2d-dimension-line.is-vertical {
  width: 1px;
}

.planner-plan2d-dimension-cap {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 6;
}

.planner-plan2d-dimension-cap.is-horizontal {
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.planner-plan2d-dimension-cap.is-horizontal.is-start {
  border-left: 7px solid #1a2330;
  transform: translate(-45%, -50%);
}

.planner-plan2d-dimension-cap.is-horizontal.is-end {
  border-right: 7px solid #1a2330;
  transform: translate(-55%, -50%);
}

.planner-plan2d-dimension-cap.is-vertical {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.planner-plan2d-dimension-cap.is-vertical.is-start {
  border-top: 7px solid #1a2330;
  transform: translate(-50%, -45%);
}

.planner-plan2d-dimension-cap.is-vertical.is-end {
  border-bottom: 7px solid #1a2330;
  transform: translate(-50%, -55%);
}

.planner-plan2d-dimension-label {
  position: absolute;
  padding: 2px 6px;
  border: 1px solid #55627a;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  color: #172130;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 7;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.planner-plan2d-dimension-label.is-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 4px 2px;
}

.planner-plan2d-box {
  position: absolute;
  border: 2px solid var(--plan-box-stroke, #5b6679);
  background: linear-gradient(180deg, var(--plan-box-bg-top, rgba(252, 251, 248, 0.98)), var(--plan-box-bg-bottom, rgba(243, 238, 229, 0.98)));
  border-radius: 10px;
  padding: 6px 8px 4px;
  cursor: grab;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  box-shadow: 0 6px 16px rgba(77, 57, 29, 0.14);
  overflow: visible;
}

.planner-plan2d-box.is-upper {
  background: rgba(231, 239, 255, 0.95);
  border-style: dashed;
}

.planner-plan2d-carcass {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(124, 109, 87, 0.55);
  border-radius: 8px;
  overflow: visible;
  pointer-events: none;
}

.planner-plan2d-front-band {
  position: absolute;
  background: var(--plan-front-band-bg, rgba(214, 193, 159, 0.72));
  border: 1px solid var(--plan-front-band-stroke, rgba(120, 101, 72, 0.62));
  border-radius: 6px;
  overflow: hidden;
  z-index: 2;
}

.planner-plan2d-front-band.is-front-a {
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  min-height: 8px;
}

.planner-plan2d-front-band.is-front-b {
  top: 0;
  bottom: 0;
  left: 0;
  width: 22%;
  min-width: 8px;
}

.planner-plan2d-front-band.is-front-c {
  top: 0;
  bottom: 0;
  right: 0;
  width: 22%;
  min-width: 8px;
}

.planner-plan2d-front-segment {
  position: absolute;
  background: var(--plan-front-piece-bg, rgba(240, 226, 199, 0.9));
  border: 1px solid var(--plan-front-piece-stroke, rgba(118, 98, 67, 0.58));
  border-radius: 4px;
}

.planner-plan2d-front-band.is-front-a .planner-plan2d-front-segment {
  top: 0;
  bottom: 0;
}

.planner-plan2d-front-band.is-front-b .planner-plan2d-front-segment,
.planner-plan2d-front-band.is-front-c .planner-plan2d-front-segment {
  left: 0;
  right: 0;
}

.planner-plan2d-front-segment.is-drawer {
  background:
    linear-gradient(180deg, transparent 34%, rgba(116, 96, 64, 0.35) 36%, transparent 38%, transparent 64%, rgba(116, 96, 64, 0.35) 66%, transparent 68%),
    rgba(237, 222, 191, 0.92);
}

.planner-plan2d-front-segment.is-glass {
  background:
    linear-gradient(180deg, rgba(177, 197, 219, 0.35), rgba(191, 208, 227, 0.28)),
    rgba(229, 236, 245, 0.76);
  border-style: dashed;
}

.planner-plan2d-front-segment.is-appliance {
  background:
    repeating-linear-gradient(90deg, rgba(83, 96, 116, 0.34) 0 3px, rgba(101, 117, 141, 0.16) 3px 6px),
    rgba(224, 229, 238, 0.8);
}

.planner-plan2d-front-segment::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(88, 71, 44, 0.62);
}

.planner-plan2d-front-band.is-front-a .planner-plan2d-front-segment::after {
  width: 22%;
  min-width: 10px;
  height: 2px;
  left: 39%;
  top: 50%;
  transform: translateY(-50%);
}

.planner-plan2d-front-band.is-front-b .planner-plan2d-front-segment::after,
.planner-plan2d-front-band.is-front-c .planner-plan2d-front-segment::after {
  width: 2px;
  height: 24%;
  min-height: 10px;
  top: 38%;
  left: 50%;
  transform: translateX(-50%);
}

.planner-plan2d-front-segment.is-appliance::after {
  display: none;
}

.planner-plan2d-mask-marker {
  position: absolute;
  background: rgba(143, 126, 91, 0.9);
  box-shadow: inset 0 0 0 1px rgba(96, 84, 58, 0.65);
  border-radius: 3px;
}

.planner-plan2d-mask-panel {
  position: absolute;
  background: linear-gradient(180deg, rgba(158, 142, 108, 0.9), rgba(139, 122, 87, 0.92));
  border: 1px solid rgba(99, 82, 57, 0.64);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(76, 58, 33, 0.22);
  z-index: 3;
}

.planner-plan2d-mask-panel.is-front-a {
  top: calc(100% + 3px);
}

.planner-plan2d-mask-panel.is-front-b {
  left: auto;
  right: calc(100% + 3px);
}

.planner-plan2d-mask-panel.is-front-c {
  left: calc(100% + 3px);
  right: auto;
}

.planner-plan2d-front-band.is-front-a .planner-plan2d-mask-marker {
  top: 0;
  bottom: 0;
}

.planner-plan2d-front-band.is-front-b .planner-plan2d-mask-marker,
.planner-plan2d-front-band.is-front-c .planner-plan2d-mask-marker {
  left: 0;
  right: 0;
}

.planner-plan2d-box.is-selected {
  border-color: #e07a21;
  box-shadow: 0 0 0 3px rgba(224, 122, 33, 0.22);
}

.planner-plan2d-box strong {
  font-size: 12px;
  line-height: 1.2;
}

.planner-plan2d-wall-tag {
  font-size: 10px;
  color: #5c6679;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.planner-kitchen-scene-canvas.is-hidden,
.planner-kitchen-plan-canvas.is-hidden {
  display: none;
}

.planner-gallery-canvas {
  min-height: 190px;
}

/* Strong visual separators by steps. */
#plannerStepFurniture,
#plannerStepReports {
  scroll-margin-top: 16px;
}

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

  .v3-left-rail {
    position: static;
  }

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

@media (max-width: 960px) {
  .v3-left-rail {
    border-radius: 10px;
  }

  .v3-brand {
    padding: 12px 14px;
  }

  .v3-brand-logo {
    max-height: 62px;
  }

  .v3-steps {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px;
  }

  .v3-step-btn {
    min-height: 44px;
    padding: 6px 8px;
    grid-template-columns: 28px 1fr;
    font-size: 13px;
  }

  .v3-step-btn .v3-step-num {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .planner-kitchen-scene-controls {
    gap: 8px;
  }

  .planner-kitchen-control-group {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .planner-kitchen-control-btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 110px;
  }

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

  .planner-kitchen-room-fields {
    grid-template-columns: 1fr 1fr;
  }
}

.v3-saas-card {
  margin: 10px;
  padding: 12px;
  border: 1px solid rgba(28, 40, 34, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  gap: 10px;
}

.v3-saas-card h3 {
  margin: 0;
  font-size: 16px;
}

.v3-saas-form {
  display: grid;
  gap: 6px;
}

.v3-saas-form strong {
  font-size: 13px;
}

.v3-saas-form input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(34, 28, 22, 0.18);
  border-radius: 10px;
  padding: 0 10px;
  font-size: 13px;
}

.v3-saas-auth-out {
  display: grid;
  gap: 10px;
}

.v3-saas-auth-out .ghost-button {
  width: 100%;
}

.v3-saas-summary {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(28, 40, 34, 0.08);
  border-radius: 12px;
  background: rgba(246, 242, 236, 0.88);
  display: grid;
  gap: 8px;
}

.v3-saas-summary-row {
  display: grid;
  gap: 2px;
}

.v3-saas-summary dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #857667;
}

.v3-saas-summary dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #352c24;
  line-height: 1.35;
  word-break: break-word;
}

.v3-saas-auth-in p {
  margin: 0;
  font-size: 13px;
}

.v3-saas-actions {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.v3-saas-status {
  margin: 0;
  font-size: 12px;
  color: #6d6257;
}

.planner-cloud-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #5f5447;
  font-size: 12px;
}

#saasAutosaveStatus[data-state="saving"],
#saasAutosaveStatus[data-state="pending"] {
  color: #2d6a5f;
}

#saasAutosaveStatus[data-state="error"] {
  color: #a34f43;
}

.v3-saas-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: rgba(19, 18, 16, 0.42);
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: auto;
}

.v3-saas-modal[hidden] {
  display: none !important;
}

.v3-saas-modal-card {
  width: min(760px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: #f7f4ef;
  border: 1px solid rgba(34, 28, 22, 0.14);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
  pointer-events: auto;
}

.v3-saas-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.v3-saas-modal-head h3 {
  margin: 0;
}

.v3-saas-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(34, 28, 22, 0.18);
  background: #f9f7f2;
  color: #445066;
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.v3-saas-modal-close:hover {
  background: #f0ece5;
}

.v3-saas-auth-modal-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.v3-saas-projects-list {
  display: grid;
  gap: 8px;
}

.v3-saas-project-row {
  border: 1px solid rgba(34, 28, 22, 0.14);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.v3-saas-project-row p {
  margin: 2px 0 0;
  color: #6f665d;
  font-size: 12px;
}

/* Premium visual refresh for the planner shell */
body {
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(200, 169, 126, 0.14), transparent 24%),
    linear-gradient(180deg, #0f172a 0%, #111827 54%, #0b1120 100%);
}

.app-shell {
  gap: 20px;
  padding: 16px;
}

.v3-left-rail {
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(229, 231, 235, 0.08);
  border-radius: 24px;
  box-shadow:
    0 28px 70px rgba(2, 6, 23, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.v3-brand {
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.06);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.v3-steps {
  gap: 10px;
  padding: 14px;
}

.v3-step-btn {
  border: 1px solid rgba(229, 231, 235, 0.08);
  background: linear-gradient(180deg, rgba(23, 31, 51, 0.96), rgba(17, 24, 39, 0.94));
  border-radius: 16px;
  min-height: 58px;
  padding: 10px 12px;
  color: #e5e7eb;
  box-shadow:
    0 12px 24px rgba(2, 6, 23, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.v3-step-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.32);
  box-shadow:
    0 16px 32px rgba(2, 6, 23, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.v3-step-btn .v3-step-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.22), rgba(200, 169, 126, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.v3-step-btn.is-active {
  border-color: rgba(249, 115, 22, 0.4);
  background:
    linear-gradient(180deg, rgba(39, 27, 17, 0.98), rgba(28, 22, 18, 0.94));
  box-shadow:
    0 18px 36px rgba(249, 115, 22, 0.16),
    0 0 0 1px rgba(249, 115, 22, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.v3-module-nav {
  gap: 10px;
  padding: 4px 14px 14px;
}

.v3-module-nav-title {
  margin-top: 6px;
  font-size: 12px;
  color: #9ca3af;
  letter-spacing: 0.12em;
}

.v3-module-link {
  grid-template-rows: 76px auto;
  gap: 8px;
  border: 1px solid rgba(229, 231, 235, 0.08);
  border-radius: 18px;
  padding: 12px 12px 14px;
  background:
    linear-gradient(180deg, rgba(23, 31, 51, 0.98), rgba(17, 24, 39, 0.94));
  box-shadow:
    0 14px 28px rgba(2, 6, 23, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.v3-module-link-media {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(200, 169, 126, 0.18);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), rgba(200, 169, 126, 0.08));
  box-shadow:
    0 12px 20px rgba(2, 6, 23, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.v3-module-link-label {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #e5e7eb;
}

.v3-module-link:hover {
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow:
    0 20px 34px rgba(2, 6, 23, 0.32),
    0 0 0 1px rgba(249, 115, 22, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.v3-module-link[data-module-locked="1"]::after {
  top: 10px;
  right: 10px;
  width: 48px;
  height: 22px;
}

body[data-product="kitchen"] .v3-module-link[data-product-link="kitchen"],
body[data-product="wardrobe"] .v3-module-link[data-product-link="wardrobe"],
body[data-product="dresser"] .v3-module-link[data-product-link="dresser"],
body[data-product="bed"] .v3-module-link[data-product-link="bed"] {
  border-color: rgba(249, 115, 22, 0.38);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(36, 28, 22, 0.98), rgba(24, 22, 23, 0.96));
  box-shadow:
    0 18px 32px rgba(249, 115, 22, 0.16),
    0 0 0 1px rgba(249, 115, 22, 0.08);
}

.planner-panel,
.planner-card,
.planner-current-card,
.planner-canvas-panel,
.planner-room-wrap,
.planner-current-preview-3d-shell,
.planner-current-preview-click-shell,
.planner-front-dock,
.planner-sheet-card {
  border-color: rgba(229, 231, 235, 0.08);
  box-shadow:
    0 22px 50px rgba(2, 6, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.planner-panel {
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.95));
}

.planner-canvas-panel {
  background:
    radial-gradient(circle at top right, rgba(200, 169, 126, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(12, 18, 31, 0.96));
}

.planner-card,
.planner-current-card {
  background:
    linear-gradient(180deg, rgba(21, 29, 46, 0.96), rgba(16, 23, 38, 0.92));
}

.planner-tabs {
  gap: 10px;
}

.planner-tab {
  border-radius: 18px;
  border: 1px solid rgba(229, 231, 235, 0.08);
  background: linear-gradient(180deg, rgba(25, 34, 54, 0.95), rgba(17, 24, 39, 0.92));
  color: #e5e7eb;
  box-shadow: 0 10px 18px rgba(2, 6, 23, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.planner-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.22);
  box-shadow: 0 14px 22px rgba(2, 6, 23, 0.26);
}

.planner-tab.is-active {
  border-color: rgba(249, 115, 22, 0.34);
  background: linear-gradient(180deg, rgba(52, 31, 17, 0.96), rgba(31, 24, 20, 0.92));
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.12);
}

.v3-saas-card {
  margin: 12px;
  padding: 14px;
  border: 1px solid rgba(229, 231, 235, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(19, 28, 46, 0.94), rgba(15, 23, 42, 0.9));
  box-shadow:
    0 16px 28px rgba(2, 6, 23, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* 2026-04 final light rail + tabs cleanup */
.planner-type-catalog,
.planner-card,
.planner-current-card,
.v3-saas-card {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  color: #111827 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

.planner-card,
.planner-current-card,
.v3-saas-card,
.planner-type-catalog {
  border-radius: 12px !important;
}

.planner-tab {
  border-radius: 10px !important;
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

.planner-tab.is-active {
  background: #f97316 !important;
  border-color: #f97316 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.18) !important;
}

.planner-tab.is-active .planner-tab-icon {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.v3-saas-card h3 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #e5e7eb;
}

@media (max-width: 960px) {
  .v3-step-btn .v3-step-num,
  .v3-step-btn .v3-step-num img {
    width: 28px;
    height: 28px;
  }

  .v3-module-nav {
    padding: 0 10px 10px;
    gap: 6px;
  }

  .v3-module-link {
    padding: 8px;
    font-size: 13px;
    grid-template-rows: 52px auto;
  }

  .v3-module-link-media {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 15px;
  }

  .v3-saas-card {
    margin: 8px;
  }

  .planner-cloud-meta {
    flex-direction: column;
    gap: 4px;
  }

  .v3-saas-project-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .v3-saas-auth-modal-body {
    grid-template-columns: 1fr;
  }
}

/* 2026-04 light professional shell override */
body {
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.05), transparent 24%),
    radial-gradient(circle at top right, rgba(184, 135, 70, 0.05), transparent 22%),
    linear-gradient(180deg, #f7f4ef 0%, #f3f4f6 54%, #eef2f7 100%);
}

.app-shell {
  gap: 18px;
  padding: 16px;
}

.v3-left-rail {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #d1d5db;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.v3-brand {
  border-bottom: 1px solid #e5e7eb;
  background: rgba(251, 250, 247, 0.9);
}

.v3-step-btn {
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 14px;
  min-height: 54px;
  color: #1f2937;
  box-shadow: none;
}

.v3-step-btn:hover {
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.v3-step-btn .v3-step-num {
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.08);
}

.v3-step-btn.is-active {
  border-color: rgba(249, 115, 22, 0.4);
  background: #fff7ed;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.08);
}

.v3-module-nav-title {
  color: #6b7280;
  letter-spacing: 0.1em;
}

.v3-module-link {
  border: 1px solid #d1d5db;
  border-radius: 16px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: none;
}

.v3-module-link-media {
  border: 1px solid rgba(184, 135, 70, 0.16);
  background: #fbfaf7;
  box-shadow: none;
}

.v3-module-link:hover {
  border-color: rgba(249, 115, 22, 0.32);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}

body[data-product="kitchen"] .v3-module-link[data-product-link="kitchen"],
body[data-product="wardrobe"] .v3-module-link[data-product-link="wardrobe"],
body[data-product="dresser"] .v3-module-link[data-product-link="dresser"],
body[data-product="bed"] .v3-module-link[data-product-link="bed"] {
  border-color: rgba(249, 115, 22, 0.34);
  background: #fff7ed;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.08);
}

.planner-panel {
  background: #ffffff;
  border-color: #d1d5db;
}

.planner-canvas-panel {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #d1d5db;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.v3-saas-card,
.v3-saas-modal-card,
.v3-saas-project-row {
  background: #ffffff;
  border-color: #d1d5db;
  color: #1f2937;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.v3-saas-card h3,
.v3-saas-modal-head h3 {
  color: #1f2937;
}

.v3-saas-modal-close {
  border-color: #d1d5db;
  background: #fbfaf7;
  color: #374151;
}

/* 2026-04 configurator layout refactor */
.app-shell {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.v3-left-rail {
  position: sticky;
  top: 12px;
  gap: 14px;
  padding: 10px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.v3-brand {
  padding: 0 6px 8px;
  border: 0;
  border-bottom: 1px solid rgba(209, 213, 219, 0.72);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.v3-brand-logo {
  max-width: 84px;
}

.v3-brand-caption,
.v3-brand-sub {
  display: none;
}

.v3-steps {
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.v3-step-btn {
  min-height: 42px;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: #6b7280;
}

.v3-step-btn:hover {
  transform: none;
  background: rgba(31, 41, 55, 0.04);
  color: #1f2937;
  box-shadow: none;
}

.v3-step-btn.is-active {
  border-left-color: #f97316;
  background: rgba(249, 115, 22, 0.08);
  color: #111827;
  box-shadow: none;
}

.v3-step-btn svg {
  width: 16px;
  height: 16px;
}

.v3-step-btn strong {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.v3-step-btn span {
  display: none;
}

.v3-module-nav {
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.v3-module-link {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  font-size: 0.8rem;
  box-shadow: none;
}

.v3-module-link:hover {
  transform: none;
  background: rgba(31, 41, 55, 0.04);
  color: #1f2937;
  box-shadow: none;
}

.v3-module-link.is-active {
  background: rgba(184, 135, 70, 0.12);
  color: #6f4f28;
  box-shadow: none;
}

.v3-module-link-badge {
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
}

.v3-saas-card {
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(209, 213, 219, 0.72);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: none;
}

.v3-saas-card .small-note,
.v3-saas-card .mini-note {
  display: none;
}

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

  .v3-left-rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .v3-brand,
  .v3-module-nav,
  .v3-saas-card {
    grid-column: 1 / -1;
  }
}

/* 2026-04 sidebar slimming pass */
.app-shell {
  grid-template-columns: 92px minmax(0, 1fr);
}

.v3-left-rail {
  gap: 10px;
  padding: 8px 6px;
}

.v3-brand {
  padding: 0 4px 6px;
}

.v3-brand-logo {
  max-width: 76px;
}

.v3-step-btn {
  min-height: 38px;
  padding: 0 8px;
  border-radius: 4px;
}

.v3-step-btn.is-active {
  border-left-color: transparent;
  background: #e5e7eb;
  color: #111827;
}

.v3-module-nav {
  gap: 4px;
}

.v3-module-link {
  min-height: 30px;
  padding: 0 8px;
  border-radius: 4px;
}

.v3-module-link.is-active {
  background: #e5e7eb;
  color: #1f2937;
}

.v3-saas-card {
  padding: 8px;
  border-radius: 6px;
  background: transparent;
  border-color: #e5e7eb;
}

/* 2026-04 base palette restore */
.v3-left-rail {
  background: transparent;
}

.v3-brand {
  border-bottom-color: rgba(229, 231, 235, 0.12);
}

.v3-step-btn,
.v3-module-link {
  color: #9ca3af;
}

.v3-step-btn:hover,
.v3-module-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e5e7eb;
}

.v3-step-btn.is-active {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
}

.v3-module-link.is-active {
  background: rgba(184, 135, 70, 0.14);
  color: #d8b784;
}

.v3-module-link-badge {
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
}

.v3-saas-card {
  background: rgba(17, 24, 39, 0.64);
  border-color: rgba(229, 231, 235, 0.12);
  color: #e5e7eb;
}

/* 2026-04 sidebar contrast restore */
.v3-left-rail {
  background: transparent;
}

.v3-brand {
  border-bottom-color: #d1d5db;
}

.v3-step-btn,
.v3-module-link {
  color: #4b5563;
}

.v3-step-btn svg,
.v3-module-link svg,
.v3-step-btn .v3-step-num {
  color: currentColor;
}

.v3-step-btn:hover,
.v3-module-link:hover {
  background: #f3f4f6;
  color: #111827;
}

.v3-step-btn.is-active {
  background: #e5e7eb;
  color: #111827;
}

.v3-module-link.is-active {
  background: #fff7ed;
  color: #c2410c;
}

.v3-module-link-badge {
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
}

.v3-saas-card {
  background: #ffffff;
  border-color: #d1d5db;
  color: #111827;
}

.v3-saas-card h3,
.v3-saas-card p,
.v3-saas-card strong,
.v3-saas-card span {
  color: inherit;
}

/* 2026-04 reference left rail */
.app-shell {
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 18px;
}

.v3-left-rail {
  gap: 12px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.v3-brand {
  padding: 0 12px 14px;
  border-bottom: 0;
  background: transparent;
}

.v3-brand-logo {
  max-width: 128px;
}

.v3-steps,
.v3-module-nav {
  gap: 8px;
  padding: 0 8px;
}

.v3-step-btn {
  min-height: 52px;
  padding: 0 12px;
  border: 1px solid #eceff3;
  border-left: 0;
  border-radius: 12px;
  background: #ffffff;
  color: #374151;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.v3-step-btn:hover {
  background: #ffffff;
  border-color: #f3d1b3;
  color: #111827;
}

.v3-step-btn.is-active {
  background: #fff7ed;
  border-color: #fdba74;
  color: #ea580c;
}

.v3-step-btn strong {
  font-size: 0.92rem;
}

.v3-module-nav::before {
  content: "KREATORY";
  display: block;
  margin: 10px 4px 6px;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.v3-module-link {
  min-height: 66px;
  grid-template-columns: 44px 1fr auto;
  grid-template-rows: 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #eceff3;
  border-radius: 12px;
  background: #ffffff;
  color: #374151;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.v3-module-link-media {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #eef2f7;
  background: #ffffff;
}

.v3-module-link-label {
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
  line-height: 1.15;
  color: inherit;
}

.v3-module-link:hover {
  background: #ffffff;
  border-color: #f3d1b3;
  color: #111827;
  transform: none;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.05);
}

.v3-module-link.is-active,
body[data-product="kitchen"] .v3-module-link[data-product-link="kitchen"],
body[data-product="wardrobe"] .v3-module-link[data-product-link="wardrobe"],
body[data-product="dresser"] .v3-module-link[data-product-link="dresser"],
body[data-product="bed"] .v3-module-link[data-product-link="bed"] {
  background: #fff7ed;
  border-color: #fdba74;
  color: #ea580c;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.08);
}

.v3-module-link-badge {
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 0.72rem;
  font-weight: 800;
}

.v3-saas-card {
  margin: 8px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.v3-saas-card .ghost-button {
  width: 100%;
}

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

  .v3-left-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .v3-brand,
  .v3-module-nav,
  .v3-saas-card {
    grid-column: 1 / -1;
  }
}

/* 2026-04 reference left rail final polish */
.v3-left-rail {
  padding-top: 4px;
}

.v3-brand {
  padding: 4px 12px 14px;
}

.v3-step-btn,
.v3-module-link,
.v3-saas-card,
.v3-saas-card .ghost-button {
  border-radius: 14px;
}

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

.v3-module-link {
  min-height: 72px;
  background: #ffffff;
}

.v3-module-link-media {
  background: #fffdfa;
}

.v3-saas-card {
  margin-top: 4px;
}

.v3-saas-card .ghost-button {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #111827 !important;
}

.v3-saas-card .ghost-button:hover {
  background: #f9fafb !important;
}

/* 2026-04 compact creator tiles */
.v3-saas-card {
  overflow: hidden !important;
}

.product-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.45fr);
  gap: 14px;
  align-items: stretch;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
}

.product-intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.product-intro-kicker {
  margin: 0 0 6px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-intro h1 {
  margin: 0;
  color: #111827;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 24px;
  line-height: 1.14;
}

.product-intro-copy p:last-child {
  margin: 8px 0 0;
  max-width: 680px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

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

.product-intro-cards article {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.product-intro-cards h2 {
  margin: 0 0 5px;
  color: #111827;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  line-height: 1.25;
}

.product-intro-cards p {
  margin: 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .product-intro {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .product-intro {
    padding: 12px;
  }

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

  .product-intro-cards {
    grid-template-columns: 1fr;
  }
}

.v3-module-link {
  min-height: 60px !important;
  grid-template-columns: 36px minmax(0, 1fr) auto !important;
  gap: 8px !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
}

.v3-module-link-media {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
}

.v3-module-link-label {
  min-width: 0 !important;
  font-size: 0.84rem !important;
  line-height: 1.12 !important;
  overflow-wrap: anywhere !important;
}

.v3-module-link-badge {
  font-size: 0.64rem !important;
  line-height: 1 !important;
  padding: 4px 6px !important;
}

/* 2026-04 restore main step labels */
.v3-step-btn {
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  min-height: 64px !important;
}

.v3-step-btn > span:not(.v3-step-num) {
  display: block !important;
  min-width: 0 !important;
  color: #111827 !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  text-align: left !important;
  overflow-wrap: anywhere !important;
}

.v3-step-btn .v3-step-num,
.v3-step-btn .v3-step-num img {
  width: 38px !important;
  height: 38px !important;
}

.v3-step-btn.is-active > span:not(.v3-step-num) {
  color: #ea580c !important;
}

/* 2026-04 align main steps with creator tiles */
.v3-steps {
  gap: 8px !important;
  padding: 0 8px 10px !important;
}

.v3-step-btn {
  min-height: 60px !important;
  grid-template-columns: 36px minmax(0, 1fr) !important;
  gap: 8px !important;
  padding: 8px 10px !important;
  border: 1px solid #eceff3 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #374151 !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04) !important;
}

.v3-step-btn .v3-step-num {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  border: 1px solid #eef2f7 !important;
  background: #fffdfa !important;
  overflow: hidden !important;
}

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

.v3-step-btn > span:not(.v3-step-num) {
  color: inherit !important;
  font-size: 0.84rem !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  text-align: left !important;
  overflow-wrap: anywhere !important;
}

.v3-step-btn:hover {
  background: #ffffff !important;
  border-color: #f3d1b3 !important;
  color: #111827 !important;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.05) !important;
  transform: none !important;
}

.v3-step-btn.is-active {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #ea580c !important;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.08) !important;
}

.v3-step-btn.is-active .v3-step-num {
  border-color: rgba(249, 115, 22, 0.18) !important;
  background: #ffffff !important;
}

/* 2026-04 image-first navigation tiles */
.v3-steps,
.v3-module-nav {
  gap: 10px !important;
}

.v3-step-btn,
.v3-module-link {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 54px auto !important;
  place-items: center !important;
  gap: 6px !important;
  min-height: 88px !important;
  padding: 10px 8px !important;
  text-align: center !important;
}

.v3-step-btn .v3-step-num,
.v3-module-link-media {
  width: 54px !important;
  height: 54px !important;
  border-radius: 10px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #eef2f7 !important;
  background: #fffdfa !important;
}

.v3-step-btn .v3-step-num img,
.v3-module-link-media img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;
}

.v3-step-btn > span:not(.v3-step-num),
.v3-module-link-label {
  width: 100% !important;
  color: #4b5563 !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  overflow-wrap: anywhere !important;
}

.v3-step-btn.is-active > span:not(.v3-step-num),
.v3-module-link.is-active .v3-module-link-label,
body[data-product="kitchen"] .v3-module-link[data-product-link="kitchen"] .v3-module-link-label,
body[data-product="wardrobe"] .v3-module-link[data-product-link="wardrobe"] .v3-module-link-label,
body[data-product="dresser"] .v3-module-link[data-product-link="dresser"] .v3-module-link-label,
body[data-product="bed"] .v3-module-link[data-product-link="bed"] .v3-module-link-label {
  color: #ea580c !important;
}

.v3-module-link-badge {
  position: absolute !important;
  right: 6px !important;
  top: 6px !important;
}

/* 2026-04 keep creators horizontal */
.v3-module-link {
  grid-template-columns: 36px minmax(0, 1fr) auto !important;
  grid-template-rows: 1fr !important;
  place-items: stretch !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 60px !important;
  padding: 8px 10px !important;
  text-align: left !important;
}

.v3-module-link-media {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
}

.v3-module-link-media img {
  width: 28px !important;
  height: 28px !important;
}

.v3-module-link-label {
  width: auto !important;
  font-size: 0.84rem !important;
  line-height: 1.12 !important;
  text-align: left !important;
}

.v3-module-link-badge {
  position: static !important;
  align-self: center !important;
}

/* 2026-04 remove dark left rail remnants */
.v3-left-rail,
.v3-brand,
.v3-saas-card,
.v3-saas-modal-card,
.v3-saas-project-row {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #e5e7eb !important;
}

.v3-step-btn,
.v3-module-link {
  background: #ffffff !important;
  color: #374151 !important;
  border-color: #e5e7eb !important;
}

/* 2026-04 modules rail cleanup */
.v3-module-nav::before {
  content: none !important;
  display: none !important;
}

.v3-module-nav-title {
  display: block !important;
  margin: 10px 4px 8px !important;
  color: #94a3b8 !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}

.v3-module-link {
  position: relative !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  grid-template-rows: 1fr !important;
  min-height: 64px !important;
  padding: 9px 12px !important;
  padding-right: 14px !important;
  gap: 10px !important;
  align-items: center !important;
  text-align: left !important;
  overflow: hidden !important;
}

.v3-module-link[data-module-locked="1"] {
  padding-right: 44px !important;
}

.v3-module-link-media {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background-color: #fff7ed !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 32px 32px !important;
}

.v3-module-link-media::before {
  content: "" !important;
  display: none !important;
}

.v3-module-link[data-product-link="kitchen"] .v3-module-link-media {
  background-image: url("./grafiki/szafki_kuchenne.png") !important;
}

.v3-module-link[data-product-link="wardrobe"] .v3-module-link-media {
  background-image: url("./grafiki/szafy.png") !important;
}

.v3-module-link[data-product-link="dresser"] .v3-module-link-media {
  background-image: url("./grafiki/komody.png") !important;
}

.v3-module-link-label {
  width: auto !important;
  min-width: 0 !important;
  color: #374151 !important;
  font-size: 0.9rem !important;
  line-height: 1.14 !important;
  text-align: left !important;
}

.v3-module-link.is-active .v3-module-link-label,
body[data-product="kitchen"] .v3-module-link[data-product-link="kitchen"] .v3-module-link-label,
body[data-product="wardrobe"] .v3-module-link[data-product-link="wardrobe"] .v3-module-link-label,
body[data-product="dresser"] .v3-module-link[data-product-link="dresser"] .v3-module-link-label,
body[data-product="bed"] .v3-module-link[data-product-link="bed"] .v3-module-link-label {
  color: #ea580c !important;
}

.v3-module-link-badge {
  position: absolute !important;
  right: 8px !important;
  top: 8px !important;
  align-self: auto !important;
  z-index: 2 !important;
}

.v3-module-link[data-module-locked="1"]::after {
  top: 8px !important;
  right: 8px !important;
  width: 32px !important;
  height: 14px !important;
  filter: drop-shadow(0 3px 6px rgba(15, 23, 42, 0.16)) !important;
}

/* 2026-04 set gallery containment */
.planner-gallery-wrap {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 18px !important;
  overflow: hidden !important;
}

.planner-gallery-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 520px) !important;
  gap: 14px 18px !important;
  align-items: end !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
}

.planner-gallery-head .table-card-header {
  min-width: 0 !important;
  max-width: 100% !important;
  gap: 8px !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
}

.planner-gallery-head .table-card-header h3,
.planner-gallery-head .table-card-header p {
  margin: 0 !important;
}

.planner-gallery-search {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 520px !important;
  margin-left: 0 !important;
  box-sizing: border-box !important;
}

.planner-gallery-search input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.planner-gallery-canvas {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: auto !important;
}

@media (max-width: 860px) {
  .planner-gallery-head {
    grid-template-columns: 1fr !important;
  }

  .planner-gallery-search {
    max-width: 100% !important;
  }
}
