/* Memopics storefront-inspired editor chrome.
   Only interface controls and the workspace surround are styled here.
   No inherited typography or visual effects are applied to printable artwork. */
#editor{
  --retro-cream:#FFF4DF;
  --retro-paper:#FFFDF8;
  --retro-apricot:#F6C28B;
  --retro-blush:#F5CEDA;
  --retro-rose:#A72D50;
  --retro-brown:#91451F;
  --retro-ink:#30221D;
  --retro-line:#E5D4C3;
  --retro-muted:#75665C;
  --retro-hover:#FBE8D0;
}
#editor .editor-bar{background:#F8F5EF!important;border-bottom-color:var(--retro-line)!important;box-shadow:none!important}
#editor .canvas-area,#editor.is-cover .canvas-area,#editor .ed-body{background:#F2EEE7!important}
#editor .leftsidebar,#editor .tool-drawer{background:var(--retro-paper)!important;border-color:var(--retro-line)!important}
#editor .tool-rail{background:#F9F0E2!important;border-right-color:var(--retro-line)!important}
#editor .editor-bar .ed-back{
  border:1.5px solid var(--retro-brown)!important;border-radius:999px!important;
  background:var(--retro-cream)!important;color:var(--retro-brown)!important;
  box-shadow:0 2px 0 var(--retro-brown)!important;
  font-family:"Londrina Solid",sans-serif!important;font-weight:400!important;letter-spacing:.15px!important;
}
#editor .editor-bar .order-btn{
  border:2px solid var(--retro-rose)!important;border-radius:999px!important;
  background:var(--retro-cream)!important;color:var(--retro-rose)!important;
  box-shadow:0 3px 0 var(--retro-rose)!important;
}
#editor .editor-bar .order-btn>span{color:var(--retro-rose)!important;font-family:"Londrina Solid",sans-serif!important;font-weight:400!important}
#editor .editor-bar .order-btn .order-price{border-left-color:#A72D5050!important}
#editor .editor-bar .ed-back:hover,#editor .editor-bar .order-btn:hover{
  background:#FFF9EF!important;transform:translateY(-1px)!important
}
#editor .editor-bar .ed-back:active,#editor .editor-bar .order-btn:active{
  transform:translateY(2px)!important;box-shadow:0 1px 0 currentColor!important
}
#editor .editor-center-tools{background:var(--retro-paper)!important;border-color:var(--retro-line)!important;border-radius:999px!important;box-shadow:none!important}
#editor .editor-center-tools .history-btn,#editor .editor-center-tools .align-btn{color:var(--retro-brown)!important;border-radius:999px!important}
#editor .editor-center-tools .history-btn:not(:disabled):hover,#editor .editor-center-tools .align-btn:not(:disabled):hover{background:var(--retro-hover)!important;border-color:transparent!important;transform:none!important}
#editor .tool-rail .rail-btn{
  border:1px solid transparent!important;border-radius:16px!important;
  color:var(--retro-brown)!important;background:transparent!important;
  margin:2px 4px;box-sizing:border-box;
  font-family:"Londrina Solid",sans-serif!important;font-weight:400!important;font-size:12px;letter-spacing:.02em
}
#editor .tool-rail .rail-btn:hover:not(.active){background:var(--retro-hover)!important;color:var(--retro-brown)!important}
#editor .tool-rail .rail-btn.active{background:var(--retro-apricot)!important;border-color:var(--retro-brown)!important;color:#703512!important;box-shadow:0 2px 0 var(--retro-brown)}
#editor .tool-heading{border-color:var(--retro-line)!important}
#editor .tool-heading h3{font:400 23px/1.1 "Londrina Solid",sans-serif!important;letter-spacing:.1px!important;color:var(--retro-brown)!important}
#editor .tool-heading p,#editor .tool-drawer .gallery-hint,#editor .tool-drawer .side-description{color:var(--retro-muted)!important}
#editor .tool-drawer .cover-template-choice,#editor .tool-drawer .graphic-choice,#editor .tool-drawer .image-source10{
  border-color:var(--retro-line)!important;border-radius:14px!important;background:var(--retro-paper)!important;color:var(--retro-ink)!important
}
#editor .tool-drawer .cover-template-choice:hover,#editor .tool-drawer .graphic-choice:hover,#editor .tool-drawer .image-source10:hover{border-color:var(--retro-brown)!important;background:#FFF6E9!important}
#editor .tool-drawer .cover-template-choice.active,#editor .tool-drawer .graphic-choice.active{
  background:#FFF0DB!important;border-color:var(--retro-brown)!important
}
#editor .tool-drawer .template-name{font-family:"Londrina Solid",sans-serif!important;font-weight:400!important;font-size:14px!important;line-height:1.15!important;color:var(--retro-brown)!important}
#editor .tool-drawer .sidebtn,#editor .tool-drawer .mode-selector button,#editor .tool-drawer .graphic-side-choice button{
  border:1px solid var(--retro-line)!important;background:var(--retro-paper)!important;color:var(--retro-brown)!important;border-radius:999px!important
}
#editor .tool-drawer .sidebtn:hover,#editor .tool-drawer .mode-selector button:hover,#editor .tool-drawer .graphic-side-choice button:hover{background:var(--retro-hover)!important;border-color:var(--retro-brown)!important}
#editor .tool-drawer .mode-selector button.active,#editor .tool-drawer .graphic-side-choice button.active{background:var(--retro-apricot)!important;border-color:var(--retro-brown)!important;color:#703512!important}
#editor .tool-drawer .drop-hint10{background:#FFF4DF!important;border-color:#C89570!important;color:var(--retro-brown)!important;border-radius:12px!important}
#editor .worktop,#editor .canvas-help{color:var(--retro-muted)!important}
#editor .spread-nav{border-color:var(--retro-line)!important;background:var(--retro-paper)!important;border-radius:999px!important;box-shadow:none!important}
#editor .spread-nav button,#editor .spread-nav select,#editor .page-actions18 button{
  border-color:var(--retro-line)!important;background:var(--retro-paper)!important;color:var(--retro-brown)!important;border-radius:999px!important
}
#editor .spread-nav button:not(:disabled):hover,#editor .page-actions18 button:not(:disabled):hover{background:var(--retro-hover)!important;border-color:var(--retro-brown)!important}
#editor .page-actions18 .page-add18{background:var(--retro-cream)!important;border-color:var(--retro-brown)!important;box-shadow:0 2px 0 var(--retro-brown)!important;font-family:"Londrina Solid",sans-serif!important;font-weight:400!important}
#editor .page-actions18 #removePages18:not(:disabled){color:var(--retro-rose)!important}
#editor .thumbrail .thumb.active{border-color:var(--retro-rose)!important}
#editor .page-dock19 .dock-btn19{
  border-color:var(--retro-line)!important;background:var(--retro-paper)!important;color:var(--retro-brown)!important;border-radius:12px!important;box-shadow:0 2px 0 var(--retro-line)!important
}
#editor .page-dock19 .dock-btn19:not(:disabled):hover{background:var(--retro-cream)!important;border-color:var(--retro-brown)!important;box-shadow:0 2px 0 var(--retro-brown)!important}
#editor .page-dock19 .dock-btn19:disabled,#editor .page-actions18 button:disabled,#editor .spread-nav button:disabled{opacity:.42!important;box-shadow:none!important}
/* Context toolbar lives outside #editor. Never target the artwork's text/media. */
#componentPopup.toolbar14-active,#componentPopup.photo-toolbar130{background:#FFFDF8!important;border:1px solid #E5D4C3!important;border-radius:16px!important;box-shadow:0 4px 18px #30221D16!important;color:#30221D!important}
#componentPopup .toolbar14 .font14,#componentPopup .toolbar14 .size-control13 summary{background:#FFF9EF!important;border-color:#E5D4C3!important;color:#30221D!important;border-radius:9px!important}
#componentPopup .toolbar14 .tb-icon14{color:#91451F!important;border-radius:9px!important}
#componentPopup .toolbar14 .tb-icon14:hover,#componentPopup .toolbar14 .tb-icon14[aria-expanded=true]{background:#FBE8D0!important}
#componentPopup .toolbar14 .tb-icon14.is-active{background:#F6C28B!important;color:#703512!important}
#componentPopup .toolbar14 .tb-flyout14,#componentPopup .toolbar14 .size-menu13{background:#FFFDF8!important;border-color:#E5D4C3!important}
#editor :is(.ed-back,#resetTemplateBtn,.order-btn,.rail-btn,.history-btn,.align-btn,.sidebtn,.image-source10,.cover-template-choice,.graphic-choice,.dock-btn19,.page-actions18 button,.spread-nav button):focus-visible,
#componentPopup .toolbar14 :is(button,select,summary):focus-visible{outline:2px solid #A72D50!important;outline-offset:2px!important}
@media(max-width:730px){
 #editor .tool-rail .rail-btn{font-size:10px;margin:2px 2px;border-radius:12px!important}
 #editor .tool-heading h3{font-size:21px!important}
 #editor .page-dock19 .dock-btn19{border-radius:9px!important}
}
@media(prefers-reduced-motion:reduce){#editor .editor-bar button,#editor .tool-rail button,#editor .page-dock19 button{transition:none!important}}

/* Align the desktop rail controls with the actual HOME button, including its
   horizontal header inset. Keep the existing compact rail on small screens. */
@media(min-width:731px){
 #editor{--memo-rail-inset:22px;--memo-rail-button:90px;--memo-rail-width:calc(var(--memo-rail-button) + 2 * var(--memo-rail-inset) + 1px);--memo-drawer-width:270px}
 #editor .ed-body,#editor.is-cover .ed-body{grid-template-columns:calc(var(--memo-rail-width) + var(--memo-drawer-width)) minmax(0,1fr)!important}
 #editor .tool-rail{box-sizing:border-box;flex:0 0 var(--memo-rail-width)!important;width:var(--memo-rail-width);padding:7px var(--memo-rail-inset)!important;align-items:center;overflow-x:hidden;scrollbar-width:none}
 #editor .tool-rail .rail-btn{width:var(--memo-rail-button)!important;flex-shrink:0;margin:2px 0!important}
}
@media(min-width:731px) and (max-width:1330px){#editor{--memo-rail-inset:14px}}
@media(min-width:921px) and (max-width:1150px){#editor{--memo-drawer-width:238px}}
@media(min-width:731px) and (max-width:920px){#editor{--memo-drawer-width:216px}}
#editor .tool-panel[data-panel="templates"] .tool-heading{text-align:center}
#editor .tool-panel[data-panel="templates"] .tool-heading h3,#editor .tool-panel[data-panel="templates"] .tool-heading p{text-align:center}
#editor .template-search{display:flex;align-items:center;gap:8px;border:1px solid var(--retro-line);border-radius:999px;background:var(--retro-cream);padding:0 10px;min-height:38px;margin:0 0 13px;color:var(--retro-brown)}
#editor .template-search:focus-within{border-color:var(--retro-brown);box-shadow:0 0 0 2px #F6C28B50}
#editor .template-search svg{flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
#editor .template-search input{min-width:0;width:100%;border:0;background:transparent;outline:none!important;font:inherit;font-size:12px;color:var(--retro-ink);padding:8px 0;box-shadow:none}
#editor .template-search input::placeholder{color:var(--retro-muted);opacity:1}
#editor #coverTemplateGallery .cover-template-choice.memo-template-filtered{display:none!important}
#editor #coverTemplateGallery{justify-items:stretch}
#editor #coverTemplateGallery .cover-template-choice{align-items:center;text-align:center}
#editor #coverTemplateGallery .cover-thumb{width:100%;align-self:stretch}
#editor #coverTemplateGallery .template-name{text-align:center;width:100%}
#editor .template-search-empty{color:var(--retro-muted);text-align:center;font-size:12px;line-height:1.5;margin:14px 0}
#editor .template-search-empty[hidden]{display:none!important}

/* Continuous bottom navigation and page filmstrip, flush with workspace edges. */
#editor .canvas-area{--memo-footer-inset:15px;padding-inline:var(--memo-footer-inset)!important;padding-bottom:0!important}
#editor .canvas-area .spread-nav.nav18,
#editor .canvas-area .page-bottom18{
  box-sizing:border-box;width:calc(100% + 2 * var(--memo-footer-inset))!important;
  max-width:none!important;margin:0 calc(-1 * var(--memo-footer-inset))!important;
  border-radius:0!important;border-left:0!important;border-right:0!important;
  background:var(--retro-paper)!important;border-color:var(--retro-line)!important;
  box-shadow:none!important;flex-shrink:0;
}
#editor .canvas-area .spread-nav.nav18{border-bottom:0!important}
#editor .canvas-area .page-bottom18{padding:5px 8px 5px 8px;gap:8px;border-bottom:0!important}
#editor .page-bottom18 .thumb-viewport18,#editor .page-bottom18 .thumbrail{background:transparent!important;border-radius:0!important}
#editor .page-bottom18 #thumbRail{justify-content:flex-start!important;scroll-snap-type:x proximity;scroll-padding-inline:0;padding-inline:0!important}
#editor .page-bottom18 #thumbRail::before,#editor .page-bottom18 #thumbRail::after{content:none!important;display:none!important;flex:none!important}
#editor .page-bottom18 #thumbRail .thumb{scroll-snap-align:start}
#editor .page-bottom18 .page-actions18{border-left-color:var(--retro-line)!important;background:transparent!important}
#editor .spread-nav.nav18 .nav-zoom18{border-color:var(--retro-line)!important;border-radius:8px!important;background:transparent!important}
#editor .spread-nav.nav18 .nav-zoom18 button,#editor .spread-nav.nav18 .nav-zoom18 select{border-radius:0!important}
@media(max-width:920px){#editor .canvas-area{--memo-footer-inset:8px}}

/* Reset is part of the single editing toolbar, not a second purchase action. */
#editor .editor-center-tools #resetTemplateBtn{
 display:inline-flex!important;align-items:center;justify-content:center;gap:6px;
 flex:0 0 auto;min-width:0;white-space:nowrap;
 color:var(--retro-rose)!important;
 font-family:"Londrina Solid",sans-serif!important;font-weight:400!important;
 font-size:14px!important;padding:0 10px!important;
}
#editor .editor-center-tools #resetTemplateBtn svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#editor .editor-center-tools #resetTemplateBtn:hover{background:#FBE4E9!important}
@media(min-width:1091px) and (max-width:1330px){
 #editor .editor-center-tools #resetTemplateBtn{font-size:12px!important;padding:0 7px!important;gap:4px}
}
@media(max-width:560px){
 #editor .editor-center-tools #resetTemplateBtn{font-size:12px!important;padding:0 6px!important;gap:3px}
 #editor .editor-center-tools #resetTemplateBtn span{display:none}
 #editor .editor-center-tools #resetTemplateBtn{min-width:32px}
}

/* Equal left and right columns center the actual editor viewport. */
#editor .editor-cart-panel{display:none}
@media(min-width:1280px){
 #editor .ed-body,#editor.is-cover .ed-body{
  grid-template-columns:calc(var(--memo-rail-width) + var(--memo-drawer-width)) minmax(0,1fr) calc(var(--memo-rail-width) + var(--memo-drawer-width))!important;
 }
 #editor .editor-bar .editor-actions{visibility:hidden;pointer-events:none}
 #editor .editor-center-tools{left:50%!important}
 #editor .editor-cart-panel{grid-column:3;grid-row:1;display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;box-sizing:border-box;background:var(--retro-paper);border-left:1px solid var(--retro-line);color:var(--retro-ink);overflow:hidden}
 #editor .editor-cart-heading{padding:24px 20px 20px;text-align:center;border-bottom:1px solid var(--retro-line)}
 #editor .editor-cart-heading>span{font:600 10px/1.3 Arial,sans-serif;letter-spacing:1.2px;color:var(--retro-rose)}
 #editor .editor-cart-heading h2{font:400 32px/1.1 "Londrina Solid",sans-serif;margin:9px 0 0;color:var(--retro-brown)}
 #editor .editor-cart-content{flex:1;min-height:0;overflow:auto;padding:20px}
 #editor .editor-cart-caption{margin:0 0 12px;font:600 11px/1.4 Arial,sans-serif;color:var(--retro-muted);text-transform:uppercase;letter-spacing:.6px}
 #editor .editor-cart-book{display:flex;align-items:center;gap:12px;padding:13px 0 18px;border-bottom:1px solid var(--retro-line)}
 #editor .editor-cart-preview{width:100px;height:70px;flex:0 0 100px;position:relative;overflow:hidden;background:#F4EEE6;border-radius:6px}
 #editor .editor-cart-preview .live-thumb-stage37{top:0;left:0}
 #editor .editor-cart-book-info{min-width:0;flex:1}
 #editor .editor-cart-book-info h3{font:400 20px/1.15 "Londrina Solid",sans-serif;color:var(--retro-brown);margin:0 0 6px}
 #editor .editor-cart-book-info p{font:400 12px/1.4 Arial,sans-serif;color:var(--retro-muted);margin:0 0 9px}
 #editor .editor-cart-book-info strong{font:400 18px/1 "Londrina Solid",sans-serif;color:var(--retro-ink)}
 #editor .editor-cart-footer{padding:22px 20px 25px;border-top:1px solid var(--retro-line);background:var(--retro-paper)}
 #editor .editor-cart-total{display:flex;align-items:center;justify-content:space-between;gap:8px;font:400 21px/1.2 "Londrina Solid",sans-serif;color:var(--retro-brown)}
 #editor .editor-cart-total strong{font-size:27px;font-weight:400;color:var(--retro-ink)}
 #editor .editor-cart-delivery{font:400 11px/1.5 Arial,sans-serif;color:var(--retro-muted);margin:12px 0 18px}
 #editor #editorCartCheckout{display:block;width:100%;border:2px solid var(--retro-rose);border-radius:999px;background:var(--retro-cream);color:var(--retro-rose);font:400 19px/1.15 "Londrina Solid",sans-serif;padding:13px 8px;box-shadow:0 3px 0 var(--retro-rose);cursor:pointer}
 #editor #editorCartCheckout:hover{background:#FFF9EF}
 #editor #editorCartCheckout:active{transform:translateY(2px);box-shadow:0 1px 0 var(--retro-rose)}
 #editor #editorCartCheckout:focus-visible{outline:2px solid var(--retro-rose);outline-offset:3px}
}

@media(min-width:1280px){
 #editor .editor-bar .editor-center-tools{position:absolute!important;left:50%!important;right:auto!important;margin:0!important;transform:translateX(-50%)!important;width:max-content;max-width:calc(100% - 24px)}
 #editor .editor-cart-heading h2{font-size:44px!important;margin:0!important;line-height:1.05!important}
 #editor #editorCartCount{font-size:24px;color:var(--retro-muted);vertical-align:middle}
 #editor #editorCartAdd{display:block;width:100%;margin-top:18px;border:2px solid var(--retro-brown);border-radius:999px;background:var(--retro-cream);color:var(--retro-brown);font:400 19px/1.15 "Londrina Solid",sans-serif;padding:12px 8px;box-shadow:0 3px 0 var(--retro-brown);cursor:pointer}
 #editor #editorCartAdd:not(:disabled):hover{background:#FFF9EF}
 #editor #editorCartAdd:disabled{border-color:var(--retro-line);box-shadow:none;color:var(--retro-muted);background:#F3EDE4;cursor:default}
 #editor #editorCartRemove{display:block;margin:12px auto 0;padding:5px 10px;border:0;background:none;color:var(--retro-rose);font:400 14px/1.2 "Londrina Solid",sans-serif;text-decoration:underline;cursor:pointer}
 #editor #editorCartRemove[hidden]{display:none!important}
 #editor #editorCartStatus{font:400 12px/1.5 Arial,sans-serif;color:var(--retro-muted);text-align:center;margin:14px 0 0}
 #editor #editorCartCheckout:disabled{background:#EEE8DF;border-color:var(--retro-line);box-shadow:none;color:var(--retro-muted);cursor:not-allowed;transform:none}
 #editor :is(#editorCartAdd,#editorCartRemove):focus-visible{outline:2px solid var(--retro-rose);outline-offset:3px}
}

@media(min-width:1280px){
 #editor .editor-cart-saved{margin-top:22px;border-top:1px solid var(--retro-line);padding-top:16px}
 #editor .editor-cart-saved:empty{display:none}
 #editor .editor-cart-saved h3{font:400 21px/1.15 "Londrina Solid",sans-serif;color:var(--retro-brown);margin:0 0 12px}
 #editor .editor-cart-saved-book{display:flex;align-items:center;gap:6px;margin:0 0 9px;min-width:0}
 #editor .editor-cart-pick{flex:1;min-width:0;display:flex;align-items:center;text-align:left;gap:8px;padding:9px;border:1px solid var(--retro-line);border-radius:10px;background:var(--retro-paper);color:var(--retro-brown);cursor:pointer}
 #editor .editor-cart-pick[aria-pressed=true]{background:var(--retro-cream);border-color:var(--retro-brown)}
 #editor .editor-cart-saved-swatch{width:24px;height:34px;border-radius:2px;flex:none;background:var(--retro-apricot);box-shadow:1px 2px 2px #0002}
 #editor .editor-cart-pick strong,#editor .editor-cart-pick small{display:block;overflow-wrap:anywhere}
 #editor .editor-cart-pick strong{font:400 15px/1.15 "Londrina Solid",sans-serif}
 #editor .editor-cart-pick small{font:11px/1.3 Arial,sans-serif;color:var(--retro-muted);margin-top:3px}
 #editor .editor-cart-remove-book{border:0;background:transparent;color:var(--retro-rose);font:400 12px/1.2 "Londrina Solid",sans-serif;padding:8px 3px;text-decoration:underline;cursor:pointer;flex:none}
 #editor .editor-cart-pick:focus-visible,#editor .editor-cart-remove-book:focus-visible{outline:2px solid var(--retro-rose);outline-offset:2px}
}

/* Saved book previews use the exact same scaled spread as Currently editing. */
@media(min-width:1280px){
 #editor .editor-cart-saved-swatch{width:82px;height:56px;position:relative;overflow:hidden;border-radius:5px;box-shadow:none;flex:0 0 82px}
 #editor .editor-cart-saved-swatch .live-thumb-stage37{position:absolute;top:0;left:0;transform-origin:top left;pointer-events:none}
 #editor .editor-cart-pick{gap:10px;min-height:72px}
 #editor .editor-cart-pick>span:last-child{min-width:0}
}
#editor .page-dock19 .dock-btn19 svg{width:22px;height:22px;stroke-width:2.5}
#editor .page-dock19 .dock-btn19{font-family:"Londrina Solid",sans-serif!important;font-weight:400!important}
#editor .page-dock19 .dock-page19{color:var(--retro-brown)!important;font:400 12px/1.1 "Londrina Solid",sans-serif!important}
#editor .page-actions18 button{font-family:"Londrina Solid",sans-serif!important;font-weight:400!important}
#editor .page-actions18 button>svg{width:19px;height:19px;flex:0 0 19px;display:block}
@media(max-width:750px){#editor .page-dock19 .dock-btn19 svg{width:17px;height:17px}}

/* Desktop wordmark aligns with the centre of the symmetrical cart column. */
@media(min-width:1280px){
 #editor .editor-bar{position:relative}
 #editor .editor-bar .brand.memo-editor-brand{position:absolute!important;left:auto!important;right:calc((var(--memo-rail-width) + var(--memo-drawer-width))/2)!important;top:50%!important;transform:translate(50%,-50%)!important;margin:0!important}
}

/* Center the actual book, not the side docks or floating controls. Equal
   metadata/help rows center it between the header and page-navigation bar. */
@media(min-width:1280px){
 #editor .canvas-area,#editor.is-cover .canvas-area{
  display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:30px minmax(0,1fr) 30px auto auto;
  align-items:center;justify-items:center;gap:0!important;padding-top:0!important;padding-bottom:0!important;
 }
 #editor .canvas-area>.worktop{grid-row:1;width:100%;min-height:0!important;margin:0!important}
 #editor #canvas.main-canvas,#editor.is-cover #canvas.main-canvas{
  grid-row:2;box-sizing:border-box;width:100%;height:100%;min-height:0!important;
  padding:0!important;gap:0!important;flex-direction:row!important;
 }
 #editor .canvas-area>.canvas-help{grid-row:3;display:block!important;margin:0!important;text-align:center}
 #editor.is-cover .canvas-area>.canvas-help{visibility:hidden}
 #editor .canvas-area>.spread-nav.nav18{grid-row:4}
 #editor .canvas-area>.page-bottom18{grid-row:5}
 /* The desktop sidebar widths match, so the preview and toolbar share 50%. */
 #editor .editor-bar .editor-center-tools{left:50%!important}
}

/* Symmetric compact desktop toolbar: 62 + 4 + 62 = 128px on each side. */
@media(min-width:1280px){
 #editor .editor-bar .editor-center-tools{
  display:grid!important;grid-template-columns:62px 62px 1px 110px 1px 128px;
  align-items:center!important;justify-content:center!important;gap:4px!important;
  box-sizing:border-box;height:44px!important;min-height:44px!important;padding:0 6px!important;
 }
 #editor .editor-center-tools :is(#undoBtn,#redoBtn,#resetTemplateBtn){
  box-sizing:border-box;width:100%!important;min-width:0!important;max-width:none!important;
  height:34px!important;min-height:34px!important;padding:0 3px!important;margin:0!important;
  font-size:13px!important;
 }
 #editor .editor-center-tools #resetTemplateBtn{gap:4px!important}
 #editor .editor-center-tools .toolbar-divider{width:1px!important;height:24px!important;margin:0!important}
 #editor .editor-center-tools .alignment-tools{
  display:grid!important;grid-template-columns:repeat(3,34px);gap:4px!important;
  width:110px!important;min-width:110px!important;justify-content:center!important;margin:0!important;padding:0!important;
 }
 #editor .editor-center-tools .align-btn{
  box-sizing:border-box;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;margin:0!important;padding:0!important;
 }
}

