/* TWOSUN AEL simple-experience layer: intentionally small and additive. */
:root { --ael-plum:#65394f; --ael-border:#e9dfe5; --ael-ink:#4e3946; }
.panel-heading > div:first-child { min-width:0; flex:1; }
.ael-guide-button {
  flex:none; display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border:1px solid #dcc8d4; border-radius:50%;
  color:var(--ael-plum); background:#fbf5f9; font-size:17px; font-weight:800;
  padding:0; line-height:1; box-shadow:0 1px 3px #4223360a;
}
.ael-guide-button:hover { background:#f3e9ef; border-color:#b891a7; }
.ael-guide-button:focus-visible, .ael-dialog button:focus-visible {
  outline:3px solid #b78ea7; outline-offset:3px;
}
.ael-context-note {
  display:flex; align-items:flex-start; gap:10px;
  margin:11px 0 13px; padding:10px 12px;
  background:#faf5f7; border:1px solid #efe3e9; border-radius:10px;
  color:#694c5a; font-size:12px; line-height:1.55;
}
.ael-context-label { white-space:nowrap; font-weight:750; color:#75455f; }
.ael-context-text { flex:1; min-width:0; }
.ael-dialog-open { overflow:hidden; }
.ael-dialog-backdrop {
  position:fixed; inset:0; z-index:200; display:flex; justify-content:center; align-items:center;
  padding:18px; background:#2419249c; backdrop-filter:blur(3px);
}
.ael-dialog {
  width:min(100%,490px); max-height:min(90dvh,720px); overflow:auto; padding:27px 27px 24px;
  border:1px solid #e9dfe5; border-radius:20px; color:#352d34;
  background:#fff; box-shadow:0 20px 65px #29152640;
}
.ael-dialog-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.ael-dialog h2 { font-size:24px; line-height:1.35; letter-spacing:-.9px; margin:7px 0 0; }
.ael-guide-eyebrow {font-size:11px;color:#986c84;letter-spacing:1.2px;font-weight:750;}
.ael-guide-x { width:38px; height:38px; border:1px solid #ece4e9; border-radius:10px; background:#fff; font-size:27px; color:#8b7080; }
.ael-guide-subtitle {font-size:14px;line-height:1.65;color:#786b74;margin:12px 0 18px;}
.ael-guide-list {margin:0;padding:0;list-style:none;display:grid;gap:10px;}
.ael-guide-step {display:flex;align-items:flex-start;gap:14px;border:1px solid #eee5ea;background:#fdfafb;border-radius:12px;padding:14px;}
.ael-guide-index {font:700 18px Georgia,serif;color:#ae7c94;background:#f7ecf2;border-radius:10px;padding:9px 10px;line-height:1;}
.ael-guide-step h3 {font-size:16px;line-height:1.35;margin:0;color:#45323c;}
.ael-guide-step p {font-size:13px;line-height:1.55;color:#796873;margin:5px 0 0;}
.ael-guide-extra {margin:15px 0 17px;padding:10px 12px;background:#f5f4f5;color:#6e5d68;border-radius:9px;font-size:12px;line-height:1.6;}
.ael-guide-actions {display:flex;gap:8px;}
.ael-guide-actions button {min-height:44px;border-radius:10px;padding:9px 13px;font-size:14px;font-weight:700;}
.ael-guide-start {background:#65394f;color:white;flex:1;}
.ael-guide-details {color:#65485a;border:1px solid #ded0d9;background:white;}
@media (max-width:800px) {
  .control-panel.open { border-color:#e4d6df; box-shadow:0 -12px 40px #28152222; }
  .panel-heading { gap:7px; }
  .panel-heading h2 {font-size:20px;letter-spacing:-.6px;}
  .panel-heading > .mobile-only.icon-button {
    flex:none; min-width:86px; min-height:38px; gap:3px; padding:5px 7px;
    border:1px solid #e6dbe1; background:#fff; color:#68495c; font-weight:700;
  }
  .panel-heading > .mobile-only.icon-button::before {content:'미리보기';font-size:11px;white-space:nowrap;}
  .panel-heading > .mobile-only.icon-button svg {width:16px;height:16px;}
  .ael-context-note {margin:9px 0 11px;padding:9px 10px; font-size:12px;gap:8px;}
  .mobile-stepbar button { min-height:50px; }
  .mobile-stepbar button.active {font-weight:800;background:#f2e8ee;}
  .ael-dialog {max-height:88dvh;padding:22px 18px 18px;border-radius:16px;}
  .ael-dialog h2 {font-size:22px;}
}
@media (max-width:375px) {
  .panel-heading h2 {font-size:18px;}
  .panel-heading > .mobile-only.icon-button {min-width:64px;}
  .panel-heading > .mobile-only.icon-button::before {content:'보기';}
  .ael-guide-actions {flex-direction:column;}
  .ael-guide-actions button {width:100%;}
}
@media (prefers-reduced-motion:reduce) { .ael-dialog-backdrop {backdrop-filter:none;} }
/* Narrow phones: keep download control on screen rather than clipping the toolbar. */
@media (max-width:385px) {
  .canvas-toolbar {padding-inline:8px;gap:3px;}
  .canvas-toolbar .tool-group {gap:2px;}
  .canvas-toolbar .icon-button {min-width:32px;min-height:34px;}
  .canvas-toolbar .toolbar-divider {margin-inline:2px;}
  .canvas-toolbar>.tool-group:first-child button.quiet {font-size:0;padding:6px 4px;gap:2px;}
  .canvas-toolbar>.tool-group:first-child button.quiet:nth-of-type(3)::after {content:'이동';font-size:10px;}
  .canvas-toolbar>.tool-group:first-child button.quiet:nth-of-type(4)::after {content:'맞춤';font-size:10px;}
}

/* AEL v1.9: one optional quick route, using existing screens and application. */
.ael-context-note.ael-has-fast-entry { flex-wrap: wrap; }
.ael-fast-entry {
  flex:0 0 100%; display:flex; align-items:center; justify-content:center;
  min-height:42px; margin-top:3px; padding:9px 12px;
  background:#fff; border:1px solid #d8bcca; border-radius:9px;
  color:#6b3e57; font-size:13px; font-weight:750; letter-spacing:-.15px;
  cursor:pointer; transition:background .15s, border-color .15s;
}
.ael-fast-entry:hover { background:#f7eaf1; border-color:#af87a0; }
.ael-apply-finish {
  display:block; width:100%; min-height:46px; margin-top:15px; padding:12px 16px;
  border:1px solid #6c3f58; border-radius:9px; background:#6c3f58;
  color:#fff; font:inherit; font-size:14px; font-weight:750;
  cursor:pointer; text-align:center;
}
.ael-apply-finish:hover { background:#583149; }
.modal .designer-browser > button.primary.full {
  background:#fff; color:#684057; border:1px solid #d5bdca;
  box-shadow:none; margin-top:8px;
}
.ael-finish-disclaimer {
  color:#8c7583; font-size:11px; line-height:1.5;
  margin:8px 0 0; text-align:center;
}
.ael-fast-entry:focus-visible, .ael-apply-finish:focus-visible {
  outline:3px solid #b78ea7; outline-offset:3px;
}
@media(max-width:375px) {
  .ael-fast-entry {font-size:12px;padding-inline:8px;}
  .ael-apply-finish {font-size:13px;}
}
@media(prefers-reduced-motion:reduce) {
  .ael-fast-entry {transition:none;}
}

/* AEL v2.0: filters share the existing search row; they add no extra line. */
.collection-browser .searchbox { display:flex; align-items:center; min-width:0; }
.collection-browser .searchbox input { flex:1 1 0; min-width:0; }
.collection-browser .searchbox > .ael-refine-toggle {
  display:inline-flex; flex:none; align-items:center; justify-content:center; gap:4px;
  min-width:63px; min-height:44px; margin:-2px -5px -2px 5px; padding:6px 9px;
  color:#69465a; background:#fffafd; border:1px solid #e1ceda;
  border-radius:9px; text-align:center; font:inherit; font-size:12px;
  font-weight:750; line-height:1.25; cursor:pointer; white-space:nowrap;
}
.collection-browser .searchbox > .ael-refine-toggle::after {
  content:'⌄'; display:inline-block; font-size:15px; line-height:1;
  transform:rotate(180deg); transition:transform .12s ease;
}
.collection-browser .searchbox > .ael-refine-toggle[aria-expanded="false"]::after { transform:none; }
.collection-browser .searchbox > .ael-refine-toggle:hover { background:#f8eef4; border-color:#d5bbc9; }
.collection-browser .searchbox > .ael-refine-toggle:focus-visible { outline:3px solid #b78ea7; outline-offset:2px; }
.collection-browser.ael-refine-active .searchbox > .ael-refine-toggle {
  color:#62344d; border-color:#c9a2b9; background:#faf0f6;
}
.collection-browser.ael-refine-collapsed > .collection-refine,
.collection-browser.ael-refine-collapsed > .collection-family { display:none !important; }
@media(prefers-reduced-motion: reduce) {
 .collection-browser .searchbox > .ael-refine-toggle::after { transition:none; }
}


/* AEL v2.1 — finish flow: useful first, optional fields second; zero data changes. */
.panel-content.ael-finish-flow {
  display:flex; flex-direction:column; align-items:stretch; gap:0;
}
.ael-finish-flow > .panel-heading { order:0; }
.ael-finish-flow > .ael-context-note { order:1; }
.ael-finish-flow > p.muted { order:2; margin:2px 0 12px; font-size:12px; line-height:1.55; }
.ael-finish-flow > button.primary.full { order:3; min-height:48px; font-weight:750; margin-top:4px; }
.ael-finish-flow > .finish-action-grid { order:4; margin:9px 0 0; }
.ael-finish-flow > .ael-finish-disclosure { order:5; }
.ael-finish-flow > .business-links { order:6; margin-top:8px; }
.ael-finish-flow > .fineprint { order:7; }
.ael-finish-flow > .ael-meta-toggle { order:8; }
.ael-finish-flow > .stage5-meta-card { order:9; }
.ael-finish-flow > .constraint-status { order:10; }
.ael-finish-flow > .section-label { order:11; }
.ael-finish-flow > .order-list { order:12; }
.ael-finish-flow > .finish-preview { order:13; margin:15px 0 10px; }
.ael-finish-flow > button.quiet.full { order:14; }
.ael-finish-flow > .note { order:15; }
.ael-finish-flow .finish-action-grid > button:nth-child(4) { order:0; border-color:#c9a1b5; background:#fcf5f9; font-weight:750; }
.ael-finish-flow .finish-action-grid > button:nth-child(2) { order:1; border-color:#d9c4d0; }
.ael-finish-flow .finish-action-grid > button:nth-child(1) { order:2; }
.ael-finish-flow .finish-action-grid > button:nth-child(3) { order:3; font-size:12px; color:#82717a; }
.ael-finish-disclosure { margin:9px 0 4px; color:#755e6d; font-size:11px; line-height:1.55; }
.ael-meta-toggle {
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  margin:14px 0 0;padding:10px 12px;width:100%;min-height:44px;
  border:1px solid #e7d9e1;border-radius:10px;background:#faf7f9;
  color:#624458;font-size:12px;font-weight:750;cursor:pointer;text-align:left;
}
.ael-meta-toggle::after { content:'⌄';font-size:20px;font-weight:500;transition:transform .15s ease; }
.ael-meta-toggle[aria-expanded="true"]::after { transform:rotate(180deg); }
.ael-meta-toggle:focus-visible { outline:3px solid #b78ea7; outline-offset:2px; }
.ael-finish-flow .stage5-meta-card { margin:4px 0 14px;gap:10px; }
.ael-finish-flow .stage5-meta-card.ael-meta-collapsed > label { display:none !important; }
.ael-finish-flow .stage5-meta-card .consult-code { margin-top:0; }
.ael-finish-flow .fineprint { margin-top:4px; }
@media(max-width:375px) {
  .ael-finish-flow .finish-action-grid button { font-size:11px; padding:9px 6px; }
}
@media(prefers-reduced-motion:reduce) { .ael-meta-toggle::after {transition:none;} }

/* Stage 05 now has specific task instructions; omit old duplicate paragraph. */
.ael-finish-flow > p.muted { display:none; }

/* AEL R05: native outcome-driven hints and recovery only on real failure. */
.ael-finish-flow > .ael-action-outcome {order:5;}
.ael-action-outcome {
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px;
  margin:9px 0 5px;padding:10px 11px;border:1px solid #eadde4;
  border-radius:9px;background:#fbf7fa;color:#6b5060;font-size:12px;line-height:1.45;
}
.ael-outcome-success {background:#f1f8f2;border-color:#c9e1cd;color:#275c38;}
.ael-outcome-failure {background:#fff5f1;border-color:#f0d1c5;color:#875039;}
.ael-outcome-working {background:#f8f7fb;border-color:#dfd8eb;}
.ael-remedy {border:1px solid currentColor;color:inherit;background:transparent;border-radius:7px;
  padding:7px 10px;min-height:35px;font-size:12px;font-weight:750;cursor:pointer;white-space:nowrap;}
.ael-remedy:hover {background:#ffffffa8;}
.ael-manual-dialog .ael-guide-subtitle {margin-bottom:11px;}
.ael-manual-text {display:block;width:100%;min-height:190px;max-height:37dvh;resize:vertical;
  background:#fcfafb;border:1px solid #e1d2db;border-radius:10px;padding:12px;
  font:12px/1.65 ui-monospace,monospace;color:#392a34;white-space:pre-wrap;}
.ael-copy-actions {margin-top:13px;}
.ael-copy-download {display:flex;align-items:center;justify-content:center;flex:1;
  min-height:44px;border-radius:10px;border:1px solid #d8bcca;background:#fff;
  color:#6c3f58;text-align:center;text-decoration:none;font-size:13px;font-weight:750;padding:9px;}
.ael-copy-download:hover {background:#fcf4f8;}
.ael-unsupported-share {display:none!important;}
.ael-share-hint, .ael-download-tip {font-size:12px;line-height:1.5;margin:9px 0;
  color:#705d69;padding:8px 10px;background:#faf5f8;border-radius:8px;}
.ael-download-tip {background:#f1f8f2;color:#3d6c49;}
.ael-manual-dialog button:focus-visible,.ael-copy-download:focus-visible,.ael-remedy:focus-visible {
 outline:3px solid #b78ea7;outline-offset:2px;}
@media(max-width:375px){.ael-action-outcome{font-size:11px;}.ael-manual-dialog .ael-guide-actions{flex-direction:column;}}

.toast.ael-toast-failure {
  background:#fff4ed!important;color:#753629!important;
  border:1px solid #e1aa96!important;
  box-shadow:0 8px 22px #5a2b1d20!important;
}
.toast.ael-toast-failure svg {display:none!important;}
.toast.ael-toast-failure::before {content:'⚠';font-size:18px;color:#aa4e30;font-weight:800;}

/* AEL R06: the existing native add action stays visible and names the chosen product.
   No extra add button, modal, product state, or catalog entry is created. */
.modal.ael-product-inspect .product-detail > button.primary.full {
  position:sticky; bottom:0; z-index:3;
  display:grid;grid-template-columns:18px minmax(0,1fr);
  grid-template-rows:auto auto;justify-content:center;align-items:center;
  gap:2px 9px;min-height:65px;margin:12px 0 0;
  padding:11px 14px;text-align:left;white-space:nowrap;
  background:#65394f;border-color:#65394f;color:#fff;
  box-shadow:0 -6px 20px #ffffffee,0 3px 10px #42253924;
  font-size:13px;font-weight:750;line-height:1.4;
}
.modal.ael-product-inspect .product-detail > button.primary.full > svg {
  grid-column:1;grid-row:1 / span 2;width:18px;height:18px;
}
.modal.ael-product-inspect .product-detail > button.primary.full::after {
  content:attr(data-ael-product-name);grid-column:2;grid-row:2;
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:11px;font-weight:450;opacity:.84;
}
.modal.ael-product-inspect .product-detail > button.primary.full:focus-visible {
  outline:3px solid #d8adc4;outline-offset:2px;
}
.toast:has(> .ael-product-undo) {display:flex;align-items:center;gap:10px;max-width:min(94vw,440px);}
.toast .ael-product-undo {
  flex:none;min-height:36px;padding:7px 10px;border:1px solid #ffffff90;
  border-radius:8px;background:#ffffff1d;color:#fff;font-size:12px;font-weight:750;
  white-space:nowrap;cursor:pointer;
}
.toast .ael-product-undo:hover {background:#ffffff33;}
.toast .ael-product-undo:focus-visible {outline:3px solid #fff;outline-offset:2px;}
@media(max-width:375px) {
  .modal.ael-product-inspect .product-detail > button.primary.full {min-height:62px;padding:10px 12px;}
  .toast:has(> .ael-product-undo) {font-size:11px;gap:6px;}
  .toast .ael-product-undo {font-size:11px;padding-inline:8px;}
}


/* AEL R07 — selection is always delegated to the native React canvas.
   One contextual entry point only when a single item is selected and >=2 exist. */
.selection-strip .selected-title {gap:7px;}
.selection-strip .selected-title > span {flex:1 1 auto;min-width:0;}
.selection-strip .selected-title > span strong {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;max-width:100%;}
.selection-strip .ael-layer-trigger {
  flex:none;min-height:34px;padding:6px 10px;
  border:1px solid #d5bccb;border-radius:9px;background:#faf2f7;
  color:#603b52;font-size:12px;font-weight:750;cursor:pointer;white-space:nowrap;
}
.selection-strip .ael-layer-trigger:hover,
.selection-strip .ael-layer-trigger[aria-expanded="true"] {background:#f0e0e9;border-color:#b78fa8;}
.ael-layer-trigger:focus-visible,.ael-layer-popover button:focus-visible {outline:3px solid #b78ea7;outline-offset:2px;}
body.ael-layer-open {overflow:hidden;}
.ael-layer-backdrop {
  position:fixed;inset:0;z-index:260;display:flex;align-items:center;justify-content:center;
  background:#21131e80;padding:14px;backdrop-filter:blur(2px);
}
.ael-layer-popover {
  width:min(100%,450px);max-height:min(78dvh,570px);overflow:hidden;
  display:flex;flex-direction:column;border:1px solid #d7c4d0;border-radius:15px;
  background:#fff;box-shadow:0 18px 54px #27152650;
}
.ael-layer-heading {padding:11px 12px;display:flex;align-items:center;justify-content:space-between;
  border-bottom:1px solid #f0e9ee;color:#5c3e51;font-size:13px;}
.ael-layer-close {border:0;background:#f6eff3;color:#65465a;border-radius:7px;
  min-height:30px;padding:5px 10px;font-size:12px;cursor:pointer;}
.ael-layer-list {display:flex;flex-direction:column;gap:3px;overflow:auto;overscroll-behavior:contain;padding:5px;}
.ael-layer-item {display:flex;gap:9px;align-items:center;flex:none;min-height:53px;padding:5px 7px;
  width:100%;border:1px solid transparent;border-radius:8px;background:white;text-align:left;
  color:#4f3a46;font-size:12px;cursor:pointer;}
.ael-layer-item:hover,.ael-layer-item.active {border-color:#d9bdd0;background:#faf1f6;}
.ael-layer-thumb {width:40px;height:40px;object-fit:contain;flex:none;border-radius:6px;
  background:#f5f1f4;}
.ael-layer-item-copy {min-width:0;flex:1;display:flex;flex-direction:column;gap:2px;}
.ael-layer-item-copy strong {font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:750;}
.ael-layer-item-copy small {font-size:11px;color:#81717a;}
.ael-layer-check {font-size:17px;color:#7a536c;font-weight:750;}
@media(max-width:375px) {
  .selection-strip .ael-layer-trigger {font-size:11px;padding:5px 6px;min-height:32px;}
  .ael-layer-item {min-height:49px;}
  .ael-layer-thumb {width:34px;height:34px;}
}


/* AEL R08 - 3 physical-installation handoff questions, available only on demand.
   Unlike native layout-constraint status, this is NOT a feasibility verdict. */
.ael-finish-flow > .ael-site-review {order:11;}
.ael-finish-flow > .section-label {order:12;}
.ael-finish-flow > .order-list {order:13;}
.ael-finish-flow > .finish-preview {order:14;}
.ael-finish-flow > button.quiet.full {order:15;}
.ael-finish-flow > .note {order:16;}
.ael-site-review {
  margin:7px 0 13px;border:1px solid #e4d6df;border-radius:11px;
  background:#fffefa;color:#513d49;overflow:hidden;flex:0 0 auto;min-height:49px;
}
.ael-site-summary {
  cursor:pointer;min-height:49px;padding:11px 12px;
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  list-style:none;font-size:12px;
}
.ael-site-summary::-webkit-details-marker {display:none;}
.ael-site-summary::before {content:'◯';font-size:14px;color:#91677f;}
.ael-site-review[open] .ael-site-summary::before {content:'ⓘ';}
.ael-site-summary::after {content:'⌄';margin-left:auto;font-size:18px;line-height:1;color:#76596b;}
.ael-site-review[open] .ael-site-summary::after {content:'⌃';}
.ael-site-summary-title {font-size:12px;font-weight:750;color:#5c3b4c;}
.ael-site-summary-note {font-size:11px;color:#796672;}
.ael-site-summary:focus-visible,.ael-site-memo-action:focus-visible {outline:3px solid #bb8da8;outline-offset:-3px;}
.ael-site-body {border-top:1px solid #eee2e9;padding:12px 13px 13px;}
.ael-site-scope {margin:0 0 8px;font-size:12px;line-height:1.6;color:#785060;}
.ael-site-overview {margin:0 0 8px;color:#6c5865;font-size:11px;line-height:1.55;}
.ael-site-list {margin:0;padding:0;list-style:none;display:grid;gap:7px;counter-reset:sitecheck;}
.ael-site-list li {counter-increment:sitecheck;display:grid;grid-template-columns:22px minmax(0,1fr);gap:0 8px;
  font-size:12px;line-height:1.55;}
.ael-site-list li::before {content:counter(sitecheck);grid-row:span 2;display:grid;place-items:center;
  width:20px;height:20px;border-radius:50%;background:#f3e5ed;color:#6e435b;font-size:10px;font-weight:800;}
.ael-site-list li strong {font-size:12px;color:#5a4050;}
.ael-site-list li span {color:#625761;}
.ael-site-foot {border-top:1px dashed #eadddf;padding-top:11px;margin-top:12px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
.ael-site-memo-action {border:1px solid #d5b6c9;background:#fcf6f9;color:#69435a;
 border-radius:8px;min-height:38px;padding:8px 10px;font-family:inherit;font-size:12px;font-weight:700;line-height:1.35;cursor:pointer;}
.ael-site-memo-action:hover {background:#f9edf4;}
.ael-site-feedback {font-size:11px;color:#7a5d6c;line-height:1.45;}
@media(max-width:375px) {
  .ael-site-summary {gap:5px;padding:10px;}
  .ael-site-summary-note {font-size:10px;}
  .ael-site-body {padding:10px;}
}


/* Native product width comparison. */
.ael-scale-compare {margin:9px 0 0;padding:10px;border:1px solid #e3d3dd;border-radius:10px;
  background:#faf5f8;color:#674c5b;font-size:11px;line-height:1.45;}
.ael-scale-compare-head {display:flex;justify-content:space-between;align-items:center;gap:7px;flex-wrap:wrap;}
.ael-scale-compare-head strong {white-space:nowrap;color:#693d58;font-size:12px;}
.ael-scale-compare-track {position:relative;width:100%;height:7px;border-radius:6px;
  background:#e8dce4;overflow:visible;margin:10px 0 7px;}
.ael-scale-compare-track::after {position:absolute;content:'';left:50%;top:-3px;height:13px;width:2px;
  background:#794c67;z-index:1;}
.ael-scale-compare-bar {display:block;height:100%;border-radius:6px;background:#a56b8c;}
.ael-scale-compare-note {font-size:10.5px;color:#806d7a;line-height:1.5;margin:3px 0 0;}



/* AEL R10: paired reference photos replace (not duplicate) the native
   before/after compare while the user opts in. Native application stays intact. */
.designer-browser .section-label:has(> .ael-pair-toggle) {flex-wrap:wrap; gap:8px;}
.ael-pair-toggle {margin-left:auto;flex:none;min-height:36px; padding:6px 11px;
  color:#6a3d57;background:#fff9fc;border:1px solid #dcc4d2;border-radius:9px;
  font-size:12px;font-weight:750;cursor:pointer;}
.ael-pair-toggle[aria-pressed="true"]{background:#f4e7ef;border-color:#bd93aa;}
.ael-pair-toggle:focus-visible,.ael-pair-choose:focus-visible,.ael-pair-pick:focus-visible{
 outline:3px solid #b78ea7;outline-offset:2px;}
.designer-browser.ael-pair-mode > .designer-compare{display:none;}
.ael-pair-preview{display:flex;flex-direction:column;gap:10px;padding:11px;
 border:1px solid #eadce4;border-radius:13px;background:#fcf8fb;}
.ael-pair-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.ael-pair-card{display:flex;flex-direction:column;align-items:stretch;min-width:0;
 padding:10px;background:#fff;border:1px solid #e8dfe4;border-radius:11px;gap:6px;}
.ael-pair-label{color:#986f86;font-size:11px;font-weight:750;}
.ael-pair-card img{object-fit:contain;background:#f5f0f3;border-radius:8px;
 width:100%;height:230px;}
.ael-pair-name{color:#46323f;font-size:14px;line-height:1.35;overflow-wrap:anywhere;}
.ael-pair-meta{font-size:11px;color:#8a7380;line-height:1.4;min-height:14px;}
.ael-pair-choose{min-height:46px;margin-top:auto;padding:8px;border:1px solid #b58da5;
 background:white;border-radius:9px;color:#674358;font-size:13px;font-weight:750;}
.ael-pair-choose:hover{background:#f6eaf1;}
.ael-pair-pick-label{display:flex;flex-direction:column;gap:6px;
 font-size:12px;font-weight:750;color:#73556a;}
.ael-pair-pick{min-height:44px;width:100%;max-width:100%;background:white;
 border:1px solid #dacbd4;border-radius:9px;padding:8px;font-size:14px;color:#503d48;}
.ael-pair-caution{color:#7a6773;font-size:11px;line-height:1.5;}
@media(max-width:800px){
 .ael-pair-preview{padding:8px;gap:8px;}
 .ael-pair-photos{gap:6px;}
 .ael-pair-card{padding:7px;gap:5px;}
 .ael-pair-card img{height:155px;}
 .ael-pair-name{font-size:12px;}
 .ael-pair-label,.ael-pair-meta{font-size:10px;}
 .ael-pair-choose{font-size:11px;padding:7px 4px;min-height:44px;}
}
@media(max-width:350px){.ael-pair-card img{height:130px;}}


/* AEL R11 - one-item replacement is already native. Only reveal its path. */
.selection-strip .selection-tools > .ael-swap-trigger {
  border:1px solid #b992a9;background:#f6e9f0;color:#654159;
  border-radius:8px;min-height:40px;font-size:12px;font-weight:750;white-space:normal;
}
.selection-strip .selection-tools > .ael-swap-trigger[aria-pressed="true"] {
  color:white;background:#70475e;border-color:#70475e;
}
.ael-swap-trigger:focus-visible,.ael-swap-cancel:focus-visible,.ael-swap-confirm:focus-visible {
  outline:3px solid #b78fa7;outline-offset:2px;
}
.collection-browser > .ael-swap-hint {
  display:flex;align-items:center;gap:8px;justify-content:space-between;
  margin:8px 0;padding:9px 10px;border:1px solid #d8bacc;
  border-radius:10px;background:#fcf3f8;color:#67485b;
}
.ael-swap-hint-copy {display:flex;flex-direction:column;gap:3px;min-width:0;line-height:1.5;}
.ael-swap-hint-copy strong {font-size:12px;font-weight:750;}
.ael-swap-hint-copy small {font-size:11px;color:#806978;}
.ael-swap-cancel {border:1px solid #d7c0ce;color:#71556a;background:#fff;
  padding:7px 10px;min-height:38px;flex:none;border-radius:8px;cursor:pointer;}
/* Replacement mode never exposes two competing commit actions. The original
   add/replace handlers remain untouched and are restored on cancellation. */
.modal.ael-swap-dialog .product-detail > button.primary.full,
.modal.ael-swap-dialog .product-detail > button.outline.full { display:none !important; }
.modal.ael-swap-dialog {padding-bottom:92px;}
.modal.ael-swap-dialog > .ael-swap-bottom {
  display:flex;flex-direction:column;align-items:stretch;gap:5px;
  position:fixed;bottom:max(12px,env(safe-area-inset-bottom));left:50%;
  transform:translateX(-50%);width:min(450px,calc(100vw - 28px));z-index:100;
  padding:8px 10px 10px;border-radius:12px;
  background:#fffafdeF;border:1px solid #dec6d3;
  box-shadow:0 9px 25px #29162230;
}
.ael-swap-bottom-note {color:#70566a;font-size:11px;line-height:1.3;text-align:center;}
.ael-swap-confirm {border:0;border-radius:9px;background:#71445e;color:white;
  font-size:13px;line-height:1.3;font-weight:750;min-height:48px;padding:10px;cursor:pointer;}
.ael-swap-confirm:hover {background:#60384f;}
@media(max-width:375px){
  .selection-strip .selection-tools > .ael-swap-trigger {font-size:11px;min-height:42px;padding:6px 8px;}
  .ael-swap-bottom-note {font-size:10px;}
}

.selection-strip .selection-tools {flex-wrap:wrap;}
.selection-strip .selection-tools > .ael-swap-trigger {flex:1 0 100%;min-height:43px;}
/* The previous product-added toast must not cover the replacement confirmation. */
body:has(.modal.ael-swap-dialog) #root .toast {z-index:48;pointer-events:none;}


/* AEL R12 - keep native arrangement intact, but make repetitive positioning
   and multi-selection discovery easier for flowers/ribbons. */
.selection-strip .ael-arrange-assist {
  margin-top:8px;padding:10px 11px;border:1px solid #e3d4de;border-radius:11px;
  background:#fcf8fb;color:#5f4657;display:flex;flex-direction:column;gap:9px;
}
.ael-arrange-head {display:flex;justify-content:space-between;align-items:flex-start;gap:8px;}
.ael-arrange-copy {display:flex;flex-direction:column;gap:3px;min-width:0;}
.ael-arrange-copy strong {font-size:12px;color:#623f54;}
.ael-arrange-status {font-size:11px;line-height:1.45;color:#7a6673;}
.ael-arrange-multiplier {
  flex:none;display:inline-flex;align-items:center;justify-content:center;
  min-height:28px;padding:4px 8px;border-radius:999px;
  background:#f0e4eb;color:#6d4b60;font-size:11px;font-weight:750;
}
.ael-arrange-quick {display:flex;gap:7px;flex-wrap:wrap;}
.ael-arrange-quick > button,
.ael-arrange-step-choices > button {
  border:1px solid #d6bdcb;border-radius:8px;background:#fff;color:#65475a;
  min-height:36px;padding:7px 10px;font-size:12px;font-weight:750;cursor:pointer;
}
.ael-arrange-quick > button:hover,
.ael-arrange-step-choices > button:hover {background:#f8eef4;}
.ael-arrange-quick > button:focus-visible,
.ael-arrange-step-choices > button:focus-visible {outline:3px solid #b78ea7;outline-offset:2px;}
.ael-arrange-step {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;}
.ael-arrange-step-label {font-size:11px;color:#7a6471;font-weight:700;}
.ael-arrange-step-choices {display:flex;gap:6px;flex-wrap:wrap;}
.ael-arrange-step-choices > button.active {background:#6f435d;color:#fff;border-color:#6f435d;}
.ael-arrange-caption {margin:0;font-size:11px;line-height:1.55;color:#695463;}
.ael-arrange-guide {display:none;border-top:1px dashed #eadde5;padding-top:8px;}
.ael-arrange-assist.is-open .ael-arrange-guide {display:block;}
.ael-arrange-guide ol {margin:0;padding-left:18px;display:grid;gap:6px;}
.ael-arrange-guide li {font-size:11px;line-height:1.55;color:#66515d;}
@media(max-width:375px){
  .selection-strip .ael-arrange-assist{padding:9px 10px;gap:8px;}
  .ael-arrange-quick > button,.ael-arrange-step-choices > button{font-size:11px;padding:6px 8px;}
}


/* R13: grid is strictly optional and optically subtle. No screen state persists. */
.ael-compose-svg {pointer-events:none !important;user-select:none;}
.canvas-frame > .ael-compose-close {
  position:absolute;top:9px;right:9px;z-index:20;
  min-height:36px;padding:7px 11px;border-radius:9px;
  background:#fffdfaf0;border:1px solid #a88799;color:#623e54;
  box-shadow:0 3px 12px #2d182720;
  font-family:inherit;font-size:12px;line-height:1.25;font-weight:700;cursor:pointer;
}
.canvas-frame > .ael-compose-close:focus-visible {outline:3px solid #7d5270;outline-offset:2px;}
.selection-strip .ael-compose-counts {
  display:none;margin:0;padding:8px 10px;
  color:#684556;font-size:11px;line-height:1.55;font-weight:700;
  border:1px solid #ecdee7;background:#fff;border-radius:8px;
}
.selection-strip .ael-arrange-assist.is-open .ael-compose-counts {display:block;}
@media(max-width:375px){.canvas-frame > .ael-compose-close{min-height:34px;font-size:11px;right:6px;top:6px;}}


/* AEL R14: compare an earlier baseline with the current edit without altering the draft. */
.ael-compare-inline {display:flex;gap:7px;flex-wrap:wrap;}
.ael-compare-inline > button {
  flex:1 1 180px;border:1px solid #d6bdcb;border-radius:8px;background:#fff;color:#65475a;
  min-height:36px;padding:7px 10px;font-size:12px;font-weight:750;cursor:pointer;
}
.ael-compare-inline > button:hover:not(:disabled) {background:#f8eef4;}
.ael-compare-inline > button:focus-visible {outline:3px solid #b78ea7;outline-offset:2px;}
.ael-compare-inline > button:disabled {opacity:.55;cursor:not-allowed;background:#fbf6f9;}
.ael-compare-inline-note {margin:0;font-size:11px;line-height:1.55;color:#695463;}
.ael-compare-dialog {max-width:min(94vw,960px);}
.ael-compare-banner {
  margin:2px 0 12px;padding:9px 11px;border-radius:10px;
  background:#fbf3f7;border:1px solid #e5d3de;color:#6b4b5d;
  font-size:12px;line-height:1.5;font-weight:700;
}
.ael-compare-gallery {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:8px 0 10px;}
.ael-compare-card {
  display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid #e6d7e0;
  border-radius:12px;background:#fff;
}
.ael-compare-chip {
  align-self:flex-start;display:inline-flex;align-items:center;justify-content:center;
  min-height:24px;padding:2px 8px;border-radius:999px;background:#f3e6ee;color:#704a61;
  font-size:11px;font-weight:800;
}
.ael-compare-frame {
  border:1px solid #eadce5;border-radius:10px;background:#fffdfd;overflow:hidden;
  aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;
}
.ael-compare-frame img {max-width:100%;max-height:100%;display:block;object-fit:contain;background:#fff;}
.ael-compare-label {font-size:14px;color:#56384a;}
.ael-compare-meta, .ael-compare-note {margin:0;color:#6d5a67;font-size:12px;line-height:1.55;}
.ael-compare-actions {flex-wrap:wrap;}
.ael-compare-actions > button:last-child {background:#fff;color:#6c3f58;border:1px solid #d8bcca;}
@media(max-width:720px){
  .ael-compare-gallery {grid-template-columns:1fr;}
  .ael-compare-dialog {max-width:min(94vw,560px);}
  .ael-compare-actions {display:grid;grid-template-columns:1fr;}
  .ael-compare-actions > button {width:100%;justify-content:center;}
}
@media(max-width:375px){
  .ael-compare-inline > button{font-size:11px;padding:6px 8px;}
  .ael-compare-banner,.ael-compare-meta,.ael-compare-note{font-size:11px;}
}
