:root {
  --blue: #2349bd;
  --blue-dark: #12368f;
  --blue-soft: #eef2ff;
  --ink: #15171d;
  --muted: #747984;
  --line: #e4e6eb;
  --panel: #f7f7f8;
  --white: #fff;
  --shadow: 0 20px 60px rgba(15, 32, 78, .14);
  --radius: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: #f4f4f5;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(35, 73, 189, .25);
  outline-offset: 2px;
}

.app-shell { min-width: 1040px; height: 100%; }
.topbar {
  height: 64px;
  display: grid;
  grid-template-columns: 40px 150px minmax(210px, 1fr) auto minmax(265px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.back-link {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
  font-size: 25px;
}
.back-link:hover { background: var(--panel); }
.brand img { display: block; width: 128px; height: auto; }
.project-meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.project-name-button {
  display: flex; flex-direction: column; align-items: flex-start;
  max-width: 260px; padding: 4px 8px;
  border: 0; border-radius: 8px; background: transparent;
  text-align: left;
}
.project-name-button:hover { background: var(--panel); }
.project-name-button strong { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-name-button span { color: var(--blue); font-size: 12px; margin-top: 2px; }
.save-status { color: #7a7f88; font-size: 12px; white-space: nowrap; }
.save-status i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #55a36a; margin-right: 5px; }
.mode-switcher {
  display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr));
  padding: 3px; border-radius: 9px; background: #e9e9eb;
}
.mode-button {
  border: 0; padding: 9px 16px; border-radius: 7px;
  color: #666b74; background: transparent; white-space: nowrap;
}
.mode-button.active { background: var(--white); color: var(--blue); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.mode-icon { font-size: 19px; margin-right: 6px; vertical-align: -1px; }
.top-actions { display: flex; justify-content: flex-end; gap: 8px; }
.icon-button {
  width: 38px; height: 38px; border: 0; border-radius: 12px;
  background: #f0f1f3; color: #222; font-size: 20px;
}
.primary-button {
  border: 0; border-radius: 10px; padding: 12px 22px;
  color: #fff; background: var(--blue); font-weight: 700;
  transition: transform .15s ease, background .15s ease;
}
.primary-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.cart-button { min-height: 40px; padding: 10px 18px; white-space: nowrap; }
.wide { width: 100%; }
.secondary-button {
  border: 1px solid #cfd4df; border-radius: 10px; padding: 11px 18px;
  background: #fff; color: var(--ink); font-weight: 600;
}

.constructor-main {
  height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 300px minmax(520px, 1fr) 300px;
}
.left-panel, .right-panel {
  background: var(--white);
  overflow: auto;
  scrollbar-width: thin;
}
.left-panel { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.right-panel { border-left: 1px solid var(--line); }
.panel-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.panel-tab {
  min-height: 72px; border: 0; border-bottom: 3px solid transparent;
  color: #555b66; background: #fff;
}
.panel-tab span { display: block; font-size: 20px; margin-bottom: 4px; }
.panel-tab.active { color: var(--blue); border-color: var(--blue); background: #fafbff; }
.panel-content { display: none; padding: 16px; min-height: calc(100% - 72px); }
.panel-content.active { display: flex; flex-direction: column; }
.upload-button {
  width: 100%; padding: 12px; border: 0; border-radius: 12px;
  background: var(--blue); color: #fff; font-weight: 700;
}
.panel-hint { margin: 14px 2px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery-item {
  aspect-ratio: 1;
  overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 10px; background: #eee;
}
.gallery-item:hover, .gallery-item.active { border-color: var(--blue); }
.gallery-item img { width: 100%; height: 100%; display: block; object-fit: cover; }
.smart-block { margin-top: auto; padding-top: 20px; display: grid; gap: 8px; }
.smart-button, .designer-button {
  width: 100%; border: 0; border-radius: 12px; padding: 13px 10px;
  color: var(--blue-dark); background: #eef1fb; font-weight: 700;
}
.designer-button { background: #f4f5f8; }
.section-label, .field-label { font-size: 13px; font-weight: 700; margin: 0 0 10px; }
.right-style-grid { display:grid; grid-template-columns:1fr; gap:7px; }
.style-choice-card {
  display:flex; align-items:center; gap:10px; width:100%; min-height:42px;
  padding:5px 8px 5px 5px; border:1px solid var(--line); border-radius:11px;
  background:#f7f8fa; color:#202432; text-align:left;
  transition:border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.style-choice-card:hover { border-color:#c8cfdd; background:#f2f4f8; }
.style-choice-card:focus-visible { outline:3px solid rgba(43,80,211,.24); outline-offset:2px; }
.style-choice-card.active {
  border-color:var(--blue); background:#eef2ff; color:var(--blue-dark);
  box-shadow:0 0 0 1px rgba(43,80,211,.08);
}
.style-choice-card b { flex:1; min-width:0; font-size:12px; line-height:1.25; }
.style-symbol {
  flex:0 0 31px; display:grid; place-items:center; width:31px; height:31px;
  border-radius:9px; background:#fff; box-shadow:0 2px 8px rgba(20,30,60,.08);
  font-size:16px; line-height:1;
}
.style-selection-mark {
  flex:0 0 17px; display:grid; place-items:center; width:17px; height:17px;
  border:1.5px solid #b9c0d0; border-radius:50%; color:transparent;
  font-size:10px; line-height:1;
}
.style-choice-card.active .style-selection-mark { border-color:var(--blue); background:var(--blue); color:#fff; }
.portfolio-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.portfolio-card { overflow:hidden; padding:0 0 10px; border:1px solid var(--line); border-radius:12px; background:#f4f4f5; text-align:left; }
.portfolio-card img { display:block; width:100%; aspect-ratio:1.25; object-fit:cover; transition:transform .2s ease; }
.portfolio-card:hover img { transform:scale(1.03); }
.portfolio-card b { display:block; padding:8px 9px 0; font-size:12px; }
.text-field {
  width: 100%; border: 1px solid #ccd1dc; border-radius: 10px;
  padding: 12px 14px; background: #fff;
}
.text-field.large { font-size: 18px; padding: 15px 16px; }
.character-counter, .modal-counter { align-self: flex-end; color: var(--muted); font-size: 11px; margin-top: 6px; }

.workspace { position: relative; overflow: auto; background: #f5f5f6; }
.view { display: none; min-height: 100%; }
.view.active { display: flex; }
.editor-view { flex-direction: column; align-items: center; justify-content: center; padding: 54px 44px 32px; }
.canvas-toolbar {
  position: absolute; top: 15px;
  display: flex; align-items: center; gap: 8px;
  padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,.06);
}
.canvas-toolbar button { border: 0; border-radius: 8px; padding: 8px 11px; background: #f0f1f3; }
.canvas-toolbar label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.canvas-toolbar input { width: 90px; accent-color: var(--blue); }
.canvas-stage {
  width: min(70%, 650px); height: min(68vh, 600px);
  min-height: 430px; display: grid; place-items: center; position: relative;
  border-radius: 4px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.9), transparent 35%),
    linear-gradient(135deg, #eee9e1, #ddd7ce);
}
.wall-shadow { position: absolute; inset: 0; background: linear-gradient(130deg, transparent 55%, rgba(67,52,35,.08)); }
.portrait-canvas {
  width: 54%; aspect-ratio: 5 / 7; position: relative; overflow: hidden;
  background: #e0e0e0; box-shadow: 12px 18px 30px rgba(39,34,28,.27), 3px 4px 0 #c6bba9;
  transition: width .25s ease, aspect-ratio .25s ease;
}
.portrait-canvas.orientation-landscape { width: 72%; aspect-ratio: 7 / 5; }
.portrait-canvas.orientation-square { width: 60%; aspect-ratio: 1; }
.canvas-placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 8px;
  text-align: center; color: #858994; background: #ececef;
}
.canvas-placeholder span {
  width: 48px; height: 48px; display: grid; place-items: center;
  margin: auto; border: 1px solid #b9bdc7; border-radius: 50%; font-size: 28px;
}
.canvas-placeholder small { font-size: 11px; font-weight: 400; }
#canvasImage {
  display: none; width: 100%; height: 100%; object-fit: cover;
  transform-origin: 50% 50%; transition: filter .2s ease;
}
#canvasImage.visible { display: block; }
.canvas-caption, .preview-caption {
  position: absolute; left: 8%; right: 8%; bottom: 5%;
  padding: 7px 10px; color: #fff; text-align: center;
  font-family: Georgia, serif; font-size: clamp(12px, 1.35vw, 22px);
  text-shadow: 0 2px 7px rgba(0,0,0,.65);
}
.canvas-meta { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 17px; }
.canvas-meta strong { color: #fff; background: var(--blue); padding: 10px 22px; border-radius: 8px; }
.canvas-meta span { color: var(--muted); font-size: 12px; }

.arrange-view { flex-direction: column; align-items: center; padding: 50px; }
.arrange-header { text-align: center; max-width: 620px; }
.arrange-symbol { color: var(--blue); font-size: 44px; }
.arrange-header h2 { margin: 4px 0 8px; font-size: 25px; }
.arrange-header p { margin: 0; color: var(--muted); }
.position-grid { width: min(900px, 100%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 38px; }
.position-card {
  border: 2px solid transparent; border-radius: 14px; padding: 12px;
  background: #fff; color: #555b66;
}
.position-card.active { border-color: var(--blue); color: var(--blue); }
.mini-canvas {
  display: block; height: 160px; margin-bottom: 10px; border-radius: 8px;
  background-color: #e1e3e8;
  background-image: url("../assets/site-assets/static/portrait-products/realism-portrait.png");
  background-size: 110%; background-repeat: no-repeat; border: 9px solid #f8f5ef;
}
.mini-canvas.center { background-position: center; }
.mini-canvas.top { background-position: center 20%; }
.mini-canvas.bottom { background-position: center 80%; }
.mini-canvas.left { background-position: 25% center; }
.mini-canvas.right { background-position: 75% center; }
.mini-canvas.fit { background-size: contain; background-position: center; }

.preview-view { align-items: center; justify-content: center; flex-direction: column; padding: 36px; }
.preview-room {
  width: min(900px, 90%); aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(#e7ddce 0 72%, #9e8062 72% 74%, #775d46 74%);
  box-shadow: var(--shadow);
}
.preview-light { position: absolute; width: 70%; height: 100%; left: -20%; background: radial-gradient(circle, rgba(255,255,255,.75), transparent 67%); }
.preview-art {
  position: absolute; width: 27%; aspect-ratio: 5 / 7; left: 36%; top: 8%;
  overflow: hidden; display: grid; place-items: center;
  background: #d9d4cd; box-shadow: 10px 15px 25px rgba(48,35,25,.28), 3px 3px 0 #a18b73;
}
.preview-art.landscape { width: 40%; aspect-ratio: 7 / 5; left: 30%; top: 15%; }
.preview-art.square { width: 31%; aspect-ratio: 1; left: 34.5%; top: 12%; }
.preview-art img { display: none; width: 100%; height: 100%; object-fit: cover; }
.preview-art img.visible { display: block; }
.preview-empty { color: #7c746c; font-family: Georgia, serif; font-size: 20px; }
.preview-console { position: absolute; left: 15%; right: 15%; height: 10%; bottom: 17%; background: #8f684c; box-shadow: 0 10px 18px rgba(0,0,0,.18); }
.preview-vase { position: absolute; width: 45px; height: 75px; right: 4%; bottom: 100%; border-radius: 14px 14px 24px 24px; background: #e6d8c3; }
.preview-books { position: absolute; width: 90px; height: 20px; left: 4%; bottom: 100%; background: #283f75; box-shadow: 0 -13px 0 #d7c7ad; }
.preview-note { margin-top: 18px; color: var(--muted); }

.configuration { padding: 18px 16px 30px; }
.configuration-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
.configuration-heading div { display: flex; flex-direction: column; gap: 5px; }
.configuration-heading span { color: var(--muted); font-size: 12px; }
.configuration-heading strong { font-size: 24px; }
.badge { color: var(--blue)!important; background: var(--blue-soft); padding: 6px 8px; border-radius: 999px; white-space: nowrap; }
fieldset { border: 0; border-top: 1px solid var(--line); padding: 16px 0; margin: 0; }
legend { padding: 16px 0 0; font-size: 13px; font-weight: 700; }
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.choice-row button {
  border: 1px solid #d5d8df; border-radius: 9px; padding: 9px 4px; background: #fff; font-size: 12px;
}
.choice-row button.active { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.selected-style-summary {
  display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 11px;
  padding: 9px; border: 1px solid var(--blue); border-radius: 11px; background: #f7f9ff;
}
.selected-style-summary div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.selected-style-summary strong { font-size: 13px; line-height: 1.2; }
.selected-style-summary small { color: var(--muted); font-size: 10px; }
.selected-style-thumb {
  width: 58px; height: 48px; margin: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.generation-wishes-label {
  display: block; margin: 14px 0 7px; font-size: 12px; font-weight: 700; line-height: 1.35;
}
.generation-wishes-section .generation-wishes-label { margin-top: 0; }
.generation-wishes {
  display: block; width: 100%; min-height: 82px; resize: vertical;
  padding: 10px 11px; border: 1px solid #d5d8df; border-radius: 10px;
  color: var(--ink); background: #fff; font: inherit; font-size: 12px; line-height: 1.4;
}
.generation-wishes:focus { outline: 2px solid rgba(35,73,189,.2); border-color: var(--blue); }
.generation-wishes::placeholder { color: #9a9fab; }
.wishes-counter { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; text-align: right; }
.quantity-control { display: flex; align-items: center; gap: 12px; }
.quantity-control button { width: 34px; height: 34px; border: 1px solid #d4d7df; border-radius: 9px; background: #fff; }
.quantity-control strong { min-width: 18px; text-align: center; }
.quantity-control span { margin-left: auto; color: var(--blue); font-size: 11px; }
.progress-card { padding: 14px; border-radius: 12px; background: #f4f6fb; }
.progress-title { display: flex; justify-content: space-between; font-size: 12px; }
.progress-track { height: 6px; overflow: hidden; margin: 10px 0; border-radius: 999px; background: #d9deec; }
.progress-track i { display: block; width: 25%; height: 100%; background: var(--blue); transition: width .25s ease; }
.progress-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 11px; color: #777d87; }
.progress-card li::before { content: "○"; margin-right: 7px; }
.progress-card li.done { color: #2a7440; }
.progress-card li.done::before { content: "●"; color: #55a36a; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 20;
  display: none; place-items: center; padding: 20px;
  background: rgba(16, 20, 31, .46); backdrop-filter: blur(5px);
}
.modal-backdrop.visible { display: grid; }
.modal {
  width: min(480px, 94vw); max-height: 92vh; overflow: auto;
  position: relative; padding: 32px; border-radius: 22px; background: #fff;
  box-shadow: var(--shadow);
}
.project-modal { width: min(520px, 94vw); }
.modal-close {
  position: absolute; top: 13px; right: 13px; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: #f0f1f3; font-size: 22px;
}
.modal-brand img { width: 120px; }
.modal-kicker { display: inline-block; margin: 18px 0 8px; color: var(--blue); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.modal h1, .modal h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.1; }
.modal p { color: var(--muted); line-height: 1.5; }
.project-modal .field-label { display: block; margin-top: 25px; }
.project-modal .primary-button { margin-top: 16px; }
.project-modal > small { display: block; margin-top: 13px; color: var(--muted); text-align: center; }
.onboarding-visual {
  height: 155px; margin: -32px -32px 22px; border-radius: 22px 22px 0 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(255,255,255,.8), transparent 22%),
    linear-gradient(135deg, #dfe8ff, #fff1e8);
  position: relative;
}
.onboarding-visual::after {
  content: ""; position: absolute; width: 130px; height: 100px; right: 70px; bottom: 0;
  border: 8px solid #fff; background: url("../assets/site-assets/static/portrait-products/realism-portrait.png") center / cover;
  box-shadow: 0 12px 25px rgba(33,53,104,.18);
}
.modal-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 28px; }
.modal-footer .primary-button { justify-self: end; }
.modal-footer span { color: var(--muted); font-size: 12px; }
.ai-orb {
  width: 84px; height: 84px; display: grid; place-items: center; margin: 0 auto;
  border-radius: 50%; color: #fff; font-size: 36px;
  background: radial-gradient(circle at 30% 30%, #88a6ff, #2349bd 65%, #17245f);
  box-shadow: 0 14px 30px rgba(35,73,189,.28);
}
.smart-modal { text-align: center; }
.feature-list { margin: 20px 0; padding: 0; list-style: none; text-align: left; display: grid; gap: 12px; }
.feature-list li { padding-left: 26px; position: relative; color: #464b55; line-height: 1.35; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.validation-modal { text-align: center; }
.validation-icon {
  width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 18px;
  border-radius: 50%; color: #b35c16; background: #fff1df; font-size: 30px; font-weight: 700;
}
.summary-modal { width: min(690px, 95vw); }
.summary-layout { display: grid; grid-template-columns: 230px 1fr; gap: 25px; margin: 20px 0; }
.summary-preview { aspect-ratio: 5/7; position: relative; overflow: hidden; background: #e7e7e7; box-shadow: 8px 10px 20px rgba(0,0,0,.15); }
.summary-preview img { width: 100%; height: 100%; object-fit: cover; }
.summary-preview span { position: absolute; left: 10px; right: 10px; bottom: 12px; color: #fff; text-align: center; font-family: Georgia, serif; text-shadow: 0 2px 5px #000; }
.summary-layout dl { margin: 0; }
.summary-layout dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-layout dt { color: var(--muted); }
.summary-layout dd { margin: 0; font-weight: 700; text-align: right; }
.summary-total { font-size: 18px; }
.summary-note { font-size: 12px; }
.portfolio-modal[hidden] { display:none; }
.portfolio-modal { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:24px; }
.portfolio-modal-backdrop { position:absolute; inset:0; background:rgba(8,12,22,.78); }
.portfolio-modal-dialog { position:relative; z-index:1; width:min(920px,92vw); max-height:90vh; padding:16px; border-radius:18px; background:#fff; box-shadow:var(--shadow); }
.portfolio-modal-dialog img { display:block; width:100%; max-height:76vh; object-fit:contain; border-radius:12px; background:#f3f3f3; }
.portfolio-modal-dialog h2 { margin:12px 4px 2px; font-size:18px; }
.portfolio-modal-close { position:absolute; top:24px; right:24px; z-index:2; width:40px; height:40px; border:0; border-radius:50%; background:rgba(0,0,0,.68); color:#fff; font-size:26px; }
body.modal-open { overflow:hidden; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 50;
  max-width: min(500px, 90vw); padding: 12px 18px; border-radius: 10px;
  color: #fff; background: #20242d; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translate(-50%, 15px);
  transition: .2s ease;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

.style-enhance { filter: saturate(1.08) contrast(1.05) brightness(1.03); }
.style-oil-texture { filter: saturate(1.32) contrast(1.12) sepia(.18); }
.style-oil-smooth { filter: saturate(1.18) contrast(1.04) sepia(.1); }
.style-dream { filter: saturate(1.2) hue-rotate(12deg) contrast(1.03); }
.style-watercolor { filter: saturate(.75) brightness(1.08) sepia(.18); }
.style-realism { filter: saturate(1.02) contrast(1.03); }
.style-love-is { filter: saturate(.9) sepia(.12) hue-rotate(315deg) brightness(1.05); }
.style-caricature { filter: saturate(1.55) contrast(1.18); }
.style-background { filter: saturate(1.12) brightness(1.04) hue-rotate(8deg); }
.style-merge { filter: saturate(1.08) contrast(1.06); }

@media (max-width: 1200px) {
  .topbar { grid-template-columns: 36px 125px minmax(170px,1fr) auto minmax(220px,1fr); gap: 6px; }
  .brand img { width: 110px; }
  .save-status { display: none; }
  .mode-switcher { grid-template-columns: repeat(3, minmax(105px, 1fr)); }
  .mode-button { padding-inline: 10px; }
  .constructor-main { grid-template-columns: 260px minmax(500px, 1fr) 270px; }
}

@media (max-width: 860px) {
  body { overflow: auto; }
  .app-shell { min-width: 0; height: auto; }
  .topbar {
    height: auto; min-height: 64px; grid-template-columns: 36px 1fr auto;
    padding: 10px 12px; position: sticky; top: 0;
  }
  .brand { display: none; }
  .project-meta { grid-column: 2; }
  .mode-switcher { grid-column: 1 / -1; grid-row: 2; }
  .top-actions { grid-column: 3; grid-row: 1; }
  .icon-button { display: none; }
  .cart-button { font-size: 12px; padding: 10px; }
  .constructor-main { height: auto; display: flex; flex-direction: column; }
  .workspace { min-height: 660px; order: 1; overflow: hidden; }
  .right-panel { order: 2; border: 0; }
  .left-panel { order: 3; border: 0; min-height: 500px; }
  .canvas-stage { width: 92%; }
  .position-grid { grid-template-columns: 1fr 1fr; }
  .summary-layout { grid-template-columns: 1fr; }
  .summary-preview { width: 210px; margin: auto; }
}
