/* Standee body/base workflow. It activates only for the standee family and
   keeps the shape-matched 15/20 × 5.7mm body tab separate from base-print artwork. */

body:not(.has-standee-base-editor) .standee-part-switch,
body:not(.has-standee-base-editor) .standee-base-stage,
body:not(.has-standee-base-editor) .standee-base-panel,
body:not(.has-standee-base-editor) .standee-base-summary {
  display: none !important;
}

body.has-standee-base-editor .right-panel.v4-order-panel {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.standee-part-switch {
  min-width: 278px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(20, 48, 68, 0.18);
  border-radius: 11px;
  background: rgba(232, 248, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.standee-part-switch button {
  min-width: 0;
  min-height: 48px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 2px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4a6576;
  text-align: left;
  cursor: pointer;
}

.standee-part-switch button > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.standee-part-switch button i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #91a6b2;
  box-shadow: 0 0 0 3px rgba(145, 166, 178, 0.13);
}

.standee-part-switch button[data-status="warning"] i {
  background: #e6a400;
  box-shadow: 0 0 0 3px rgba(230, 164, 0, 0.15);
}

.standee-part-switch button[data-status="ready"] i {
  background: #10a66a;
  box-shadow: 0 0 0 3px rgba(16, 166, 106, 0.13);
}

.standee-part-switch button[data-status="standard"] i {
  background: #66808f;
}

.standee-part-switch strong {
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standee-part-switch small {
  width: 100%;
  overflow: hidden;
  padding-left: 13px;
  color: #66808f;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standee-part-switch button.is-active {
  background: #fff;
  color: #143044;
  box-shadow: 0 4px 14px rgba(7, 111, 154, 0.13), 0 0 0 1px rgba(18, 158, 208, 0.2);
}

body.has-standee-base-editor .canvas-header {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

body[data-standee-workspace="base"] .canvas-tabs,
body[data-standee-workspace="base"] .canvas-side-switch,
body[data-standee-workspace="base"] .canvas-panel > .stage,
body[data-standee-workspace="base"] .canvas-edit-actions,
body[data-standee-workspace="base"] .tool-strip,
body[data-standee-workspace="base"] .left-panel > .v4-field-stack,
body[data-standee-workspace="base"] .left-panel > .panel-header {
  display: none !important;
}

body[data-standee-workspace="base"] .canvas-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.standee-base-stage {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: clamp(14px, 2.2vw, 24px);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(18, 158, 208, 0.12), transparent 26%),
    radial-gradient(circle at 86% 90%, rgba(255, 216, 61, 0.13), transparent 28%),
    linear-gradient(135deg, #f7fdff 0%, #fffdf7 100%);
}

.standee-base-stage[hidden] { display: none !important; }

.standee-base-stage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.standee-base-size-badge {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.standee-base-size-badge strong {
  color: #143044;
  font-size: 14px;
  font-weight: 950;
}

.standee-base-size-badge span {
  color: #66808f;
  font-size: 10px;
  font-weight: 750;
}

.standee-base-stage-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.standee-counterpart-status {
  max-width: 270px;
  overflow: hidden;
  padding: 5px 8px;
  border: 1px solid rgba(102, 128, 143, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #66808f;
  font-size: 9px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standee-counterpart-status[data-status="ready"] {
  border-color: rgba(16, 166, 106, 0.28);
  color: #08774b;
  background: rgba(233, 252, 244, 0.9);
}

.standee-base-edit-action {
  display: none;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #143044;
  border-radius: 7px;
  background: #ffd83d;
  color: #143044;
  font-size: 10px;
  font-weight: 950;
  cursor: pointer;
}

.standee-base-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.standee-base-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4a6576;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.standee-base-legend i {
  width: 15px;
  height: 0;
  display: block;
  border-top: 2px solid;
}

.standee-base-legend .is-cutline { border-color: #ef4444; }
.standee-base-legend .is-print { border-color: #129ed0; border-top-style: dashed; }
.standee-base-legend .is-slot { border-color: #10a66a; }

.standee-base-canvas-shell {
  min-height: 250px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(20, 48, 68, 0.14);
  border-radius: 14px;
  background-color: #f8fbfc;
  background-image:
    linear-gradient(45deg, rgba(20, 48, 68, 0.065) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(20, 48, 68, 0.065) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(20, 48, 68, 0.065) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(20, 48, 68, 0.065) 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.58);
}

.standee-base-canvas-shell::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 0;
  border: 1px dashed rgba(20, 48, 68, 0.12);
  border-radius: 9px;
  pointer-events: none;
}

body.is-confirming-design .standee-base-stage [data-base-empty],
body.is-confirming-design .standee-base-stage [data-base-action],
body.is-confirming-design .standee-base-stage [data-base-shape],
body.is-confirming-design .standee-base-svg {
  pointer-events: none;
}

.standee-base-svg {
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  position: absolute;
  inset: 14px;
  z-index: 1;
  display: block;
  overflow: visible;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.standee-base-svg.is-dragging { cursor: grabbing; }

.standee-base-acrylic {
  fill: rgba(255, 255, 255, 0.42);
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.standee-base-cutline,
.standee-base-print-boundary,
.standee-base-slot {
  fill: none;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.standee-base-cutline { stroke: #ef4444; stroke-width: 2; }
.standee-base-print-boundary { stroke: #129ed0; stroke-width: 1.7; stroke-dasharray: 8 6; }
.standee-base-slot { fill: rgba(16, 166, 106, 0.1); stroke: #10a66a; stroke-width: 2; }

.standee-base-measure line {
  stroke: rgba(20, 48, 68, 0.4);
  stroke-width: 1;
  stroke-dasharray: 2 3;
  vector-effect: non-scaling-stroke;
}

.standee-base-measure text {
  fill: #4a6576;
  font-size: 4px;
  font-weight: 900;
  text-anchor: middle;
}

.standee-base-empty {
  width: min(350px, 80%);
  position: absolute;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 18px;
  border: 1px solid rgba(18, 158, 208, 0.32);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #143044;
  text-align: center;
  box-shadow: 0 18px 44px rgba(7, 111, 154, 0.14);
  cursor: pointer;
}

.standee-base-empty[hidden] { display: none; }

.standee-base-empty-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffd83d;
  color: #143044;
  font-size: 20px;
  font-weight: 800;
}

body[data-standee-base-print-mode="standard"] .standee-base-empty-icon {
  background: #e9fbf4;
  color: #08774b;
}

.standee-base-empty strong { font-size: 14px; font-weight: 950; }
.standee-base-empty > span:last-child { color: #4a6576; font-size: 10px; font-weight: 750; line-height: 1.45; }

.standee-base-drag-help {
  margin: 0;
  color: #66808f;
  font-size: 10px;
  font-weight: 750;
  text-align: center;
}

body[data-standee-base-print-mode="standard"] .standee-base-drag-help { visibility: hidden; }

.standee-base-review {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid #e7c84d;
  border-radius: 9px;
  background: #fff9dc;
  color: #5a4a00;
}

.standee-base-review[hidden] { display: none; }
.standee-base-review span { min-width: 0; display: grid; gap: 2px; }
.standee-base-review strong { font-size: 11px; font-weight: 950; }
.standee-base-review small { font-size: 9px; font-weight: 750; }
.standee-base-review button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #143044;
  border-radius: 7px;
  background: #ffd83d;
  color: #143044;
  font-size: 10px;
  font-weight: 950;
}

.standee-base-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.standee-base-panel[hidden] { display: none !important; }

.standee-base-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border-bottom: 1px solid rgba(20, 48, 68, 0.14);
}

.standee-base-panel-head > div { min-width: 0; display: grid; gap: 3px; }
.standee-base-panel-head p { margin: 0; color: #076f9a; font-size: 9px; font-weight: 950; letter-spacing: 0.08em; }
.standee-base-panel-head h2 { margin: 0; color: #143044; font-size: 21px; font-weight: 950; }
.standee-base-panel-head span { color: #4a6576; font-size: 10px; font-weight: 750; line-height: 1.4; }

.standee-base-sheet-close,
.standee-base-mobile-done { display: none; }

.standee-base-panel-scroll {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 12px;
  overflow: auto;
}

.standee-base-card {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(20, 48, 68, 0.15);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.88);
}

.standee-base-card-label {
  color: #4a6576;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.standee-base-derived {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  background: linear-gradient(135deg, #eaf9ff, #fffdf4);
}

.standee-base-derived strong { color: #143044; font-size: 19px; font-weight: 950; }
.standee-base-derived small { color: #4a6576; font-size: 9px; font-weight: 750; }

.standee-base-standard-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(16, 166, 106, 0.22);
  border-radius: 10px;
  background: #f1fcf7;
}

.standee-base-standard-card[hidden],
.standee-base-custom-content[hidden] { display: none !important; }

.standee-base-standard-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #08774b;
  font-size: 22px;
  box-shadow: 0 5px 14px rgba(16, 166, 106, 0.1);
}

.standee-base-standard-card > div { min-width: 0; display: grid; gap: 3px; }
.standee-base-standard-card strong { color: #143044; font-size: 11px; font-weight: 950; }
.standee-base-standard-card small { color: #4a6576; font-size: 9px; font-weight: 750; line-height: 1.4; }
.standee-base-standard-card button {
  min-height: 36px;
  grid-column: 1 / -1;
  border: 1px solid #143044;
  border-radius: 7px;
  background: #ffd83d;
  color: #143044;
  font-size: 10px;
  font-weight: 950;
  cursor: pointer;
}

.standee-base-custom-content { display: grid; gap: 9px; }

.standee-base-shapes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.standee-base-shapes button {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(20, 48, 68, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #143044;
  text-align: left;
  cursor: pointer;
}

.standee-base-shapes button.is-active {
  border-color: #129ed0;
  background: #eaf9ff;
  box-shadow: 0 0 0 2px rgba(18, 158, 208, 0.1);
}

.standee-base-shapes button > span {
  width: 42px;
  height: 34px;
  display: grid;
  place-items: center;
}

.standee-base-shapes svg { width: 42px; height: 34px; }
.standee-base-shapes svg > * { fill: rgba(18, 158, 208, 0.1); stroke: #143044; stroke-width: 2; }
.standee-base-shapes strong { min-width: 0; font-size: 10px; font-weight: 900; line-height: 1.2; }

.standee-base-file-state {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.standee-base-file-state > span:last-child { min-width: 0; display: grid; gap: 2px; }
.standee-base-file-state strong { overflow: hidden; color: #143044; font-size: 10px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.standee-base-file-state small { color: #66808f; font-size: 8px; font-weight: 750; }

.standee-base-file-thumb {
  width: 48px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 48, 68, 0.14);
  border-radius: 7px;
  background-color: #f7fafb;
  background-image:
    linear-gradient(45deg, rgba(20, 48, 68, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(20, 48, 68, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(20, 48, 68, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(20, 48, 68, 0.08) 75%);
  background-position: center;
  background-size: cover;
  color: #4a6576;
  font-size: 8px;
  font-weight: 850;
}

.standee-base-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.standee-base-card-actions button,
.standee-base-mobile-done {
  min-height: 37px;
  padding: 7px 8px;
  border: 1px solid rgba(20, 48, 68, 0.25);
  border-radius: 7px;
  background: #fff;
  color: #143044;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.standee-base-card-actions button.is-primary { border-color: #143044; background: #ffd83d; }
.standee-base-controls label { display: grid; gap: 5px; }
.standee-base-controls label > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #143044; font-size: 9px; font-weight: 850; }
.standee-base-controls output { color: #076f9a; font-size: 9px; font-weight: 950; }
.standee-base-controls input[type="range"] { width: 100%; accent-color: #129ed0; }
.standee-base-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.standee-base-summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  margin: 8px 12px 0;
  padding: 10px;
  border: 1px solid rgba(18, 158, 208, 0.23);
  border-radius: 9px;
  background: linear-gradient(135deg, #effaff, #fffdf7);
}

.standee-base-summary-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #076f9a;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(7, 111, 154, 0.1);
}

.standee-base-summary-copy { min-width: 0; display: grid; gap: 1px; }
.standee-base-summary-copy > span { color: #4a6576; font-size: 8px; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }
.standee-base-summary-copy strong,
.standee-base-summary-copy small,
.standee-base-summary-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.standee-base-summary-copy strong { color: #143044; font-size: 10px; font-weight: 950; }
.standee-base-summary-copy small { color: #66808f; font-size: 9px; font-weight: 800; }
.standee-base-summary-copy small[data-status="warning"] { color: #9a6900; }
.standee-base-summary-copy small[data-status="ready"] { color: #08774b; }
.standee-base-summary-copy em { color: #9a6900; font-size: 8px; font-style: normal; font-weight: 750; }
.standee-base-summary-copy em[data-status="configured"] { color: #08774b; }

.standee-base-summary > button {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid rgba(20, 48, 68, 0.22);
  border-radius: 7px;
  background: #fff;
  color: #076f9a;
  font-size: 9px;
  font-weight: 950;
  cursor: pointer;
}

.mobile-summary-base-edit { display: none; }

.standee-base-sheet-backdrop { display: none; }

.standee-base-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12020;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 48, 68, 0.5);
  backdrop-filter: blur(4px);
}

.standee-base-dialog-backdrop[hidden] { display: none !important; }

.standee-base-dialog {
  width: min(480px, 100%);
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(20, 48, 68, 0.18);
  border-radius: 16px;
  background: #fff;
  color: #143044;
  box-shadow: 0 28px 90px rgba(20, 48, 68, 0.3);
}

.standee-base-dialog > p { margin: 0; color: #076f9a; font-size: 9px; font-weight: 950; letter-spacing: 0.08em; }
.standee-base-dialog > h2 { margin: 0; font-size: 21px; font-weight: 950; line-height: 1.25; }
.standee-base-dialog > span { color: #4a6576; font-size: 11px; font-weight: 750; line-height: 1.55; }
.standee-base-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
.standee-base-dialog-actions button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(20, 48, 68, 0.25);
  border-radius: 8px;
  background: #fff;
  color: #143044;
  font-size: 10px;
  font-weight: 950;
  cursor: pointer;
}
.standee-base-dialog-actions button.is-primary { border-color: #143044; background: #ffd83d; }
body.has-standee-base-dialog { overflow: hidden !important; }

@media (max-width: 1180px) and (min-width: 1025px) {
  .standee-part-switch { min-width: 246px; }
}

@media (max-width: 1024px) {
  body.has-standee-base-editor .canvas-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  body.has-standee-base-editor .canvas-header > :first-child {
    display: none;
  }

  body.has-standee-base-editor .v4-mobile-series-nav {
    grid-row: 1;
  }

  .standee-part-switch {
    width: 100%;
    min-width: 0;
    position: sticky;
    top: calc(var(--zoartix-host-visible-top, 0px) + 4px);
    z-index: 45;
    grid-row: 2;
  }

  body[data-standee-workspace="body"] .canvas-tabs { grid-row: 3; }
  body[data-standee-workspace="base"] .workspace {
    min-height: 0;
    grid-template-rows: auto auto auto;
    align-content: start;
  }

  body[data-standee-workspace="base"] .canvas-panel {
    height: clamp(555px, 42svh, 604px);
    min-height: clamp(555px, 42svh, 604px);
    max-height: clamp(555px, 42svh, 604px);
    align-self: start;
  }

  .standee-base-stage {
    min-height: 0;
    padding: 12px;
  }

  .standee-base-canvas-shell { min-height: 300px; }
  .standee-base-svg { width: calc(100% - 20px); height: calc(100% - 20px); inset: 10px; }
  .standee-base-edit-action,
  .standee-base-summary > button { display: none; }

  body.has-standee-base-editor .right-panel .mobile-order-summary {
    width: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    margin-inline: 10px;
  }

  body.has-standee-base-editor .mobile-summary-base-edit {
    min-width: 0;
    display: grid;
  }

  .standee-base-panel {
    width: min(520px, calc(100vw - 16px));
    max-height: min(680px, calc(var(--zoartix-host-visible-height, 100dvh) - 16px));
    position: fixed;
    left: 50%;
    top: calc(var(--zoartix-host-visible-top, 0px) + var(--zoartix-host-visible-height, 100dvh) - 8px);
    bottom: auto;
    z-index: 10040;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border: 1px solid rgba(20, 48, 68, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 26px 80px rgba(20, 48, 68, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 0);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .standee-base-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -100%);
  }

  .standee-base-sheet-close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #edf6f9;
    color: #143044;
    font-size: 25px;
    line-height: 1;
  }

  .standee-base-mobile-done {
    display: block;
    margin: 0 12px max(12px, env(safe-area-inset-bottom));
    border-color: #143044;
    background: #ffd83d;
    font-size: 11px;
  }

  .standee-base-sheet-backdrop {
    position: fixed;
    inset: var(--zoartix-host-visible-top, 0px) 0 auto;
    height: var(--zoartix-host-visible-height, 100dvh);
    z-index: 10030;
    display: block;
    border: 0;
    background: rgba(20, 48, 68, 0.42);
    backdrop-filter: blur(3px);
  }

  .standee-base-sheet-backdrop[hidden] { display: none; }
  body.has-standee-base-sheet { overflow: hidden !important; }
  .standee-base-summary { margin-top: 4px; }
}

@media (max-width: 520px) {
  .standee-part-switch button { min-height: 45px; padding: 6px 8px; }
  .standee-part-switch strong { font-size: 11px; }
  .standee-part-switch small { font-size: 7px; }
  .standee-base-stage-meta { align-items: flex-start; }
  .standee-base-size-badge strong { font-size: 12px; }
  .standee-base-size-badge span { display: none; }
  .standee-counterpart-status { max-width: 165px; }
  .standee-base-legend { gap: 7px; }
  .standee-base-legend span { font-size: 0; }
  .standee-base-legend i { width: 19px; }
  .standee-base-canvas-shell { min-height: 270px; }
  .standee-base-empty { width: 86%; padding: 14px; }
  .standee-base-empty > span:last-child { font-size: 9px; }
  .standee-base-review { align-items: flex-start; }
  .standee-base-shapes button { min-height: 60px; }
  .standee-base-dialog { padding: 18px; }
  .standee-base-dialog > h2 { font-size: 18px; }
  .standee-base-dialog-actions { display: grid; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .standee-base-panel { transition: none; }
}
