:root {
  --burgundy: #7B2840;
  --burgundy-dark: #5E1F30;
  --burgundy-light: #9A3A55;
  --ivory: #F7F3ED;
  --beige: #E8DFD0;
  --charcoal: #2E2A27;
  --muted: #6B6560;
  --line: #E5DDD3;
  --accent-soft: #F3E8EC;
  --highlight: #C4A574;

  --ed-primary: var(--burgundy);
  --ed-primary-soft: var(--accent-soft);
  --ed-border: var(--line);
  --ed-text: var(--charcoal);
  --ed-muted: var(--muted);
  --ed-bg: #F4F1EE;
  --ed-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
  color: var(--ed-text);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 12px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

#app { height: 100%; }

.ed-boot {
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% 12%, rgba(123, 40, 64, 0.08), transparent 28%),
    linear-gradient(165deg, #fff 0%, var(--ivory, #f7f3ef) 55%, #efe8e1 100%);
}
.ed-boot__card {
  display: none;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 100000;
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background:
    radial-gradient(circle at 70% 12%, rgba(123, 40, 64, 0.12), transparent 28%),
    linear-gradient(165deg, #fff 0%, var(--ivory) 55%, #efe8e1 100%);
  text-align: center;
}
.boot.is-done,
#editor-boot[hidden] {
  display: none !important;
}
.ed.is-booting {
  visibility: hidden;
  pointer-events: none;
}
.boot__labi {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 0 2px;
  display: grid;
  place-items: center;
}
.boot__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  transform: rotate(-90deg);
}
.boot__ring-track,
.boot__ring-fill {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
}
.boot__ring-track {
  stroke: #ead7de;
}
.boot__ring-fill {
  stroke: var(--burgundy);
  stroke-dasharray: var(--blazor-load-percentage, 0%) 100;
  transition: stroke-dasharray 0.12s ease-out;
}
.boot__labi-img {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(123, 40, 64, 0.22));
  animation: bootLabiBob 1.55s var(--ed-ease) infinite;
  transform-origin: 50% 85%;
  user-select: none;
  pointer-events: none;
}
.boot__labi-shadow {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 72px;
  height: 14px;
  border-radius: 50%;
  background: rgba(46, 42, 39, 0.16);
  transform: translateX(-50%);
  filter: blur(2px);
  animation: bootLabiShadow 1.55s var(--ed-ease) infinite;
  z-index: 0;
}
.boot__pct {
  margin: 2px 0 0;
  min-height: 1.2em;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--burgundy);
}
.boot__pct:after {
  content: var(--blazor-load-percentage-text, "");
}
.boot__ai {
  margin: -4px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--burgundy);
  opacity: 0.78;
}
.boot__mark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--burgundy);
}
.boot__text { margin: 0; color: var(--muted); font-size: 13px; }
@keyframes bootLabiBob {
  0%, 100% { transform: translateY(0) rotate(-2deg) scale(1); }
  35% { transform: translateY(-10px) rotate(2deg) scale(1.03); }
  55% { transform: translateY(-3px) rotate(-1deg) scale(1.01); }
  75% { transform: translateY(-8px) rotate(1.5deg) scale(1.025); }
}
@keyframes bootLabiShadow {
  0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.55; }
  35% { transform: translateX(-50%) scaleX(0.62); opacity: 0.28; }
  55% { transform: translateX(-50%) scaleX(0.85); opacity: 0.42; }
  75% { transform: translateX(-50%) scaleX(0.68); opacity: 0.32; }
}

.ed {
  position: relative;
  min-width: 1180px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ed-bg);
  color: var(--ed-text);
  animation: edIn 0.45s var(--ed-ease) both;
}
@keyframes edIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* —— Top bar (M-01) —— */
.ed-topbar-dock {
  z-index: 180;
}
.ed-topbar-dock.is-pinned {
  position: relative;
  flex-shrink: 0;
}
.ed-topbar-dock.is-auto {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  z-index: 180;
}
.ed-topbar-hotzone {
  position: absolute;
  inset: 0 0 auto 0;
  height: 16px;
  z-index: 42;
}
.ed-topbar-dock.is-auto::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 43;
  width: 64px;
  height: 7px;
  border-radius: 0 0 8px 8px;
  background: var(--burgundy);
  opacity: 0.42;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.2s var(--ed-ease);
}
.ed-topbar-dock.is-auto:hover::after,
.ed-topbar-dock.is-auto:focus-within::after {
  opacity: 0;
}
.ed-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(90deg, #c45d75 0%, #9a3a55 26%, #7b2840 54%, #5e1f30 78%, #2c161d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 28px rgba(32, 16, 22, 0.22);
  color: #f6efe8;
  flex-shrink: 0;
  z-index: 181;
}
.ed-topbar-dock.is-auto .ed-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-100%);
  box-shadow: none;
  pointer-events: none;
  transition: transform 0.24s var(--ed-ease), box-shadow 0.24s var(--ed-ease);
}
.ed-topbar-dock.is-auto:hover .ed-topbar,
.ed-topbar-dock.is-auto:focus-within .ed-topbar {
  transform: translateY(0);
  pointer-events: auto;
  box-shadow: 0 12px 28px rgba(32, 16, 22, 0.28);
}
@media (prefers-reduced-motion: reduce) {
  .ed-topbar-dock.is-auto .ed-topbar,
  .ed-topbar-dock.is-auto::after {
    transition: none;
  }
}
.ed-topbar__file {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  max-width: 560px;
}
.ed-topbar__file-meta {
  position: relative;
  min-width: 0;
}
.ed-topbar__title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ed-autosave {
  --ed-cloud-check: url("../img/cloud-check-on.png");
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  color: #fff;
  cursor: pointer;
  user-select: none;
  box-shadow: none;
}
.ed-autosave input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.ed-autosave > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ed-autosave::before,
.ed-autosave::after {
  pointer-events: none;
}
.ed-autosave::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--ed-cloud-check) center / contain no-repeat;
  mask: var(--ed-cloud-check) center / contain no-repeat;
}
.ed-autosave::after {
  content: none !important;
  display: none !important;
}
.ed-autosave:hover {
  background: transparent;
  filter: brightness(1.15);
}
html[data-ed-save="saving"] .ed-autosave {
  animation: edCloudPulse 1s ease-in-out infinite;
}
html[data-ed-save="error"] .ed-autosave {
  color: #ff9b8f;
}
html[data-ed-save="off"] .ed-autosave {
  color: rgba(255, 255, 255, 0.42);
}
html[data-ed-save="off"] .ed-autosave:hover {
  color: rgba(255, 255, 255, 0.7);
}
.ed-topbar__labi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  padding: 0 8px 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.2px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: none;
}
.ed-topbar__labi:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.4);
}
.ed-topbar__labi img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.ed-topbar__vendor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  padding: 0 8px 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.2px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: none;
}
.ed-topbar__vendor:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.4);
}
.ed-topbar__vendor-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
}
.ed-corner-fab--labi.is-parked,
.ed-float-tools__bar .ed-corner-fab--labi,
.ed-corner-fab--vendor.is-parked,
.ed-float-tools__bar .ed-corner-fab--vendor {
  display: none !important;
}
@keyframes edCloudPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.92); }
}
@keyframes edCloudSpin {
  to { transform: rotate(360deg); }
}
.ed-topbar__logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: transparent;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ed-topbar__logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.ed-topbar__name {
  display: block;
  width: 100%;
  min-width: 140px;
  max-width: 200px;
  padding: 4px 8px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background: rgba(255, 248, 242, 0.22);
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  caret-color: #f3d5b8;
}
.ed-topbar__name::placeholder { color: rgba(246, 239, 232, 0.42); }
.ed-topbar__name:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 248, 242, 0.3);
}
.ed-topbar__name:focus {
  outline: none;
  border-color: rgba(255, 236, 220, 0.55);
  background: rgba(255, 248, 242, 0.36);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
  color: #fff;
}
.ed-topbar__saved,
.ed-topbar__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ed-topbar__build {
  display: none !important;
}
.ed-topbar__center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ed-chip {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #f3e6ea;
  cursor: pointer;
}
.ed-chip:hover:not(:disabled),
.ed-chip.is-active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.ed-chip:disabled { opacity: 0.35; cursor: default; }
.ed-chip--pin svg { display: block; }
.ed-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 12px;
  border: none;
  border-radius: 999px;
  background: #eef1f5;
  box-shadow: inset 0 0 0 1px rgba(55, 65, 81, 0.06);
  font-size: 12px;
  margin-left: 8px;
  font-weight: 600;
  color: #4b5563;
}
.ed-zoom button {
  display: none !important;
}
.ed-zoom__slider-wrap {
  position: relative;
  width: 92px;
  height: 18px;
  display: flex;
  align-items: center;
}
.ed-zoom__slider-wrap::before,
.ed-zoom__slider-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8b93a3;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}
.ed-zoom__slider-wrap::before { left: 1px; }
.ed-zoom__slider-wrap::after { right: 1px; }
.ed-zoom__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  margin: 0;
  background: #c5cbd6;
  border-radius: 999px;
  outline: none;
}
.ed-zoom__slider::-webkit-slider-runnable-track {
  height: 4px;
  background: #c5cbd6;
  border-radius: 999px;
}
.ed-zoom__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(31, 41, 55, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}
.ed-zoom__slider::-moz-range-track {
  height: 4px;
  background: #c5cbd6;
  border: none;
  border-radius: 999px;
}
.ed-zoom__slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(31, 41, 55, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}
.ed-zoom__pct,
.ed-zoom span {
  min-width: 2.7em;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  text-align: left;
}
.ed-topbar__actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.ed-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--ed-border);
  background: #fff;
  color: var(--charcoal);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.ed-btn:hover { filter: brightness(0.98); }
