/* Material finish only: physical opening geometry, transforms and timing are retained. */
body[data-al3d-theme]{--al3d-top:#f5e1b7;--al3d-mid:#e1bf84;--al3d-end:#bc8c50;--al3d-rim:#bd955c;--al3d-base:#926735;--al3d-ink:#3b2719;--al3d-halo:#5b362a28}
body[data-al3d-theme=rose]{--al3d-top:#fff0df;--al3d-mid:#e7c7b6;--al3d-end:#c99783;--al3d-rim:#bc9380;--al3d-base:#a27665;--al3d-ink:#4f302d;--al3d-halo:#754b4924}
body[data-al3d-theme=silver]{--al3d-top:#fcf8ef;--al3d-mid:#dce2e5;--al3d-end:#a8b6c1;--al3d-rim:#a3adb5;--al3d-base:#788b9a;--al3d-ink:#263e53;--al3d-halo:#253f5724}
html body .al3d-action.al3d-action{
 box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:9px;max-width:100%;min-height:46px;padding:12px 21px!important;
 border:1px solid var(--al3d-rim)!important;border-top-color:#fff4d8!important;border-radius:11px!important;
 background:linear-gradient(112deg,var(--al3d-mid) 0%,var(--al3d-top) 28%,var(--al3d-mid) 62%,var(--al3d-end) 100%)!important;
 box-shadow:inset 0 1px 0 #fffaf0e6,inset 1px 0 0 #fff5d88c,inset 0 -2px 1px #654a2b38,0 4px 0 var(--al3d-base),0 7px 13px var(--al3d-halo)!important;
 color:var(--al3d-ink)!important;text-shadow:0 1px 0 #fff8e789;text-align:center;text-decoration:none!important;
 font-size:12px!important;font-weight:600;line-height:1.55!important;letter-spacing:.025em!important;white-space:normal!important;overflow-wrap:break-word;
 cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:translate .18s ease,box-shadow .18s ease,filter .18s ease!important;
}
html body .al3d-action.al3d-secondary{
 background:linear-gradient(115deg,#f3ebe0,#fffaf2 32%,#eee2d2)!important;box-shadow:inset 0 1px 0 #fff,0 3px 0 #c6b294,0 5px 9px #5a3d2912!important;
 border-color:#d4c4ab!important;color:var(--al3d-ink)!important;font-weight:500;
}
@media(hover:hover){html body .al3d-action.al3d-action:hover{translate:0 -1px;filter:brightness(1.025)}}
html body .al3d-action.al3d-action:active{translate:0 3px;box-shadow:inset 0 1px 3px #55331d33,0 1px 0 var(--al3d-base),0 3px 5px var(--al3d-halo)!important}
html body .al3d-action.al3d-action:focus-visible{outline:3px solid var(--al3d-rim);outline-offset:6px}
html body .al3d-action.al3d-action:disabled{cursor:default;translate:0 1px;filter:saturate(.3);opacity:.6}
/* Small controls and swatches stay compact rather than becoming large CTAs. */
html body :is(.paired-navigation20 button,.paired-choices20 button,.pl-tone){box-shadow:inset 0 1px 0 #ffffff91,0 2px 3px #472f2719;touch-action:manipulation}
html body :is(.paired-choices20 button,.pl-tone)[aria-pressed=true]{box-shadow:inset 0 2px 3px #39241d25,0 0 0 2px currentColor}
html body :is(.pl-text-button,.plain27,.text-link22).al3d-action{min-height:44px;padding:9px 15px!important;font-size:11px!important}
html body .al3d-music.al3d-music{
 display:inline-flex!important;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;min-width:112px!important;max-width:164px!important;width:auto!important;min-height:46px!important;height:auto!important;padding:8px 13px!important;
 border:1px solid var(--al3d-rim)!important;border-top-color:#fff8e1!important;border-radius:28px!important;
 background:linear-gradient(120deg,#fffaf0,var(--al3d-top) 36%,var(--al3d-mid) 100%)!important;
 box-shadow:inset 0 1px 0 #fff,0 3px 0 var(--al3d-base),0 6px 12px var(--al3d-halo)!important;
 color:var(--al3d-ink)!important;font-size:0!important;line-height:1!important;letter-spacing:0!important;animation:none!important;cursor:pointer;
}
html body .al3d-music.al3d-music>*{display:none!important}
html body .al3d-music.al3d-music::before{content:''!important;position:static!important;display:block!important;flex:0 0 26px;width:26px!important;height:28px!important;inset:auto!important;background:url('/tactile64/music-note.svg') center/contain no-repeat!important;border:0!important;border-radius:0!important;box-shadow:none!important;opacity:1!important;transform:none!important;pointer-events:none}
html body .al3d-music.al3d-music::after{content:attr(data-al3d-label)!important;position:static!important;display:block!important;background:none!important;border:0!important;box-shadow:none!important;transform:none!important;width:auto!important;height:auto!important;inset:auto!important;font:500 11px/1.5 Arial,sans-serif!important;color:var(--al3d-ink)!important;letter-spacing:.015em!important;opacity:1!important;pointer-events:none}
html body .al3d-music.al3d-music[data-al3d-playing=true]{box-shadow:inset 0 1px 0 #fff,0 3px 0 var(--al3d-base),0 5px 16px #b9955940!important}
html body .al3d-music.al3d-music:active{translate:0 2px;box-shadow:inset 0 1px 3px #6b4e2929,0 1px 0 var(--al3d-base)!important}
html body .al3d-music.al3d-music:focus-visible{outline:3px solid var(--al3d-rim);outline-offset:5px}
/* Paper thickness and directional fold light. No hinge, clip or size changes. */
body[data-al3d-design="navy-garden"] #stage .envelope{box-shadow:inset 0 1px 0 #c5d4e477,inset 0 -3px 0 #081529aa,0 4px 0 #0b1c2d,0 15px 24px #07132640!important;border-radius:8px}
body[data-al3d-design="navy-garden"] #stage :is(.flap,.pocket){box-shadow:inset 1px 1px 0 #d2e2f14d,inset -1px -2px 0 #06102566;filter:drop-shadow(0 2px 1px #07132645)}
body[data-al3d-design="boarding-pass"] .envelope{box-shadow:inset 0 1px 0 #d0d8e577,inset 0 -3px 0 #071221,0 4px 0 #09182b,0 17px 30px #0813215c}
body[data-al3d-design="boarding-pass"] .envelope .flap{filter:drop-shadow(0 3px 1px #06101e80)}
body[data-al3d-design="heart-thread"] .envelope{box-shadow:0 4px 0 #ad8981,0 16px 25px #713f3e30;border-radius:6px}
body[data-al3d-design="heart-thread"] .envelope :is(.envelope-back,.envelope-bottom,.envelope-sides){box-shadow:inset 0 1px 0 #fff4e5a1,inset 0 -2px 0 #86544a30}
body[data-al3d-design="heart-thread"] .envelope .lid{filter:drop-shadow(0 3px 1.2px #70483c66)}
body[data-al3d-design="demo/dopamine.html"] .envelope-stage{filter:drop-shadow(0 4px 0 #b3767c) drop-shadow(0 15px 18px #6b3c472c)}
body[data-al3d-design="demo/dopamine.html"] .envelope-flap{filter:drop-shadow(0 4px 1.5px #6c3b4866)}
body[data-al3d-design="demo/premium-original.html"] #open-envelope{box-shadow:inset 0 1px 0 #fff6e499,0 4px 0 #9c6570,0 17px 28px #4c23374d}
body[data-al3d-design="demo/premium-original.html"] .envelope-flap{filter:drop-shadow(0 3px 1px #67384366)}
body[data-al3d-design="demo/premium-original.html"] .envelope-pocket{box-shadow:inset 0 1px 0 #fff0d477,inset 0 -2px 0 #7342523d}
body[data-al3d-design="olive-estate"] .book-cover{box-shadow:inset 1px 1px 0 #fff8e095,inset -2px -3px 0 #48553c55,0 4px 0 #667354,0 16px 25px #28382235}
body[data-al3d-design="blue-rhapsody"] #cover22 .flap{filter:drop-shadow(0 2px 1.2px #10223960);box-shadow:inset 1px 1px 0 #dce8ed66,inset -1px -2px 0 #071c303b}
body[data-al3d-design="sun-for-two"] .contour-face35>svg{filter:drop-shadow(0 1px .7px #6b3c2c45)}
body[data-al3d-design="sun-for-two"] .contour-stage35{filter:drop-shadow(0 12px 15px #6e412629)}
body[data-al3d-design="lace-door"] .letter-stage{box-shadow:0 3px 0 #b7a79a66,0 15px 24px #6b4b4221!important}
body[data-al3d-design="lace-door"] #cover .lace-flap{filter:drop-shadow(0 1.4px .7px #806b613b)!important}
body[data-al3d-design="lace-door"] .clasp-hit{filter:drop-shadow(0 2px 1px #6a4d444d)}
/* Keep a safe lower edge for the raised base and the iOS home indicator. */
body[data-al3d-theme] :is(.pl-actions,.al-answer-actions52,.form-actions,.reply-actions){gap:14px;padding-bottom:5px}
@media(max-width:600px){html body .al3d-action.al3d-action{padding-inline:18px!important;min-height:46px}html body .al3d-music.al3d-music{min-width:108px!important;padding:7px 11px!important;max-width:150px!important}html body .al3d-music.al3d-music::before{flex-basis:24px;width:24px!important;height:26px!important}.al3d-music{max-width:calc(100vw - 42px)!important}}
@media(prefers-reduced-motion:reduce){html body .al3d-action.al3d-action{transition:none!important;translate:none!important}html body .al3d-music.al3d-music{transition:none!important}}
/* Photographed-style wax, no brand letters on the physical seals. Logo stays in masthead. */
body[data-al3d-theme]{--al3d-seal-art:url('/tactile64/seal-botanical.png.preview.webp')}
body[data-al3d-design="demo/premium-original.html"],body[data-al3d-design="heart-thread"],body[data-al3d-design="bordovoe-nasledie"]{--al3d-seal-art:url('/tactile64/seal-hearts.png.preview.webp')}
html body .al3d-seal.al3d-seal{
 background-color:transparent!important;background-image:var(--al3d-seal-art)!important;background-position:center!important;background-repeat:no-repeat!important;background-size:121% 121%!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;font-size:0!important;color:transparent!important;text-shadow:none!important;
 filter:drop-shadow(0 3px 1px #4e2e3840)!important;overflow:visible!important;
}
html body .al3d-seal.al3d-seal>*{visibility:hidden!important}
html body .al3d-seal.al3d-seal::before,html body .al3d-seal.al3d-seal::after{display:none!important}
html body .al3d-seal.al3d-seal:focus-visible{outline:2px solid #b78c58;outline-offset:5px}
body[data-al3d-design="demo/dopamine.html"] .wax{filter:drop-shadow(0 3px 1px #1b3d3659)}
html body .al3d-action.al3d-action[hidden],html body .al3d-music.al3d-music[hidden]{display:none!important}
/* A raised metal edge, kept slim so that the invitation retains its reading width. */
body[data-al3d-theme] .al-page-frame52{
 border:1px solid var(--al3d-rim)!important;border-top-color:#f4e7cd!important;border-left-color:#d7c2a1!important;border-bottom-color:var(--al3d-base)!important;
 border-radius:8px;box-shadow:inset 1px 1px 0 #fff7e5bd,inset -1px -1px 0 #69513729,0 2px 0 var(--al3d-base),0 5px 15px var(--al3d-halo)!important;
}
body[data-al3d-theme] .al-page-frame52::before{border-color:var(--al3d-rim)!important;border-top-color:#f5e9d3!important;border-radius:5px;box-shadow:inset 0 1px 1px #54362119;opacity:.65}
body[data-al3d-theme] .al-frame-corner52{border-color:var(--al3d-rim);filter:drop-shadow(0 1px 0 #fff4d3);opacity:.9}
body[data-al3d-theme] .al-masthead52{border-color:#c8ac7f;box-shadow:inset 0 1px 0 #fffdf4,0 2px 0 #c3aa85,0 5px 10px #51312716}
body[data-al3d-design=catalog] :is(.live-phone,.special-preview,.ed-phone){border:1px solid #b58a58!important;border-top-color:#f7dfb3!important;border-left-color:#d9b984!important;box-shadow:inset 1px 1px 0 #fff4ddaa,inset -1px -1px 0 #5b362a45,0 4px 0 #8e6444,0 15px 27px #58342f24!important}
body[data-al3d-design=catalog] .al-four-card{border-color:#d7c4a8!important;box-shadow:inset 0 1px 0 #fffaf1,0 3px 0 #d4bea0,0 9px 19px #5b3b2910!important}
@media(max-width:600px){body[data-al3d-theme] .al-page-frame52{box-shadow:inset 1px 1px 0 #fff7e5ad,0 2px 0 var(--al3d-base),0 3px 8px var(--al3d-halo)!important}body[data-al3d-design=catalog] .al-four-card{box-shadow:inset 0 1px 0 #fffaf1,0 2px 0 #d4bea0,0 6px 12px #5b3b290c!important}}
/* Text is embossed in a dark pigment, including labels inside legacy coloured spans. */
html body .al3d-action.al3d-action,html body .al3d-action.al3d-action *{color:var(--al3d-ink)!important;-webkit-text-fill-color:var(--al3d-ink)!important;text-shadow:0 1px 0 #fff4dd77!important}
html body :is(.pl-utility,.controls22,.controls27,.utilities):has(.al3d-music){
 box-sizing:border-box!important;background:#fff8f0f7!important;border:1px solid #bca27c!important;border-radius:32px!important;padding:5px!important;gap:7px!important;
 box-shadow:inset 0 1px 0 #fff,0 3px 0 #a88b64,0 6px 15px #42263128!important;max-width:calc(100vw - 36px)!important;
}
html body :is(.pl-utility,.controls22,.controls27,.utilities):has(.al3d-music)>button:not(.al3d-music){color:#51313c!important;-webkit-text-fill-color:#51313c!important;background:transparent!important;border:0!important;min-height:44px!important;line-height:1.5!important;font-size:10px!important;padding:7px 10px!important}
html body .al3d-music.al3d-music::after{-webkit-text-fill-color:var(--al3d-ink)!important}
html[data-catalog-preview=true] body :is(.pl-utility,.controls22,.controls27,.utilities,.controls):has(.al3d-music),html[data-catalog-preview=true] body>.al3d-music{display:none!important}
@media(max-width:700px){
 html body .pl-utility{left:50%!important;right:auto!important;bottom:calc(14px + env(safe-area-inset-bottom,0px))!important;transform:translateX(-50%)!important;z-index:1100!important;width:max-content!important;max-width:calc(100vw - 36px)!important}
 html body :is(.controls22,.controls27,.utilities):has(.al3d-music){bottom:calc(14px + env(safe-area-inset-bottom,0px))!important;z-index:1100!important}
 html body>.al3d-music{bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;z-index:1100!important}
 body.pl-page #home>.pl-cover-skip,body.pl-page .cover>.pl-cover-skip{bottom:calc(84px + env(safe-area-inset-bottom,0px))!important;min-height:44px!important}
 body.al52[data-pl-mode=crystal] #home{padding-bottom:calc(140px + env(safe-area-inset-bottom,0px))!important}
 body.al52[data-pl-mode=crystal] #home .card{height:max(440px,calc(100svh - 224px))!important}
 body.al52[data-pl-mode=crystal] #home>.pl-cover-skip{color:#f4e0bb!important;-webkit-text-fill-color:#f4e0bb!important}
 body[data-pl-mode=crystal] #home .cover.cover151 .cover-hint151{color:#f3e3cb!important}
}
/* The wax clasp sits above both closing leaves, not inside either hinged leaf. */
body[data-al3d-design="sun-for-two"] .contour-stage35>.contour-seal35{left:50%!important;top:49.043062201%!important;z-index:8!important;transform:translateZ(8px)}
body[data-al3d-design="sun-for-two"] .contour-cover35.opening .contour-stage35>.contour-seal35{transform:translateZ(8px) translateY(8px) scale(.94)}
/* All templates use the same independent, readable dock. No decorative container clips it. */
html body #alena-controls67{position:fixed!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;right:max(18px,env(safe-area-inset-right,0px))!important;left:auto!important;bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;top:auto!important;z-index:2147483201!important;transform:none!important;rotate:none!important;translate:none!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;box-sizing:border-box!important;width:max-content!important;max-width:calc(100vw - 36px)!important;padding:6px!important;border:1px solid #b89b72!important;border-top-color:#fff4d7!important;border-radius:32px!important;background:linear-gradient(115deg,#fffdf8,#f3e6d6)!important;box-shadow:inset 0 1px 0 #fff,0 3px 0 #ad8e64,0 7px 17px #402b2f2b!important;color:#4f302d!important;font:12px/1.5 Arial,sans-serif!important;isolation:isolate}
html body #alena-controls67>button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:44px!important;min-width:102px!important;max-width:145px!important;width:auto!important;padding:8px 11px!important;margin:0!important;position:relative!important;inset:auto!important;transform:none!important;translate:none!important;rotate:none!important;float:none!important;border:1px solid #ceb58b!important;border-top-color:#fff4dd!important;border-radius:25px!important;background:linear-gradient(120deg,#fff8e7,var(--al3d-mid),var(--al3d-top))!important;box-shadow:inset 0 1px 0 #fff,0 2px 0 #a7875c!important;color:#3f2925!important;-webkit-text-fill-color:#3f2925!important;text-shadow:none!important;font:500 12px/1.5 Arial,sans-serif!important;letter-spacing:0!important;white-space:nowrap!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;cursor:pointer!important;animation:none!important;touch-action:manipulation}
html body #alena-controls67>button#al67-motion{min-width:102px!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important}
html body #alena-controls67 button>*{display:inline-block!important;color:inherit!important;-webkit-text-fill-color:inherit!important;font:inherit!important;opacity:1!important;visibility:visible!important;position:static!important;transform:none!important}
html body #alena-controls67>button::before,html body #alena-controls67>button::after{content:none!important;display:none!important}
html body #alena-controls67 .al67-note{width:25px!important;height:29px!important;flex:0 0 25px!important;background:url('/tactile64/music-note.svg') center/contain no-repeat!important}
html body #alena-controls67 .al67-motion-icon{font-size:22px!important;line-height:1!important;color:#9e7845!important}
html body #alena-controls67 button:active{translate:0 2px!important;box-shadow:inset 0 1px 2px #6d4b303b!important}
html body #alena-controls67 button:focus-visible{outline:3px solid #785238!important;outline-offset:3px!important}
html body #alena-controls67 button:disabled{cursor:default!important;color:#746353!important;-webkit-text-fill-color:#746353!important}
html body .al67-legacy-control.al67-legacy-control{display:none!important}
html body .pl-utility:has(.al67-legacy-control),html body .controls22:has(.al67-legacy-control),html body .controls27:has(.al67-legacy-control),html body .utilities:has(.al67-legacy-control){display:none!important}
/* Catalogue frames use the same visible dock as the full invitation. */
@media(max-width:700px){html body #alena-controls67{left:50%!important;right:auto!important;transform:translateX(-50%)!important;bottom:calc(14px + env(safe-area-inset-bottom,0px))!important}html body #alena-controls67>button{font-size:11px!important;min-width:100px!important;padding-inline:10px!important}}
/* A shallow camera angle plus a visible paper edge makes the layered envelope read as a solid object. */
body[data-al3d-design="navy-garden"] #stage .envelope{rotate:1 -1 0 5deg;transform-style:preserve-3d;box-shadow:inset 0 1px 0 #d9e4ec99,inset 0 -2px 0 #041426,1px 1px 0 #162c41,2px 2px 0 #14283b,3px 3px 0 #102235,4px 4px 0 #0c1d30,5px 5px 0 #09182a,0 19px 27px #06132366!important}
body[data-al3d-design="boarding-pass"] .envelope{rotate:1 -1 0 4deg;box-shadow:inset 0 1px 0 #d0d8e577,1px 1px 0 #203249,2px 2px 0 #1a2c40,3px 3px 0 #142438,4px 4px 0 #0e1d30,5px 5px 0 #09182b,0 20px 30px #08132166!important}
body[data-al3d-design="heart-thread"] .envelope{rotate:1 -1 0 4deg;box-shadow:inset 0 1px 0 #fff1e188,1px 1px 0 #b6868b,2px 2px 0 #ae7d82,3px 3px 0 #a5767a,4px 4px 0 #986a70,5px 5px 0 #89616a,0 20px 27px #713f3e50!important}
body[data-al3d-design="demo/premium-original.html"] #open-envelope{rotate:1 -1 0 4deg;box-shadow:inset 0 1px 0 #fff6e499,1px 1px 0 #b47d87,2px 2px 0 #aa727f,3px 3px 0 #a16977,4px 4px 0 #925c6b,5px 5px 0 #844d60,0 20px 30px #4c233750!important}
body[data-al3d-design="demo/dopamine.html"] .envelope-stage{rotate:1 -1 0 4deg;filter:drop-shadow(1px 1px 0 #ba828c) drop-shadow(2px 2px 0 #b37682) drop-shadow(0 16px 20px #6b3c4742)}
body[data-al3d-design="sun-for-two"] .contour-stage35{rotate:1 -1 0 3deg;filter:drop-shadow(1px 1px 0 #a84e2e) drop-shadow(2px 2px 0 #8e432c) drop-shadow(0 17px 21px #6e412642)}
body[data-al3d-design="blue-rhapsody"] #cover22{filter:drop-shadow(0 15px 20px #10223929)}
@media(prefers-reduced-motion:reduce){html body #alena-controls67 button{transition:none!important}body[data-al3d-design] :is(.envelope,.envelope-stage,#open-envelope,.contour-stage35){rotate:none!important}}

/* r70: viewport-safe controls, including native-dialog openings on iOS. */
html body #alena-controls67[popover]{margin:0!important;max-height:none!important;overflow:visible!important;inset-block-start:auto;inset-inline-start:auto}
html body #alena-controls67[data-viewport70="true"]{top:var(--al70-y)!important;bottom:auto!important;left:var(--al70-x)!important;right:auto!important;transform:translateX(-50%)!important;max-width:calc(100vw - 24px)!important}
html body .al-personal-calc-link55.al3d-action{min-height:48px!important;max-width:100%!important;white-space:normal!important;text-align:center!important}

/* Physical opening buttons stay anchored when hovered, pressed or disabled.
   A disabled CTA must not override the fade-out of the moving cover. */
html body .opening40 #open40.al3d-action{width:64px;height:64px;padding:10px!important;translate:-50% -50%!important}
html body .opening40.is-opening40 #open40{opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .18s ease,visibility 0s .18s!important}
@media(max-width:350px){html body .opening40 #open40.al3d-action{width:53px;height:53px;padding:8px!important}}
