/* Stationery choices share the studio's quiet sage and paper palette. */
.palette-workspace-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.palette-workspace-tab { font-size: 12px; }
.stationery-studio { color: #354431; padding: 5px 0 14px; }
.stationery-heading { margin-bottom: 19px; }
.stationery-eyebrow { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .15em; font-size: 9px; color: #727c69; }
.stationery-heading h3 { font: 400 28px/1.15 Georgia, serif; letter-spacing: -.03em; margin: 0 0 9px; }
.stationery-heading .editor-help { line-height: 1.65; }
.stationery-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding-bottom: 15px; border-bottom: 1px solid #dadfd2; }
.stationery-tabs button { flex: 1 0 auto; min-height: 38px; border: 1px solid transparent; border-radius: 6px; padding: 6px 9px; background: #eeeee5; color: #58634f; font: 500 11px/1.3 'Segoe UI', sans-serif; cursor: pointer; }
.stationery-tabs button[aria-selected=true] { background: #354d38; color: #fffdf5; }
.stationery-group h4 { margin: 20px 0 13px; font: 400 18px/1.35 Georgia, serif; color: #354431; }
.stationery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stationery-choice { position: relative; padding: 8px 8px 12px; border: 1px solid #d5dacd; border-radius: 10px; color: #42523d; background: #fffdf7; cursor: pointer; min-width: 0; }
.stationery-choice:hover { border-color: #7b9370; background: #f6f7ec; }
.stationery-choice[aria-pressed=true] { border-color: #536c48; box-shadow: inset 0 0 0 1px #536c48; background: #f4f5e9; }
.stationery-choice[aria-pressed=true]::after { content: '✓'; position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: #fff; background: #536c48; font: 11px/1 sans-serif; }
.stationery-choice:focus-visible,.stationery-tabs button:focus-visible { outline: 2px solid #536c48; outline-offset: 3px; }
.stationery-choice-name { display: block; font: 500 11px/1.4 'Segoe UI', sans-serif; }
.stationery-visual { height: 88px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; margin-bottom: 9px; background: radial-gradient(ellipse at center, #e9e8dd, #f4f2e9); position: relative; }
.stationery-envelope-sample {
  display: block; width: 94px; height: 59px; background: var(--envelope); border: 1px solid #0002; border-radius: 3px;
  position: relative; box-shadow: 0 7px 10px #1d281c22; transform: rotate(-6deg); perspective: 240px; transform-style: preserve-3d;
}
.stationery-envelope-sample::before { content: ''; position: absolute; inset: 0; z-index: 3; background: linear-gradient(34deg, color-mix(in srgb,var(--envelope) 90%,black) 49%,transparent 50%) left / 50.1% 100% no-repeat,linear-gradient(-34deg,var(--envelope) 49%,transparent 50%) right / 50.1% 100% no-repeat; }
.stationery-envelope-sample::after { content: ''; position: absolute; inset: 0; z-index: 3; background: color-mix(in srgb,var(--envelope) 96%,white); clip-path: polygon(0 100%,50% 39%,100% 100%); }
.stationery-sample-flap { display: block; position: absolute; inset: -1px -1px 40%; z-index: 5; background: color-mix(in srgb,var(--envelope) 90%,white); clip-path: polygon(0 0,100% 0,50% 100%); filter: drop-shadow(0 2px 1px #0002); transform-origin: center top; backface-visibility: visible; }
.stationery-sample-seal { display: block; position: absolute; z-index: 7; width: 18px; height: 18px; left: calc(50% - 9px); top: 43%; border-radius: 46% 54% 45% 55%; background: var(--seal); box-shadow: inset 0 0 0 2px #fff2,0 2px 3px #0002; }
.stationery-sample-card { display: none; position: absolute; z-index: 2; width: 44%; height: 88%; left: 28%; top: 6%; border: 1px solid color-mix(in srgb,var(--paper-accent) 28%,transparent); border-radius: 1px; background: linear-gradient(var(--paper-accent),var(--paper-accent)) center 36% / 48% 1px no-repeat,linear-gradient(var(--paper-accent),var(--paper-accent)) center 47% / 30% 1px no-repeat,var(--paper); box-shadow: 0 1px 2px #0002; }
.stationery-sample-door-left,.stationery-sample-door-right,.stationery-sample-petal-left,.stationery-sample-petal-right,.stationery-sample-petal-bottom,.stationery-sample-ribbon { display: none; position: absolute; }
.stationery-sample-door-left,.stationery-sample-door-right { top: 0; bottom: 0; width: 50.5%; z-index: 4; background: linear-gradient(110deg,color-mix(in srgb,var(--envelope) 95%,white),var(--envelope)); border: 1px solid color-mix(in srgb,var(--gold) 42%,transparent); backface-visibility: visible; }
.stationery-sample-door-left { left: 0; transform-origin: left center; }
.stationery-sample-door-right { right: 0; transform-origin: right center; background: linear-gradient(110deg,var(--envelope),color-mix(in srgb,var(--envelope) 85%,black)); }
.stationery-sample-petal-left,.stationery-sample-petal-right,.stationery-sample-petal-bottom { z-index: 3; background: linear-gradient(100deg,color-mix(in srgb,var(--envelope) 95%,white),color-mix(in srgb,var(--envelope) 87%,black)); border: 1px solid color-mix(in srgb,var(--gold) 27%,transparent); backface-visibility: visible; }
.stationery-sample-petal-left { inset: 0 35% 0 0; clip-path: ellipse(100% 50% at 0 50%); transform-origin: left center; }
.stationery-sample-petal-right { inset: 0 0 0 35%; clip-path: ellipse(100% 50% at 100% 50%); transform-origin: right center; z-index: 4; }
.stationery-sample-petal-bottom { inset: 35% 0 0; clip-path: ellipse(50% 100% at 50% 100%); transform-origin: center bottom; z-index: 5; }
.stationery-sample-ribbon { inset: 0; z-index: 6; background: linear-gradient(90deg,transparent 46%,var(--gold) 46% 54%,transparent 54%),linear-gradient(transparent 46%,var(--gold) 46% 54%,transparent 54%); }
.stationery-sample-ribbon::before,.stationery-sample-ribbon::after { content: ''; position: absolute; top: 28%; height: 14%; width: 24%; border: 3px solid var(--gold); border-radius: 50%; transform-origin: center bottom; }
.stationery-sample-ribbon::before { right: 48%; transform: rotate(20deg); }
.stationery-sample-ribbon::after { left: 48%; transform: rotate(-20deg); }
.stationery-envelope-sample[data-envelope-style=pointed] .stationery-sample-flap { bottom: 19%; clip-path: polygon(0 0,100% 0,86% 32%,50% 100%,14% 32%); }
.stationery-envelope-sample[data-envelope-style=rounded] { border-radius: 9px; }
.stationery-envelope-sample[data-envelope-style=rounded] .stationery-sample-flap { clip-path: ellipse(50% 100% at 50% 0); }
.stationery-envelope-sample[data-envelope-style=square] { width: 65px; }
.stationery-envelope-sample[data-envelope-style=square] .stationery-sample-flap { clip-path: none; inset: 0 0 42%; border-radius: 0 0 3px 3px; border-bottom: 1px solid #0002; }
.stationery-envelope-sample[data-envelope-style=gatefold] :is(.stationery-sample-flap),.stationery-envelope-sample[data-envelope-style=gatefold]::before,.stationery-envelope-sample[data-envelope-style=gatefold]::after { display: none; }
.stationery-envelope-sample[data-envelope-style=gatefold] :is(.stationery-sample-card,.stationery-sample-door-left,.stationery-sample-door-right) { display: block; }
.stationery-envelope-sample[data-envelope-style=pocket] { background: transparent; box-shadow: none; border: none; }
.stationery-envelope-sample[data-envelope-style=pocket] .stationery-sample-flap { display: none; }
.stationery-envelope-sample[data-envelope-style=pocket] .stationery-sample-card { display: block; top: 0; }
.stationery-envelope-sample[data-envelope-style=pocket]::before { display: block; inset: 22% 0 0; background: var(--envelope); clip-path: polygon(0 0,35% 0,50% 15%,65% 0,100% 0,100% 100%,0 100%); border: 1px solid #0002; border-radius: 3px; }
.stationery-envelope-sample[data-envelope-style=pocket]::after { display: block; inset: 35% 6% 9%; border: 1px solid color-mix(in srgb,var(--gold) 42%,transparent); background: none; clip-path: none; }
.stationery-envelope-sample[data-envelope-style=pocket] .stationery-sample-seal { top: 65%; width: 14px; height: 14px; left: calc(50% - 7px); }
.stationery-envelope-sample[data-envelope-style=petal] { border-radius: 25%; }
.stationery-envelope-sample[data-envelope-style=petal]::before,.stationery-envelope-sample[data-envelope-style=petal]::after { display: none; }
.stationery-envelope-sample[data-envelope-style=petal] :is(.stationery-sample-petal-left,.stationery-sample-petal-right,.stationery-sample-petal-bottom,.stationery-sample-card) { display: block; }
.stationery-envelope-sample[data-envelope-style=petal] .stationery-sample-flap { bottom: 35%; clip-path: ellipse(50% 100% at 50% 0); z-index: 6; }
.stationery-envelope-sample[data-envelope-style=airmail] { border: 4px solid transparent; background: linear-gradient(var(--envelope),var(--envelope)) padding-box,repeating-linear-gradient(125deg,var(--gold) 0 7px,var(--paper) 7px 14px,var(--seal) 14px 21px,var(--paper) 21px 28px) border-box; }
.stationery-envelope-sample[data-envelope-style=ribbon] .stationery-sample-ribbon { display: block; }
.stationery-envelope-sample[data-envelope-style=vellum] { background: color-mix(in srgb,var(--paper) 40%,transparent); border: 1px solid #fff9; }
.stationery-envelope-sample[data-envelope-style=vellum] :is(.stationery-sample-flap) { background: #ffffff65; }
.stationery-envelope-sample[data-envelope-style=vellum] .stationery-sample-card { display: block; }
.stationery-envelope-sample[data-envelope-style=vellum]::before,.stationery-envelope-sample[data-envelope-style=vellum]::after { opacity: .55; }

/* Every reveal thumbnail is a construction diagram at rest. Pointer hover or
   keyboard focus plays it once; touch users can inspect the same open state. */
.stationery-visual-opening {
  height: 116px; padding-top: 28px;
  --demo-duration: 2.5s; --demo-flap-delay: .10; --demo-flap-span: .23;
  --demo-extract-delay: .34; --demo-extract-span: .40;
  --demo-left-delay: .14; --demo-right-delay: .18; --demo-door-span: .27;
  --demo-petal-left-delay: .42; --demo-petal-right-delay: .32; --demo-petal-bottom-delay: .21; --demo-petal-left-span: .13; --demo-petal-right-span: .17; --demo-petal-bottom-span: .19;
  --demo-static-extract: -28%; --demo-card-path: stationery-demo-card; --demo-motion-symbol: '↑';
}
.stationery-visual-opening .stationery-envelope-sample { transform: none; width: 76px; height: 49px; }
.stationery-visual-opening .stationery-envelope-sample[data-envelope-style=square] { width: 53px; }
.stationery-visual-opening .stationery-sample-flap { transform: rotateX(-145deg); z-index: 0; opacity: .9; }
.stationery-visual-opening .stationery-sample-card { display: block; transform: translateY(var(--demo-static-extract)); }
.stationery-visual-opening .stationery-sample-seal { opacity: 0; }
.stationery-visual-opening .stationery-sample-door-left { transform: rotateY(-125deg); z-index: 0; }
.stationery-visual-opening .stationery-sample-door-right { transform: rotateY(125deg); z-index: 0; }
.stationery-visual-opening .stationery-sample-petal-left { transform: rotateY(-135deg); z-index: 0; }
.stationery-visual-opening .stationery-sample-petal-right { transform: rotateY(135deg); z-index: 0; }
.stationery-visual-opening .stationery-sample-petal-bottom { transform: rotateX(135deg); z-index: 0; }
.stationery-visual-opening .stationery-sample-ribbon { opacity: .3; transform: translate(-15%,20%) rotate(-12deg); }
.stationery-motion-mark { position: absolute; top: 17px; left: 12px; color: #667953; font-size: 0; text-shadow: 0 1px 1px #fff8; }
.stationery-motion-mark::before { content: var(--demo-motion-symbol); font: 21px/1 Georgia,serif; }
.stationery-motion-mark::after { content: ''; position: absolute; top: 23px; left: 10px; height: 31px; border-left: 1px dashed #80916b88; }
.stationery-visual-opening[data-opening-style=lift] { --demo-static-extract: -52%; --demo-duration: 1.9s; }
.stationery-visual-opening[data-opening-style=bloom] { --demo-static-extract: -48%; --demo-motion-symbol: '✧'; --demo-left-delay: .14; --demo-right-delay: .14; --demo-door-span: .31; --demo-flap-delay: .10; --demo-flap-span: .14; --demo-petal-left-delay: .37; --demo-petal-right-delay: .27; --demo-petal-bottom-delay: .18; --demo-petal-left-span: .18; --demo-petal-right-span: .18; --demo-petal-bottom-span: .16; }
.stationery-visual-opening[data-opening-style=swing] { --demo-static-extract: -115%; --demo-motion-symbol: '↗'; --demo-card-path: stationery-demo-card-swing; }
.stationery-visual-opening[data-opening-style=swing] .stationery-sample-card { transform: translateY(-115%) rotate(-7deg); }
.stationery-visual-opening[data-opening-style=swing] .stationery-motion-mark::after { transform: rotate(22deg); transform-origin: top; }
.stationery-visual-opening[data-opening-style=glide] { --demo-static-extract: -115%; --demo-duration: 2s; --demo-card-path: stationery-demo-card-glide; }
.stationery-visual-opening[data-opening-style=glide] .stationery-sample-card { transform: translate(5px,-115%); }
.stationery-visual-opening[data-opening-style=glide] .stationery-motion-mark::after { height: 42px; border-left-style: solid; }
.stationery-visual-opening[data-opening-style=instant] { --demo-static-extract: -115%; --demo-motion-symbol: '✦'; }
.stationery-visual-opening[data-opening-style=instant] .stationery-envelope-sample { opacity: .45; }
.stationery-visual-opening[data-opening-style=instant] .stationery-motion-mark::after { display: none; }
.stationery-visual-opening[data-envelope-style=gatefold] { --demo-extract-delay: .47; --demo-extract-span: .30; }
.stationery-visual-opening[data-envelope-style=pocket] { --demo-extract-delay: .06; --demo-extract-span: .58; }
.stationery-visual-opening[data-envelope-style=pocket] .stationery-sample-seal { opacity: 1; }
.stationery-visual-opening[data-envelope-style=pocket][data-opening-style=lift] { padding-top: 0; --demo-extract-span: .52; --demo-motion-symbol: '↓'; }
.stationery-visual-opening[data-envelope-style=pocket][data-opening-style=lift] .stationery-envelope-sample { transform: translateY(18px); }
.stationery-visual-opening[data-envelope-style=petal] { --demo-flap-span: .18; --demo-extract-delay: .57; --demo-extract-span: .25; }
.stationery-visual-opening[data-envelope-style=petal][data-opening-style=bloom] { --demo-flap-span: .14; }
.stationery-visual-opening[data-envelope-style=ribbon] { --demo-flap-delay: .32; --demo-flap-span: .16; --demo-extract-delay: .49; --demo-extract-span: .30; }
.stationery-visual-opening[data-envelope-style=vellum] { --demo-flap-delay: .08; --demo-flap-span: .31; --demo-extract-delay: .40; --demo-extract-span: .36; }

/* The original Clean unfold preview opens a complete unglued wrap around a
   centered card, making it visibly different from extracting an insert. */
.stationery-visual-opening[data-opening-style=full-unfold] {
  padding-top: 0; --demo-duration: 2.8s; --demo-top-angle: -180deg; --demo-left-angle: -180deg; --demo-right-angle: 180deg; --demo-bottom-angle: 180deg; --demo-motion-symbol: '✣';
  --demo-static-extract: 0%; --demo-card-path: stationery-demo-centered-card;
  --demo-extract-delay: .49; --demo-extract-span: .41;
  --demo-flap-delay: .08; --demo-flap-span: .21;
  --demo-petal-bottom-delay: .20; --demo-petal-bottom-span: .17;
  --demo-petal-left-delay: .28; --demo-petal-left-span: .17;
  --demo-petal-right-delay: .30; --demo-petal-right-span: .17;
}
.stationery-visual-opening[data-opening-style=full-unfold] .stationery-envelope-sample { width: 54px; height: 35px; }
.stationery-visual-opening[data-opening-style=full-unfold] .stationery-envelope-sample[data-envelope-style=square] { width: 39px; }
.stationery-visual-opening[data-opening-style=full-unfold] .stationery-envelope-sample::before,
.stationery-visual-opening[data-opening-style=full-unfold] .stationery-envelope-sample::after { display: none; }
.stationery-visual-opening[data-opening-style=full-unfold] :is(.stationery-sample-petal-left, .stationery-sample-petal-right, .stationery-sample-petal-bottom) { display: block; }
.stationery-visual-opening[data-opening-style=full-unfold] .stationery-sample-flap { transform: rotateX(-180deg); }
.stationery-visual-opening[data-opening-style=full-unfold] .stationery-sample-petal-left { transform: rotateY(-180deg); }
.stationery-visual-opening[data-opening-style=full-unfold] .stationery-sample-petal-right { transform: rotateY(180deg); }
.stationery-visual-opening[data-opening-style=full-unfold] .stationery-sample-petal-bottom { transform: rotateX(180deg); }
.stationery-visual-opening[data-opening-style=full-unfold] .stationery-sample-card { transform: scale(1.3); }
.stationery-visual-opening[data-opening-style=full-unfold] .stationery-motion-mark::after { display: none; }
.stationery-visual-opening[data-opening-style=full-unfold] .stationery-envelope-sample:not([data-envelope-style=petal]) .stationery-sample-petal-left { inset: 0 54% 0 0; clip-path: polygon(0 0,0 100%,90% 83%,100% 76%,100% 29%,90% 22%); }
.stationery-visual-opening[data-opening-style=full-unfold] .stationery-envelope-sample:not([data-envelope-style=petal]) .stationery-sample-petal-right { inset: 0 0 0 54%; clip-path: polygon(100% 0,100% 100%,10% 83%,0 76%,0 29%,10% 22%); }
.stationery-visual-opening[data-opening-style=full-unfold] .stationery-envelope-sample:not([data-envelope-style=petal]) .stationery-sample-petal-bottom { inset: 44% 0 0; clip-path: polygon(0 100%,100% 100%,80% 0,20% 0); }
.stationery-visual-opening[data-opening-style=full-unfold][data-envelope-style=ribbon] {
  --demo-duration: 3.7s; --demo-ribbon-delay: 0; --demo-ribbon-span: .241379; --demo-loop-span: .21;
  --demo-flap-delay: .302069; --demo-flap-span: .159310;
  --demo-petal-bottom-delay: .393103; --demo-petal-bottom-span: .128966;
  --demo-petal-left-delay: .453793; --demo-petal-left-span: .128966;
  --demo-petal-right-delay: .468966; --demo-petal-right-span: .128966;
  --demo-extract-delay: .613103; --demo-extract-span: .311035;
}

@keyframes stationery-demo-top { from { transform: rotateX(0); z-index: 6; } to { transform: rotateX(var(--demo-top-angle, -160deg)); z-index: 0; } }
@keyframes stationery-demo-left { from { transform: rotateY(0); z-index: 4; } to { transform: rotateY(var(--demo-left-angle, -150deg)); z-index: 0; } }
@keyframes stationery-demo-right { from { transform: rotateY(0); z-index: 4; } to { transform: rotateY(var(--demo-right-angle, 150deg)); z-index: 0; } }
@keyframes stationery-demo-bottom { from { transform: rotateX(0); z-index: 5; } to { transform: rotateX(var(--demo-bottom-angle, 150deg)); z-index: 0; } }
@keyframes stationery-demo-card { from { transform: translateY(0); } to { transform: translateY(-115%); } }
@keyframes stationery-demo-card-swing { 0% { transform: translateY(0); } 75% { transform: translateY(-115%); } 100% { transform: translateY(-115%) rotate(-7deg); } }
@keyframes stationery-demo-card-glide { 0% { transform: translateY(0); } 75% { transform: translateY(-115%); } 100% { transform: translate(5px,-115%); } }
@keyframes stationery-demo-centered-card { from { transform: scale(1); } to { transform: scale(1.3); } }
@keyframes stationery-demo-seal { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.75); } }
@keyframes stationery-demo-ribbon { 0%, 12% { opacity: 1; transform: none; } 75% { opacity: 1; transform: translateY(10%) scaleX(1.1); } 100% { opacity: 0; transform: translateY(30%) rotate(-8deg) scaleX(1.25); } }
@keyframes stationery-demo-loop-left { from { transform: rotate(20deg); border-radius: 50%; } to { transform: translate(-60%,30%) rotate(-38deg) scaleX(1.7); border-radius: 15%; } }
@keyframes stationery-demo-loop-right { from { transform: rotate(-20deg); border-radius: 50%; } to { transform: translate(60%,30%) rotate(38deg) scaleX(1.7); border-radius: 15%; } }
@keyframes stationery-demo-sleeve-slip {
  0%, 6% { transform: none; animation-timing-function: ease; }
  58%, 100% { transform: translateY(40px); }
}

/* One shot animations, also reached by keyboard focus below. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .stationery-choice:hover .stationery-visual-opening[data-envelope-style=pocket][data-opening-style=lift] .stationery-envelope-sample { animation: stationery-demo-sleeve-slip var(--demo-duration) linear both; }
  .stationery-choice:hover .stationery-visual-opening:not([data-opening-style=instant]) .stationery-sample-flap { animation: stationery-demo-top calc(var(--demo-duration) * var(--demo-flap-span)) ease calc(var(--demo-duration) * var(--demo-flap-delay)) both; }
  .stationery-choice:hover .stationery-visual-opening:not([data-opening-style=instant]) .stationery-sample-card { animation: var(--demo-card-path) calc(var(--demo-duration) * var(--demo-extract-span)) ease calc(var(--demo-duration) * var(--demo-extract-delay)) both; }
  .stationery-choice:hover .stationery-visual-opening:not([data-opening-style=instant]):not([data-envelope-style=pocket]) .stationery-sample-seal { animation: stationery-demo-seal calc(var(--demo-duration) * .10) ease both; }
  .stationery-choice:hover .stationery-visual-opening:not([data-opening-style=instant]) .stationery-sample-door-left { animation: stationery-demo-left calc(var(--demo-duration) * var(--demo-door-span)) ease calc(var(--demo-duration) * var(--demo-left-delay)) both; }
  .stationery-choice:hover .stationery-visual-opening:not([data-opening-style=instant]) .stationery-sample-door-right { animation: stationery-demo-right calc(var(--demo-duration) * var(--demo-door-span)) ease calc(var(--demo-duration) * var(--demo-right-delay)) both; }
  .stationery-choice:hover .stationery-visual-opening:not([data-opening-style=instant]) .stationery-sample-petal-left { animation: stationery-demo-left calc(var(--demo-duration) * var(--demo-petal-left-span)) ease calc(var(--demo-duration) * var(--demo-petal-left-delay)) both; }
  .stationery-choice:hover .stationery-visual-opening:not([data-opening-style=instant]) .stationery-sample-petal-right { animation: stationery-demo-right calc(var(--demo-duration) * var(--demo-petal-right-span)) ease calc(var(--demo-duration) * var(--demo-petal-right-delay)) both; }
  .stationery-choice:hover .stationery-visual-opening:not([data-opening-style=instant]) .stationery-sample-petal-bottom { animation: stationery-demo-bottom calc(var(--demo-duration) * var(--demo-petal-bottom-span)) ease calc(var(--demo-duration) * var(--demo-petal-bottom-delay)) both; }
  .stationery-choice:hover .stationery-visual-opening:not([data-opening-style=instant]) .stationery-sample-ribbon { animation: stationery-demo-ribbon calc(var(--demo-duration) * var(--demo-ribbon-span, .28)) ease calc(var(--demo-duration) * var(--demo-ribbon-delay, .02)) both; }
  .stationery-choice:hover .stationery-visual-opening:not([data-opening-style=instant]) .stationery-sample-ribbon::before { animation: stationery-demo-loop-left calc(var(--demo-duration) * var(--demo-loop-span, .24)) ease calc(var(--demo-duration) * var(--demo-ribbon-delay, .02)) both; }
  .stationery-choice:hover .stationery-visual-opening:not([data-opening-style=instant]) .stationery-sample-ribbon::after { animation: stationery-demo-loop-right calc(var(--demo-duration) * var(--demo-loop-span, .24)) ease calc(var(--demo-duration) * var(--demo-ribbon-delay, .02)) both; }
}
@media (prefers-reduced-motion: no-preference) {
  .stationery-choice:focus-visible .stationery-visual-opening[data-envelope-style=pocket][data-opening-style=lift] .stationery-envelope-sample { animation: stationery-demo-sleeve-slip var(--demo-duration) linear both; }
  .stationery-choice:focus-visible .stationery-visual-opening:not([data-opening-style=instant]) .stationery-sample-flap { animation: stationery-demo-top calc(var(--demo-duration) * var(--demo-flap-span)) ease calc(var(--demo-duration) * var(--demo-flap-delay)) both; }
  .stationery-choice:focus-visible .stationery-visual-opening:not([data-opening-style=instant]) .stationery-sample-card { animation: var(--demo-card-path) calc(var(--demo-duration) * var(--demo-extract-span)) ease calc(var(--demo-duration) * var(--demo-extract-delay)) both; }
  .stationery-choice:focus-visible .stationery-visual-opening:not([data-opening-style=instant]):not([data-envelope-style=pocket]) .stationery-sample-seal { animation: stationery-demo-seal calc(var(--demo-duration) * .10) ease both; }
  .stationery-choice:focus-visible .stationery-visual-opening:not([data-opening-style=instant]) .stationery-sample-door-left { animation: stationery-demo-left calc(var(--demo-duration) * var(--demo-door-span)) ease calc(var(--demo-duration) * var(--demo-left-delay)) both; }
  .stationery-choice:focus-visible .stationery-visual-opening:not([data-opening-style=instant]) .stationery-sample-door-right { animation: stationery-demo-right calc(var(--demo-duration) * var(--demo-door-span)) ease calc(var(--demo-duration) * var(--demo-right-delay)) both; }
  .stationery-choice:focus-visible .stationery-visual-opening:not([data-opening-style=instant]) .stationery-sample-petal-left { animation: stationery-demo-left calc(var(--demo-duration) * var(--demo-petal-left-span)) ease calc(var(--demo-duration) * var(--demo-petal-left-delay)) both; }
  .stationery-choice:focus-visible .stationery-visual-opening:not([data-opening-style=instant]) .stationery-sample-petal-right { animation: stationery-demo-right calc(var(--demo-duration) * var(--demo-petal-right-span)) ease calc(var(--demo-duration) * var(--demo-petal-right-delay)) both; }
  .stationery-choice:focus-visible .stationery-visual-opening:not([data-opening-style=instant]) .stationery-sample-petal-bottom { animation: stationery-demo-bottom calc(var(--demo-duration) * var(--demo-petal-bottom-span)) ease calc(var(--demo-duration) * var(--demo-petal-bottom-delay)) both; }
  .stationery-choice:focus-visible .stationery-visual-opening:not([data-opening-style=instant]) .stationery-sample-ribbon { animation: stationery-demo-ribbon calc(var(--demo-duration) * var(--demo-ribbon-span, .28)) ease calc(var(--demo-duration) * var(--demo-ribbon-delay, .02)) both; }
  .stationery-choice:focus-visible .stationery-visual-opening:not([data-opening-style=instant]) .stationery-sample-ribbon::before { animation: stationery-demo-loop-left calc(var(--demo-duration) * var(--demo-loop-span, .24)) ease calc(var(--demo-duration) * var(--demo-ribbon-delay, .02)) both; }
  .stationery-choice:focus-visible .stationery-visual-opening:not([data-opening-style=instant]) .stationery-sample-ribbon::after { animation: stationery-demo-loop-right calc(var(--demo-duration) * var(--demo-loop-span, .24)) ease calc(var(--demo-duration) * var(--demo-ribbon-delay, .02)) both; }
}
@media (prefers-reduced-motion: reduce) { .stationery-visual-opening *, .stationery-visual-opening *::before, .stationery-visual-opening *::after { animation: none !important; transition: none !important; } }
.stationery-selection-note { border-top: 1px solid #dadfd2; margin: 18px 0 0; padding-top: 13px; color: #5f6a55; font: 12px/1.6 'Segoe UI',sans-serif; min-height: 52px; }
.stationery-replay { width: 100%; margin-top: 15px; min-height: 43px; }
@media(max-width:600px) { .palette-workspace-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); padding-top: 3px; } .palette-workspace-tab { min-height: 35px; padding: 6px 3px 9px; } .stationery-visual { height: 76px; } .stationery-visual-opening { height: 108px; padding-top: 28px; } .stationery-tabs { gap: 3px; } .stationery-tabs button { font-size: 10px; padding-inline: 7px; } }