.ed-btn--tiny {
  padding: 4px 8px;
  font-size: 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.ed-btn__ico {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: block;
}
.ed-btn--primary {
  background: linear-gradient(90deg, var(--burgundy), var(--burgundy-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(123, 40, 64, 0.22);
}
.ed-topbar .ed-btn {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f7f0ea;
}
.ed-topbar .ed-btn--primary {
  background: #fff;
  border-color: transparent;
  color: #5e1f30;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.ed-topbar .ed-btn--shop,
.ed-topbar .ed-btn--shop:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f7f0ea;
}

/* —— Body —— */
.ed__body {
  flex: 1;
  display: flex;
  min-height: 0;
  position: relative;
  align-items: stretch;
  background: var(--ed-bg);
}

.ed__workspace {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--ed-bg);
  position: relative;
}

.ed__canvas-wrap {
  flex: 1 1 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.ed__canvas-wrap.is-grid-on::after { display: none; }
.ed__artboard-frame {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.ed__vendor-drop {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 220;
  pointer-events: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(123, 40, 64, 0.14);
  border: 2px dashed #7b2840;
  color: #5c1d30;
  text-align: center;
}
.ed__workspace.is-vendor-drop > .ed__vendor-drop {
  display: flex;
}
.ed__vendor-drop strong {
  font-size: 18px;
  font-weight: 800;
}
.ed__vendor-drop span {
  font-size: 13px;
}
.ed__vendor-drop em {
  font-size: 12px;
  font-style: normal;
  color: #8a4a5c;
}
.canvas-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.canvas-stage.is-pan-ready { cursor: grab; }
.canvas-stage.is-panning,
.canvas-stage.is-panning * { cursor: grabbing !important; }
.canvas-stage__skia {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  background: #fff;
  border: 1.6px solid rgba(123, 40, 64, 0.82);
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(46, 42, 39, 0.12);
  overflow: hidden;
  pointer-events: none;
}
.skia-view,
.canvas-stage__skia .skia-view,
.canvas-stage__skia canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: block;
}
.ed-guides {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.ed-guides__h,
.ed-guides__v,
.ed-guides__corner {
  position: absolute;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #7b2840;
  pointer-events: auto;
  cursor: grab;
}
.ed-guides__size { pointer-events: auto; cursor: grab; }
.ed-guides__h {
  height: 28px;
  overflow: visible;
}
.ed-guides__v {
  width: 28px;
}
.ed-guides__corner {
  width: 28px;
  height: 28px;
  background: #f3e8ec;
}
.ed-guides__tick {
  position: absolute;
  display: block;
  bottom: 0;
  width: 1px;
  height: 6px;
  background: #2e2a27;
  font-style: normal;
}
.ed-guides__tick.is-5 { height: 10px; }
.ed-guides__tick.is-10 { height: 14px; }
.ed-guides__tick--v,
.ed-guides__tick--v.is-5,
.ed-guides__tick--v.is-10 {
  left: auto;
  right: 0;
  top: auto;
  bottom: auto;
  height: 1px;
  width: 6px;
}
.ed-guides__tick--v.is-5 { width: 10px; }
.ed-guides__tick--v.is-10 { width: 14px; }
.ed-guides__num {
  position: absolute;
  top: 2px;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  color: #2e2a27;
  line-height: 1;
}
.ed-guides__num--v {
  top: auto;
  left: 3px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.ed-guides__size {
  position: absolute;
  left: 0;
  top: auto;
  bottom: calc(100% + 5px);
  z-index: 5;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #7b2840;
  box-shadow: 0 2px 8px rgba(46, 42, 39, 0.14);
  font-size: 10px;
  font-weight: 800;
  color: #7b2840;
  line-height: 1.2;
  white-space: nowrap;
}

/* —— Floating tools (M-03) —— */
.ed-float-tools {
  position: absolute;
  z-index: 110;
  left: 28px;
  top: 28px;
  width: max-content;
  max-width: calc(100% - 24px);
  pointer-events: none;
}
.ed-float-tools__bar {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  padding: 6px 6px 6px 4px;
  background: #fff;
  border: 1px solid var(--ed-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(46, 42, 39, 0.10), 0 2px 8px rgba(46, 42, 39, 0.05);
  pointer-events: auto;
  animation: panelIn 0.4s var(--ed-ease) both;
}
.ed-float-tools__group {
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
}
.ed-float-tools__divider {
  width: 1px;
  align-self: stretch;
  margin: 6px 6px;
  background: var(--ed-border);
}
.ed-float-tools__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px 5px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  color: var(--ed-muted);
}
.ed-float-tools__item:hover,
.ed-float-tools__item.is-active {
  background: var(--ed-primary-soft);
  color: var(--ed-primary);
}
.ed-float-tools__ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--ed-border);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.ed-float-tools__item.is-active .ed-float-tools__ico {
  border-color: transparent;
  background: linear-gradient(145deg, var(--burgundy-light), var(--burgundy-dark));
  color: #fff;
}
.ed-float-tools__label {
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.ed-float-tools__presets {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 6px;
  justify-content: center;
}
.ed-float-tools__select {
  border: 1px solid var(--ed-border);
  border-radius: 6px;
  padding: 4px 6px;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  color: var(--charcoal);
  background: #fff;
  max-width: 120px;
}

/* —— Float bar (M-04) —— */
.ed-float-bar {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--ed-border);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(46, 42, 39, 0.10);
  animation: panelIn 0.45s var(--ed-ease) both;
}
.ed-float-bar button {
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ed-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.ed-float-bar button:hover:not(:disabled) {
  background: var(--ed-primary-soft);
  color: var(--ed-primary);
  border-color: #E8D4DB;
}
.ed-float-bar button:disabled { opacity: 0.35; cursor: default; }

/* —— Props / Preview panels —— */
.ed-props,
.ed-preview {
  position: absolute;
  z-index: 95;
  right: 12px;
  width: 280px;
  max-width: min(280px, calc(100% - 64px));
  max-height: calc(100% - 24px);
  background: #fff;
  border: 1px solid var(--ed-border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(46, 42, 39, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: panelIn 0.5s var(--ed-ease) both;
}
.ed-props { top: 12px; bottom: 12px; max-height: none; }
.ed-preview { left: 12px; right: auto; top: 12px; bottom: 12px; max-height: none; min-height: 360px; }

html.lu-right-stack .ed:not(.is-mobile) .ed__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-template-rows: minmax(220px, 42%) minmax(180px, 1fr);
  column-gap: 12px;
  row-gap: 8px;
  padding: 12px 12px 12px 0;
}
html.lu-right-stack .ed:not(.is-mobile) .ed__workspace {
  grid-column: 1;
  grid-row: 1 / -1;
  padding-right: 0;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  align-self: stretch;
  justify-self: stretch;
}
html.lu-right-stack .ed:not(.is-mobile) .ed__canvas-wrap,
html.lu-right-stack .ed:not(.is-mobile) .ed__artboard-frame {
  min-width: 0;
  min-height: 0;
}
html.lu-right-stack .ed:not(.is-mobile) .ed-preview,
html.lu-right-stack .ed:not(.is-mobile) .ed-props {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  transform: none !important;
  z-index: 40;
}
html.lu-right-stack .ed:not(.is-mobile) .ed-preview {
  grid-column: 2;
  grid-row: 1;
}
html.lu-right-stack .ed:not(.is-mobile) .ed-props {
  grid-column: 2;
  grid-row: 2;
}
html.lu-right-stack .ed:not(.is-mobile) .ed-props__grip,
html.lu-right-stack .ed:not(.is-mobile) .ed-preview .ed-props__grip,
html.lu-right-stack .ed:not(.is-mobile) .ed-props__min {
  display: none;
}
html.lu-right-stack .ed:not(.is-mobile) .ed-props__inner {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
html.lu-right-stack .ed:not(.is-mobile) .ed-props__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
html.lu-right-stack .ed:not(.is-mobile) .ed-props__layers {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.ed-props.is-minimized,
.ed-preview.is-minimized {
  max-height: none;
  width: auto;
  min-width: 200px;
  min-height: 0;
  height: auto !important;
}
.ed-props.is-minimized {
  bottom: auto !important;
}
.ed-preview.is-minimized {
  top: auto;
  bottom: 12px;
}
.ed-preview.is-minimized.is-dragging,
.ed-preview.is-minimized.is-moved {
  bottom: auto !important;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}

.ed-props__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #faf8f6 0%, #fff 100%);
  border-bottom: 1px solid var(--ed-border);
  flex-shrink: 0;
}
.ed-props.is-minimized .ed-props__chrome,
.ed-preview.is-minimized .ed-props__chrome { border-bottom: none; }
.ed-props__grip {
  font-size: 12px;
  color: #c4bbb0;
  letter-spacing: -2px;
}
.ed-props__title {
  flex: 1;
  font-size: 12px;
  font-weight: 800;
}
.ed-props__min {
  width: 24px;
  height: 24px;
  border: 1px solid var(--ed-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: var(--ed-muted);
}
.ed-props__inner,
.ed-preview__inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}
.ed-preview__inner {
  overflow: hidden;
  flex: 1;
}
.ed-props__tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px 0;
}
.ed-props__tab {
  flex: 1;
  height: 30px;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  color: var(--ed-muted);
  cursor: pointer;
}
.ed-props__tab.is-active {
  background: var(--ed-primary-soft);
  color: var(--ed-primary);
  border-color: #E8D4DB;
}

.ed-ctx-bar {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 260;
  max-width: min(960px, calc(100% - 24px));
  background: #fff;
  border: 1px solid #eadfe3;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(46, 42, 39, 0.16), 0 1px 0 rgba(255, 255, 255, 0.85);
  pointer-events: auto;
}
.ed-ctx-bar[hidden] { display: none !important; }
.ed-ctx-bar__row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  overflow-x: auto;
  overflow-y: hidden;
}
.ed-ctx-bar__slot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ed-ctx-bar__slot[hidden],
.ed-ctx-bar__div[hidden],
.ed-ctx-bar [hidden] { display: none !important; }
.ed-ctx-bar__div {
  width: 1px;
  align-self: stretch;
  margin: 2px 4px;
  background: #efe7e4;
  flex: 0 0 1px;
}
.ed-ctx-bar button {
  height: 30px;
  min-width: 30px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #5c4f53;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.ed-ctx-bar button:hover { background: #f6eef1; color: var(--ed-primary, #7b2840); }
.ed-ctx-bar button.is-on {
  background: var(--ed-primary-soft, #f6eef1);
  border-color: #e8d4db;
  color: var(--ed-primary, #7b2840);
}
.ed-ctx-bar button[data-act="bold"] { font-weight: 900; }
.ed-ctx-bar button[data-act="italic"] { font-style: italic; }
.ed-ctx-bar input[type="color"] {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #e8d4db;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}
.ed-ctx-bar__lab {
  font-size: 10px;
  font-weight: 800;
  color: #8a7a7e;
  white-space: nowrap;
}
.ed-ctx-bar input[type="number"] {
  width: 52px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #e8d4db;
  border-radius: 8px;
  background: #faf8f6;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.ed-ctx-bar select {
  max-width: 148px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #e8d4db;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 12px;
}
.ed-ctx-bar__slot[data-slot="opacity"] { position: relative; }
.ed-ctx-bar__op {
  width: 30px;
  min-width: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ed-ctx-bar__op-ico {
  display: block;
  width: 18px;
  height: 18px;
}
.ed-ctx-op {
  position: fixed;
  z-index: 420;
  width: 48px;
  height: 168px;
  padding: 10px 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #eadfe3;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(46, 42, 39, 0.18);
  touch-action: none;
  user-select: none;
}
.ed-ctx-op[hidden] { display: none !important; }
.ed-ctx-op__pct {
  font-size: 11px;
  font-weight: 800;
  color: #5c4f53;
  letter-spacing: -0.02em;
}
.ed-ctx-op__track {
  position: relative;
  width: 8px;
  flex: 1;
  border-radius: 999px;
  background: #efe7e4;
  cursor: ns-resize;
}
.ed-ctx-op__fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: var(--ed-primary, #7b2840);
}
.ed-ctx-op__thumb {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ed-primary, #7b2840);
  box-shadow: 0 2px 6px rgba(46, 42, 39, 0.18);
  pointer-events: none;
}
.ed.is-mobile .ed-ctx-bar {
  top: 8px;
  left: 8px;
  right: 8px;
  transform: none;
  max-width: none;
}
.ed-props__body {
  padding: 12px;
  display: grid;
  gap: 12px;
}
.ed-props__empty {
  padding: 16px 12px;
  color: var(--ed-muted);
  font-size: 12px;
  line-height: 1.55;
}
.ed-field-group { display: grid; gap: 6px; }
.ed-field-label {
  font-size: 10px;
  font-weight: 800;
  color: #a39c96;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ed-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.ed-field {
  display: grid;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ed-muted);
}
.ed-field--full { grid-column: 1 / -1; }
.ed-field--check {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding-bottom: 0;
  align-self: center;
  width: auto;
  min-width: max-content;
  grid-template-columns: none;
}
.ed-field--check span {
  white-space: nowrap;
  flex: 0 0 auto;
  line-height: 1.2;
}
.ed-checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.ed-font-search {
  margin-bottom: 6px;
  font-weight: 600;
}
.ed-field input,
.ed-field select,
.ed-textarea {
  width: 100%;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  padding: 7px 8px;
  font: inherit;
  font-weight: 600;
  color: var(--charcoal);
  background: #fff;
}
.ed-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 16px;
  padding: 0;
  accent-color: var(--burgundy, #7B2840);
  border: none;
}
.ed-field input[type="color"] { padding: 2px; height: 32px; }
.ed-color {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 6px;
  align-items: center;
}
.ed-color input[type="color"] {
  width: 44px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  background: #fff;
}
.ed-color__hex {
  width: 100%;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  padding: 7px 8px;
  font: inherit;
  font-weight: 600;
  color: var(--charcoal);
  background: #fff;
}
.ed-table-swatch {
  display: grid;
  grid-template-columns: auto 36px auto;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ed-muted);
}
.ed-table-swatch input[type="color"] {
  width: 36px;
  height: 28px;
  padding: 2px;
  border: 1px solid var(--ed-border);
  border-radius: 6px;
  background: #fff;
}
.ed-table-cells {
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow: auto;
}
.ed-table-cell__color {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.ed-table-cell__color input[type="color"] {
  width: 28px;
  height: 24px;
  padding: 1px;
}
.ed-textarea { resize: vertical; min-height: 64px; }
.ed-props__layers {
  gap: 4px;
  position: relative;
  align-content: start;
  align-items: stretch;
  justify-content: start;
  grid-auto-rows: 36px;
}
.ed-layer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  box-sizing: border-box;
  flex: 0 0 36px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 10px 0 22px;
  background: #faf8f6;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--charcoal);
  cursor: grab;
  touch-action: none;
  position: relative;
  overflow: hidden;
}
.ed-layer-item > span:nth-child(2) {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ed-layer-item::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 8px;
  height: 12px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(
    to bottom,
    #c4b6ba 0 2px,
    transparent 2px 4px
  );
  opacity: 0.75;
  pointer-events: none;
}
.ed-layer-item:hover,
.ed-layer-item.is-active {
  background: var(--ed-primary-soft);
  border-color: #E8D4DB;
  color: var(--ed-primary);
}
.ed-layer-item.is-dragging {
  opacity: 0.28;
  cursor: grabbing;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.35);
}
.ed-layer-ghost {
  position: fixed !important;
  z-index: 520;
  margin: 0;
  pointer-events: none;
  opacity: 0.96;
  box-shadow: 0 14px 28px rgba(44, 22, 29, 0.2);
  transform: rotate(1deg);
  cursor: grabbing;
}
.ed-props__layers.is-reordering,
.ed-props__layers.is-reordering .ed-layer-item {
  cursor: grabbing;
  user-select: none;
}
.ed-props__layers.is-applying {
  pointer-events: none;
  opacity: 0.62;
}
.ed-layer-drop {
  position: fixed;
  z-index: 80;
  height: 3px;
  border-radius: 99px;
  background: var(--ed-primary, #7b2840);
  box-shadow: 0 0 0 2px rgba(123, 40, 64, 0.16);
  pointer-events: none;
}
html.lu-layer-applying [data-ed-props-panel] {
  overflow: hidden !important;
}
html.lu-layer-applying [data-ed-props-panel] .ed-props__inner {
  visibility: hidden;
}
.ed-layer-freeze {
  position: fixed;
  z-index: 90;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  pointer-events: none;
  box-sizing: border-box;
}
.ed-layer-freeze__list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  overflow: auto;
  min-height: 0;
}
.ed-layer-freeze__list .ed-layer-item {
  height: 36px;
  min-height: 36px;
  max-height: 36px;
}

.ed-preview__spec,
.ed-preview__actions { flex-shrink: 0; }
.ed-preview__spec {
  margin: 0;
  padding: 10px 12px 0;
  font-size: 11px;
  color: var(--ed-muted);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.ed-preview__spec strong { color: var(--charcoal); }
.ed-preview__sheet-meta {
  font-size: 10px;
  font-weight: 700;
  color: #a39c96;
  white-space: nowrap;
}
.ed-preview__page-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  overflow: hidden;
  container-type: size;
}
.ed-preview__page {
  position: relative;
  width: min(100%, 100cqw, calc((100cqh - 0.1px) * var(--page-w, 210) / var(--page-h, 297)));
  aspect-ratio: var(--page-ar, 210 / 297);
  height: auto;
  max-width: 100%;
  max-height: 100%;
  background: #fff;
  border: 1px solid var(--ed-border);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(46, 42, 39, 0.08);
}
.ed-preview__sheet {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  background: transparent;
}
.ed-preview__cell {
  position: absolute;
  box-sizing: border-box;
  border: 1px solid var(--ed-border);
  border-radius: 2px;
  background: #fff;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(46, 42, 39, 0.04);
}
.ed-preview__cell.is-round {
  border-radius: 50%;
}
.ed-preview__cell.is-shaped {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.ed-preview__cell.is-selected {
  border-color: var(--ed-primary);
  box-shadow: 0 0 0 2px rgba(123, 40, 64, 0.16);
}
.ed-preview__thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
  pointer-events: none;
  user-select: none;
}
.ed-preview__cell.is-round .ed-preview__thumb {
  border-radius: 50%;
}
.ed-preview__hint {
  font-size: 9px;
  color: var(--ed-muted);
  text-align: center;
  line-height: 1.3;
  margin: auto;
  padding: 6px;
}
.ed-preview__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 4px;
  padding: 8px 12px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ed-muted);
}
.ed-preview__pager button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--ed-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.ed-preview__pager .ed-preview__add,
.ed-preview__pager .ed-preview__order {
  width: auto;
  min-width: 88px;
  height: 28px;
  padding: 0 10px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}
.ed-preview__pager .ed-preview__add {
  color: var(--burgundy);
}
.ed-preview__pager .ed-preview__order {
  color: #fff;
  background: linear-gradient(90deg, var(--burgundy), var(--burgundy-dark));
  border-color: transparent;
}
.ed-preview__foot {
  padding: 8px 12px 12px;
  border-top: 1px solid var(--ed-border);
}
.ed-preview__qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ed-muted);
}
.ed-preview__qty input {
  width: 72px;
  border: 1px solid var(--ed-border);
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
  font-weight: 700;
}

#blazor-error-ui {
  background: #fff7f7;
  bottom: 0;
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  display: none;
  left: 0;
  padding: 12px 18px;
  position: fixed;
  width: 100%;
  z-index: 1000;
  color: #9b1c1c;
  font-size: 13px;
}
#blazor-error-ui .reload { margin-left: 8px; color: var(--burgundy); font-weight: 800; }
#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 14px;
  top: 12px;
}
#blazor-error-ui.show { display: block; }

.ed-float-tools__grip {
  flex-shrink: 0;
  width: 20px;
  border: none;
  background: transparent;
  color: #d0c7bc;
  font-size: 12px;
  letter-spacing: -2px;
  cursor: grab;
  border-radius: 6px;
  padding: 0;
  margin: 2px 2px 2px 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ed-float-tools__grip:hover {
  color: var(--ed-primary);
  background: var(--ed-primary-soft);
}
.ed-float-tools.is-dragging .ed-float-tools__grip { cursor: grabbing; color: var(--ed-primary); }
.ed-float-tools.is-dragging .ed-float-tools__bar {
  box-shadow: 0 16px 48px rgba(123, 40, 64, 0.22);
  cursor: grabbing;
}
.ed-float-tools.is-dragging.is-magnet-near .ed-float-tools__bar {
  outline: 2px dashed rgba(123, 40, 64, 0.35);
  outline-offset: 2px;
}
.ed-float-tools.is-snapping .ed-float-tools__bar {
  transition: transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.ed-float-tools__dock {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 4px;
}
.ed-float-tools__dock-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  background: #fff;
  color: var(--ed-muted);
  cursor: pointer;
  font-size: 13px;
}
.ed-float-tools__dock-btn.is-open,
.ed-float-tools__dock-btn:hover {
  background: var(--ed-primary-soft);
  color: var(--ed-primary);
  border-color: #E8D4DB;
}
.ed-float-tools__dock-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  min-width: 140px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--ed-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(46, 42, 39, 0.14);
}
.ed-float-tools__dock-label {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 800;
  color: #a39c96;
}
.ed-float-tools__dock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.ed-float-tools__dock-grid button {
  height: 32px;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ed-muted);
}
.ed-float-tools__dock-grid button:hover,
.ed-float-tools__dock-grid button.is-active {
  background: var(--ed-primary-soft);
  border-color: #E8D4DB;
  color: var(--ed-primary);
}
.ed-float-tools__dock-label:not(:first-child) {
  margin-top: 10px;
}
.ed-float-tools__dock-grid--orient button {
  font-size: 11px;
}

