/* Optical alignment after reviewing every active first screen. Artwork and opening handlers stay intact. */
@layer studio215 {
/* One readable utility pair, with sufficient contrast on light and dark artwork. */
html body[data-studio215][data-tools207] #invitation-tools207 #open-fast207{
 background:color-mix(in srgb,var(--studio-paper,#fffaf4) 94%,transparent)!important;
 color:var(--studio-ink,#704357)!important;-webkit-text-fill-color:currentColor!important;
 border:1px solid var(--studio-line,#c6b19a)!important;border-radius:999px!important;
 min-height:40px!important;height:40px!important;padding:8px 13px!important;
 font:400 12px/1.4 var(--studio-sans,Manrope,Arial,sans-serif)!important;
 text-decoration:none!important;box-shadow:inset 0 1px 0 #ffffff70,0 2px 8px #18232b12!important;
}
html body[data-studio215][data-tools207] #invitation-tools207{gap:7px!important;max-width:calc(100vw - 24px)!important;bottom:calc(max(10px,env(safe-area-inset-bottom)) + var(--tools207-keyboard,0px))!important}
/* The envelope was wider than its grid column and carried an obsolete 60px offset. */
html body[data-studio215="boarding-pass"] #opening .envelope{
 box-sizing:border-box!important;width:100%!important;max-width:440px!important;margin:0 auto!important;justify-self:center!important;
}
/* The camera has a real shutter: remove only the duplicate printing action and its reserved row. */
html body[data-studio215="from-the-start"] #opening .camera-stage{margin-bottom:48px!important;max-width:350px!important;width:calc(100vw - 48px)!important}
html body[data-studio215="from-the-start"] #opening #camera-print{display:none!important}
html body[data-studio215="from-the-start"] #opening .camera-body{margin-inline:auto!important}
/* A centered sleeve, without changing the sleeve/disc animation transforms. */
html body[data-studio215="nasha-plastinka"] #tactile-cover .record-object{
 width:80%!important;height:auto!important;aspect-ratio:1!important;left:5%!important;top:calc(50% - 40%)!important;
}
html body[data-studio215="nasha-plastinka"] #tactile-cover .record-object :is(.vinyl-disc,.record-sleeve){width:100%!important;height:100%!important}
html body[data-studio215="nasha-plastinka"] #tactile-cover .tactile-stage{max-width:380px!important;margin-inline:auto!important}
/* Fit the champagne composition in one screen; its original button remains the opening control. */
html body[data-studio215="aperitif-love"] #cover.champagne192{
 box-sizing:border-box!important;width:calc(100% - 32px)!important;max-width:540px!important;
 height:calc(100svh - 32px)!important;min-height:0!important;margin:16px auto!important;
 padding:22px 20px 58px!important;gap:8px!important;overflow:visible!important;
}
html body[data-studio215="aperitif-love"] #cover #cover-title{font-size:clamp(43px,11vw,60px)!important;line-height:.95!important;margin:5px 0!important}
html body[data-studio215="aperitif-love"] #cover :is(.eyebrow,.cover-date){margin:0!important}
html body[data-studio215="aperitif-love"] #cover .champagne192-stage{width:min(100%,calc((100svh - 300px)*.75),296px)!important;flex:0 1 auto!important;min-height:0!important;margin:5px auto!important}
html body[data-studio215="aperitif-love"] #cover #open.shaker{
 min-height:44px!important;height:auto!important;flex:none!important;margin:0 auto!important;padding:8px 14px!important;
 width:auto!important;border:0!important;background:none!important;box-shadow:none!important;border-radius:0!important;
 font-size:14px!important;text-decoration:underline!important;text-underline-offset:5px!important;text-decoration-color:#b49762!important;
}
html body[data-studio215="aperitif-love"] #cover #open .champagne192-cta{font-size:14px!important}
html body[data-studio215="aperitif-love"] #cover #open>span:last-child{display:none!important}
/* Editorial already has a 24px paper margin: do not add a second full viewport. */
html body[data-studio215="demo/editorial.html"] #words-top{min-height:calc(100svh - 48px)!important;height:calc(100svh - 48px)!important}
/* Native decorative instructions must not lead to a still-closed story. */
html[data-viewer238] body[data-studio215="crystal-rose"] #home .scroll-link{display:none!important}
/* Keep the utility labels away from the last line of every opened text page. */
html body[data-studio215] main :is(.s201-panel,.pl-section,.chapter27,.chapter22){scroll-margin-bottom:80px}
/* Catalog: same optical rhythm, two distinct actions, readable on a phone. */
html body[data-art234] #top #four-signatures #al-catalog-grid .catalog-actions234>a{
 font-size:14px!important;min-height:44px!important;padding:9px 10px!important;
}
html body[data-art234] #top #four-signatures #al-catalog-grid>.al-four-card>.catalog-actions234{gap:7px!important;margin-top:2px!important}
@media(max-width:600px){
 html body[data-art234] #top #four-signatures #al-catalog-grid .catalog-actions234>a{font-size:12px!important;padding:9px 5px!important}
}
@media(min-width:801px){
 html body[data-studio215="aperitif-love"] #cover.champagne192{height:auto!important;min-height:740px!important;padding-bottom:64px!important}
 html body[data-studio215="aperitif-love"] #cover .champagne192-stage{width:296px!important}
}
@media(max-height:620px){
 html body[data-studio215="aperitif-love"] #cover.champagne192{height:auto!important;min-height:calc(100svh - 32px)!important}
 html body[data-studio215="aperitif-love"] #cover .champagne192-stage{width:min(70%,210px)!important}
}
}
@layer studio215 {
/* A legacy 620px minimum forced the fit script to shrink the whole camera sheet. */
html body[data-studio215="from-the-start"] #opening .camera-stage{height:calc(100svh - 140px)!important;min-height:0!important;max-height:640px!important;zoom:1!important}
}
@layer studio215 {
html body[data-studio215="nasha-plastinka"] #tactile-cover .record-object{top:50%!important;translate:0 -50%!important}
/* On real text pages keep the existing display type, improve only reading copy. */
html body[data-studio215] main .studio-prose215{font-size:clamp(16px,1.4vw,17px)!important;line-height:1.75!important}
}
