/* Savor mockup: Direction A · Atelier
   Classic hardcover library: warm paper, bookcloth, walnut, gilt and terracotta.
   Every selector is scoped to .v-atelier. Layout responds to the app container only. */

.v-atelier {
  --sv-bg: #F5F1E8;
  --sv-paper: #FFFDF8;
  --sv-ink: #292722;
  --sv-muted: #817B70;
  --sv-line: #DDD5C8;
  --sv-accent: #A85F48;
  --sv-accent-ink: #FFFDF8;
  --sv-danger: #B3261E;
  --sv-font-display: 'Cormorant Garamond', 'Garamond', Georgia, serif;
  --sv-font-body: 'Inter', system-ui, sans-serif;
  --sv-font-label: 'Inter', system-ui, sans-serif;
  --sv-radius: 22px;
  --sv-btn-radius: 999px;
  --sv-overlay: rgba(41, 31, 22, .42);
  --sv-toast-bg: #292722;
  --sv-toast-ink: #F5F1E8;
  --sv-toast-radius: 999px;
  --sv-stroke: 1.4;
  --sv-shadow: 0 -12px 44px rgba(41, 31, 22, .2);

  --at-desk: #EAE3D7;
  --at-olive: #59634B;
  --at-gilt: #D9BE86;
  --at-gilt-deep: #A8844A;
  --at-gilt-foil: linear-gradient(90deg, #9C7A43, #E7D3A0 42%, #C2A066 64%, #8E6E3A);
  --at-weave: repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 1px, transparent 1px 2.5px);
  --at-round: linear-gradient(90deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .14) 9%, rgba(255, 255, 255, .08) 28%, rgba(255, 255, 255, .17) 42%, rgba(255, 255, 255, .05) 60%, rgba(0, 0, 0, .14) 84%, rgba(0, 0, 0, .44) 100%);
  --at-paper: radial-gradient(130% 90% at 30% 15%, rgba(255, 255, 255, .7), transparent 60%), linear-gradient(180deg, #FFFDF8, #FBF7EE);
  --at-ease: cubic-bezier(.2, .7, .2, 1);
  --at-caps: 600 15px/1 var(--sv-font-display);
}

.v-atelier .at-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* shared chrome: small-caps back link */
.v-atelier .at-back {
  display: inline-flex; align-items: center; gap: 2px; min-height: 44px; min-width: 44px; max-width: 100%;
  padding: 0 10px 0 4px; justify-self: start;
  font: var(--at-caps); font-size: 16px; font-variant-caps: all-small-caps; letter-spacing: .14em; color: var(--sv-ink);
}
.v-atelier .at-back .sv-ico { width: 17px; height: 17px; flex: none; }
.v-atelier .at-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-bottom: 1px; }
.v-atelier .at-back:hover { color: var(--sv-accent); }

