/*
 * main.css
 * Star Post — all visual styles for main site and order flow.
 */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --cream:#F7F1E3;--parchment:#EDE0C4;--ink:#2B2118;
  --rust:#B85C2A;--gold:#C49A3C;--faded:#A89880;--sand:#D4C4A0;--sage:#6B7C5C;
  --bg-p1:#F7F1E3;--bg-p2:#C9DDE8;--bg-p3:#DDE5D8;--bg-p4:#B85C2A;
  --sp-cover-frame-img:none;
  --sp-envelope-img:none;
  --sp-postcard-back-digital-img:none;
  --sp-postcard-back-physical-img:none;
}
html,body{width:100%;min-height:100%;overflow:hidden;}
html{width:100%;font-family:'DM Sans',sans-serif;background:var(--ink);}
/* Server-rendered viewer pages need scrolling */
html:has(body.viewer-page),body.viewer-page{overflow:auto;height:auto;min-height:100%;background:#080614;}
body.viewer-page #root,body.viewer-page #site{position:static;overflow:visible;height:auto;}
/* root container */
#root{position:fixed;inset:0;overflow:hidden;}

/* wipe */
#wipe{position:fixed;inset:0;z-index:800;pointer-events:none;transform:scaleX(0);transform-origin:left center;background:var(--ink);}
#wipe.go{animation:wipeIn .5s cubic-bezier(.77,0,.18,1) forwards,wipeOut .5s cubic-bezier(.77,0,.18,1) .5s forwards;}
@keyframes wipeIn{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes wipeOut{from{transform:scaleX(1);transform-origin:right center}to{transform:scaleX(0);transform-origin:right center}}
/* main site */
#site{position:fixed;inset:0;transition:opacity .4s,transform .4s;z-index:1;}
#site.hidden{opacity:0;pointer-events:none;transform:scale(.97);}
#stage{position:absolute;inset:0;}
.page{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;overflow:hidden;}
.page.active{opacity:1;pointer-events:all;}
.page::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:10;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");opacity:.7;}
/* ── op2-shell: reset main-site .page inheritance, fill of-page ── */
.op2-shell {
  position: relative;
  inset: auto;
  opacity: 1;
  pointer-events: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex: 1;
  min-height: 0;
}
.op2-shell::after { display: none; }

/* ── #op2 of-page must not scroll — shell handles it ── */

/* ── Bottom deck width cap ── */
.op2-shell .center-bottom-deck {
  width: min(1152px, 100%) !important;
  min-width: 0 !important;
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}

/* ── .main fills available space, scrollable ── */


#counter{position:fixed;left:32px;bottom:32px;z-index:500;font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--faded);display:flex;align-items:center;gap:8px;}
#counter-cur{font-family:'Playfair Display',serif;font-size:22px;color:var(--ink);transition:color .4s;}
#counter-cur.light{color:var(--cream);}
#counter-sep{opacity:.3;}#counter-tot{opacity:.5;}
@keyframes pulse{0%,100%{opacity:.4}50%{opacity:1}}
@keyframes fadeUp{from{opacity:0;transform:translateY(32px)}to{opacity:1;transform:translateY(0)}}
.anim{opacity:0;}.anim.go{animation:fadeUp .72s cubic-bezier(.22,1,.36,1) forwards;}
#dots{display:flex;gap:14px;justify-content:center;margin-top:36px;}
.dot{width:10px;height:10px;border-radius:50%;background:rgba(168,152,128,.3);cursor:pointer;transition:background .3s,transform .3s;border:1.5px solid rgba(168,152,128,.45);}
.dot.on{background:var(--rust);transform:scale(1.25);border-color:var(--rust);}

/* PAGE 1 */
#p1{background:var(--bg-p1);}
.p1-stamp-tl{position:absolute;top:40px;left:48px;width:64px;height:76px;border:2.5px solid var(--gold);opacity:.22;transform:rotate(-5deg);display:flex;align-items:center;justify-content:center;font-size:28px;color:var(--gold);}
.p1-postmark{position:absolute;top:52px;right:64px;width:90px;height:90px;border:1.5px dashed rgba(168,152,128,.4);border-radius:50%;display:flex;align-items:center;justify-content:center;}
.p1-postmark span{font-size:8px;letter-spacing:.18em;text-transform:uppercase;color:var(--faded);text-align:center;line-height:2;}
.p1-lines{position:absolute;bottom:0;right:0;width:45%;height:100%;background:repeating-linear-gradient(90deg,transparent,transparent 59px,rgba(168,152,128,.07) 59px,rgba(168,152,128,.07) 60px);}
.p1-content{position:relative;z-index:2;max-width:720px;padding:0 48px;text-align:center;}
.p1-eyebrow{display:inline-flex;align-items:center;gap:12px;font-size:10px;letter-spacing:.28em;text-transform:uppercase;color:var(--faded);margin-bottom:32px;}
.p1-eyebrow::before,.p1-eyebrow::after{content:'';width:32px;height:1px;background:var(--faded);}
.p1-logo{font-family:'Playfair Display',serif;font-size:clamp(56px,8vw,110px);line-height:1;font-weight:400;color:var(--ink);margin-bottom:8px;}
.p1-logo em{font-style:italic;color:var(--rust);}
.p1-tagline{font-family:'Cormorant Garamond',serif;font-size:clamp(18px,2.4vw,26px);font-style:italic;font-weight:300;color:var(--faded);margin-bottom:48px;line-height:1.5;}
.p1-hint{display:flex;align-items:center;justify-content:center;gap:10px;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--faded);animation:pulse 2.4s ease-in-out infinite;}
.p1-hint-dot{width:6px;height:6px;border-radius:50%;background:var(--rust);}

/* PAGE 2 */
#p2{background:var(--bg-p2);background-image:radial-gradient(ellipse at 20% 80%,rgba(100,140,170,.15) 0%,transparent 50%);}
.p2-inner{position:relative;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;width:100%;max-width:640px;padding:0 48px;}
.p2-postmark{width:80px;height:80px;border:1.5px dashed rgba(60,90,120,.35);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:36px;position:relative;}
.p2-postmark::before{content:'';position:absolute;inset:5px;border:1px dashed rgba(60,90,120,.18);border-radius:50%;}
.p2-postmark-num{font-family:'Playfair Display',serif;font-size:22px;font-style:italic;color:var(--rust);transition:opacity .3s,transform .3s;}
.p2-step-label{font-size:10px;letter-spacing:.3em;text-transform:uppercase;color:rgba(50,75,100,.55);margin-bottom:20px;transition:opacity .3s,transform .3s;}
.p2-title{font-family:'Playfair Display',serif;font-size:clamp(36px,5vw,62px);font-weight:400;color:var(--ink);line-height:1.1;margin-bottom:20px;transition:opacity .3s,transform .3s;}
.p2-title em{font-style:italic;color:var(--rust);}
.p2-ornament{display:flex;align-items:center;gap:14px;margin-bottom:20px;}
.p2-ornament::before,.p2-ornament::after{content:'';flex:1;max-width:48px;height:1px;background:rgba(60,90,120,.2);}
.p2-ornament-glyph{color:var(--gold);font-size:13px;letter-spacing:4px;}
.p2-desc{font-family:'Cormorant Garamond',serif;font-size:clamp(17px,2vw,21px);font-style:italic;font-weight:300;color:rgba(30,55,80,.65);line-height:1.75;max-width:440px;margin-bottom:40px;transition:opacity .3s,transform .3s;}
.p2-dots{position:absolute;right:36px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:12px;z-index:6;}
.p2-dot{width:7px;height:7px;border-radius:50%;background:rgba(60,90,120,.2);border:1px solid rgba(60,90,120,.35);transition:background .4s,transform .4s;}
.p2-dot.on{background:var(--rust);border-color:var(--rust);transform:scale(1.3);}
.p2-tap{position:absolute;bottom:36px;left:50%;transform:translateX(-50%);font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:rgba(50,75,100,.4);animation:pulse 2.4s ease-in-out infinite;z-index:6;white-space:nowrap;}

/* PAGE 3 */
#p3{background:var(--bg-p3);background-image:radial-gradient(ellipse at 15% 25%,rgba(107,124,92,.15) 0%,transparent 50%);}
.p3-inner{position:relative;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;max-width:480px;padding:0 32px;}
.p3-header{width:100%;text-align:center;margin-bottom:36px;}
.p3-header-title{font-family:'DM Sans',sans-serif;font-size:10px;font-weight:500;letter-spacing:.32em;text-transform:uppercase;color:rgba(74,55,40,.4);}
.p3-row{width:100%;display:flex;align-items:center;justify-content:space-between;padding:26px 0;border-bottom:1px solid rgba(74,55,40,.1);gap:20px;transition:transform .3s cubic-bezier(.22,1,.36,1);}
.p3-row:first-of-type{border-top:1px solid rgba(74,55,40,.1);}
.p3-row:hover{transform:scale(1.04);}
.p3-row-left{display:flex;align-items:center;gap:16px;}
.p3-row-icon{line-height:1;flex-shrink:0;display:flex;align-items:center;transition:transform .3s;}
.p3-row:hover .p3-row-icon{transform:rotate(-6deg) scale(1.15);}
.p3-row-word{font-family:'Playfair Display',serif;font-size:32px;font-weight:400;color:#4A3728;line-height:1;}
.p3-row-word em{font-style:italic;color:#8B5E3C;}
.p3-row-sub{font-family:'Cormorant Garamond',serif;font-size:19px;font-style:italic;font-weight:400;color:#4A3728;text-align:right;}

/* PAGE 4 */
#p4{background:var(--bg-p4);background-image:radial-gradient(ellipse at 20% 80%,rgba(122,46,46,.6) 0%,transparent 55%),radial-gradient(ellipse at 80% 20%,rgba(43,33,24,.4) 0%,transparent 50%);}
.p4-pattern{position:absolute;inset:0;background-image:radial-gradient(circle,rgba(247,241,227,.06) 1px,transparent 1px);background-size:28px 28px;}
.p4-content{position:relative;z-index:2;text-align:center;max-width:700px;padding:0 48px;}
.p4-pre{font-size:10px;letter-spacing:.3em;text-transform:uppercase;color:rgba(247,241,227,.55);margin-bottom:28px;}
.p4-heading{font-family:'Playfair Display',serif;font-size:clamp(42px,7vw,96px);font-weight:400;line-height:1.05;color:var(--cream);margin-bottom:28px;}
.p4-heading em{font-style:italic;}
.p4-sub{font-family:'Cormorant Garamond',serif;font-size:clamp(16px,2vw,22px);font-style:italic;font-weight:300;color:rgba(247,241,227,.7);margin-bottom:52px;}
.p4-actions{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;}
.btn-white{background:var(--cream);color:var(--rust);padding:16px 44px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;font-weight:500;border:none;cursor:pointer;border-radius:1px;transition:background .2s,transform .15s;}
.btn-white:hover{background:#fff;transform:translateY(-2px);}
.btn-outline-white{background:transparent;color:var(--cream);padding:15px 36px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;font-weight:500;border:1px solid rgba(247,241,227,.5);cursor:pointer;border-radius:1px;}
.p4-note{margin-top:28px;font-size:11px;color:rgba(247,241,227,.45);letter-spacing:.1em;}


/* ════════════════════════════════════════════════════════════
   ORDER PAGE 2 — Rich Postcard Editor
   Full dark redesign with three-column layout.
   All selectors prefixed op2- to avoid conflicts.
   ════════════════════════════════════════════════════════════ */
/* ORDER FLOW - slides up over everything */
#order-flow{
  position:fixed;
  inset:0;
  z-index:999;
  background:var(--cream);
  transform:translateY(100%);
  transition:transform .5s cubic-bezier(.22,1,.36,1);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
#order-flow.open{transform:translateY(0);}

/* Order flow header */
.of-header{flex-shrink:0;background:var(--cream);border-bottom:1px solid var(--sand);padding:16px 48px;display:flex;align-items:center;justify-content:space-between;}
.of-logo{font-family:'Playfair Display',serif;font-size:17px;color:var(--ink);}
.of-logo em{font-style:italic;color:var(--rust);}
.of-steps{display:flex;align-items:center;}
.of-dot{width:8px;height:8px;border-radius:50%;border:1.5px solid var(--sand);background:transparent;transition:all .3s;}
.of-dot.on{background:var(--rust);border-color:var(--rust);}
.of-dot.done{background:var(--sand);}
.of-line{width:28px;height:1px;background:var(--sand);}
.of-close{background:none;border:none;cursor:pointer;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--faded);font-family:'DM Sans',sans-serif;transition:color .2s;}
.of-close:hover{color:var(--rust);}

/* Pages */
.of-pages{flex:1;position:relative;overflow:hidden;min-height:0;}
.of-page{position:absolute;inset:0;display:flex;flex-direction:column;background:var(--cream);overflow-y:auto;transform:translateX(100%);transition:transform .4s cubic-bezier(.22,1,.36,1);opacity:0;}
.of-page.cur{transform:translateX(0);opacity:1;}
.of-page.prev{transform:translateX(-60%);opacity:0;}

/* Footer */
.of-footer{flex-shrink:0;background:var(--cream);border-top:1px solid var(--sand);padding:14px 48px;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.of-note{font-size:12px;color:var(--faded);font-style:italic;font-family:'Cormorant Garamond',serif;}
.of-next{background:var(--ink);color:var(--cream);border:none;cursor:pointer;padding:12px 30px;font-size:11px;letter-spacing:.18em;text-transform:uppercase;font-family:'DM Sans',sans-serif;font-weight:500;border-radius:1px;transition:background .2s;}
.of-next:hover{background:var(--rust);}
.of-next:disabled{opacity:.35;cursor:not-allowed;}
.of-back{background:none;border:none;cursor:pointer;font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--faded);font-family:'DM Sans',sans-serif;transition:color .2s;}
.of-back:hover{color:var(--ink);}

/* ── OP1: Type + Image ── */
.op1-body{flex:1;max-width:820px;width:100%;margin:0 auto;padding:24px 48px;display:flex;flex-direction:column;gap:20px;overflow-y:auto;}
.op-sec-label{font-size:10px;letter-spacing:.28em;text-transform:uppercase;color:var(--faded);margin-bottom:10px;}
.op1-types{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.op1-tcard{border:1.5px solid var(--sand);padding:16px 18px;cursor:pointer;border-radius:2px;background:white;transition:border-color .2s,background .2s;position:relative;}
.op1-tcard:hover{border-color:var(--faded);}
.op1-tcard.sel{border-color:var(--rust);background:rgba(184,92,42,.04);}
.op1-tcard.sel::after{content:'✦';position:absolute;top:10px;right:12px;font-size:9px;color:var(--rust);}
.op1-tcard-top{display:flex;align-items:center;gap:8px;margin-bottom:6px;}
.op1-tcard-name{font-family:'Playfair Display',serif;font-size:17px;color:var(--ink);}
.op1-tcard-name em{font-style:italic;color:var(--rust);}
.op1-tcard-plus{font-size:8px;letter-spacing:.1em;text-transform:uppercase;color:var(--sage);background:rgba(107,124,92,.12);padding:2px 5px;border-radius:1px;}
.op1-tcard-desc{font-size:12px;color:var(--faded);line-height:1.6;margin-bottom:6px;}
.op1-tcard-price{font-family:'Playfair Display',serif;font-size:13px;color:var(--gold);}
.op1-divider{display:flex;align-items:center;gap:10px;}
.op1-divider span{flex:1;height:1px;background:var(--sand);}
.op1-divider em{font-family:'Cormorant Garamond',serif;font-style:italic;font-size:12px;color:var(--faded);white-space:nowrap;}
.op1-img-row{display:flex;align-items:flex-start;gap:12px;}
.op1-upload{position:relative;width:90px;height:60px;flex-shrink:0;border:1.5px dashed var(--sand);border-radius:2px;background:white;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;transition:border-color .2s;overflow:hidden;}
.op1-upload:hover{border-color:var(--faded);}
.op1-upload.sel{border:2px solid var(--rust);}
.op1-upload p{font-size:8px;letter-spacing:.1em;text-transform:uppercase;color:var(--faded);text-align:center;pointer-events:none;}
.op1-or{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--faded);align-self:center;flex-shrink:0;}
.op1-tgrid{display:none;}
.op1-tmpl{position:relative;aspect-ratio:3/2;border-radius:2px;overflow:hidden;cursor:pointer;border:2px solid transparent;transition:border-color .2s,transform .18s;}
.op1-tmpl:hover{transform:scale(1.06);}
.op1-tmpl.sel{border-color:var(--rust);}
.op1-tmpl.sel::after{content:'✦';position:absolute;top:3px;right:4px;font-size:7px;color:var(--rust);background:rgba(247,241,227,.9);padding:1px 2px;border-radius:1px;}
.op1-tmpl canvas{width:100%;height:100%;display:block;}
.op1-tmpl-lbl{position:absolute;bottom:0;left:0;right:0;background:rgba(43,33,24,.5);font-size:7px;letter-spacing:.05em;text-transform:uppercase;color:rgba(247,241,227,.8);padding:2px 3px;text-align:center;}
.op1-more{aspect-ratio:3/2;border-radius:2px;border:1px dashed var(--sand);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:rgba(247,241,227,.4);}
.op1-more span{font-size:13px;color:var(--faded);}
.op1-more p{font-size:7px;letter-spacing:.08em;text-transform:uppercase;color:var(--faded);text-align:center;line-height:1.3;}

/* ── No custom cursor — system default ── */
/* Hide feather by default, show only on textarea */
#feather-cursor{display:none;position:fixed;z-index:9999;pointer-events:none;width:36px;height:36px;transform:translate(-4px,-32px);transition:transform .08s ease;}

/* ── OP2: Vintage Postcard Writing Desk ── */
.op2-body{
  flex:1;
  display:flex;flex-direction:column;
  align-items:center;justify-content:flex-start;
  background:#E8DFC8;
  background-image:
    repeating-linear-gradient(0deg,transparent,transparent 27px,rgba(139,100,50,.12) 27px,rgba(139,100,50,.12) 28px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  padding:28px 32px 16px;
  gap:16px;
  overflow-y:auto;
}
/* Desk label */
.op2-desk-label{
  font-family:'Cormorant Garamond',serif;
  font-size:11px;font-style:italic;
  color:rgba(74,55,40,.45);
  letter-spacing:.12em;
  align-self:flex-start;
}
/* Postcard wrapper — exact A6 physical size: 148mm × 105mm @ 96dpi = 559×397px */
.op2-postcard-wrap{
  width:559px;
  flex-shrink:0;
  display:flex;flex-direction:column;
  gap:0;
  box-shadow:0 8px 40px rgba(43,33,24,.25),0 2px 8px rgba(43,33,24,.15);
  border-radius:2px;
  overflow:hidden;
  border:1px solid rgba(139,100,50,.25);
}

/* Tabs */
.op2-tabs{
  display:flex;background:#2B2118;gap:0;
}
.op2-tab{
  background:none;border:none;border-bottom:2px solid transparent;
  padding:7px 18px;font-family:'DM Sans',sans-serif;font-size:10px;
  letter-spacing:.14em;text-transform:uppercase;color:rgba(247,241,227,.35);
  cursor:pointer;transition:all .2s;margin-bottom:-1px;
}
.op2-tab-active{color:#C49A3C;border-bottom-color:#C49A3C;}

/* FRONT — full A6 height 397px */
.op2-front{
  position:relative;
  width:100%;
  height:397px;
  background:var(--parchment);
  overflow:hidden;
  flex-shrink:0;
}
.op2-cover-bg{position:absolute;inset:0;background-size:cover;background-position:center;z-index:1;}
.op2-front::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(to bottom,rgba(43,33,24,.12) 0%,transparent 35%,rgba(43,33,24,.2) 100%);
}
.op2-cover-caption{
  position:absolute;bottom:8px;left:12px;z-index:2;
  font-family:'Cormorant Garamond',serif;font-style:italic;font-size:10px;
  color:rgba(247,241,227,.6);letter-spacing:.06em;
}

/* BACK — full A6 height 397px */
.op2-back{
  background:#F5EED8;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  display:flex;
  height:397px;
  overflow:hidden;
}
/* Message side — 60% width = ~335px */
.op2-back-l{
  width:335px;flex-shrink:0;
  padding:16px 16px 12px;
  display:flex;flex-direction:column;gap:4px;
  border-right:1px solid rgba(180,40,40,.2);
  background-image:repeating-linear-gradient(
    0deg,transparent,transparent 24px,
    rgba(139,100,50,.1) 24px,rgba(139,100,50,.1) 25px
  );
  background-position:0 36px;
  overflow:hidden;
}
/* Address side — 40% */
.op2-back-r{
  flex:1;
  padding:16px 14px 80px 14px;
  display:flex;flex-direction:column;gap:6px;
  position:relative;
  overflow:hidden;
  min-height:120px;
}
.op2-back-lbl{
  font-family:'DM Sans',sans-serif;
  font-size:7px;letter-spacing:.18em;text-transform:uppercase;
  color:rgba(139,100,50,.5);margin-bottom:2px;flex-shrink:0;
}
/* Message textarea */
.op2-msg{
  flex:1;
  background:transparent;
  border:none;outline:none;
  font-family:'Cormorant Garamond',serif;
  font-size:14px;font-style:italic;
  color:#3A2810;
  line-height:25px;
  resize:none;padding:1px 0;
  width:100%;
  overflow:hidden;
  cursor:none;
}
.op2-msg::placeholder{color:rgba(139,100,50,.35);font-style:italic;}
.op2-char{font-size:7px;color:rgba(139,100,50,.4);text-align:right;flex-shrink:0;}
/* Address inputs — live on postcard, font auto-shrinks to fit */
.op2-ai{
  background:transparent;border:none;
  border-bottom:1px solid rgba(139,100,50,.18);
  outline:none;
  font-family:'Cormorant Garamond',serif;
  font-size:13px;font-style:italic;
  color:#3A2810;
  padding:3px 0;
  width:100%;
  flex-shrink:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  transition:font-size .15s, color .15s;
}
.op2-ai:focus{border-bottom-color:rgba(139,100,50,.45);}
.op2-ai::placeholder{color:rgba(139,100,50,.32);}
/* Warning state — text too long to print clearly */
.op2-ai.too-long{
  color:#B85C2A;
  border-bottom-color:rgba(184,92,42,.5);
}
/* Fit warning tooltip */
.op2-fit-warn{
  font-size:8px;font-style:italic;
  color:rgba(184,92,42,.8);
  margin-top:-3px;margin-bottom:1px;
  min-height:10px;flex-shrink:0;
  display:none;
}
.op2-fit-warn.show{display:block;}
/* QR / Stamp box — bottom-right of address side */
.op2-stamp-box{position:absolute;bottom:12px;right:12px;flex-shrink:0;}
/* Address suggestion dropdown */
#op2-addr-dropdown .addr-opt{
  padding:5px 8px;
  font-family:'Cormorant Garamond',serif;
  font-size:11px;font-style:italic;
  color:#3A2810;cursor:pointer;
  border-bottom:1px solid rgba(139,100,50,.1);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#op2-addr-dropdown .addr-opt:hover{background:rgba(139,100,50,.08);}
#op2-addr-dropdown .addr-opt:last-child{border-bottom:none;}
#op2-addr-dropdown .addr-none{
  padding:5px 8px;
  font-family:'Cormorant Garamond',serif;
  font-size:10px;font-style:italic;
  color:rgba(139,100,50,.45);
}

/* Date + sender panel — right column */
.op2-right{
  width:100%;max-width:560px;
  display:grid;grid-template-columns:1fr 1fr;
  gap:16px;
  background:rgba(232,223,200,.5);
  border:1px solid rgba(139,100,50,.2);
  border-radius:2px;
  padding:16px 18px;
}
.op2-right-col{display:flex;flex-direction:column;gap:8px;}
.op2-lbl{font-size:9px;letter-spacing:.22em;text-transform:uppercase;color:rgba(139,100,50,.55);}
.op2-date-hint{font-family:'Cormorant Garamond',serif;font-size:11px;font-style:italic;color:rgba(74,55,40,.45);}
.op2-date-row{display:flex;align-items:center;gap:8px;}
.op2-date-in{
  flex:1;
  background:rgba(255,252,244,.8);
  border:1px solid rgba(139,100,50,.25);
  border-radius:1px;
  padding:7px 10px;
  font-family:'Playfair Display',serif;
  font-size:13px;color:#3A2810;
  outline:none;transition:border-color .2s;
}
.op2-date-in:focus{border-color:rgba(139,100,50,.5);}
.op2-tick{
  width:22px;height:22px;border-radius:50%;
  background:var(--sage);color:white;
  display:none;align-items:center;justify-content:center;
  font-size:11px;flex-shrink:0;
}
.op2-tick.show{display:flex;}
.op2-price-box{
  background:rgba(196,154,60,.08);border:1px solid rgba(196,154,60,.2);
  border-radius:1px;padding:8px 10px;
}
.op2-tier{font-size:8px;letter-spacing:.14em;text-transform:uppercase;color:rgba(196,154,60,.6);margin-bottom:2px;}
.op2-price-val{font-family:'Playfair Display',serif;font-size:18px;color:var(--gold);}
.op2-err{font-size:10px;color:var(--rust);min-height:12px;font-family:'Cormorant Garamond',serif;font-style:italic;}
.op2-sender-input{
  background:rgba(255,252,244,.8);
  border:1px solid rgba(139,100,50,.2);
  border-radius:1px;padding:7px 10px;
  font-family:'Cormorant Garamond',serif;
  font-size:13px;font-style:italic;color:#3A2810;
  outline:none;width:100%;transition:border-color .2s;
}
.op2-sender-input:focus{border-color:rgba(139,100,50,.5);}
.op2-sender-input::placeholder{color:rgba(139,100,50,.35);}
@media(max-width:768px){
  .op2-right{grid-template-columns:1fr;}
  .op2-back-r{width:130px;}
}

/* ── OP3: Sealed ── */
.op3-body{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px 48px;gap:14px;}
.op3-seal{width:130px;height:130px;border-radius:2px;overflow:hidden;border:1px solid var(--sand);background:var(--parchment);margin-bottom:4px;}
.op3-title{font-family:'Playfair Display',serif;font-size:clamp(24px,4vw,40px);font-weight:400;color:var(--ink);}
.op3-title em{font-style:italic;color:var(--rust);}
.op3-sub{font-family:'Cormorant Garamond',serif;font-size:16px;font-style:italic;color:var(--faded);max-width:420px;line-height:1.7;}
.op3-key-box{background:rgba(196,154,60,.05);border:1px solid rgba(196,154,60,.16);border-radius:2px;padding:13px 20px;display:flex;flex-direction:column;gap:5px;align-items:center;}
.op3-key-lbl{font-size:9px;letter-spacing:.2em;text-transform:uppercase;color:var(--faded);}
.op3-key-val{font-family:'DM Sans',monospace;font-size:14px;letter-spacing:.2em;color:var(--rust);}
.op3-key-note{font-size:10px;color:var(--faded);font-style:italic;font-family:'Cormorant Garamond',serif;}

/* ── OP4: Payment ── */
.op4-body{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:22px 48px;gap:13px;max-width:500px;margin:0 auto;width:100%;overflow-y:auto;}
.op4-title{font-family:'Playfair Display',serif;font-size:24px;font-weight:400;color:var(--ink);}
.op4-sum{background:rgba(247,241,227,.7);border:1px solid var(--sand);border-radius:2px;padding:11px 16px;width:100%;display:flex;flex-direction:column;gap:6px;}
.op4-srow{display:flex;justify-content:space-between;font-size:12px;}
.op4-slbl{color:var(--faded);}
.op4-sval{font-family:'Playfair Display',serif;color:var(--ink);}
.op4-stotal{font-family:'Playfair Display',serif;font-size:18px;color:var(--rust);}
.op4-card{width:100%;display:flex;flex-direction:column;gap:10px;}
.op4-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.op4-row.full{grid-template-columns:1fr;}
.op4-field{display:flex;flex-direction:column;gap:4px;}
.op4-lbl{font-size:9px;letter-spacing:.2em;text-transform:uppercase;color:var(--faded);}
.op4-in{background:white;border:1.5px solid var(--sand);border-radius:2px;padding:9px 12px;font-family:'Cormorant Garamond',serif;font-size:15px;font-style:italic;color:var(--ink);outline:none;transition:border-color .2s;}
.op4-in:focus{border-color:var(--rust);}
.op4-in::placeholder{color:rgba(168,152,128,.38);}
.op4-pay-btn{width:100%;padding:13px;background:var(--ink);color:var(--cream);border:none;cursor:pointer;border-radius:2px;font-family:'DM Sans',sans-serif;font-size:11px;letter-spacing:.2em;text-transform:uppercase;font-weight:500;transition:background .2s;}
.op4-pay-btn:hover{background:var(--rust);}
.op4-legal{font-size:10px;color:var(--faded);text-align:center;font-style:italic;font-family:'Cormorant Garamond',serif;}

/* ── OP4 Success ── */
/* Success page — full dark starfield background, all content centred */
.op4-suc{display:none;position:relative;flex-direction:column;align-items:center;justify-content:center;flex:1;overflow:hidden;background:#080614;min-height:460px;}
.op4-suc.show{display:flex;}
.op4-stars-bg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;}
.op4-suc-content{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 32px;text-align:center;width:100%;}
.op4-suc-label{font-size:9px;letter-spacing:.32em;text-transform:uppercase;color:rgba(196,154,60,.45);font-family:'DM Sans',sans-serif;}
.op4-suc-title{font-family:'Playfair Display',serif;font-size:clamp(18px,3vw,28px);font-weight:400;color:#F7F1E3;line-height:1.3;margin:0;}
.op4-suc-title em{font-style:italic;color:#C49A3C;}
.op4-suc-sub{font-family:'Cormorant Garamond',serif;font-size:14px;font-style:italic;color:rgba(247,241,227,.45);max-width:340px;line-height:1.6;margin:0;}
.op4-suc-sub strong{color:rgba(247,241,227,.75);}
/* QR frame with corner decorations */
.op4-qr-frame{position:relative;padding:12px;background:rgba(247,241,227,.04);border:1px solid rgba(196,154,60,.15);margin:4px 0;}
.op4-qr-corner{position:absolute;width:12px;height:12px;border-color:#C49A3C;border-style:solid;}
.op4-qr-tl{top:-1px;left:-1px;border-width:2px 0 0 2px;}
.op4-qr-tr{top:-1px;right:-1px;border-width:2px 2px 0 0;}
.op4-qr-bl{bottom:-1px;left:-1px;border-width:0 0 2px 2px;}
.op4-qr-br{bottom:-1px;right:-1px;border-width:0 2px 2px 0;}
#op4-qr{display:block;}
.op4-qr-note{font-size:10px;font-style:italic;color:rgba(196,154,60,.4);font-family:'Cormorant Garamond',serif;letter-spacing:.04em;}
/* Order details pill */
.op4-suc-details{display:flex;gap:0;border:1px solid rgba(196,154,60,.18);overflow:hidden;margin:4px 0;}
.op4-suc-detail-row{display:flex;flex-direction:column;padding:8px 20px;gap:3px;}
.op4-suc-detail-row+.op4-suc-detail-row{border-left:1px solid rgba(196,154,60,.18);}
.op4-suc-detail-lbl{font-size:8px;letter-spacing:.18em;text-transform:uppercase;color:rgba(196,154,60,.4);font-family:'DM Sans',sans-serif;}
.op4-suc-detail-val{font-size:14px;font-style:italic;color:#F7F1E3;font-family:'Cormorant Garamond',serif;}
.op4-suc-note{font-size:13px;font-style:italic;color:rgba(247,241,227,.55);font-family:'Cormorant Garamond',serif;}
/* Remove old classes */
.op4-suc-anim,.op4-suc-row,.op4-qr-wrap,.op4-cust,.op4-cust-lbl,.op4-cust-id,.op4-cust-note,.op4-cust-klbl,.op4-cust-key{display:none;}
.of-back-btn{background:var(--ink);color:var(--cream);border:none;cursor:pointer;padding:10px 26px;font-size:11px;letter-spacing:.18em;text-transform:uppercase;font-family:'DM Sans',sans-serif;border-radius:1px;margin-top:4px;}
.of-back-btn:hover{background:var(--rust);}

@media(max-width:768px){
  .p1-content{padding:0 28px;}.p1-stamp-tl,.p1-postmark{display:none;}
  .p2-inner{padding:0 28px;}.p3-inner{padding:0 24px;}.p4-content{padding:0 28px;}
  .of-header,.of-footer{padding:12px 20px;}
  .op1-body{padding:16px 20px;}.op1-types{grid-template-columns:1fr;}
  .op1-tgrid{grid-template-columns:repeat(4,1fr);}
  .op2-body{grid-template-columns:1fr;padding:16px 20px;}
  .op4-body{padding:16px 20px;}.op4-row{grid-template-columns:1fr;}
  .op3-body{padding:20px;}
}

/* ── Field validation ── */
.of-field-wrap{display:flex;flex-direction:column;gap:2px;}
.of-field-err{font-size:10px;color:var(--rust);font-family:'Cormorant Garamond',serif;font-style:italic;min-height:13px;}
.op2-ai.err,.op2-msg.err,.op2-date-in.err,.op2-sender-input.err{border-color:var(--rust)!important;}
.op2-ai.ok,.op2-date-in.ok,.op2-sender-input.ok{border-color:var(--sage)!important;}
.op2-char.warn{color:var(--rust)!important;}
.op2-char.good{color:var(--sage)!important;}
.op1-upload-err{font-size:10px;color:var(--rust);font-family:'Cormorant Garamond',serif;font-style:italic;margin-top:4px;display:none;}

/* ── Missing fields hint in footer ── */
.of-missing{font-size:11px;color:var(--rust);font-family:'Cormorant Garamond',serif;font-style:italic;flex:1;text-align:center;}

/* ── Confirm close modal ── */
#of-confirm-modal{display:none;position:fixed;inset:0;z-index:9999;background:rgba(43,33,24,.7);align-items:center;justify-content:center;}
#of-confirm-modal.show{display:flex;}
.of-modal{background:var(--cream);border:1px solid var(--sand);max-width:340px;width:90%;padding:30px;text-align:center;}
.of-modal-title{font-family:'Playfair Display',serif;font-size:18px;font-weight:400;color:var(--ink);margin-bottom:8px;}
.of-modal-title em{font-style:italic;color:var(--rust);}
.of-modal-sub{font-family:'Cormorant Garamond',serif;font-size:13px;font-style:italic;color:var(--faded);margin-bottom:20px;line-height:1.65;}
.of-modal-btns{display:flex;gap:10px;justify-content:center;}
.of-modal-stay{background:var(--ink);color:var(--cream);border:none;cursor:pointer;padding:10px 22px;font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-family:'DM Sans',sans-serif;}
.of-modal-leave{background:none;border:1px solid var(--sand);color:var(--faded);cursor:pointer;padding:10px 20px;font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-family:'DM Sans',sans-serif;}

/* ── T&C checkbox ── */
.of-terms{display:flex;align-items:flex-start;gap:10px;margin:10px 0 0;}
.of-terms input[type=checkbox]{width:14px;height:14px;flex-shrink:0;margin-top:2px;accent-color:var(--rust);cursor:pointer;}
.of-terms label{font-size:11px;color:var(--faded);font-family:'Cormorant Garamond',serif;font-style:italic;line-height:1.6;cursor:pointer;}
.of-terms label a{color:var(--rust);text-decoration:underline;}

/* ── Physical digital copy toggle ── */
.op2-toggle-btn{background:none;border:1px solid rgba(139,100,50,.3);color:rgba(139,100,50,.6);font-family:"Cormorant Garamond",serif;font-size:11px;font-style:italic;padding:4px 12px;cursor:pointer;border-radius:1px;transition:all .15s;}
.op2-toggle-btn.op2-toggle-active{background:rgba(139,100,50,.12);border-color:rgba(139,100,50,.5);color:rgba(58,40,16,.9);font-weight:500;}

/* ── Shared simple-card page component (expire, error, not-yet pages) ── */
.simple-card{border:1px solid rgba(196,154,60,.2);background:rgba(196,154,60,.04);padding:32px;text-align:center;margin-top:40px;}
.simple-card-icon{font-size:32px;margin-bottom:16px;opacity:.6;color:#C49A3C;}
.simple-card-title{font-size:18px;font-weight:400;font-style:italic;color:rgba(247,241,227,.75);margin:0 0 12px;}
.simple-card-body{font-size:13px;color:rgba(247,241,227,.4);line-height:1.8;margin:0 0 20px;}
.simple-card-btn{display:inline-block;background:#C49A3C;color:#0D0B14;text-decoration:none;padding:10px 24px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-family:sans-serif;}

/* ── Open-sender: timer bar + expired overlay ── */
.timer-bar{background:#2C3E2D;padding:10px 20px;display:flex;align-items:center;justify-content:center;gap:12px;}
.timer-label{color:rgba(247,241,227,.6);font-size:11px;letter-spacing:.1em;text-transform:uppercase;font-family:sans-serif;}
.timer-val{color:#C49A3C;font-size:18px;font-family:'Courier New',monospace;font-weight:bold;min-width:50px;text-align:center;}
.timer-warn{color:#E8A87C;font-size:10px;letter-spacing:.08em;font-family:sans-serif;}
.expired-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.85);z-index:9999;align-items:center;justify-content:center;}
.expired-overlay[style*="flex"]{display:flex;}
.expired-box{background:#FAF6EE;max-width:380px;width:90%;padding:36px;text-align:center;border:1px solid #D8E4D8;}
.expired-icon{font-size:28px;color:#C49A3C;margin-bottom:12px;}
.expired-title{font-size:18px;font-style:italic;color:#2C3E2D;margin:0 0 10px;}
.expired-body{font-size:13px;color:#7A8C7A;line-height:1.8;margin:0 0 20px;}
.expired-btn{display:inline-block;background:#2C3E2D;color:#F7F1E3;text-decoration:none;padding:10px 24px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-family:sans-serif;margin:4px;}
.expired-btn-secondary{background:#F4F8F4;color:#4A5E3A;border:1px solid #C8D8C8;}

/* ── Postcard viewer pages (/open, /open-sender) ──────────────────────────── */
body{margin:0;padding:0;background:#0D0B14;color:#F7F1E3;font-family:Georgia,'Times New Roman',serif;}
.wrap{max-width:680px;margin:0 auto;padding:32px 16px;}
.logo{text-align:center;margin-bottom:8px;}
.logo h1{font-size:20px;font-weight:400;letter-spacing:.06em;color:#F7F1E3;}
.logo h1 em{font-style:italic;color:#C49A3C;}
.logo p{font-size:9px;letter-spacing:.28em;text-transform:uppercase;color:rgba(247,241,227,.3);margin-top:3px;}
.stars{text-align:center;color:rgba(196,154,60,.25);font-size:11px;letter-spacing:.4em;margin-bottom:20px;}
/* Tabs */
.tabs{display:flex;border-bottom:1px solid rgba(196,154,60,.2);margin-bottom:0;}
.tab{padding:9px 20px;font-size:11px;letter-spacing:.1em;text-transform:uppercase;
     color:rgba(247,241,227,.35);cursor:pointer;border-bottom:2px solid transparent;
     margin-bottom:-1px;transition:all .2s;font-family:sans-serif;}
.tab.active{color:#C49A3C;border-bottom-color:#C49A3C;}
/* Postcard frame */
.postcard-frame{background:#F5EED8;box-shadow:0 8px 40px rgba(0,0,0,.6);overflow:hidden;}
.postcard-frame img{width:100%;display:block;}
/* From line */
.from-line{font-size:12px;font-style:italic;color:rgba(247,241,227,.3);text-align:center;margin:10px 0 16px;letter-spacing:.04em;}
/* Info boxes */
.privacy{background:rgba(107,124,92,.07);border:1px solid rgba(107,124,92,.2);padding:12px 16px;margin:0 0 12px;}
.privacy p{font-size:12px;color:rgba(247,241,227,.45);line-height:1.7;}
.privacy strong{color:rgba(247,241,227,.65);}
.warning{background:rgba(184,92,42,.07);border:1px solid rgba(184,92,42,.28);padding:12px 16px;margin:0 0 16px;}
.warning p{font-size:12px;color:rgba(247,241,227,.5);line-height:1.7;}
.warning strong{color:rgba(184,92,42,.85);}
.warning a{color:#C49A3C;}
/* Download button */
.dl-wrap{text-align:center;margin:0 0 10px;}
.dl-btn{display:inline-block;background:#C49A3C;color:#0D0B14;text-decoration:none;
        padding:13px 36px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;
        font-family:Georgia,serif;cursor:pointer;border:none;-webkit-appearance:none;}
.dl-note{font-size:11px;color:rgba(247,241,227,.2);text-align:center;line-height:1.7;margin-bottom:24px;}
/* Footer */
.footer{border-top:1px solid rgba(196,154,60,.1);padding-top:16px;text-align:center;margin-top:16px;}
.footer p{font-size:11px;color:rgba(247,241,227,.2);line-height:1.8;}
.footer a{color:rgba(247,241,227,.28);text-decoration:none;}
/* Back address lines */
.back-addr-line{font-family:Georgia,serif;font-size:clamp(8px,1.4vw,11px);font-style:italic;
                color:#3A2810;padding:3px 0;border-bottom:1px solid rgba(139,100,50,.18);
                white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0;}
/* Close confirmation modal */
.close-modal{display:none;position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.85);
             align-items:center;justify-content:center;}
.close-modal.show{display:flex;}
.close-box{background:#0D0B14;border:1px solid rgba(196,154,60,.35);max-width:360px;
           width:90%;padding:32px;text-align:center;}
.close-stars{font-size:18px;color:rgba(196,154,60,.4);letter-spacing:.3em;margin-bottom:16px;}
.close-title{font-size:18px;font-weight:400;font-style:italic;color:#F7F1E3;margin-bottom:8px;}
.close-title strong{color:#C49A3C;}
.close-sub{font-size:13px;color:rgba(247,241,227,.4);line-height:1.7;margin-bottom:24px;}
.close-sub strong{color:rgba(184,92,42,.9);}
.close-btns{display:flex;flex-direction:column;gap:10px;}
.close-dl-btn{background:#C49A3C;color:#0D0B14;border:none;cursor:pointer;
              padding:12px 24px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;
              font-family:Georgia,serif;width:100%;}
.close-stay-btn{background:none;color:rgba(247,241,227,.5);border:1px solid rgba(196,154,60,.2);
                cursor:pointer;padding:10px 24px;font-size:11px;letter-spacing:.1em;
                text-transform:uppercase;font-family:Georgia,serif;width:100%;}
.close-leave-btn{background:none;color:rgba(247,241,227,.3);border:1px solid rgba(247,241,227,.1);
                 cursor:pointer;padding:10px 24px;font-size:11px;letter-spacing:.1em;
                 text-transform:uppercase;font-family:Georgia,serif;width:100%;}
/* Purchase key page */
.purchase-wrap{max-width:400px;margin:60px auto;text-align:center;padding:0 16px;}

/* ── Recipient timer (romantic) ── */
.recipient-timer{text-align:center;padding:10px 16px 4px;margin-bottom:4px;}
.recipient-timer-text{font-family:'Cormorant Garamond',Georgia,serif;font-size:15px;font-style:italic;color:rgba(196,154,60,.7);letter-spacing:.04em;}

/* ── Recipient UniKey reference ── */
.uni-key-ref{font-size:11px;font-style:italic;color:rgba(247,241,227,.25);text-align:center;margin:0 0 8px;font-family:'Cormorant Garamond',serif;letter-spacing:.04em;}
.uni-key-ref strong{color:rgba(196,154,60,.45);font-style:normal;letter-spacing:.1em;}

/* ── Recipient sticky download button ── */
.dl-btn-primary{background:#C49A3C !important;color:#0D0B14 !important;font-size:14px !important;padding:16px 48px !important;width:100%;display:block;text-align:center;letter-spacing:.1em;}
.dl-btn-primary:hover{background:#D4AA4C !important;}
.dl-sticky{position:relative;margin:16px 0;}

/* ── Blockchain proof banner ── */
.blockchain-proof{
  display:flex;align-items:flex-start;gap:14px;
  background:linear-gradient(135deg,rgba(15,30,15,.95),rgba(10,20,30,.95));
  border:1px solid rgba(139,195,74,.4);
  border-radius:10px;padding:16px 18px;
  margin:16px 0;text-decoration:none;
  transition:border-color .2s;
}
.blockchain-proof:hover{border-color:rgba(139,195,74,.8);}
.blockchain-proof-pending{opacity:.6;cursor:default;}
.blockchain-proof-icon{
  font-size:28px;color:#8BC34A;flex-shrink:0;
  animation:blockchain-pulse 2.5s ease-in-out infinite;
}
@keyframes blockchain-pulse{0%,100%{opacity:1;}50%{opacity:.5;}}
.blockchain-proof-body{flex:1;}
.blockchain-proof-title{
  font-size:13px;font-weight:500;
  color:#8BC34A;
  font-family:sans-serif;
  letter-spacing:.02em;
  margin-bottom:4px;
}
.blockchain-proof-sub{
  font-size:11px;color:rgba(139,195,74,.6);
  font-family:sans-serif;line-height:1.6;
}


/* ── Page 1 new layout ── */
.op1-body-new{flex:1;max-width:860px;width:100%;margin:0 auto;padding:12px 32px;display:flex;flex-direction:column;gap:10px;overflow:hidden;}
.op1-hero{display:grid;grid-template-columns:1fr 72px;gap:10px;align-items:start;flex:1;min-height:0;}
.op1-preview-wrap{position:relative;border-radius:8px;overflow:hidden;height:100%;background:#0a0a18;}
.op1-preview-wrap canvas{display:block;width:100%;height:100%;}
.op1-preview-overlay{position:absolute;bottom:0;left:0;right:0;padding:20px 12px 8px;background:linear-gradient(transparent,rgba(0,0,0,.55));display:flex;align-items:flex-end;justify-content:space-between;}
.op1-preview-name{font-family:'Cormorant Garamond',Georgia,serif;font-size:13px;font-style:italic;color:rgba(255,255,255,.9);}
.op1-preview-price{font-size:12px;color:rgba(255,220,100,.85);font-weight:500;}
.op1-anim-badge{position:absolute;top:8px;left:8px;background:rgba(0,0,0,.5);color:rgba(255,255,255,.6);font-size:9px;padding:3px 8px;border-radius:20px;letter-spacing:.03em;font-family:sans-serif;}
.op1-thumbs{display:flex;flex-direction:column;gap:4px;overflow-y:auto;scrollbar-width:none;height:100%;align-content:flex-start;}
.op1-upload-thumb{position:relative;aspect-ratio:3/2;border-radius:4px;border:1.5px dashed var(--sand);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;overflow:hidden;transition:border-color .15s;animation:op1-pulse 2.5s ease-in-out infinite;}
.op1-upload-thumb:hover,.op1-upload-thumb.sel{border-color:var(--rust);animation:none;}
.op1-upload-thumb.sel{border-style:solid;border-width:2px;}
.op1-upload-icon{font-size:14px;color:var(--faded);pointer-events:none;}
.op1-upload-lbl{font-size:7px;letter-spacing:.08em;text-transform:uppercase;color:var(--faded);pointer-events:none;}
@keyframes op1-pulse{0%,100%{border-color:var(--sand);}50%{border-color:rgba(184,92,42,.45);}}
.op1-tgrid-new{display:flex;flex-direction:column;gap:5px;}
.op1-tmpl-new{position:relative;aspect-ratio:3/2;border-radius:4px;overflow:hidden;cursor:pointer;border:2px solid transparent;transition:border-color .12s,transform .1s;}
.op1-tmpl-new:hover{transform:scale(1.04);}
.op1-tmpl-new.sel{border-color:var(--rust);}
.op1-tmpl-new.sel .op1-tmpl-chk{opacity:1;transform:scale(1);}
.op1-tmpl-chk{position:absolute;top:2px;right:2px;width:13px;height:13px;background:var(--rust);border-radius:50%;display:flex;align-items:center;justify-content:center;opacity:0;transform:scale(.5);transition:opacity .12s,transform .12s;font-size:8px;color:white;line-height:1;}
.op1-tmpl-new canvas{display:block;width:100%;height:100%;}
.op1-types-new{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.op1-tcard-new{border:1.5px solid var(--sand);padding:10px 14px;cursor:pointer;border-radius:6px;background:white;transition:border-color .15s,background .15s,transform .1s;position:relative;}
.op1-tcard-new:hover{border-color:var(--faded);transform:translateY(-1px);}
.op1-tcard-new.sel{border-color:var(--rust);background:rgba(184,92,42,.04);}
.op1-tcard-new.sel .op1-tcard-radio{background:var(--rust);border-color:var(--rust);}
.op1-tcard-new.sel .op1-tcard-radio::after{opacity:1;}
.op1-tcard-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;}
.op1-tcard-title{font-family:'Playfair Display',serif;font-size:16px;color:var(--ink);}
.op1-plus{font-size:8px;letter-spacing:.1em;text-transform:uppercase;color:var(--sage);background:rgba(107,124,92,.12);padding:2px 5px;border-radius:1px;font-family:sans-serif;}
.op1-tcard-sub{font-size:11px;color:var(--faded);line-height:1.6;margin-bottom:2px;}
.op1-tcard-price-new{font-family:'Cormorant Garamond',serif;font-size:15px;color:var(--gold);margin-top:8px;}
.op1-tcard-price-new em{font-size:10px;font-style:normal;color:var(--faded);margin-right:2px;}
.op1-tcard-radio{width:14px;height:14px;border-radius:50%;border:1.5px solid var(--sand);background:var(--cream);flex-shrink:0;position:relative;transition:all .12s;}
.op1-tcard-radio::after{content:'';position:absolute;inset:3px;border-radius:50%;background:white;opacity:0;transition:opacity .12s;}
@media(max-width:600px){.op1-hero{grid-template-columns:1fr 60px;}.op1-types-new{grid-template-columns:1fr;}}

/* ── Security strip ── */
.op1-security-strip{
  font-size:10px;letter-spacing:.06em;color:var(--faded);
  text-align:center;padding:6px 0;
  border-top:0.5px solid var(--sand);
  border-bottom:0.5px solid var(--sand);
  font-family:'Cormorant Garamond',serif;font-style:italic;
}

/* ── Type card features ── */
.op1-tcard-feats{display:flex;flex-direction:column;gap:5px;margin:8px 0;}
.op1-tcard-feat{
  font-size:11px;color:var(--ink);
  padding-left:12px;position:relative;line-height:1.4;
}
.op1-tcard-feat::before{
  content:'—';position:absolute;left:0;
  color:var(--gold);font-size:10px;
}

/* ── Noble selection ring — no tick, just gold border glow ── */
.op1-tmpl-new{border:2px solid transparent;transition:border-color .15s,box-shadow .15s;}
.op1-tmpl-new.sel{
  border-color:var(--gold) !important;
  box-shadow:0 0 0 2px rgba(196,154,60,.25),inset 0 0 0 1px rgba(196,154,60,.15);
}
.op1-tmpl-new.sel .op1-tmpl-chk{display:none !important;}
.op1-upload-thumb.sel{
  border-color:var(--gold) !important;border-style:solid !important;
  box-shadow:0 0 0 2px rgba(196,154,60,.25);
}

/* ── Type card — Linear-style left accent when selected ── */
.op1-tcard-new{border-left:3px solid transparent;transition:border-color .15s,background .15s,box-shadow .15s;}
.op1-tcard-new.sel{
  border-left-color:var(--gold);
  background:rgba(196,154,60,.04);
  box-shadow:0 2px 12px rgba(196,154,60,.08);
}

/* Hide scrollbar */
.of-page::-webkit-scrollbar,.op1-body::-webkit-scrollbar,.op1-body-new::-webkit-scrollbar{display:none;}
.of-page,.op1-body,.op1-body-new{scrollbar-width:none;-ms-overflow-style:none;}





/* ── OP2 CSS custom properties (extend :root) ── */
:root {
  /* Layout */
  --sp-left-w:   256px;
  --sp-center-w: 640px;
  --sp-right-w:  256px;
  --sp-a6-w:     148mm;
  --sp-a6-h:     105mm;
  --sp-shell-h:  718px;

  /* Colours */
  --sp-ink:         #24160d;
  --sp-muted:       #8a6a43;
  --sp-paper:       #efe2bd;
  --sp-paper-light: #fbf3dc;
  --sp-paper-deep:  #dcc899;
  --sp-gold:        #c79b46;
  --sp-gold-soft:   rgba(199,155,70,.22);
  --sp-burgundy:    #65170f;
  --sp-wood:        #170c07;

  /* Front grid row ratios (total = 718fr) */
  --sp-front-title-r:    50fr;
  --sp-front-card-r:     437fr;
  --sp-front-caption-r:  22fr;
  --sp-front-envelope-r: 199fr;

  /* Back grid row ratios (total = 708fr) */
  --sp-back-toolbar-r:    50fr;
  --sp-back-card-r:       437fr;
  --sp-back-botanicals-r: 199fr;
  --sp-back-slogan-r:     22fr;

  /* Asset URLs — set to none here; overridden by config.js at runtime */
  /* --sp-envelope-img, --sp-cover-frame-img already declared above  */
  /* --sp-postcard-back-digital-img, --sp-postcard-back-physical-img already declared above */
}

/* ════════════════════════════════════════════════════════════
   ORDER PAGE 2 — Rich Postcard Editor
   Original styles from Order-Page2.html.
   The duplicate :root, reset, and hardcoded asset URLs have
   been removed — all asset URLs use the variables declared
   in the :root above, set at runtime by config.js.
   ════════════════════════════════════════════════════════════ */
/* ── PAGE SHELL ─────────────────────────────── */
.op2-shell {
  width: 100%;

  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  font-family: "Cormorant Garamond", serif;
  color: #f4dfab !important;
  background:
    radial-gradient(circle at 50% 20%, rgba(20,48,70,.38), transparent 31%),
    radial-gradient(circle at 20% 44%, rgba(217,160,73,.10), transparent 20%),
    linear-gradient(180deg,#070b0c 0%,#0b1011 64%,#070808 100%) !important;
}
.op2-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .46 !important;
  mix-blend-mode: screen !important;
  background-image:
    radial-gradient(circle,rgba(226,176,82,.78) 0 1px,transparent 1.5px),
    radial-gradient(circle,rgba(255,242,186,.50) 0 1px,transparent 1.6px) !important;
  background-size: 88px 74px, 137px 121px !important;
  background-position: 12px 18px, 45px 39px !important;
}

/* ── HEADER ─────────────────────────────────── */
.op2-shell .hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  height: 62px !important;
  padding: 0 34px;
  background: linear-gradient(180deg,rgba(10,12,13,.96),rgba(9,10,10,.90)) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(199,155,70,.28) !important;
  border-radius: 0 !important;
  color: #dcb65c !important;
}
.op2-shell .hdr-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Cinzel", serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #e5bd62 !important;
  text-shadow: 0 0 18px rgba(199,155,70,.18) !important;
}
.op2-shell .hdr-logo em { font-style: normal; color: #e5bd62 !important; font-size: 11px !important; letter-spacing: .22em !important; }
.op2-shell .hdr-steps  { display: flex; align-items: center; gap: 9px; }
.op2-shell .hdr-close  { border: 0; background: transparent; font-family: "Cinzel", serif; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; color: #e5bd62 !important; opacity: .92 !important; }
.hd   { border-radius: 50%; width: 8px; height: 8px; border: 1px solid rgba(138,106,67,.4); background: transparent; }
.hd.on   { background: #9a3b22; border-color: #9a3b22; box-shadow: 0 0 0 5px rgba(154,59,34,.1); }
.hd.done { background: rgba(138,106,67,.38); border-color: rgba(138,106,67,.1); }
.hl { height: 1px; width: 26px; background: rgba(138,106,67,.24); }

/* ── MAIN WRAPPER ───────────────────────────── */
.op2-shell .main {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 14px !important;
}

/* ── TABS ROW ───────────────────────────────── */
.op2-shell .tabs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: var(--sp-center-w) !important;
  height: 46px !important;
  margin: 0 auto !important;
}
/* Shared pill container */
.op2-shell .pc-tabs,
.op2-shell .pt-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg,rgba(255,243,216,.98),rgba(238,209,163,.98)) !important;
  border: 1px solid rgba(214,174,82,.70) !important;
  box-shadow: 0 9px 24px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.55) !important;
}
.op2-shell .pc-tabs { gap: 1px; height: 40px; padding: 1px; }
.op2-shell .pt-pills { height: 30px; }

/* Shared tab/pill button */
.op2-shell .pc-tab,
.op2-shell .pt-btn {
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #3a1f10 !important;
  transition: background .18s, color .18s, box-shadow .18s, border-color .18s;
}
.op2-shell .pc-tab { height: 36px; padding: 0; min-width: 126px; line-height: 38px; }
.op2-shell .pt-btn  { height: 22px; padding: 0 14px; min-width: auto; white-space: nowrap; line-height: 22px; }
.op2-shell .pc-tab:hover,
.op2-shell .pt-btn:hover  { border-color: rgba(96,63,24,.28); color: #3a2415; background: rgba(255,255,255,.36); }
.op2-shell .pc-tab.on,
.op2-shell .pt-btn.on {
  background: linear-gradient(180deg,#17110c,#050403) !important;
  color: #efc966 !important;
  border-color: rgba(214,174,82,.55) !important;
  box-shadow: inset 0 0 20px rgba(0,0,0,.48), 0 5px 12px rgba(0,0,0,.32) !important;
}

/* ── THREE-COLUMN GRID ──────────────────────── */
.op2-shell .card-assembly {
  display: grid;
  justify-content: center;
  margin: 0 auto;
  position: relative !important;
  width: 1152px !important;
  min-width: 1152px !important;
  max-width: 1152px !important;
  grid-template-columns: 256px 640px 256px !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
  align-items: start;
  height: var(--sp-shell-h) !important;
  max-height: var(--sp-shell-h) !important;
  overflow: visible;
  scrollbar-width: thin;
  background:
    radial-gradient(circle at 50% 24%,rgba(18,46,68,.42),transparent 36%),
    radial-gradient(circle at 50% 76%,rgba(95,58,24,.20),transparent 30%),
    rgba(6,8,9,.92) !important;
  border: 0 !important;
  border-left:  1px solid rgba(127,86,42,.22) !important;
  border-right: 1px solid rgba(127,86,42,.22) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05) !important;
}

/* ── DRAWERS (left + right) ─────────────────── */
.op2-shell .drawer-l,
.op2-shell .drawer-r {
  grid-row: 1 / -1;
  align-self: start;
  padding: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative !important;
  height: var(--sp-shell-h) !important;
  min-height: var(--sp-shell-h) !important;
  max-height: var(--sp-shell-h) !important;
  background: linear-gradient(180deg,rgba(20,17,12,.96),rgba(8,7,6,.94)) !important;
  border: 1px solid rgba(199,155,70,.20) !important;
  border-radius: 14px !important;
  margin: 0 8px !important;
  color: #ead7a8;
}
.op2-shell .drawer-l { width: calc(256px - 16px) !important; grid-area: left; }
.op2-shell .drawer-r { width: calc(256px - 16px) !important; grid-area: right; }

.drawer-l::before,
.drawer-r::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 20%);
  pointer-events: none;
}

.op2-shell .drawer-l-inner,
.op2-shell .drawer-r-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  width: 100%;
  height: var(--sp-shell-h);
  min-height: var(--sp-shell-h);
  max-height: var(--sp-shell-h);
  padding: 18px !important;
}
.drawer-l-inner::-webkit-scrollbar,
.drawer-r-inner::-webkit-scrollbar { display: none; }

/* Drawer section heading */
.op2-shell .drw-sec-hd {
  display: flex;
  align-items: center;
  justify-content: center !important;
  gap: 10px;
  height: 18px;
  font-family: "Cinzel", serif;
  font-size: 12px !important;
  letter-spacing: .16em !important;
  text-transform: uppercase;
  color: #e4bd61 !important;
  margin: 5px 0 14px !important;
}
.op2-shell .drw-sec-hd::before,
.op2-shell .drw-sec-hd::after {
  content: "" !important;
  flex: 1 !important;
  height: 1px !important;
  background: linear-gradient(90deg,transparent,rgba(214,174,82,.55),transparent) !important;
}
.drw-divider { height: 1px; background: linear-gradient(90deg,transparent,rgba(199,155,70,.24),transparent); margin: 18px 0; }
.drawer-l .drw-divider:last-of-type,
.drawer-r .drw-divider:last-of-type { display: none; }
.drw-hint { display: none; font-size: 8px; font-style: italic; color: rgba(196,154,60,.22); margin-top: 8px; line-height: 1.6; text-align: center; }

/* ── DRAWER INTERACTIVE ITEMS (shared base) ─── */
/* qcard, ink-bottle, signet-opt, wax-item all share the same dark-gold card look */
.op2-shell .qcard,
.op2-shell .ink-bottle,
.op2-shell .signet-opt,
.op2-shell .wax-item {
  cursor: pointer;
  border: 1px solid rgba(214,174,82,.24) !important;
  background: linear-gradient(180deg,rgba(255,236,178,.055),rgba(255,255,255,.018)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
  transition: .22s ease;
}
.op2-shell .qcard:hover,    .op2-shell .ink-bottle:hover,
.op2-shell .signet-opt:hover,.op2-shell .wax-item:hover,
.op2-shell .qcard.sel,      .op2-shell .ink-bottle.sel,
.op2-shell .signet-opt.sel, .op2-shell .wax-item.sel {
  background: rgba(199,155,70,.105) !important;
  border-color: rgba(229,188,93,.88) !important;
  box-shadow: 0 0 22px rgba(199,155,70,.24), inset 0 1px 0 rgba(255,255,255,.06) !important;
  transform: translateY(-1px);
}

/* ── QUILL CARDS ────────────────────────────── */
.op2-shell .qcard {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 74px !important;
  padding: 9px 10px;
  margin-bottom: 10px;
  border-radius: 10px !important;
}
.op2-shell .qcard-icon {
  flex-shrink: 0;
  width: 58px !important;
  height: 58px !important;
  min-width: 38px;
  border-radius: 50%;
  background: radial-gradient(circle,#211a12,#080807) !important;
  border: 1px solid rgba(214,174,82,.35) !important;
  display: grid;
  place-items: center;
  overflow: visible;
  position: relative;
  opacity: .78;
  transition: opacity .2s;
}
.qcard:hover .qcard-icon,
.qcard.sel   .qcard-icon { opacity: 1; }
.qcard-info  { flex: 1; min-width: 0; margin-left: 5px; }
.op2-shell .qcard-name   { font-family: "Cinzel", serif; font-size: 11px !important; letter-spacing: .14em; text-transform: uppercase; color: #e2b85a !important; margin-bottom: 2px; }
.qcard.sel .qcard-name  { color: rgba(196,154,60,.85); }
.op2-shell .qcard-sample { font-style: italic; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px !important; max-width: 130px !important; color: rgba(234,215,168,.55); }
.qcard.sel .qcard-sample { color: #E8D8B8; }

.op2-shell .qmore {
  display: block;
  text-align: center;
  cursor: pointer;
  font-family: "Cinzel", serif;
  font-size: 8px;
  letter-spacing: .1em;
  border: 1px solid rgba(199,155,70,.16);
  border-radius: 12px !important;
  padding: 8px;
  background: rgba(255,255,255,.02) !important;
  color: #e5bd62 !important;
  opacity: .78;
  margin-top: 2px;
  transition: all .2s;
}
.qmore:hover { border-color: rgba(224,185,92,.50); background: rgba(199,155,70,.105) !important; transform: translateY(-1px); }

/* Font samples */
.qsample-classic  { font-family: "IM Fell English", serif; font-style: italic; }
.qsample-elegant  { font-family: "Caveat", cursive; font-size: 20px; }
.qsample-vintage  { font-family: "Cormorant Garamond", serif; font-weight: 300; letter-spacing: .04em; }
.qsample-romantic { font-family: "Nunito", sans-serif; font-weight: 300; font-size: 15px; }
.qsample-modern   { font-family: "Arvo", serif; font-size: 13px; }

/* ── INK WELLS ──────────────────────────────── */
.ink-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.op2-shell .ink-bottle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  min-height: 66px;
  padding: 6px 2px 16px;
  position: relative;
  overflow-y: auto;
  transition: .2s;
}
.ink-bottle svg { transition: transform .2s; filter: drop-shadow(0 5px 5px rgba(0,0,0,.42)); width: 42px; height: 38px; margin-top: -3px; }
.ink-bottle:hover svg { transform: translateY(-3px); }
.ink-ring { width: 28px; height: 2px; border-radius: 1px; background: transparent; transition: background .2s; position: absolute; left: 50%; transform: translateX(-50%); top: 39px; }
.ink-lbl  { position: absolute; left: 0; right: 0; bottom: 5px; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 8px; text-align: center; color: rgba(234,215,168,.68); }
.ink-bottle.sel .ink-lbl { color: rgba(196,154,60,.75); }

/* ── SIGNET & WAX ───────────────────────────── */
.signet-wrap { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.signet-row  { width: 100%; display: grid; grid-template-columns: 1fr; gap: 10px; flex: 1; }
.op2-shell .signet-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow-y: auto;
  border-radius: 14px;
  padding: 9px 6px;
  gap: 7px;
}
.signet-img-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  overflow-y: auto;
  background: radial-gradient(circle,#4c3320,#1c0d07);
  border: 1px solid rgba(199,155,70,.25);
  box-shadow: 0 4px 18px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.12);
  width: 62px;
  height: 62px;
}
.signet-img { object-fit: contain; display: block; width: 56px; height: 56px; }
.signet-opt-lbl { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; text-transform: uppercase; line-height: 1.3; font-family: "Cinzel", serif; letter-spacing: .14em; color: #d7aa4c; font-size: 8px; }
.signet-opt-lbl span:first-child { font-size: 11px; letter-spacing: .2em; color: rgba(215,170,76,.92); }
.signet-opt-lbl span:last-child  { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 13px; letter-spacing: .06em; color: rgba(215,170,76,.75); text-transform: none; }
.signet-opt.sel .signet-opt-lbl { color: rgba(196,154,60,.9); }
.signet-soon-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; border: 1px dashed rgba(196,154,60,.22); background: radial-gradient(circle,#4c3320,#1c0d07); width: 38px; height: 38px; min-width: 38px; }
.signet-soon-txt  { font-style: italic; text-align: left; padding: 0 2px; color: rgba(234,215,168,.55); font-size: 8px; line-height: 1.25; }
.signet-divider   { height: 1px; background: linear-gradient(90deg,transparent,rgba(199,155,70,.24),transparent); margin: 24px 0 16px; }

/* Star Post signet overrides */
#signet-sp {
  background: radial-gradient(circle at 50% 20%,rgba(199,155,70,.16),transparent 45%), rgba(255,255,255,.035);
  border-color: rgba(214,174,82,.24);
  padding: 12px 10px 10px;
  flex: 1;
}
#signet-sp:hover,
#signet-sp.sel {
  border-color: rgba(224,185,92,.62);
  background: radial-gradient(circle at 50% 20%,rgba(199,155,70,.24),transparent 48%), rgba(199,155,70,.105);
}
.op2-shell #signet-sp .signet-img-bg {
  margin: 0 auto 7px;
  background: radial-gradient(circle at 35% 26%,rgba(245,222,160,.18),transparent 28%), radial-gradient(circle,#4c3320,#1c0d07 68%);
  border: 1px solid rgba(224,185,92,.36);
  box-shadow: 0 10px 24px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.14), inset 0 -14px 24px rgba(0,0,0,.38);
  width: 112px !important;
  height: 112px !important;
  border-radius: 14px !important;
}
.op2-shell #signet-sp .signet-opt-lbl { font-size: 10px; letter-spacing: .18em; }
.op2-shell #signet-sp .signet-img     { width: 100px !important; height: 100px !important; }
.op2-shell #signet-personal { flex: 1; flex-direction: row; justify-content: flex-start; padding: 9px 10px; min-height: 74px !important; }

/* Wax colours */
.op2-shell .wax-colours { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px !important; width: 100%; align-content: start; margin-top: 5px; flex: 1; }
.op2-shell .wax-item {
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-y: auto;
  border-radius: 10px !important;
  padding: 7px 5px 16px;
  min-height: 121px !important;
  gap: 2px;
}
.op2-shell .wax-disc {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  border-radius: 50%;
  overflow-y: auto;
  background: transparent;
  margin: 0 auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.42));
  width: 82px !important;
  height: 82px !important;
}
.wax-disc img { object-fit: contain; display: block; position: absolute; left: 50%; top: 50%; width: 142%; height: 142%; transform: translate(-48%,-44%); }
.wax-disc-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: rgba(196,154,60,.2); }
.wax-disc-placeholder.is-hidden { display: none; }
.wax-disc-canvas { position: absolute; inset: 0; border-radius: 50%; display: none; }
.op2-shell .wax-nm {
  position: absolute;
  left: 0; right: 0; bottom: 8px !important;
  font-family: "Cinzel", serif;
  font-size: 9px !important;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-style: italic;
  text-align: center;
  white-space: nowrap;
  color: #e6c078 !important;
}
.wax-item.sel .wax-nm { color: rgba(196,154,60,.92); font-weight: 600; }

/* Hide botanicals section in right drawer */
.drawer-r .botanicals,
.drawer-r .botanicals + .drw-hint,
.drawer-r .bot-opacity-wrap { display: none; }

/* ── POSTCARD WRAP ──────────────────────────── */
.op2-shell .pc-wrap {
  grid-column: 2 / 3;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: visible;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  align-self: start;
  width: 640px !important;
  min-width: 640px !important;
  max-width: 640px !important;
}

/* Preview pills */
.prev-pills {
  display: none;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 3px;
  border: 1px solid rgba(214,174,82,.28);
  border-radius: 16px;
  background: rgba(10,9,7,.78);
  box-shadow: 0 10px 26px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.pp {
  font-family: "Cinzel", serif;
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  height: 20px;
  padding: 0 6px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(245,232,194,.58);
  line-height: 20px;
  transition: background .18s, color .18s, box-shadow .18s, border-color .18s;
}
.pp:hover { background: rgba(245,232,194,.08); color: rgba(245,232,194,.82); }
.pp.act   { background: rgba(124,89,50,.78) !important; color: #f7ead0; border-color: rgba(255,239,202,.18); box-shadow: 0 5px 14px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.14); }

/* ── FRONT TAB ──────────────────────────────── */
.op2-shell:not(.is-back-photo) .card-assembly {
  grid-template-areas: "left card right" !important;
  grid-template-rows:
    var(--sp-front-title-r)
    var(--sp-front-card-r)
    var(--sp-front-caption-r)
    var(--sp-front-envelope-r) !important;
  /* repeat 4 rows, all "left card right" */
  grid-template-areas:
    "left card right"
    "left card right"
    "left card right"
    "left card right" !important;
}
.op2-shell:not(.is-back-photo) .drawer-l,
.op2-shell:not(.is-back-photo) .drawer-r  { grid-row: 1 / 5 !important; }
.op2-shell:not(.is-back-photo) .pc-wrap   {
  grid-area: card !important;
  grid-row: 1 / 5 !important;
  height: var(--sp-shell-h) !important;
  min-height: var(--sp-shell-h) !important;
  max-height: var(--sp-shell-h) !important;
  padding-top: 0 !important;
  border: 0 !important;
  outline: 0 !important;
}
.op2-shell:not(.is-back-photo) .center-studio-tray,
.op2-shell:not(.is-back-photo) .back-photo-panels { display: none !important; }

/* Front #pf 4-row sub-grid */
.op2-shell:not(.is-back-photo) #pf {
  display: grid !important;
  width: var(--sp-center-w) !important;
  height: var(--sp-shell-h) !important;
  min-height: var(--sp-shell-h) !important;
  max-height: var(--sp-shell-h) !important;
  align-items: start !important;
  justify-items: center !important;
  grid-template-rows:
    var(--sp-front-title-r)
    var(--sp-front-card-r)
    var(--sp-front-caption-r)
    var(--sp-front-envelope-r) !important;
  grid-template-areas:
    "pf-title"
    "pf-card"
    "pf-caption"
    "pf-envelope" !important;
}
#pb { width: var(--sp-a6-w); display: none; }

.op2-shell:not(.is-back-photo) #pf-title   { grid-area: pf-title !important; align-self: end !important; margin: 0 auto 8px !important; }
.op2-shell:not(.is-back-photo) #pf-caption { grid-area: pf-caption !important; align-self: start !important; justify-self: center !important; display: block !important; position: relative !important; z-index: 5 !important; width: var(--sp-a6-w) !important; margin: 0 auto !important; padding: 0 !important; line-height: 18px !important; min-height: 18px !important; overflow: visible !important; text-align: center !important; }
.op2-shell:not(.is-back-photo) #pf-envelope { grid-area: pf-envelope !important; align-self: stretch !important; justify-self: stretch !important; height: 100% !important; min-height: 0 !important; }

/* #pf-card: A6-sized wrapper */
.op2-shell:not(.is-back-photo) #pf-card {
  grid-area: pf-card !important;
  align-self: start !important;
  justify-self: center !important;
  position: relative !important;
  display: block !important;
  padding: 0 !important;
  margin: 20px auto !important;
  overflow: visible !important;
  width: var(--sp-a6-w) !important;
  min-width: var(--sp-a6-w) !important;
  max-width: var(--sp-a6-w) !important;
  height: var(--sp-a6-h) !important;
  min-height: var(--sp-a6-h) !important;
  max-height: var(--sp-a6-h) !important;
  flex: 0 0 var(--sp-a6-h) !important;
}
/* pf-image inside pf-card inherits A6 size */
.op2-shell:not(.is-back-photo) #pf-card > #pf-image.pc-front {
  position: relative !important;
  margin: 0 !important;
  width: var(--sp-a6-w) !important;
  min-width: var(--sp-a6-w) !important;
  max-width: var(--sp-a6-w) !important;
  height: var(--sp-a6-h) !important;
  min-height: var(--sp-a6-h) !important;
  max-height: var(--sp-a6-h) !important;
}
.op2-shell:not(.is-back-photo) #pf-card > #pf-pills { position: absolute !important; top: -30px !important; right: 8px !important; z-index: 80 !important; display: flex; }
.op2-shell:not(.is-back-photo) #pf-card > #pf-pills .pp { display: flex; align-items: center; justify-content: center; gap: 4px; }
.op2-shell:not(.is-back-photo) #pf-card > #pf-pills svg { flex: 0 0 auto; }

/* Front title / caption helpers */
.front-preview-title { display: none; }
.op2-shell:not(.is-back-photo) .front-preview-title { display: block; width: var(--sp-a6-w); margin: 0 auto 8px !important; text-align: center; font-family: "Cinzel", serif; color: #e7c36b; }
.op2-shell:not(.is-back-photo) .front-title-line { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 14px !important; letter-spacing: .20em !important; }
.op2-shell:not(.is-back-photo) .front-title-line span { width: 36px; height: 1px; background: linear-gradient(90deg,transparent,#d2a24d,transparent); }
.op2-shell:not(.is-back-photo) .front-size-note { margin-top: 6px; font-size: 11px; letter-spacing: .08em; color: #f1d993; }

/* A6 postcard face */
.pc-front {
  position: relative;
  overflow-y: auto;
  display: flex;
  align-items: flex-end;
  border-radius: 0;
  aspect-ratio: auto;
  box-shadow: 0 12px 26px rgba(49,27,8,.22);
}
.op2-shell:not(.is-back-photo) .pc-front {
  width: var(--sp-a6-w);
  height: var(--sp-a6-h);
  min-height: var(--sp-a6-h);
  max-height: var(--sp-a6-h);
  margin: 20px auto;
  border-radius: 2px;
  overflow: visible;
  box-shadow: 0 18px 35px rgba(0,0,0,.55) !important;
  background:
    radial-gradient(circle at 20% 44%,rgba(255,224,125,.65) 0 1px,transparent 2px),
    radial-gradient(circle at 78% 18%,rgba(255,241,179,.84) 0 18px,rgba(255,219,112,.36) 20px,transparent 26px),
    linear-gradient(180deg,rgba(8,22,39,.30),rgba(16,11,8,.72)),
    linear-gradient(160deg,#081420 0%,#112b47 44%,#442114 82%,#090606 100%);
}
.op2-shell:not(.is-back-photo) .pc-front::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  z-index: 6;
  background:
    var(--sp-cover-frame-img),
    radial-gradient(ellipse at 50% 104%,rgba(255,147,48,.75),transparent 19%),
    radial-gradient(ellipse at 48% 92%,rgba(16,10,7,.92) 0 26%,transparent 27%),
    radial-gradient(ellipse at 18% 90%,rgba(7,12,13,.95) 0 28%,transparent 29%),
    radial-gradient(ellipse at 82% 90%,rgba(7,12,13,.95) 0 28%,transparent 29%);
  background-size: 100% 100%, auto, auto, auto, auto;
  background-repeat: no-repeat;
  background-position: center;
}
.pc-front canvas { position: absolute; inset: 0; pointer-events: none; }
.op2-shell:not(.is-back-photo) .pc-front canvas { z-index: 0; }

/* Cover frame hidden — rendered via ::before */
.front-cover-frame > *,
.front-cover-frame,
.op2-shell:not(.is-back-photo) .front-cover-frame { display: none !important; }

/* Floating caption text + pc-cap */
.op2-shell:not(.is-back-photo) .pc-cap { display: none; }
.pc-cap { position: relative; z-index: 2; font-family: "Cinzel", serif; font-style: italic; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: rgba(245,232,194,.42); padding: 14px 18px; }
.front-under-caption { display: none; }
.op2-shell:not(.is-back-photo) .front-under-caption {
  display: block;
  width: var(--sp-a6-w);
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center;
  font-size: 14px;
  letter-spacing: .02em;
  font-style: normal;
  color: #efd17b !important;
  text-shadow: 0 0 12px rgba(199,155,70,.25);
  border: 0 !important;
  outline: 0 !important;
}

/* Animated preview overlay */
.pc-anim { position: absolute; inset: 0; z-index: 4; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 8px; background: rgba(14,8,2,.7); }
.pc-anim.show { display: flex; }
.adots { display: flex; gap: 6px; }
.adot  { width: 5px; height: 5px; border-radius: 50%; background: rgba(196,154,60,.45); animation: adp 1.5s ease-in-out infinite; }
.adot:nth-child(2) { animation-delay: .25s; }
.adot:nth-child(3) { animation-delay: .5s; }
.preview-note { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 11px; color: rgba(196,154,60,.45); }

/* Envelope */
.envelope-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  border: 0 !important;
  outline: 0 !important;
  width: var(--sp-center-w);
  height: calc(var(--sp-shell-h) - var(--sp-a6-h));
  min-height: calc(var(--sp-shell-h) - var(--sp-a6-h));
  gap: 8px !important;
  padding: 0 26px !important;
}
.env-preview-column { width: 100%; display: flex; flex-direction: column; align-items: center; }
.op2-shell .env-svg-wrap {
  position: relative !important;
  width: 100%;
  max-width: 500px !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible;
  aspect-ratio: 500 / 171 !important;
  filter: drop-shadow(0 13px 22px rgba(0,0,0,.48)) !important;
  background: var(--sp-envelope-img) 100% 100% / 100% 100% no-repeat !important;
}
.op2-shell .env-svg-wrap > svg { visibility: hidden !important; display: block !important; width: 100% !important; height: auto !important; }
.env-seal { display: none !important; }
.env-seal.fallback {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .3s;
  border-radius: 50%;
  width: 94px !important;
  height: 94px !important;
  background:
    radial-gradient(circle at 34% 26%,rgba(255,204,165,.34),transparent 26%),
    radial-gradient(circle at 50% 50%,#b81f13 0 30%,#7a1008 62%,#4b0703 100%) !important;
  box-shadow: 0 5px 14px rgba(0,0,0,.55), inset 0 2px 3px rgba(255,230,190,.25), inset 0 -10px 18px rgba(40,0,0,.42) !important;
}
.env-seal::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 28%,rgba(255,255,255,.3),transparent 55%); }
.env-seal-ring   { position: absolute; inset: 12px !important; border-radius: 50%; border: 1px solid rgba(255,206,145,.45) !important; }
.env-seal-letter { font-family: "Cinzel", serif; font-size: 23px !important; font-weight: 600; position: relative; z-index: 1; color: #e9b767 !important; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.op2-shell:not(.is-back-photo) #env-wax-seal {
  position: absolute;
  left: 50%; top: 49% !important;
  transform: translate(-50%,-50%);
  z-index: 4;
  pointer-events: none;
  border-radius: 50%;
  width: 108px !important;
  height: 108px !important;
  object-fit: cover !important;
  filter: drop-shadow(0 4px 9px rgba(0,0,0,.62)) !important;
}
.op2-shell:not(.is-back-photo) .env-caption {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  text-align: center;
  font-size: 14px !important;
  color: #efd17b !important;
  margin-top: 1px !important;
  text-shadow: 0 0 12px rgba(199,155,70,.18);
}

/* ── BACK TAB ───────────────────────────────── */
.op2-shell.is-back-photo {
  background:
    radial-gradient(circle at 50% 8%,rgba(255,248,229,.75),transparent 30%),
    linear-gradient(180deg,#f3e2bd 0%,#ead0a0 52%,#d8b675 100%) !important;
}
.op2-shell.is-back-photo::before {
  opacity: .18 !important;
  mix-blend-mode: multiply !important;
  background-image:
    linear-gradient(rgba(98,64,24,.09) 1px,transparent 1px),
    linear-gradient(90deg,rgba(98,64,24,.07) 1px,transparent 1px) !important;
  background-size: 24px 24px !important;
  background-position: 0 0 !important;
}
.op2-shell.is-back-photo .card-assembly {
  grid-template-columns: var(--sp-left-w) var(--sp-center-w) var(--sp-right-w) !important;
  grid-template-areas:
    "left tray right"
    "left card right"
    "left botanicals right"
    "left slogan right" !important;
  grid-template-rows:
    var(--sp-back-toolbar-r)
    var(--sp-back-card-r)
    var(--sp-back-botanicals-r)
    var(--sp-back-slogan-r) !important;
  align-items: stretch !important;
  overflow: hidden !important;
  background: linear-gradient(180deg,#080b0d 0%,#111416 48%,#070808 100%) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
}
.op2-shell.is-back-photo .drawer-l,
.op2-shell.is-back-photo .drawer-r {
  grid-row: 1 / 5 !important;
  background: linear-gradient(180deg,#080b0d 0%,#111416 48%,#070808 100%) !important;
}
.op2-shell.is-back-photo .pc-wrap {
  grid-area: card !important;
  grid-column: 2 / 3 !important;
  grid-row: 2 / 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #ead8b5 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  width: var(--sp-center-w) !important;
  min-width: var(--sp-center-w) !important;
  max-width: var(--sp-center-w) !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.op2-shell.is-back-photo #pf { display: none !important; }
.op2-shell.is-back-photo #pb {
  display: block !important;
  position: relative !important;
  margin: 0 auto !important;
  width: var(--sp-a6-w) !important;
  height: var(--sp-a6-h) !important;
  min-height: var(--sp-a6-h) !important;
  max-height: var(--sp-a6-h) !important;
}

/* Back postcard face */
.pc-back {
  display: flex;
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
  width: var(--sp-a6-w);
  height: var(--sp-a6-h);
  min-height: var(--sp-a6-h);
  max-height: var(--sp-a6-h);
  background: #F6EDD5 var(--sp-postcard-back-physical-img) center / 100% 100% no-repeat;
}
.op2-shell.is-back-photo .pc-back {
  margin: 0 auto !important;
  background-color: #f7ecd3;
  box-shadow: 0 10px 22px rgba(72,44,12,.16);
  width: var(--sp-a6-w) !important;
  height: var(--sp-a6-h) !important;
  min-height: var(--sp-a6-h) !important;
  max-height: var(--sp-a6-h) !important;
}
.pc-back::before { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 24px rgba(100,60,10,.06); pointer-events: none; z-index: 3; }
.pc-back::after  { display: none; }

/* A6 size badge */
.a6-size-note {
  display: none;
  position: absolute;
  left: 14px; top: 8px;
  z-index: 6;
  pointer-events: none;
  font-family: "Cinzel", serif;
  font-size: 7px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(91,62,28,.38);
  background: rgba(247,236,211,.42);
  padding: 3px 5px;
  border-radius: 999px;
}
.is-back-photo .a6-size-note { display: block; }

/* Message area */
.pc-l { position: absolute; left: 0; top: 0; bottom: 0; width: 57%; padding: 20px 18px 16px 30px; display: flex; flex-direction: column; z-index: 2; overflow: hidden; }
.pc-r { position: absolute; right: 0; top: 0; bottom: 0; left: 57%; z-index: 2; }
.pc-lbl { font-family: "Cinzel", serif; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: rgba(139,94,44,.62); margin-bottom: 6px; }
.pc-ta  { flex: 1; background: transparent; border: none; outline: none; resize: none; font-family: "IM Fell English", serif; font-style: italic; font-size: 13px; color: #1C1208; line-height: 1.95; width: 100%; caret-color: #B85C2A; overflow: hidden; word-break: break-word; white-space: pre-wrap; cursor: text; }
.pc-ta:empty::before { content: "Dearest Eleanor,\A\A By the time you read this\2026"; white-space: pre; color: rgba(139,94,44,.24); font-style: italic; pointer-events: none; }
.pc-f   { background: transparent; border: none; outline: none; font-size: 12px; color: rgba(42,21,6,.72); padding: 4px 0; margin-bottom: 7px; font-family: "Cormorant Garamond", serif; font-style: italic; width: 100%; }
.pc-f::placeholder { color: rgba(139,94,44,.42); font-style: italic; }
.pc-char-wrap { display: flex; align-items: center; justify-content: flex-start; gap: 5px; padding-top: 4px; line-height: 1; }
/* Shared base for char counter + hint */
.pc-char,
.pc-char-hint { font-size: 8px; font-weight: 600; line-height: 1; }
.pc-char      { color: #3d3a9e; transition: color .3s; flex-shrink: 0; }
.pc-char-hint { font-style: normal; color: rgba(139,94,44,.45); white-space: nowrap; }
.pc-char.warn,
.pc-char-hint.warn   { color: rgba(200,140,20,.9); }
.pc-char.danger      { color: rgba(180,40,20,.9); font-weight: 600; }
.pc-char-hint.danger { color: rgba(180,40,20,.9); }

.is-back-photo .pc-l        { padding: 20px 18px 16px 30px; }
.is-back-photo .pc-r        { padding-top: 12px; left: 57%; }
.is-back-photo .pc-ta       { font-size: 14px; line-height: 1.85; }
.is-back-photo .pc-char-wrap { font-size: 13px; padding-top: 4px; }

/* Stamp */
.stamp { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; z-index: 10; margin-top: auto; align-self: flex-end; background: #B5D4F4; border: 1px solid rgba(139,94,44,.45); border-radius: 1px; width: 38px; height: 46px; }
.stamp::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(139,94,44,.07); }
.stamp-s { font-size: 12px; color: #8B5E1A; }
.stamp-t { font-size: 8px; letter-spacing: .09em; color: #8B5E1A; text-transform: uppercase; }
.is-back-photo .stamp { margin: 0; align-self: auto; background: #F5EDD0; width: 62px; height: 76px; }

/* ── BOTANICAL OVERLAY ──────────────────────── */
#bot-overlay { position: absolute; display: none; overflow: visible; user-select: none; touch-action: none; z-index: 10; }
#bot-overlay.on  { display: block; }
#bot-overlay svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: .85; pointer-events: none; }
#bot-overlay:not(.sel) .bot-frame,
#bot-overlay:not(.sel) .bot-rh,
#bot-overlay:not(.sel) .bot-rline { visibility: hidden; }
#bot-overlay:not(.sel) { cursor: pointer; }
#bot-overlay:not(.sel) svg { pointer-events: all; }
#bot-overlay.sel { cursor: grab; }
.bot-frame { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.75); border-radius: 1px; pointer-events: none; box-shadow: 0 0 0 .5px rgba(0,0,0,.2); }

/* Resize handles — shared base */
.bh {
  position: absolute;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 1.5px;
  box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 0 0 .5px rgba(0,0,0,.15);
  pointer-events: all;
  transition: transform .1s;
}
.bh:hover { transform: scale(1.4); }
/* Corner positions */
.bh-tl { top: -4px; left: -4px; }
.bh-tr { top: -4px; right: -4px; }
.bh-bl { bottom: -4px; left: -4px; }
.bh-br { bottom: -4px; right: -4px; }
/* Mid-edge handles (wider) */
.bh-tm,
.bh-bm { left: 50%; transform: translateX(-50%); width: 16px; height: 6px; border-radius: 3px; }
.bh-tm { top: -4px; }
.bh-bm { bottom: -4px; }
.bh-tm:hover { transform: translateX(-50%) scale(1.4); }
.bh-bm:hover { transform: translateX(-50%) scale(1.4); }

.bot-rline { position: absolute; bottom: -20px; left: 50%; width: 1px; height: 20px; background: rgba(255,255,255,.45); transform: translateX(-50%); pointer-events: none; }
.bot-remove-btn { position: absolute; display: none; align-items: center; justify-content: center; pointer-events: all; cursor: pointer; z-index: 20; border-radius: 50%; background: rgba(255,255,255,0.45); border: none; color: #3a3a3a; box-shadow: 0 1px 4px rgba(0,0,0,0.25), 0 0 0 0.5px rgba(0,0,0,0.08); width: 24px; height: 24px; transition: box-shadow .15s; }
.bot-remove-btn:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 0 0.5px rgba(0,0,0,0.12); }
.bot-rh { position: absolute; bottom: -42px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; cursor: grab; pointer-events: all; border-radius: 50%; background: transparent; width: 22px; height: 22px; }
.bot-rh:active { cursor: grabbing; }
.bot-rh svg { width: 16px; height: 16px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }

/* Opacity slider (left drawer) */
.bot-opacity-wrap { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 9px 10px; border: 1px solid rgba(199,155,70,.14); border-radius: 14px; background: rgba(255,255,255,.03); }
.bot-opacity-lbl  { font-family: "Cinzel", serif; font-size: 7px; letter-spacing: .12em; text-transform: uppercase; color: rgba(234,215,168,.48); white-space: nowrap; }
/* Shared range thumb style */
.bot-opacity-slider,
#fmt-bot-opacity-inline { -webkit-appearance: none; appearance: none; outline: none; cursor: pointer; }
.bot-opacity-slider { flex: 1; height: 2px; border-radius: 1px; background: rgba(196,154,60,.2); }
.bot-opacity-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: rgba(196,154,60,.7); cursor: pointer; }
.bot-opacity-slider::-moz-range-thumb     { width: 10px; height: 10px; border-radius: 50%; background: rgba(196,154,60,.7); cursor: pointer; border: none; }

/* ── FORMAT TOOLBAR (back tab) ──────────────── */
.center-studio-tray {
  grid-area: tray;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  align-self: start;
  display: none;
  background: transparent;
  margin: 0;
  padding: 0;
  gap: 0;
  width: var(--sp-center-w) !important;
  min-width: var(--sp-center-w) !important;
  max-width: var(--sp-center-w) !important;
}
.op2-shell.is-back-photo .center-studio-tray {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 8;
  background: var(--sp-paper-light) !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  height: 100% !important;
  padding: 10px 14px 8px !important;
  overflow: hidden !important;
}
.studio-card   { background: rgba(251,243,220,.72); border: 1px solid rgba(96,63,24,.16); padding: 0 18px; margin: 0; box-shadow: none; }
.studio-title  { font-family: "Cinzel", serif; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(91,62,28,.58); margin-bottom: 11px; }
.studio-delivery { display: none; flex-direction: column; padding: 10px 12px; }
.studio-delivery .studio-title { margin-bottom: 8px; }
.op2-shell.is-back-photo .studio-delivery { display: none !important; }
.studio-delivery-grid { display: grid; gap: 8px; }
.studio-label  { font-family: "Cinzel", serif; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: rgba(91,62,28,.42); margin-bottom: 5px; }
.studio-date   { width: 100%; height: 31px; padding: 4px 0; font-size: 14px; }
.studio-size-note { display: flex; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(113,78,31,.18); font-style: italic; color: rgba(83,55,26,.58); min-height: 28px; font-size: 12px; }

.studio-formatting {
  display: none;
  align-items: center;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(127,86,42,.22);
  box-shadow: 0 5px 12px rgba(72,44,12,.08);
  overflow: hidden;
}
.studio-formatting .studio-title { display: none; }
.op2-shell.is-back-photo .studio-formatting {
  display: flex !important;
  align-items: center !important;
  overflow: visible !important;
  margin: 0 auto !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: 1px solid rgba(127,86,42,.20) !important;
  box-shadow: 0 6px 14px rgba(72,44,12,.08), inset 0 1px 0 rgba(255,255,255,.62) !important;
  width: calc(var(--sp-center-w) - 28px) !important;
  min-width: 0 !important;
  max-width: calc(var(--sp-center-w) - 28px) !important;
  height: 34px !important;
  min-height: 0 !important;
}
.fmt-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  height: 100%;
  flex-wrap: nowrap;
  border: 0;
  background: rgba(255,248,230,.74);
  padding: 0 10px;
  margin: 0;
}
.op2-shell.is-back-photo .studio-formatting .fmt-bar {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
  background: rgba(255,248,230,.78) !important;
  border-radius: 8px !important;
  gap: 3px !important;
  padding: 0 10px !important;
}
.fmt-sep { display: block; width: 1px; min-width: 1px; flex: 0 0 1px !important; height: 20px !important; margin: 0 3px; background: rgba(113,78,31,.17); }

/* Shared toolbar button style: fmt-btn, fmt-sz button, fmt-sz-val all share the same base appearance */
.fmt-btn,
.fmt-sz button,
.fmt-sz-val {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(113,78,31,.20);
  background: rgba(255,248,229,.78);
  color: #3d2412;
  border-radius: 6px;
  padding: 0;
  height: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.fmt-btn,
.fmt-sz button { width: 24px; min-width: 24px; font-size: 13px; line-height: 1; cursor: pointer; flex-shrink: 0; transition: all .2s; }
.fmt-btn { transition: all .2s; }
.fmt-sz-val { width: 28px; min-width: 28px; font-size: 11px; font-family: "Cinzel", serif; }
.fmt-btn:hover,
.fmt-sz button:hover,
.fmt-select:hover { background: #2b190f !important; color: #f7ead0 !important; border-color: #2b190f !important; }
.fmt-btn.act { background: #2b190f !important; color: #f7ead0 !important; border-color: #2b190f !important; }
.fmt-btn:disabled { opacity: .42; cursor: not-allowed; pointer-events: none; filter: grayscale(.15); }
.fmt-btn:disabled:hover { background: rgba(255,248,229,.72); color: #5b371d; border-color: rgba(113,78,31,.20); }

/* Prevent text selection on toolbar elements */
.studio-formatting, .fmt-bar, .fmt-btn, .fmt-sz, .fmt-sz button,
.back-bot-picker-ribbon, .back-panel-title, .back-bot-title-large,
.back-bot-slogan, .back-bot-name, .back-bot-dots, .back-arr, .back-selected-name {
  -webkit-user-select: none;
  user-select: none;
}

.fmt-align { display: contents; }
.fmt-sz    { display: flex; align-items: center; gap: 3px; flex: 0 0 auto; min-width: 0; }
.fmt-select {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(113,78,31,.18);
  background: rgba(255,248,229,.78);
  color: #3d2412;
  border-radius: 7px;
  height: 28px;
  min-width: 104px;
  gap: 9px;
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(70,35,10,.06), inset 0 1px 0 rgba(255,255,255,.62);
  white-space: nowrap;
  flex: 0 0 auto;
}
.fmt-a-icon { font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 17px; line-height: 1; position: relative; display: inline-block; padding-bottom: 3px; }
.fmt-a-icon::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: 0; height: 1.5px; background: currentColor; }

.fmt-opacity { display: none; }
.op2-shell.is-back-photo .fmt-opacity,
.op2-shell.is-back-photo #fmt-bot-opacity-wrap { display: none !important; width: 0 !important; min-width: 0 !important; flex: 0 0 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; }

/* Botanical opacity zone in toolbar */
.fmt-botanical-zone {
  display: none;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  height: 26px;
  margin: -3px 0;
  padding: 0 12px;
  position: relative;
  z-index: 3;
  border: 1px solid rgba(127,86,42,.26);
  border-radius: 8px;
  background: rgba(50,30,12,.1);
  box-shadow: 0 3px 10px rgba(72,44,12,.13), inset 0 1px 0 rgba(255,255,255,.75);
}
.is-back-photo .fmt-botanical-zone { display: flex; }
.fmt-botanical-zone-label { font-family: "Cinzel", serif; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: rgba(80,50,20,.65); white-space: nowrap; flex-shrink: 0; }
#fmt-bot-opacity-inline {
  width: 80px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg,rgba(155,100,46,.72),rgba(113,78,31,.18));
}
#fmt-bot-opacity-inline::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #b06a35; border: 0; box-shadow: 0 1px 3px rgba(70,35,10,.28); }
#fmt-bot-opacity-inline::-moz-range-thumb     { width: 13px; height: 13px; border-radius: 50%; background: #b06a35; border: 0; }

/* Bot control bar */
.op2-shell.is-back-photo .bot-control-bar {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9;
  left: 50%;
  top: calc(var(--sp-a6-h) + 8px);
  transform: translateX(-50%);
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(127,86,42,.18);
  background: rgba(255,248,230,.88);
  box-shadow: 0 7px 15px rgba(72,44,12,.10), inset 0 1px 0 rgba(255,255,255,.52);
  padding: 0 12px;
  font-family: "Cormorant Garamond", serif;
  color: #4d2e17;
  width: var(--sp-a6-w) !important;
  max-width: calc(var(--sp-center-w) - 28px) !important;
}
.op2-shell.is-back-photo .bot-control-bar label { display: flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.op2-shell.is-back-photo .bot-control-bar input[type=range] { width: 90px; height: 3px; accent-color: #a7662f; }
.op2-shell.is-back-photo .bot-control-bar .bot-trash { border: 0; background: transparent; color: #2d1a0c; cursor: pointer; padding: 4px; display: grid; place-items: center; }
.op2-shell:not(.is-back-photo) .bot-control-bar { display: none !important; }

/* Toast */
.fmt-toast { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 999; opacity: 0; pointer-events: none; transition: opacity .3s; white-space: nowrap; background: rgba(140,60,20,.92); color: rgba(255,235,210,.95); font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 13px; padding: 10px 22px; border-radius: 4px; box-shadow: 0 4px 24px rgba(0,0,0,.45); }
.fmt-toast.show { opacity: 1; }

/* ── BOTANICALS PANEL ───────────────────────── */
.back-photo-panels {
  display: none;
  grid-area: botanicals;
  grid-column: 2 / 3;
  grid-row: 3 / 4;
  background: #ead8b5;
  margin: 0;
  padding: 0;
  width: var(--sp-center-w);
  min-width: var(--sp-center-w);
  max-width: var(--sp-center-w);
}
.op2-shell.is-back-photo .back-photo-panels {
  display: block !important;
  overflow: hidden !important;
  background: var(--sp-paper-light) !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  width: var(--sp-center-w) !important;
  min-width: var(--sp-center-w) !important;
  max-width: var(--sp-center-w) !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.back-bot-preview { display: none; background: rgba(255,250,232,.86); border: 1px solid rgba(121,82,36,.13); box-shadow: 0 10px 25px rgba(72,45,13,.16); height: 0; border-radius: 20px; padding: 0; margin: 0; position: relative; overflow: hidden; }
.op2-shell.is-back-photo .back-bot-preview,
.op2-shell.is-back-photo .back-info-row { display: none !important; }

.back-bot-picker {
  background: transparent;
  border: none;
  box-shadow: none;
  flex: 1;
  border-radius: 0;
  padding: 0;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 0;
}
.op2-shell.is-back-photo .back-bot-picker { width: 100% !important; height: 100% !important; }

.back-bot-picker-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  padding: 0 22px;
  margin: 0;
}
/* Identical decorative lines either side of ribbon text */
.back-bot-picker-ribbon::before,
.back-bot-picker-ribbon::after { content: ""; flex: 1; height: 1px; background: rgba(139,94,44,.20); display: block; }
.op2-shell.is-back-photo .back-bot-picker-ribbon { flex: 0 0 28px !important; height: 28px !important; min-height: 28px !important; padding: 0 20px !important; margin: 0 !important; }

.back-panel-title     { font-family: "Cinzel", serif; font-size: 8px; letter-spacing: .22em; text-transform: uppercase; color: rgba(91,62,28,.6); line-height: 10px; margin: 0; text-align: center; }
.back-bot-title-large { font-family: "Cinzel", serif; font-weight: 400; font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: rgba(139,94,44,.92); white-space: nowrap; }
.back-bot-slogan {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative !important;
  gap: 7px !important;
  text-align: center;
  padding-top: 6px;
  font-family: "Cinzel", serif !important;
  font-size: 7.5px !important;
  line-height: 1 !important;
  letter-spacing: .2em !important;
  text-transform: uppercase !important;
  color: rgba(139,94,44,.95) !important;
  background: #ead8b5 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
.op2-shell.is-back-photo .back-bot-slogan {
  grid-area: slogan !important;
  grid-column: 2 / 3 !important;
  grid-row: 4 / 5 !important;
  width: var(--sp-center-w) !important;
  min-width: var(--sp-center-w) !important;
  max-width: var(--sp-center-w) !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.op2-shell.is-back-photo .back-bot-slogan::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: calc(-1 * var(--sp-left-w)) !important;
  width: calc(var(--sp-left-w) + var(--sp-center-w) + var(--sp-right-w)) !important;
  height: 1px !important;
  background: rgba(139,94,44,.18) !important;
  display: block !important;
  pointer-events: none !important;
}
.op2-shell:not(.is-back-photo) .back-bot-slogan { display: none !important; }

.back-panel-sub   { font-style: italic; color: #8c6a45; font-size: 13px; margin-top: 8px; }
.back-selected-name { position: absolute; right: 22px; top: 18px; font-family: "Cinzel", serif; font-style: italic; letter-spacing: .18em; color: #8d2c20; font-size: 11px; }
.back-preview-art { position: absolute; left: 28%; right: 14%; bottom: 22px; height: 90px; display: flex; align-items: center; justify-content: center; }
.back-preview-art svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 3px rgba(70,40,10,.14)); }
.back-bot-picker .choose-one { display: none; }

.back-bot-options {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 10px;
  margin: 8px 52px 0;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  align-items: stretch !important;
}
.back-bot-card-wrap { display: flex; flex-direction: column; align-items: center; align-self: stretch; height: auto !important; min-height: 0 !important; }
.back-bot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow-y: auto;
  cursor: pointer;
  width: 100%;
  border: 1px solid rgba(127,86,42,.16);
  border-radius: 7px;
  background: rgba(255,253,242,.68);
  box-shadow: 0 2px 10px rgba(100,60,10,.07);
  transition: .18s;
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 5px 6px 7px !important;
}
.back-bot-card::after { display: none; }
.back-bot-card.sel   { border-color: rgba(199,155,70,.90); box-shadow: 0 0 0 1px rgba(199,155,70,.15), 0 6px 16px rgba(120,70,20,.16); }
.back-bot-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(100,60,10,.12); }
.back-bot-card svg   { width: 72%; height: 72%; overflow: visible; filter: drop-shadow(0 3px 6px rgba(70,40,10,.08)); }
.back-bot-img { display: flex; align-items: center; justify-content: center; overflow: visible; width: 100%; flex: 1 1 auto !important; height: auto !important; min-height: 0 !important; }
.back-bot-img img,
.back-bot-img svg { width: 92% !important; height: 92% !important; object-fit: contain !important; display: block !important; }
.back-bot-name { font-family: "Cinzel", serif; text-align: center; text-transform: uppercase; white-space: normal; color: rgba(91,62,28,.72); flex: 0 0 auto !important; letter-spacing: .04em; font-size: 7px !important; line-height: 1.1 !important; margin-top: 4px !important; }
.back-bot-dots { display: flex; justify-content: center; align-items: center !important; gap: 7px; flex: 0 0 18px !important; height: 18px !important; min-height: 18px !important; margin: 6px 0 0 !important; }
.back-bot-dot     { width: 8px; height: 8px; border-radius: 50%; background: rgba(139,94,44,.2); cursor: pointer; transition: background .2s; }
.back-bot-dot.on  { background: rgba(139,94,44,.65); }
.back-arr {
  position: absolute;
  top: 49% !important;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid rgba(139,94,44,.2);
  background: rgba(255,248,230,.85);
  color: rgba(100,65,28,.6);
  transition: background .18s, border-color .18s;
  width: 32px !important;
  height: 32px !important;
}
.back-arr:hover { background: rgba(255,248,230,1); border-color: rgba(139,94,44,.4); }
.back-arr.left  { left: 8px; }
.back-arr.right { right: 8px; }

.back-info-row { display: none; background: rgba(255,250,232,.86); border: 1px solid rgba(121,82,36,.13); box-shadow: 0 10px 25px rgba(72,45,13,.16); height: 0; border-radius: 20px; margin: 0; padding: 0; grid-template-columns: 1fr 1fr; overflow: hidden; }
.back-info-cell { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-right: 1px solid rgba(121,82,36,.13); }
.back-info-cell:last-child { border-right: 0; }
.back-info-icon  { display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(128,87,43,.22); color: #8d724c; font-size: 16px; width: 36px; height: 36px; }
.back-info-label { font-family: "Cinzel", serif; letter-spacing: .16em; text-transform: uppercase; font-size: 9px; color: #8a6a43; }
.back-info-val   { margin-top: 4px; font-size: 15px; color: #4a2f19; font-weight: 600; }
.back-info-val input { border: 0; background: transparent; font: inherit; color: inherit; width: 100%; outline: 0; }
.back-info-caret { margin-left: auto; color: #9d7a50; font-size: 14px; }

/* ── BOTTOM DECK ────────────────────────────── */
.op2-shell .bottom-main-row { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: calc(100px - 10px) !important; height: calc(100px - 10px) !important; padding: 0 24px !important; }
.op2-shell .bottom-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(127,86,42,.28);
  background: rgba(255,250,235,.42);
  color: #8b5726 !important;
  font-size: 17px;
  width: 52px !important; height: 52px !important; flex: 0 0 52px !important;
}
.bottom-copy  { min-width: 0; flex: 1 1 auto; }
.bottom-caret { width: 24px; height: 24px; flex: 0 0 24px; border: 0; background: transparent; color: #8c683e; font-size: 16px; cursor: pointer; }
.bt-card.is-open .bottom-caret { transform: rotate(180deg); }
.bottom-detail-panel { display: none; position: absolute; left: 18px; right: 18px; bottom: 72px; z-index: 200; padding: 14px 16px; border: 1px solid rgba(127,86,42,.22); border-radius: 12px; background: rgba(255,248,230,.98); box-shadow: 0 12px 28px rgba(49,27,8,.16); color: #4a2d19; }
.bt-card.is-open .bottom-detail-panel,
.bt-card.open    .bottom-detail-panel { display: block; }
.bottom-detail-title { font-family: "Cinzel", serif; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #8a5a35; margin-bottom: 6px; }
.bottom-detail-text  { font-size: 13px; line-height: 1.35; color: rgba(61,36,18,.72); }

/* Date / text inputs in bottom deck */
.op2-shell .bt-date,
.op2-shell .bottom-date {
  width: 100%;
  height: 20px;
  padding: 0;
  margin: 0;
  outline: 0;
  border: 0;
  border-bottom: 1px solid rgba(113,78,31,.22);
  border-radius: 0;
  background: transparent;
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  line-height: 20px;
  color: #301a0b !important;
}
#date-flyup .bt-date { height: 36px; font-size: 15px; border: 1px solid rgba(113,78,31,.28); border-radius: 8px; padding: 0 10px; background: rgba(255,248,230,.72); margin-top: 8px; line-height: 36px; }
.bt-in { width: 100%; height: 26px; padding: 1px 0 3px; margin: 0; border: 0; border-bottom: 1px solid rgba(113,78,31,.22); background: transparent; font-family: "Cormorant Garamond", serif; font-size: 14px; color: #3d2412; line-height: 20px; outline: 0; }
.bt-in::placeholder { color: rgba(139,100,50,.3); }

.sz-lbl  { display: none; font-size: 10px; font-style: italic; color: rgba(83,55,26,.48); margin: 1px 0 0; }
.bt-lbl  { font-family: "Cinzel", serif; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(91,62,28,.58); margin-bottom: 7px; }
.sender-card       { margin: 0; padding: 14px 18px; }
.sender-card .bottom-copy { display: grid; grid-template-columns: 1fr; gap: 3px; }
.proof-card   { padding: 16px 18px; }
.op2-shell .proof-primary { font-size: 16px; line-height: 20px; color: #301a0b !important; }
.proof-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(113,78,31,.11); font-style: italic; color: rgba(61,36,18,.62); font-size: 10px; margin-top: 1px; }
.proof-row:last-child { border-bottom: 0; }
.proof-row b { font-family: "Cinzel", serif; font-style: normal; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: #3d2412; font-weight: 600; white-space: nowrap; }
.bottom-email { font-size: 12px; color: rgba(61,36,18,.74); margin-top: 1px; }
.bottom-name  { font-size: 16px; color: #3d2412; line-height: 20px; }

/* Bottom deck container */
.center-bottom-deck {
  display: grid !important;
  grid-template-columns: repeat(3,1fr) !important;
  align-items: stretch !important;
  position: sticky !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 14px !important;
  background: #E9D9C7 !important;
  background-image: none !important;
  width: 1152px !important;
  min-width: 1152px !important;
  max-width: 1152px !important;
  height: 100px !important;
  min-height: 100px !important;
  max-height: 100px !important;
  margin: 10px auto !important;
  padding: 5px !important;
  gap: 0 !important;
}
.center-bottom-deck .bt-card,
.center-bottom-deck .studio-card {
  position: relative !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-right: 1px solid rgba(127,86,42,.18) !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: rgba(255,248,230,.86) !important;
  height: 90px !important;
  min-height: 90px !important;
  max-height: 90px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.center-bottom-deck .bt-card:first-child,
.center-bottom-deck .studio-card:first-child { border-radius: 10px 0 0 10px !important; }
.center-bottom-deck .bt-card:last-child,
.center-bottom-deck .studio-card:last-child  { border-right: 0 !important; border-radius: 0 10px 10px 0 !important; }
.center-bottom-deck .bottom-main-row { min-height: 90px !important; height: 90px !important; padding: 0 24px !important; }
.center-bottom-deck .bt-lbl,
.center-bottom-deck .studio-title { font-family: "Cinzel", serif; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(94,61,30,.62); margin: 0 0 3px; }

/* ── FOOTER ─────────────────────────────────── */
.op2-shell .ftr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  width: 100% !important;
  height: 70px !important;
  padding: 0 34px;
  background: #070808 !important;
  border-top: 1px solid rgba(199,155,70,.12) !important;
  backdrop-filter: none !important;
}
.op2-shell .ftr-bk { border: 0; background: transparent; cursor: pointer; font-family: "Cormorant Garamond", serif !important; font-style: italic !important; font-size: 17px !important; color: #d7aa4c !important; opacity: .94 !important; }
.op2-shell .ftr-nx {
  border-radius: 999px;
  cursor: pointer;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 600 !important;
  transition: background .2s;
  border: 1px solid rgba(255,218,127,.60) !important;
  background: linear-gradient(180deg,#d99b42,#b97826) !important;
  color: #2a1307 !important;
  padding: 14px 30px !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,240,170,.42) !important;
}
.op2-shell .ftr-nx:hover { background: linear-gradient(180deg,#e0aa55,#c8842c) !important; }

/* ── MISC UTILITIES ─────────────────────────── */
.mono-grid { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.mono-btn  { display: flex; align-items: center; justify-content: center; cursor: pointer; font-family: "Cinzel", serif; font-size: 10px; color: rgba(196,154,60,.4); border: 1px solid rgba(196,154,60,.16); border-radius: 2px; background: rgba(255,255,255,.02); transition: all .2s; width: 22px; height: 22px; }
.mono-btn:hover { border-color: rgba(196,154,60,.38); color: rgba(196,154,60,.75); }
.mono-btn.sel   { border-color: #C49A3C; color: #F0DFA0; background: rgba(196,154,60,.12); }

/* Drawer botanical grid */
.botanicals { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.botanical  { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; position: relative; border-radius: 14px; border: 1px solid rgba(199,155,70,.16); background: rgba(255,255,255,.035); transition: .2s; padding: 5px 2px 15px; height: 58px; }
.botanical:hover,
.botanical.sel { border-color: rgba(224,185,92,.50); background: rgba(199,155,70,.105); transform: translateY(-1px); }
.bot-dot  { display: none; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: #C49A3C; }
.botanical.sel .bot-dot { display: block; }
.bot-name { font-style: italic; text-align: center; line-height: 1.2; position: absolute; left: 0; right: 0; bottom: 5px; font-size: 7px; color: rgba(234,215,168,.62); }
.botanical.sel .bot-name { color: rgba(196,154,60,.65); }
.botanical svg { width: 28px; height: 28px; transform: translateY(-2px); }

.is-hidden { display: none; }
.pc-red    { display: none; }

/* Underline rendering fix */
.pc-ta u,
.pc-ta span[style*="underline"],
.pc-ta font[style*="underline"],
.pc-ta [style*="text-decoration"],
.pc-ta [style*="text-decoration-line"] {
  text-decoration: underline !important;
  text-decoration-thickness: from-font !important;
  text-underline-offset: 0.08em !important;
  text-decoration-skip-ink: auto !important;
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1180px) {
  .op2-shell .card-assembly,
  .op2-shell.is-back-photo .card-assembly {
    width: 1152px !important;
    min-width: 1152px !important;
    max-width: 1152px !important;
    grid-template-columns: 256px 640px 256px !important;
    grid-template-areas:
      "left card right"
      "left tray right"
      "left botanicals right" !important;
  }
  .op2-shell.is-back-photo .card-assembly {
    grid-template-areas:
      "left tray right"
      "left card right"
      "left botanicals right" !important;
  }
  .drawer-l, .drawer-r, .drawer-l-inner, .drawer-r-inner { width: auto; }
  .back-bot-card   { height: 120px; }
  .back-bot-picker { height: 240px; }
  .back-info-row   { grid-template-columns: 1fr; height: auto; }
  .back-info-cell  { min-height: 96px; border-right: 0; border-bottom: 1px solid rgba(121,82,36,.13); }
  .center-bottom-deck {
    width: min(1152px,96vw) !important;
    min-width: 0 !important;
    max-width: 96vw !important;
    grid-template-columns: 1fr !important;
    height: auto !important;
    max-height: none !important;
    gap: 5px !important;
  }
  .center-bottom-deck .bt-card,
  .center-bottom-deck .studio-card { border-right: 0 !important; border-radius: 10px !important; }
}






/* 4-column bottom deck for physical orders */
.op2-shell .center-bottom-deck.is-physical {
  grid-template-columns: repeat(4,1fr) !important;
}



/* ── Hide botanical remove button when overlay is not selected ── */

/* ── Autofill styling for postcard inputs ── */
.pc-f:-webkit-autofill,
.pc-f:-webkit-autofill:hover,
.pc-f:-webkit-autofill:focus,
.bt-in:-webkit-autofill,
.bt-in:-webkit-autofill:hover,
.bt-in:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(0,0,0,0) inset !important;
  -webkit-text-fill-color: rgba(42,21,6,.72) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ── Hide scrollbars in OP2 drawers and panels ── */
.op2-shell .drawer-l,
.op2-shell .drawer-r,
.op2-shell .drawer-l-inner,
.op2-shell .drawer-r-inner,
.op2-shell .wax-colours,
.op2-shell .ink-grid,
.op2-shell .signet-wrap,
.op2-shell .back-bot-options {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.op2-shell .drawer-r { scrollbar-width: none; }
.op2-shell .drawer-l::-webkit-scrollbar,
.op2-shell .drawer-r::-webkit-scrollbar,
.op2-shell .drawer-l-inner::-webkit-scrollbar,
.op2-shell .drawer-r-inner::-webkit-scrollbar,
.op2-shell .wax-colours::-webkit-scrollbar,
.op2-shell .ink-grid::-webkit-scrollbar,
.op2-shell .signet-wrap::-webkit-scrollbar,
.op2-shell .back-bot-options::-webkit-scrollbar {
  display: none;
}

/* ── Hide all scrollbars within OP2 ── */
.op2-shell *::-webkit-scrollbar { display: none; }
.op2-shell * { scrollbar-width: none; -ms-overflow-style: none; }

.op2-shell:not(.is-back-photo) .pc-front.has-cover::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  z-index: 6;
  background: var(--sp-cover-frame-img);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}


.op2-shell.is-back-photo .card-assembly{
  grid-template-rows:
    minmax(0, var(--sp-back-toolbar-r))
    minmax(0, var(--sp-back-card-r))
    minmax(0, var(--sp-back-botanicals-r))
    minmax(0, var(--sp-back-slogan-r)) !important;
  align-content: stretch !important;
  overflow: hidden !important;
}

.op2-shell.is-back-photo .center-studio-tray,
.op2-shell.is-back-photo .pc-wrap,
.op2-shell.is-back-photo .back-photo-panels,
.op2-shell.is-back-photo .back-bot-slogan{
  min-height: 0 !important;
  max-height: 100% !important;
  align-self: stretch !important;
}
.op2-shell.is-back-photo .back-bot-slogan{
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}