/* 세로 배치 (아이콘 배치) */
.ed-float-tools[data-ed-float-orient="vertical"] .ed-float-tools__bar {
  flex-direction: column;
  align-items: stretch;
  padding: 4px 6px 6px;
}
.ed-float-tools[data-ed-float-orient="vertical"] .ed-float-tools__grip {
  width: auto;
  height: 18px;
  margin: 0 2px 2px;
  letter-spacing: 1px;
}
.ed-float-tools[data-ed-float-orient="vertical"] .ed-float-tools__group {
  flex-direction: column;
}
.ed-float-tools[data-ed-float-orient="vertical"] .ed-float-tools__divider {
  width: auto;
  height: 1px;
  margin: 4px 8px;
  align-self: stretch;
}
.ed-float-tools[data-ed-float-orient="vertical"] .ed-float-tools__item {
  flex-direction: row;
  justify-content: flex-start;
  gap: 8px;
  padding: 7px 10px;
  min-width: 112px;
}
.ed-float-tools[data-ed-float-orient="vertical"] .ed-float-tools__label {
  font-size: 11px;
}
.ed-float-tools[data-ed-float-orient="vertical"] .ed-float-tools__presets {
  padding: 6px 8px;
}
.ed-float-tools[data-ed-float-orient="vertical"] .ed-float-tools__select {
  max-width: none;
  width: 100%;
}
.ed-float-tools[data-ed-float-orient="vertical"] .ed-float-tools__dock {
  align-self: stretch;
  justify-content: center;
  padding-top: 2px;
}
.ed-float-tools[data-ed-float-orient="vertical"] .ed-float-tools__dock-menu {
  top: auto;
  bottom: 0;
  left: calc(100% + 8px);
  right: auto;
}

/* Canva-style left rail — desktop only */
.ed:not(.is-mobile) .ed__workspace {
  padding-left: 68px;
}
.ed:not(.is-mobile) .ed-float-tools {
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  bottom: 0 !important;
  width: 68px;
  max-width: 68px;
  height: 100%;
  pointer-events: none;
}
.ed:not(.is-mobile) .ed-float-tools__bar {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 68px;
  max-width: 68px;
  height: 100%;
  padding: 8px 4px 10px;
  border: none;
  border-right: 1px solid #e7dfd6;
  border-radius: 0;
  background: #f7f5f2;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.7);
}
.ed:not(.is-mobile) .ed-float-tools__grip,
.ed:not(.is-mobile) .ed-float-tools__dock {
  display: none !important;
}
.ed:not(.is-mobile) .ed-float-tools__group {
  flex-direction: column;
  align-items: stretch;
}
.ed:not(.is-mobile) .ed-float-tools__divider {
  width: auto;
  height: 1px;
  margin: 6px 10px;
  align-self: stretch;
}
.ed:not(.is-mobile) .ed-float-tools__item {
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8px 2px 7px;
  gap: 4px;
}
.ed:not(.is-mobile) .ed-float-tools__label {
  font-size: 9px;
}
.ed:not(.is-mobile) .ed-float-tools__shape {
  justify-content: center;
}
.ed:not(.is-mobile) .ed-float-tools__shape > .ed-float-tools__item {
  width: 100%;
}
.ed:not(.is-mobile) .ed-shape-pop {
  top: 0;
  left: calc(100% + 8px);
}
.ed:not(.is-mobile) .ed-float-tools__group--files {
  flex-direction: column;
  width: 100%;
  margin-top: 0;
  gap: 4px;
}
.ed:not(.is-mobile) .ed-float-tools__file {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 7px 3px 6px;
  gap: 4px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ed-muted, #6b635c);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.ed:not(.is-mobile) .ed-float-tools__file:hover {
  background: rgba(123, 40, 64, 0.08);
  color: var(--ed-primary, #7B2840);
}
.ed:not(.is-mobile) .ed-float-tools__file svg,
.ed:not(.is-mobile) .ed-float-tools__file .ed-btn__ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.ed:not(.is-mobile) .ed-float-tools__file span {
  display: block;
  max-width: 100%;
  word-break: keep-all;
}
.ed:not(.is-mobile) .ed-float-tools__divider--files {
  display: block;
  width: auto;
  height: 2px;
  margin: 8px 10px 8px;
  background: #c9bdb0;
  align-self: stretch;
  border: 0;
}
.ed:not(.is-mobile) .ed-topbar__actions [data-tut="mydesign"],
.ed:not(.is-mobile) .ed-topbar__actions [data-tut="data-import"],
.ed:not(.is-mobile) .ed-topbar__actions [data-ed-file-src="mydesign"],
.ed:not(.is-mobile) .ed-topbar__actions [data-ed-file-src="data-import"] {
  display: none !important;
}
.ed-topbar__actions [data-tut="preview-btn"] {
  display: none !important;
}
.ed:not(.is-mobile) .ed-float-tools__group--stack {
  flex-direction: column;
  width: 100%;
  margin-top: auto;
  gap: 6px;
}
.ed:not(.is-mobile) .ed-float-tools__paper {
  min-width: 0;
  width: 100%;
  padding: 6px 4px;
  align-items: center;
  text-align: center;
}
.ed:not(.is-mobile) .ed-float-tools__paper em { display: none; }
.ed:not(.is-mobile) .ed-float-tools__paper strong { font-size: 10px; word-break: break-all; }
.ed:not(.is-mobile) .ed-float-tools__bar .ed-tut-reopen,
.ed:not(.is-mobile) .ed-float-tools__bar .ed-corner-fab {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 8px 2px 6px;
  border: none;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--ed-muted);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  transform: none;
}
.ed:not(.is-mobile) .ed-float-tools__bar .ed-corner-fab--labi {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #e7dfd6;
  border-radius: 0 0 8px 8px;
}
.ed:not(.is-mobile) .ed-float-tools__bar .ed-tut-reopen:hover,
.ed:not(.is-mobile) .ed-float-tools__bar .ed-corner-fab:hover {
  background: var(--ed-primary-soft);
  color: var(--ed-primary);
  border-color: transparent;
  box-shadow: none;
  transform: none;
}
.ed:not(.is-mobile) .ed-float-tools__bar .ed-corner-fab--labi:hover {
  border-top-color: #e7dfd6;
}
.ed:not(.is-mobile) .ed-float-tools__bar .ed-tut-reopen .ed-float-tools__ico,
.ed:not(.is-mobile) .ed-float-tools__bar .ed-corner-fab .ed-float-tools__ico {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--ed-border);
  border-radius: 6px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ed:not(.is-mobile) .ed-float-tools__bar .ed-tut-reopen .ed-float-tools__ico {
  border-color: #E8D4DB;
  background: #F3E8EC;
  color: var(--burgundy);
}
.ed:not(.is-mobile) .ed-float-tools__bar .ed-corner-fab--labi img {
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: transparent;
}
.ed:not(.is-mobile) .ed-float-tools__bar .ed-corner-fab__ico {
  width: 14px;
  height: 14px;
  flex: none;
  background: transparent;
  padding: 0;
}
.ed-corner-fabs:empty,
.ed-corner-fabs:not(:has(.ed-corner-fab)) { display: none !important; }