/* ===================================================================== */
/* Library                                                                */
/* ===================================================================== */
.v-atelier .at-lib {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  background: radial-gradient(120% 50% at 50% 0%, #FBF8F1 0%, rgba(251, 248, 241, 0) 70%), var(--sv-bg);
}
.v-atelier .at-lib-body {
  flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: none;
  padding: calc(var(--safe-top) + 26px) 18px 30px;
}
.v-atelier .at-lib-body::-webkit-scrollbar { display: none; }
.v-atelier .at-lib-head { text-align: center; }
.v-atelier .at-mark {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0;
  font: 600 13px/1 var(--sv-font-display); letter-spacing: .46em; text-transform: uppercase; color: var(--sv-ink);
}
.v-atelier .at-mark span { padding-left: .46em; }
.v-atelier .at-mark::before, .v-atelier .at-mark::after { content: ''; width: 46px; height: 1px; background: currentColor; opacity: .45; }
.v-atelier .at-lib-title { margin: 16px 0 6px; font: italic 400 46px/1 var(--sv-font-display); letter-spacing: -.01em; }
.v-atelier .at-lib-count {
  margin: 0; font: 600 16px/1.2 var(--sv-font-display); font-variant-caps: all-small-caps; letter-spacing: .16em; color: var(--sv-muted);
}
.v-atelier .at-lib-count i { font-style: normal; margin: 0 .7em; color: var(--sv-accent); }
.v-atelier .at-search {
  display: flex; align-items: center; gap: 10px; width: min(100%, 320px); height: 44px; margin: 18px auto 0; padding: 0 18px;
  border-radius: 999px; background: var(--sv-paper); color: var(--sv-muted);
  box-shadow: inset 0 0 0 1px var(--sv-line), 0 1px 2px rgba(41, 39, 34, .04);
  font: italic 400 17px var(--sv-font-display); transition: box-shadow .3s, color .3s;
}
.v-atelier .at-search .sv-ico { width: 17px; height: 17px; }
.v-atelier .at-search:hover { color: var(--sv-ink); box-shadow: inset 0 0 0 1px #C9BFAF, 0 4px 14px -8px rgba(41, 39, 34, .3); }

/* --- the bookcase --- */
.v-atelier .at-bookcase {
  position: relative; margin: 26px -6px 0; padding: 0 9px;
  border-radius: 4px 4px 3px 3px;
  background:
    linear-gradient(90deg, #3B2416, #714A31 45%, #573722) left / 9px 100% no-repeat,
    linear-gradient(90deg, #573722, #714A31 55%, #3B2416) right / 9px 100% no-repeat,
    #4A2F1E;
  box-shadow: 0 22px 34px -20px rgba(60, 36, 18, .55);
}
.v-atelier .at-case {
  --row: 250px; --board: 26px;
  position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; align-content: flex-start;
  row-gap: var(--board); padding: var(--board) 12px var(--board);
  background-origin: content-box;
  background-image:
    linear-gradient(180deg,
      rgba(34, 20, 10, .34) 0, rgba(34, 20, 10, .1) 14px, transparent 36px,
      transparent calc(var(--row) - 26px), rgba(34, 20, 10, .1) var(--row),
      #B08560 var(--row), #8F6645 calc(var(--row) + 4px),
      #744D34 calc(var(--row) + 4px), #7C5338 calc(var(--row) + 6px),
      #6A4530 calc(var(--row) + 11px), #73492F calc(var(--row) + 12px),
      #5E3D29 calc(var(--row) + 18px), #66412B calc(var(--row) + 19px),
      #4B301F calc(var(--row) + var(--board) - 2px), #2F1D12 calc(var(--row) + var(--board))),
    radial-gradient(70% 120% at 50% 0%, #EFE6D6, #DFD3BF 70%, #D6C8B2);
  background-size: 100% calc(var(--row) + var(--board));
  background-repeat: repeat-y;
  box-shadow: inset 8px 0 14px -8px rgba(34, 20, 10, .35), inset -8px 0 14px -8px rgba(34, 20, 10, .35);
}
.v-atelier .at-shelf { display: contents; }

/* --- spines --- */
.v-atelier .at-book { height: var(--row); display: flex; align-items: flex-end; padding: 0 1.5px; }
.v-atelier .at-spine {
  position: relative; width: var(--w); height: var(--h);
  display: flex; flex-direction: column; align-items: center;
  border-radius: 3px 3px 2px 2px; color: var(--at-gilt);
  background: var(--at-round), var(--at-weave), var(--tone);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -3px 3px -1px rgba(0, 0, 0, .3),
    4px 0 7px -3px rgba(34, 20, 10, .45), -1px 0 2px rgba(34, 20, 10, .25);
  transform-origin: 50% 100%;
  transition: transform .5s var(--at-ease), box-shadow .5s var(--at-ease);
  -webkit-tap-highlight-color: transparent;
}
.v-atelier .at-spine::before { /* head cap with a sliver of page block */
  content: ''; position: absolute; left: 3px; right: 3px; top: 0; height: 2px; border-radius: 2px 2px 0 0;
  background: rgba(255, 255, 255, .16);
}
.v-atelier .at-spine-band { flex: none; width: 100%; height: 6px; }
.v-atelier .at-spine-band--top { margin-top: 16px; }
.v-atelier .at-spine-band--bot { margin-bottom: 14px; }
.v-atelier .at-spine--b0 .at-spine-band { border-top: 1px solid var(--at-gilt); border-bottom: 1px solid var(--at-gilt); opacity: .85; }
.v-atelier .at-spine--b1 .at-spine-band { height: 4px; background: var(--at-gilt-foil); opacity: .9; box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.v-atelier .at-spine--b2 .at-spine-band {
  height: 7px; border-top: 1px solid var(--at-gilt); opacity: .85;
  background: radial-gradient(circle, var(--at-gilt) 0 .9px, transparent 1.3px) center 3px / 5px 4px repeat-x;
}
.v-atelier .at-spine-title {
  flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 14px 0 8px;
  writing-mode: vertical-rl; text-align: center;
  font: 600 14.5px/1.08 var(--sv-font-display); font-variant-caps: all-small-caps; letter-spacing: .15em;
  color: #EEDDB2; text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
}
.v-atelier .at-spine-orn { flex: none; font-size: 9px; line-height: 1; margin-bottom: 7px; opacity: .85; }
.v-atelier .at-spine-vol { flex: none; margin-bottom: 8px; font: 600 10px/1 var(--sv-font-display); letter-spacing: .12em; opacity: .8; }
.v-atelier .at-spine.is-suggested .at-spine-title {
  font-style: italic; font-weight: 500; font-variant-caps: normal; letter-spacing: .04em; font-size: 15px;
  color: rgba(233, 214, 166, .58); text-shadow: none;
}
.v-atelier .at-spine.is-suggested .at-spine-band { opacity: .4; }

@media (hover: hover) {
  .v-atelier .at-spine:hover { transform: translateY(-7px) rotate(-1.4deg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -3px 3px -1px rgba(0, 0, 0, .3), 8px 6px 14px -4px rgba(34, 20, 10, .45), -1px 0 2px rgba(34, 20, 10, .25); }
}
.v-atelier .at-spine:active { transform: translateY(-3px); }
.v-atelier .at-spine:focus-visible { outline: 2px solid var(--at-gilt); outline-offset: 3px; }
.v-atelier .at-spine.is-opening {
  z-index: 3; transform: translateY(-30px) scale(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 24px 30px -12px rgba(34, 20, 10, .6), 0 0 0 1px rgba(217, 190, 134, .3);
  transition-duration: .38s;
}
.v-atelier .at-book.is-dragging { filter: drop-shadow(0 18px 14px rgba(34, 20, 10, .4)); }
.v-atelier .at-book.is-dragging .at-spine { transform: translateY(-10px) rotate(-3deg); transition: none; }
.v-atelier .at-book.is-fresh .at-spine { animation: at-shelve 1.1s var(--at-ease) both, at-gleam 1.8s 1s ease-in-out 2; }
@keyframes at-shelve { from { opacity: 0; transform: translateY(-46px) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes at-gleam {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 4px 0 7px -3px rgba(34, 20, 10, .45); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 22px 2px rgba(217, 190, 134, .75); }
}

/* --- loose Folios leaning at the shelf end --- */
.v-atelier .at-loose {
  position: relative; height: var(--row); margin-left: auto;
  display: flex; align-items: flex-end; gap: 3px; padding: 0 4px 0 18px;
}
.v-atelier .at-leaf {
  position: relative; width: 62px; height: 88px; flex: none;
  transform: rotate(var(--tilt)); transform-origin: 50% 100%;
  filter: drop-shadow(0 2px 2px rgba(34, 20, 10, .3));
  transition: transform .45s var(--at-ease);
}
.v-atelier .at-leaf-paper {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 6px 6px 5px;
  background: var(--at-paper);
}
.v-atelier .at-leaf-plate { flex: 1; min-height: 0; position: relative; overflow: hidden; box-shadow: 0 0 0 1px rgba(41, 39, 34, .18); }
.v-atelier .at-leaf-plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-atelier .at-leaf-title {
  flex: none; margin-top: 5px; text-align: center; color: var(--sv-ink);
  font: italic 500 9px/1.1 var(--sv-font-display);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.v-atelier .at-leaf-paper.is-type { justify-content: center; align-items: center; box-shadow: inset 0 0 0 3px #FFFDF8, inset 0 0 0 4px rgba(41, 39, 34, .3); }
.v-atelier .at-leaf-orn { color: var(--sv-accent); font-size: 15px; line-height: 1; margin-bottom: 4px; }
.v-atelier .at-leaf-paper.is-type .at-leaf-title { font-size: 10.5px; margin: 0 4px; -webkit-line-clamp: 3; }
@media (hover: hover) { .v-atelier .at-leaf:hover { transform: rotate(0) translateY(-8px); } }
.v-atelier .at-loose-plaque {
  position: absolute; top: calc(100% + 9px); left: calc(50% + 7px); transform: translateX(-50%);
  padding: 3px 9px 2px; white-space: nowrap;
  font: 600 8px/1.2 var(--sv-font-label); letter-spacing: .22em; text-transform: uppercase; color: #3B2616;
  background: linear-gradient(180deg, #E3C88F, #B8955A); border-radius: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 2px rgba(0, 0, 0, .45);
}

.v-atelier .at-hint {
  max-width: 300px; margin: 16px auto 0; text-align: center;
  font: italic 400 15px/1.45 var(--sv-font-display); color: var(--sv-muted);
}
.v-atelier .at-hint i { font-style: normal; color: var(--sv-accent); margin: 0 .2em; }

/* --- empty library --- */
.v-atelier .at-lib-empty { text-align: center; }
.v-atelier .at-bookcase--empty .at-case { justify-content: center; }
.v-atelier .at-lib-empty-t {
  width: 100%; height: var(--row); margin: 0; display: grid; place-items: center;
  font: italic 400 24px/1.25 var(--sv-font-display); color: #6E5A45;
}
.v-atelier .at-bookcase--empty .at-loose { margin: 0 auto; }
.v-atelier .at-lib-empty-s { max-width: 300px; margin: 18px auto 16px; font-size: 13.5px; line-height: 1.6; color: var(--sv-muted); }

/* --- dock (phone) / header controls (wide) --- */
.v-atelier .at-dock {
  position: relative; z-index: 5; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 34px calc(16px + env(safe-area-inset-bottom));
  background: var(--sv-bg);
}
.v-atelier .at-dock::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 34px; pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 241, 232, 0), var(--sv-bg));
}
.v-atelier .at-dock-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 64px; min-height: 48px; color: var(--sv-ink);
  font: 600 14px/1 var(--sv-font-display); font-variant-caps: all-small-caps; letter-spacing: .15em;
}
.v-atelier .at-dock-btn .sv-ico { width: 20px; height: 20px; }
.v-atelier .at-dock-btn:hover { color: var(--sv-accent); }
.v-atelier .at-dock-create {
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%;
  background: var(--sv-accent); color: var(--sv-paper);
  box-shadow: 0 0 0 5px var(--sv-bg), 0 0 0 6px var(--sv-line), 0 14px 24px -10px rgba(168, 95, 72, .75);
  transition: transform .35s var(--at-ease), background .3s;
}
.v-atelier .at-dock-create .sv-ico { width: 24px; height: 24px; stroke-width: 1.6; }
.v-atelier .at-dock-create:hover { background: #95503B; transform: rotate(90deg); }

@container app (min-width: 768px) {
  .v-atelier .at-lib-body { padding: calc(var(--safe-top) + 44px) 48px 52px; }
  .v-atelier .at-lib-title { font-size: 66px; margin-top: 18px; }
  .v-atelier .at-bookcase { width: 100%; max-width: 760px; margin: 38px auto 0; padding: 0 12px; background-size: 12px 100%, 12px 100%, auto; }
  .v-atelier .at-case { padding-inline: 22px; --row: 286px; }
  .v-atelier .at-spine { width: calc(var(--w) * 1.14); height: calc(var(--h) * 1.13); }
  .v-atelier .at-spine-title { font-size: 16px; }
  .v-atelier .at-leaf { width: 70px; height: 98px; }
  .v-atelier .at-hint { max-width: none; margin-top: 20px; }
  .v-atelier .at-dock {
    position: absolute; top: calc(var(--safe-top) + 24px); bottom: auto; right: 30px; margin: 0; padding: 0;
    gap: 4px; justify-content: flex-end; background: none;
  }
  .v-atelier .at-dock::before { display: none;
  }
  .v-atelier .at-dock-btn { flex-direction: row; gap: 8px; min-width: 0; padding: 0 12px; min-height: 44px; }
  .v-atelier .at-dock-btn .sv-ico { width: 18px; height: 18px; }
  .v-atelier .at-dock-create { order: 3; width: 46px; height: 46px; margin-left: 10px; box-shadow: 0 10px 20px -10px rgba(168, 95, 72, .8); }
  .v-atelier .at-dock-create .sv-ico { width: 20px; height: 20px; }
}

/* ===================================================================== */
/* Book interior: an open clothbound volume on a desk                    */
/* ===================================================================== */
.v-atelier .at-reader {
  height: 100%; display: flex; flex-direction: column;
  background: radial-gradient(90% 70% at 50% 46%, #F2ECE1 0%, var(--at-desk) 55%, #D8CEBE 100%);
}
.v-atelier .at-rbar {
  flex: none; display: grid; grid-template-columns: 96px minmax(0, 1fr) 96px; align-items: center; gap: 4px;
  padding: calc(var(--safe-top) + 8px) 8px 2px;
}
.v-atelier .at-rhead { min-width: 0; text-align: center; }
.v-atelier .at-rtitle { margin: 0; font: italic 500 21px/1.15 var(--sv-font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-atelier .at-rtitle.is-suggested { color: var(--sv-muted); }
.v-atelier .at-rcount {
  margin: 3px 0 0; font: 500 9.5px/1.3 var(--sv-font-label); letter-spacing: .22em; text-transform: uppercase; color: var(--sv-muted);
}
.v-atelier .at-rcount [data-at-roman], .v-atelier .at-rcount [data-at-roman-total] {
  font: 600 13px/1 var(--sv-font-display); letter-spacing: .08em; color: var(--sv-accent);
}
.v-atelier .at-open {
  justify-self: end; min-height: 44px; padding: 0 6px;
  font: var(--at-caps); font-size: 16px; font-variant-caps: all-small-caps; letter-spacing: .12em; color: var(--sv-accent);
  white-space: nowrap;
}
.v-atelier .at-open::after { content: ' ›'; }
.v-atelier .at-open:hover { color: #8A4934; }

.v-atelier .at-stage { flex: 1; min-height: 0; container-type: size; display: grid; place-items: center; }
.v-atelier .at-volume {
  position: relative; isolation: isolate;
  width: min(calc(100cqw - 48px), calc((100cqh - 60px) * .7)); aspect-ratio: .7;
  margin-bottom: 22px;
}
.v-atelier .at-volume > .sv-book { position: absolute; inset: 0; }

/* cloth board around the pages */
.v-atelier .at-volume::before {
  content: ''; position: absolute; z-index: -1; inset: -11px -12px -11px -17px; border-radius: 4px 8px 8px 4px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, .08) 12px, rgba(255, 255, 255, .06) 16px, transparent 22px),
    var(--at-weave), var(--tone, var(--at-olive));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 0 22px rgba(0, 0, 0, .28),
    0 34px 46px -26px rgba(40, 24, 12, .6), 0 12px 18px -12px rgba(40, 24, 12, .45);
}
/* stacked page edges */
.v-atelier .at-volume {
  --at-stack: repeating-linear-gradient(90deg, #FCF8EF 0 1px, #D9CFBD 1px 1.7px);
}
.v-atelier .at-volume::after {
  z-index: -1;
  content: ''; position: absolute; top: 3px; bottom: 3px; left: -6px; right: -6px; pointer-events: none;
  background: var(--at-stack) right center / 6px 100% no-repeat;
  border-radius: 0 3px 3px 0;
}
.v-atelier .at-volume:has(> [data-layout="spread"])::before {
  inset: -12px -15px; border-radius: 8px;
  background:
    linear-gradient(90deg, transparent calc(50% - 12px), rgba(0, 0, 0, .32) 50%, transparent calc(50% + 12px)),
    var(--at-weave), var(--tone, var(--at-olive));
}
.v-atelier .at-volume:has(> [data-layout="spread"])::after {
  background: var(--at-stack) left center / 6px 100% no-repeat, var(--at-stack) right center / 6px 100% no-repeat;
  border-radius: 3px;
}

/* paper */
.v-atelier .sv-page { background: var(--at-paper); }
.v-atelier .sv-page--single, .v-atelier .sv-page--right { border-radius: 0 3px 3px 0; }
.v-atelier .sv-page--left { border-radius: 3px 0 0 3px; }
.v-atelier .sv-page::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
/* gutter on the right of left-hand pages */
.v-atelier .sv-page--left::after,
.v-atelier .sv-leaf--left .sv-page--front::after,
.v-atelier .sv-leaf--right .sv-page--back::after {
  background: linear-gradient(270deg, rgba(70, 48, 26, .26), rgba(70, 48, 26, .08) 4%, transparent 11%),
              linear-gradient(90deg, rgba(70, 48, 26, .06), transparent 3%);
}
/* gutter on the left of right-hand / single pages */
.v-atelier .sv-page--right::after,
.v-atelier .sv-page--single::after,
.v-atelier .sv-leaf--right .sv-page--front::after,
.v-atelier .sv-leaf--left .sv-page--back::after,
.v-atelier .sv-leaf--full .sv-page--front::after {
  background: linear-gradient(90deg, rgba(70, 48, 26, .26), rgba(70, 48, 26, .08) 4%, transparent 11%),
              linear-gradient(270deg, rgba(70, 48, 26, .06), transparent 3%);
}
.v-atelier .sv-leaf--full .sv-page--back::after { background: linear-gradient(270deg, rgba(70, 48, 26, .22), transparent 10%); }

/* ribbon marker: emerges from the headband and hangs below the book */
.v-atelier .at-ribbon {
  position: absolute; z-index: -2; top: -19px; left: 22px; width: 11px; height: calc(100% + 54px);
  background: linear-gradient(90deg, #86452F, #B8705A 40%, #A85F48 62%, #844330);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 9px), 0 100%);
}

.v-atelier .at-rnav {
  flex: none; display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 0 16px calc(14px + env(safe-area-inset-bottom));
}
.v-atelier .at-arrow {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
  color: var(--sv-ink); box-shadow: inset 0 0 0 1px rgba(41, 39, 34, .2); transition: background .3s, color .3s, opacity .3s;
}
.v-atelier .at-arrow .sv-ico { width: 18px; height: 18px; }
.v-atelier .at-arrow:hover:not(:disabled) { background: var(--sv-paper); color: var(--sv-accent); }
.v-atelier .at-arrow:disabled { opacity: .28; cursor: default; }
.v-atelier .at-rnav-mid { flex: 0 1 280px; min-width: 0; text-align: center; }
.v-atelier .at-rfolio { margin: 0 0 4px; font: italic 400 16px/1.2 var(--sv-font-display); color: var(--sv-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-atelier .at-dots { display: flex; justify-content: center; flex-wrap: wrap; }
.v-atelier .at-dot { width: 24px; height: 26px; display: grid; place-items: center; }
.v-atelier .at-dot::before {
  content: ''; width: 6px; height: 6px; transform: rotate(45deg);
  box-shadow: inset 0 0 0 1px rgba(41, 39, 34, .45); transition: background .3s, transform .3s, box-shadow .3s;
}
.v-atelier .at-dot:hover::before { box-shadow: inset 0 0 0 1px var(--sv-accent); }
.v-atelier .at-dot.is-active::before { background: var(--sv-accent); box-shadow: none; transform: rotate(45deg) scale(1.3); }

@container app (min-width: 768px) {
  .v-atelier .at-rbar { grid-template-columns: 160px minmax(0, 1fr) 160px; padding: calc(var(--safe-top) + 16px) 22px 4px; }
  .v-atelier .at-rtitle { font-size: 27px; }
  .v-atelier .at-volume { width: min(calc(100cqw - 90px), calc((100cqh - 64px) * 1.42), 1180px); aspect-ratio: 1.42; }
  .v-atelier .at-volume:has(> [data-layout="empty"]) { width: min(calc(100cqw - 90px), calc((100cqh - 64px) * .7)); aspect-ratio: .7; }
  .v-atelier .at-volume:has(> [data-layout="spread"]) .at-ribbon { left: calc(50% + 22px); }
  .v-atelier .at-rnav { padding-bottom: 20px; }
}

/* ===================================================================== */
/* Visual side: the tipped-in plate                                     */
/* ===================================================================== */
.v-atelier .at-vis {
  container-type: size; position: relative; height: 100%;
  display: flex; flex-direction: column; padding: 8% 9% 7%; color: var(--sv-ink);
  --plate-gap: clamp(3px, 1.5cqw, 7px);
}
.v-atelier .at-vis-head {
  flex: none; display: flex; align-items: center; justify-content: center; gap: 3cqw; margin-bottom: 4cqh;
  font: 600 clamp(10px, 3.8cqw, 16px)/1 var(--sv-font-display); font-variant-caps: all-small-caps; letter-spacing: .2em; color: var(--sv-muted);
}
.v-atelier .at-vis-head span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-atelier .at-vis-head::before, .v-atelier .at-vis-head::after { content: ''; flex: none; width: 8cqw; height: 1px; background: currentColor; opacity: .45; }
.v-atelier .at-plate-zone { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.v-atelier .at-plate {
  flex: 1; min-height: 0; position: relative; margin: var(--plate-gap); background: #EAE2D4;
  outline: 1px solid rgba(41, 39, 34, .3); outline-offset: var(--plate-gap);
  box-shadow: 0 1px 1px rgba(41, 39, 34, .14), 0 8px 16px -10px rgba(41, 39, 34, .45);
}
.v-atelier .at-plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-atelier .at-vt { flex: none; text-align: center; padding: 5cqh 2cqw 0; }
.v-atelier .at-vt-title {
  margin: 0; font: 500 clamp(18px, 8.6cqw, 48px)/1.03 var(--sv-font-display); letter-spacing: -.005em;
  color: var(--sv-ink); text-wrap: balance; overflow-wrap: anywhere;
}
.v-atelier .at-vt-sub { margin: 1.4cqh 0 0; font: italic 400 clamp(11px, 4.3cqw, 21px)/1.25 var(--sv-font-display); color: var(--sv-muted); text-wrap: balance; }
.v-atelier .at-vt-title.is-auto { font-style: italic; opacity: .75; }
.v-atelier .at-vis-foot {
  flex: none; margin-top: 3.6cqh; text-align: center;
  font: 500 clamp(7.5px, 2.5cqw, 10.5px)/1.2 var(--sv-font-label); letter-spacing: .24em; text-transform: uppercase; color: var(--sv-muted);
}
.v-atelier .at-vis--folio .at-vis-head { margin-bottom: 4.5cqh; }

/* title typography */
.v-atelier .ts-font-italic .at-vt-title { font-style: italic; }
.v-atelier .ts-font-caps .at-vt-title { font-size: clamp(14px, 6cqw, 34px); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; line-height: 1.15; }

/* title colour on paper */
.v-atelier .ts-color-accent .at-vt-title { color: var(--sv-accent); }
.v-atelier .ts-color-accent .at-vt-sub { color: #9A7465; }

/* placement around the plate */
.v-atelier .ts-pos-top .at-plate-zone .at-vt { order: -1; padding: 0 2cqw 4.5cqh; }
.v-atelier .ts-pos-center .at-plate-zone .at-vt {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78%; padding: 0;
}
/* paper-coloured titles are printed onto the photograph itself */
.v-atelier .ts-color-paper .at-plate-zone .at-vt-title { color: #FFFDF8; text-shadow: 0 1px 18px rgba(20, 14, 8, .35); }
.v-atelier .ts-color-paper .at-plate-zone .at-vt-sub { color: rgba(255, 253, 248, .88); }
.v-atelier .ts-color-paper:not(.ts-pos-center) .at-plate-zone .at-vt { position: absolute; left: var(--plate-gap); right: var(--plate-gap); padding: 14cqw 7cqw 6cqw; }
.v-atelier .ts-color-paper.ts-pos-bottom .at-plate-zone .at-vt { bottom: var(--plate-gap); background: linear-gradient(0deg, rgba(22, 15, 9, .66), rgba(22, 15, 9, .3) 55%, rgba(22, 15, 9, 0)); }
.v-atelier .ts-color-paper.ts-pos-top .at-plate-zone .at-vt { top: var(--plate-gap); padding: 6cqw 7cqw 14cqw; background: linear-gradient(180deg, rgba(22, 15, 9, .62), rgba(22, 15, 9, .28) 55%, rgba(22, 15, 9, 0)); }
.v-atelier .ts-color-paper.ts-pos-center .at-plate::after { content: ''; position: absolute; inset: 0; background: radial-gradient(closest-side, rgba(22, 15, 9, .5), rgba(22, 15, 9, .18) 70%, rgba(22, 15, 9, .08)); }
/* ink / terracotta over the photograph → a mounted paper cartouche */
.v-atelier .ts-pos-center:not(.ts-color-paper) .at-plate-zone .at-vt {
  width: 74%; padding: 5cqw 5cqw 5.5cqw; background: rgba(255, 253, 248, .95);
  box-shadow: inset 0 0 0 3px rgba(255, 253, 248, .95), inset 0 0 0 4px rgba(41, 39, 34, .35), 0 10px 24px -10px rgba(20, 14, 8, .5);
}
.v-atelier .ts-pos-center:not(.ts-color-paper) .at-plate-zone .at-vt-title { font-size: clamp(16px, 7cqw, 40px); }
.v-atelier .ts-font-caps.ts-pos-center:not(.ts-color-paper) .at-plate-zone .at-vt-title { font-size: clamp(12px, 5cqw, 28px); }

/* no photograph → typographic title card */
.v-atelier .at-card {
  flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10cqw 8cqw; text-align: center;
  border: 1px solid rgba(41, 39, 34, .55);
  box-shadow: inset 0 0 0 4px #FFFDF8, inset 0 0 0 5px rgba(41, 39, 34, .4);
}
.v-atelier .at-card .at-vt { padding: 0; }
.v-atelier .at-card .at-vt-title { font-size: clamp(22px, 10.5cqw, 60px); font-weight: 400; line-height: 1; }
.v-atelier .ts-font-caps .at-card .at-vt-title { font-size: clamp(15px, 6.6cqw, 38px); }
.v-atelier .at-card-orn { font-size: clamp(16px, 7cqw, 34px); line-height: 1; color: var(--sv-accent); margin-bottom: 5cqh; }
.v-atelier .at-fleuron { display: inline-block; width: 1em; height: 1em; vertical-align: -.1em; fill: currentColor; }
.v-atelier .at-fleuron-stem { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.v-atelier .at-card-rule { width: 14cqw; height: 1px; margin-top: 5cqh; background: currentColor; opacity: .35; }
.v-atelier .at-vis--card.ts-pos-top .at-card { justify-content: flex-start; padding-top: 16cqw; }
.v-atelier .at-vis--card.ts-pos-bottom .at-card { justify-content: flex-end; padding-bottom: 16cqw; }
.v-atelier .at-vis--card.ts-color-paper .at-card {
  background: var(--at-weave), var(--tone, #2F2A24); color: #F3E6C8; border-color: rgba(217, 190, 134, .5);
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0), inset 0 0 0 5px rgba(217, 190, 134, .45), inset 0 0 40px rgba(0, 0, 0, .25);
}
.v-atelier .at-vis--card.ts-color-paper .at-vt-title { color: #F6EBD0; }
.v-atelier .at-vis--card.ts-color-paper .at-vt-sub { color: rgba(246, 235, 208, .75); }
.v-atelier .at-vis--card.ts-color-paper .at-card-orn { color: var(--at-gilt); }

/* ===================================================================== */
/* Informational side: the cookbook page                                */
/* ===================================================================== */
.v-atelier .at-info {
  container: atpage / inline-size;
  padding: 30px 24px 34px; font: 400 13.5px/1.6 var(--sv-font-body); color: var(--sv-ink);
}
.v-atelier .at-info--reader { padding: 26px 22px 30px; font-size: 12.5px; }
.v-atelier .at-info--folio { padding: 38px 28px 60px 30px; font-size: 14.5px; }
.v-atelier .at-ih { text-align: center; margin-bottom: 6px; }
.v-atelier .at-kicker { margin: 0 0 10px; font: 500 9.5px/1.4 var(--sv-font-label); letter-spacing: .24em; text-transform: uppercase; color: var(--sv-accent); }
.v-atelier .at-ih-title { margin: 0; font: 500 2.2em/1.04 var(--sv-font-display); letter-spacing: -.005em; text-wrap: balance; }
.v-atelier .at-info--folio .at-ih-title { font-size: 2.55em; }
.v-atelier .at-ih-sub { margin: 6px 0 0; font: italic 400 1.25em/1.3 var(--sv-font-display); color: var(--sv-muted); text-wrap: balance; }
.v-atelier .at-ih-meta { margin: 12px 0 0; font: 600 1.12em/1.2 var(--sv-font-display); font-variant-caps: all-small-caps; letter-spacing: .16em; }
.v-atelier .at-ih-meta i { font-style: normal; margin: 0 .7em; color: var(--sv-accent); }
.v-atelier .at-ih-orn { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; font-size: 9px; color: var(--sv-accent); }
.v-atelier .at-ih-orn::before, .v-atelier .at-ih-orn::after { content: ''; width: 34px; height: 1px; background: var(--sv-line); }

.v-atelier .at-sec { margin-top: 24px; }
.v-atelier .at-sec-h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; min-height: 30px; }
.v-atelier .at-sec-h h3 { margin: 0; font: italic 500 1.55em/1 var(--sv-font-display); white-space: nowrap; }
.v-atelier .at-sec-rule { flex: 1; height: 1px; background: var(--sv-line); }
.v-atelier .at-sec-tools { display: flex; margin: -6px -10px -6px -4px; }
.v-atelier .at-tool { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--sv-muted); opacity: .7; transition: color .25s, opacity .25s; }
.v-atelier .at-tool .sv-ico { width: 17px; height: 17px; }
.v-atelier .at-tool:hover { color: var(--sv-accent); opacity: 1; }

/* ingredients */
.v-atelier .at-ings { list-style: none; margin: 0; padding: 0; }
.v-atelier .at-ing {
  position: relative; display: grid; grid-template-columns: 4.4em minmax(0, 1fr); column-gap: 14px; align-items: baseline;
  padding: 5px 0; border-bottom: 1px dotted #D7CEBF;
}
.v-atelier .at-ing-q {
  text-align: right; white-space: nowrap;
  font: 500 1.3em/1.25 var(--sv-font-display); font-variant-numeric: oldstyle-nums proportional-nums; color: var(--sv-ink);
}
.v-atelier .at-ing-q [data-f="unit"] { margin-left: .22em; font-style: italic; font-size: .82em; color: var(--sv-muted); }
.v-atelier .at-ing-n [data-f="name"] { color: var(--sv-ink); }
.v-atelier .at-ing-n [data-f="note"] { margin-left: .45em; font: italic 400 1.14em/1.3 var(--sv-font-display); color: var(--sv-muted); }
.v-atelier .at-ing [data-f]:empty { margin-left: 0; }
.v-atelier .at-ing [contenteditable="true"] { display: inline-block; min-width: .8em; }
.v-atelier .at-ing [data-f="unit"][contenteditable="true"]:empty:not(:focus)::before,
.v-atelier .at-ing [data-f="note"][contenteditable="true"]:empty:not(:focus)::before { content: ''; }
.v-atelier .at-ing:hover [data-f="note"][contenteditable="true"]:empty::before { content: attr(data-placeholder); }
.v-atelier .at-ing-x {
  position: absolute; right: -10px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px;
  display: grid; place-items: center; color: var(--sv-muted); opacity: 0; transition: opacity .25s, color .25s;
}
.v-atelier .at-ing-x .sv-ico { width: 14px; height: 14px; }
.v-atelier .at-ing:hover .at-ing-x, .v-atelier .at-ing:focus-within .at-ing-x { opacity: .7; }
.v-atelier .at-ing-x:hover { color: var(--sv-danger); opacity: 1; }
@media (hover: none) { .v-atelier .at-ing-x { opacity: .4; } }
.v-atelier .at-info--folio .at-ing { padding-right: 24px; }
.v-atelier .at-add {
  display: inline-flex; align-items: center; min-height: 40px; margin-top: 6px; padding: 0 2px;
  font: italic 500 1.15em/1 var(--sv-font-display); color: var(--sv-accent);
}
.v-atelier .at-add:hover { color: #8A4934; }
.v-atelier .at-add--recipe { display: flex; margin-top: 2px; }

/* method with drop cap */
.v-atelier .at-method { line-height: 1.72; color: #3A3730; }
.v-atelier .at-method::first-letter {
  float: left; margin: .08em .12em 0 0; padding: 0;
  font: 500 3.5em/.8 var(--sv-font-display); color: var(--sv-accent);
}

@container atpage (min-width: 440px) {
  .v-atelier .at-recipe.is-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); column-gap: 30px; }
  .v-atelier .at-recipe.is-split .at-sec--method { padding-left: 28px; border-left: 1px solid var(--sv-line); }
}

/* notes */
.v-atelier .at-note { margin: 0 0 18px; padding: 2px 0 2px 16px; border-left: 2px solid var(--sv-accent); }
.v-atelier .at-note::after { content: ''; display: block; clear: both; }
.v-atelier .at-note-text { margin: 0; white-space: pre-wrap; font: italic 400 1.4em/1.45 var(--sv-font-display); color: #33302A; }
.v-atelier .at-sec--notes.is-free .at-note-text { font-size: 1.72em; line-height: 1.42; }
.v-atelier .at-note-photo {
  float: right; width: 38%; margin: 4px 0 10px 14px; padding: 5px 5px 14px; background: #FFFDF8;
  transform: rotate(1.6deg); box-shadow: 0 1px 2px rgba(41, 39, 34, .2), 0 8px 14px -8px rgba(41, 39, 34, .35);
}
.v-atelier .at-note-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.v-atelier .at-note-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin-top: 8px;
  font: 500 9px/1.4 var(--sv-font-label); letter-spacing: .2em; text-transform: uppercase; color: var(--sv-muted);
}
.v-atelier .at-note-tools { display: inline-flex; gap: 4px; margin-left: auto; }
.v-atelier .at-note-tools button {
  min-height: 34px; padding: 0 5px; font: italic 500 15px/1 var(--sv-font-display); letter-spacing: 0; text-transform: none; color: var(--sv-accent);
}
.v-atelier .at-note-tools button[data-action="delete-note"]:hover { color: var(--sv-danger); }

/* provenance colophon */
.v-atelier .at-prov { max-width: 30em; margin: 34px auto 0; text-align: center; }
.v-atelier .at-prov-orn { display: block; font-size: 22px; line-height: 1; color: var(--sv-accent); }
.v-atelier .at-prov-k { margin: 8px 0 8px; font: 500 9px/1.4 var(--sv-font-label); letter-spacing: .26em; text-transform: uppercase; color: var(--sv-muted); }
.v-atelier .at-prov-from { margin: 0; font: 600 1.3em/1.2 var(--sv-font-display); font-variant-caps: all-small-caps; letter-spacing: .12em; }
.v-atelier .at-prov-place { margin: 3px 0 0; font: italic 400 1.15em/1.3 var(--sv-font-display); color: var(--sv-muted); }
.v-atelier .at-prov-story { max-width: 26em; margin: 10px auto 0; font: italic 400 1.2em/1.5 var(--sv-font-display); color: #4A463E; }

/* artifacts with photo corners */
.v-atelier .at-arts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 16px; }
.v-atelier .at-art { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.v-atelier .at-art-mount {
  position: relative; display: block; aspect-ratio: 4 / 3; padding: 7px; background: #EFE8DC;
  box-shadow: inset 0 0 0 1px #E2D9CA; transition: transform .35s var(--at-ease);
}
.v-atelier .at-art-mount img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 1px 2px rgba(41, 39, 34, .25); }
.v-atelier .at-art-mount::before {
  content: ''; position: absolute; inset: 3px; pointer-events: none;
  background:
    linear-gradient(135deg, #3A332B 50%, transparent 50%) top left / 15px 15px no-repeat,
    linear-gradient(225deg, #3A332B 50%, transparent 50%) top right / 15px 15px no-repeat,
    linear-gradient(45deg, #3A332B 50%, transparent 50%) bottom left / 15px 15px no-repeat,
    linear-gradient(315deg, #3A332B 50%, transparent 50%) bottom right / 15px 15px no-repeat;
  opacity: .82;
}
.v-atelier .at-art:hover .at-art-mount { transform: translateY(-2px) rotate(-.6deg); }
.v-atelier .at-art-doc {
  position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 5px;
  padding: 10px 16px; background: #FFFDF8; color: var(--sv-muted); box-shadow: 0 1px 2px rgba(41, 39, 34, .2);
}
.v-atelier .at-art-doc .sv-ico { position: absolute; right: 8px; top: 8px; width: 16px; height: 16px; color: var(--sv-accent); }
.v-atelier .at-art-doc i { display: block; height: 1px; background: #D9D0C1; }
.v-atelier .at-art-doc i:nth-of-type(2) { width: 80%; }
.v-atelier .at-art-doc i:nth-of-type(4) { width: 55%; }
.v-atelier .at-art-name { margin-top: 8px; font: 500 11px/1.3 var(--sv-font-label); color: var(--sv-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-atelier .at-art-type { font: italic 400 14px/1.2 var(--sv-font-display); color: var(--sv-muted); }
.v-atelier .at-art--add .at-art-mount { display: grid; place-items: center; background: transparent; color: var(--sv-accent); box-shadow: inset 0 0 0 1px rgba(168, 95, 72, .45); }
.v-atelier .at-art--add .at-art-mount::before { display: none; }
.v-atelier .at-art--add .at-art-name { color: var(--sv-accent); }

.v-atelier .at-info-end { margin: 34px 0 0; text-align: center; font: italic 400 13px/1 var(--sv-font-display); color: #A69E90; }

/* empty Book page */
.v-atelier .at-empty {
  position: absolute; inset: 7%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 10%; border: 1px solid rgba(41, 39, 34, .35); box-shadow: inset 0 0 0 4px #FFFDF8, inset 0 0 0 5px rgba(41, 39, 34, .25);
}
.v-atelier .at-empty-orn { font-size: 30px; line-height: 1; color: var(--sv-accent); }
.v-atelier .at-empty-k { margin: 16px 0 8px; font: 600 14px/1.2 var(--sv-font-display); font-variant-caps: all-small-caps; letter-spacing: .18em; color: var(--sv-muted); }
.v-atelier .at-empty-t { margin: 0; font: italic 400 27px/1.15 var(--sv-font-display); }
.v-atelier .at-empty-s { max-width: 24ch; margin: 12px 0 22px; font-size: 13px; line-height: 1.55; color: var(--sv-muted); }

/* ===================================================================== */
/* Folio view + Pivot                                                    */
/* ===================================================================== */
.v-atelier .at-fv {
  position: relative; height: 100%; display: flex; flex-direction: column;
  background: radial-gradient(90% 70% at 50% 46%, #F2ECE1 0%, var(--at-desk) 60%, #DAD0C0 100%);
}
.v-atelier .at-fbar {
  flex: none; position: relative; z-index: 8;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px;
  padding: calc(var(--safe-top) + 6px) 8px 0;
}
.v-atelier .at-fbar-mid { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.2; }
.v-atelier .at-fbar-no { font: italic 500 18px/1.1 var(--sv-font-display); }
.v-atelier .at-fbar-side { margin-top: 2px; font: 500 9px/1.3 var(--sv-font-label); letter-spacing: .22em; text-transform: uppercase; color: var(--sv-muted); }
.v-atelier .at-fbar-tools { justify-self: end; display: flex; align-items: center; }
.v-atelier .at-share, .v-atelier .at-aa {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--sv-ink); transition: background .25s, color .25s, opacity .25s;
}
.v-atelier .at-share .sv-ico { width: 19px; height: 19px; }
.v-atelier .at-aa { font: italic 500 21px/1 var(--sv-font-display); }
.v-atelier .at-share:hover, .v-atelier .at-aa:hover { background: rgba(255, 253, 248, .7); }
.v-atelier .at-aa.is-active { background: var(--sv-paper); box-shadow: inset 0 0 0 1px var(--sv-line); color: var(--sv-accent); }
.v-atelier .sv-screen:not([data-side="info"]) .at-share--info,
.v-atelier .sv-screen[data-side="info"] .at-share--visual { display: none; }
.v-atelier .sv-screen[data-side="info"] .at-aa { opacity: .25; pointer-events: none; }
.v-atelier .sv-screen[data-side="info"] .at-style { display: none; }

/* title style panel */
.v-atelier .at-style {
  position: absolute; z-index: 20; top: calc(var(--safe-top) + 56px); right: 10px; width: min(340px, calc(100% - 20px));
  padding: 10px 16px; border-radius: 18px; background: var(--sv-paper);
  box-shadow: 0 0 0 1px var(--sv-line), 0 20px 44px -18px rgba(41, 31, 22, .5);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .3s, transform .35s var(--at-ease);
}
.v-atelier .at-style.is-open { opacity: 1; transform: none; pointer-events: auto; }
.v-atelier .at-style-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.v-atelier .at-style-row + .at-style-row { border-top: 1px solid var(--sv-line); }
.v-atelier .at-style-k { font: 600 15px/1 var(--sv-font-display); font-variant-caps: all-small-caps; letter-spacing: .14em; color: var(--sv-muted); }
.v-atelier .at-style-opts { display: flex; gap: 2px; }
.v-atelier .at-style-btn { min-height: 36px; padding: 0 10px; border-radius: 999px; font: 500 12px/1 var(--sv-font-label); color: var(--sv-ink); transition: background .25s, color .25s; }
.v-atelier .at-style-btn:hover { background: var(--sv-bg); }
.v-atelier .at-style-btn.is-active { background: var(--sv-ink); color: var(--sv-paper); }

.v-atelier .at-fmain { flex: 1; min-height: 0; display: flex; }
.v-atelier .at-fside { display: none; }
.v-atelier .at-fstage { flex: 1; min-width: 0; min-height: 0; container-type: size; }
.v-atelier .at-fwrap {
  --spine: 26px;
  position: relative; box-sizing: border-box;
  width: calc(100cqw - 24px); height: calc(100cqh - 56px); margin: 46px auto 0;
}

/* the cloth spine the Folio is hinged to */
.v-atelier .at-fspine {
  position: absolute; left: 0; top: -6px; bottom: -6px; width: var(--spine); border-radius: 7px 2px 2px 7px;
  background: var(--at-round), var(--at-weave), var(--tone, var(--at-olive));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12), 2px 0 6px -2px rgba(34, 20, 10, .4),
    0 0 calc(var(--at-glow, 0) * 48px) calc(var(--at-glow, 0) * 10px) rgba(232, 188, 104, calc(var(--at-glow, 0) * .85));
}
.v-atelier .at-fspine-band { position: absolute; left: 3px; right: 3px; height: 1.5px; background: var(--at-gilt-foil); opacity: calc(.7 + var(--at-glow, 0) * .3); }
.v-atelier .at-fspine-band:nth-child(1) { top: 22px; }
.v-atelier .at-fspine-band:nth-child(2) { top: 27px; }
.v-atelier .at-fspine-band--b:nth-child(4) { bottom: 27px; }
.v-atelier .at-fspine-band--b:nth-child(5) { bottom: 22px; }
.v-atelier .at-fspine-line {
  position: absolute; left: calc(50% - .5px); top: 44px; bottom: 44px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--at-gilt) 15%, var(--at-gilt) 85%, transparent);
  opacity: calc(.12 + var(--at-glow, 0) * .88);
  box-shadow: 0 0 calc(var(--at-glow, 0) * 12px) calc(var(--at-glow, 0) * 2px) rgba(240, 206, 136, calc(var(--at-glow, 0) * .9));
}

/* the pivot ribbon tab */
.v-atelier .at-pivot-tab {
  position: absolute; z-index: 5; left: -7px; top: 50%; width: 40px; height: 116px; margin-top: -58px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding-bottom: 10px;
  color: #FFF6EA; cursor: grab; touch-action: none;
  background: linear-gradient(90deg, #86452F, #B8705A 42%, #A85F48 62%, #86452F);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 11px), 0 100%);
  transition: transform .35s var(--at-ease), filter .3s;
}
.v-atelier .at-pivot-tab-l { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 15px/1 var(--sv-font-display); font-variant-caps: all-small-caps; letter-spacing: .22em; }
.v-atelier .at-pivot-tab-a { font: 500 11px/1 var(--sv-font-display); letter-spacing: .08em; opacity: .8; }
.v-atelier .at-pivot-tab:hover { filter: brightness(1.08); transform: translateX(-2px); }
.v-atelier .at-pivot-tab:focus-visible { outline: none; filter: brightness(1.15); }
.v-atelier .is-demo .at-pivot-tab { animation: at-tug 2.6s ease-in-out infinite; }
@keyframes at-tug { 0%, 60%, 100% { transform: none; } 70% { transform: translateX(-5px); } 80% { transform: translateX(0); } 88% { transform: translateX(-3px); } }

/* side tabs */
.v-atelier .at-tabs {
  position: absolute; left: var(--spine); right: 0; bottom: calc(100% + 4px); height: 40px;
  display: flex; align-items: center; gap: 10px; padding-left: 4px;
}
.v-atelier .at-tab {
  position: relative; min-height: 40px; padding: 0 2px;
  font: 600 15px/1 var(--sv-font-display); font-variant-caps: all-small-caps; letter-spacing: .16em; color: var(--sv-muted);
  transition: color .3s;
}
.v-atelier .at-tab::after {
  content: ''; position: absolute; left: 2px; right: 2px; bottom: 8px; height: 1px; background: var(--sv-accent);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--at-ease);
}
.v-atelier .at-tab:hover { color: var(--sv-ink); }
.v-atelier .at-tab.is-active { color: var(--sv-ink); }
.v-atelier .at-tab.is-active::after { transform: none; }
.v-atelier .at-tab-sep { color: #BDB3A3; }

/* the stage + faces */
.v-atelier .at-fwrap > .sv-pivot { position: absolute; top: 0; bottom: 0; left: var(--spine); right: 0; perspective: 1500px; perspective-origin: 0% 50%; }
.v-atelier .sv-face-wrap {
  transform-origin: 0% 50%; border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, rgba(70, 48, 26, .2), rgba(70, 48, 26, .05) 14px, transparent 30px), var(--at-paper);
  box-shadow: 0 1px 2px rgba(41, 31, 22, .14), 0 26px 40px -24px rgba(41, 31, 22, .5);
}
.v-atelier .sv-face-wrap--info { scrollbar-width: thin; scrollbar-color: #D2C8B8 transparent; }
.v-atelier .sv-pivot:not(.is-pivoting) .sv-face-wrap { will-change: auto; }

.v-atelier .at-fmeta {
  flex: none; padding: 10px 20px calc(12px + env(safe-area-inset-bottom)); text-align: center;
  font: italic 400 15px/1.35 var(--sv-font-display); color: var(--sv-muted);
}
.v-atelier .at-fmeta em { font-style: normal; font-weight: 600; font-variant-caps: all-small-caps; letter-spacing: .1em; color: var(--sv-ink); }

/* demo coach */
.v-atelier .at-coach {
  position: absolute; z-index: 12; left: 14px; right: 14px; bottom: calc(48px + env(safe-area-inset-bottom));
  padding: 18px 20px 14px; border-radius: 22px; background: rgba(255, 253, 248, .97);
  box-shadow: 0 0 0 1px var(--sv-line), 0 24px 50px -20px rgba(41, 31, 22, .55);
  animation: at-rise .7s .35s var(--at-ease) both; transition: opacity .35s, transform .35s var(--at-ease);
}
.v-atelier .at-coach.is-gone { opacity: 0; transform: translateY(14px); pointer-events: none; }
.v-atelier .at-coach-k { margin: 0; font: 500 9.5px/1.4 var(--sv-font-label); letter-spacing: .24em; text-transform: uppercase; color: var(--sv-accent); }
.v-atelier .at-coach-t { margin: 6px 0 12px; font: italic 400 19px/1.32 var(--sv-font-display); color: var(--sv-ink); }
.v-atelier .at-coach-a { display: flex; justify-content: flex-end; gap: 8px; }

@container app (min-width: 768px) {
  .v-atelier .at-fbar { padding: calc(var(--safe-top) + 14px) 20px 0; }
  .v-atelier .at-fbar-no { font-size: 21px; }
  .v-atelier .at-style { right: 20px; top: calc(var(--safe-top) + 64px); }
  .v-atelier .at-fstage { display: grid; place-items: center; }
  .v-atelier .at-fwrap {
    --spine: 30px;
    --pw: min(600px, calc((100cqh - 44px) * .8), calc(100cqw - 160px));
    width: calc(var(--pw) + var(--spine)); height: calc(var(--pw) / .8); margin: 0;
  }
  .v-atelier .at-tabs {
    left: auto; right: calc(100% + 12px); top: 50%; bottom: auto; height: auto; padding: 0;
    writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  }
  .v-atelier .at-tab { min-height: 0; min-width: 40px; padding: 4px 0; }
  .v-atelier .at-tab::after { left: auto; right: 8px; top: 4px; bottom: 4px; width: 1px; height: auto; transform: scaleY(0); transform-origin: top; }
  .v-atelier .at-tab.is-active::after { transform: none; }
  .v-atelier .at-pivot-tab { left: -6px; width: 42px; }
  .v-atelier .at-fmeta { padding-bottom: 18px; }
  .v-atelier .at-coach { left: auto; right: 28px; bottom: 28px; width: 340px; }
}

@container app (min-width: 1100px) {
  .v-atelier .at-fside { display: block; flex: 0 0 250px; padding: 30px 34px; align-self: center; }
  .v-atelier .at-fside--l { text-align: right; order: -1; }
  .v-atelier .at-fside--r { order: 2; }
  .v-atelier .at-fside-no { margin: 0; font: italic 400 72px/1 var(--sv-font-display); color: var(--sv-accent); }
  .v-atelier .at-fside-cap { margin: 6px 0 26px; font: 600 15px/1.2 var(--sv-font-display); font-variant-caps: all-small-caps; letter-spacing: .16em; color: var(--sv-muted); }
  .v-atelier .at-fside-dl { margin: 0; }
  .v-atelier .at-fside-dl dt { margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid #D3C9B9; font: 500 9px/1.3 var(--sv-font-label); letter-spacing: .24em; text-transform: uppercase; color: var(--sv-muted); }
  .v-atelier .at-fside-dl dd { margin: 0; font: italic 400 18px/1.35 var(--sv-font-display); color: var(--sv-ink); }
  .v-atelier .at-fside-dl dd span { display: block; }
  .v-atelier .at-fside-k { margin: 0 0 10px; font: italic 500 22px/1.2 var(--sv-font-display); }
  .v-atelier .at-fside-k::before { content: '✦'; display: block; margin-bottom: 10px; font-size: 12px; font-style: normal; color: var(--sv-accent); }
  .v-atelier .at-fside-t { margin: 0; font-size: 13px; line-height: 1.65; color: var(--sv-muted); }
  .v-atelier .at-fside-t kbd { padding: 1px 6px; border-radius: 4px; font: 500 11px var(--sv-font-label); box-shadow: inset 0 0 0 1px #CFC5B5; background: var(--sv-paper); }
  .v-atelier .at-fwrap { --pw: min(620px, calc((100cqh - 44px) * .8), calc(100cqw - 120px)); }
}

/* ===================================================================== */
/* Create Folio: the manuscript                                         */
/* ===================================================================== */
.v-atelier .at-create {
  min-height: 100%; display: flex; flex-direction: column;
  padding: calc(var(--safe-top) + 6px) 22px 34px; background: var(--sv-bg);
}
.v-atelier .at-cbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; margin: 0 -12px; }
.v-atelier .at-cbar-t { margin: 0; font: italic 500 20px/1 var(--sv-font-display); }
.v-atelier .at-cbar-n { justify-self: end; padding-right: 12px; font: 600 15px/1 var(--sv-font-display); letter-spacing: .1em; color: var(--sv-muted); }
.v-atelier .at-cbar-n i { font-weight: 400; letter-spacing: 0; }

.v-atelier .at-steps {
  list-style: none; display: flex; margin: 12px 0 0; padding: 0 0 6px; border-bottom: 1px solid var(--sv-line);
}
.v-atelier .at-steps li { position: relative; flex: 1; min-width: 0; }
.v-atelier .at-steps li > * {
  width: 100%; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px;
  padding: 4px 2px 8px; color: var(--sv-muted); text-align: center;
}
.v-atelier .at-steps b { font: 500 20px/1 var(--sv-font-display); letter-spacing: .04em; transition: color .3s; }
.v-atelier .at-steps small { font: 500 7.5px/1.3 var(--sv-font-label); letter-spacing: .14em; text-transform: uppercase; }
.v-atelier .at-steps li.is-done b { color: var(--sv-ink); }
.v-atelier .at-steps li.is-current b { color: var(--sv-accent); }
.v-atelier .at-steps li.is-current small { color: var(--sv-ink); }
.v-atelier .at-steps li.is-current::after { content: ''; position: absolute; left: 24%; right: 24%; bottom: -7px; height: 2px; background: var(--sv-accent); }
.v-atelier .at-steps button:hover b { color: var(--sv-accent); }

.v-atelier .at-cgrid { flex: 1; }
.v-atelier .at-cstep { width: 100%; max-width: 520px; margin: 0 auto; padding-top: 24px; }
.v-atelier .at-cstep.is-entering { animation: at-rise .6s var(--at-ease) both; }
.v-atelier .at-cprev { display: none; }
.v-atelier .at-ck { margin: 0; text-align: center; font: 500 9.5px/1.4 var(--sv-font-label); letter-spacing: .26em; text-transform: uppercase; color: var(--sv-accent); }
.v-atelier .at-ch { margin: 6px 0 8px; text-align: center; font: italic 400 36px/1.05 var(--sv-font-display); }
.v-atelier .at-cl { max-width: 34ch; margin: 0 auto 22px; text-align: center; font-size: 13.5px; line-height: 1.55; color: var(--sv-muted); }
.v-atelier .at-label { display: block; margin: 24px 0 10px; font: 500 9.5px/1.4 var(--sv-font-label); letter-spacing: .22em; text-transform: uppercase; color: var(--sv-muted); }
.v-atelier .at-crow { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.v-atelier .at-link { min-height: 44px; padding: 0 4px; font: italic 500 17px/1 var(--sv-font-display); color: var(--sv-accent); }
.v-atelier .at-link:hover { color: #8A4934; }
.v-atelier .at-cfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--sv-line); }

/* step I: photograph */
.v-atelier .at-plate-ph {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  aspect-ratio: 4 / 3.3; padding: 26px 20px; background: var(--at-paper); transform: rotate(-.5deg);
  box-shadow: 0 1px 2px rgba(41, 39, 34, .12), 0 14px 28px -18px rgba(41, 39, 34, .45);
}
.v-atelier .at-plate-ph::before { content: ''; position: absolute; inset: 12px; border: 1.5px dashed rgba(129, 123, 112, .5); pointer-events: none; }
.v-atelier .at-plate-ph-ico { color: var(--sv-accent); }
.v-atelier .at-plate-ph-ico .sv-ico { width: 30px; height: 30px; stroke-width: 1.2; }
.v-atelier .at-plate-ph p { margin: 0 0 6px; font: italic 400 19px/1.3 var(--sv-font-display); color: var(--sv-muted); text-align: center; }
.v-atelier .at-plate-ph .sv-btn { position: relative; padding: 0 16px; }
.v-atelier .at-print {
  max-width: 380px; margin: 0 auto 8px; padding: 10px 10px 0; background: #FFFDF8; transform: rotate(-.8deg);
  box-shadow: 0 1px 2px rgba(41, 39, 34, .16), 0 16px 30px -16px rgba(41, 39, 34, .5);
  animation: at-tip .6s var(--at-ease) both;
}
.v-atelier .at-print-img { display: block; aspect-ratio: 4 / 3.2; overflow: hidden; }
.v-atelier .at-print-img img { width: 100%; height: 100%; object-fit: cover; }
.v-atelier .at-print figcaption { padding: 9px 0 11px; text-align: center; font: italic 400 15px/1.2 var(--sv-font-display); color: var(--sv-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes at-tip { from { opacity: 0; transform: rotate(-3deg) translateY(10px); } to { opacity: 1; transform: rotate(-.8deg); } }
.v-atelier .at-samples { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.v-atelier .at-sample {
  aspect-ratio: 1; padding: 3px; background: #FFFDF8;
  box-shadow: 0 1px 2px rgba(41, 39, 34, .2), 0 6px 10px -6px rgba(41, 39, 34, .35);
  transition: transform .3s var(--at-ease), box-shadow .3s;
}
.v-atelier .at-sample:nth-child(odd) { transform: rotate(-2deg); }
.v-atelier .at-sample:nth-child(even) { transform: rotate(1.6deg); }
.v-atelier .at-sample img { width: 100%; height: 100%; object-fit: cover; }
.v-atelier .at-sample:hover { transform: translateY(-3px) rotate(0); }
.v-atelier .at-sample.is-selected { box-shadow: 0 0 0 2px var(--sv-accent), 0 6px 10px -6px rgba(41, 39, 34, .35); transform: none; }

/* step II: title */
.v-atelier .at-field { display: block; text-align: left; }
.v-atelier .at-field .at-label { margin-top: 8px; }
.v-atelier .at-input {
  width: 100%; padding: 4px 0 10px; border: 0; border-bottom: 1px solid rgba(41, 39, 34, .4); border-radius: 0; background: transparent; outline: none;
  font: italic 400 30px/1.2 var(--sv-font-display); color: var(--sv-ink); transition: border-color .3s;
}
.v-atelier .at-input:focus { border-color: var(--sv-accent); }
.v-atelier .at-input::placeholder { color: var(--sv-muted); opacity: .5; }
.v-atelier .at-field-meta { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--sv-muted); text-align: left; }
.v-atelier .at-field-meta span:last-child:not(:first-child) { flex: none; font-variant-numeric: tabular-nums; }
.v-atelier .at-proof {
  margin: 28px 0 0; padding: 18px 16px 20px; text-align: center; background: var(--sv-paper);
  box-shadow: inset 0 0 0 1px var(--sv-line), inset 0 0 0 4px var(--sv-paper), inset 0 0 0 5px #ECE5D8;
  font: 500 9px/1.4 var(--sv-font-label); letter-spacing: .22em; text-transform: uppercase; color: var(--sv-muted);
}
.v-atelier .at-proof-t { display: block; margin-top: 8px; font: 500 26px/1.15 var(--sv-font-display); letter-spacing: 0; text-transform: none; color: var(--sv-ink); overflow-wrap: anywhere; }
.v-atelier .at-proof-t.is-auto { font-style: italic; color: var(--sv-muted); }

/* step III: recipe / note */
.v-atelier .at-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v-atelier .at-kind {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 12px; text-align: left; border-radius: 3px;
  background: var(--sv-paper); box-shadow: inset 0 0 0 1px var(--sv-line); transition: box-shadow .3s;
}
.v-atelier .at-kind-box { flex: none; width: 22px; height: 22px; margin-top: 1px; display: grid; place-items: center; border-radius: 50%; color: transparent; box-shadow: inset 0 0 0 1px #B4AB9C; transition: background .3s, color .3s; }
.v-atelier .at-kind-box .sv-ico { width: 13px; height: 13px; stroke-width: 2; }
.v-atelier .at-kind b { display: block; font: 500 20px/1.1 var(--sv-font-display); }
.v-atelier .at-kind small { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.4; color: var(--sv-muted); }
.v-atelier .at-kind.is-selected { box-shadow: inset 0 0 0 1px var(--sv-accent); }
.v-atelier .at-kind.is-selected .at-kind-box { background: var(--sv-accent); color: var(--sv-paper); box-shadow: none; }
.v-atelier .at-cblock { margin-top: 6px; text-align: left; animation: at-rise .45s var(--at-ease) both; }
.v-atelier .at-cing { display: grid; grid-template-columns: 50px 62px minmax(0, 1fr) 36px; gap: 8px; align-items: end; }
.v-atelier .at-cing input {
  min-width: 0; padding: 9px 0 7px; border: 0; border-bottom: 1px solid var(--sv-line); border-radius: 0; background: transparent; outline: none;
  font: 400 15px/1.3 var(--sv-font-body); color: var(--sv-ink); transition: border-color .3s;
}
.v-atelier .at-cing input[data-f="qty"] { text-align: right; font: 500 19px/1.1 var(--sv-font-display); }
.v-atelier .at-cing input[data-f="unit"] { font: italic 400 17px/1.1 var(--sv-font-display); }
.v-atelier .at-cing input:focus { border-color: var(--sv-accent); }
.v-atelier .at-cing input::placeholder { color: #B3AA9B; }
.v-atelier .at-cing-x { width: 36px; height: 40px; display: grid; place-items: center; color: var(--sv-muted); }
.v-atelier .at-cing-x .sv-ico { width: 15px; height: 15px; }
.v-atelier .at-cing-x:hover { color: var(--sv-danger); }
.v-atelier .at-textarea {
  display: block; width: 100%; min-height: 128px; padding: 0; resize: vertical; border: 0; border-radius: 0; outline: none;
  background: linear-gradient(180deg, transparent 31px, #DDD5C8 31px, #DDD5C8 32px) 0 0 / 100% 32px local;
  font: 400 14.5px/32px var(--sv-font-body); color: var(--sv-ink);
}
.v-atelier .at-textarea--note { font: italic 400 20px/32px var(--sv-font-display); }
.v-atelier .at-textarea::placeholder { color: #B3AA9B; }

/* step IV: review & seal */
.v-atelier .at-review { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 20px; margin: 0; padding: 16px 0; border-top: 1px solid var(--sv-line); border-bottom: 1px solid var(--sv-line); text-align: left; }
.v-atelier .at-review dt { padding-top: 6px; font: 500 9px/1.4 var(--sv-font-label); letter-spacing: .22em; text-transform: uppercase; color: var(--sv-muted); }
.v-atelier .at-review dd { margin: 0; font: 500 20px/1.3 var(--sv-font-display); overflow-wrap: anywhere; }
.v-atelier .at-review dd.is-auto { font-style: italic; color: var(--sv-muted); }
.v-atelier .at-review dd small { display: block; font: 400 11px/1.4 var(--sv-font-body); color: var(--sv-muted); font-style: normal; }
.v-atelier .at-review dd span { display: block; font-size: 17px; font-style: italic; }
.v-atelier .at-review-mini {
  position: relative; width: 168px; aspect-ratio: .72; margin: 24px auto 0; background: var(--at-paper);
  box-shadow: 0 1px 2px rgba(41, 39, 34, .14), 0 18px 30px -18px rgba(41, 39, 34, .5);
}
.v-atelier .at-saved { padding: 36px 0 12px; text-align: center; }
.v-atelier .at-seal { display: block; width: 124px; height: 124px; margin: 0 auto 18px; overflow: visible; }
.v-atelier .at-seal circle, .v-atelier .at-seal path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.v-atelier .at-seal-dots { stroke: var(--at-gilt-deep); stroke-width: 2.2; stroke-dasharray: 0 7.2; opacity: 0; animation: at-fade .8s .95s forwards; }
.v-atelier .at-seal-ring { stroke: var(--at-gilt-deep); stroke-width: 1.4; fill: rgba(217, 190, 134, .12) !important; stroke-dasharray: 290; stroke-dashoffset: 290; animation: at-draw 1.1s .1s var(--at-ease) forwards; }
.v-atelier .at-seal-check { stroke: var(--sv-accent); stroke-width: 3; stroke-dasharray: 62; stroke-dashoffset: 62; animation: at-draw .6s .75s var(--at-ease) forwards; }
.v-atelier .at-saved-t { margin: 0; font: italic 400 40px/1 var(--sv-font-display); animation: at-rise .6s .85s var(--at-ease) both; }
.v-atelier .at-saved-s { margin: 10px 0 0; font-size: 13.5px; color: var(--sv-muted); animation: at-rise .6s 1s var(--at-ease) both; }
@keyframes at-draw { to { stroke-dashoffset: 0; } }
@keyframes at-fade { to { opacity: 1; } }

/* step V: bind into Books */
.v-atelier .at-binds { display: flex; flex-direction: column; border-top: 1px solid var(--sv-line); }
.v-atelier .at-bind { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 8px 4px; text-align: left; border-bottom: 1px solid var(--sv-line); transition: background .25s; }
.v-atelier .at-bind:hover { background: rgba(255, 253, 248, .6); }
.v-atelier .at-bind-spine { position: relative; flex: none; width: 15px; height: 46px; border-radius: 2px; background: var(--at-round), var(--at-weave), var(--tone); box-shadow: 1px 1px 3px rgba(34, 20, 10, .3); }
.v-atelier .at-bind-spine::before, .v-atelier .at-bind-spine::after { content: ''; position: absolute; left: 0; right: 0; height: 3px; border-top: 1px solid var(--at-gilt); border-bottom: 1px solid var(--at-gilt); opacity: .8; }
.v-atelier .at-bind-spine::before { top: 6px; }
.v-atelier .at-bind-spine::after { bottom: 6px; }
.v-atelier .at-bind-t { flex: 1; min-width: 0; }
.v-atelier .at-bind-t b { display: block; font: 500 20px/1.15 var(--sv-font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-atelier .at-bind-t b.is-suggested { font-style: italic; color: var(--sv-muted); }
.v-atelier .at-bind-t small { font-size: 11.5px; color: var(--sv-muted); }
.v-atelier .at-bind-check { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: transparent; box-shadow: inset 0 0 0 1px #C3B9A9; transition: background .3s, color .3s; }
.v-atelier .at-bind-check .sv-ico { width: 14px; height: 14px; stroke-width: 2; }
.v-atelier .at-bind.is-selected .at-bind-check { background: var(--sv-accent); color: var(--sv-paper); box-shadow: none; }
.v-atelier .at-bind-count { margin: 14px 0 0; text-align: center; font: italic 400 16px/1.3 var(--sv-font-display); color: var(--sv-muted); }
.v-atelier .at-bind-count span { font-style: normal; font-weight: 600; color: var(--sv-accent); }

@container app (min-width: 768px) {
  .v-atelier .at-create { padding: calc(var(--safe-top) + 14px) 40px 40px; }
  .v-atelier .at-cbar { margin: 0; }
  .v-atelier .at-steps { width: 100%; max-width: 680px; margin: 14px auto 0; }
  .v-atelier .at-steps small { font-size: 8.5px; }
  .v-atelier .at-cgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 340px); gap: 56px; width: 100%; max-width: 1040px; margin: 0 auto; align-items: start; }
  .v-atelier .at-cstep { padding-top: 34px; }
  .v-atelier .at-cprev { display: block; position: sticky; top: 20px; padding-top: 34px; }
  .v-atelier .at-cprev-k { margin: 0 0 14px; text-align: center; font: 500 9px/1.4 var(--sv-font-label); letter-spacing: .24em; text-transform: uppercase; color: var(--sv-muted); }
  .v-atelier .at-cprev-page {
    position: relative; aspect-ratio: .72; border-radius: 0 3px 3px 0; background: var(--at-paper);
    box-shadow: -6px 0 0 -2px #EDE5D8, 0 1px 2px rgba(41, 39, 34, .14), 0 26px 40px -22px rgba(41, 39, 34, .55);
  }
  .v-atelier .at-cprev-page::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(70, 48, 26, .18), transparent 9%); }
  .v-atelier .at-cprev-cap { margin: 14px 0 0; text-align: center; font: italic 400 15px/1.3 var(--sv-font-display); color: var(--sv-muted); }
  .v-atelier .at-review-mini { display: none; }
}

/* ===================================================================== */
/* Core overlays, sheets, toasts                                          */
/* ===================================================================== */
.v-atelier .sv-sheet { background: var(--at-paper); }
.v-atelier .sv-sheet-kicker { color: var(--sv-accent); letter-spacing: .24em; font-size: 10px; }
.v-atelier .sv-sheet-title { font-style: italic; font-size: 32px; }
.v-atelier .sv-choice-title { font-style: italic; font-size: 25px; }
.v-atelier .sv-choice-icon { background: var(--at-desk); }
.v-atelier .sv-btn { font: 500 13px var(--sv-font-label); letter-spacing: .04em; }
.v-atelier .sv-btn .sv-ico { width: 17px; height: 17px; }
.v-atelier .sv-btn--accent:hover:not(:disabled) { background: #95503B; }
.v-atelier .sv-btn--solid:hover:not(:disabled) { background: #3E3A33; }
.v-atelier .sv-btn--ghost { box-shadow: inset 0 0 0 1px #CFC5B5; }
.v-atelier .sv-input { font-style: italic; }
.v-atelier .sv-chip { font: italic 400 16px/1.1 var(--sv-font-display); padding: 7px 14px; }
.v-atelier .sv-swatch {
  width: 24px; height: 44px; border-radius: 3px;
  background: var(--at-round), var(--at-weave), var(--c);
  box-shadow: 1px 1px 3px rgba(34, 20, 10, .3);
}
.v-atelier .sv-swatch.is-active { box-shadow: 0 0 0 2px var(--sv-paper), 0 0 0 3px var(--sv-accent); transform: translateY(-3px); }
.v-atelier .sv-toast { font: italic 500 16px/1.35 var(--sv-font-display); letter-spacing: .01em; padding: 11px 22px; }
.v-atelier .sv-ocr { border-left-color: var(--sv-accent); font-family: var(--sv-font-display); font-style: italic; font-size: 17px; }
.v-atelier .sv-lightbox figcaption strong { font-weight: 500; }

@keyframes at-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .v-atelier *, .v-atelier *::before, .v-atelier *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