/* Reusable photo filters and compact click-based object clipboard. */
#editor .memo-photo-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:9px 0 10px}
#editor .memo-photo-filters button,#editor .memo-object-clipboard button{border:1px solid var(--retro-line);background:var(--retro-paper);color:var(--retro-brown);border-radius:999px;font:400 13px/1.2 "Londrina Solid",sans-serif;cursor:pointer;white-space:nowrap}
#editor .memo-photo-filters button{padding:7px 2px}
#editor .memo-photo-filters button[aria-pressed="true"]{background:var(--retro-apricot);border-color:var(--retro-brown)}
#editor .memo-photo-filters button span{font-size:11px;opacity:.78}
#editor .memo-object-clipboard{display:flex;gap:5px;justify-content:center;align-items:center;position:absolute;left:50%;transform:translateX(-50%)}
#editor .memo-object-clipboard button{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:4px 9px}
#editor .memo-object-clipboard button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#editor .memo-object-clipboard button:disabled{opacity:.4;cursor:default}
#editor .memo-object-clipboard button:not(:disabled):hover{background:var(--retro-hover)}
#editor .memo-object-clipboard button:focus-visible,#editor .memo-photo-filters button:focus-visible{outline:2px solid var(--retro-rose);outline-offset:2px}
@media(max-width:730px){#editor .memo-object-clipboard{position:static;transform:none;order:3;width:100%}#editor .worktop{flex-wrap:wrap}}

#editor .canvas-area>.worktop{position:relative}

/* Consistent centered headings across every editing drawer. */
#editor .tool-drawer .tool-panel .tool-heading,
#editor .tool-drawer .tool-panel .tool-heading h3,
#editor .tool-drawer .tool-panel .tool-heading p{text-align:center!important}
#editor .tool-drawer .layout-total{float:none!important;display:block;margin:5px 0 0;text-align:center;font-size:12px;line-height:1.25;letter-spacing:normal}
#editor .tool-drawer .layout-total:empty{display:none}

/* Phone-transfer dialog: independent palette because modal is outside #editor. */
#phoneModal10{background:#30221D70; padding:16px}
#phoneModal10 .phone-card10{box-sizing:border-box;width:min(370px,100%);padding:22px 24px;background:#FFFDF8;color:#91451F;border:1px solid #E5D4C3;border-radius:24px;box-shadow:0 16px 55px #30221D30}
#phoneModal10 .phone-brand10{display:block;width:145px;max-width:65%;height:auto;margin:0 auto 16px;filter:brightness(0)}
#phoneModal10 h2{font:400 27px/1.1 "Londrina Solid",sans-serif;color:#91451F;margin:0 0 8px}
#phoneModal10 p{color:#75665C;font-size:13px;line-height:1.45;margin:0 auto 12px;max-width:290px}
#phoneModal10 .phone-qr10{box-sizing:border-box;width:min(190px,100%);height:auto;aspect-ratio:1;background:#fff;border:1px solid #E5D4C3;border-radius:12px;padding:8px;margin:14px auto 12px;image-rendering:pixelated}
#phoneModal10 .phone-copy10,#phoneModal10 .phone-close10{font:400 15px/1.15 "Londrina Solid",sans-serif!important;color:#91451F!important;border:1px solid #91451F!important;border-radius:999px!important;box-sizing:border-box;cursor:pointer;box-shadow:none!important}
#phoneModal10 .phone-copy10{background:#FFF4DF;padding:8px 18px}
#phoneModal10 .phone-close10{background:#F6C28B!important;min-height:42px;margin:3px 0 0;box-shadow:0 2px 0 #91451F!important}
#phoneModal10 .phone-copy10:hover,#phoneModal10 .phone-close10:hover{background:#FBE8D0!important}
#phoneModal10 .phone-status10{background:#F9F0E2;color:#91451F;border:1px solid #E5D4C3;border-radius:10px;padding:10px;margin:14px 0 12px;font-size:13px}
#phoneModal10 button:focus-visible{outline:2px solid #A72D50;outline-offset:3px}