.ed-props.is-dragging,
.ed-preview.is-dragging {
  box-shadow: 0 16px 48px rgba(123, 40, 64, 0.22);
  transition: none;
  z-index: 120;
}
.ed-props.is-snapping,
.ed-preview.is-snapping {
  transition: left 0.28s cubic-bezier(0.34, 1.2, 0.64, 1), top 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.ed-props__chrome {
  cursor: grab;
  user-select: none;
}
.ed-props.is-dragging .ed-props__chrome,
.ed-preview.is-dragging .ed-props__chrome {
  cursor: grabbing;
  outline: 2px dashed rgba(123, 40, 64, 0.25);
  outline-offset: -2px;
}
.ed-props.is-magnet-near .ed-props__chrome,
.ed-preview.is-magnet-near .ed-props__chrome {
  outline: 2px dashed rgba(123, 40, 64, 0.45);
  outline-offset: -2px;
  background: linear-gradient(180deg, #f8eef2 0%, #fff 100%);
}

.ed-corner-fabs {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 320;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.ed-corner-fab {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: 132px;
  height: 48px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}
.ed-corner-fab:hover {
  transform: translateY(-2px);
}
.ed-corner-fab--labi {
  background: linear-gradient(135deg, var(--burgundy-light) 0%, var(--burgundy-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(123, 40, 64, 0.4), 0 2px 8px rgba(46, 42, 39, 0.12);
}
.ed-corner-fab--labi:hover {
  box-shadow: 0 12px 36px rgba(123, 40, 64, 0.48), 0 4px 12px rgba(46, 42, 39, 0.14);
}
.ed-corner-fab--labi img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.ed-corner-fab--vendor {
  background: #fff;
  color: var(--burgundy);
  border: 1px solid #e8d4db;
  box-shadow: 0 8px 22px rgba(46, 42, 39, 0.14), 0 2px 6px rgba(123, 40, 64, 0.08);
}
.ed-corner-fab--vendor:hover {
  border-color: var(--burgundy);
  box-shadow: 0 12px 28px rgba(123, 40, 64, 0.18), 0 4px 10px rgba(46, 42, 39, 0.1);
}
.ed-corner-fab__ico {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: block;
}
.ed-corner-fab--vendor .ed-corner-fab__ico {
  padding: 3px;
  border-radius: 50%;
  background: var(--ed-primary-soft);
  box-sizing: border-box;
}

.ed-credit-chip {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 340;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 148px;
  height: 52px;
  padding: 0 16px 0 12px;
  border: 1px solid #e8d4db;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(46, 42, 39, 0.14), 0 2px 6px rgba(123, 40, 64, 0.08);
  color: var(--ed-text, #2e2a27);
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.ed-credit-chip:hover {
  border-color: var(--ed-primary, #7b2840);
  box-shadow: 0 14px 32px rgba(123, 40, 64, 0.18);
  transform: translateY(-1px);
}
.ed-credit-chip__ic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7b2840 0%, #5e1f30 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.ed-credit-chip__meta {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}
.ed-credit-chip__meta em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: var(--ed-muted, #8a7a7e);
}
.ed-credit-chip__meta strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--ed-primary, #7b2840);
}
.ed-credit-chip.is-guest .ed-credit-chip__meta strong {
  color: var(--ed-text, #2e2a27);
}
.ed-credit-modal {
  z-index: 420;
}
.ed-credit-modal__card {
  width: min(440px, 100%);
}
.ed-credit-list {
  display: grid;
  gap: 8px;
}
.ed-credit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--ed-border, #eee6e1);
  border-radius: 12px;
  background: #faf8f6;
}
.ed-credit-row strong {
  display: block;
  font-size: 13px;
}
.ed-credit-row span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--ed-muted, #8a7a7e);
}
.ed-credit-row b {
  white-space: nowrap;
  font-size: 13px;
}
.ed-credit-row b.is-plus { color: #176b3a; }
.ed-credit-row b.is-minus { color: #9b1c1c; }
.ed-credit-empty {
  margin: 8px 0 0;
  color: var(--ed-muted, #8a7a7e);
  font-size: 13px;
  line-height: 1.5;
}
.ed-credit-more {
  display: block;
  width: 100%;
  margin-top: 10px;
  height: 36px;
  border: 1px solid #e8d4db;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ed-primary, #7b2840);
  cursor: pointer;
}

.ed-import__tab-labi {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
}
.ed-import__ai-labi {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.ed-import__ai-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ed-import-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 350;
  width: auto !important;
  height: auto !important;
  background: rgba(46, 42, 39, 0.42);
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-sizing: border-box;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.ed-import-overlay.is-open {
  display: flex !important;
  align-items: stretch;
  justify-content: center;
  padding: 8px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.ed-import-dialog {
  --import-accent: var(--burgundy);
  --import-accent-soft: var(--accent-soft);
  --import-accent-deep: var(--burgundy-dark);
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(46, 42, 39, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(8px) scale(0.99);
  transition: transform 0.22s ease;
}
.ed-import-overlay.is-open .ed-import-dialog {
  transform: translateY(0) scale(1);
}

.ed-import__head {
  position: relative;
  padding: 16px 52px 14px 22px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.ed-import__head h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.ed-import__head p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}
.ed-import__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.ed-import__close:hover {
  border-color: #E8D4DB;
  color: var(--burgundy);
  background: var(--accent-soft);
}

.ed-import__tabs {
  display: flex;
  gap: 0;
  padding: 0 16px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
  background: #fff;
}
.ed-import__tab {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.ed-import__tab-icon { font-size: 16px; line-height: 1; flex-shrink: 0; }
.ed-import__tab:hover {
  color: var(--import-accent);
  background: var(--import-accent-soft);
}
.ed-import__tab.is-active {
  color: var(--import-accent);
  background: #fff;
  border-bottom-color: var(--import-accent);
}

.ed-import__panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.ed-import__cats {
  display: flex;
  gap: 8px;
  padding: 14px 20px 0;
  flex-shrink: 0;
}
.ed-import__cat {
  flex: 1;
  padding: 14px 12px;
  border-radius: 10px 10px 0 0;
  border: 1px solid #e2e8f0;
  border-bottom: none;
  background: #f8fafc;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}
.ed-import__cat em {
  font-style: normal;
  font-size: 12px;
  color: #94a3b8;
  margin-left: 6px;
}
.ed-import__cat.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--import-accent) 0%, var(--import-accent-deep) 100%);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(123, 40, 64, 0.28);
}
.ed-import__cat.is-active em { color: rgba(255, 255, 255, 0.88); }

.ed-import__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.ed-import__toolbar--simple { justify-content: flex-start; }
.ed-import__subtabs { display: flex; gap: 24px; }
.ed-import__subtab {
  border: none;
  background: none;
  padding: 0 0 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.ed-import__subtab.is-active {
  color: #0f172a;
  border-bottom-color: var(--import-accent);
}
.ed-import__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}
.ed-import__select {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  color: #475569;
  background: #fff;
  cursor: pointer;
}
.ed-import__select:hover { border-color: #E8D4DB; }
.ed-import__search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 220px;
  padding: 0 12px;
  height: 34px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #94a3b8;
  font-size: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ed-import__search:focus-within {
  border-color: var(--import-accent);
  box-shadow: 0 0 0 3px rgba(123, 40, 64, 0.12);
}
.ed-import__search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  color: #1e293b;
}
.ed-import__search--wide {
  width: calc(100% - 40px);
  max-width: none;
  min-width: 0;
  margin: 12px 20px 0;
}
.ed-import__search--grow { flex: 1; min-width: 0; max-width: 360px; }
.ed-import__searchbar { flex-shrink: 0; }
.ed-import__reset {
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  font-family: inherit;
}
.ed-import__reset:hover {
  border-color: #E8D4DB;
  color: var(--import-accent);
  background: var(--import-accent-soft);
}

.ed-import__scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 20px 24px;
  background: #fafbfc;
}
.ed-import__scroll--smart { background: transparent; }
.ed-import__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 16px;
}
.ed-import__empty {
  margin: 40px 0;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}
.ed-import__section-label {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ed-spec-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.ed-spec-card:hover {
  border-color: #E8D4DB;
  box-shadow: 0 8px 24px rgba(123, 40, 64, 0.14);
  transform: translateY(-2px);
}
.ed-spec-card__thumb {
  position: relative;
  aspect-ratio: 1.05;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ed-spec-card__thumb--sheet::before {
  content: '';
  position: absolute;
  inset: 10% 12%;
  border: 1px dashed #94a3b8;
  border-radius: 3px;
  background-image:
    linear-gradient(#e2e8f0 1px, transparent 1px),
    linear-gradient(90deg, #e2e8f0 1px, transparent 1px);
  background-size: 100% 22%, 33.33% 100%;
  opacity: 0.55;
}
.ed-spec-card__thumb--tag.ed-spec-card__thumb--sheet::before {
  background-image: repeating-linear-gradient(0deg, transparent, transparent 17px, #cbd5e1 17px, #cbd5e1 18px);
  background-size: auto;
  opacity: 0.65;
}
.ed-spec-card__thumb--heart::after { content: '♥'; font-size: 28px; color: #cbd5e1; position: relative; z-index: 1; opacity: 0.35; transform: scale(0.85); }
.ed-spec-card__thumb--star::after { content: '★'; font-size: 28px; color: #cbd5e1; position: relative; z-index: 1; opacity: 0.35; transform: scale(0.85); }
.ed-spec-card__thumb--clover::after { content: '✿'; font-size: 28px; color: #cbd5e1; position: relative; z-index: 1; opacity: 0.35; transform: scale(0.85); }
.ed-spec-card__thumb--speech::after { content: '◉'; font-size: 28px; color: #cbd5e1; position: relative; z-index: 1; opacity: 0.35; transform: scale(0.85); }
.ed-spec-card__thumb--bone::after { content: '⬭'; font-size: 28px; color: #cbd5e1; position: relative; z-index: 1; opacity: 0.35; transform: scale(0.85); }
.ed-spec-card__thumb--arrow::after { content: '➤'; font-size: 28px; color: #cbd5e1; position: relative; z-index: 1; opacity: 0.35; transform: scale(0.85); }
.ed-spec-card__thumb--cloud::after { content: '☁'; font-size: 28px; color: #cbd5e1; position: relative; z-index: 1; opacity: 0.35; transform: scale(0.85); }
.ed-spec-card__thumb--hex::after { content: '⬡'; font-size: 28px; color: #cbd5e1; position: relative; z-index: 1; opacity: 0.35; transform: scale(0.85); }
.ed-spec-card__thumb--rect::after {
  content: '';
  width: 52px;
  height: 18px;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  position: relative;
  z-index: 1;
  opacity: 0.35;
  transform: scale(0.85);
}
.ed-spec-card__thumb--circle::after {
  content: '';
  width: 36px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  opacity: 0.35;
  transform: scale(0.85);
}
.ed-spec-card__qty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 800;
  color: rgba(148, 163, 184, 0.32);
  z-index: 2;
  pointer-events: none;
}
.ed-spec-card__brand {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--import-accent);
  background: var(--import-accent-soft);
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid rgba(123, 40, 64, 0.15);
  z-index: 3;
}
.ed-spec-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #fff;
  font-size: 12px;
  color: #64748b;
}
.ed-spec-card__meta strong {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.ed-tpl-card {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform 0.18s;
}
.ed-tpl-card:hover { transform: translateY(-2px); }
.ed-tpl-card__thumb {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: box-shadow 0.15s;
}
.ed-tpl-card:hover .ed-tpl-card__thumb {
  box-shadow: 0 8px 24px rgba(123, 40, 64, 0.12);
  border-color: #E8D4DB;
}
.ed-tpl-card__preview {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-align: center;
  padding: 8px;
  line-height: 1.3;
}
.ed-tpl-card__title {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
  line-height: 1.35;
}
.ed-tpl-card__tags { font-size: 10px; color: #94a3b8; }

.ed-import__tagbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.ed-import__htag {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font: inherit;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
}
.ed-import__htag em { font-style: normal; color: #94a3b8; margin-left: 2px; }
.ed-import__htag.is-active {
  background: var(--import-accent);
  border-color: var(--import-accent);
  color: #fff;
}
.ed-import__htag.is-active em { color: rgba(255, 255, 255, 0.85); }

.ed-import__design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.ed-import__design-card {
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.ed-import__design-card:hover {
  border-color: #E8D4DB;
  box-shadow: 0 8px 24px rgba(123, 40, 64, 0.12);
  transform: translateY(-2px);
}
.ed-import__design-thumb {
  position: relative;
  aspect-ratio: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f1f5f9;
}
.ed-import__design-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--burgundy);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}
.ed-import__design-preview {
  font-size: 13px;
  font-weight: 800;
  color: rgba(30, 41, 59, 0.55);
}
.ed-import__design-meta {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ed-import__design-meta strong {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}
.ed-import__design-meta span { font-size: 11px; color: #64748b; }
.ed-import__design-meta em {
  font-size: 10px;
  color: #94a3b8;
  font-style: normal;
  margin-top: 2px;
}

.ed-import__panel--smart {
  background: linear-gradient(180deg, #faf5f7 0%, #fff 160px);
}
.ed-import__ai-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 8px 32px;
}
.ed-import__ai-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}
.ed-import__ai-sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: #64748b;
}
.ed-import__ai-input {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px 10px;
  box-shadow: 0 4px 16px rgba(46, 42, 39, 0.04);
}
.ed-import__ai-input textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: vertical;
  min-height: 88px;
  font: inherit;
  font-size: 14px;
  color: #1e293b;
  background: transparent;
}
.ed-import__ai-input-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 12px;
}
.ed-import__ai-send {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--burgundy-light), var(--burgundy-dark));
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}
.ed-import__ai-or {
  margin: 20px 0 14px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}
.ed-import__ai-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ed-import__ai-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ed-import__ai-card:hover {
  border-color: #E8D4DB;
  box-shadow: 0 8px 20px rgba(123, 40, 64, 0.1);
}
.ed-import__ai-card strong { font-size: 13px; color: #1e293b; }
.ed-import__ai-card small { font-size: 11px; color: #94a3b8; line-height: 1.4; }
.ed-import__ai-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.ed-import__ai-card-icon--green { background: #ecfdf5; }
.ed-import__ai-card-icon--purple { background: var(--accent-soft); color: var(--burgundy); font-weight: 800; }
.ed-import__ai-tip {
  margin: 18px 0 12px;
  font-size: 12px;
  color: #64748b;
}
.ed-import__ai-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ed-import__ai-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font: inherit;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
}
.ed-import__ai-chip:hover {
  border-color: #E8D4DB;
  color: var(--burgundy);
  background: var(--accent-soft);
}

.ed-import__format-list {
  display: grid;
  gap: 16px;
  max-width: 720px;
}
.ed-import__format-block {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}
.ed-import__format-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.ed-import__format-head strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
}
.ed-import__format-head span {
  display: block;
  font-size: 11px;
  color: #94a3b8;
}
.ed-import__format-tag {
  display: inline-block !important;
  margin: 2px 0;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--burgundy) !important;
  font-weight: 700;
  font-size: 10px !important;
}
.ed-import__format-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.ed-import__format-logo--ilabel { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.ed-import__format-logo--formtec { background: linear-gradient(135deg, var(--burgundy-light), var(--burgundy-dark)); }
.ed-import__dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 28px 16px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  position: relative;
  text-align: center;
}
.ed-import__dropzone:hover {
  border-color: var(--burgundy);
  background: var(--accent-soft);
}
.ed-import__dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.ed-import__drop-icon { font-size: 22px; margin-bottom: 4px; }
.ed-import__drop-title { font-size: 13px; font-weight: 700; color: #1e293b; }
.ed-import__drop-hint { font-size: 11px; color: #94a3b8; }
.ed-import__ext-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: #64748b;
}
.ed-import__ext-list b { color: #0f172a; }

.ed-vendor-report { max-height: min(86vh, 820px); }
.ed-vendor-report .ed-modal__body { display: grid; gap: 14px; }
.ed-vendor-report__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0;
}
.ed-vendor-report__grid dt {
  font-size: 10px;
  font-weight: 800;
  color: #a39c96;
  text-transform: uppercase;
}
.ed-vendor-report__grid dd { margin: 2px 0 0; font-size: 13px; font-weight: 700; color: var(--charcoal); }
.ed-vendor-report__muted { color: #94a3b8; font-weight: 600; }
.ed-vendor-report__block h4 { margin: 0 0 6px; font-size: 12px; }
.ed-vendor-report__block p, .ed-vendor-report__block ul { margin: 0; font-size: 12px; }
.ed-vendor-report__counts { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-vendor-report__counts span {
  background: #f7f4f1;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 800;
}
.ed-vendor-report__items {
  max-height: 220px;
  overflow: auto;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}
.ed-vendor-report__items em { color: #94a3b8; font-style: normal; margin-left: 6px; }
.ed-vendor-report__error { color: #b42318; font-weight: 800; }

.ed-btn--file {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.ed-btn--file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ed-float-tools__bar { flex-wrap: wrap; max-width: min(980px, calc(100vw - 48px)); }
.ed-float-tools__paper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  min-width: 124px;
  padding: 4px 10px;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--charcoal);
}
.ed-float-tools__paper:hover { border-color: #E8D4DB; background: var(--ed-primary-soft); }
.ed-float-tools__paper-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--burgundy);
}
.ed-float-tools__paper strong { font-size: 12px; }
.ed-float-tools__paper em { font-size: 9px; font-style: normal; color: var(--muted); }
.ed-float-tools__admin {
  border: 1px dashed #E8D4DB;
  background: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  color: var(--burgundy);
  cursor: pointer;
  max-width: 92px;
  line-height: 1.25;
}
.ed-float-tools__group--admin { gap: 4px; }
.ed-float-tools[data-ed-float-orient="vertical"] .ed-float-tools__paper {
  min-width: 0;
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
}
.ed-float-tools[data-ed-float-orient="vertical"] .ed-float-tools__group:has(.ed-float-tools__paper) {
  width: 100%;
  align-self: stretch;
}
.ed-float-tools__group--stack {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 6px;
}
.ed-float-tools__file {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.ed-float-tools__file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.ed-float-tools[data-ed-float-orient="vertical"] .ed-float-tools__group--stack {
  flex-direction: column;
}
.ed-theme-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ed-project-card__preview {
  display: grid;
  place-items: center;
  min-height: 128px;
  border-radius: 8px;
  margin-bottom: 8px;
  background:
    linear-gradient(45deg, #f4f1ee 25%, transparent 25%) 0 0 / 14px 14px,
    linear-gradient(-45deg, #f4f1ee 25%, transparent 25%) 0 0 / 14px 14px, #fff;
  color: #b8b0a6;
  font-weight: 800;
  overflow: hidden;
}
.ed-project-card__preview img {
  width: 100%;
  height: 128px;
  object-fit: contain;
  display: block;
}
.ed-theme-hero {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 12px 18px 0;
  padding: 14px;
  border: 1px solid var(--ed-border);
  border-radius: 14px;
  background: #fff;
}
.ed-theme-hero__stage {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 12px;
  border-radius: 12px;
  background:
    linear-gradient(45deg, #f4f1ee 25%, transparent 25%) 0 0 / 14px 14px,
    linear-gradient(-45deg, #f4f1ee 25%, transparent 25%) 0 0 / 14px 14px, #fff;
}
.ed-theme-hero__label {
  width: min(100%, 240px);
  aspect-ratio: var(--theme-ar, 7 / 4);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(46, 42, 39, 0.12);
  overflow: hidden;
}
.ed-theme-hero__label svg,
.ed-theme-card__preview svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ed-theme-hero__meta h4 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: var(--charcoal);
}
.ed-theme-hero__kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--burgundy);
}
.ed-theme-hero__meta p { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.ed-theme-hero__desc { line-height: 1.45; }
.ed-theme-hero__meta .ed-btn { margin-top: 8px; }
.ed-theme-card__preview {
  display: grid;
  place-items: center;
  min-height: 118px;
  height: 118px;
  border-radius: 8px;
  margin-bottom: 8px;
  background:
    linear-gradient(45deg, #f4f1ee 25%, transparent 25%) 0 0 / 12px 12px,
    linear-gradient(-45deg, #f4f1ee 25%, transparent 25%) 0 0 / 12px 12px, #fff;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.2px;
  text-align: center;
  padding: 8px;
  overflow: hidden;
}
.ed-theme-card__fallback,
.ed-theme-card__preview > span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--tpl-tone, #7B2840);
}
.ed-theme-card .ed-paper-card__meta strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 800;
}
@media (max-width: 720px) {
  .ed-theme-hero { grid-template-columns: 1fr; }
}
.ed-float-tools__group--admin,
.ed-float-tools__admin,
.ed-float-tools__divider:has(+ .ed-float-tools__group--admin) {
  display: none !important;
}

.ed-props__hint { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.45; }
.ed-layer-item em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--muted); }

.ed-preview__actions {
  display: flex;
  flex-direction: row;
  gap: 6px;
  padding: 8px 12px 0;
}
.ed-preview__apply,
.ed-preview__add {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--ed-border);
  background: #fff;
  border-radius: 8px;
  padding: 7px 6px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  color: var(--burgundy);
  cursor: pointer;
  white-space: nowrap;
}
.ed-preview__add { margin-left: 6px; }

.ed-data-panel {
  position: relative;
  z-index: 6;
  margin: 0 12px 52px 12px;
  background: #fff;
  border: 1px solid var(--ed-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(46, 42, 39, 0.08);
}
.ed-data-panel__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--ed-border);
  font-size: 11px;
}
.ed-data-panel__bar strong { color: var(--burgundy); }
.ed-data-panel__bar span { color: var(--muted); flex: 1; }
.ed-data-panel__table-wrap { overflow: auto; max-height: 52px; }
.ed-data-panel.is-expanded .ed-data-panel__table-wrap { max-height: 180px; }
.ed-data-panel__pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 6px 10px 8px;
  font-size: 11px;
  font-weight: 700;
}
.ed-data-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.ed-data-table th, .ed-data-table td { border: 1px solid var(--ed-border); padding: 4px 6px; }
.ed-data-table th { background: #faf8f6; }
.ed-data-table input { width: 100%; border: none; font: inherit; padding: 4px; }
.ed-data-table--panel td { cursor: grab; background: #fff; }
.ed-data-table--panel td:hover { background: var(--ed-primary-soft); }

.ed-convert { z-index: 260; }
.ed-convert__card { pointer-events: none; }
.ed-convert__body {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}
.ed-convert__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #ead7de;
  border-top-color: #7b2840;
  border-radius: 50%;
  animation: ed-convert-spin 0.8s linear infinite;
}
@keyframes ed-convert-spin { to { transform: rotate(360deg); } }
.ed-convert__detail {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--charcoal);
  word-break: break-word;
}
.ed-convert__bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #f0e7ea;
  overflow: hidden;
}
.ed-convert__bar i {
  display: block;
  height: 100%;
  background: #7b2840;
  border-radius: inherit;
  transition: width 0.2s ease;
}
.ed-convert__pct {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #7b2840;
}
.ed-convert__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.ed-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(46, 42, 39, 0.38);
  display: grid;
  place-items: center;
  padding: 24px;
}
.ed-modal__card {
  width: min(720px, 100%);
  max-height: min(88vh, 860px);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--ed-border);
  box-shadow: 0 24px 60px rgba(46, 42, 39, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ed-modal__card--wide { width: min(980px, 100%); }
.ed-modal__card--papers { width: min(1080px, 100%); max-height: min(90vh, 920px); }
.ed-modal__card--confirm { width: min(440px, 100%); max-height: none; }
.ed-error-dialog__msg {
  margin: 0;
  color: #7b2840;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}
.ed-crash {
  margin: 48px auto;
  max-width: 420px;
  padding: 24px;
  border: 1px solid #E8D4DB;
  border-radius: 12px;
  background: #fff;
  color: #2E2A27;
}
.ed-crash h3 { margin: 0 0 8px; font-size: 16px; }
.ed-crash p { margin: 0 0 10px; line-height: 1.5; }
.ed-crash__hint { color: #6B6560; font-size: 12px; }
.ed-modal__card--form { width: min(860px, 100%); }
.ed-modal__card--print {
  width: min(1080px, calc(100vw - 48px));
  max-height: min(92vh, 960px);
}
.ed-modal__card--print .ed-modal__body {
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
.ed-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--ed-border);
}
.ed-modal__head-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.ed-modal__head-labi {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
  display: block;
}
.ed-modal__head-copy { min-width: 0; }
.ed-modal__head h3 { margin: 0 0 4px; font-size: 16px; }
.ed-modal__head p { margin: 0; color: var(--muted); font-size: 12px; }
.ed-modal__close {
  width: 32px; height: 32px; border: none; background: #f4f1ee; border-radius: 8px; cursor: pointer; font-size: 18px;
}
.ed-modal__body { padding: 14px 18px; overflow: auto; min-height: 0; }
.ed-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--ed-border);
}
.ed-paper-tabs {
  display: flex;
  gap: 0;
  padding: 0 18px;
  border-bottom: 1px solid var(--ed-border);
  background: #fff;
  flex-shrink: 0;
}
.ed-paper-tab {
  min-width: 88px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  color: #8a7380;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.ed-paper-tab:hover { color: var(--burgundy); background: #f8eef2; }
.ed-paper-tab.is-active {
  color: var(--burgundy);
  border-bottom-color: var(--burgundy);
}
.ed-paper-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px 18px 0}
.ed-paper-search{flex:2 1 220px;height:36px;border:1px solid var(--ed-border);border-radius:10px;padding:0 12px;font:inherit}
.ed-paper-select{height:36px;border:1px solid var(--ed-border);border-radius:10px;padding:0 10px;font:inherit;min-width:140px;background:#fff}
.ed-paper-count{margin-left:auto;font-size:12px;font-weight:700;color:var(--muted);white-space:nowrap}
.ed-paper-empty{grid-column:1/-1;margin:24px 0;text-align:center;color:var(--muted);font-size:13px}
.ed-paper-compat{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}
.ed-paper-compat__chip{display:inline-flex;align-items:center;padding:2px 7px;border-radius:999px;background:#f3e8ec;color:#7b2840;font-size:10px;font-weight:800}
.ed-paper-compat__chip.is-empty{background:#f3f4f8;color:#9ca3af;font-weight:700}
.ed-paper-card__preview img{max-width:100%;max-height:120px;object-fit:contain}
.ed-paper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ed-paper-card {
  border: 1px solid var(--ed-border);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  padding: 10px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.ed-paper-card.is-active, .ed-paper-card:hover { border-color: var(--burgundy); box-shadow: 0 0 0 2px rgba(123, 40, 64, 0.12); }
.ed-paper-card__preview { background: #f7f4f1; border-radius: 8px; padding: 8px; display: grid; place-items: center; min-height: 140px; }
.ed-paper-card__meta strong { display: block; }
.ed-paper-card__meta span { color: var(--muted); font-size: 12px; }
.ed-paper-card__meta ul { margin: 8px 0 0; padding-left: 16px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.ed-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.ed-form-grid label { display: grid; gap: 4px; font-size: 11px; font-weight: 700; color: var(--muted); }
.ed-form-grid input, .ed-form-grid select, .ed-form-grid textarea {
  border: 1px solid var(--ed-border); border-radius: 8px; padding: 7px 8px; font: inherit; color: var(--charcoal);
}
.ed-form-grid__full { grid-column: 1 / -1; }
.ed-paper-maker__preview { margin-top: 12px; background: #f7f4f1; border-radius: 10px; padding: 12px; display: grid; place-items: center; }
.ed-map-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ed-map-table th, .ed-map-table td { border-bottom: 1px solid var(--ed-border); padding: 6px; }
.ed-map-table input, .ed-map-table select { width: 100%; border: 1px solid var(--ed-border); border-radius: 6px; padding: 6px; font: inherit; }
.ed-shape-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.ed-shape-card {
  border: 1px solid var(--ed-border); border-radius: 10px; background: #fff; padding: 10px 6px; cursor: pointer;
  display: grid; place-items: center; gap: 6px; font: inherit; font-size: 11px; font-weight: 700;
}
.ed-shape-card:hover { background: var(--ed-primary-soft); }
.ed-print {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
  flex: 1;
  min-height: 0;
  width: 100%;
  align-items: stretch;
}
.ed-print__preview {
  background: #ece7e1;
  border-radius: 10px;
  padding: 12px;
  overflow: hidden;
  min-height: 0;
  display: grid;
  place-items: center;
  container-type: size;
}
.ed-print__sheet {
  position: relative;
  width: min(100cqw, calc(100cqh * var(--page-w, 210) / var(--page-h, 297)));
  aspect-ratio: var(--page-ar, 210 / 297);
  height: auto;
  max-width: 100%;
  max-height: 100%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.ed-print__sheet img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
}
.ed-print__controls { display: grid; gap: 10px; align-content: start; }
.ed-print__pad { display: grid; grid-template-columns: 36px 1fr 36px; gap: 6px; justify-items: center; }
.ed-print__pad button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--ed-border); background: #fff; cursor: pointer; }
.ed-print__xy { font-weight: 800; font-size: 12px; }
.ed-print__dirs { display: grid; gap: 6px; }
.ed-data-scroll { max-height: 58vh; overflow: auto; }

.ed-ctx {
  position: absolute;
  z-index: 240;
  min-width: 168px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--ed-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(46, 42, 39, 0.16);
}
.ed-ctx button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  cursor: pointer;
}
.ed-ctx button:hover:not(:disabled) { background: var(--ed-primary-soft); }
.ed-ctx button:disabled { opacity: 0.38; cursor: default; }
.ed-ctx__cap {
  padding: 4px 10px 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ed-muted);
}
.ed-ctx__sep {
  height: 1px;
  margin: 4px 6px;
  background: var(--ed-border);
}
.ed-ctx__row {
  display: grid;
  grid-template-columns: 1fr 32px auto;
  gap: 6px;
  align-items: center;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--charcoal);
}
.ed-ctx__row input[type="color"] {
  width: 32px;
  height: 24px;
  padding: 1px;
  border: 1px solid var(--ed-border);
  border-radius: 6px;
  background: #fff;
}
.ed-ctx__row input[type="number"] {
  width: 64px;
  grid-column: 2 / -1;
  border: 1px solid var(--ed-border);
  border-radius: 6px;
  padding: 4px 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.ed-ctx__clear {
  padding: 4px 6px !important;
  font-size: 11px !important;
  width: auto !important;
}

.ed-float-tools__shape {
  position: relative;
  display: flex;
  align-items: stretch;
}
.ed-float-tools__shape > .ed-float-tools__item {
  height: 100%;
}
.ed-shape-pop-backdrop {
  position: fixed;
  inset: 0;
  z-index: 118;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: default;
}
.ed-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.ed-clip-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 18px 0;
}
.ed-clip-tabs__btn {
  flex: 1;
  height: 32px;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  color: var(--ed-muted);
  cursor: pointer;
}
.ed-clip-tabs__btn.is-active {
  background: var(--ed-primary-soft);
  color: var(--ed-primary);
  border-color: #E8D4DB;
}
.ed-clip-upload { margin-bottom: 10px; }
.ed-shape-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.ed-print__nudge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}
.ed-print__nudge input {
  width: 56px;
  border: 1px solid var(--ed-border);
  border-radius: 6px;
  padding: 4px 6px;
  font: inherit;
  text-align: center;
}
.ed-shape-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 120;
  min-width: 168px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--ed-border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(46, 42, 39, 0.14);
}
.ed-shape-pop__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  padding: 7px 8px;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--charcoal);
  cursor: pointer;
}
.ed-shape-pop__item:hover { background: var(--ed-primary-soft); }
.ed-shape-pop__item span { width: 18px; text-align: center; }
.ed-float-tools[data-ed-float-orient="vertical"] .ed-shape-pop {
  top: 0;
  left: calc(100% + 8px);
}

.ed-data-restore {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--ed-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(46, 42, 39, 0.14);
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.ed-data-restore strong { font-size: 13px; }
.ed-data-restore span { font-size: 11px; color: var(--muted); }

@media (max-width: 1100px) {
  .ed-import__ai-cards { grid-template-columns: 1fr; }
  .ed-import__tab { font-size: 12px; padding: 12px 4px; }
}
@media (max-width: 1280px) {
  html:not(.lu-right-stack) .ed-preview { display: none; }
}
@media (max-width: 1100px) {
  .ed-import__ai-cards { grid-template-columns: 1fr; }
  .ed-import__tab { font-size: 12px; padding: 12px 4px; }
}

/* —— Save auth gate —— */
.lu-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.lu-auth-gate.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lu-auth-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 18, 24, .55);
  backdrop-filter: blur(8px);
}
.lu-auth-gate__card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: linear-gradient(180deg, #fff 0%, #fbf6f8 100%);
  border-radius: 22px;
  border: 1px solid #eadfe4;
  box-shadow: 0 28px 70px rgba(70, 24, 40, .28);
  padding: 28px 24px 20px;
  transform: translateY(10px) scale(.98);
  transition: transform .22s ease;
}
.lu-auth-gate.is-open .lu-auth-gate__card { transform: none; }
.lu-auth-gate__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f4eef1;
  color: #6a4a56;
  font-size: 20px;
  cursor: pointer;
}
.lu-auth-gate__hero {
  width: 84px;
  height: 84px;
  margin: 0 auto 12px;
  border-radius: 24px;
  background: radial-gradient(circle at 30% 25%, #fff, #f3e4ea);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px #edd8e0;
}
.lu-auth-gate__hero img { width: 64px; height: 64px; object-fit: contain; }
.lu-auth-gate__card h3 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 20px;
  letter-spacing: -.3px;
  color: #3a1f2a;
}
.lu-auth-gate__lead {
  margin: 0 0 14px;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  color: #6d5560;
}
.lu-auth-gate__points {
  margin: 0 0 16px;
  padding: 12px 14px;
  list-style: none;
  border-radius: 14px;
  background: rgba(123, 40, 64, .06);
  display: grid;
  gap: 8px;
}
.lu-auth-gate__points li {
  position: relative;
  padding-left: 18px;
  font-size: 12.5px;
  font-weight: 700;
  color: #5a3a46;
}
.lu-auth-gate__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7B2840;
}
.lu-auth-gate__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px;
  border-radius: 12px;
  background: #f3ecef;
}
.lu-auth-gate__tabs button {
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  color: #7a6470;
  cursor: pointer;
}
.lu-auth-gate__tabs button.is-active {
  background: #fff;
  color: #7B2840;
  box-shadow: 0 2px 8px rgba(70, 24, 40, .08);
}
.lu-auth-gate__form { display: grid; gap: 10px; }
.lu-auth-gate__form label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #5c4650;
}
.lu-auth-gate__form input {
  height: 42px;
  border: 1px solid #e6d8de;
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
  background: #fff;
}
.lu-auth-gate__form input:focus {
  outline: none;
  border-color: #d4a7b6;
  box-shadow: 0 0 0 3px rgba(123, 40, 64, .12);
}
.lu-auth-gate__error {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #b42318;
}
.lu-auth-gate__submit {
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #7B2840, #9a3a55);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(123, 40, 64, .28);
}
.lu-auth-gate__submit:disabled { opacity: .6; cursor: wait; }
.lu-auth-gate__foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.45;
  color: #8a7380;
}

.ed-btn--labi {
  background: linear-gradient(180deg, #fff, #faf6f8);
  border-color: #e8d4db;
  color: var(--burgundy);
  font-weight: 800;
}
.ed-btn--labi img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.ed-btn--labi:hover {
  background: #f3e8ec;
  border-color: var(--burgundy);
}
.ed-btn--vendor {
  background: linear-gradient(180deg, #fff, #f7f5f2);
  border-color: #e4ddd4;
  color: #5a4e46;
  font-weight: 800;
}
.ed-btn--vendor:hover {
  background: #f3eee8;
  border-color: var(--burgundy);
  color: var(--burgundy);
}

.ed-modal__card--labi {
  width: min(920px, 100%);
  max-height: min(92vh, 980px);
}
.ed-labi-modal { z-index: 320; }
.ed-vendor-picker-modal { z-index: 321; }
.ed-modal__card--labi.ed-vendor-picker {
  width: min(640px, 100%);
  max-height: min(80vh, 680px);
}
.ed-vendor-picker .ed-vendor-picker__panel {
  gap: 16px;
}
.ed-vendor-picker__drop {
  min-height: 220px;
  justify-content: center;
  border-style: dashed;
  background: linear-gradient(180deg, #fff, #fbf8f9);
}
.ed-vendor-picker__exts {
  margin-top: 0;
  justify-content: center;
}
.ed-vendor-picker__note {
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: #8b8fa0;
}
.ed-labi {
  --accent: var(--burgundy);
  --accent-2: var(--burgundy-dark);
  --accent-soft: #F3E8EC;
  --accent-soft-2: #E8D4DB;
  --accent-glow: rgba(123, 40, 64, .10);
  --accent-shadow: rgba(123, 40, 64, .22);
}
.ed-labi__body {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.ed-labi .prompt {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: 1;
  width: 100%;
  margin: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.94));
  border: 0;
  border-radius: 0;
  padding: 16px 20px 16px;
  box-shadow: none;
  backdrop-filter: none;
}
.ed-labi .prompt:focus-within {
  border-color: transparent;
  box-shadow: none;
}
.ed-labi .prompt-head,
.ed-labi .prompt-badge {
  display: none !important;
}
.ed-labi .prompt-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ed-labi .prompt-title-labi {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: contain;
  display: block;
}
.ed-labi .prompt-title__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ed-labi .prompt-title b { font-size: 15px; font-weight: 900; letter-spacing: -.3px; color: #1c1e2b; }
.ed-labi .prompt-title span { font-size: 12px; color: #7a7e90; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-labi .prompt-badge {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 6px 14px var(--accent-shadow);
}
.ed-labi .prompt-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding: 14px 14px 12px;
  border: 1.5px solid #e8e7f2;
  border-radius: 20px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.ed-labi .prompt:focus-within .prompt-row {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.ed-labi .prompt-composer { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
.ed-labi .prompt-tools { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; align-items: center; }
.ed-labi .prompt-tool-btn {
  width: 40px; height: 40px; border: 1px solid #e8e7f2; border-radius: 12px;
  background: #fff; color: #646779; display: grid; place-items: center; cursor: pointer;
}
.ed-labi .prompt-tool-btn:hover { background: var(--accent-soft); border-color: var(--accent-soft-2); color: var(--accent); }
.ed-labi .spark {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(145deg, var(--accent-soft), #fff);
  color: var(--accent); display: grid; place-items: center; font-size: 22px;
  flex: 0 0 48px; border: 1px solid var(--accent-soft-2);
}
.ed-labi .prompt-input { flex: 1; min-width: 0; }
.ed-labi .prompt textarea {
  width: 100%; min-height: 52px; max-height: 120px; resize: none; border: 0; outline: 0;
  background: transparent; font-size: 16px; line-height: 1.55; color: #1c1e2b; padding: 8px 0; font-weight: 500;
}
.ed-labi .prompt textarea::placeholder { color: #9799a8; font-weight: 400; }
.ed-labi .prompt-helper { display: block; margin-top: 2px; font-size: 12px; line-height: 1.45; color: #8b8fa0; }
.ed-labi .prompt-actions {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  overflow-x: auto; scrollbar-width: none; flex: 0 0 auto;
}
.ed-labi .prompt-actions::-webkit-scrollbar { display: none; }
.ed-labi .chip {
  flex: 0 0 auto; height: 34px; border: 1px solid #ebeaf3; border-radius: 17px;
  background: #fff; padding: 0 14px; color: #4e5163; font-size: 12px; font-weight: 600;
}
.ed-labi .chip:hover { border-color: var(--accent-soft-2); background: var(--accent-soft); }
.ed-labi .chip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 800; }
.ed-labi .send {
  width: 52px; height: 52px; border: 0; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 20px; box-shadow: 0 10px 22px var(--accent-shadow); flex: 0 0 52px;
}
.ed-labi .send:disabled { opacity: .35; box-shadow: none; }
.ed-labi .send:not(:disabled):hover { filter: brightness(1.05); transform: translateY(-1px); }
.ed-labi .ai-attach-preview { display: flex; flex-wrap: wrap; gap: 10px; padding: 2px 2px 4px; }
.ed-labi .ai-attach-chip {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 76px; padding: 0; border: 0; background: transparent; font-size: 11px; color: #4e5163;
}
.ed-labi .ai-attach-tile {
  position: relative; width: 72px; height: 72px; border-radius: 16px; overflow: hidden;
  border: 1px solid #e7e5ee; background: linear-gradient(165deg, #f7f5fa, #fff);
  box-shadow: 0 6px 16px rgba(28,24,48,.08); display: grid; place-items: center;
}
.ed-labi .ai-attach-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-labi .ai-attach-glyph { font-size: 13px; font-weight: 900; letter-spacing: -.3px; color: #5b6070; }
.ed-labi .ai-attach-badge {
  position: absolute; left: 6px; bottom: 6px; z-index: 1; height: 18px; padding: 0 6px; border-radius: 7px;
  background: rgba(28,30,43,.82); color: #fff; font-style: normal; font-size: 9px; font-weight: 800;
  letter-spacing: .02em; display: inline-flex; align-items: center; backdrop-filter: blur(6px);
}
.ed-labi .ai-attach-name {
  display: block; width: 100%; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-align: center; font-size: 10px; font-weight: 700; color: #5b6070; line-height: 1.3;
}
.ed-labi .ai-attach-remove {
  position: absolute; right: -4px; top: -4px; z-index: 2; width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: #fff; color: #5b6070; font-size: 15px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.14);
}
.ed-labi .ai-attach-chip--image .ai-attach-tile { border-color: #f0d9e2; }
.ed-labi .ai-attach-chip--sheet .ai-attach-tile { background: linear-gradient(165deg, #e8f6ee, #fff); border-color: #cfe8d8; }
.ed-labi .ai-attach-chip--sheet .ai-attach-glyph { color: #1f7a45; }
.ed-labi .ai-attach-chip--sheet .ai-attach-badge { background: #1f7a45; }
.ed-labi .ai-attach-chip--doc .ai-attach-tile { background: linear-gradient(165deg, #eaf0fb, #fff); border-color: #cfdcf3; }
.ed-labi .ai-attach-chip--doc .ai-attach-glyph { color: #2f5fbf; }
.ed-labi .ai-attach-chip--doc .ai-attach-badge { background: #2f5fbf; }
.ed-labi .ai-attach-chip--vendor .ai-attach-tile { background: linear-gradient(165deg, #f4eef8, #fff); border-color: #e0d2ec; }
.ed-labi .ai-attach-chip--vendor .ai-attach-glyph { color: #7B2840; }
.ed-labi .ai-attach-chip--vendor .ai-attach-badge { background: #7B2840; }
.ed-labi .ai-attach-chip--file .ai-attach-tile { background: linear-gradient(165deg, #f3f1f5, #fff); }
.ed-labi .prompt.is-chat-active { padding-top: 16px; }
.ed-labi .prompt.is-vendor-drop {
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
  box-shadow: 0 22px 60px rgba(123, 40, 64, .18);
}
.ed-labi .prompt.is-vendor-drop::after {
  content: "이미지·엑셀·워드·타사포맷 파일을 여기에 놓으세요";
  display: block;
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}
.ed-labi .ai-choice-btn:hover {
  border-color: var(--accent-soft-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(40, 36, 70, .08);
}
.ed-labi .ai-choice-btn:disabled {
  opacity: .72;
  cursor: default;
  transform: none;
}
.ed-labi-modal[hidden] {
  display: none !important;
}
.ed-import__ai-open-labi {
  width: 100%;
  margin: 4px 0 8px;
  height: 44px;
  font-weight: 800;
}
.ed-labi .ai-vendor-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #ebeaf1;
  border-radius: 16px;
  background: #fff;
}
.ed-labi .ai-chat-log {
  flex: 1 1 auto;
  min-height: 180px;
  max-height: min(420px, 46vh);
  overflow-y: auto;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #ececf2;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfcff, #fff);
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
}
.ed-labi .ai-chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.ed-labi .ai-chat-msg--user { flex-direction: row-reverse; }
.ed-labi .ai-chat-avatar {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
  background: var(--accent-soft); color: var(--accent); overflow: hidden;
}
.ed-labi .ai-chat-msg--assistant .ai-chat-avatar {
  background: linear-gradient(145deg, var(--accent-soft), #fff);
  border: 1px solid var(--accent-soft-2); color: var(--accent);
}
.ed-labi .ai-chat-avatar--labi { padding: 3px; }
.ed-labi .ai-chat-avatar--labi img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ed-labi .ai-chat-msg--user .ai-chat-avatar {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
}
.ed-labi .ai-chat-body { max-width: min(86%, 620px); min-width: 0; }
.ed-labi .ai-chat-bubble {
  padding: 11px 13px; border-radius: 16px; font-size: 14px; line-height: 1.62; color: #2a2d3a; word-break: break-word;
}
.ed-labi .ai-chat-msg--user .ai-chat-bubble {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-bottom-right-radius: 6px;
}
.ed-labi .ai-chat-msg--assistant .ai-chat-bubble {
  background: #f4f6fb; border: 1px solid #ececf2; border-bottom-left-radius: 6px;
}
.ed-labi .ai-chat-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #1f2430;
  border: 1px solid rgba(255,255,255,.08);
  color: #c9ced9;
  font-size: 11px;
  line-height: 1.35;
}
.ed-labi .ai-chat-meta__head {
  font-weight: 800;
  color: #f0d7df;
  margin-right: 2px;
}
.ed-labi .ai-chat-meta__sep { margin: 0 5px; opacity: .4; }
.ed-labi .ai-chat-meta__cost { font-weight: 800; color: #ffd7e2; }
.ed-labi .ai-chat-media { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ed-labi .ai-chat-media img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; border: 1px solid #ececf2; }
.ed-labi .ai-chat-file-tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  background: #fff; border: 1px solid #e8e7f2; font-size: 11px; color: #5b6070;
}
.ed-labi .ai-typing { display: inline-flex; gap: 4px; align-items: center; padding: 2px 0; }
.ed-labi .ai-typing i { width: 6px; height: 6px; border-radius: 50%; background: #b6bac8; animation: aiTyping 1.2s infinite ease-in-out; }
.ed-labi .ai-typing i:nth-child(2) { animation-delay: .15s; }
.ed-labi .ai-typing i:nth-child(3) { animation-delay: .3s; }
.ed-labi .ai-typing-hint { margin-left: 8px; font-size: 12px; color: #8b8fa0; font-weight: 600; }
@keyframes aiTyping { 0%,80%,100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }

.ed-labi .ai-draw-stage {
  display: grid; grid-template-columns: 118px 1fr; gap: 14px; align-items: center;
  padding: 12px; border: 1px solid #ebeaf1; border-radius: 20px;
  background: radial-gradient(140px 90px at 8% 0%, var(--accent-soft), transparent 68%),
    linear-gradient(165deg, #fff 0%, #fbf9fc 100%);
  box-shadow: 0 10px 28px rgba(40,36,70,.07); overflow: hidden;
}
.ed-labi .ai-draw-canvas {
  position: relative; width: 118px; height: 118px; border-radius: 22px;
  background: linear-gradient(145deg, #fff, #f6f2f4 55%, #fff);
  box-shadow: inset 0 0 0 1px rgba(123,40,64,.1); overflow: hidden;
}
.ed-labi .ai-draw-glow { position: absolute; inset: -20%; background: conic-gradient(from 0deg, transparent, var(--accent-soft), transparent 40%); animation: aiDrawSpin 4.5s linear infinite; opacity: .7; }
.ed-labi .ai-draw-ring { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; border: 2px dashed rgba(123,40,64,.28); animation: aiDrawSpin 8s linear infinite reverse; }
.ed-labi .ai-draw-shape { position: absolute; border-radius: 50%; opacity: .85; }
.ed-labi .ai-draw-shape--a { left: 28px; top: 30px; width: 42px; height: 42px; background: radial-gradient(circle at 35% 30%, #fff, var(--accent-soft) 55%, var(--accent-soft-2)); animation: aiDrawPulse 2.4s ease-in-out infinite; }
.ed-labi .ai-draw-shape--b { right: 22px; top: 24px; width: 18px; height: 18px; background: var(--accent); border-radius: 6px; transform: rotate(18deg); animation: aiDrawFloat 2.8s ease-in-out infinite; }
.ed-labi .ai-draw-shape--c { left: 24px; bottom: 22px; width: 26px; height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); animation: aiDrawFloat 3.2s ease-in-out infinite reverse; }
.ed-labi .ai-draw-spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); opacity: 0; animation: aiDrawSpark 2.6s ease-in-out infinite; }
.ed-labi .ai-draw-spark.s1 { left: 18px; top: 18px; animation-delay: .2s; }
.ed-labi .ai-draw-spark.s2 { right: 16px; top: 40px; animation-delay: 1s; }
.ed-labi .ai-draw-spark.s3 { left: 48px; bottom: 16px; animation-delay: 1.7s; }
.ed-labi .ai-draw-brush { position: absolute; right: 14px; bottom: 18px; width: 34px; height: 34px; display: grid; place-items: center; animation: aiDrawBrush 1.6s ease-in-out infinite; }
.ed-labi .ai-draw-brush i { display: block; width: 18px; height: 18px; border-radius: 4px 12px 4px 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 2px 3px 0 rgba(123,40,64,.18); transform: rotate(-28deg); }
.ed-labi .ai-draw-stroke { position: absolute; left: 22px; right: 22px; bottom: 28px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--accent), transparent); transform-origin: left center; animation: aiDrawStroke 1.6s ease-in-out infinite; }
.ed-labi .ai-draw-copy { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ed-labi .ai-draw-badge { display: inline-flex; align-self: flex-start; height: 22px; padding: 0 9px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; align-items: center; }
.ed-labi .ai-draw-title { font-size: 14px; font-weight: 900; color: #1c1e2b; letter-spacing: -.3px; line-height: 1.35; }
.ed-labi .ai-draw-status { margin: 0; font-size: 12px; line-height: 1.45; color: #7a7e90; font-weight: 600; min-height: 1.45em; }
.ed-labi .ai-draw-bar { height: 5px; border-radius: 999px; background: #efeef4; overflow: hidden; margin-top: 6px; }
.ed-labi .ai-draw-bar span { display: block; height: 100%; width: 38%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-soft-2), var(--accent), var(--accent-2)); animation: aiDrawBar 1.8s ease-in-out infinite; }
@keyframes aiDrawSpin { to { transform: rotate(360deg); } }
@keyframes aiDrawPulse { 0%,100% { transform: scale(.92); opacity: .7; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes aiDrawFloat { 0%,100% { transform: translateY(0) rotate(18deg); } 50% { transform: translateY(-7px) rotate(28deg); } }
@keyframes aiDrawSpark { 0%,100% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; transform: scale(1); } 70% { opacity: .2; } }
@keyframes aiDrawBrush { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(-10px,-8px) rotate(-12deg); } }
@keyframes aiDrawStroke { 0% { transform: scaleX(.15); opacity: .2; } 45% { transform: scaleX(1); opacity: .9; } 100% { transform: scaleX(.2); opacity: .25; } }
@keyframes aiDrawBar { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

.ed-labi .ai-rec-card,
.ed-labi .ai-clip-card {
  display: grid; grid-template-columns: 108px 1fr; gap: 12px; margin-top: 10px; padding: 10px;
  border: 1px solid #ebeaf1; border-radius: 18px;
  background: linear-gradient(160deg, #fff 0%, #faf8fb 100%);
  box-shadow: 0 8px 22px rgba(40,36,70,.06);
}
.ed-labi .ai-clip-card { grid-template-columns: 120px 1fr; }
.ed-labi .ai-rec-media { border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: #f3f1f4; cursor: zoom-in; aspect-ratio: 3/4; display: block; }
.ed-labi .ai-rec-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-labi .ai-rec-body, .ed-labi .ai-clip-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ed-labi .ai-rec-badge, .ed-labi .ai-clip-badge {
  display: inline-flex; align-items: center; align-self: flex-start; height: 22px; padding: 0 8px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 800;
}
.ed-labi .ai-rec-name, .ed-labi .ai-clip-body strong { font-size: 14px; font-weight: 800; color: #1c1e2b; letter-spacing: -.3px; }
.ed-labi .ai-rec-spec, .ed-labi .ai-clip-body > span:last-of-type { font-size: 11px; color: #7a7e90; }
.ed-labi .ai-rec-price { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.ed-labi .ai-rec-price del { font-size: 11px; color: #a0a4b3; }
.ed-labi .ai-rec-price em { font-style: normal; font-size: 15px; font-weight: 900; color: var(--accent); }
.ed-labi .ai-rec-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; }
.ed-labi .ai-rec-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 12px;
  border-radius: 10px; font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.ed-labi .ai-rec-btn--ghost { background: #fff; border-color: #e6e5ee; color: #4e5163; }
.ed-labi .ai-rec-btn--edit { background: #fff; border-color: var(--accent-soft-2); color: var(--accent); }
.ed-labi .ai-rec-btn--solid { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 14px var(--accent-shadow); }
.ed-labi .ai-clip-media {
  position: relative; border: 0; padding: 0; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #fff, #f5f2f4); cursor: zoom-in; aspect-ratio: 1;
}
.ed-labi .ai-clip-media img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 8px; }
.ed-labi .ai-choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ed-labi .ai-choice-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 12px; border: 1px solid #ebeaf1; border-radius: 16px; background: linear-gradient(165deg, #fff, #fbf9fc);
  cursor: pointer;
}
.ed-labi .ai-choice-btn strong { font-size: 13px; font-weight: 800; color: #1c1e2b; }
.ed-labi .ai-choice-btn span { font-size: 11px; line-height: 1.4; color: #7a7e90; }
.ed-labi .ai-choice-btn--tpl { background: linear-gradient(165deg, #fff, var(--accent-soft)); }
.ed-labi .ai-choice-btn.is-picked { border-color: var(--accent); }
.ed-labi .ai-tpl-media { aspect-ratio: 16/10; }
.ed-labi .ai-data-card { grid-template-columns: 132px 1fr; }
.ed-labi .ai-data-media {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 0; padding: 0; border-radius: 16px; background: linear-gradient(165deg, #f7f4f8, #fff);
  border: 1px solid var(--accent-soft-2); min-height: 108px; color: var(--accent); cursor: pointer; overflow: hidden;
}
.ed-labi .ai-data-media--preview {
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(123,40,64,.08), transparent 55%),
    linear-gradient(180deg, #fbfafc, #f3f1f6);
}
.ed-labi .ai-data-media strong { font-size: 18px; font-weight: 900; }
.ed-labi .ai-data-media span { font-size: 11px; font-weight: 700; }
.ed-labi .ai-data-preview { width: 100%; height: 100%; min-height: 100px; display: grid; place-items: center; padding: 10px 8px; }
.ed-labi .ai-data-preview svg { width: 100%; height: auto; max-height: 96px; filter: drop-shadow(0 6px 14px rgba(40,28,48,.1)); }
.ai-data-preview--lg { padding: 18px; background: #fff; border-radius: 16px; border: 1px solid #eceaf2; }
.ai-data-preview--lg svg { max-height: min(42vh, 280px); width: min(100%, 420px); }
.ed-labi .ai-data-cols { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ed-labi .ai-data-cols em { font-style: normal; font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: #f3f1f5; color: #5b6070; }
.ai-data-preview-table { margin-top: 4px; }
.ai-data-preview-table table { width: 100%; border-collapse: collapse; font-size: 11px; }
.ai-data-preview-table th, .ai-data-preview-table td { border-bottom: 1px solid #eceaf1; padding: 6px 4px; text-align: left; vertical-align: top; word-break: break-word; }
.ai-data-preview-table th { color: #7a7e90; font-weight: 700; font-size: 10px; }
.ai-data-preview-table p { margin: 8px 0 0; font-size: 11px; color: #7a7e90; line-height: 1.45; }
.ed-labi .ai-clip-zoom {
  position: absolute; right: 8px; bottom: 8px; height: 24px; padding: 0 8px; border-radius: 8px;
  background: rgba(28,30,43,.72); color: #fff; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center;
}

.ai-lightbox { position: fixed; inset: 0; z-index: 12000; display: grid; place-items: center; padding: 20px; }
.ai-lightbox[hidden] { display: none !important; }
.ai-lightbox-backdrop { position: absolute; inset: 0; background: rgba(22,20,32,.62); backdrop-filter: blur(10px); opacity: 0; transition: opacity .2s ease; }
.ai-lightbox-dialog {
  position: relative; z-index: 1; width: min(720px, 100%); display: grid; grid-template-columns: 1.15fr .85fr;
  background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(20,16,40,.35);
  transform: translateY(12px) scale(.98); opacity: 0; transition: opacity .22s ease, transform .22s ease;
}
.ai-lightbox.is-open .ai-lightbox-backdrop { opacity: 1; }
.ai-lightbox.is-open .ai-lightbox-dialog { opacity: 1; transform: none; }
.ai-lightbox-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #4e5163; font-size: 22px; line-height: 1; cursor: pointer;
}
.ai-lightbox-figure {
  background:
    linear-gradient(45deg, #f4f2f5 25%, transparent 25%) -12px 0 / 24px 24px,
    linear-gradient(-45deg, #f4f2f5 25%, transparent 25%) -12px 0 / 24px 24px, #faf9fb;
  min-height: 320px; display: grid; place-items: center; padding: 18px;
}
.ai-lightbox-img { max-width: 100%; max-height: min(62vh, 520px); object-fit: contain; border-radius: 8px; }
.ai-lightbox-meta {
  padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(180deg, #fff, #F3E8EC 180%);
}
.ai-lightbox-kicker { font-size: 11px; font-weight: 800; color: var(--burgundy); letter-spacing: .02em; }
.ai-lightbox-title { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -.4px; color: #17182a; line-height: 1.3; }
.ai-lightbox-desc { margin: 0; font-size: 13px; line-height: 1.55; color: #5b6070; }
.ai-lightbox-html { width: 100%; display: grid; place-items: center; padding: 12px; }
.ai-lightbox-extra { margin-top: 8px; max-height: 160px; overflow: auto; border: 1px solid #eceaf1; border-radius: 12px; padding: 8px 10px; background: #faf9fb; }
.ai-lightbox-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.ai-lightbox-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px;
  border-radius: 12px; border: 1px solid #e6e5ee; background: #fff; color: #3a3d4d;
  font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer;
}
.ai-lightbox-btn--primary {
  border: 0; background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
  color: #fff; box-shadow: 0 8px 18px rgba(123,40,64,.22);
}
@media (max-width: 720px) {
  .ai-lightbox-dialog { grid-template-columns: 1fr; }
  .ed-labi .ai-rec-card, .ed-labi .ai-clip-card { grid-template-columns: 88px 1fr; }
}

.ed-btn--shop {
  background: linear-gradient(180deg, #fff, #f7f4ef);
  border-color: #e4d8c8;
  color: #5a4634;
  font-weight: 800;
}
.ed-btn--shop:hover { background: #f3ece3; border-color: #c4a574; }
.ed-shop-modal { z-index: 320; }
.ed-modal__card--shop { width: min(1080px, 100%); max-height: min(92vh, 980px); }
.ed-shop-head-actions { display: flex; align-items: center; gap: 8px; }
.ed-shop-cart-btn em {
  display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--burgundy); color: #fff;
  font-size: 10px; font-style: normal; align-items: center; justify-content: center;
}
.ed-shop-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 18px 0; }
.ed-shop-modal:has(.ed-shop-cart) .ed-shop-toolbar,
.ed-shop-modal:has(.ed-shop-checkout) .ed-shop-toolbar,
.ed-shop-modal:has(.ed-shop-done) .ed-shop-toolbar { display: none; }
.ed-shop-body { min-height: 360px; }
.ed-shop-flash {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
  background: #f3e8ec; color: var(--burgundy); font-weight: 700;
}
.ed-shop-flash--err { background: #fdecec; color: #9b1c1c; }
.ed-shop-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.ed-shop-card {
  border: 1px solid var(--ed-border); border-radius: 14px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
}
.ed-shop-card__media {
  position: relative; border: 0; padding: 0; background: #f6f3ef; aspect-ratio: 1; cursor: pointer;
}
.ed-shop-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-shop-badge {
  position: absolute; left: 8px; top: 8px; height: 22px; padding: 0 8px; border-radius: 999px;
  background: rgba(46,42,39,.78); color: #fff; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center;
}
.ed-shop-badge--sale { background: var(--burgundy); }
.ed-shop-card__meta { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; min-height: 0; }
.ed-shop-card__meta small { color: var(--muted); font-size: 11px; }
.ed-shop-card__meta strong { font-size: 13px; line-height: 1.35; }
.ed-shop-card__meta > span { font-size: 11px; color: #7a7e90; }
.ed-shop-price { display: flex; align-items: baseline; gap: 6px; }
.ed-shop-price del { font-size: 11px; color: #a0a4b3; }
.ed-shop-price em { font-style: normal; font-weight: 900; color: var(--burgundy); }
.ed-shop-price--lg em { font-size: 22px; }
.ed-shop-card__actions { display: flex; gap: 6px; margin-top: 8px; }
.ed-shop-card__actions .ed-btn { flex: 1; justify-content: center; }
.ed-shop-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.ed-shop-pages button {
  min-width: 32px; height: 32px; border: 1px solid var(--ed-border); border-radius: 8px; background: #fff; cursor: pointer;
}
.ed-shop-pages button.is-active { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.ed-shop-back { border: 0; background: none; color: var(--burgundy); font-weight: 800; cursor: pointer; padding: 0 0 10px; }
.ed-shop-detail__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; }
.ed-shop-detail__media { border-radius: 16px; overflow: hidden; background: #f6f3ef; }
.ed-shop-detail__media img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.ed-shop-detail__info h4 { margin: 4px 0 6px; font-size: 20px; }
.ed-shop-sku, .ed-shop-spec, .ed-shop-stock { margin: 0 0 8px; color: #6b6560; }
.ed-shop-desc { margin: 0 0 14px; line-height: 1.6; white-space: pre-wrap; }
.ed-shop-buy { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ed-shop-qty { display: inline-flex; align-items: center; border: 1px solid var(--ed-border); border-radius: 10px; overflow: hidden; }
.ed-shop-qty button { width: 32px; height: 34px; border: 0; background: #f7f3ee; cursor: pointer; }
.ed-shop-qty input { width: 44px; height: 34px; border: 0; text-align: center; font: inherit; }
.ed-shop-cart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  grid-template-areas:
    "heading heading"
    "nav nav"
    "list summary";
  gap: 14px 24px;
  align-items: start;
}
.ed-shop-cart::before {
  grid-area: heading;
  content: "장바구니";
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #1c1a22;
  line-height: 1.2;
}
.ed-shop-cart > .ed-shop-back {
  grid-area: nav;
  width: fit-content;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #7a5260;
}
.ed-shop-cart > .ed-shop-back:hover { color: var(--burgundy); }
.ed-shop-cart-list { grid-area: list; display: grid; gap: 12px; min-width: 0; }
.ed-shop-cart > .ed-paper-empty {
  grid-area: list;
  margin: 28px 0;
  padding: 48px 20px;
  border: 1px dashed #eadfe3;
  border-radius: 18px;
  background: #fcfafb;
  text-align: center;
  color: #8a8490;
}
.ed-shop-cart:not(:has(.ed-shop-cart-list)) {
  grid-template-areas:
    "heading heading"
    "nav nav"
    "list list";
}
.ed-shop-cart-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto auto auto;
  grid-template-areas: "thumb info qty price remove";
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #efe6e8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(46, 42, 39, .03);
}
.ed-shop-cart-item:hover {
  border-color: #e4d2d7;
  box-shadow: 0 10px 28px rgba(46, 42, 39, .06);
}
.ed-shop-cart-item > img { grid-area: thumb; width: 88px; height: 88px; object-fit: cover; border-radius: 12px; background: #f6f3ef; }
.ed-shop-cart-item > div:not(.ed-shop-qty) { grid-area: info; min-width: 0; }
.ed-shop-cart-item > .ed-shop-qty { grid-area: qty; border-radius: 999px; background: #faf7f5; }
.ed-shop-cart-item > .ed-shop-qty button { background: transparent; }
.ed-shop-cart-item > em {
  grid-area: price;
  font-style: normal;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #1c1a22;
  min-width: 84px;
  text-align: right;
}
.ed-shop-cart-item strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #1c1a22;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ed-shop-cart-item span { display: block; margin-top: 5px; font-size: 12px; color: #8a8490; }
.ed-shop-remove {
  grid-area: remove;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #9a6b73;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}
.ed-shop-remove:hover { background: #f8eef1; color: #9b1c1c; }
.ed-shop-summary {
  border: 1px solid #efe4e8;
  border-radius: 18px;
  padding: 20px 18px 18px;
  background: linear-gradient(180deg, #fff 0%, #faf6f7 100%);
  box-shadow: 0 12px 32px rgba(123, 40, 64, .06);
}
.ed-shop-cart > .ed-shop-summary {
  grid-area: summary;
  position: sticky;
  top: 0;
}
.ed-shop-cart > .ed-shop-summary::before {
  content: "주문 요약";
  display: block;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #1c1a22;
}
.ed-shop-summary dl { margin: 0 0 8px; display: grid; gap: 10px; }
.ed-shop-summary dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.ed-shop-summary dt { color: #8a8490; font-weight: 600; }
.ed-shop-summary dd { margin: 0; font-weight: 800; color: #2a2730; }
.ed-shop-summary__total { padding-top: 10px; border-top: 1px solid #f0e6ea; font-size: 15px; }
.ed-shop-summary__total dt { color: #1c1a22; }
.ed-shop-summary__total dd { color: var(--burgundy); font-size: 18px; letter-spacing: -.03em; }
.ed-shop-summary p { margin: 0 0 14px; font-size: 11px; line-height: 1.5; color: #9a8b90; }
.ed-shop-summary ul { margin: 0 0 12px; padding-left: 18px; color: #5b6070; }
.ed-shop-cart > .ed-shop-summary .ed-shop-block {
  height: 46px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  letter-spacing: -.01em;
  box-shadow: 0 8px 18px rgba(123, 40, 64, .2);
}
.ed-shop-block { width: 100%; justify-content: center; }
.ed-shop-note { margin: 8px 0 0; font-size: 11px; color: #8a7380; }
.ed-shop-checkout__grid { display: grid; grid-template-columns: 1fr 280px; gap: 18px; }
.ed-shop-fields { display: grid; gap: 10px; }
.ed-shop-fields label { display: grid; gap: 4px; font-weight: 700; color: #4e5163; }
.ed-shop-fields .lu-checkout-block__head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-top: 4px; font-size: 14px;
}
.ed-shop-fields .lu-checkout-ship { display: grid; gap: 8px; padding: 12px; border: 1px solid #efe6e8; border-radius: 14px; background: #fff; }
.ed-shop-fields .lu-check { display: flex !important; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #5b6070; }
.ed-shop-fields .lu-check input { width: auto; margin: 0; }
.ed-shop-fields .lu-addr-book-btn {
  border: 1px solid #eadfe3; border-radius: 10px; padding: 8px 10px; background: #fff;
  color: var(--burgundy); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
}
.ed-shop-fields .lu-checkout-save { display: grid; gap: 6px; }
.ed-shop-fields .lu-addr-label { border: 1px solid var(--ed-border); border-radius: 10px; padding: 9px 11px; font: inherit; }
.lu-addr-book-layer{
  position:fixed;inset:0;z-index:12500;background:rgba(46,42,39,.42);
  display:grid;place-items:center;padding:16px
}
.lu-addr-book-layer[hidden]{display:none}
.lu-addr-book-layer__card{width:min(440px,100%);background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 16px 48px rgba(46,42,39,.24)}
.lu-addr-book-layer__head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #eee}
.lu-addr-book-layer__close{border:0;background:transparent;font-size:22px;cursor:pointer;color:#6b6570}
.lu-addr-book-layer__body{padding:14px;max-height:min(70vh,560px);overflow:auto}
.lu-addr-book-list{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.lu-addr-book-item{width:100%;text-align:left;border:1px solid #efe6e8;border-radius:12px;padding:12px;background:#fff;cursor:pointer}
.lu-addr-book-item em{display:block;font-style:normal;font-size:11px;font-weight:800;color:var(--burgundy)}
.lu-addr-book-item strong{display:block;margin:4px 0 2px}
.lu-addr-book-item span{display:block;font-size:12px;color:#6b6570;line-height:1.45}
.lu-addr-book-empty{margin:8px 0 14px;color:#8a8490;font-size:13px}
.lu-addr-book-add,.lu-addr-book-form__actions button[type=submit]{
  width:100%;border:0;border-radius:10px;padding:10px;background:var(--burgundy,#7B2840);color:#fff;font-weight:800;cursor:pointer
}
.lu-addr-book-form{display:grid;gap:8px}
.lu-addr-book-form label{display:grid;gap:4px;font-size:12px;font-weight:700;color:#4e5163}
.lu-addr-book-form input{border:1px solid #e6e5ee;border-radius:10px;padding:8px 11px;font:inherit}
.lu-addr-book-form__actions{display:flex;gap:8px}
.lu-addr-book-form__actions button[type=button]{border:1px solid #e6e5ee;border-radius:10px;padding:10px 14px;background:#fff;cursor:pointer}
body.lu-addr-book-open{overflow:hidden}
.ed-shop-fields input, .ed-shop-fields textarea {
  border: 1px solid var(--ed-border); border-radius: 10px; padding: 9px 11px; font: inherit;
}
.ed-shop-fields .lu-addr { display: grid; gap: 6px; }
.ed-shop-fields .lu-addr__row { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.ed-shop-fields .lu-addr input { min-width: 0; }
.ed-shop-fields .lu-addr input[readonly] { background: #f7f6f4; cursor: pointer; }
.ed-shop-fields .lu-addr__search {
  border: 0; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 12px; font-weight: 800;
  background: var(--burgundy, #7B2840); color: #fff; cursor: pointer; white-space: nowrap;
}
.ed-shop-fields .lu-addr__combined {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.lu-postcode-layer{
  position:fixed;inset:0;z-index:13000;background:rgba(46,42,39,.42);
  display:grid;place-items:center;padding:16px
}
.lu-postcode-layer[hidden]{display:none}
.lu-postcode-layer__card{background:#fff;border-radius:14px;overflow:hidden;max-width:100%;box-shadow:0 16px 48px rgba(46,42,39,.24)}
.lu-postcode-layer__head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #eee}
.lu-postcode-layer__head strong{font-size:15px}
.lu-postcode-layer__close{border:0;background:transparent;font-size:22px;line-height:1;cursor:pointer;color:#6b6570}
.lu-postcode-layer__body{width:100%;background:#fff}
.lu-postcode-layer__loading{margin:0;padding:28px 16px;text-align:center;color:#6b6570;font-size:13px}
body.lu-postcode-open{overflow:hidden}
.ed-shop-done { text-align: center; padding: 36px 16px; }
.ed-shop-done strong { display: block; font-size: 20px; margin-bottom: 10px; }
.ed-shop-done p { margin: 6px 0; color: #5b6070; }
.ed-shop-done em { font-style: normal; font-weight: 900; color: var(--burgundy); }
.ed-shop-done__actions { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
@media (max-width: 820px) {
  .ed-shop-detail__grid, .ed-shop-checkout__grid { grid-template-columns: 1fr; }
  .ed-shop-cart {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "nav"
      "list"
      "summary";
  }
  .ed-shop-cart:not(:has(.ed-shop-cart-list)) {
    grid-template-areas:
      "heading"
      "nav"
      "list";
  }
  .ed-shop-cart > .ed-shop-summary { position: static; }
  .ed-shop-cart-item {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb info remove"
      "thumb qty price";
    gap: 10px 12px;
    padding: 14px;
  }
  .ed-shop-cart-item > img { width: 72px; height: 72px; }
  .ed-shop-cart-item > em { min-width: 0; font-size: 14px; }
}

/* —— Mobile chrome (hidden on desktop) —— */
.ed-m-more,
.ed-m-props,
.ed-m-preview,
.ed-m-scrim,
.ed-m-drawer-close { display: none; }

html.is-ed-mobile,
html.is-ed-mobile body,
html.is-ed-mobile #app {
  height: 100dvh;
  height: 100svh;
  overflow: hidden;
  overscroll-behavior: none;
}
html.is-ed-mobile body {
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

/* First paint: keep preview/layers off-screen even before .ed.is-mobile lands.
   panelIn animation must not win over the closed-sheet transform. */
html.is-ed-mobile .ed-preview,
html.is-ed-mobile .ed-props,
.ed.is-mobile .ed-preview,
.ed.is-mobile .ed-props {
  animation: none !important;
  display: flex !important;
  flex-direction: column;
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: min(78dvh, 640px) !important;
  max-height: min(78dvh, 640px) !important;
  min-height: 0 !important;
  border-radius: 18px 18px 0 0;
  transform: translateY(110%) !important;
  transition: transform 0.28s var(--ed-ease);
  z-index: 230;
  box-shadow: 0 -12px 36px rgba(46, 42, 39, 0.2);
  pointer-events: none;
}
html.is-ed-mobile .ed-preview.is-m-open,
html.is-ed-mobile .ed-props.is-m-open,
.ed.is-mobile .ed-preview.is-m-open,
.ed.is-mobile .ed-props.is-m-open {
  transform: translateY(0) !important;
  pointer-events: auto;
}

.ed.is-mobile {
  --ed-m-dock: 72px;
  min-width: 0;
  width: 100%;
  height: 100dvh;
  height: 100svh;
  padding-bottom: 0;
}
.ed.is-mobile .ed-topbar-dock,
.ed.is-mobile .ed-topbar-dock.is-auto,
.ed.is-mobile .ed-topbar-dock.is-pinned {
  position: relative;
  z-index: 240;
  height: auto;
  flex-shrink: 0;
}
.ed.is-mobile .ed-topbar-hotzone,
.ed.is-mobile .ed-topbar-dock.is-auto::after { display: none; }
.ed.is-mobile .ed-topbar-dock.is-auto .ed-topbar,
.ed.is-mobile .ed-topbar {
  position: relative;
  z-index: 240;
  transform: none;
  pointer-events: auto;
  box-shadow: 0 8px 20px rgba(32, 16, 22, 0.22);
  padding: 8px 10px 8px 12px;
  gap: 8px;
  padding-top: max(8px, env(safe-area-inset-top, 0px));
}
.ed.is-mobile .ed-topbar__file {
  min-width: 0;
  max-width: none;
  flex: 1 1 auto;
}
.ed.is-mobile .ed-topbar__file-meta { flex: 1 1 auto; min-width: 0; }
.ed.is-mobile .ed-topbar__title-row { width: 100%; }
.ed.is-mobile .ed-topbar__name {
  min-width: 0;
  max-width: none;
  flex: 1 1 auto;
  width: auto;
  height: 40px;
  font-size: 15px;
}
.ed.is-mobile .ed-topbar__status,
.ed.is-mobile .ed-topbar__saved,
.ed.is-mobile .ed-chip--pin,
.ed.is-mobile .ed-topbar__center,
.ed.is-mobile .ed-topbar__vendor { display: none !important; }
.ed.is-mobile .ed-autosave {
  display: inline-flex;
  width: 44px;
  height: 44px;
}
.ed.is-mobile .ed-autosave::before {
  width: 26px;
  height: 26px;
}
.ed.is-mobile .ed-topbar__labi {
  width: 44px;
  height: 44px;
  padding: 0;
}
.ed.is-mobile .ed-topbar__labi span { display: none; }
.ed.is-mobile .ed-topbar__labi img { width: 24px; height: 24px; }
.ed.is-mobile .ed-m-more {
  display: grid;
  width: 44px;
  height: 44px;
  min-width: 44px;
  font-size: 18px;
}
.ed.is-mobile .ed-topbar > .ed-m-props,
.ed.is-mobile .ed-topbar > .ed-m-preview { display: none !important; }
.ed.is-mobile .ed-m-scrim.is-open,
.ed.is-mobile .ed-m-drawer-close { display: block; }
.ed.is-mobile .ed-m-scrim.is-open {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(46, 42, 39, 0.38);
}
.ed.is-mobile .ed-topbar__actions {
  display: none;
  position: fixed;
  z-index: 250;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  margin: 0;
  padding: 16px 14px max(16px, env(safe-area-inset-bottom));
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  background: #fff;
  box-shadow: -12px 0 32px rgba(46, 42, 39, 0.18);
  overflow-y: auto;
}
.ed.is-mobile .ed-topbar__actions.is-open { display: flex; }
.ed.is-mobile .ed-topbar__actions .ed-btn,
.ed.is-mobile .ed-topbar__actions a.ed-btn {
  width: 100%;
  min-height: 48px;
  justify-content: flex-start;
  font-size: 15px;
  border-color: var(--ed-border);
  background: #fff;
  color: var(--charcoal);
  box-shadow: none;
}
.ed.is-mobile .ed-topbar__actions .ed-btn--primary {
  background: linear-gradient(90deg, var(--burgundy), var(--burgundy-dark));
  border-color: transparent;
  color: #fff;
}
.ed.is-mobile .ed-topbar__actions .ed-btn--shop,
.ed.is-mobile .ed-topbar__actions .ed-btn--shop:hover {
  background: linear-gradient(180deg, #fff, #f7f4ef);
  border-color: #e4d8c8;
  color: #5a4634;
}
.ed.is-mobile .ed-m-drawer-close {
  border: 0;
  background: #f4f1ee;
  border-radius: 10px;
  min-height: 44px;
  font: inherit;
  font-weight: 800;
  color: var(--muted);
}

.ed.is-mobile .ed__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}
.ed.is-mobile .ed__workspace {
  width: auto;
  flex: 1 1 auto;
  padding: 0 0 calc(var(--ed-m-dock) + env(safe-area-inset-bottom, 0px));
}
.ed.is-mobile .ed-guides { display: block; }

.ed.is-mobile .ed-float-tools {
  position: fixed;
  left: 0;
  right: 0;
  top: auto !important;
  bottom: 0 !important;
  z-index: 160;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  padding: 0;
  pointer-events: none;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 24px rgba(46, 42, 39, 0.12);
}
.ed.is-mobile .ed-float-tools__bar {
  pointer-events: auto;
  animation: none;
  max-width: none;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  gap: 4px;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  border: 0;
  border-radius: 16px 0 0 0;
  box-shadow: none;
}
.ed.is-mobile .ed-m-dock-end {
  pointer-events: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)) 6px;
  border-left: 1px solid var(--ed-border);
  background: #fff;
  border-radius: 0 16px 0 0;
}
.ed.is-mobile .ed-float-tools__grip,
.ed.is-mobile .ed-float-tools__dock,
.ed.is-mobile .ed-float-tools__divider { display: none; }
.ed.is-mobile .ed-float-tools__group {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
}
.ed.is-mobile .ed-float-tools__item {
  min-width: 56px;
  min-height: 56px;
  padding: 6px 8px;
}
.ed.is-mobile .ed-float-tools__label { font-size: 11px; }
.ed.is-mobile .ed-float-tools__group--files,
.ed.is-mobile .ed-float-tools__divider--files {
  display: none !important;
}
.ed.is-mobile .ed-float-tools__group--stack {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: auto;
  margin: 0;
  gap: 4px;
}
.ed.is-mobile .ed-float-tools__paper {
  min-width: 72px;
  max-width: 96px;
  padding: 6px 8px;
  justify-content: center;
}
.ed.is-mobile .ed-float-tools__paper em { display: none; }
.ed.is-mobile .ed-float-tools__paper-kicker { font-size: 9px; }
.ed.is-mobile .ed-float-tools__paper strong { font-size: 11px; }
.ed.is-mobile .ed-float-tools__group--stack .ed-float-tools__file {
  min-width: 64px;
  min-height: 56px;
  padding: 6px 8px;
}
.ed.is-mobile .ed-float-tools__group--stack .ed-float-tools__file span {
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.ed.is-mobile .ed-m-dock-end .ed-m-preview,
.ed.is-mobile .ed-m-dock-end .ed-m-props,
.ed.is-mobile .ed-float-tools__bar .ed-m-preview,
.ed.is-mobile .ed-float-tools__bar .ed-m-props {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 56px;
  padding: 6px 8px;
  border: 1px solid #E8D4DB;
  border-radius: 10px;
  background: var(--ed-primary-soft);
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 800;
}
.ed.is-mobile.is-preview-open .ed-m-dock-end .ed-m-preview,
.ed.is-mobile.is-props-open .ed-m-dock-end .ed-m-props,
.ed.is-mobile.is-preview-open .ed-float-tools__bar .ed-m-preview,
.ed.is-mobile.is-props-open .ed-float-tools__bar .ed-m-props {
  background: linear-gradient(145deg, var(--burgundy-light), var(--burgundy-dark));
  border-color: transparent;
  color: #fff;
}

.ed.is-mobile .ed-float-bar {
  bottom: calc(var(--ed-m-dock) + 8px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 16px);
}
.ed.is-mobile .ed-float-bar button {
  min-width: 44px;
  height: 36px;
  font-size: 12px;
}

.ed.is-mobile .ed-preview.is-minimized,
.ed.is-mobile .ed-props.is-minimized {
  height: min(78dvh, 640px) !important;
  max-height: min(78dvh, 640px) !important;
}
.ed.is-mobile .ed-preview__spec { font-size: 12px; padding: 12px 14px 0; }
.ed.is-mobile .ed-preview__sheet-meta { font-size: 11px; }
.ed.is-mobile .ed-preview__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 14px 0;
}
.ed.is-mobile .ed-preview__apply {
  min-height: 44px;
  font-size: 13px;
}
.ed.is-mobile .ed-preview__pager {
  gap: 6px;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  font-size: 13px;
}
.ed.is-mobile .ed-preview__pager button {
  width: 40px;
  height: 40px;
}
.ed.is-mobile .ed-preview__pager .ed-preview__add,
.ed.is-mobile .ed-preview__pager .ed-preview__order {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  font-size: 13px;
}
.ed.is-mobile .ed-props__layers {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  grid-auto-rows: unset;
}
.ed.is-mobile .ed-layer-item {
  display: flex;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  flex: 0 0 48px;
  font-size: 14px;
}
.ed.is-mobile .ed-ctx-bar button,
.ed.is-mobile .ed-ctx-bar input[type="number"],
.ed.is-mobile .ed-ctx-bar input[type="color"],
.ed.is-mobile .ed-ctx-bar select {
  height: 40px;
  min-height: 40px;
}
.ed.is-mobile .ed-ctx-bar button { min-width: 40px; }
.ed.is-mobile .ed-ctx-op {
  height: 200px;
  width: 52px;
}
.ed.is-mobile.is-props-open::after,
.ed.is-mobile.is-preview-open::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(46, 42, 39, 0.28);
}
.ed.is-mobile .ed-props__grip { display: none; }
.ed.is-mobile .ed-props__min {
  width: 44px;
  height: 44px;
}
.ed.is-mobile .ed-props__tab,
.ed.is-mobile .ed-field input,
.ed.is-mobile .ed-field select {
  min-height: 44px;
  font-size: 16px;
}

.ed.is-mobile .ed-corner-fab,
.ed.is-mobile .ed-credit-chip { display: none !important; }

.ed.is-mobile .ed-data-table--panel,
.ed.is-mobile [data-ed-data-panel] {
  left: 8px;
  right: 8px;
  width: auto;
  max-width: none;
}

.ed.is-mobile .ed-modal {
  place-items: end center;
  padding: 0;
}
.ed.is-mobile .ed-modal__card,
.ed.is-mobile .ed-modal__card--wide,
.ed.is-mobile .ed-modal__card--papers,
.ed.is-mobile .ed-modal__card--form,
.ed.is-mobile .ed-modal__card--print,
.ed.is-mobile .ed-modal__card--shop,
.ed.is-mobile .ed-modal__card--labi {
  width: 100%;
  max-width: none;
  max-height: min(92dvh, 100%);
  border-radius: 18px 18px 0 0;
}
.ed.is-mobile .ed-modal__card--confirm {
  width: calc(100% - 24px);
  margin: 0 12px 16px;
  border-radius: 16px;
}
.ed.is-mobile .ed-ctx {
  min-width: 180px;
}
.ed.is-mobile .ed-ctx button {
  min-height: 44px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .ed { min-width: 0; }
  html:not(.is-ed-mobile) .ed-preview { display: none; }
}
