/* Pottle, in the Fettle manner: the whole page is the vase's paper; the pot floats in the colour field;
   a name and its facts on the left rail, the controls on the right rail as quiet hairline rows; serif names, ink type. */
:root {
  --ground: #ffd23f; --ink: #17130f; --ink-2: rgba(23,19,15,.62); --ink-3: rgba(23,19,15,.4); --hair: rgba(23,19,15,.16);
  --paper: #f6f1ea;
  --u: calc(min(100vw, 1920px) / 1440); --margin: calc(40 * var(--u)); --gutter: calc(20 * var(--u));
  --ease: cubic-bezier(.22, 1, .36, 1); --soft: cubic-bezier(.2, .8, .2, 1);
  --serif: "DM Serif Display", Georgia, serif; --body: "Sora", system-ui, sans-serif;
  --navh: calc(76 * var(--u));
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ground); transition: background-color .9s var(--soft); }
body { min-height: 100svh; background: transparent; color: var(--ink); font: 400 calc(14 * var(--u))/1.55 var(--body); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
.ic { width: calc(18 * var(--u)); height: calc(18 * var(--u)); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: translate .24s var(--ease); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-inline: var(--margin); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: calc(10 * var(--u)); height: calc(46 * var(--u)); padding: 0 calc(22 * var(--u)); border-radius: 999px; font-weight: 500; font-size: calc(14 * var(--u)); transition: background-color .24s var(--soft), color .24s var(--soft), scale .2s var(--soft), box-shadow .24s; }
.btn:active { scale: .97; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-ink:hover .ic { translate: 2px 0; }
.btn-line { box-shadow: inset 0 0 0 1px var(--hair); }
.btn-line:hover, .btn-line[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--ink); }
.btn:disabled { opacity: .5; cursor: default; }

/* the colour field and the pot */
.stage { position: fixed; inset: 0; z-index: 0; }
.stage canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.stage canvas:active { cursor: grabbing; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 3; height: var(--navh); align-items: center; pointer-events: none; }
.nav > * { pointer-events: auto; }
.mark { grid-column: 1 / 3; font-family: var(--serif); font-size: calc(30 * var(--u)); line-height: 1; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.tabs { grid-column: 4 / 10; display: flex; justify-content: center; gap: calc(28 * var(--u)); }
.tabs button { position: relative; padding: 6px 0; font-size: calc(14 * var(--u)); color: var(--ink-2); transition: color .25s; }
.tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after, .tabs button:hover::after { transform: scaleX(1); }
.nav-right { grid-column: 10 / 13; display: flex; justify-content: flex-end; }

/* page rails sit over the stage; only their own content takes the pointer */
.page { position: relative; z-index: 2; min-height: 100svh; padding-top: var(--navh); padding-bottom: calc(40 * var(--u)); align-items: center; pointer-events: none; }
.about, .rail { pointer-events: auto; }
.about { grid-column: 1 / 4; display: flex; flex-direction: column; gap: calc(18 * var(--u)); align-self: center; }
.about h1 { font-size: calc(76 * var(--u)); line-height: .95; text-wrap: balance; }
.desc { color: var(--ink-2); max-width: 30ch; font-size: calc(15 * var(--u)); }
.spec { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--hair); }
.spec dt, .spec dd { padding: calc(10 * var(--u)) 0; border-bottom: 1px solid var(--hair); font-size: calc(13 * var(--u)); }
.spec dt { color: var(--ink-2); padding-right: 16px; }
.spec dd { text-align: right; font-variant-numeric: tabular-nums; }
.about-cta { display: flex; gap: 8px; flex-wrap: wrap; }

.rail { grid-column: 10 / 13; align-self: center; max-height: calc(100svh - var(--navh) - 40 * var(--u)); overflow: auto; scrollbar-width: none; padding: 4px 2px 8px; }
.rail::-webkit-scrollbar { display: none; }
.pane { display: flex; flex-direction: column; gap: calc(12 * var(--u)); }
.pane[hidden] { display: none; }
.pane h2 { font: 500 calc(11 * var(--u))/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-top: calc(10 * var(--u)); padding-bottom: calc(8 * var(--u)); border-bottom: 1px solid var(--hair); }
.hint { color: var(--ink-2); font-size: calc(13 * var(--u)); }

.shapes { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.shape { aspect-ratio: 3 / 4; display: grid; place-items: center; color: var(--ink); opacity: .32; transition: opacity .25s, translate .3s var(--ease); }
.shape svg { width: 100%; height: 100%; }
.shape:hover { opacity: .7; translate: 0 -2px; }
.shape[aria-pressed="true"] { opacity: 1; }
#profile { width: 100%; height: auto; max-height: calc(220 * var(--u)); touch-action: none; }
#profile .body { fill: rgba(255,255,255,.25); stroke: var(--ink); stroke-width: 1.5; }
#profile .axis { stroke: var(--hair); stroke-dasharray: 3 5; stroke-width: 1.5; }
#profile .knob { fill: var(--ink); stroke: var(--ground); stroke-width: 3; cursor: ew-resize; transition: r .2s var(--ease); }
#profile .knob:hover, #profile .knob.drag { r: 8.5; }

.row { display: grid; grid-template-columns: calc(78 * var(--u)) 1fr calc(44 * var(--u)); align-items: center; gap: 10px; font-size: calc(13 * var(--u)); padding: 2px 0; }
.row span { color: var(--ink-2); }
.row output { text-align: right; font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 24px; background: transparent; cursor: pointer; }
input[type=range]:not(.pk-r)::-webkit-slider-runnable-track { height: 1.5px; background: linear-gradient(90deg, var(--ink) var(--p, 50%), var(--hair) var(--p, 50%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6.25px; border-radius: 50%; background: var(--ink); transition: transform .2s var(--ease); }
input[type=range]:active::-webkit-slider-thumb, input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.3); }
input[type=range]::-moz-range-track { height: 1.5px; background: var(--hair); }
input[type=range]::-moz-range-progress { height: 1.5px; background: var(--ink); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: calc(34 * var(--u)); padding: 0 calc(14 * var(--u)) 0 calc(8 * var(--u)); display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); font-size: calc(13 * var(--u)); transition: background-color .2s, color .2s, box-shadow .2s; }
.chip i { width: 18px; height: 18px; display: grid; place-items: center; }
.chip i svg { width: 18px; height: 18px; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.palettes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.pal { aspect-ratio: 1; border-radius: 50%; transform: rotate(-35deg); box-shadow: 0 0 0 1px var(--hair); transition: transform .3s var(--ease), box-shadow .2s; }
.pal:hover { transform: rotate(-35deg) scale(1.1); }
.pal[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ground), 0 0 0 3.5px var(--ink); }
.pickers { display: flex; gap: 14px; }
.pick { display: inline-flex; align-items: center; gap: 7px; font-size: calc(12 * var(--u)); color: var(--ink-2); cursor: pointer; }
.pick input { width: 22px; height: 22px; border: 0; border-radius: 50%; padding: 0; background: none; cursor: pointer; }
.pick input::-webkit-color-swatch-wrapper { padding: 0; } .pick input::-webkit-color-swatch { border: 1px solid var(--hair); border-radius: 50%; }
.seg { display: flex; gap: calc(22 * var(--u)); }
.seg button { position: relative; padding: 4px 0; font-size: calc(13 * var(--u)); color: var(--ink-2); }
.seg button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.seg button[aria-checked="true"] { color: var(--ink); }
.seg button[aria-checked="true"]::after { transform: scaleX(1); }

.quick { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.quick button { font-size: calc(12 * var(--u)); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair); }
.quick button:hover { color: var(--ink); text-decoration-color: var(--ink); }
.facts dd em { display: block; font-style: normal; color: var(--ink-2); font-size: calc(11 * var(--u)); }

.takes { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.take { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(14 * var(--u)) 0; border-bottom: 1px solid var(--hair); text-align: left; }
.take b { display: block; font-family: var(--serif); font-weight: 400; font-size: calc(22 * var(--u)); line-height: 1.1; }
.take em { font-style: normal; color: var(--ink-2); font-size: calc(12 * var(--u)); }
.take:hover .ic { translate: 0 2px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 5; transform: translate(-50%, 16px); padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .45s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* tablet */
@media (max-width: 1199px) {
  :root { --u: calc(100vw / 1200); --margin: 28px; --gutter: 14px; }
  .about { grid-column: 1 / 4; }
  .rail { grid-column: 10 / 13; }
  .about h1 { font-size: calc(64 * var(--u)); }
}
/* phone: the pot on top in its colour, then the name, then the controls */
@media (max-width: 700px) {
  :root { --u: calc(100vw / 390); --margin: 20px; --gutter: 12px; --navh: 64px; }
  body { font-size: 15px; }
  .stage { position: relative; height: 60svh; margin-top: var(--navh); }
  .nav { position: fixed; background: color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter: blur(12px); }
  .mark { grid-column: 1 / 6; font-size: 28px; }
  .nav-right { grid-column: 6 / 13; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; justify-content: space-around; gap: 0; padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--ground) 90%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--hair); }
  .tabs button { font-size: 13px; padding: 8px 4px; }
  .page { min-height: 0; padding-top: 8px; padding-bottom: 96px; pointer-events: auto; }
  .about, .rail { grid-column: 1 / 13; }
  .about h1 { font-size: 54px; }
  .desc { max-width: none; }
  .rail { max-height: none; overflow: visible; margin-top: 28px; }
  .row { grid-template-columns: 86px 1fr 46px; font-size: 14px; }
  .btn { height: 46px; font-size: 15px; }
  .shapes { grid-template-columns: repeat(8, 1fr); }
  .pane h2 { font-size: 11px; }
  .chip { height: 38px; font-size: 14px; }
  .take b { font-size: 22px; }
  .take em, .hint { font-size: 13px; }
  .spec dt, .spec dd { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* the paper is lit like a studio sweep: brighter behind the pot, falling off to the edges */
html { background:
  radial-gradient(ellipse 60% 70% at 50% 46%, color-mix(in srgb, var(--ground) 82%, #fff) 0%, transparent 70%),
  radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, color-mix(in srgb, var(--ground) 86%, #000) 100%),
  var(--ground); }

/* paper colours, always at hand */
.papers { display: flex; align-items: center; gap: 10px; }
.papers > span { font-size: calc(12 * var(--u)); color: var(--ink-2); width: 40px; }
#papers { display: flex; gap: 6px; flex-wrap: wrap; }
.paper { width: calc(22 * var(--u)); height: calc(22 * var(--u)); min-width: 20px; min-height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair); transition: transform .25s var(--ease), box-shadow .2s; }
.paper:hover { transform: scale(1.15); }
.paper[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ground), 0 0 0 3.5px var(--ink); }
.pick-paper { position: relative; width: calc(22 * var(--u)); height: calc(22 * var(--u)); min-width: 20px; min-height: 20px; border-radius: 50%; background: conic-gradient(#ff5d8f, #ffd23f, #2ec27e, #2f5bff, #7b2ff2, #ff5d8f); cursor: pointer; }
.pick-paper input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.shelf-link { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; font-size: calc(14 * var(--u)); color: var(--ink); text-decoration: none; }
.shelf-link b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 500; font-size: 12px; font-variant-numeric: tabular-nums; }
.nav-right { align-items: center; }
@media (max-width: 700px) { .shelf-link { margin-right: 10px; font-size: 14px; } }
/* a dark paper turns the type light */
body.on-dark { --ink: #f6f1ea; --ink-2: rgba(246,241,234,.66); --ink-3: rgba(246,241,234,.42); --hair: rgba(246,241,234,.2); --paper: #17130f; color: var(--ink); }
body.on-dark .mark, body.on-dark .shelf-link { color: var(--ink); }

/* ================= v4: smaller, calmer chrome in the studio's own language ================= */
@font-face { font-family: "NHG"; src: local("NHaasGroteskDSPro-55Rg"), local("Neue Haas Grotesk Display Pro 55 Roman"), local("Neue Haas Grotesk Display Pro"); font-weight: 400 600; }
:root { --body: "NHG", "Sora", system-ui, sans-serif; }
body { font-family: var(--body); letter-spacing: .005em; }

/* left rail, tighter */
.about { gap: calc(14 * var(--u)); }
.about h1 { font-size: calc(68 * var(--u)); }
.desc { font-size: calc(13.5 * var(--u)); line-height: 1.5; }
.spec dt, .spec dd { padding: calc(7 * var(--u)) 0; font-size: calc(12.5 * var(--u)); }
.btn { height: calc(36 * var(--u)); min-height: 34px; padding: 0 calc(16 * var(--u)); font-size: calc(13 * var(--u)); gap: 8px; }
.btn .ic { width: 14px; height: 14px; }
.about-cta { gap: 6px; }
.row output { white-space: nowrap; }
.row { grid-template-columns: calc(78 * var(--u)) 1fr calc(54 * var(--u)); }

/* paper chips: little squares of coloured paper that lift when touched */
.papers { gap: 12px; }
.papers > span { width: auto; font-size: calc(11.5 * var(--u)); }
#papers { gap: 7px; }
.paper, .pick-paper { width: 18px; height: 18px; min-width: 18px; min-height: 18px; border-radius: 4px; box-shadow: 0 1px 1.5px rgba(0,0,0,.16), inset 0 0 0 1px rgba(0,0,0,.07); transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .2s; position: relative; }
.paper:hover, .pick-paper:hover { transform: translateY(-3px) rotate(-4deg); box-shadow: 0 4px 6px rgba(0,0,0,.14), inset 0 0 0 1px rgba(0,0,0,.07); }
.paper[aria-pressed="true"] { transform: translateY(-2px) scale(1.12); box-shadow: 0 3px 5px rgba(0,0,0,.16), inset 0 0 0 1px rgba(0,0,0,.1); }
.paper[aria-pressed="true"]::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--ink); }
body.on-dark .paper[aria-pressed="true"]::after { background: #f6f1ea; }
.pick-paper { border-radius: 4px; }

/* the side outline: filled with the pot's colour, small handles, a big touch area */
#profile .body { stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
#profile .axis { stroke: var(--hair); stroke-dasharray: 2 4; stroke-width: 1; }
#profile .knob { cursor: ew-resize; }
#profile .knob .hit { fill: transparent; }
#profile .knob .dot { fill: #fff; stroke: var(--ink); stroke-width: 1.5; transition: r .35s cubic-bezier(.34,1.56,.64,1), fill .2s; }
#profile .knob:hover .dot { r: 7; }
#profile .knob.drag .dot { r: 8; fill: var(--ink); }
#profile .guide { stroke: var(--ink); stroke-width: .8; stroke-dasharray: 1 3; opacity: .5; }
#profile .tag { font: 500 9px var(--body); fill: var(--ink); }

/* what it's made of: little spheres of each material */
.mats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.mat { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: calc(10 * var(--u)); color: var(--ink-2); }
.mat i { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 2px 3px rgba(0,0,0,.18); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.mat:hover i { transform: translateY(-3px); }
.mat[aria-pressed="true"] { color: var(--ink); }
.mat[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--ground), 0 0 0 3.5px var(--ink), 0 3px 5px rgba(0,0,0,.18); }
.mat-glaze i { background: radial-gradient(circle at 34% 30%, #fff 0 8%, #f1d7c4 18%, #e0372b 70%, #a3221a); }
.mat-stainless i { background: conic-gradient(from 200deg, #f4f6f8, #9aa2aa, #eef1f3, #7d858d, #f4f6f8, #a8afb6, #f4f6f8); }
.mat-brass i { background: conic-gradient(from 210deg, #fff0c2, #b8892f, #f6d98b, #8f6420, #fff0c2, #c99a45, #fff0c2); }
.mat-glass i { background: radial-gradient(circle at 34% 30%, #fff 0 10%, rgba(255,255,255,.4) 22%, rgba(200,230,240,.35) 60%, rgba(80,120,140,.45)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 2px 3px rgba(0,0,0,.12); }
.mat-terracotta i { background: radial-gradient(circle at 34% 30%, #e59a72, #b8643d 60%, #8a4528); }
.mat-concrete i { background: radial-gradient(circle at 34% 30%, #e2ded7, #bdb8b0 60%, #8f8a83); }
.pane h2 em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--ink-3); margin-left: 6px; }
#p-paint.bare .tiles-board, #p-paint.bare .palettes, #p-paint.bare .pots, #p-paint.bare .fins, #p-paint.bare .row { opacity: .35; transition: opacity .3s; }

/* pattern test tiles, pinned to a board: each painted with the real painter, a hanging hole at the top */
.tiles-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 8px; }
.tp { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: calc(10 * var(--u)); color: var(--ink-2); }
.tp canvas { width: 100%; aspect-ratio: 4 / 5; border-radius: 5px 5px 7px 7px; box-shadow: 0 1.5px 2.5px rgba(0,0,0,.2), inset 0 0 0 1px rgba(0,0,0,.05); transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .2s; -webkit-mask: radial-gradient(circle at 50% 9%, transparent 3.2px, #000 3.6px); mask: radial-gradient(circle at 50% 9%, transparent 3.2px, #000 3.6px); }
.tp:hover canvas { transform: translateY(-3px) rotate(-2.5deg); }
.tp[aria-pressed="true"] { color: var(--ink); }
.tp[aria-pressed="true"] canvas { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--ground), 0 0 0 3.5px var(--ink), 0 5px 8px rgba(0,0,0,.18); }

/* colour pairs as little dipped tiles */
.palettes { grid-template-columns: repeat(6, 1fr); gap: 9px; }
.pal { aspect-ratio: auto; border-radius: 0; transform: none; box-shadow: none; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.pal svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 1.5px 1.5px rgba(0,0,0,.18)); }
.pal:hover { transform: translateY(-3px) rotate(3deg); }
.pal[aria-pressed="true"] { transform: translateY(-3px); box-shadow: none; }
.pal[aria-pressed="true"] svg { filter: drop-shadow(0 0 0 var(--ink)) drop-shadow(0 4px 5px rgba(0,0,0,.2)); outline: 1.5px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

/* custom colours as paint pots */
.pots { display: flex; gap: 16px; }
.pot { position: relative; display: inline-flex; align-items: center; gap: 7px; font-size: calc(11.5 * var(--u)); color: var(--ink-2); cursor: pointer; }
.pot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pot i { position: relative; width: 22px; height: 20px; border-radius: 3px 3px 7px 7px; background: linear-gradient(#ffffff 0 22%, #e9e3da 22% 30%, #fff 30%); box-shadow: 0 1.5px 2px rgba(0,0,0,.2), inset 0 0 0 1px rgba(0,0,0,.08); overflow: hidden; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.pot i::after { content: ""; position: absolute; left: 2px; right: 2px; top: 2px; height: 5px; border-radius: 50%; background: var(--c, #ccc); box-shadow: inset 0 -1px 1px rgba(0,0,0,.2); }
.pot i::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background: var(--c, #ccc); opacity: .9; }
.pot:hover i { transform: translateY(-2px) rotate(-6deg); }

/* glaze finishes as three tiles of the same colour, lit differently */
.fins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fins button { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: calc(11 * var(--u)); color: var(--ink-2); }
.fin { width: 100%; aspect-ratio: 5 / 3; border-radius: 6px; background-color: var(--c, #e0372b); box-shadow: 0 1.5px 2.5px rgba(0,0,0,.2); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.fin-gloss { background-image: radial-gradient(ellipse 30% 22% at 30% 28%, rgba(255,255,255,.95), rgba(255,255,255,0) 70%), linear-gradient(160deg, rgba(255,255,255,.25), rgba(0,0,0,.18)); }
.fin-satin { background-image: radial-gradient(ellipse 60% 50% at 32% 30%, rgba(255,255,255,.42), rgba(255,255,255,0) 75%), linear-gradient(160deg, rgba(255,255,255,.12), rgba(0,0,0,.14)); }
.fin-matte { background-image: radial-gradient(rgba(0,0,0,.07) 0.6px, transparent 0.7px), linear-gradient(160deg, rgba(255,255,255,.06), rgba(0,0,0,.1)); background-size: 3px 3px, auto; }
.fins button:hover .fin { transform: translateY(-3px); }
.fins button[aria-checked="true"] { color: var(--ink); }
.fins button[aria-checked="true"] .fin { box-shadow: 0 0 0 2px var(--ground), 0 0 0 3.5px var(--ink), 0 4px 6px rgba(0,0,0,.18); }

/* headline face: chosen from the user's own fonts (local only until a web licence is bought) */
@font-face { font-family: "PottleHead"; src: local("Rolmes-Regular"), local("Rolmes Regular"), local("Rolmes"); }
@font-face { font-family: "PottleHeadB"; src: local("PPHatton-Medium"), local("PP Hatton Medium"); }
:root { --serif: "PottleHead", "DM Serif Display", Georgia, serif; }
html[data-head="hatton"] { --serif: "PottleHeadB", "DM Serif Display", Georgia, serif; }

/* v5: no dots, no tilting: a chip is chosen by a thin ink ring, and things only lift when touched */
.paper[aria-pressed="true"]::after { content: none; }
.paper:hover, .pick-paper:hover { transform: translateY(-2px); box-shadow: 0 3px 5px rgba(0,0,0,.12), inset 0 0 0 1px rgba(0,0,0,.07); }
.paper[aria-pressed="true"] { transform: none; box-shadow: 0 0 0 2px var(--ground), 0 0 0 3.2px var(--ink); }
.tp:hover canvas, .pal:hover, .pot:hover i { transform: translateY(-2px); }
#profile .knob { fill: none; stroke: none; }
#profile .knob .hit { fill: transparent; stroke: none; }
#profile .knob .dot { fill: #fff; stroke: var(--ink); stroke-width: 1.3; }
/* a section heading already draws the rule above its list: no second line */
.pane h2 + .takes, .pane h2 + .spec { border-top: 0; }
.pane h2 + .takes .take:first-child { padding-top: calc(8 * var(--u)); }

/* v6: pattern swatches, calm: square, flat, readable scale, four across */
.tiles-board { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 10px; }
.tp canvas { aspect-ratio: 1; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); -webkit-mask: none; mask: none; }
.tp:hover canvas { transform: translateY(-2px); }
.tp[aria-pressed="true"] canvas { transform: none; box-shadow: 0 0 0 2px var(--ground), 0 0 0 3.2px var(--ink); }
.tp span { font-size: calc(10.5 * var(--u)); }

.pots { flex-wrap: wrap; gap: 10px 14px; }
.shapes { grid-template-columns: repeat(6, 1fr); row-gap: 6px; }

/* phones: no blur on the header, or the fixed tab bar inside it would be placed against the header instead of the screen */
@media (max-width: 700px) { .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--ground) 96%, transparent); } }
.nogl { position: absolute; inset: auto 20px 20px 20px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.7); font-size: 13px; z-index: 2; }
/* sliders give way inside narrow rails */
input[type=range] { min-width: 0; width: 100%; }
.row > * { min-width: 0; }
@media (max-width: 700px) { .page { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }

/* the tab switcher lives at the head of the controls rail, stuck to its top */
.nav .tabs { display: none; }
.rail-tabs { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: flex-start; gap: calc(20 * var(--u)); padding: 6px 0 10px; margin-bottom: 6px; background: linear-gradient(var(--ground) 82%, transparent); grid-column: auto; }
.rail-tabs button[role=tab] { position: relative; padding: 6px 0; font-size: calc(13.5 * var(--u)); color: var(--ink-2); transition: color .25s; }
.rail-tabs button[role=tab]::after { content: none; }
.rail-tabs button[role=tab]:hover, .rail-tabs button[aria-selected="true"] { color: var(--ink); }
.tab-line { position: absolute; left: 0; bottom: 8px; height: 1.5px; width: 0; background: var(--ink); transition: transform .45s var(--ease), width .45s var(--ease); pointer-events: none; }
.undo-redo { margin-left: auto; display: flex; gap: 2px; }
.undo-redo button { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); transition: background-color .2s, opacity .2s; }
.undo-redo button:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.undo-redo button:disabled { opacity: .28; cursor: default; }
.undo-redo .ic { width: 15px; height: 15px; }
.pane:not([hidden]) { animation: paneIn .38s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } }
.with-act { display: flex; align-items: baseline; justify-content: space-between; }
.reset { font: 400 calc(11.5 * var(--u))/1 var(--body); text-transform: none; letter-spacing: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair); }
.reset:hover { color: var(--ink); text-decoration-color: var(--ink); }
.row { cursor: default; }
@media (max-width: 700px) {
  .rail-tabs { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 4; justify-content: space-around; gap: 0; margin: 0; padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--ground) 96%, transparent); border-top: 1px solid var(--hair); }
  .rail-tabs .tab-line { bottom: calc(10px + env(safe-area-inset-bottom)); }
  .undo-redo { position: fixed; right: 14px; bottom: calc(64px + env(safe-area-inset-bottom)); margin: 0; background: color-mix(in srgb, var(--ground) 92%, transparent); border-radius: 999px; padding: 2px; }
}
@media (prefers-reduced-motion: reduce) { .pane:not([hidden]) { animation: none; } }

/* v9: colours, calm: four-colour chips and one row of labelled dots; one way of showing "chosen" everywhere */
.palettes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; }
.chip4 { display: grid; grid-template-columns: repeat(4, 1fr); height: 26px; border-radius: 6px; overflow: hidden; transform: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); transition: translate .3s var(--ease), box-shadow .2s; }
.chip4 i { display: block; }
.chip4:hover { translate: 0 -2px; transform: none; }
.chip4[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ground), 0 0 0 3.2px var(--ink); transform: none; }
.dots5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cdot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: calc(10.5 * var(--u)); color: var(--ink-2); cursor: pointer; }
.cdot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cdot i { width: 22px; height: 22px; border-radius: 50%; background: var(--c, #ccc); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); transition: translate .3s var(--ease); }
.cdot:hover i { translate: 0 -2px; }
.cdot:focus-within i { box-shadow: 0 0 0 2px var(--ground), 0 0 0 3.2px var(--ink); }
.mat i { width: 26px; height: 26px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.mat[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--ground), 0 0 0 3.2px var(--ink); }
.mat:hover i { transform: translateY(-2px); }
.pane h2 em { display: none; }

/* v10: selection rings sit outside their item; give the scrolling rail room so they are never clipped */
.rail { padding: 6px 10px 12px; margin: 0 -10px; }
.rail-tabs { margin-left: -10px; margin-right: -10px; padding-left: 10px; padding-right: 10px; }
@media (max-width: 700px) { .rail { margin: 28px 0 0; padding: 4px 6px 8px; } .rail-tabs { margin: 0; padding-left: 8px; padding-right: 8px; } }
.rail-tabs button[role=tab] { white-space: nowrap; }
.rail-tabs { gap: calc(16 * var(--u)); }
.rail-tabs { top: -6px; padding-top: 12px; margin-top: -6px; background: linear-gradient(var(--ground) 86%, color-mix(in srgb, var(--ground) 0%, transparent)); }
@media (max-width: 700px) { .rail-tabs { top: auto; margin-top: 0; padding-top: 10px; } }
@media (min-width: 701px) {
  .rail { padding-top: 0; }
  .rail-tabs { top: 0; margin-top: 0; padding-top: 8px; gap: 0; justify-content: space-between; background: var(--ground); box-shadow: 0 10px 10px -6px var(--ground); }
  .rail-tabs button[role=tab] { flex: 0 0 auto; margin-right: calc(12 * var(--u)); }
  .undo-redo { flex: 0 0 auto; margin-left: auto; }
  .rail-tabs { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}
@media (max-width: 1279px) and (min-width: 701px) { .rail-tabs button[role=tab] { font-size: calc(12 * var(--u)); margin-right: calc(7 * var(--u)); } .undo-redo button { width: 24px; } }

/* v18: the actions stay on one row; turning is a round toggle */
.about-cta { flex-wrap: nowrap; align-items: center; }
.about-cta .btn { flex: 0 0 auto; white-space: nowrap; }
.btn-round { width: calc(36 * var(--u)); min-width: 34px; padding: 0; }
.btn-round .ic { width: 16px; height: 16px; transition: rotate .6s var(--ease); }
.btn-round[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.btn-round[aria-pressed="true"] .ic { animation: turnIc 2.4s linear infinite; }
@keyframes turnIc { to { rotate: 360deg; } }
.fin-note:not(:empty)::before { content: " · "; color: var(--ink-2); }
.fin-note { color: var(--ink); }
@media (max-width: 700px) { .btn-round { width: 46px; } }
@media (prefers-reduced-motion: reduce) { .btn-round[aria-pressed="true"] .ic { animation: none; } }

/* v19: show that the rail scrolls: soft fade at the edge that still has more, and a thin visible bar */
@media (min-width: 701px) {
  .rail { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 22%, transparent) transparent; }
  .rail::-webkit-scrollbar { display: block; width: 4px; }
  .rail::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 22%, transparent); border-radius: 4px; }
  .rail.more-below { -webkit-mask-image: linear-gradient(#000 calc(100% - 72px), transparent); mask-image: linear-gradient(#000 calc(100% - 72px), transparent); }
}

/* v20: patterns are small swatches, six to a row; the chosen name sits by the heading */
.patterns { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 8px !important; }
.tp { gap: 0; }
.tp span { display: none; }
.tp canvas { border-radius: 5px; }
.h2-val { font: 400 calc(12 * var(--u))/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); }

/* v21: patterns really are six small swatches (the grid is #patterns) */
#patterns { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 8px !important; }
#patterns .tp { gap: 0; }
#patterns .tp span { display: none; }
#patterns .tp canvas { border-radius: 5px; }
.dots5 { margin-top: 14px; }

/* our own colour picker */
.picker { position: fixed; z-index: 50; width: 252px; padding: 14px; border-radius: 16px; background: var(--paper, #fffdf8); color: var(--ink); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 18px 40px -12px rgba(0,0,0,.28); opacity: 0; transform: translateY(4px) scale(.98); transform-origin: 50% 0; transition: opacity .18s var(--ease), transform .22s var(--ease); }
.picker.in { opacity: 1; transform: none; }
.picker[hidden] { display: none; }
.pk-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.pk-swatches button { aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); transition: translate .2s var(--ease); }
.pk-swatches button:hover { translate: 0 -2px; }
.pk-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper, #fffdf8), 0 0 0 3.2px var(--ink); }
.pk-mix { display: grid; gap: 10px; margin: 16px 0 14px; padding-top: 14px; border-top: 1px solid var(--hair); }
.pk-row { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ink-2); }
.pk-row input[type=range] { -webkit-appearance: none; appearance: none; height: 12px; border-radius: 999px; margin: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
#pkH { background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.pk-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 1px 3px rgba(0,0,0,.25); cursor: grab; }
.pk-row input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 1px 3px rgba(0,0,0,.25); }
.pk-foot { display: flex; align-items: center; gap: 8px; }
.pk-now { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); flex: 0 0 auto; }
.pk-hex { flex: 1; min-width: 0; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: color-mix(in srgb, var(--ink) 6%, transparent); font: 400 12.5px/1 var(--body); color: var(--ink); text-transform: lowercase; }
.pk-hex:focus { outline: 1.5px solid var(--ink); outline-offset: 0; }
.pk-done { height: 30px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--paper, #fffdf8); font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .picker { transition: none; } }
.picker .pk-row input[type=range]::-webkit-slider-runnable-track { height: 12px !important; background: none !important; background-image: none !important; }
.pk-row input[type=range]::-webkit-slider-thumb { margin-top: -2px; transform: none !important; }
.pk-row input[type=range]::-moz-range-track, .pk-row input[type=range]::-moz-range-progress { background: transparent; }

/* v25: picker sliders are drawn by us: a rounded colour track and a ring handle filled with the colour; the real input is invisible on top */
.pk-track { position: relative; display: block; height: 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
#pkHT { background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.pk-track input.pk-r { position: absolute; inset: -6px 0; width: 100%; height: 26px; opacity: 0; margin: 0; cursor: pointer; box-shadow: none; background: none; }
.pk-thumb { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(0,0,0,.18), 0 2px 5px rgba(0,0,0,.25); pointer-events: none; transition: scale .15s var(--ease); }
.pk-track:active .pk-thumb { scale: 1.12; }
.pk-track input.pk-r:focus-visible + .pk-thumb { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }

/* v26: every pane fits the screen top to bottom on PC and iPad; the outline editor takes whatever height is left */
@media (min-width: 701px) {
  .rail { display: flex; flex-direction: column; height: calc(100svh - var(--navh) - 40 * var(--u)); }
  .rail-tabs { flex: 0 0 auto; }
  .pane:not([hidden]) { flex: 1 1 auto; min-height: 0; gap: calc(9 * var(--u)); }
  .pane h2 { margin-top: calc(6 * var(--u)); padding-bottom: calc(6 * var(--u)); }
  .shapes { grid-template-columns: repeat(11, 1fr) !important; row-gap: 0; gap: 0; }
  .shapes .shape { padding: 2px 0; }
  .shapes .shape svg { width: 100%; height: calc(34 * var(--u)); }
  #p-shape #profile { flex: 1 1 0; min-height: 90px; max-height: none; height: auto; }
  #p-shape .row { min-height: 0; }
  #p-shape .row input[type=range] { height: calc(20 * var(--u)); }
}
@media (min-width: 701px) { .rail-tabs { background: none !important; box-shadow: none !important; } }

/* v28: roles spread over the page: steps in the middle of the header, undo/redo under the vase, controls on the right */
.nav .tabs.step-tabs { display: flex; }
.step-tabs { grid-column: 4 / 10; justify-self: center; position: relative; display: flex; align-items: center; gap: calc(26 * var(--u)); padding: 0; margin: 0; background: none; box-shadow: none; }
.step-tabs button[role=tab] { position: relative; padding: 8px 0; font-size: calc(14 * var(--u)); color: var(--ink-2); white-space: nowrap; transition: color .25s; }
.step-tabs button[role=tab]::after { content: none; }
.step-tabs button[role=tab]:hover, .step-tabs button[aria-selected="true"] { color: var(--ink); }
.step-tabs .tab-line { bottom: 2px; }
.stage-tools { position: fixed; left: 50%; bottom: calc(26 * var(--u)); transform: translateX(-50%); z-index: 3; }
.stage-tools .undo-redo { margin: 0; display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 55%, transparent); box-shadow: inset 0 0 0 1px var(--hair); }
.stage-tools .undo-redo button { width: 34px; height: 34px; }
.stage-tools .undo-redo .ic { width: 16px; height: 16px; }
@media (min-width: 701px) { .rail { padding-top: 6px; } }
@media (max-width: 700px) {
  .step-tabs { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 4; justify-content: space-around; gap: 0; padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--ground) 96%, transparent); border-top: 1px solid var(--hair); }
  .step-tabs .tab-line { bottom: calc(10px + env(safe-area-inset-bottom)); }
  .stage-tools { left: auto; right: 14px; transform: none; bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (max-width: 700px) { .nav .step-tabs { justify-self: stretch; width: 100%; grid-column: auto; gap: 0; } .step-tabs button[role=tab] { flex: 1 1 0; text-align: center; font-size: 13px; } }
@media (max-width: 700px) { .stage-tools { position: absolute; top: calc(var(--navh) + 18px); bottom: auto; right: 14px; left: auto; transform: none; } }
@media (max-width: 700px) { .stage-tools .undo-redo { position: static; } }
@media (min-width: 701px) { #p-shape #profile { flex: 0 1 auto; height: calc(190 * var(--u)); max-height: calc(190 * var(--u)); min-height: 110px; margin: calc(4 * var(--u)) 0; } }
#profile .body { vector-effect: non-scaling-stroke; stroke-width: 1.3; }

/* v33: one quiet row under the vase, in the page's own type: paper swatches, then Turn / Undo / Redo / Reset all as text */
.stage-tools { position: fixed; left: 50%; bottom: calc(28 * var(--u)); transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: calc(40 * var(--u)); padding: 0; background: none; box-shadow: none; white-space: nowrap; }
.stage-tools .papers { gap: 8px; }
.stage-tools .papers > span { font-size: calc(12 * var(--u)); color: var(--ink-2); width: auto; margin-right: 2px; }
.stage-tools .paper, .stage-tools .pick-paper { width: 16px; height: 16px; min-width: 16px; min-height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); transform: none; }
.stage-tools .paper:hover, .stage-tools .pick-paper:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.stage-tools .paper[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ground), 0 0 0 3.2px var(--ink); }
.stage-acts { display: flex; align-items: center; gap: calc(18 * var(--u)); }
.tlink { font-size: calc(12.5 * var(--u)); color: var(--ink-2); padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair); transition: color .2s, text-decoration-color .2s; }
.tlink:hover:not(:disabled), .tlink[aria-pressed="true"] { color: var(--ink); text-decoration-color: var(--ink); }
.tlink:disabled { opacity: .35; cursor: default; }
.stage-tools .undo-redo { display: none; }
/* shapes: two rows, big enough to read */
@media (min-width: 701px) {
  .shapes { grid-template-columns: repeat(6, 1fr) !important; row-gap: calc(4 * var(--u)) !important; }
  .shapes .shape svg { height: calc(50 * var(--u)) !important; }
}
@media (max-width: 700px) {
  .stage-tools { position: absolute; top: calc(var(--navh) + 60svh - 44px); bottom: auto; left: 20px; right: 20px; transform: none; justify-content: space-between; gap: 12px; }
  .stage-tools .papers > span { display: none; }
  .stage-acts { gap: 14px; }
  .tlink { font-size: 13px; }
}
@media (min-width: 701px) { .rail { justify-content: safe center; } .pane:not([hidden]) { flex: 0 1 auto; } #p-shape #profile { flex: 0 0 auto; } }
@media (max-width: 700px) { .stage-tools { flex-direction: column; align-items: stretch; gap: 10px; top: calc(var(--navh) + 60svh - 84px); } .stage-tools .papers { flex-wrap: nowrap; gap: 0; justify-content: space-between; } .stage-tools #papers { display: contents; } .stage-acts { justify-content: space-between; } }
@media (max-width: 700px) { .stage-tools { width: auto; max-width: calc(100vw - 40px); box-sizing: border-box; } .stage-tools .papers, .stage-acts { width: 100%; min-width: 0; } .stage-tools .pick-paper { position: relative; overflow: hidden; } }

/* v37: your room. The photo fills the stage, the panels step aside, one small bar remains */
.room-fg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
html.room-on .about, html.room-on .rail, html.room-on .step-tabs, html.room-on .stage-tools { opacity: 0; visibility: hidden; transition: opacity .3s; }
html.room-on .stage { position: fixed; inset: 0; height: auto; margin: 0; z-index: 1; }
html.room-on .stage canvas { cursor: crosshair; }
html.room-on .nav { z-index: 3; }
.room-bar { position: fixed; left: 50%; bottom: calc(24 * var(--u)); transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: calc(26 * var(--u)); padding: 12px 22px; border-radius: 18px; background: color-mix(in srgb, var(--paper) 92%, transparent); box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); white-space: nowrap; }
.room-bar[hidden] { display: none; }
.rb-note { font-size: calc(12 * var(--u)); color: var(--ink-2); }
.rb-row { display: flex; align-items: center; gap: 10px; font-size: calc(12.5 * var(--u)); color: var(--ink-2); }
.rb-row input { width: calc(120 * var(--u)); min-width: 90px; }
.rb-acts { display: flex; gap: calc(18 * var(--u)); }
@media (max-width: 700px) {
  .room-bar { left: 12px; right: 12px; transform: none; bottom: calc(14px + env(safe-area-inset-bottom)); flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; white-space: normal; }
  .rb-note { width: 100%; }
  .rb-row { flex: 1 1 40%; } .rb-row input { width: 100%; min-width: 0; }
  .rb-acts { width: 100%; justify-content: space-between; }
}
@media (max-width: 380px) { .stage-acts { gap: 8px; } .stage-acts .tlink { font-size: 12.5px; } }

/* the stage row: looking at the vase | going back. The hand-drawn switch lives in the header with the other page-wide things */
.stage-acts { gap: calc(36 * var(--u)); }
.acts-group { display: flex; align-items: center; gap: calc(18 * var(--u)); }
.nav-right .ui-toggle { font-size: calc(13 * var(--u)); color: var(--ink-2); margin-right: calc(10 * var(--u)); }
.nav-right .ui-toggle[aria-pressed="true"] { color: var(--ink); }
@media (max-width: 700px) { .stage-acts { justify-content: space-between; } .acts-group { gap: 14px; } }
@media (max-width: 380px) { .acts-group { gap: 9px; } }
/* the switch itself is drawn: a hand-drawn ring round the word, in either mode */
.nav-right .ui-toggle { position: relative; padding: 7px 14px; text-decoration: none; }
.nav-right .ui-toggle::before { content: ""; position: absolute; inset: 0; background: currentColor; -webkit-mask: url(hand/oval2.svg) center / 100% 100% no-repeat; mask: url(hand/oval2.svg) center / 100% 100% no-repeat; opacity: .55; pointer-events: none; transition: opacity .2s, rotate .3s var(--ease); }
.nav-right .ui-toggle:hover::before { opacity: 1; rotate: -2deg; }
.nav-right .ui-toggle[aria-pressed="true"]::before { opacity: 1; }
.nav-right .ui-toggle::after { display: none !important; }
@media (max-width: 700px) { .nav-right .ui-toggle { font-size: 12px; padding: 6px 11px; margin-right: 8px; } }
@media (min-width: 701px) { .nav-right .ui-toggle { margin-left: 2px; margin-right: auto; } }

/* paint, in the order you decide: pattern, colours, material and shine */
#patterns { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; gap: 6px !important; }
#patterns .tp canvas { border-radius: 4px; }
#p-paint .palettes { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 6px !important; }
#p-paint .palettes > * { height: calc(26 * var(--u)) !important; min-height: 22px; }
#p-paint .dots5 { margin-top: 12px; }
#p-paint #finish { margin-top: 12px; }
/* the way on: a quiet link at the foot of each step */
.next-step { display: flex; align-items: center; gap: 8px; margin: calc(22 * var(--u)) 0 0 auto; font-size: calc(13.5 * var(--u)); color: var(--ink); }
.next-step::after { content: "→"; transition: translate .25s var(--ease); }
.next-step:hover::after { translate: 3px 0; }
@media (max-width: 700px) { .next-step { margin: 22px 0 4px auto; } }

/* headings without rules */
.pane h2 { border-bottom: 0 !important; padding-bottom: 0; }
/* shape: shapes, the outline with its Reset, sliders, handles. No headings */
#p-shape .shapes { margin-bottom: calc(6 * var(--u)); }
.profile-wrap { position: relative; display: flex; flex-direction: column; }
.profile-wrap .reset { position: absolute; top: 0; right: 0; z-index: 1; }
.row-seg { grid-template-columns: calc(78 * var(--u)) 1fr; margin-top: calc(6 * var(--u)); }
.row-seg .seg { margin: 0; gap: calc(18 * var(--u)); }
@media (max-width: 700px) { .row-seg { grid-template-columns: 86px 1fr; } }
@media (max-width: 700px) { .nav-right { gap: 8px; } .nav-right > * { white-space: nowrap; flex: none; } .nav-right .ui-toggle { margin-right: 0; padding: 6px 10px; font-size: 12px; } .nav-right .btn { padding: 0 12px; font-size: 13px; } .nav-right .shelf-link { font-size: 13px; } }

/* phone: the header has room for Shelf and Surprise me only; the hand-drawn switch sits at the foot of the panel */
.ui-toggle-foot { display: none; }
@media (max-width: 700px) {
  .nav-right #uiHand { display: none; }
  .ui-toggle-foot { display: block; position: relative; margin: 28px auto 8px; padding: 7px 14px; font-size: 13px; color: var(--ink-2); text-decoration: none; }
  .ui-toggle-foot::before { content: ""; position: absolute; inset: 0; background: currentColor; -webkit-mask: url(hand/oval2.svg) center / 100% 100% no-repeat; mask: url(hand/oval2.svg) center / 100% 100% no-repeat; opacity: .55; pointer-events: none; }
  .ui-toggle-foot[aria-pressed="true"] { color: var(--ink); }
  .ui-toggle-foot[aria-pressed="true"]::before { opacity: 1; }
  .ui-toggle-foot::after { display: none !important; }
}

/* header: plain words, nothing shouting */
.nav-right { gap: calc(22 * var(--u)); }
.nav-right .nav-link, .nav-right .shelf-link { font-size: calc(14 * var(--u)); color: var(--ink); text-decoration: none; }
.nav-right .nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-right .ui-toggle { margin-right: auto; }
/* the stage row: words without underlines until you point at them */
.stage-acts .tlink { text-decoration: none; color: var(--ink); }
.stage-acts .tlink:disabled { color: var(--ink-2); opacity: .45; }
.stage-acts .tlink:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 4px; }
/* paper: one swatch that opens */
.paper-now { display: flex; align-items: center; gap: 9px; font-size: calc(12.5 * var(--u)); color: var(--ink); }
.paper-now i { width: calc(24 * var(--u)); height: calc(24 * var(--u)); min-width: 22px; min-height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink), 0 1px 2px rgba(0,0,0,.12); transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.paper-now:hover i { transform: rotate(-12deg) scale(1.08); }
.papers.open .paper-now i { transform: scale(.9); }
.paper-tray { display: flex; align-items: center; gap: 8px; max-width: 0; overflow: hidden; padding: 4px 0; transition: max-width .45s var(--ease), margin .45s var(--ease); }
.papers.open .paper-tray { max-width: 420px; margin-left: 10px; }
.paper-tray #papers { display: flex; gap: 8px; }
.paper-tray .paper, .paper-tray .pick-paper { transform: scale(0); opacity: 0; transition: transform .4s cubic-bezier(.34,1.56,.64,1) calc(var(--i, 0) * 28ms), opacity .2s calc(var(--i, 0) * 28ms); }
.papers.open .paper-tray .paper, .papers.open .paper-tray .pick-paper { transform: none; opacity: 1; }
.papers.open .paper-tray .paper:hover { transform: translateY(-3px); }
.stage-tools .papers { gap: 0 !important; }
@media (max-width: 700px) {
  .stage-tools .papers { justify-content: flex-start !important; }
  .papers.open .paper-tray { max-width: calc(100vw - 130px); }
  .paper-tray, .paper-tray #papers { gap: 6px; }
  .paper-now span { display: inline !important; }
}
/* save toast carries the way to the shelf */
.toast.has-link { pointer-events: auto; display: flex; gap: 14px; align-items: center; }
.toast a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.paper-tray { padding: 6px 4px; margin-block: -6px; } .papers.open .paper-tray { margin-left: 6px; }
.nav-right > * { white-space: nowrap; flex: none; } @media (max-width: 1199px) and (min-width: 701px) { .nav-right { gap: 12px; } .nav-right .nav-link, .nav-right .shelf-link { font-size: 13px; } }

/* paint, like shape: no headings, groups set apart by space alone. Pattern and its knob, colours, then material and finish */
#p-paint > .row:first-of-type { margin-top: calc(4 * var(--u)); }
#p-paint .palettes { margin-top: calc(18 * var(--u)); }
#p-paint .dots5 { margin-top: calc(10 * var(--u)); }
#p-paint .mats { margin-top: calc(18 * var(--u)); }
#p-paint #finish { margin-top: 0; }
.paper-tray, .paper-tray #papers { flex-wrap: nowrap; } .paper-tray .paper, .paper-tray .pick-paper { flex: none; }

/* ===== iPad and other tablets: the vase always in view, controls in a panel beside it (landscape) or below it (portrait), sized for fingers */
html.tablet { --u: 1px; --margin: 24px; --gutter: 16px; --navh: 80px; --panel: 400px; }
html.tablet .page { position: static; min-height: 0; padding: 0; }
html.tablet .stage { position: fixed; top: var(--navh); left: 0; right: var(--panel); bottom: 0; height: auto; margin: 0; }
html.tablet .rail { position: fixed; top: var(--navh); right: 0; bottom: 0; width: var(--panel); max-height: none; margin: 0; display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 24px 48px; box-sizing: border-box; pointer-events: auto; border-left: 1px solid var(--hair); }
html.tablet .rail .pane:not([hidden]) { display: block; }
html.tablet .about { position: fixed; top: calc(var(--navh) + 6px); left: var(--margin); width: 300px; z-index: 2; gap: 6px; pointer-events: none; }
html.tablet .about h1 { font-size: 40px; }
html.tablet .about .desc { font-size: 14px; max-width: 30ch; }
html.tablet .about .spec { display: none; }
html.tablet .stage-tools { left: calc((100vw - var(--panel)) / 2); bottom: 20px; transform: translateX(-50%); }
html.tablet .stage-acts .tlink, html.tablet .paper-now { font-size: 15px; padding-block: 8px; }
html.tablet .nav .step-tabs button { font-size: 16px; padding-block: 12px; }
html.tablet .nav-right .nav-link, html.tablet .nav-right .shelf-link { font-size: 15px; }
/* fingers: bigger targets in the panel */
html.tablet #patterns { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 8px !important; }
html.tablet #p-paint .palettes { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; }
html.tablet #p-paint .palettes > * { height: 34px !important; }
html.tablet .shapes { grid-template-columns: repeat(6, 1fr) !important; row-gap: 6px !important; }
html.tablet .shapes .shape svg { height: 52px !important; }
html.tablet .row { grid-template-columns: 96px 1fr 56px; min-height: 44px; font-size: 15px; }
html.tablet .row-seg { grid-template-columns: 96px 1fr; }
html.tablet .seg button { font-size: 15px; padding-block: 10px; }
html.tablet .tp span, html.tablet .cdot, html.tablet .mat span { font-size: 12px; }
html.tablet .cdot i { width: 30px; height: 30px; }
html.tablet .mat i { width: 36px; height: 36px; }
html.tablet input[type=range]::-webkit-slider-thumb { transform: scale(1.35); }
html.tablet #p-shape #profile { height: 200px; max-height: 200px; }
html.tablet .next-step { font-size: 15px; padding-block: 10px; }
html.tablet .ui-toggle-foot { display: none; }
/* portrait: the vase on top, the panel underneath */
@media (orientation: portrait) {
  html.tablet { --panel: 0px; --stageh: 46vh; }
  html.tablet .stage { right: 0; bottom: auto; height: var(--stageh); }
  html.tablet .rail { top: calc(var(--navh) + var(--stageh)); left: 0; width: auto; border-left: 0; border-top: 1px solid var(--hair); padding: 16px 32px 48px; }
  html.tablet .stage-tools { left: 50%; bottom: auto; top: calc(var(--navh) + var(--stageh) - 52px); }
  html.tablet #patterns { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; }
  html.tablet #p-paint .palettes { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  html.tablet .shapes { grid-template-columns: repeat(11, 1fr) !important; }
  html.tablet .shapes .shape svg { height: 46px !important; }
  html.tablet #p-shape #profile { height: 170px; max-height: 170px; }
}
/* the room view still takes the whole screen */
html.tablet.room-on .stage { inset: 0; height: auto; right: 0; }
html.tablet.room-on .rail, html.tablet.room-on .about, html.tablet.room-on .stage-tools { display: none; }
@media (orientation: portrait) {
  html.tablet .nav-right #uiHand { display: none; }
  html.tablet .ui-toggle-foot { display: block; position: relative; margin: 24px auto 0; padding: 8px 16px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
  html.tablet .ui-toggle-foot::before { content: ""; position: absolute; inset: 0; background: currentColor; -webkit-mask: url(hand/oval2.svg) center / 100% 100% no-repeat; mask: url(hand/oval2.svg) center / 100% 100% no-repeat; opacity: .55; pointer-events: none; }
  html.tablet .ui-toggle-foot::after { display: none !important; }
  html.tablet .about { top: calc(var(--navh) + 4px); }
  html.tablet .about h1 { font-size: 34px; }
}
html.tablet .rail { height: auto !important; align-self: stretch; justify-self: stretch; }
html.tablet .about { align-self: start; justify-self: start; }
:root, html[data-head="hatton"] { --serif: "Young Serif", "DM Serif Display", Georgia, serif; }

/* ===== opening: nine studio vases dealt like a fan of cards, each turning, the name drops in, then they tumble away */
.opening { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; align-content: center; gap: clamp(20px, 4vh, 48px); background: var(--ground, #ffd23f); overflow: hidden; transition: opacity .6s var(--ease); cursor: pointer; }
.opening.out { opacity: 0; pointer-events: none; }
.op-word { display: grid; justify-items: center; gap: 10px; text-align: center; }
.op-word b { font-family: var(--serif); font-weight: 400; font-size: clamp(72px, 13vw, 190px); line-height: .9; letter-spacing: -.02em; color: var(--ink); opacity: 0; transform: translateY(-30px) scale(.8); }
.op-word span { font-size: clamp(14px, 1.4vw, 18px); color: var(--ink-2); opacity: 0; }
.opening.in .op-word b { animation: opWord .9s cubic-bezier(.34, 1.56, .64, 1) .55s forwards; }
.opening.in .op-word span { animation: opFade .6s var(--ease) 1.15s forwards; }
@keyframes opWord { to { opacity: 1; transform: none; } }
@keyframes opFade { to { opacity: 1; } }
.op-fan { position: relative; width: 100vw; height: calc(var(--cw) * 1.25 + 40px); --cw: clamp(92px, 12.5vw, 176px); --gap: .82; }
.op-card { position: absolute; left: 50%; top: 0; width: var(--cw); aspect-ratio: 4 / 5; margin-left: calc(var(--cw) / -2); border-radius: calc(var(--cw) * .12); overflow: hidden; background: var(--g); box-shadow: 0 10px 24px rgba(60, 40, 0, .16); transform-origin: 50% 120%;
  --k: calc(var(--i) - 4); --x: calc(var(--k) * var(--cw) * var(--gap)); --r: calc(var(--k) * 5deg);
  transform: translate(var(--x), var(--y, 0)) rotate(var(--r)); opacity: 0; }
.op-card img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }
.opening.in .op-card { animation: opDeal .85s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i) * 70ms) forwards; }
@keyframes opDeal { from { opacity: 1; transform: translate(calc(var(--x) * .2), 110vh) rotate(calc(var(--r) * -3)); } to { opacity: 1; transform: translate(var(--x), var(--y, 0)) rotate(var(--r)); } }
.opening.away .op-card { animation: opAway .55s cubic-bezier(.55, 0, .75, .2) calc((8 - var(--i)) * 35ms) forwards; }
@keyframes opAway { from { opacity: 1; transform: translate(var(--x), var(--y, 0)) rotate(var(--r)); } to { opacity: 1; transform: translate(calc(var(--x) * 1.4), 120vh) rotate(calc(var(--r) * 4 + 20deg)); } }
.opening.away .op-word b { animation: opWordOut .45s var(--ease) forwards; opacity: 1; transform: none; }
.opening.away .op-word span { opacity: 0; transition: opacity .2s; }
@keyframes opWordOut { to { opacity: 0; transform: scale(1.12); } }
@media (max-width: 700px) { .op-fan { --cw: 30vw; --gap: .42; } }

/* Rolmes as outlines: the svg carries the look, the text stays for reading and copying */
.has-rolmes { white-space: nowrap; }
.has-rolmes .rolmes-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
svg.rolmes { display: inline-block; overflow: visible; }
.mark.has-rolmes { display: inline-flex; align-items: center; line-height: 1; }
/* pattern tiles are little vases: no box, they lift and wobble when you point at them, the chosen one stands on a soft spot */
#patterns .tp { position: relative; border-radius: 12px; transition: background-color .25s; }
#patterns .tp canvas { border-radius: 0; box-shadow: none !important; outline: 0 !important; background: none; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); transform-origin: 50% 92%; }
#patterns .tp:hover canvas { transform: translateY(-3px) rotate(-4deg); }
#patterns .tp:active canvas { transform: scale(.94); }
#patterns .tp[aria-pressed="true"] { background: color-mix(in srgb, var(--ink) 9%, transparent); }
#patterns .tp[aria-pressed="true"] canvas { transform: translateY(-2px) scale(1.06); animation: tileHop .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes tileHop { 0% { transform: scale(.8); } 60% { transform: translateY(-6px) scale(1.1); } }
html[data-ui="hand"] #patterns .tp[aria-pressed="true"]::after { inset: -4px; }
/* the fan sits inside the screen: smaller cards, a gentle tilt about each card's own centre */
.op-fan { --cw: clamp(84px, 10.4vw, 158px); --gap: .9; }
.op-card { transform-origin: 50% 50%; --r: calc(var(--k) * 3.2deg); }
@media (max-width: 700px) { .op-fan { --cw: 23vw; --gap: .4; } }
/* the outline editor: see-through body with today's pattern, a cm ruler, a ghost of where you started, a wobble when you let go */
#profile .body-tint { fill-opacity: .35; stroke: none; }
#profile .body-pat { opacity: .55; stroke: none; pointer-events: none; }
#profile .body-line { fill: none; stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; transform-box: fill-box; transform-origin: 50% 100%; }
#profile .body-line.boing { animation: profBoing .55s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes profBoing { 0% { transform: scale(1.06, .95); } 45% { transform: scale(.97, 1.03); } 100% { transform: none; } }
#profile .ghost { fill: none; stroke: var(--ink); stroke-opacity: .35; stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
#profile .tick { stroke: var(--ink); stroke-opacity: .25; stroke-width: 1; vector-effect: non-scaling-stroke; }
#profile .tick-n { font: 400 8px/1 var(--body); fill: var(--ink-2); text-anchor: end; }
#profile .knob .dot { transition: r .25s cubic-bezier(.34, 1.56, .64, 1), fill .2s; }
#profile .knob:hover .dot { r: 7; }
#profile .knob.drag .dot { r: 8; fill: var(--ink); }
#profile .tag { font: 500 10px/1 var(--body); fill: var(--ink); paint-order: stroke; stroke: var(--ground); stroke-width: 3px; }
#profile { user-select: none; -webkit-user-select: none; }
#profile .body-pat { opacity: .3; }
#profile .ghost { stroke-opacity: .55; stroke-width: 1.2; }
/* motion turned down: the same picture, just fading in and out */
.opening.calm .op-card, .opening.calm .op-word b, .opening.calm .op-word span { animation: opFade .5s ease forwards !important; transform: translate(var(--x), var(--y, 0)) rotate(var(--r)); }
.opening.calm .op-word b { transform: none; }
.shape { opacity: .62; }
.shape[aria-pressed="true"] { opacity: 1; }
.shape[aria-pressed="true"] svg { filter: drop-shadow(0 2px 2px rgba(0,0,0,.18)); }
#profile .body-tint { fill-opacity: .55; }
.stage-acts .save-now { font-weight: 600; }

/* the stage is just the vase: paper lives in Colours, saving by the shelf, the room in Take home, undo with the editor */
.stage-tools { display: none !important; }
.edit-acts { display: flex; justify-content: flex-end; gap: 16px; margin: 0 0 10px; }
.edit-acts .tlink { font-size: calc(12.5 * var(--u)); color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.edit-acts .tlink:hover:not(:disabled) { color: var(--ink); }
.edit-acts .tlink:disabled { opacity: .35; }
html.tablet .edit-acts .tlink { font-size: 14px; padding: 8px 0; }
@media (max-width: 700px) { .edit-acts { margin: 4px 0 6px; } .edit-acts .tlink { font-size: 13px; padding: 8px 0; } }
.nav-right .save-now { font-weight: 600; }

html.tablet .about .spec { display: none; }

/* ===== header: the name, then three things. The steps live with the controls they switch */
.nav-right #uiHand { display: none !important; }
.ui-toggle-foot { display: block !important; position: relative; margin: 28px auto 0; padding: 7px 14px; font-size: 13px; color: var(--ink-2); text-decoration: none; }
.ui-toggle-foot::before { content: ""; position: absolute; inset: 0; background: currentColor; -webkit-mask: url(hand/oval2.svg) center / 100% 100% no-repeat; mask: url(hand/oval2.svg) center / 100% 100% no-repeat; opacity: .5; pointer-events: none; }
.ui-toggle-foot::after { display: none !important; }
@media (min-width: 701px) {
  .rail > .step-tabs { position: sticky; top: 0; z-index: 2; grid-column: auto; justify-self: stretch; justify-content: flex-start; gap: calc(22 * var(--u)); margin: 0 0 calc(14 * var(--u)); padding: 4px 0 8px; background: none; }
  .rail > .step-tabs button[role=tab] { font-size: calc(14 * var(--u)); }
  html.tablet .rail > .step-tabs { background: var(--ground); padding-top: 10px; }
}
.about .edit-acts { justify-content: flex-start; margin: 14px 0 0; }
/* the shelf drawer */
.shelf-link { cursor: pointer; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(420px, 100vw); background: var(--ground); box-shadow: -18px 0 40px rgba(0,0,0,.12); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--ease); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: baseline; gap: 16px; padding: 22px 24px 14px; }
.drawer-head b { font-size: 34px; font-weight: 400; margin-right: auto; }
.drawer-head a, .drawer-x { font-size: 13px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair); }
.drawer-list { flex: 1; overflow-y: auto; padding: 4px 24px 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
.drawer-list button { display: grid; gap: 6px; text-align: left; }
.drawer-list img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; transition: translate .3s var(--ease); }
.drawer-list button:hover img { translate: 0 -3px; }
.drawer-list span { font-family: var(--serif); font-size: 18px; }
.drawer-empty { grid-column: 1 / -1; color: var(--ink-2); font-size: 14px; }
.toast.has-link { pointer-events: none; }
.toast.has-link.on { pointer-events: auto; }
@media (max-width: 700px) { .toast { bottom: calc(74px + env(safe-area-inset-bottom)); } }
.drawer { box-shadow: none; } .drawer.open { box-shadow: -18px 0 40px rgba(0,0,0,.12); }
@media (max-width: 700px) {
  .rail > .step-tabs { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; justify-self: stretch; grid-column: auto; display: flex; gap: 0; padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--ground) 96%, transparent); border-top: 1px solid var(--hair); z-index: 4; }
  .rail > .step-tabs button[role=tab] { flex: 1 1 0; text-align: center; font-size: 13px; }
}
/* the way on is a real button: full width, inked, the arrow nudges on hover */
.next-step { display: flex !important; justify-content: space-between; align-items: center; width: 100%; margin: calc(22 * var(--u)) 0 0 !important; padding: 0 22px !important; height: 48px; border-radius: 999px; background: var(--ink); color: var(--paper, #fff) !important; font-size: 15px !important; font-weight: 500; transition: transform .2s var(--ease), background-color .2s; }
.next-step:hover { transform: translateY(-1px); }
.next-step:active { transform: scale(.98); }
.next-step::after { font-size: 18px; }
/* the shelf in the header is a proper button: an outlined pill with the count inside */
.nav-right .shelf-link { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 15px; font-weight: 500; transition: background-color .2s, color .2s; }
.nav-right .shelf-link b { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--ink); color: var(--ground); font-size: 13px; font-weight: 600; }
.nav-right .shelf-link:hover, .nav-right .shelf-link[aria-expanded="true"] { background: var(--ink); color: var(--ground); }
.nav-right .shelf-link:hover b, .nav-right .shelf-link[aria-expanded="true"] b { background: var(--ground); color: var(--ink); }
@media (max-width: 700px) { .nav-right .shelf-link { height: 34px; padding: 0 4px 0 13px; font-size: 13px; gap: 7px; } .nav-right .shelf-link b { min-width: 24px; height: 24px; font-size: 12px; } }

/* header: the studio on the left, the name in the middle, your things on the right */
@media (min-width: 701px) {
  .nav > .nav-left { grid-column: 1 / 4; grid-row: 1; justify-self: start; font-size: calc(14 * var(--u)); color: var(--ink); text-decoration: none; }
  .nav > .nav-left:hover { text-decoration: underline; text-underline-offset: 4px; }
  .nav > .mark { grid-column: 5 / 9; grid-row: 1; justify-self: center; }
  .nav > .nav-right { grid-column: 9 / 13; grid-row: 1; }
}
@media (max-width: 700px) { .nav > .nav-left { display: none; } }

/* saving to the shelf is the main thing to do in Take home: first, and inked */
#p-take .take#save { background: var(--ink); color: var(--ground); border-radius: 18px; padding: 18px 20px; margin: 4px 0 10px; border-bottom: 0; transition: transform .2s var(--ease); }
#p-take .take#save em { color: color-mix(in srgb, var(--ground) 75%, transparent); }
#p-take .take#save .ic { width: 26px; height: 26px; stroke-width: 2; }
#p-take .take#save:hover { transform: translateY(-2px); }
#p-take .takes { border-top: 0; }

/* ===== Folio's squircles and glass for the shelf drawer: no drop shadows anywhere, a hairline rim instead */
.edge { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.edge path { fill: none; stroke: rgba(23, 19, 15, .14); stroke-width: 2; vector-effect: non-scaling-stroke; transition: stroke .3s var(--ease); }
[data-sq] { position: relative; overflow: hidden; }
.drawer, .drawer.open { box-shadow: none !important; }
.glass-panel { background: color-mix(in srgb, var(--ground) 62%, transparent); -webkit-backdrop-filter: blur(22px) saturate(1.9) brightness(1.02); backdrop-filter: blur(22px) saturate(1.9) brightness(1.02); }
.glass-panel::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 1px; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.25) 30%, rgba(23,19,15,.08) 70%, rgba(255,255,255,.5)); pointer-events: none; }
.glass-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 60% at 0% 0%, rgba(255,255,255,.22), rgba(255,255,255,0) 55%); }
.drawer-head, .drawer-list { position: relative; z-index: 1; }
.drawer-list { gap: 18px 14px; }
.drawer-list button { gap: 8px; }
.drawer-list .dw-pic { aspect-ratio: 4 / 5; }
.drawer-list .dw-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; transition: transform .5s var(--ease); }
.drawer-list button:hover .dw-pic img { transform: translateY(-3px); }
.drawer-list button:hover .edge path { stroke: rgba(23, 19, 15, .4); }
.drawer-list span { font-size: 17px; }

/* Next: a button sized to its words, set to the right */
.next-step { width: auto !important; margin: calc(22 * var(--u)) 0 0 auto !important; padding: 0 22px 0 24px !important; gap: 16px; }
/* the centred logo is for the maker only; shelf and studio keep their own header */
@media (min-width: 701px) { body.shelf-page .nav > .mark { grid-column: 1 / 3; justify-self: start; } }
/* the studio link: a small turning vase beside the words */
.nav-left { display: inline-flex; align-items: center; gap: 10px; }
.nl-spin { width: 34px; height: 42px; object-fit: cover; border-radius: 9px; background: #e9e3d8; }
/* the corner bouquet */
.bouquet { position: fixed; left: var(--margin); bottom: calc(26 * var(--u)); z-index: 2; display: grid; gap: 6px; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.bouquet.on { opacity: 1; transform: none; }
.bouquet canvas { border-radius: 18px; }
.bouquet span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 700px) { .bouquet { display: none; } }
html.tablet .bouquet { display: none; }
html.room-on .bouquet { display: none; }
@media (max-height: 760px) { .bouquet canvas { width: 120px !important; height: 150px !important; } }
/* drawer items: the vase, and a clear way to add flowers */
.dw-item { display: grid; gap: 8px; }
.dw-open { display: grid; gap: 8px; text-align: left; }
.dw-flowers { justify-self: start; font-size: 13px; padding: 7px 14px; border-radius: 999px; background: var(--ink); color: var(--ground); text-decoration: none; }
.dw-flowers:hover { opacity: .85; }
.drawer-go { padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); text-decoration: none !important; font-size: 13px; }

/* shape icons: plain silhouettes again */
.shape { opacity: .32 !important; color: var(--ink); }
.shape[aria-pressed="true"] { opacity: 1 !important; }
.shape[aria-pressed="true"] svg { filter: none !important; }
/* under the vase: surprise and focus */
.vase-acts { position: fixed; left: 50%; bottom: calc(28 * var(--u)); transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.va-btn { height: 40px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 14px; color: var(--ink); background: color-mix(in srgb, var(--ground) 40%, transparent); transition: background-color .2s, color .2s; }
.va-btn:hover, .va-btn[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
@media (max-width: 700px) { .vase-acts { position: absolute; top: calc(var(--navh) + 60svh - 56px); bottom: auto; } .va-btn { height: 34px; font-size: 13px; padding: 0 14px; } }
html.tablet .vase-acts { left: calc((100vw - var(--panel)) / 2); bottom: 20px; }
@media (orientation: portrait) { html.tablet .vase-acts { left: 50%; bottom: auto; top: calc(var(--navh) + var(--stageh) - 56px); } }
html.room-on .vase-acts { display: none; }
/* focus mode: only the vase, the name and the way back */
html.focus .about, html.focus .rail, html.focus .bouquet, html.focus .nav-right, html.focus .nav-left { opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
html.focus .vase-acts #surprise { display: none; }
.about, .rail, .bouquet, .nav-right, .nav-left { transition: opacity .4s var(--ease); }

/* previous / next: plain words at the foot of each step */
.step-links { display: flex; justify-content: space-between; margin-top: calc(24 * var(--u)); }
.step-link { font-size: calc(13.5 * var(--u)); color: var(--ink-2); padding: 6px 0; }
.step-link:hover { color: var(--ink); }
.step-link.next { margin-left: auto; color: var(--ink); }
@media (max-width: 700px) { .step-link { font-size: 14px; } }
html.tablet .step-link { font-size: 15px; padding: 10px 0; }
/* the corner bouquet stands on the page itself, no frame */
.bouquet canvas { border-radius: 0; background: none; }

/* one margin for all four corners: the header sits as far from the top as everything sits from the sides and the bottom */
@media (min-width: 701px) {
  :root { --navh: calc(var(--margin) * 2 + 40px); }
  .nav { height: var(--navh); padding-top: 0; align-items: center; }
  .nav > * { align-self: center; }
  .vase-acts { bottom: var(--margin); }
  .bouquet { left: var(--margin); bottom: var(--margin); }
  .rail { padding-bottom: 0; }
}
/* the drawer: a calm sheet, title and close on one line, small links */
.glass-panel { background: var(--ground) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-left: 1px solid rgba(23, 19, 15, .12); }
.glass-panel::before, .glass-panel::after { display: none; }
.drawer-head { align-items: center; padding: var(--margin) 28px 18px; }
.drawer-head b { font-size: 32px; }
.drawer-list { padding: 0 28px 20px; gap: 26px 16px; }
.dw-item { gap: 6px; }
.dw-item .dw-open span { font-size: 18px; }
.dw-flowers { background: none !important; color: var(--ink) !important; padding: 0 !important; font-size: 13px; border-radius: 0; }
.dw-flowers:hover { text-decoration: underline; text-underline-offset: 3px; }
.drawer-foot { padding: 16px 28px var(--margin); font-size: 14px; color: var(--ink); text-decoration: none; border-top: 1px solid rgba(23, 19, 15, .12); }
.drawer-foot:hover { text-decoration: underline; text-underline-offset: 3px; }

/* undo, redo and reset sit with the controls they undo: top right of the panel */
.rail > .edit-acts { justify-content: flex-end; margin: 0 0 4px; }
@media (min-width: 701px) { .rail > .edit-acts + .step-tabs { margin-top: 0; } }
/* drawer pictures: no flowers here, so a square crop around the vase */
.drawer-list .dw-pic { aspect-ratio: 1 / 1; }
.drawer-list .dw-pic img { object-fit: cover; object-position: 50% 78%; transform: scale(1.25); transform-origin: 50% 75%; }
.drawer-list button:hover .dw-pic img { transform: scale(1.25) translateY(-3px); }
/* the right edge matches the left */
.nav-right { margin-right: 0; padding-right: 0; justify-self: end; }
.nav-right .shelf-link { margin-right: 0 !important; }

/* ===== paint, in order of what matters: the pattern (by kind), the colours, then what it is made of */
#p-paint .pp-h { font: 500 11px/1 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); margin: calc(22 * var(--u)) 0 calc(10 * var(--u)); }
#p-paint .pp-h:first-child { margin-top: 4px; }
.pat-cats { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.pat-cats button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent); transition: background-color .2s, color .2s; }
.pat-cats button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.pat-cats button[aria-selected="true"] { background: var(--ink); color: var(--ground); box-shadow: none; }
#patterns { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; }
#patterns .tp[hidden] { display: none !important; }
#patterns .tp { padding: 4px; border-radius: 14px; }
#patterns .tp canvas { width: 100%; }
#p-paint .palettes { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 8px !important; margin-top: 0 !important; }
#p-paint .palettes > * { height: 30px !important; }
.own-cols { margin-top: 12px; }
.own-cols summary { cursor: pointer; font-size: 13px; color: var(--ink); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.own-cols summary::-webkit-details-marker { display: none; }
.own-cols summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink); font-size: 12px; transition: rotate .3s var(--ease); }
.own-cols[open] summary::before { rotate: 45deg; }
.own-cols .dots5 { margin-top: 12px !important; }
#p-paint .mats { margin-top: 0 !important; }
#p-paint .mats .mat span { font-size: 11px; }
#p-paint .row-seg { margin-top: 10px; }
@media (max-width: 700px) { #patterns { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
html.tablet #patterns { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

/* undo and redo live with the vase they change: round icons at the start of the row under it */
.vase-acts { align-items: center; }
.va-ur { display: inline-flex; gap: 6px; margin-right: 6px; }
.va-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); transition: background-color .2s, color .2s, opacity .2s; }
.va-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.va-ic:hover:not(:disabled) { background: var(--ink); color: var(--ground); }
.va-ic:disabled { opacity: .3; }
.va-text { font-size: 13px; color: var(--ink-2); margin-left: 6px; }
.va-text:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
html.focus .va-ur, html.focus .va-text { display: none; }
@media (max-width: 700px) { .va-ic { width: 34px; height: 34px; } .va-text { display: none; } }

.nav-left { gap: 16px !important; }
/* surprise is the one inked action; focus is a quiet round toggle like undo and redo */
.va-main { display: inline-flex; align-items: center; gap: 8px; background: var(--ink) !important; color: var(--ground) !important; box-shadow: none !important; padding: 0 20px 0 16px; }
.va-main svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.va-main svg circle { fill: currentColor; stroke: none; }
.va-main:hover { opacity: .88; }
.va-focus { margin-left: 4px; }
.va-focus[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
/* focus mode keeps every tool: it only clears the name, the facts, the corner bouquet and the header links away */
html.focus .rail, html.focus .nav-right { opacity: 1 !important; pointer-events: auto !important; }
html.focus .vase-acts #surprise { display: inline-flex !important; }
html.focus .va-ur, html.focus .va-text { display: inline-flex !important; }

/* paint fits the panel: five patterns a row on desktop, tighter on short screens */
@media (min-width: 701px) { #patterns { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 6px !important; } #patterns .tp { padding: 2px; } }
@media (min-width: 701px) and (max-height: 800px) { #p-paint .pp-h { margin: 12px 0 7px; } .pat-cats { margin-bottom: 8px; } .pat-cats button { height: 28px; } #p-paint .palettes > * { height: 24px !important; } #p-paint .mats .mat i { width: 24px; height: 24px; } #patterns { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; } }

/* paint groups are set apart by space alone */
.pat-cats { margin-top: 2px; }
#p-paint .palettes { margin-top: calc(22 * var(--u)) !important; }
#p-paint .mats { margin-top: calc(22 * var(--u)) !important; }
/* focus: the vase moves into the space the left column gave up, centred between the left edge and the panel */
@media (min-width: 701px) {
}
/* shapes: all eleven in one tight row */
@media (min-width: 701px) { .shapes { grid-template-columns: repeat(11, minmax(0, 1fr)) !important; gap: 2px !important; row-gap: 0 !important; } .shapes .shape svg { height: calc(40 * var(--u)) !important; } }
html.tablet .shapes { grid-template-columns: repeat(11, minmax(0, 1fr)) !important; gap: 2px !important; }
/* shapes: back to two rows, the rows close together */
@media (min-width: 701px) { .shapes { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 0 !important; row-gap: 2px !important; } .shapes .shape { aspect-ratio: auto; padding: 0; } .shapes .shape svg { height: calc(46 * var(--u)) !important; } }
html.tablet .shapes { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; row-gap: 2px !important; }

/* the panel starts at the top: tabs stay put whichever step is open */
@media (min-width: 701px) { html:not(.tablet) .rail { justify-content: flex-start !important; align-self: start; margin-top: calc(var(--margin) * .5); } }
/* step links: the way on is a clear outlined pill, the way back stays a word */
.step-link.next { padding: 9px 18px !important; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 14px; font-weight: 500; transition: background-color .2s, color .2s; }
.step-link.next:hover { background: var(--ink); color: var(--ground); }
.step-links { align-items: center; }
/* drawer footer: one even margin all round, a full-width outlined button */
.drawer-foot { margin: 0 28px var(--margin); padding: 13px 0 !important; border-top: 0 !important; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); text-align: center; font-weight: 500; }
.drawer-foot:hover { background: var(--ink); color: var(--ground); text-decoration: none !important; }

/* the corner bouquet sits low in the corner, smaller (the picture has its own margin, so it is pulled out to meet the page margin) */
@media (min-width: 701px) { .bouquet { left: calc(var(--margin) - 22px) !important; bottom: calc(var(--margin) - 18px) !important; } }
#resetShape { display: none !important; }

/* save under the vase too: outlined, beside the inked surprise */
.va-save { display: inline-flex; align-items: center; gap: 7px; padding: 0 18px 0 14px; }
.va-save svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 700px) { .va-save { padding: 0 12px 0 10px; } }
.print-row { padding: 4px 0 14px; border-bottom: 1px solid var(--hair); }
.print-row output { min-width: 84px; }


/* the toast comes down from the top, clear of the buttons under the vase */
.toast { top: calc(var(--navh) + 8px); bottom: auto !important; transform: translate(-50%, -12px); }
.toast.on { transform: translate(-50%, 0); }
/* the bloom on save */
.save-bloom { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); z-index: 1; }
.save-bloom.on { opacity: 1; }
.save-bloom.on.out { opacity: 0; }

/* materials: a quiet row of small spheres, no names; the chosen one is simply whole, the rest are faded */
#p-paint .mats { display: flex !important; gap: 10px; align-items: center; }
#p-paint .mats .mat { display: block; padding: 0; opacity: .45; transition: opacity .2s, transform .3s var(--ease); }
#p-paint .mats .mat span { display: none !important; }
#p-paint .mats .mat i { width: 22px !important; height: 22px !important; box-shadow: none !important; outline: 0 !important; }
#p-paint .mats .mat:hover { opacity: .8; transform: translateY(-2px); }
#p-paint .mats .mat[aria-pressed="true"] { opacity: 1; transform: scale(1.18); }
#p-paint .mats .mat[aria-pressed="true"] i { box-shadow: none !important; }
#p-paint .mats .mat[aria-pressed="true"] i::after, html[data-ui="hand"] #p-paint .mats .mat[aria-pressed="true"] i::after { display: none !important; }


.save-bloom { display: none !important; }
/* little flowers popping out of Save */
.pop-flower { position: fixed; z-index: 60; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; animation: popF 1.2s cubic-bezier(.22, 1, .36, 1) forwards; }
.pop-flower svg { width: 100%; height: 100%; display: block; }
@keyframes popF { 0% { transform: translate(0, 0) scale(0) rotate(0); opacity: 1; } 55% { transform: translate(var(--x), var(--y)) scale(var(--s)) rotate(var(--r)); opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 40px)) scale(calc(var(--s) * .6)) rotate(calc(var(--r) * 1.4)); opacity: 0; } }
/* the toast pops up above the vase buttons: a bright sticker that bounces in and wiggles */
.toast { top: auto !important; bottom: calc(var(--margin) + 58px) !important; left: 50%; padding: 12px 20px !important; border-radius: 999px; background: #ff5d8f !important; color: #fff !important; font-weight: 500; transform: translate(-50%, 20px) scale(.6) rotate(-4deg) !important; opacity: 0; transition: none !important; }
.toast.on { animation: toastPop .6s cubic-bezier(.34, 1.56, .64, 1) forwards; }
@keyframes toastPop { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.6) rotate(-6deg); } 60% { opacity: 1; transform: translate(-50%, -4px) scale(1.06) rotate(2deg); } 100% { opacity: 1; transform: translate(-50%, 0) scale(1) rotate(-1.5deg); } }
.toast a { color: #fff !important; font-weight: 600; }
html.tablet .toast { left: calc((100vw - var(--panel)) / 2); }
@media (max-width: 700px) { .toast { bottom: auto !important; top: calc(var(--navh) + 60svh - 110px) !important; } }

/* the corner bouquet is a way to the shelf: point at it and it lifts and says so; click saves */
.bouquet { pointer-events: auto !important; cursor: pointer; }
.bouquet canvas { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); transform-origin: 50% 90%; }
.bouquet:hover canvas, .bouquet:focus-visible canvas { transform: translateY(-6px) rotate(-3deg) scale(1.04); }
.bq-tip { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, 6px); white-space: nowrap; padding: 7px 12px; border-radius: 999px; background: var(--ink); color: var(--ground); font-size: 12.5px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.bouquet:hover .bq-tip, .bouquet:focus-visible .bq-tip { opacity: 1; transform: translate(-50%, -4px); }
.nav-right #saveNow { display: none !important; }

/* screensaver: only the vase, its flowers and the paper; everything else fades away */
html.saver .nav, html.saver .about, html.saver .rail, html.saver .vase-acts, html.saver .bouquet, html.saver .toast { opacity: 0 !important; pointer-events: none !important; transition: opacity .8s var(--ease); }
html.saver .stage { right: 0 !important; left: 0 !important; transition: none; }
html.saver .save-bloom { display: block !important; }
html.saver body { cursor: none; }
html.saver .stage::after { content: "Press any key"; position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: 12px; letter-spacing: .08em; color: var(--ink-2); opacity: .5; animation: saverHint 4s ease 1; animation-fill-mode: forwards; }
@keyframes saverHint { 0%, 70% { opacity: .5; } 100% { opacity: 0; } }
body { transition: background-color 1.2s var(--ease); }
/* the drawer holds three a row, names smaller */
.drawer-list { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 18px 12px !important; }
.dw-item .dw-open span { font-size: 14px !important; }
.dw-flowers { font-size: 12px !important; }
/* name, sentence and facts: one measure, the sentence set just under the name and as wide as the facts */
@media (min-width: 701px) {
  .about h1 { margin-bottom: 0; }
  .about .desc { max-width: none; font-size: calc(15 * var(--u)); line-height: 1.5; margin: 0; text-wrap: pretty; }
  .about { gap: calc(16 * var(--u)) !important; }
}

/* the screensaver, named */
.va-saver { display: inline-flex; align-items: center; gap: 7px; padding: 0 18px 0 14px; }
.va-saver svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
@media (max-width: 700px) { .va-saver { padding: 0 12px 0 10px; } }
@media (max-width: 700px) {
  .vase-acts { gap: 6px; }
  .va-saver, .va-save { width: 34px; padding: 0 !important; justify-content: center; font-size: 0; gap: 0; }
  .va-saver svg, .va-save svg { width: 16px; height: 16px; }
  #focusBtn { display: none; }
}

.dw-views { display: inline-flex; gap: 6px; margin-right: 12px; }
.dw-views a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.dw-views a svg { width: 18px; height: 18px; }
.dw-views a:first-child svg circle { fill: #ff5d8f; }
.dw-views a:hover { background: var(--ink); color: var(--ground); }

/* screensaver choices, a small sheet above the buttons under the vase */
.saver-sheet { position: fixed; left: 50%; bottom: calc(var(--margin) + 58px); transform: translateX(-50%); z-index: 6; display: grid; gap: 10px; padding: 16px 18px; border-radius: 22px; background: var(--ground); box-shadow: inset 0 0 0 1.5px var(--ink); min-width: 360px; }
.saver-sheet[hidden] { display: none; }
.ss-row { display: flex; align-items: center; gap: 6px; }
.ss-row span { width: 62px; font-size: 12px; color: var(--ink-2); }
.ss-row button { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent); }
.ss-row button[aria-pressed="true"] { background: var(--ink); color: var(--ground); box-shadow: none; }
.ss-go { display: flex; gap: 8px; margin-top: 4px; }
.ss-go button { flex: 1; height: 38px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1.5px var(--ink); }
.ss-go #saverPlay { background: var(--ink); color: var(--ground); }
html.tablet .saver-sheet { left: calc((100vw - var(--panel)) / 2); }
@media (max-width: 700px) { .saver-sheet { min-width: 0; width: calc(100vw - 32px); bottom: auto; top: calc(var(--navh) + 60svh - 290px); } }

/* under the vase: one inked action (Surprise me); everything else a round icon of the same size */
#saveBar, #saverBtn { width: 40px; height: 40px; padding: 0 !important; border-radius: 50%; display: grid !important; place-items: center; font-size: 0 !important; gap: 0 !important; background: none; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
#saveBar svg, #saverBtn svg { width: 18px !important; height: 18px !important; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#saveBar:hover, #saverBtn:hover, #saverBtn[aria-expanded="true"] { background: var(--ink); color: var(--ground); }
.vase-acts { gap: 8px !important; }
.va-ur { margin-right: 8px !important; }
.vase-acts #surprise { margin-right: 8px; }
@media (max-width: 700px) { #saveBar, #saverBtn { width: 34px; height: 34px; } }
/* take home: a calm list. Saving is the one filled card; the rest are single lines with their icon */
#p-take .take { padding: 12px 0 !important; align-items: center; }
#p-take .take b { font-size: calc(17 * var(--u)) !important; line-height: 1.2; }
#p-take .take em { font-size: 12px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
#p-take .take span { min-width: 0; }
#p-take .take#save { padding: 16px 18px !important; border-radius: 16px; }
#p-take .take#save b { font-size: calc(20 * var(--u)) !important; }
#p-take .print-row { padding: 0 0 12px !important; grid-template-columns: 96px 1fr 70px !important; font-size: 12.5px; }
#p-take .print-row output { min-width: 0 !important; white-space: nowrap; font-size: 12.5px; }

/* handles: a grid of little side views, the vase in faint ink and the handle in solid ink; name under each */
.handles-block { margin-top: calc(14 * var(--u)); }
.hb-label { display: block; font-size: calc(13 * var(--u)); color: var(--ink-2); margin-bottom: 6px; }
.handle-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px 4px; }
.handle-grid button { display: grid; justify-items: center; gap: 1px; padding: 3px 0 4px; border-radius: 10px; color: var(--ink); }
.handle-grid svg { width: 100%; height: auto; max-height: 36px; overflow: visible; }
.handle-grid .hb { fill: currentColor; opacity: .16; }
.handle-grid .hh path, .handle-grid .hh circle:not(.hf) { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.handle-grid .hh .hf { fill: currentColor; }
.handle-grid .hx { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; opacity: .5; }
.handle-grid span { font-size: 10px; line-height: 1.1; color: var(--ink-2); white-space: nowrap; }
.handle-grid button:hover { background: color-mix(in srgb, var(--ink) 8%, var(--ground)); }
.handle-grid button[aria-checked="true"] { background: var(--ink); color: var(--ground); }
.handle-grid button[aria-checked="true"] span { color: var(--ground); }
.handle-grid button[aria-checked="true"] .hb { opacity: .28; }
@media (max-width: 700px) { .handle-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .handle-grid span { font-size: 10.5px; } }
html.tablet .handle-grid span { font-size: 11px; }

.handle-grid { gap: 4px 4px; }
.handle-grid button { padding: 5px 0 5px; }
.handle-grid svg { max-height: 44px; }
.handle-grid .hb { opacity: .22; }

/* focus, calmly: the name, words and facts slide away to the left, the corner bouquet stays, nothing else moves */
.about { transition: opacity .5s var(--ease), transform .6s var(--ease) !important; }
html.focus .about { opacity: 0 !important; transform: translateX(-24px); pointer-events: none; }
html.focus .bouquet, html.focus .nav-left { opacity: 1 !important; pointer-events: auto !important; }
.nav > .mark { transition: opacity .35s var(--ease); }
.nav > .mark.swap { opacity: 0; }
/* screensaver choices: pictures you can read at a glance, and the vase behind plays what you pick */
.ss-row button { display: inline-flex; align-items: center; gap: 6px; }
.ss-row button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ss-row button svg .f { fill: currentColor; stroke: none; }
.saver-sheet { opacity: 1 !important; pointer-events: auto !important; }
html.saver .saver-sheet:not([hidden]) { display: grid !important; }
@media (min-width: 701px) and (max-height: 760px) { .handle-grid svg { max-height: 32px; } .handle-grid button { padding: 2px 0 3px; } .handles-block { margin-top: 8px; } #p-shape #profile { height: 150px !important; max-height: 150px !important; } }

/* drawer foot: the way to the shelf, and beside it the two ways to see it */
.drawer-foot-row { display: flex; gap: 8px; align-items: center; margin: 0 28px var(--margin); position: relative; z-index: 1; }
.drawer-foot-row .drawer-foot { flex: 1; margin: 0 !important; }
.dw-view { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); transition: background-color .2s, transform .3s cubic-bezier(.34,1.56,.64,1); }
.dw-view svg { width: 28px; height: 28px; }
.dw-view:hover { background: color-mix(in srgb, #fff 45%, transparent); transform: translateY(-2px) rotate(-4deg); }

/* ===== one header on every page: the three pages as a pill switch on the left, the name in the middle, the page's own thing on the right */
.pages { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); justify-self: start; align-self: center; }
.pages a { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2); text-decoration: none; transition: background-color .25s var(--ease), color .25s var(--ease); }
.pages a:hover { color: var(--ink); }
.pages a[aria-current="page"] { background: var(--ink); color: var(--ground); }
.pg-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--ink) 14%, transparent); color: inherit; }
.pg-count:empty { display: none; }
.pages a[aria-current="page"] .pg-count { background: color-mix(in srgb, var(--ground) 25%, transparent); }
@media (min-width: 701px) { .nav > .pages { grid-column: 1 / 5; grid-row: 1; } }
@media (max-width: 700px) { .pages a { height: 30px; padding: 0 11px; font-size: 13px; } .pg-count { display: none; } }
/* the drawer button: the shelf drawn small, with your count */
.nav-right .shelf-link { gap: 8px !important; padding: 0 6px 0 12px !important; }
.nav-right .shelf-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* phone: the maker header is the name and the shelf; the page switch lives on the shelf and studio pages; surprise is an icon */
@media (max-width: 700px) {
  body:not(.shelf-page) .nav > .pages { display: none; }
  body.shelf-page .nav { grid-template-rows: auto auto; height: auto; padding-top: 12px; padding-bottom: 8px; row-gap: 8px; }
  body.shelf-page .nav > .pages { grid-column: 1 / 13; grid-row: 2; justify-self: start; }
  .vase-acts #surprise { width: 34px; height: 34px; padding: 0 !important; justify-content: center; font-size: 0 !important; gap: 0 !important; border-radius: 50%; margin-right: 4px; }
  .vase-acts #surprise svg { width: 18px; height: 18px; }
  .toast { top: calc(var(--navh) + 6px) !important; bottom: auto !important; font-size: 13px; }
}
/* handles, in the same hand as the shape list: silhouettes only, no names, no box; the chosen one is solid ink, the rest faint */
.handle-grid { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; gap: 6px 2px !important; }
.handle-grid button { padding: 0 !important; border-radius: 0 !important; background: none !important; color: var(--ink) !important; opacity: .32; transition: opacity .2s; }
.handle-grid button:hover { opacity: .6; }
.handle-grid button[aria-checked="true"] { opacity: 1; }
.handle-grid span { display: none !important; }
.handle-grid svg { max-height: 46px !important; }
.handle-grid .hb, .handle-grid button[aria-checked="true"] .hb { fill: currentColor; opacity: 1 !important; }
.handle-grid .hh path, .handle-grid .hh circle:not(.hf) { stroke: currentColor; }
.handle-grid .hx { opacity: 1; }
@media (max-width: 700px) { .handle-grid { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; } }
@media (min-width: 701px) and (max-height: 760px) { .handle-grid svg { max-height: 34px !important; } }

/* header back to: From the studio left, Pottle centre, Save and the Shelf pill (word + count) right */
.nav .pages { display: none !important; }
.nav > .nav-left { display: inline-flex !important; opacity: 1 !important; }
.nav-right .save-now { display: inline-block !important; margin-right: 18px; }
.handle-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 8px 6px !important; }
/* ===== the row under the vase, tidied: [undo redo] · Surprise me (ink) · Save (outlined, with its word) · [screensaver focus]; every icon centred in its circle */
.vase-acts { display: flex !important; align-items: center; gap: 10px !important; }
.va-ur { display: inline-flex !important; gap: 8px; margin-right: 8px; }
.va-ic, .va-saver { width: 44px !important; height: 44px !important; padding: 0 !important; border-radius: 50% !important; display: grid !important; place-items: center !important; font-size: 0 !important; gap: 0 !important; box-shadow: inset 0 0 0 1.5px var(--ink) !important; background: transparent; color: var(--ink) !important; }
.va-ic svg, .va-saver svg { display: block; width: 18px !important; height: 18px !important; margin: 0 !important; }
.va-btn.va-main, .va-btn.va-save { height: 44px !important; padding: 0 20px 0 16px !important; font-size: 15px !important; display: inline-flex !important; align-items: center; gap: 8px !important; width: auto !important; }
.va-btn.va-save { box-shadow: inset 0 0 0 1.5px var(--ink) !important; background: transparent !important; color: var(--ink) !important; }
.va-btn.va-save svg { width: 16px !important; height: 16px !important; }
.va-saver { margin-left: 8px; }
.va-ic:disabled { opacity: .3; }
@media (hover: hover) { .va-ic:hover:not(:disabled), .va-saver:hover, .va-btn.va-save:hover { background: var(--ink) !important; color: var(--ground) !important; } }
@media (max-width: 700px) { .va-ic, .va-saver { width: 36px !important; height: 36px !important; } .va-btn.va-main, .va-btn.va-save { height: 36px !important; font-size: 13px !important; padding: 0 12px 0 10px !important; } .vase-acts { gap: 6px !important; } .va-ur { margin-right: 2px; gap: 4px; } .va-saver { margin-left: 2px; } }
/* the header keeps its Save word next to the Shelf pill */
.nav-right #saveNow { display: inline-block !important; margin-right: 18px; }
@media (max-width: 700px) { .nav-right #saveNow { display: none !important; } }

/* save and screensaver say what they are */
.va-btn.va-saver { width: auto !important; border-radius: 999px !important; padding: 0 18px 0 14px !important; display: inline-flex !important; gap: 8px !important; font-size: 15px !important; }
@media (max-width: 700px) { .va-btn.va-saver { font-size: 13px !important; padding: 0 12px 0 10px !important; } }
/* the save note: a plain ink pill that rises a little above the row and fades; no tilt, no pink */
.pop-flower { display: none !important; }
.toast, .toast.on { background: var(--ink) !important; color: var(--ground) !important; font-weight: 400; padding: 11px 18px !important; transform: translate(-50%, 0) !important; animation: none !important; transition: opacity .3s var(--ease), translate .4s var(--ease) !important; translate: 0 8px; opacity: 0; }
.toast.on { opacity: 1; translate: 0 0; }
.toast a { color: var(--ground) !important; font-weight: 500; }

/* screensaver: its choices float over it when the mouse moves */
html.saver .saver-sheet:not([hidden]) { z-index: 70; bottom: var(--margin) !important; transition: opacity .3s var(--ease); }
html.saver.ss-live body { cursor: default; }
html.saver .stage::after { content: "Move the mouse for options · any key to leave" !important; }
html.saver.ss-live .stage::after { opacity: 0 !important; }
.nav-right #saveNow { display: none !important; }
/* the studio link is just its words */
/* (the studio link keeps its little turning vase) */
/* focus: the vase glides (the picture moves, nothing is resized) to the middle of the space the left column gave up */
@media (min-width: 701px) {
  html:not(.tablet) #gl { transition: transform .9s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
  html.focus:not(.tablet):not(.saver) #gl { transform: translateX(calc((var(--margin) - 25vw) / 2 - 2vw)); }
}
/* the row under the vase, final word (ids win over earlier class rules) */
.vase-acts #saveBar, .vase-acts #saverBtn { width: auto !important; min-width: 0 !important; height: 44px !important; border-radius: 999px !important; padding: 0 18px 0 14px !important; display: inline-flex !important; align-items: center !important; gap: 8px !important; font-size: 15px !important; line-height: 1 !important; white-space: nowrap; box-shadow: inset 0 0 0 1.5px var(--ink) !important; background: transparent !important; color: var(--ink) !important; }
.vase-acts #saveBar svg, .vase-acts #saverBtn svg { width: 16px !important; height: 16px !important; flex: none; }
@media (hover: hover) { .vase-acts #saveBar:hover, .vase-acts #saverBtn:hover { background: var(--ink) !important; color: var(--ground) !important; } }
@media (max-width: 700px) { .vase-acts #saveBar, .vase-acts #saverBtn { height: 36px !important; font-size: 0 !important; padding: 0 !important; width: 36px !important; justify-content: center; gap: 0 !important; } }
/* drawer view buttons drawn in the same plain line as every other icon */
.dw-view svg, .dw-view svg * { fill: none !important; stroke: currentColor !important; stroke-width: 1.6; }
/* the drawer foot: one clear button; the two view icons go (the shelf page has its own Cards / Bookcase switch) */
.drawer-foot-row .dw-view, .dw-views { display: none !important; }
/* every button label in the same weight: a little heavier than body text */
.drawer-foot, .va-btn, .step-link.next, .flower-btn, .shelf-link, .view-seg button, .tile-acts .act-main, .pat-cats button { font-weight: 500 !important; }
.shelf-nav .tabs { display: flex !important; }

/* ===== the row under the vase: four round icons around one inked pill, all the same height, evenly spaced
   [undo] [redo]  Surprise me  [save] [screensaver] [focus] */
.vase-acts { gap: 10px !important; }
.va-ur { margin-right: 0 !important; gap: 10px !important; }
.va-saver { margin-left: 0 !important; }
.vase-acts #saveBar, .vase-acts #saverBtn { width: 44px !important; height: 44px !important; padding: 0 !important; border-radius: 50% !important; display: grid !important; place-items: center !important; font-size: 0 !important; gap: 0 !important; }
.vase-acts #saveBar svg, .vase-acts #saverBtn svg { width: 18px !important; height: 18px !important; }
.vase-acts #surprise { margin: 0 6px; }
@media (max-width: 700px) { .vase-acts #saveBar, .vase-acts #saverBtn { width: 36px !important; height: 36px !important; } .vase-acts #surprise { margin: 0 2px; } }
/* focus: the vase stays where it is, centred with the logo and the row; the studio link steps away with the rest */
html.focus:not(.tablet):not(.saver) #gl { transform: none !important; }
html.focus .nav > .nav-left { opacity: 0 !important; pointer-events: none !important; transition: opacity .4s var(--ease); }
.nav > .mark.swap { opacity: 1 !important; }
#ringRow[hidden] { display: none !important; }
.vase-acts .va-focus { margin-left: 0 !important; }

/* screensaver sliders: two columns of small labelled sliders under the choices */
.ss-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.ss-sl { display: grid; grid-template-columns: 86px 1fr 74px; align-items: center; gap: 8px; font-size: 13px; }
.ss-sl span { color: var(--ink-2); }
.ss-sl output { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 700px) { .ss-sliders { grid-template-columns: 1fr; } }
/* soft floor: the paper darkens a little toward the bottom, like a table under a lamp */
html.saver.ss-floor .stage { background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--ink) 9%, transparent)); }

/* handles as four little side views, in the same hand as the shape list */
.handle-grid.hg4 { grid-template-columns: repeat(4, 52px) !important; gap: 4px 10px !important; justify-content: start; }
.handle-grid.hg4 svg { max-height: 40px !important; }
.row-seg .handle-grid.hg4 { margin: 0; }
.handle-grid.hg4 { grid-template-columns: repeat(4, 60px) !important; } .handle-grid.hg4 svg { max-height: 50px !important; }

/* surface chips: five small lit spheres; the chosen one is ringed */
.sf-chips { display: flex; gap: 8px; }
.sf-chips button { width: 30px; height: 30px; border-radius: 50%; padding: 0; display: grid; place-items: center; }
.sf-chips svg { width: 26px; height: 26px; display: block; }
.sf-chips button[aria-checked="true"] { box-shadow: 0 0 0 1.5px var(--ink); }

/* focus: one glide for the vase, the logo and the row (the stage itself stays put, so nothing re-renders mid-move) */
#gl, .vase-acts, .nav > .mark { translate: var(--fx, 0px) 0; transition: translate .6s var(--ease); }
html.saver #gl, html.saver .vase-acts { translate: none; }
/* the pressed focus button keeps its icon visible on the ink fill */
.vase-acts .va-focus[aria-pressed="true"] { background: var(--ink) !important; color: var(--ground) !important; }

/* ring size is stepped by clicking Ring again; no row of its own */
#ringRow { display: none !important; }

/* ===== the first view */
.fv { position: fixed; inset: 0; z-index: 80; overflow: hidden; cursor: pointer; background: #1a1612; }
.fv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; user-select: none; }
.fv img.on { opacity: 1; }
.fv-beat { position: absolute; left: 50%; top: clamp(18px, 3.4vh, 34px); transform: translateX(-50%); display: flex; gap: 6px; }
.fv-beat i { width: 22px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.4); }
.fv-beat i.on { background: #fff; }
.fv-mark { position: absolute; left: clamp(20px, 4vw, 56px); bottom: clamp(20px, 5vh, 56px); font-size: clamp(64px, 10vw, 150px); line-height: 1; color: #17130f; opacity: 0; transform: translateY(24px); transition: transform 1.1s cubic-bezier(.16,1,.3,1), opacity .6s; }
.fv.in .fv-mark { opacity: 1; transform: none; }
.fv-line { position: absolute; right: clamp(20px, 4vw, 56px); bottom: clamp(24px, 5.4vh, 62px); display: grid; justify-items: end; gap: 12px; opacity: 0; transition: opacity .8s .6s; }
.fv.in .fv-line { opacity: 1; }
.fv-tag { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: clamp(13px, 1.2vw, 16px); color: #17130f; }
.fv-go { padding: 13px 26px; border-radius: 999px; background: #17130f; color: #fff; font-size: 15px; font-weight: 500; }
.fv.out { transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); opacity: 0; transform: scale(1.04); pointer-events: none; }
@media (max-width: 700px) { .fv img { object-position: 50% 50%; } .fv-mark { font-size: 64px; } .fv-line { left: 20px; right: auto; justify-items: start; bottom: auto; top: 56px; } }
@media (prefers-reduced-motion: reduce) { .fv-mark, .fv-line { transition: none; } }

/* FV: the name big, white and centred over the pictures; the way in under it */
.fv-mark { left: 50% !important; top: 50%; bottom: auto !important; transform: translate(-50%, -46%) !important; color: #fff !important; font-size: clamp(88px, 17vw, 260px) !important; opacity: 0; transition: opacity .7s, transform 1.1s cubic-bezier(.16,1,.3,1) !important; text-shadow: 0 2px 40px rgba(0,0,0,.18); }
.fv.in .fv-mark { opacity: 1; transform: translate(-50%, -50%) !important; }
.fv-mark svg.rolmes path { fill: #fff; }
.fv-line { left: 50% !important; right: auto !important; transform: translateX(-50%); justify-items: center !important; bottom: clamp(28px, 6vh, 64px) !important; top: auto !important; }
.fv-tag { background: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; color: #fff !important; padding: 0 !important; font-size: clamp(14px, 1.3vw, 17px) !important; text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.fv-go { background: #fff !important; color: #17130f !important; }
.fv-beat i { background: rgba(255,255,255,.35); }
@media (max-width: 700px) { .fv-mark { font-size: 84px !important; } }

/* ===== focus: nothing moves; Paint on the left, Shape on the right, the vase between */
html.focus .bouquet { opacity: 0 !important; pointer-events: none !important; }
.focus-left { display: none; }
@media (min-width: 701px) {
  html.focus:not(.tablet) .focus-left { display: block; grid-column: 1 / 4; grid-row: 1; align-self: center; max-height: calc(100svh - var(--navh) - 40 * var(--u)); overflow: auto; scrollbar-width: none; padding: 6px 10px 12px; margin: 0 -10px; pointer-events: auto; }
  html.focus:not(.tablet) .focus-left .pane { display: block !important; }
  html.focus:not(.tablet) .focus-left .step-links { display: none; }
  html.focus .rail .step-tabs { visibility: hidden; }
}
/* ===== FV: quicker, the name smaller between two lines of copy, no beat bar */
.fv-beat { display: none !important; }
.fv-row { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: clamp(20px, 3.4vw, 56px); width: max-content; max-width: calc(100vw - 40px); opacity: 0; transition: opacity .7s; }
.fv.in .fv-row { opacity: 1; }
.fv-row .fv-mark { position: static !important; transform: none !important; opacity: 1 !important; font-size: clamp(56px, 8vw, 128px) !important; color: #fff; text-shadow: none !important; }
.fv-side { color: #fff; font-size: clamp(14px, 1.35vw, 20px); line-height: 1.35; letter-spacing: .01em; text-shadow: 0 1px 16px rgba(0,0,0,.3); white-space: nowrap; }
.fv-side:first-child { text-align: right; }
@media (max-width: 700px) { .fv-row { flex-direction: column; gap: 10px; text-align: center; } .fv-side, .fv-side:first-child { text-align: center; } .fv-row .fv-mark { font-size: 64px !important; } }
/* the films sheet */
.ss-left { font-size: 11px; opacity: .65; margin-left: 4px; }
.unlock { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(23,19,15,.35); }
.unlock[hidden] { display: none; }
.ul-card { width: min(380px, calc(100vw - 40px)); padding: 28px 28px 22px; border-radius: 28px; background: var(--ground); display: grid; gap: 10px; text-align: center; }
.ul-card b { font-size: 40px; font-weight: 400; }
.ul-card p { margin: 0; font-size: 15px; }
.ul-card .ul-sub { color: var(--ink-2); font-size: 13.5px; }
.ul-x { justify-self: center; margin-top: 8px; padding: 10px 22px; border-radius: 999px; background: var(--ink); color: var(--ground); font-size: 14px; }
/* focus: keep the right panel in its row (the left column takes the place of the name and facts) */
@media (min-width: 701px) { html.focus:not(.tablet) .about { display: none !important; } html.focus:not(.tablet) .rail { grid-row: 1; } }
/* FV: the name in the very middle; the two lines of copy pushed out to the left and right edges */
.fv-row { left: clamp(20px, 4vw, 56px) !important; right: clamp(20px, 4vw, 56px) !important; width: auto !important; max-width: none !important; transform: translateY(-50%) !important; display: grid !important; grid-template-columns: 1fr auto 1fr; gap: 24px !important; }
.fv.in .fv-row .fv-mark, .fv-row .fv-mark { transform: none !important; justify-self: center; }
.fv-row .fv-side:first-child { justify-self: start; text-align: left !important; }
.fv-row .fv-side:last-child { justify-self: end; text-align: right !important; }
@media (max-width: 700px) { .fv-row { grid-template-columns: 1fr; justify-items: center; } .fv-row .fv-side:first-child, .fv-row .fv-side:last-child { justify-self: center; text-align: center !important; } }
html.focus .rail .step-links { display: none !important; } html.focus .rail .step-tabs { display: none !important; }

/* the FV fades out softly as it hands over */
.fv.out { transition: opacity 1.1s cubic-bezier(.22,1,.36,1), transform 1.3s cubic-bezier(.22,1,.36,1) !important; transform: scale(1.06) !important; }

/* under the vase: Save is the named, inked action; surprise is a round dice like the other tools */
.vase-acts #surprise { width: 40px !important; height: 40px !important; padding: 0 !important; font-size: 0 !important; gap: 0 !important; border-radius: 50% !important; background: none !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink) !important; display: grid !important; place-items: center; }
.vase-acts #surprise svg { width: 18px !important; height: 18px !important; }
.vase-acts #surprise:hover { background: var(--ink) !important; color: var(--ground) !important; }
#saveBar { width: auto !important; padding: 0 20px 0 16px !important; font-size: 14px !important; gap: 7px !important; display: inline-flex !important; align-items: center; border-radius: 999px !important; background: var(--ink) !important; color: var(--ground) !important; box-shadow: none !important; }
#saveBar::after { content: "Save"; }
#saveBar svg { stroke: currentColor; }
@media (max-width: 700px) { .vase-acts #surprise { width: 34px !important; height: 34px !important; } #saveBar { height: 34px !important; padding: 0 14px 0 12px !important; } }

/* ===== screensaver dock: one bar at the bottom, the main choices as large icon chips, the rest under More */
.saver-sheet { left: 50% !important; right: auto !important; top: auto !important; bottom: 22px !important; transform: translateX(-50%) !important; width: max-content; max-width: calc(100vw - 32px); min-width: 0 !important; display: flex !important; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px !important; padding: 10px 12px !important; border-radius: 999px !important; background: color-mix(in srgb, var(--ground) 92%, transparent) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1.5px var(--ink) !important; }
.saver-sheet[hidden] { display: none !important; }
.saver-sheet .ss-row { gap: 4px !important; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.saver-sheet .ss-row > span { display: none !important; }
.saver-sheet .ss-row button { height: 40px !important; padding: 0 14px !important; font-size: 13.5px !important; box-shadow: none !important; border-radius: 999px !important; gap: 6px; }
.saver-sheet .ss-row button[aria-pressed="true"] { background: var(--ink) !important; color: var(--ground) !important; }
.saver-sheet .ss-row button svg { width: 18px !important; height: 18px !important; }
.saver-sheet .ss-row:nth-of-type(3), .saver-sheet .ss-row:nth-of-type(4) { display: none !important; }
.saver-sheet .ss-go { margin: 0 !important; gap: 6px !important; }
.saver-sheet .ss-go button { height: 44px !important; padding: 0 20px !important; flex: none !important; }
.ss-more { position: relative; }
.ss-more summary { list-style: none; cursor: pointer; height: 40px; display: grid; place-items: center; padding: 0 16px; border-radius: 999px; font-size: 13.5px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.ss-more summary::-webkit-details-marker { display: none; }
.ss-more[open] summary { background: var(--ink); color: var(--ground); }
.ss-more .ss-sliders { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: 320px; padding: 14px 16px; border-radius: 22px; background: var(--ground); box-shadow: inset 0 0 0 1.5px var(--ink); display: grid; gap: 4px; }
@media (max-width: 700px) { .saver-sheet { border-radius: 26px !important; } .saver-sheet .ss-row button { padding: 0 10px !important; font-size: 0 !important; } }

.saver-sheet { border-radius: 28px !important; flex-wrap: nowrap !important; }
@media (max-width: 1100px) { .saver-sheet { flex-wrap: wrap !important; } }

/* ===== under the vase, by importance: [Save] [Screensaver] named; then quiet tools (surprise, focus); undo/redo smallest */
.vase-acts { gap: 10px !important; align-items: center; }
#saveBar, #saverBtn { width: auto !important; height: 44px !important; padding: 0 20px 0 16px !important; border-radius: 999px !important; display: inline-flex !important; align-items: center; gap: 8px !important; font-size: 15px !important; font-weight: 500; }
#saveBar::after { content: none !important; }
#saveBar { background: var(--ink) !important; color: var(--ground) !important; box-shadow: none !important; }
#saverBtn { background: none !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink) !important; }
#saverBtn:hover { background: var(--ink) !important; color: var(--ground) !important; }
#saveBar svg, #saverBtn svg { width: 18px !important; height: 18px !important; }
.vase-acts .va-ur .va-ic, .vase-acts #surprise, .vase-acts #focusBtn { width: 36px !important; height: 36px !important; box-shadow: none !important; background: none !important; color: var(--ink) !important; opacity: .7; }
.vase-acts .va-ur .va-ic:disabled { opacity: .25; }
.vase-acts .va-ur .va-ic:hover:not(:disabled), .vase-acts #surprise:hover, .vase-acts #focusBtn:hover { opacity: 1; background: color-mix(in srgb, var(--ink) 8%, transparent) !important; }
.vase-acts #focusBtn[aria-pressed="true"] { opacity: 1; background: var(--ink) !important; color: var(--ground) !important; }
.va-ur { margin-right: 6px !important; }
.vase-acts #surprise { order: 3; } .vase-acts #saveBar { order: 1; } .vase-acts #saverBtn { order: 2; } .vase-acts #focusBtn { order: 4; } .vase-acts .va-ur { order: 0; }
@media (max-width: 700px) { #saveBar, #saverBtn { height: 38px !important; padding: 0 14px 0 12px !important; font-size: 14px !important; } #saverBtn span { display: none; } #saverBtn { padding: 0 !important; width: 38px !important; justify-content: center; } }

/* ===================== one language for every choice (patch 58) =====================
   words to choose from (tabs, pattern kinds, Finish): plain words, the chosen one dark with the same thin line under it.
   pictures to choose from (shapes, patterns, colours, surface, handles): the picture alone, the chosen one gets that same line under it.
   no rings, no tinted boxes, nothing lifts or tilts. */
.seg { gap: calc(20 * var(--u)) !important; }
.seg button, .pat-cats button { font-size: calc(14 * var(--u)) !important; }

.pat-cats { display: flex !important; gap: calc(20 * var(--u)) !important; margin: 0 0 calc(14 * var(--u)) !important; flex-wrap: nowrap !important; }
.pat-cats button { position: relative; height: auto !important; padding: 4px 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; color: var(--ink-2) !important; font-weight: 400 !important; }
.pat-cats button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.pat-cats button:hover { color: var(--ink) !important; }
.pat-cats button[aria-selected="true"] { color: var(--ink) !important; }
.pat-cats button[aria-selected="true"]::after { transform: scaleX(1); }

/* the line under a chosen picture */
#patterns .tp, #palettes .pal, #surface button, #shapes .shape, #handles button { position: relative; overflow: visible !important; }
#patterns .tp::after, #palettes .pal::after, #surface button::after, #shapes .shape::after, #handles button::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; width: 18px; height: 1.5px; margin-left: -9px; border-radius: 1px; background: var(--ink); transform: scaleX(0); transition: transform .4s var(--ease); pointer-events: none; }
#patterns .tp:hover::after, #palettes .pal:hover::after, #surface button:hover::after, #shapes .shape:hover::after, #handles button:hover::after { transform: scaleX(1); background: color-mix(in srgb, var(--ink) 28%, var(--ground)); }
#patterns .tp[aria-pressed="true"]::after, #palettes .pal[aria-pressed="true"]::after, #surface button[aria-checked="true"]::after, #shapes .shape[aria-pressed="true"]::after, #handles button[aria-checked="true"]::after { transform: scaleX(1); background: var(--ink); }
html[data-ui="hand"] #patterns .tp[aria-pressed="true"]::after { inset: auto; }

/* patterns: no box behind the chosen one, no tilt */
#patterns { row-gap: 16px !important; }
#patterns .tp, #patterns .tp[aria-pressed="true"] { background: none !important; }
#patterns .tp canvas, #patterns .tp:hover canvas, #patterns .tp[aria-pressed="true"] canvas { transform: none !important; animation: none !important; }

/* colours: flat strips, no ring, no lift */
#p-paint .palettes { row-gap: 16px !important; }
.pal, .pal:hover, .pal[aria-pressed="true"] { transform: none !important; outline: 0 !important; box-shadow: none !important; }
.pal svg, .pal[aria-pressed="true"] svg { outline: 0 !important; filter: none !important; }
.pal > i:first-child { border-radius: 8px 0 0 8px; } .pal > i:last-child { border-radius: 0 8px 8px 0; }

/* surface: the five glazes as small spheres, evenly in the same column as the Finish words */
.sf-chips { display: flex !important; gap: calc(14 * var(--u)) !important; }
.sf-chips button, .sf-chips button[aria-checked="true"] { width: 28px !important; height: 28px !important; box-shadow: none !important; border-radius: 50%; }
.sf-chips svg { width: 28px !important; height: 28px !important; }

/* shapes and handles keep dark-when-chosen; the line joins them */
#shapes { row-gap: 14px !important; }

/* ---- Take home: the main action on its own, then four equal cards */
#p-take .takes { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; border: 0 !important; }
#p-take .takes > #save { grid-column: 1 / -1; order: 0; margin: 0 0 4px !important; }
#p-take .takes > #roomBtn { order: 1; } #p-take .takes > #stl { order: 2; } #p-take .takes > #png { order: 3; } #p-take .takes > #share { order: 4; }
#p-take .takes > .print-row { order: 5; grid-column: 1 / -1; border: 0 !important; padding: 6px 2px 0 !important; margin: 0 !important; }
#p-take .take:not(#save) { display: flex !important; flex-direction: column-reverse; align-items: flex-start !important; justify-content: flex-end; gap: 14px; min-height: 132px; padding: 16px !important; border: 0 !important; border-radius: 16px; background: color-mix(in srgb, var(--ink) 6%, var(--ground)); text-align: left; transition: background-color .2s; }
#p-take .take:not(#save):hover { background: color-mix(in srgb, var(--ink) 12%, var(--ground)); }
#p-take .take:not(#save) .ic { width: 22px; height: 22px; }
#p-take .take:not(#save) b { font-size: calc(17 * var(--u)) !important; display: block; margin-bottom: 4px; }
#p-take .take:not(#save) em { white-space: normal !important; overflow: visible !important; font-size: 12px !important; line-height: 1.35; display: block; }
#p-take .take#save:hover { transform: none !important; }

/* ---- the page itself never scrolls; only the tools scroll inside their column */
@media (min-width: 701px) {
  html:has(#p-take), html:has(#p-take) body { height: 100%; overflow: hidden; }
  .page { box-sizing: border-box; height: 100svh; min-height: 0 !important; }
}
@media (max-width: 700px) {
  html:has(#p-take), html:has(#p-take) body { height: 100%; overflow: hidden; overscroll-behavior: none; }
  .nav > .nav-left, .nav .nav-left { display: none !important; }
  .stage { height: 44svh !important; }
  .vase-acts { top: calc(var(--navh) + 44svh - 50px) !important; }
  .page { position: fixed !important; left: 0; right: 0; top: calc(var(--navh) + 44svh); bottom: calc(58px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 14px var(--margin) 28px !important; margin: 0 !important; align-content: start; border-top: 1px solid var(--hair); }
  .about { gap: 0 !important; }
  .about .desc, .about .spec { display: none !important; }
  .about h1 { font-size: 30px !important; margin: 0 0 4px !important; }
  .rail { margin-top: 6px !important; }
  html.room-on .page { display: none; }
  #p-take .take:not(#save) { min-height: 118px; }
}
/* the empty materials row takes no room; the glaze rows sit one even step under the colours */
#p-paint #materials { display: none !important; }
#p-paint #materials + .row-seg { margin-top: 22px !important; }
#p-take .takes > .print-row > span::before { content: "3D "; }
/* the screensaver dock is one straight bar (it was being forced into a stacked card) */
html.saver .saver-sheet:not([hidden]) { display: flex !important; flex-wrap: nowrap !important; border-radius: 999px !important; width: max-content !important; }
@media (max-width: 1100px) { html.saver .saver-sheet:not([hidden]) { flex-wrap: wrap !important; border-radius: 28px !important; } }
html.saver .saver-sheet .ss-go button#saverSave { white-space: nowrap; }
/* under the vase: Save and Screensaver keep their names (an older rule kept turning them into round icons) */
html .vase-acts #saveBar, html .vase-acts #saverBtn { width: auto !important; height: 44px !important; padding: 0 20px 0 16px !important; border-radius: 999px !important; display: inline-flex !important; align-items: center !important; gap: 8px !important; font-size: 15px !important; }
html .vase-acts #saveBar::after { content: none !important; }
html .vase-acts #saveBar { background: var(--ink) !important; color: var(--ground) !important; }
html .vase-acts #saverBtn { background: none !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink) !important; }
html .vase-acts #saverBtn:hover { background: var(--ink) !important; color: var(--ground) !important; }
@media (max-width: 700px) { html .vase-acts #saveBar { height: 38px !important; padding: 0 14px 0 12px !important; font-size: 14px !important; } html .vase-acts #saverBtn { width: 38px !important; height: 38px !important; padding: 0 !important; justify-content: center; } html .vase-acts #saverBtn span { display: none; } }

/* ===================== icons that read, on every screen (patch 61) =====================
   one drawing hand: 24 grid, 1.75 stroke, round ends, full ink. Small tools sit on a soft round so they read as buttons. */
.ic, .va-ic svg, .vase-acts svg { fill: none; stroke: currentColor; stroke-width: 1.75 !important; stroke-linecap: round; stroke-linejoin: round; }
svg .dot { fill: currentColor !important; stroke: none !important; }
html .vase-acts .va-ur .va-ic, html .vase-acts #surprise, html .vase-acts #focusBtn {
  width: 44px !important; height: 44px !important; padding: 0 !important; border-radius: 50% !important; display: grid !important; place-items: center;
  opacity: 1 !important; color: var(--ink) !important; box-shadow: none !important;
  background: color-mix(in srgb, var(--ink) 8%, transparent) !important; transition: background-color .2s, color .2s; }
html .vase-acts .va-ur .va-ic svg, html .vase-acts #surprise svg, html .vase-acts #focusBtn svg { width: 22px !important; height: 22px !important; margin: 0 !important; }
html .vase-acts .va-ur .va-ic:disabled { opacity: .32 !important; background: color-mix(in srgb, var(--ink) 5%, transparent) !important; }
html .vase-acts .va-ur .va-ic:hover:not(:disabled), html .vase-acts #surprise:hover, html .vase-acts #focusBtn:hover { background: color-mix(in srgb, var(--ink) 16%, transparent) !important; }
html .vase-acts #focusBtn[aria-pressed="true"] { background: var(--ink) !important; color: var(--ground) !important; }
html .vase-acts .va-ur { display: inline-flex; gap: 8px; }
html .vase-acts #saveBar svg, html .vase-acts #saverBtn svg { width: 20px !important; height: 20px !important; }
#p-take .take:not(#save) .ic { width: 26px !important; height: 26px !important; }
#p-take .take#save .ic { width: 26px; height: 26px; stroke-width: 2 !important; }

/* ---- phone, upright */
@media (max-width: 700px) {
  html .vase-acts { gap: 6px !important; left: 16px !important; right: 16px !important; width: auto !important; transform: none !important; justify-content: center; }
  html .vase-acts .va-ur { gap: 6px; margin-right: auto !important; }
  html .vase-acts .va-ur .va-ic, html .vase-acts #surprise, html .vase-acts #focusBtn, html .vase-acts #saverBtn { width: 40px !important; height: 40px !important; }
  html .vase-acts #saveBar { height: 40px !important; }
  html .vase-acts #surprise { margin-left: 0 !important; }
  .about h1 { font-size: 26px !important; }
}
@media (max-width: 380px) {
  html .vase-acts { gap: 4px !important; left: 12px !important; right: 12px !important; }
  html .vase-acts .va-ur .va-ic, html .vase-acts #surprise, html .vase-acts #focusBtn, html .vase-acts #saverBtn { width: 38px !important; height: 38px !important; }
  html .vase-acts #saveBar { height: 38px !important; padding: 0 14px 0 10px !important; }
}

/* ---- tablet: a sensible number of patterns and colours per row */
html.tablet #patterns { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
html.tablet #p-paint .palettes { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
@media (orientation: landscape) { html.tablet #patterns { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } html.tablet #p-paint .palettes { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (min-width: 701px) and (max-width: 1100px) and (orientation: portrait) {
  html:not(.tablet) #patterns { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
  html:not(.tablet) #p-paint .palettes { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}

/* ===================== phone on its side (patch 62): the vase on the left, the tools on the right, nothing overlaps ===================== */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 1000px) {
  html:not(.tablet) { --navh: 52px; --panel: min(46vw, 400px); }
  html:has(#p-take), html:has(#p-take) body { height: 100%; overflow: hidden; }
  html:not(.tablet) .nav { height: var(--navh) !important; padding-top: 0 !important; padding-bottom: 0 !important; align-items: center; }
  html:not(.tablet) .nav .nav-left, html:not(.tablet) .about, html:not(.tablet) .bouquet, html:not(.tablet) .stage-tools { display: none !important; }
  html:not(.tablet) .nav .logo, html:not(.tablet) .nav h1, html:not(.tablet) .nav .brand { font-size: 26px !important; }
  html:not(.tablet) .stage { position: fixed !important; top: var(--navh) !important; left: 0 !important; right: var(--panel) !important; bottom: 0 !important; width: auto !important; height: auto !important; margin: 0 !important; }
  html:not(.tablet) .page { position: static !important; height: auto !important; min-height: 0 !important; padding: 0 !important; }
  html:not(.tablet) .rail { position: fixed !important; top: var(--navh) !important; right: 0 !important; bottom: 0 !important; left: auto !important; width: var(--panel) !important; max-height: none !important; margin: 0 !important; display: block !important; overflow-y: auto !important; overscroll-behavior: contain; padding: 0 20px 28px !important; box-sizing: border-box; border-left: 1px solid var(--hair); }
  html:not(.tablet) .rail .pane:not([hidden]) { display: block !important; }
  html:not(.tablet) .step-tabs { position: sticky !important; top: 0 !important; left: auto !important; right: auto !important; bottom: auto !important; z-index: 3; background: var(--ground) !important; margin: 0 -20px 10px !important; padding: 6px 20px 0 !important; width: auto !important; }
  html:not(.tablet) .vase-acts { position: fixed !important; top: auto !important; bottom: 12px !important; left: calc((100vw - var(--panel)) / 2) !important; right: auto !important; transform: translateX(-50%) !important; gap: 6px !important; }
  html:not(.tablet) .vase-acts .va-ur .va-ic, html:not(.tablet) .vase-acts #surprise, html:not(.tablet) .vase-acts #focusBtn, html:not(.tablet) .vase-acts #saverBtn { width: 38px !important; height: 38px !important; }
  html:not(.tablet) .vase-acts #saveBar { height: 38px !important; padding: 0 14px 0 10px !important; font-size: 14px !important; }
  html:not(.tablet) .vase-acts #saverBtn { padding: 0 !important; justify-content: center; }
  html:not(.tablet) .vase-acts #saverBtn span { display: none; }
  html:not(.tablet) .vase-acts .va-ur { margin-right: 4px !important; }
  html:not(.tablet) #patterns { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  html:not(.tablet) #p-paint .palettes { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  html:not(.tablet) .shapes, html:not(.tablet) #shapes { grid-template-columns: repeat(6, 1fr) !important; }
  html:not(.tablet) #p-shape #profile { height: 150px !important; max-height: 150px !important; }
  html:not(.tablet) #p-take .take:not(#save) { min-height: 104px; }
  html.room-on:not(.tablet) .rail { display: none !important; }
  html.room-on:not(.tablet) .stage { right: 0 !important; }
}

/* ===== screensaver dock: same icons, and on a phone the saver takes the whole screen (patch 63) */
.saver-sheet svg { fill: none; stroke: currentColor; stroke-width: 1.75 !important; stroke-linecap: round; stroke-linejoin: round; }
.saver-sheet svg .f { fill: currentColor; stroke: none; }
@media (max-width: 700px) {
  html.saver .stage { position: fixed !important; inset: 0 !important; height: auto !important; }
  html.saver .page, html.saver .vase-acts { display: none !important; }
  html.saver .saver-sheet:not([hidden]) { border: 0 !important; box-shadow: none !important; background: color-mix(in srgb, var(--ground) 72%, transparent) !important; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  html.saver .saver-sheet svg { width: 22px !important; height: 22px !important; }
}
/* phone: the buttons sit under the vase's box, never on top of the vase */
@media (max-width: 700px) {
  html:not(.saver) .stage { height: calc(44svh - 50px) !important; }
  html:not(.saver) .vase-acts { top: calc(var(--navh) + 44svh - 46px) !important; }
}

/* ===================== words, not icons (patch 66) =====================
   Under the vase: Undo Redo · [Save] [Screensaver] · Surprise me  Focus. Quiet words get the same thin line as the tabs. */
html body .vase-acts { display: flex !important; align-items: center !important; gap: 6px !important; }
html body .vase-acts .va-ur { display: inline-flex !important; gap: 0 !important; margin-right: 10px !important; }
html body .vase-acts .va-word { position: relative; width: auto !important; height: 40px !important; padding: 0 10px !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; color: var(--ink) !important; opacity: 1 !important; font-size: 15px !important; font-weight: 400; display: inline-flex !important; align-items: center; white-space: nowrap; }
html body .vase-acts .va-word::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
html body .vase-acts .va-word:hover:not(:disabled)::after, html body .vase-acts .va-word[aria-pressed="true"]::after { transform: scaleX(1); }
html body .vase-acts .va-word:disabled { opacity: .32 !important; background: none !important; }
html body .vase-acts .va-word[aria-pressed="true"] { background: none !important; color: var(--ink) !important; }
html body .vase-acts .va-pill { width: auto !important; height: 44px !important; padding: 0 22px !important; border-radius: 999px !important; display: inline-flex !important; align-items: center; justify-content: center; font-size: 15px !important; font-weight: 500; white-space: nowrap; }
html body .vase-acts .va-pill span { display: inline !important; }
html body .vase-acts #saveBar { background: var(--ink) !important; color: var(--ground) !important; box-shadow: none !important; }
html body .vase-acts #saverBtn { background: none !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink) !important; margin-right: 10px !important; }
html body .vase-acts #saverBtn:hover { background: var(--ink) !important; color: var(--ground) !important; }
.vase-acts #undo { order: 0; } .vase-acts .va-ur { order: 0; } .vase-acts #saveBar { order: 1; } .vase-acts #saverBtn { order: 2; } .vase-acts #surprise { order: 3; } .vase-acts #focusBtn { order: 4; }
@media (max-width: 700px) {
  html body .vase-acts { gap: 4px !important; justify-content: center; }
  html body .vase-acts .va-ur { margin-right: auto !important; }
  html body .vase-acts .va-word { height: 38px !important; padding: 0 7px !important; font-size: 14px !important; }
  html body .vase-acts .va-word::after { left: 7px; right: 7px; }
  html body .vase-acts .va-pill { height: 38px !important; padding: 0 14px !important; font-size: 14px !important; }
  html body .vase-acts #saverBtn { margin-right: 2px !important; }
  html body .vase-acts .va-long, html body .vase-acts #focusBtn { display: none !important; }
}
@media (max-height: 520px) and (orientation: landscape) and (max-width: 1000px) {
  html body .vase-acts .va-word { height: 36px !important; padding: 0 7px !important; font-size: 14px !important; }
  html body .vase-acts .va-pill { height: 36px !important; padding: 0 14px !important; font-size: 14px !important; }
  html body .vase-acts .va-long, html body .vase-acts #focusBtn { display: none !important; }
}

/* Take home: plain word cards */
#p-take .take:not(#save) { min-height: 0 !important; padding: 18px !important; justify-content: flex-start !important; }
#p-take .take#save { justify-content: flex-start !important; }

/* screensaver dock: words in the segments */
.saver-sheet .ss-row button { width: auto !important; min-width: 0 !important; padding: 0 14px !important; font-size: 14px !important; white-space: nowrap; text-indent: 0 !important; }
.saver-sheet .ss-row button svg { display: none !important; }

/* shelf drawer links */
.drawer-foot-row .dw-view { width: auto !important; height: auto !important; padding: 6px 2px !important; background: none !important; box-shadow: none !important; font-size: 15px; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid transparent; border-radius: 0 !important; }
.drawer-foot-row .dw-view:hover { border-bottom-color: currentColor; }
.drawer-foot-row { align-items: center; gap: 18px !important; }
/* patch 67: the word buttons win over the old round-icon rules (those named the buttons by id) */
html body .vase-acts #undo, html body .vase-acts #redo, html body .vase-acts #surprise, html body .vase-acts #focusBtn { width: auto !important; height: 40px !important; padding: 0 10px !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; color: var(--ink) !important; font-size: 15px !important; text-indent: 0 !important; overflow: visible !important; display: inline-flex !important; align-items: center; margin: 0 !important; }
html body .vase-acts #undo:disabled, html body .vase-acts #redo:disabled { opacity: .32 !important; }
html body .vase-acts #surprise:hover, html body .vase-acts #focusBtn:hover, html body .vase-acts #focusBtn[aria-pressed="true"] { background: none !important; color: var(--ink) !important; }
html body .vase-acts #saveBar, html body .vase-acts #saverBtn { width: auto !important; height: 44px !important; padding: 0 22px !important; font-size: 15px !important; text-indent: 0 !important; }
html body .vase-acts #saveBar span, html body .vase-acts #saverBtn span { display: inline !important; font-size: inherit !important; }
@media (max-width: 700px), (max-height: 520px) and (orientation: landscape) and (max-width: 1000px) {
  html body .vase-acts #undo, html body .vase-acts #redo, html body .vase-acts #surprise { height: 38px !important; padding: 0 7px !important; font-size: 14px !important; }
  html body .vase-acts #saveBar, html body .vase-acts #saverBtn { height: 38px !important; padding: 0 14px !important; font-size: 14px !important; }
  html body .vase-acts #focusBtn { display: none !important; }
}
#p-take .take:not(#save) { flex-direction: column !important; justify-content: flex-start !important; align-items: flex-start !important; }
@media (max-height: 520px) and (orientation: landscape) and (max-width: 1000px) {
  html:not(.tablet) body .vase-acts #saveBar, html:not(.tablet) body .vase-acts #saverBtn { width: auto !important; height: 36px !important; padding: 0 14px !important; font-size: 14px !important; }
  html:not(.tablet) body .vase-acts #saverBtn span, html:not(.tablet) body .vase-acts #saveBar span { display: inline !important; }
  html:not(.tablet) body .vase-acts #undo, html:not(.tablet) body .vase-acts #redo, html:not(.tablet) body .vase-acts #surprise { width: auto !important; height: 36px !important; }
}

/* ===================== phone: the vase is the page; the tools are one short sheet at the bottom (patch 68) =====================
   Each tab is one or two rows you swipe sideways. Fewer things on a phone: shape, handles, pattern, colours, save, picture, share. */
@media (max-width: 700px) {
  html:not(.saver) { --sheet: 172px; --tabs: calc(58px + env(safe-area-inset-bottom)); }
  html:not(.saver) body .stage { position: fixed !important; top: var(--navh) !important; left: 0; right: 0; height: auto !important; bottom: calc(var(--tabs) + var(--sheet)) !important; margin: 0 !important; }
  html:not(.saver) body .vase-acts { position: fixed !important; top: auto !important; bottom: calc(var(--tabs) + var(--sheet) + 10px) !important; left: 16px !important; right: 16px !important; }
  html:not(.saver) body .page { position: fixed !important; top: auto !important; bottom: var(--tabs) !important; left: 0; right: 0; height: var(--sheet) !important; overflow: hidden !important; padding: 0 !important; border-top: 0 !important; border-radius: 22px 22px 0 0; background: color-mix(in srgb, var(--ink) 5%, var(--ground)) !important; display: block !important; }
  html:not(.saver) body .about { display: none !important; }
  html:not(.saver) body .rail { margin: 0 !important; padding: 14px 0 0 !important; height: 100%; overflow: hidden !important; }
  html:not(.saver) body .rail .pane:not([hidden]) { display: flex !important; flex-direction: column; gap: 12px; padding: 0 !important; }
  /* a row you swipe */
  html body #shapes, html body #patterns, html body #palettes, html body #handles, html body .pat-cats {
    display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: visible !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
    gap: 10px !important; padding: 0 20px 10px !important; margin: 0 !important; grid-template-columns: none !important; width: auto !important; }
  html body #shapes::-webkit-scrollbar, html body #patterns::-webkit-scrollbar, html body #palettes::-webkit-scrollbar, html body #handles::-webkit-scrollbar, html body .pat-cats::-webkit-scrollbar { display: none; }
  html body #shapes > *, html body #patterns > *, html body #palettes > *, html body #handles > * { flex: none !important; scroll-snap-align: start; }
  /* Shape: the twelve shapes, then the handles */
  html body #shapes > * { width: 46px !important; }
  html body #shapes .shape svg { height: 50px !important; width: 46px !important; }
  html body #p-shape .profile-wrap, html body #p-shape > .reset, html body #p-shape > label.row, html body #p-shape #ringRow, html body .step-links { display: none !important; }
  html body #p-shape .row-seg { display: block !important; margin: 0 !important; padding: 0 !important; }
  html body #p-shape .row-seg > span, html body #p-shape .row-seg > b, html body #p-shape .row-seg > label { display: none !important; }
  html body #handles > * { width: 52px !important; }
  html body #handles svg { max-height: 30px !important; }
  html body #handles span { display: none !important; }
  /* Paint: the kinds as words, the patterns, the colours */
  html body .pat-cats { gap: 20px !important; padding-bottom: 2px !important; }
  html body #patterns > * { width: 50px !important; }
  html body #patterns .tp canvas { width: 50px !important; height: auto !important; }
  html body #p-paint > label.row, html body #p-paint .own-cols, html body #p-paint #materials, html body #p-paint .row-seg { display: none !important; }
  html body #palettes > * { width: 64px !important; height: 30px !important; }
  /* Take home: Save, then three small ones */
  html body #p-take .takes { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; padding: 0 20px !important; }
  html body #p-take .takes > #save { grid-column: 1 / -1; min-height: 0 !important; padding: 14px 18px !important; margin: 0 !important; }
  html body #p-take .takes > #save em { display: none !important; }
  html body #p-take .takes > #stl, html body #p-take .takes > .print-row { display: none !important; }
  html body #p-take .take:not(#save) { min-height: 0 !important; padding: 14px 12px !important; border-radius: 14px; background: var(--ground) !important; align-items: center !important; justify-content: center !important; text-align: center; }
  html body #p-take .take:not(#save) em { display: none !important; }
  html body #p-take .take:not(#save) b { font-size: 15px !important; margin: 0 !important; white-space: nowrap; }
}
@media (max-width: 700px) and (max-height: 700px) { html:not(.saver) { --sheet: 160px; } }
@media (max-width: 700px) {
  html:not(.saver) { --sheet: 200px; }
  html body .rail .pane #shapes, html body .rail .pane #patterns, html body .rail .pane #palettes, html body .rail .pane #handles, html body .rail .pane .pat-cats { padding-left: 20px !important; padding-right: 20px !important; margin: 0 !important; scroll-padding-left: 20px; }
  html body .rail .pane:not([hidden]) { gap: 10px !important; }
  html body .rail .pane .pat-cats { padding-bottom: 0 !important; }
  html body .rail .pane #patterns { padding-bottom: 12px !important; }
  html body .rail .pane #p-paint #patterns > * { width: 48px !important; }
}
@media (max-width: 700px) and (max-height: 700px) { html:not(.saver) { --sheet: 190px; } html body .rail .pane:not([hidden]) { gap: 6px !important; } }
@media (max-width: 700px) {
  html body .rail #p-shape > label.row:first-of-type { display: grid !important; grid-template-columns: 64px 1fr 48px !important; align-items: center; gap: 10px; margin: 2px 0 0 !important; padding: 0 20px !important; min-height: 32px; font-size: 14px !important; }
}

/* ===== phone: the tools sheet can be put away (patch 69) */
.sheet-grip { display: none; }
@media (max-width: 700px) {
  html:not(.saver) { --sheet: 212px; }
  html body .sheet-grip { display: grid; place-items: center; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 88px; height: 22px; padding: 0; border: 0; background: none; z-index: 2; touch-action: none; }
  html body .sheet-grip i { display: block; width: 36px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 28%, transparent); transition: background-color .2s; }
  html body .sheet-grip:hover i { background: color-mix(in srgb, var(--ink) 55%, transparent); }
  html body .rail { padding-top: 24px !important; }
  html:not(.saver) body .page { transition: transform .42s cubic-bezier(.2, .8, .2, 1); will-change: transform; z-index: 4; }
  html:not(.saver) body .step-tabs { z-index: 6 !important; background: var(--ground) !important; }
  html:not(.saver) body .vase-acts { transition: bottom .42s cubic-bezier(.2, .8, .2, 1); }
  html.sheet-down:not(.saver) body .page { transform: translateY(calc(100% + 2px)); }
  html.sheet-down:not(.saver) body .stage { bottom: var(--tabs) !important; }
  html.sheet-down:not(.saver) body .vase-acts { bottom: calc(var(--tabs) + 14px) !important; }
  html.sheet-down:not(.saver) body .step-tabs [aria-selected="true"] { color: var(--ink-2) !important; }
  html.sheet-down:not(.saver) body .step-tabs .tab-line { opacity: 0; }
}
@media (max-width: 700px) and (max-height: 700px) { html:not(.saver) { --sheet: 200px; } }
/* patch 69b: the tabs live inside the sheet, so the sheet folds by its height (a transform would carry the tabs away) */
@media (max-width: 700px) {
  html:not(.saver) body .page { transition: height .42s cubic-bezier(.2, .8, .2, 1) !important; will-change: auto !important; transform: none !important; }
  html.sheet-down:not(.saver) body .page { transform: none !important; height: 0 !important; }
  html.sheet-down:not(.saver) body .sheet-grip { display: none; }
}

/* ===================== share a vase (patch 72): the card on the left, the choices on the right; a sheet from below on a phone */
.share-sheet { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; }
.share-sheet[hidden] { display: none; }
.sh-veil { position: absolute; inset: 0; background: color-mix(in srgb, #17130f 45%, transparent); opacity: 0; transition: opacity .3s; }
.sh-box { position: relative; display: grid; grid-template-columns: auto 300px; gap: 36px; align-items: center; padding: 28px 36px 28px 28px; border-radius: 28px; background: #f6efe3; color: #17130f; box-shadow: 0 30px 80px rgba(0,0,0,.25); transform: translateY(18px) scale(.98); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s; max-height: calc(100svh - 40px); }
.share-sheet.on .sh-veil { opacity: 1; } .share-sheet.on .sh-box { transform: none; opacity: 1; }
.sh-pic { height: min(72svh, 640px); aspect-ratio: 1080 / 1350; border-radius: 16px; overflow: hidden; transition: aspect-ratio .3s; }
.sh-pic[data-f="story"] { aspect-ratio: 1080 / 1920; }
.sh-pic canvas { width: 100%; height: 100%; display: block; }
.sh-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.sh-h { font-size: 44px; line-height: 1; font-weight: 400; }
.sh-sub { margin: 0; font-size: 14px; line-height: 1.5; color: #6b625a; min-height: 3em; }
.sh-sub.flash { color: #17130f; }
.sh-seg { display: flex; gap: 20px; }
.sh-seg button, .sh-word, .sh-close { position: relative; padding: 4px 0; background: none; border: 0; font: inherit; font-size: 15px; color: #6b625a; cursor: pointer; }
.sh-seg button::after, .sh-word::after, .sh-close::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: #17130f; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.sh-seg button[aria-checked="true"] { color: #17130f; } .sh-seg button[aria-checked="true"]::after, .sh-word:hover::after, .sh-close:hover::after { transform: scaleX(1); }
.sh-word, .sh-close { color: #17130f; }
.sh-acts { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
.sh-acts button { height: 48px; border-radius: 999px; font: inherit; font-size: 15px; cursor: pointer; transition: background-color .2s, color .2s; }
.sh-main { background: #17130f; color: #f6efe3; border: 0; }
.sh-main:hover { background: #3a332c; }
.sh-alt { background: none; color: #17130f; border: 0; box-shadow: inset 0 0 0 1.5px #17130f; }
.sh-alt:hover { background: #17130f; color: #f6efe3; }
.sh-close { margin-top: 4px; color: #6b625a; }
@media (max-width: 700px) {
  .share-sheet { place-items: end stretch; }
  .sh-box { grid-template-columns: 1fr; gap: 16px; padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; transform: translateY(100%); max-height: 92svh; overflow: auto; justify-items: center; }
  .sh-pic { height: min(48svh, 420px); }
  .sh-side { width: 100%; gap: 12px; }
  .sh-h { display: none; } .sh-sub { min-height: 0; font-size: 13px; }
  .sh-acts { grid-template-columns: 1fr 1fr; } .sh-main { grid-column: 1 / -1; }
  .sh-close { align-self: center; }
}
/* a vase that came by a link */
.hello-share { position: fixed; left: 50%; top: calc(var(--navh, 64px) + 12px); z-index: 60; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 20px; border-radius: 999px; background: #17130f; color: #f6efe3; font-size: 14px; transform: translate(-50%, -12px); opacity: 0; transition: transform .45s cubic-bezier(.34,1.56,.64,1), opacity .3s; white-space: nowrap; }
.hello-share.on { transform: translate(-50%, 0); opacity: 1; }
.hello-share button { height: 34px; padding: 0 16px; border-radius: 999px; border: 0; background: #f6efe3; color: #17130f; font: inherit; font-size: 13px; cursor: pointer; }
.hello-share button:hover { background: #ffd23f; }
@media (max-width: 700px) { .hello-share { font-size: 12px; gap: 10px; padding-left: 14px; max-width: calc(100vw - 24px); white-space: normal; } }
/* the upright FV on a phone: the vase is the middle of the picture, so the mark and the lines sit above it, on the chest */
@media (max-aspect-ratio: 4/5) {
  .fv img { object-position: 50% 62%; }
  .fv-row { top: calc(env(safe-area-inset-top) + 9svh) !important; transform: none !important; grid-template-columns: 1fr !important; justify-items: center; gap: 6px !important; }
  .fv-row .fv-mark { order: -1; font-size: clamp(64px, 19vw, 96px) !important; }
  .fv-row .fv-side { font-size: 15px; text-align: center !important; justify-self: center !important; }
  .fv-row .fv-side br { display: none; }
  .fv-row .fv-side:last-child { display: none; }
}
@media (max-aspect-ratio: 4/5) { .fv-go { white-space: nowrap; padding: 14px 26px !important; } }

/* ===== patch 73: the screensaver settings, one calm panel that stays while you edit */
html body #saverSheet.ss-ed { position: fixed !important; inset: auto !important; top: 20px !important; right: 20px !important; bottom: 20px !important; left: auto !important; transform: none !important; translate: none !important;
  width: 320px !important; max-width: none !important; min-width: 0 !important; display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important; justify-content: flex-start !important; gap: 0 !important;
  padding: 26px 24px 20px !important; border-radius: 24px !important; background: var(--ground) !important; box-shadow: inset 0 0 0 1px var(--hair) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 0 !important;
  overflow-y: auto; overscroll-behavior: contain; z-index: 80 !important; cursor: default; opacity: 1 !important; transition: none !important; }
html body #saverSheet.ss-ed[hidden] { display: none !important; }
#saverSheet.ss-ed .ss-h { font-family: "PottleHead", "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1; margin: 0 0 18px; }
#saverSheet.ss-ed .ss-row { display: block !important; padding: 14px 0 !important; margin: 0 !important; background: none !important; border-radius: 0 !important; border-top: 1px solid var(--hair); }
#saverSheet.ss-ed .ss-row > span { display: block !important; width: auto !important; font-size: 12px !important; color: var(--ink-2); margin: 0 0 8px; }
#saverSheet.ss-ed .ss-opts { display: flex; flex-wrap: wrap; gap: 4px 18px; }
#saverSheet.ss-ed .ss-opts button { position: relative; height: auto !important; padding: 3px 0 !important; border-radius: 0 !important; background: none !important; color: var(--ink-2) !important; box-shadow: none !important; font-size: 14.5px !important; }
#saverSheet.ss-ed .ss-opts button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
#saverSheet.ss-ed .ss-opts button:hover { color: var(--ink) !important; }
#saverSheet.ss-ed .ss-opts button[aria-pressed="true"] { color: var(--ink) !important; }
#saverSheet.ss-ed .ss-opts button[aria-pressed="true"]::after { transform: scaleX(1); }
#saverSheet.ss-ed .ss-sliders { display: grid !important; grid-template-columns: 1fr !important; gap: 2px !important; padding: 12px 0 8px; border-top: 1px solid var(--hair); }
#saverSheet.ss-ed .ss-sl { display: grid !important; grid-template-columns: 96px minmax(0, 1fr) 64px !important; align-items: center; gap: 10px; font-size: 13px; min-height: 34px; }
#saverSheet.ss-ed .ss-sl[hidden] { display: none !important; }
#saverSheet.ss-ed .ss-sl span { color: var(--ink-2); font-size: 12.5px; }
#saverSheet.ss-ed .ss-sl input { width: 100%; }
#saverSheet.ss-ed .ss-sl output { font-size: 12.5px; text-align: right; }
#saverSheet.ss-ed .ss-go { display: grid !important; grid-template-columns: 1fr; gap: 8px !important; margin: auto 0 0 !important; padding-top: 16px; }
#saverSheet.ss-ed .ss-go button { flex: none !important; width: 100%; height: 44px !important; padding: 0 16px !important; border-radius: 999px !important; font-size: 14px !important; font-weight: 500; box-shadow: inset 0 0 0 1.5px var(--ink) !important; background: none !important; color: var(--ink) !important; white-space: nowrap; }
#saverSheet.ss-ed .ss-go #saverPlay { background: var(--ink) !important; color: var(--ground) !important; box-shadow: none !important; }
#saverSheet.ss-ed .ss-go button:hover { box-shadow: inset 0 0 0 2.5px var(--ink) !important; }
#saverSheet.ss-ed .ss-go #saverPlay:hover { background: color-mix(in srgb, var(--ink) 82%, var(--ground)) !important; }
#saverSheet.ss-ed .ss-done { align-self: center; margin-top: 12px; padding: 4px 0; font-size: 13.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair); }
#saverSheet.ss-ed .ss-done:hover { color: var(--ink); text-decoration-color: var(--ink); }
html.saver.ss-live body { cursor: default !important; }
html.saver.ss-live .stage { right: 360px !important; }
html.saver.ss-live .stage::after { display: none !important; }
html.saver.ss-full .stage::after { content: "Click or press any key for the settings" !important; }
@media (max-width: 700px), (max-height: 520px) and (orientation: landscape) {
  html body #saverSheet.ss-ed { top: auto !important; left: 8px !important; right: 8px !important; bottom: 8px !important; width: auto !important; max-height: 54svh; padding: 18px 18px 14px !important; border-radius: 22px !important; }
  #saverSheet.ss-ed .ss-h { font-size: 24px; margin-bottom: 8px; }
  #saverSheet.ss-ed .ss-row { display: grid !important; grid-template-columns: 70px 1fr; align-items: baseline; padding: 10px 0 !important; }
  #saverSheet.ss-ed .ss-row > span { margin: 0; }
  #saverSheet.ss-ed .ss-sl { grid-template-columns: 70px minmax(0, 1fr) 56px !important; }
  #saverSheet.ss-ed .ss-go { grid-template-columns: 1fr 1fr; position: sticky; bottom: -14px; background: var(--ground); padding: 12px 0 0; }
  html.saver.ss-live .stage { right: 0 !important; bottom: 54svh !important; top: 0 !important; height: auto !important; }
}
@media (max-height: 520px) and (orientation: landscape) { html body #saverSheet.ss-ed { left: auto !important; width: 360px !important; top: 8px !important; max-height: none; } html.saver.ss-live .stage { bottom: 0 !important; right: 376px !important; } }
#saverSheet.ss-ed .ss-sl { grid-template-columns: 92px minmax(0, 1fr) 46px !important; }

/* ===== patch 74: iPad, made for the iPad */
html.tablet .rail > .step-tabs { background: none !important; }
html.tablet .about .desc { font-size: 12px !important; line-height: 1.45; max-width: 26ch !important; color: var(--ink-2); }
html.tablet .about h1 { font-size: 32px !important; }
/* sliders side by side where there is room */
html.tablet .rail .pane:not([hidden]) { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; align-content: start; }
html.tablet .rail .pane > * { grid-column: 1 / -1; min-width: 0; }
html.tablet .rail .pane > label.row { grid-column: auto; grid-template-columns: 78px minmax(0, 1fr) 50px !important; }
html.tablet .rail .pane > label.row[hidden] { display: none !important; }
@media (orientation: landscape) { html.tablet .rail .pane:not([hidden]) { grid-template-columns: 1fr; } }
@media (orientation: portrait) {
  html.tablet { --stageh: 54vh; }
  html.tablet .stage { transition: height .45s var(--ease); }
  html.tablet .rail { top: calc(var(--navh) + var(--stageh)) !important; background: color-mix(in srgb, var(--ground) 94%, var(--ink)) !important; border-top: 0 !important; border-radius: 26px 26px 0 0; padding: 26px 36px 40px !important; transition: top .45s var(--ease); overscroll-behavior: contain; }
  html.tablet .vase-acts, html.tablet .stage-tools { transition: top .45s var(--ease); }
  /* the outline sits beside the vase, in the stage, not down in the tools */
  html.tablet #p-shape:not([hidden]) .profile-wrap { position: fixed; z-index: 3; top: calc(var(--navh) + 28px); right: 26px; width: 180px; margin: 0; padding: 0; }
  html.tablet #p-shape #profile { height: calc(var(--stageh) - 150px) !important; max-height: 300px !important; width: 100%; }
  html.tablet .profile-wrap .reset { position: absolute; top: -4px; right: 0; z-index: 1; }
  /* the grip folds the tools down to their tabs and the vase takes the room */
  html.tablet .sheet-grip { display: grid !important; place-items: center; position: fixed; z-index: 4; top: calc(var(--navh) + var(--stageh) + 2px); left: 50%; transform: translateX(-50%); width: 96px; height: 22px; padding: 0; border: 0; background: none; transition: top .45s var(--ease); }
  html.tablet .sheet-grip i { display: block; width: 40px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 28%, transparent); }
  html.tablet .sheet-grip:hover i { background: color-mix(in srgb, var(--ink) 55%, transparent); }
  html.tablet.sheet-down { --stageh: calc(100vh - var(--navh) - 74px); }
  html.tablet.sheet-down .rail { overflow: hidden; }
  html.tablet.sheet-down #p-shape .profile-wrap { display: none !important; }
  html.tablet.sheet-down .step-tabs [aria-selected="true"] { color: var(--ink-2) !important; }
  html.tablet.sheet-down .step-tabs .tab-line { opacity: 0; }
}
@media (orientation: portrait) {
  html.tablet .rail { z-index: 6; }
  html.tablet .rail .shapes { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; row-gap: 0 !important; }
  html.tablet .rail .shapes .shape svg { height: 44px !important; }
}
@media (orientation: portrait) {
  html.tablet .rail, html.tablet .rail.more-below { -webkit-mask-image: none !important; mask-image: none !important; }   /* a mask would clip the outline out beside the vase */
  html.tablet .sheet-grip { z-index: 7 !important; }
}

/* ===== patch 75: iPad held sideways. The tools float in a card beside the vase, the outline sits next to the vase, and the card folds up to its tabs */
@media (orientation: landscape) {
  html.tablet { --pw: 400px; --panel: calc(var(--pw) + 12px); --foldh: 92px; }
  html.tablet .stage { right: var(--panel) !important; transition: right .45s var(--ease); }
  html.tablet .rail { top: calc(var(--navh) + 4px) !important; right: 12px !important; bottom: 12px !important; width: calc(var(--pw) - 12px) !important;
    background: color-mix(in srgb, var(--ground) 94%, var(--ink)) !important; border: 0 !important; border-radius: 26px; padding: 14px 26px 32px !important;
    -webkit-mask-image: none !important; mask-image: none !important; overscroll-behavior: contain; z-index: 6; transition: bottom .45s var(--ease); }
  html.tablet .stage-tools { transition: left .45s var(--ease); }
  /* the outline beside the vase, close to the card */
  html.tablet #p-shape:not([hidden]) .profile-wrap { position: fixed; z-index: 3; top: calc(var(--navh) + 40px); right: calc(var(--panel) + 22px); width: 160px; margin: 0; padding: 0; }
  html.tablet #p-shape #profile { height: min(300px, calc(100vh - var(--navh) - 210px)) !important; max-height: none !important; width: 100%; }
  html.tablet .profile-wrap .reset { position: absolute; top: -4px; right: 0; z-index: 1; }
  html.tablet .rail .shapes { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; row-gap: 2px !important; }
  html.tablet .rail .shapes .shape svg { height: 46px !important; }
  html.tablet #p-paint .palettes > * { height: 30px !important; }
  /* the grip under the card */
  html.tablet .sheet-grip { display: grid !important; place-items: center; position: fixed; z-index: 7 !important; top: calc(100vh - 12px - 22px); left: calc(100vw - 12px - (var(--pw) - 12px) / 2); transform: translateX(-50%); width: 96px; height: 22px; padding: 0; border: 0; background: none; transition: top .45s var(--ease); }
  html.tablet .sheet-grip i { display: block; width: 40px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 28%, transparent); }
  html.tablet .sheet-grip:hover i { background: color-mix(in srgb, var(--ink) 55%, transparent); }
  /* folded: only the tabs stay, the vase takes the whole width */
  html.tablet.sheet-down { --panel: 0px; }
  html.tablet.sheet-down .rail { bottom: calc(100vh - var(--navh) - 4px - var(--foldh)) !important; overflow: hidden; }
  html.tablet.sheet-down .sheet-grip { top: calc(var(--navh) + 4px + var(--foldh) - 24px); }
  html.tablet.sheet-down #p-shape .profile-wrap { display: none !important; }
  html.tablet.sheet-down .step-tabs [aria-selected="true"] { color: var(--ink-2) !important; }
  html.tablet.sheet-down .step-tabs .tab-line { opacity: 0; }
}
@media (orientation: landscape) and (min-width: 1300px) { html.tablet { --pw: 452px; } html.tablet #p-shape:not([hidden]) .profile-wrap { width: 180px; } }
@media (orientation: landscape) {
  html.tablet .rail { padding-bottom: 56px !important; }
  html.tablet #p-shape:not([hidden]) .profile-wrap { top: calc(var(--navh) + 96px); width: 190px; }
  html.tablet.sheet-down .rail .pane { visibility: hidden; }
}
@media (orientation: landscape) and (min-width: 1300px) { html.tablet #p-shape:not([hidden]) .profile-wrap { width: 220px; top: calc(var(--navh) + 130px); } }
html.tablet .rail .takes .take:not(:first-child) { background: color-mix(in srgb, var(--ground) 70%, #fff) !important; }
html.tablet .rail .takes .take:not(:first-child):hover { background: color-mix(in srgb, var(--ground) 45%, #fff) !important; }

/* ===== patch 76: the name block sits in the middle of the screen; the line under the name is quieter, with more room before the facts.
   Save, Screensaver and Surprise me are the three that matter, all three pills */
@media (min-width: 701px) {
  html:not(.tablet) .about { margin-bottom: calc(var(--navh) - 40 * var(--u)) !important; }   /* the page pads more on top (the nav) than below: even it out */
  html:not(.tablet) .about .desc { font-size: calc(12.5 * var(--u)) !important; line-height: 1.55 !important; margin-bottom: calc(22 * var(--u)) !important; }
}
html body .vase-acts #surprise { height: 44px !important; padding: 0 22px !important; border-radius: 999px !important; box-shadow: inset 0 0 0 1.5px var(--ink) !important; font-weight: 500; margin-right: 10px !important; }
html body .vase-acts #surprise::after { display: none !important; }
html body .vase-acts #surprise:hover { background: var(--ink) !important; color: var(--ground) !important; }
html body .vase-acts #saverBtn { margin-right: 0 !important; }
@media (max-width: 700px), (max-height: 520px) and (orientation: landscape) and (max-width: 1000px) {
  html body .vase-acts #surprise { height: 38px !important; padding: 0 14px !important; margin-right: 0 !important; }
}
@media (max-height: 520px) and (orientation: landscape) and (max-width: 1000px) { html:not(.tablet) body .vase-acts #surprise { height: 36px !important; } }
/* screensaver on Plain: just the paper colour, no light behind */
html.saver:not(.ss-floor) { background: var(--ground) !important; }

/* the bouquet's label: its words were taken by the bouquet's own span colour (dark on dark). Solid, and it opens upward, no fade */
html body .bouquet .bq-tip { color: var(--ground) !important; font-size: 13px !important; letter-spacing: 0 !important; text-transform: none !important; padding: 9px 16px; opacity: 1 !important; transform: translate(-50%, -6px) !important; clip-path: inset(100% 0 0 0 round 999px); transition: clip-path .4s var(--ease) !important; }
html body .bouquet:hover .bq-tip, html body .bouquet:focus-visible .bq-tip { clip-path: inset(0 0 0 0 round 999px); }
/* Focus as an icon: a round button, a solid ring on hover, filled while on */
html body .vase-acts #focusBtn.va-icon { width: 44px !important; height: 44px !important; padding: 0 !important; border-radius: 50% !important; justify-content: center; box-shadow: none !important; background: none !important; }
html body .vase-acts #focusBtn.va-icon::after { display: none !important; }
html body .vase-acts #focusBtn.va-icon:hover { box-shadow: inset 0 0 0 1.5px var(--ink) !important; }
html body .vase-acts #focusBtn.va-icon[aria-pressed="true"] { background: var(--ink) !important; color: var(--ground) !important; }
html body .vase-acts #focusBtn.va-icon svg { display: block !important; width: 20px !important; height: 20px !important; }
/* the drawer pictures at one scale: the picture is placed by script; hover lifts the whole tile instead */
.drawer-list .dw-pic.dw-scaled img { aspect-ratio: 4 / 5; }
.drawer-list button:hover .dw-pic.dw-scaled img { transform: translate(-50%, var(--ty, -62%)); }
.drawer-list .dw-pic.dw-scaled { transition: translate .4s var(--ease); }
.drawer-list button:hover .dw-pic.dw-scaled { translate: 0 -3px; }
.drawer-list .dw-pic > .edge { z-index: 3; }   /* the outline stays on top of the scaled picture, top edge included */
/* screensaver background: one colour you pick, over each vase's own paper */
html.saver.ss-bg { --ground: var(--ssbg) !important; }
#saverSheet.ss-ed .ss-bgs { align-items: center; }
#saverSheet.ss-ed .ss-bgs .ss-sw { width: 22px !important; height: 22px !important; padding: 0 !important; border-radius: 50% !important; background: var(--c) !important; box-shadow: inset 0 0 0 1px rgba(23, 19, 15, .18) !important; }
#saverSheet.ss-ed .ss-bgs .ss-sw::after { display: none; }
#saverSheet.ss-ed .ss-bgs .ss-sw:hover { box-shadow: inset 0 0 0 1px rgba(23, 19, 15, .18), 0 0 0 2px var(--ground), 0 0 0 3.5px var(--ink-2) !important; }
#saverSheet.ss-ed .ss-bgs .ss-sw[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(23, 19, 15, .18), 0 0 0 2px var(--ground), 0 0 0 3.5px var(--ink) !important; }
#saverSheet.ss-ed .ss-row[hidden] { display: none !important; }
/* Save at the right end of the row */
html body .vase-acts #saveBar { order: 9 !important; margin-left: 4px; }
html body .vase-acts #surprise { margin-right: 0 !important; }
/* clicks answer more slowly everywhere: presses sink and come back over a beat, lines and pills glide instead of snapping */
.btn, .next-step, #patterns .tp canvas, .vase-acts button, .seg button, .step-tabs button, .shapes .shape, .cdot i, .mat i, .palettes > * { transition-duration: .5s !important; transition-timing-function: cubic-bezier(.22, 1, .36, 1) !important; }
.btn:active, .next-step:active, .vase-acts button:active { scale: .96; transition-duration: .18s !important; }
.tab-line { transition-duration: .7s !important; }
#saverSheet.ss-ed .ss-opts button::after { transition-duration: .7s !important; }
html body .vase-acts #focusBtn.va-icon { transition: box-shadow .5s cubic-bezier(.22, 1, .36, 1), background-color .5s cubic-bezier(.22, 1, .36, 1), color .5s cubic-bezier(.22, 1, .36, 1) !important; }
html body .vase-acts #focusBtn { order: -1 !important; }   /* the frame icon leads the row; Save closes it */
#roomBtn { display: none !important; }   /* "In your room" is set aside for now */
html body #p-take .takes #roomBtn { display: none !important; }
/* Take home: Save across the top, then three even icon tiles, then the print height */
html body #p-take .takes { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
html body #p-take .takes > #save { grid-column: 1 / -1 !important; order: 0; }
html body #p-take .takes > .take-ic { grid-column: auto !important; order: 1; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 10px; min-height: 112px; padding: 18px 8px !important; text-align: center; }
html body #p-take .takes > .take-ic i { display: block; line-height: 0; color: var(--ink); transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
html body #p-take .takes > .take-ic:hover i { transform: translateY(-3px); }
html body #p-take .takes > .take-ic span { display: block !important; }
html body #p-take .takes > .take-ic b { font-size: 17px !important; line-height: 1.1; white-space: nowrap; }
html body #p-take .takes > .print-row { grid-column: 1 / -1 !important; order: 2; }
html body #p-take .takes > .take-ic:not(#save) { order: 1 !important; align-items: center !important; justify-content: center !important; text-align: center !important; }
html body #p-take .takes > #save:not(.take-ic) { order: 0 !important; }
html body #p-take .takes > .print-row:not(.take) { order: 2 !important; }
/* Take home tiles: a real preview of what each gives you, then its name */
html body #p-take .takes > .take-ic:not(#save) { justify-content: flex-start !important; gap: 10px; padding: 10px 10px 14px !important; min-height: 0; }
html body #p-take .takes > .take-ic i.tk-art { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; line-height: 0; }
html body #p-take .takes > .take-ic i.tk-art canvas { width: 100%; height: 100%; display: block; }
html body #p-take .takes > .take-ic i.tk-plan { background: color-mix(in srgb, var(--ground) 70%, #fff); padding: 6px; box-sizing: border-box; }
html body #p-take .takes > .take-ic i.tk-card { background: color-mix(in srgb, var(--ground) 82%, var(--ink)); }
html body #p-take .takes > .take-ic:hover i.tk-art { transform: translateY(-3px); }
html body #p-take .takes > .take-ic b { font-size: 16px !important; }
html body #p-take .takes > .take-ic .tk-sub { display: block; margin-top: 3px; font-style: normal; font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }
html body #p-take .takes > .take-ic[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px var(--ink) !important; }
html body #p-take .takes > .print-step { grid-column: 1 / -1 !important; order: 2 !important; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; }
html body #p-take .takes > .print-step[hidden] { display: none !important; }
html body #p-take .takes > .print-step .print-row { margin: 0; }
html body #p-take .takes > .print-step .btn { height: 40px; padding: 0 18px; white-space: nowrap; }
html body #p-take .takes > .print-step { grid-template-columns: 1fr !important; gap: 10px; }
html body #p-take .takes > .print-step .print-row { display: grid !important; grid-template-columns: 70px minmax(0, 1fr) 84px !important; }
html body #p-take .takes > .print-step .btn { justify-self: stretch; }
/* the three previews on one light ground, corners concentric with the tile (tile radius minus its 10px padding) */
html body #p-take .takes > .take-ic i.tk-art, html body #p-take .takes > .take-ic i.tk-card, html body #p-take .takes > .take-ic i.tk-pic, html body #p-take .takes > .take-ic i.tk-plan { background: color-mix(in srgb, var(--ground) 62%, #fff) !important; border-radius: calc(var(--tk-r, 22px) - 10px) !important; }
html body #p-take .takes > .take-ic:not(#save) { --tk-r: 22px; border-radius: var(--tk-r) !important; }
html body #p-take .takes > .take-ic i.tk-plan svg { transform: scale(.86); }

/* ===== patch 77: Take home as a quiet list, like the rest of the tools: a name, a short line, a small picture of what you get; hairlines between */
html body #p-take .takes { display: flex !important; flex-direction: column !important; gap: 0 !important; }
html body #p-take .takes > .take.take-ic, html body #p-take .takes > .take.take-ic:not(#save), html body #p-take .takes > #save.take-ic {
  order: 1 !important; display: grid !important; grid-template-columns: minmax(0, 1fr) 76px !important; align-items: center !important; justify-items: start !important; gap: 16px !important;
  width: 100%; min-height: 0 !important; padding: 14px 0 !important; margin: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; color: var(--ink) !important; text-align: left !important; border-top: 1px solid var(--hair) !important; }
html body #p-take .takes > #save.take-ic { order: 0 !important; border-top: 0 !important; }
html body #p-take .takes > #stl { order: 1 !important; } html body #p-take .takes > .print-step { order: 2 !important; padding: 0 0 14px; } html body #p-take .takes > #png { order: 3 !important; } html body #p-take .takes > #share { order: 4 !important; }
html body #p-take .takes > .take-ic i.tk-art { grid-column: 2; grid-row: 1; width: 76px !important; height: 76px; border-radius: 14px !important; background: color-mix(in srgb, var(--ground) 62%, #fff) !important; padding: 0 !important; }
html body #p-take .takes > .take-ic i.tk-save { background: var(--ground) !important; box-shadow: inset 0 0 0 1px var(--hair); }
html body #p-take .takes > .take-ic span { grid-column: 1; grid-row: 1; }
html body #p-take .takes > .take-ic b { display: block; font-family: "PottleHead", "DM Serif Display", Georgia, serif !important; font-weight: 400 !important; font-size: 24px !important; line-height: 1.05; color: var(--ink) !important; }
html body #p-take .takes > .take-ic .tk-sub, html body #p-take .takes > .take-ic em { display: block !important; margin-top: 5px; font-style: normal; font-size: 12.5px !important; color: var(--ink-2) !important; white-space: normal; }
html body #p-take .takes > .take-ic b { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .6s cubic-bezier(.22, 1, .36, 1); padding-bottom: 2px; justify-self: start; display: inline; }
html body #p-take .takes > .take-ic:hover b, html body #p-take .takes > .take-ic[aria-expanded="true"] b { background-size: 100% 1.5px; }
html body #p-take .takes > .take-ic:hover i.tk-art { transform: none; }
html body #p-take .takes > .take-ic[aria-expanded="true"] { box-shadow: none !important; }
html body #p-take .takes > #stl.take.take-ic:not(#save) { order: 1 !important; }
html body #p-take .takes > #png.take.take-ic:not(#save) { order: 3 !important; }
html body #p-take .takes > #share.take.take-ic:not(#save) { order: 4 !important; }
html body #p-take .takes > div.print-step { order: 2 !important; }
html body #p-take .takes > .take-ic i.tk-save { background: color-mix(in srgb, var(--ground) 62%, #fff) !important; box-shadow: none !important; }
/* Take home pictures: the thumbnail is the paper itself (no box in a box); the line drawing draws itself */
html body #p-take .takes > .take-ic i.tk-paper { background: var(--ground) !important; box-shadow: inset 0 0 0 1px var(--hair) !important; }
html body #p-take .takes > .take-ic i.tk-card, html body #p-take .takes > .take-ic i.tk-plan { background: color-mix(in srgb, var(--ground) 62%, #fff) !important; box-shadow: none !important; }
html body #p-take .takes > .take-ic i.tk-art canvas { width: 100% !important; height: 100% !important; }
#p-take .tk-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tkDraw 1.6s cubic-bezier(.65, 0, .35, 1) .15s forwards; }
#p-take .tk-dim { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tkDraw .8s cubic-bezier(.65, 0, .35, 1) 1.4s forwards; }
#p-take .tk-plan text { opacity: 0; animation: tkShow .01s linear 2.1s forwards; }
@keyframes tkDraw { to { stroke-dashoffset: 0; } }
@keyframes tkShow { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #p-take .tk-line, #p-take .tk-dim { animation: none; stroke-dashoffset: 0; } #p-take .tk-plan text { animation: none; opacity: 1; } }
/* the screensaver is what Pottle is for: its button is the one in ink; Save steps back to a line */
html body .vase-acts #saverBtn { background: var(--ink) !important; color: var(--ground) !important; box-shadow: none !important; }
html body .vase-acts #saverBtn:hover { background: color-mix(in srgb, var(--ink) 80%, var(--ground)) !important; }
html body .vase-acts #saveBar { background: none !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink) !important; }
html body .vase-acts #saveBar:hover { background: var(--ink) !important; color: var(--ground) !important; }
/* screensaver background: one even row of rounded swatches; the first is every vase's own paper; the choice is named beside the heading */
#saverSheet.ss-ed .ss-bgrow > span { display: flex !important; justify-content: space-between; align-items: baseline; }
#saverSheet.ss-ed .ss-bgrow > span b { font-weight: 400; color: var(--ink); font-size: 12px; }
#saverSheet.ss-ed .ss-bgs { display: grid !important; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 5px !important; }
#saverSheet.ss-ed .ss-bgs .ss-sw { width: 100% !important; height: auto !important; aspect-ratio: 1; border-radius: 9px !important; padding: 0 !important; background: var(--c) !important; box-shadow: inset 0 0 0 1px rgba(23, 19, 15, .14) !important; transition: box-shadow .5s cubic-bezier(.22, 1, .36, 1) !important; }
#saverSheet.ss-ed .ss-bgs .ss-each { background: conic-gradient(#ffd23f 0 25%, #ff9f80 0 50%, #bfe3ff 0 75%, #c9f0dc 0) !important; }
#saverSheet.ss-ed .ss-bgs .ss-sw:hover { box-shadow: inset 0 0 0 1px rgba(23, 19, 15, .14), 0 0 0 2px var(--ground), 0 0 0 3px var(--ink-2) !important; }
#saverSheet.ss-ed .ss-bgs .ss-sw[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(23, 19, 15, .14), 0 0 0 2px var(--ground), 0 0 0 3.5px var(--ink) !important; }
/* Angle: three words, not a slider */
#saverSheet.ss-ed .ss-pick { grid-template-columns: 92px minmax(0, 1fr) !important; }
#saverSheet.ss-ed .ss-pick .ss-opts { gap: 4px 14px; }
#saverSheet.ss-ed .ss-pick .ss-opts button { font-size: 13px !important; }
html.saver.ss-bg-dark { --ink: #f6f1ea !important; --ink-2: rgba(246, 241, 234, .66) !important; --hair: rgba(246, 241, 234, .2) !important; color: var(--ink); }
html.saver.ss-bg-dark #saverSheet.ss-ed .ss-go #saverPlay { background: #f6f1ea !important; color: #17130f !important; }

/* ===== patch 78: the screensaver panel, easier: pictures for the layout, words for the rest, two switches, one slider or two */
#saverSheet.ss-ed .ss-lays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#saverSheet.ss-ed .ss-lays button { display: grid; justify-items: center; gap: 6px; padding: 12px 4px 10px !important; border-radius: 14px !important; background: none !important; color: var(--ink-2) !important; box-shadow: inset 0 0 0 1px var(--hair) !important; height: auto !important; font-size: 13px !important; transition: box-shadow .5s cubic-bezier(.22, 1, .36, 1), color .5s cubic-bezier(.22, 1, .36, 1) !important; }
#saverSheet.ss-ed .ss-lays button i { font-style: normal; }
#saverSheet.ss-ed .ss-lays button::after { display: none !important; }
#saverSheet.ss-ed .ss-lays button:hover { color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--ink-2) !important; }
#saverSheet.ss-ed .ss-lays button[aria-pressed="true"] { color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink) !important; }
#saverSheet.ss-ed .ss-toggles { display: flex; gap: 8px; margin-top: 12px; }
#saverSheet.ss-ed .ss-toggles button { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: inherit; font-size: 13px; box-shadow: inset 0 0 0 1px var(--hair); cursor: pointer; transition: box-shadow .5s cubic-bezier(.22, 1, .36, 1), color .5s cubic-bezier(.22, 1, .36, 1); }
#saverSheet.ss-ed .ss-toggles button::before { content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transition: background-color .5s cubic-bezier(.22, 1, .36, 1); }
#saverSheet.ss-ed .ss-toggles button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
#saverSheet.ss-ed .ss-toggles button[aria-pressed="true"]::before { background: var(--ink); }
#saverSheet.ss-ed .ss-toggles button[hidden] { display: none; }
#saverSheet.ss-ed .ss-motion { display: grid !important; gap: 10px; }
#saverSheet.ss-ed .ss-line { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: baseline; }
#saverSheet.ss-ed .ss-line > span { font-size: 12px; color: var(--ink-2); }
#saverSheet.ss-ed .ss-line .ss-opts { gap: 4px 14px; }
#saverSheet.ss-ed .ss-line .ss-opts button { font-size: 13.5px !important; }
html body #saverSheet.ss-ed .ss-lays button svg { display: block !important; width: 48px !important; height: 32px !important; }
html body #saverSheet.ss-ed .ss-row .ss-toggles button { width: auto !important; min-width: 0 !important; height: 32px !important; padding: 0 14px 0 10px !important; border-radius: 999px !important; background: none !important; color: var(--ink-2) !important; box-shadow: inset 0 0 0 1px var(--hair) !important; font-size: 13px !important; text-indent: 0 !important; }
html body #saverSheet.ss-ed .ss-row .ss-toggles button[aria-pressed="true"] { color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink) !important; }
html body #saverSheet.ss-ed .ss-row .ss-toggles button[hidden] { display: none !important; }
html body .vase-acts #saverBtn { gap: 8px; padding-left: 18px !important; }
html body .vase-acts #saverBtn .va-ss-ic { display: block !important; flex: none; }
/* the handles stand beside the outline, one above another */
.shape-pair { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 12px; align-items: center; }
.shape-pair .profile-wrap { min-width: 0; }
.handle-side { display: grid; justify-items: center; gap: 8px; align-self: center; }
.handle-side > span { font-size: 12px; color: var(--ink-2); }
html body .handle-side .handle-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 6px !important; width: 100%; }
html.tablet .shape-pair { display: block; }
html.tablet .handle-side { display: grid; grid-template-columns: auto 1fr; align-items: center; justify-items: start; margin-top: 10px; }
html.tablet .handle-side .handle-grid { grid-template-columns: repeat(3, 56px) !important; }
@media (max-width: 700px) { .shape-pair { display: block; } .handle-side { grid-template-columns: auto 1fr; justify-items: start; } html body .handle-side .handle-grid { grid-template-columns: repeat(3, 56px) !important; } }
/* Take home pictures: no frame, no ground behind them; just the thing itself */
html body #p-take .takes > .take-ic i.tk-art, html body #p-take .takes > .take-ic i.tk-paper, html body #p-take .takes > .take-ic i.tk-card, html body #p-take .takes > .take-ic i.tk-plan { background: none !important; box-shadow: none !important; overflow: visible !important; border-radius: 0 !important; }
html body #p-take .takes > .take-ic i.tk-art { width: 84px !important; height: 84px; }
html body #p-take .takes > .take.take-ic { grid-template-columns: minmax(0, 1fr) 84px !important; }
/* handles beside the outline: no heading, smaller icons */
.handle-side > span { display: none !important; }
.shape-pair { grid-template-columns: minmax(0, 1fr) 40px !important; }
html body .handle-side .handle-grid { gap: 2px !important; }
html body .handle-side .handle-grid > * { padding: 4px 0 !important; min-height: 0 !important; }
html body .handle-side .handle-grid svg, html body .handle-side .handle-grid canvas { width: 26px !important; height: 26px !important; }
html body .handle-side .handle-grid svg, html body .handle-side .handle-grid canvas { width: 34px !important; height: 34px !important; }
/* handles beside the outline: three vases, roomy to hit, the chosen one in ink */
.shape-pair { grid-template-columns: minmax(0, 1fr) 72px !important; }
html body .handle-side .handle-grid { gap: 14px !important; }
html body .handle-side .handle-grid > button { display: grid !important; place-items: center; width: 72px !important; height: 52px !important; padding: 0 !important; border-radius: 12px !important; }
html body .handle-side .handle-grid > button span { display: none !important; }
html body .handle-side .handle-grid svg { width: 64px !important; height: 40px !important; }
html body .handle-side .handle-grid > button[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px var(--ink) !important; }
html body .handle-side .handle-grid > button::after { display: none !important; }
/* Undo and Redo as arrows */
html body .vase-acts #undo, html body .vase-acts #redo { width: 40px !important; padding: 0 !important; justify-content: center; }
html body .vase-acts #undo::after, html body .vase-acts #redo::after { display: none !important; }
html body .vase-acts #undo svg, html body .vase-acts #redo svg { display: block !important; width: 20px !important; height: 20px !important; }
html body .vase-acts #undo:hover:not(:disabled) svg, html body .vase-acts #redo:hover:not(:disabled) svg { transform: translateY(-2px); transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
#p-shape .step-links, #p-paint .step-links { display: none !important; }   /* the tabs at the top already take you there */

/* the speaker button: sound is off until you ask for it */
.snd-btn { position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink, #17130f); box-shadow: inset 0 0 0 1.5px var(--hair, rgba(23,19,15,.2)); cursor: pointer; transition: box-shadow .5s cubic-bezier(.22, 1, .36, 1), background-color .5s cubic-bezier(.22, 1, .36, 1), color .5s cubic-bezier(.22, 1, .36, 1); }
.snd-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink, #17130f); }
.snd-btn[aria-pressed="true"] { background: var(--ink, #17130f); color: var(--ground, #fbf6ee); box-shadow: none; }
html.saver .snd-btn, html.room-on .snd-btn { display: none; }
@media (max-width: 700px) { .snd-btn { top: calc(var(--navh, 56px) + 8px); bottom: auto; right: 12px; width: 34px; height: 34px; } }
/* going between the pages: the new page rises over the old one */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: pgRise .7s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes pgRise { from { clip-path: inset(100% 0 0 0 round 28px 28px 0 0); } to { clip-path: inset(0 0 0 0 round 0); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-new(root) { animation: none; } }

/* ===== patch 79: phones and tablets */
@media (max-width: 700px) {
  /* the row under the vase: short words, nothing cut */
  html body .vase-acts #saverBtn span { font-size: 0 !important; }
  html body .vase-acts #saverBtn span::after { content: "Screensaver"; font-size: 14px; }
  html body .vase-acts #saverBtn .va-ss-ic { display: none !important; }
  html body .vase-acts #saverBtn { padding: 0 14px !important; gap: 0; }
  html body .vase-acts #undo, html body .vase-acts #redo { width: 32px !important; }
  html body .vase-acts #saveBar { margin-left: 0; }
  /* Take home: four small tiles in one row, picture over name */
  html body #p-take .takes { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; }
  html body #p-take .takes > .take.take-ic, html body #p-take .takes > .take.take-ic:not(#save), html body #p-take .takes > #save.take-ic { grid-template-columns: 1fr !important; justify-items: center !important; gap: 4px !important; padding: 4px 0 !important; border-top: 0 !important; text-align: center !important; }
  html body #p-take .takes > .take-ic i.tk-art { grid-column: 1 !important; grid-row: 1 !important; width: 58px !important; height: 58px !important; }
  html body #p-take .takes > .take-ic span { grid-column: 1 !important; grid-row: 2 !important; }
  html body #p-take .takes > .take-ic b { font-size: 13px !important; white-space: nowrap; font-family: inherit !important; font-weight: 500 !important; }
  html body #p-take .takes > .take-ic .tk-sub, html body #p-take .takes > .take-ic em { display: none !important; }
  html body #p-take .takes > #save b { font-size: 0 !important; } html body #p-take .takes > #save b::after { content: "Save"; font-size: 13px; }
  html body #p-take .takes > #stl b { font-size: 0 !important; } html body #p-take .takes > #stl b::after { content: "3D print"; font-size: 13px; }
  html body #p-take .takes > div.print-step { grid-column: 1 / -1 !important; order: 9 !important; }
  /* the screensaver settings as a sheet: every row its own block, nothing overlapping */
  html body #saverSheet.ss-ed { max-height: 58svh; padding: 16px 16px 12px !important; }
  #saverSheet.ss-ed .ss-row { display: block !important; padding: 9px 0 !important; }
  #saverSheet.ss-ed .ss-row > span { display: block !important; margin: 0 0 6px !important; }
  #saverSheet.ss-ed .ss-bgrow > span { display: flex !important; }
  #saverSheet.ss-ed .ss-lays button { padding: 8px 4px 7px !important; }
  html body #saverSheet.ss-ed .ss-lays button svg { width: 40px !important; height: 26px !important; }
  #saverSheet.ss-ed .ss-motion { display: grid !important; gap: 6px; }
  #saverSheet.ss-ed .ss-line { grid-template-columns: 58px minmax(0, 1fr); }
  #saverSheet.ss-ed .ss-h { font-size: 22px; margin-bottom: 4px; }
  html.saver.ss-live .stage { bottom: 58svh !important; }
}
/* tablets: the screensaver takes the whole screen beside its panel, upright or sideways */
html.tablet.saver .stage { top: 0 !important; left: 0 !important; bottom: 0 !important; height: auto !important; right: 0 !important; }
html.tablet.saver.ss-live .stage { right: 360px !important; }
html.tablet.saver .sheet-grip, html.tablet.saver .rail, html.tablet.saver .about { display: none !important; }
@media (max-width: 700px) {
  #saverSheet.ss-ed .ss-motion { grid-template-columns: 1fr !important; }
  html body #p-take .takes > #save.take.take-ic { grid-column: auto !important; }
}

/* ===== the toast, one rule over all the older ones: one line, sized to its words, never wider than the screen */
html body .toast, html body .toast.on { box-sizing: border-box; width: max-content !important; max-width: calc(100vw - 32px) !important; display: flex !important; align-items: center; gap: 14px; white-space: nowrap !important; font-size: 14px !important; line-height: 1.2 !important; letter-spacing: 0 !important; padding: 12px 20px !important; }
html body .toast .toast-msg { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html body .toast a { flex: none; white-space: nowrap; font-size: inherit !important; }
@media (max-width: 700px) { html body .toast, html body .toast.on { font-size: 13.5px !important; padding: 11px 18px !important; z-index: 60; } body:has(.toast.on) .snd-btn { visibility: hidden; } }
/* phone: the three pills under the vase share one type size, weight and height; the handle pictures fit their buttons */
@media (max-width: 700px) {
  html body .vase-acts #saverBtn, html body .vase-acts #surprise, html body .vase-acts #saveBar { height: 40px !important; padding: 0 16px !important; font-size: 14px !important; font-weight: 500 !important; letter-spacing: 0 !important; line-height: 1 !important; }
  html body .vase-acts #saverBtn span::after { font-size: 14px !important; font-weight: 500 !important; }
  html body .vase-acts #surprise .va-long { display: none !important; }
  html body .handle-side .handle-grid > button { width: 64px !important; height: 48px !important; }
  html body .handle-side .handle-grid svg { width: 56px !important; height: 35px !important; }
}

/* ===== patch 80: phone type, all checked by eye */
@media (max-width: 700px) {
  /* Take home: the four names in one size */
  html body #p-take .takes > .take.take-ic b, html body #p-take .takes > .take.take-ic:not(#save) b, html body #p-take .takes > #save.take-ic b { font-size: 13px !important; font-family: inherit !important; font-weight: 500 !important; line-height: 1.2 !important; letter-spacing: 0 !important; }
  html body #p-take .takes > #save.take-ic b, html body #p-take .takes > #stl.take-ic b { font-size: 0 !important; }
  html body #p-take .takes > #save.take-ic b::after, html body #p-take .takes > #stl.take-ic b::after { font-size: 13px !important; font-weight: 500; }
  /* screensaver settings: the two big buttons sit under the rows, on the panel's own colour, never over them */
  html body #saverSheet.ss-ed { padding-bottom: 0 !important; }
  #saverSheet.ss-ed .ss-go { position: sticky !important; bottom: 0 !important; z-index: 2; margin: 8px -16px 0 !important; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important; background: var(--ground) !important; border-top: 1px solid var(--hair); }
  #saverSheet.ss-ed .ss-go button { height: 42px !important; font-size: 14px !important; }
  #saverSheet.ss-ed .ss-done { display: none !important; }
  /* the speaker sits in the top bar, beside Shelf */
  body:has(#stage) .snd-btn { top: calc((var(--navh, 64px) - 34px) / 2 + env(safe-area-inset-top, 0px)) !important; right: 108px !important; bottom: auto !important; box-shadow: none !important; }
  body:has(#stage) .snd-btn[aria-pressed="false"] { color: var(--ink-2, rgba(23,19,15,.6)); }
}
@media (max-width: 700px) { #saverSheet.ss-ed .ss-go button { white-space: nowrap !important; padding: 0 12px !important; } #saverSheet.ss-ed .ss-go .ss-left { font-size: 12px; } }
@media (max-width: 400px) { #saverSheet.ss-ed .ss-go .ss-left { display: none; } }
/* phone Take home names: the real words, no swapped-in text */
@media (max-width: 700px) {
  html body #p-take .takes > .take-ic b, html body #p-take .takes > #save.take-ic b, html body #p-take .takes > #stl.take-ic b, html body #p-take .takes > .take.take-ic:not(#save) b { font-size: 13px !important; }
  html body #p-take .takes > .take-ic b::after, html body #p-take .takes > #save.take-ic b::after, html body #p-take .takes > #stl.take-ic b::after { content: none !important; display: none !important; }
  html body #p-take .takes > #save .tk-long { display: none; }
  /* the screensaver panel keeps its own edge; the two buttons sit inside it */
  #saverSheet.ss-ed .ss-go { margin: 6px 0 0 !important; padding: 10px 0 calc(12px + env(safe-area-inset-bottom)) !important; border-top: 0 !important; box-shadow: 0 -14px 14px -6px var(--ground); }
}
@media (max-width: 700px) { html body #p-take .takes > #save.take-ic .tk-long { display: none !important; } }

/* ===== the sound switch: only inside the flowers tools and the screensaver settings, never floating over the page */
html body .snd-btn { position: static !important; inset: auto !important; display: inline-grid !important; place-items: center; width: 36px !important; height: 36px !important; flex: none; margin: 0 !important; padding: 0 !important; border: 0; border-radius: 50%; background: none !important; color: var(--ink-2, rgba(23,19,15,.6)) !important; box-shadow: inset 0 0 0 1.5px var(--hair, rgba(23,19,15,.2)) !important; visibility: visible !important; cursor: pointer; transition: box-shadow .5s cubic-bezier(.22, 1, .36, 1), color .5s cubic-bezier(.22, 1, .36, 1), background-color .5s cubic-bezier(.22, 1, .36, 1); }
html body .snd-btn:hover { color: var(--ink, #17130f) !important; box-shadow: inset 0 0 0 1.5px var(--ink, #17130f) !important; }
html body .snd-btn[aria-pressed="true"] { background: var(--ink, #17130f) !important; color: var(--ground, #fbf6ee) !important; box-shadow: none !important; }
#saverSheet.ss-ed .ss-top { display: flex; align-items: center; justify-content: space-between; margin: 0 0 18px; }
#saverSheet.ss-ed .ss-top .ss-h { margin: 0 !important; }

/* ===== patch 81: phone tools, one sideways row each */
@media (max-width: 700px) {
  /* shapes, a line, then the handles: one row you swipe */
  html body .ph-row { display: flex !important; align-items: center; gap: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  html body .ph-row::-webkit-scrollbar { display: none; }
  html body .ph-row > #shapes { display: flex !important; flex: none; gap: 6px !important; grid-template-columns: none !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; }
  html body .ph-row > #shapes .shape { flex: none; width: 52px !important; scroll-snap-align: start; }
  html body .ph-row > .handle-side { display: flex !important; flex: none; align-items: center; margin: 0 0 0 14px !important; padding-left: 14px; border-left: 1px solid var(--hair); height: 56px; grid-template-columns: none !important; }
  html body .ph-row > .handle-side > span { display: none !important; }
  html body .ph-row > .handle-side .handle-grid { display: flex !important; gap: 6px !important; width: auto !important; grid-template-columns: none !important; }
  html body .ph-row > .handle-side .handle-grid > button { width: 56px !important; height: 52px !important; display: grid !important; place-items: center !important; padding: 0 !important; margin: 0 !important; border-radius: 12px !important; }
  html body .ph-row > .handle-side .handle-grid > button svg { display: block; width: 50px !important; height: 32px !important; margin: 0 !important; }
  html body .ph-row > .handle-side .handle-grid > button span { display: none !important; }
  /* patterns: one row, swiped like a slider */
  html body #patterns { display: flex !important; grid-template-columns: none !important; gap: 8px !important; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 8px; scroll-snap-type: x proximity; }
  html body #patterns::-webkit-scrollbar { display: none; }
  html body #patterns .tp { flex: none; width: 58px; scroll-snap-align: start; }
  html body .pat-cats { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
  html body .pat-cats::-webkit-scrollbar { display: none; }
  html body .pat-cats button { flex: none; white-space: nowrap; }
}
@media (max-width: 700px) { html body .ph-row, html body #patterns, html body .pat-cats { margin-left: 0 !important; margin-right: 0 !important; padding-left: 2px !important; padding-right: 2px !important; } html body .ph-row > #shapes .shape:first-child { margin-left: 0 !important; } }

/* ===== patch 82: iPad upright, the tools take only the room they need */
@media (orientation: portrait) {
  html.tablet { --railh: 300px; --stageh: calc(100vh - var(--navh) - var(--railh)); }
  html.tablet.sheet-down { --stageh: calc(100vh - var(--navh) - 74px); }
  html.tablet .rail { padding: 16px 32px 24px !important; }
  html.tablet .rail > .step-tabs { margin-bottom: 4px; }
  /* shapes, a line, the handles: one row */
  html.tablet .ph-row { display: flex !important; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; }
  html.tablet .ph-row::-webkit-scrollbar { display: none; }
  html.tablet .ph-row > #shapes { display: flex !important; flex: none; gap: 4px !important; margin: 0 !important; grid-template-columns: none !important; }
  html.tablet .ph-row > #shapes .shape { flex: none; width: 46px !important; }
  html.tablet .ph-row > #shapes .shape svg { height: 42px !important; }
  html.tablet .ph-row > .handle-side { display: flex !important; flex: none; align-items: center; margin: 0 0 0 12px !important; padding-left: 12px; border-left: 1px solid var(--hair); height: 50px; }
  html.tablet .ph-row > .handle-side > span { display: none !important; }
  html.tablet .ph-row > .handle-side .handle-grid { display: flex !important; gap: 4px !important; width: auto !important; grid-template-columns: none !important; }
  html.tablet .ph-row > .handle-side .handle-grid > button { width: 52px !important; height: 46px !important; display: grid !important; place-items: center !important; padding: 0 !important; margin: 0 !important; border-radius: 12px !important; }
  html.tablet .ph-row > .handle-side .handle-grid > button svg { width: 46px !important; height: 30px !important; margin: 0 !important; }
  html.tablet .ph-row > .handle-side .handle-grid > button span { display: none !important; }
  /* sliders three across */
  html.tablet .rail .pane:not([hidden]) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; column-gap: 28px !important; row-gap: 2px; }
  html.tablet .rail .pane > label.row { grid-template-columns: 64px minmax(0, 1fr) 44px !important; font-size: 13px !important; min-height: 38px !important; }
  html.tablet .rail .pane > label.row output { font-size: 13px; }
  /* patterns: one sideways row */
  html.tablet #patterns { display: flex !important; grid-template-columns: none !important; gap: 8px !important; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; }
  html.tablet #patterns::-webkit-scrollbar { display: none; }
  html.tablet #patterns .tp { flex: none; width: 56px; }
  html.tablet #p-paint .palettes { display: flex !important; grid-template-columns: none !important; overflow-x: auto; scrollbar-width: none; gap: 8px !important; }
  html.tablet #p-paint .palettes > * { flex: none; width: 92px; }
}
@media (orientation: portrait) { html.tablet .ph-row > #shapes { gap: 2px !important; } html.tablet .ph-row > #shapes .shape { width: 42px !important; } html.tablet .ph-row > #shapes .shape svg { height: 38px !important; } }
/* the outline editor sits halfway down the vase's area, upright or sideways */
@media (orientation: portrait) { html.tablet #p-shape:not([hidden]) .profile-wrap { top: calc(var(--navh) + (var(--stageh) - 64px) / 2) !important; transform: translateY(-50%); } }
@media (orientation: landscape) { html.tablet #p-shape:not([hidden]) .profile-wrap { top: calc(var(--navh) + (100vh - var(--navh) - 64px) / 2) !important; transform: translateY(-50%); } }
/* folded tools: a strip that plainly says it opens, and the grip big enough for a thumb */
html.tablet.sheet-down .rail, html.sheet-down .rail { cursor: pointer; }
html.tablet .sheet-grip { width: 120px !important; height: 34px !important; }
html.tablet .sheet-grip i { width: 48px !important; height: 5px !important; transition: transform .5s cubic-bezier(.22, 1, .36, 1), background-color .5s cubic-bezier(.22, 1, .36, 1) !important; }
html.tablet.sheet-down .sheet-grip i { background: var(--ink) !important; transform: scaleX(1.2); }
@media (orientation: portrait) { html.tablet.sheet-down .sheet-grip { top: calc(var(--navh) + var(--stageh) - 4px) !important; } }
/* phone: twelve shapes in two rows of six, a line, then the three handles one above another; nothing to scroll, nothing cut */
@media (max-width: 700px) {
  html body .ph-row { overflow: visible !important; justify-content: space-between; align-items: center; padding: 2px 0 6px !important; }
  html body .ph-row > #shapes { display: grid !important; grid-template-columns: repeat(6, 38px) !important; grid-auto-rows: 44px; gap: 4px 6px !important; }
  html body .ph-row > #shapes .shape { width: 38px !important; height: 44px !important; padding: 0 !important; }
  html body .ph-row > #shapes .shape svg { height: 34px !important; width: auto !important; }
  html body .ph-row > .handle-side { height: auto !important; margin-left: 8px !important; padding-left: 10px !important; align-self: stretch; }
  html body .ph-row > .handle-side .handle-grid { flex-direction: column !important; gap: 2px !important; }
  html body .ph-row > .handle-side .handle-grid > button { width: 48px !important; height: 30px !important; border-radius: 9px !important; }
  html body .ph-row > .handle-side .handle-grid > button svg { width: 44px !important; height: 26px !important; }
}
@media (max-width: 700px) {
  html body .ph-row > #shapes { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; width: auto !important; flex: 1 1 auto !important; min-width: 0; max-width: 260px; padding: 0 !important; gap: 2px 4px !important; }
  html body .ph-row > #shapes .shape { width: auto !important; min-width: 0 !important; }
  html body .ph-row > #shapes .shape svg { height: 32px !important; }
  html body .ph-row > .handle-side { flex: none !important; }
}

/* ===== the share sheet on upright tablets and small phones: picture on top, words and buttons under it, never side by side over each other */
@media (min-width: 701px) and (orientation: portrait), (max-width: 700px) {
  html body .share-sheet { place-items: end center !important; }
  html body .sh-box { grid-template-columns: 1fr !important; gap: 16px !important; width: 100% !important; max-width: 640px; box-sizing: border-box; padding: 20px 24px calc(18px + env(safe-area-inset-bottom)) !important; border-radius: 26px 26px 0 0 !important; max-height: 100svh; overflow-y: auto; }
  html body .sh-pic { height: auto !important; width: min(100%, calc((100svh - 330px) * .8)) !important; justify-self: center; }
  html body .sh-pic[data-f="story"] { width: min(100%, calc((100svh - 330px) * .5625)) !important; }
  html body .sh-side { width: 100% !important; gap: 12px !important; }
  html body .sh-h { display: none !important; }
  html body .sh-sub { min-height: 0 !important; font-size: 13.5px !important; }
  html body .sh-acts { grid-template-columns: 1fr 1fr !important; }
  html body .sh-main { grid-column: 1 / -1; }
  html body .sh-close { align-self: center; }
}
@media (max-height: 700px) and (max-width: 700px) { html body .sh-pic { width: min(100%, calc((100svh - 300px) * .8)) !important; } html body .sh-sub { display: none; } html body .sh-acts button { height: 42px !important; } }

/* ===== patch 83 (PC): smaller handle frames; more air above and below the outline editor */
@media (min-width: 701px) {
  html:not(.tablet) body .shape-pair { grid-template-columns: minmax(0, 1fr) 52px !important; margin: 28px 0 32px !important; }
  html:not(.tablet) body .handle-side .handle-grid { gap: 10px !important; }
  html:not(.tablet) body .handle-side .handle-grid > button { width: 52px !important; height: 44px !important; border-radius: 11px !important; }
  html:not(.tablet) body .handle-side .handle-grid svg { width: 44px !important; height: 30px !important; }
}

/* ===== patch 84: no hover fades anywhere: every hover is a solid change */
/* Make a screensaver: stays solid ink; on hover the paper colour fills it and the ink turns to a line */
html body .vase-acts #saverBtn { transition: background .35s cubic-bezier(.22,1,.36,1), color .35s cubic-bezier(.22,1,.36,1), box-shadow .35s cubic-bezier(.22,1,.36,1) !important; }
@media (hover: hover) {
  html body .vase-acts #saverBtn:hover { background: var(--ground) !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink) !important; }
  #saverSheet.ss-ed .ss-go #saverPlay:hover { background: var(--ground) !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink) !important; }
  html body .shape:hover, html body .dw-flowers:hover, html body .va-main:hover, html body #p-paint .mats .mat:hover, html body .handle-grid button:hover { opacity: 1 !important; }
  html body .undo-redo button:hover:not(:disabled), html body .vase-acts .va-ur .va-ic:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 10%, var(--ground)) !important; opacity: 1 !important; }
  html body .sheet-grip:hover i { background: var(--ink-2) !important; }
}
/* layout pictures: one line weight for the big vase, the row and the pattern */
html body #saverSheet .ss-lays svg path { vector-effect: non-scaling-stroke; stroke-width: 1.5px !important; }
/* sliders: the part you have set is a firm ink line; the rest a quiet hairline */
input[type=range]:not(.pk-r)::-webkit-slider-runnable-track { height: 6px; border-radius: 0; background: linear-gradient(var(--ink), var(--ink)) left center / var(--p, 50%) 4px no-repeat, linear-gradient(color-mix(in srgb, var(--ink) 26%, var(--ground)), color-mix(in srgb, var(--ink) 26%, var(--ground))) left center / 100% 1.5px no-repeat; }
input[type=range]:not(.pk-r)::-webkit-slider-thumb { margin-top: -4px; }
input[type=range]:not(.pk-r)::-moz-range-track { height: 1.5px; background: color-mix(in srgb, var(--ink) 26%, var(--ground)); }
input[type=range]:not(.pk-r)::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--ink); }
/* focus: only the vase, its tools and the way back; the logo, Shelf, Surprise and the screensaver step aside too */
html.focus body .vase-acts #saverBtn, html.focus body .vase-acts #surprise { display: none !important; }
html.focus body .nav > .mark, html.focus body .nav-right { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; transition: opacity .4s var(--ease), visibility 0s .4s !important; }
/* share: New flowers sits at the right end of the Post / Story row */
html body .sh-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
html body .sh-row .sh-word { margin: 0 !important; }

/* ===== clothoid corners everywhere: boxes, cards, panels, modals and pills ease into their corners; true circles stay round */
*, *::before, *::after { corner-shape: squircle; }
input[type=range]::-webkit-slider-thumb, .pal, .pick input, .paper, .pick-paper, .paper[aria-pressed="true"]::after, .mat i, .pot i::after, .cdot i, .pk-swatches button, .pk-now, .pk-thumb, .paper-now i, .own-cols summary::before, .va-ic, .vase-acts #focusBtn, .undo-redo button, .va-ur button, #saverSheet .ss-bgs .ss-sw, #saverSheet .ss-toggles button::before, .snd-btn, #shelfCount, .shelf-link b, .shelf-link i, .dw-views a, .sf-chips button,
.wall, .fcol, .col-seg button, .wall-now i, .st-ic, .tb-chips i, .bc-add i, .bc-drop i, .tile-more, .tile-more i, #tiles .tile > .tile-acts > .act-rm:not(.sure) { corner-shape: round !important; }
/* sliders, while you drag: the thumb grows a touch with a soft spring, and settles back when you let go */
input[type=range]:not(.pk-r)::-webkit-slider-thumb { transition: transform .35s cubic-bezier(.34, 1.4, .64, 1) !important; }
input[type=range]:not(.pk-r):active::-webkit-slider-thumb { transform: scale(1.35) !important; }
/* page to page: the next page comes up from below with its top edge a little tilted; tilt, side and pace differ every time (set on pagereveal) */
::view-transition-old(root) { animation: none !important; }
::view-transition-new(root) { animation: pgTilt var(--vt-t, .8s) cubic-bezier(.65, 0, .35, 1) both !important; }
@keyframes pgTilt { from { clip-path: polygon(0 calc(100% + var(--vt-l, 0vh)), 100% calc(100% + var(--vt-r, 10vh)), 100% 200%, 0 200%); } to { clip-path: polygon(0 calc(0% - var(--vt-r, 10vh) - 2vh), 100% calc(0% - var(--vt-l, 0vh) - 2vh), 100% 200%, 0 200%); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-new(root) { animation: none !important; } }

/* ===== hovers, all of them, one rule: never see-through, never a muddy tint. Ink buttons turn to paper with an ink ring; paper ones fill with ink */
@media (hover: hover) {
  html body .btn-ink:hover, html body .sh-main:hover, html body #saverSheet.ss-ed .ss-go #saverPlay:hover, html body .vase-acts #saverBtn:hover { background: var(--ground) !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink) !important; opacity: 1 !important; }
  html body .sh-alt:hover, html body .btn-line:hover { background: var(--ink) !important; color: var(--ground) !important; opacity: 1 !important; }
  html body .undo-redo button:hover:not(:disabled), html body .vase-acts .va-ur .va-ic:hover:not(:disabled), html body .vase-acts #focusBtn:hover { background: var(--ink) !important; color: var(--ground) !important; opacity: 1 !important; }
  html body .handle-grid button:hover { background: none !important; box-shadow: inset 0 0 0 1px var(--ink) !important; opacity: 1 !important; }
  html body #p-take .take:not(#save):hover, html body.tablet .rail .takes .take:hover, html.tablet body .rail .takes .take:not(:first-child):hover { background: none !important; }
  html body #p-take .take:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
  html body .sheet-grip:hover i { background: var(--ink) !important; }
  html body .paper:hover, html body .pick-paper:hover, html body .stage-tools .paper:hover { transform: none !important; box-shadow: 0 0 0 2px var(--ground), 0 0 0 3px var(--ink) !important; }
  html body .dw-view:hover { background: #fffdf8 !important; transform: none !important; }
  html body #saverSheet.ss-ed .ss-bgs .ss-sw:hover { box-shadow: 0 0 0 2px var(--ground), 0 0 0 3px var(--ink) !important; }
  html body .shape:hover, html body .dw-flowers:hover, html body .va-main:hover, html body #p-paint .mats .mat:hover, html body .nav-right .ui-toggle:hover::before { opacity: 1 !important; }
  html body .shape:hover { translate: 0 -2px; }
}
@media (hover: hover) { html body .sh-main:hover { background: #f6efe3 !important; color: #17130f !important; box-shadow: inset 0 0 0 1.5px #17130f !important; } html body .sh-alt:hover { background: #17130f !important; color: #f6efe3 !important; } }
/* screensaver backgrounds: smaller chips with room between them and a little air at the ends, so the chosen ring never touches the edge */
html body #saverSheet.ss-ed .ss-bgs { grid-template-columns: repeat(9, minmax(0, 26px)) !important; justify-content: space-between; gap: 4px !important; padding: 4px 3px !important; }
html body #saverSheet.ss-ed .ss-bgs .ss-sw { width: 100% !important; max-width: 26px; border-radius: 8px !important; }
/* sliders, while you drag: the rest of the line turns into a row of small dots, well spaced (the set part stays a solid ink line over them) */
input[type=range]:not(.pk-r):active::-webkit-slider-runnable-track { background: linear-gradient(var(--ink), var(--ink)) left center / var(--p, 50%) 4px no-repeat, radial-gradient(circle, color-mix(in srgb, var(--ink) 45%, var(--ground)) 1.4px, #0000 1.8px) left center / 12px 6px repeat-x; }

/* ===== nothing just blinks into view. Whatever appears grows or unfolds from where it belongs, on one soft spring; nothing fades */
@keyframes inBubble { from { scale: .55; translate: 0 6px; } 60% { scale: 1.04; translate: 0 0; } to { scale: 1; translate: 0 0; } }
@keyframes inRise { from { translate: 0 14px; clip-path: inset(0 0 100% 0 round 24px); } to { translate: 0 0; clip-path: inset(0 0 0 0 round 0); } }
@keyframes inDrop { from { translate: 0 -6px; clip-path: inset(0 0 100% 0); } to { translate: 0 0; clip-path: inset(0 0 -20% 0); } }
@keyframes inPane { from { translate: 0 10px; clip-path: inset(0 0 100% 0); } to { translate: 0 0; clip-path: inset(-20% -20% -20% -20%); } }
@keyframes inCorner { from { scale: .6; } 60% { scale: 1.05; } to { scale: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .bc-pop:not([hidden]) { transform-origin: 50% 100%; animation: inBubble .5s cubic-bezier(.22, 1, .36, 1) both; }
  .bc-pop::after { animation: none; }
  .share-sheet:not([hidden]) .sh-box, .unlock:not([hidden]) > *, .picker:not([hidden]) { animation: inRise .55s cubic-bezier(.22, 1, .36, 1) both; }
  #saverSheet:not([hidden]) { animation: inRise .6s cubic-bezier(.22, 1, .36, 1) both; }
  .pane:not([hidden]) { animation: inPane .5s cubic-bezier(.22, 1, .36, 1) both; }
  .print-step:not([hidden]), #ringRow:not([hidden]), #saverSheet .ss-row:not([hidden]), #saverSheet .ss-sl:not([hidden]), #saverSheet .ss-toggles button:not([hidden]) { animation: inDrop .45s cubic-bezier(.22, 1, .36, 1) both; }
  .tile:hover .tile-share, .tile:focus-within .tile-share { transform-origin: 100% 0; animation: inCorner .45s cubic-bezier(.22, 1, .36, 1) both; }
  .bookcase:not([hidden]), .tiles:not([hidden]), .empty:not([hidden]) { animation: inPane .6s cubic-bezier(.22, 1, .36, 1) both; }
}
/* share: the background, the vase's own paper or one of the pastel landscapes, as small squares in a row */
html body .sh-scenes { display: flex; gap: 8px; }
html body .sh-scenes button { width: 38px; height: 46px; padding: 0; border: 0; border-radius: 9px; background-size: cover; background-position: center; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(23, 19, 15, .14); transition: box-shadow .35s cubic-bezier(.22, 1, .36, 1), translate .35s cubic-bezier(.22, 1, .36, 1); }
html body .sh-scenes button:hover { translate: 0 -2px; }
html body .sh-scenes button[aria-checked="true"] { box-shadow: 0 0 0 2px #f6efe3, 0 0 0 3.5px #17130f; }
/* the dots behind a slider while dragging: a touch smaller, and spaced so the last one is always whole (never cut at the right end) */
input[type=range]:not(.pk-r):active::-webkit-slider-runnable-track { background: linear-gradient(var(--ink), var(--ink)) left center / var(--p, 50%) 4px no-repeat, radial-gradient(circle, color-mix(in srgb, var(--ink) 45%, var(--ground)) 1px, #0000 1.4px) left center / 12px 6px space no-repeat; }
html body .toast a.t-flower { display: inline-flex; align-items: center; gap: 6px; }
html body .toast a.t-flower svg { flex: none; transform-origin: 50% 90%; animation: tFlower .7s cubic-bezier(.34, 1.56, .64, 1) .25s both; }
@keyframes tFlower { from { scale: 0; rotate: -30deg; } to { scale: 1; rotate: 0deg; } }
html body .sh-row { width: 100%; }
html body .sh-row .sh-word { margin-left: auto !important; }
html body .sh-scenes { gap: 7px; } html body .sh-scenes button { width: 34px; height: 42px; }
/* screensaver rows: the label column wide enough for "Next vase"; the floor choices look like the other rows (underlined when on) */
html body #saverSheet.ss-ed .ss-line { grid-template-columns: 76px minmax(0, 1fr) !important; }
html body #saverSheet.ss-ed .ss-floor-opts button { box-shadow: none !important; border: 0 !important; background: none !important; padding: 4px 0 !important; height: auto !important; }
html body #saverSheet.ss-ed .ss-floor-opts button::before { display: none !important; }
html body #saverSheet.ss-ed .ss-floor-opts button[hidden] { display: none !important; }

/* the screensaver's View / Spin / Next vase / Floor: each choice a small box, like the layouts above, the chosen one ringed in ink */
html body #saverSheet.ss-ed .ss-line { align-items: center !important; }
html body #saverSheet.ss-ed .ss-line { grid-template-columns: 64px minmax(0, 1fr) !important; }
html body #saverSheet.ss-ed .ss-line .ss-opts { display: flex !important; flex-wrap: nowrap !important; gap: 5px !important; }
html body #saverSheet.ss-ed .ss-line .ss-opts button, html body #saverSheet.ss-ed .ss-floor-opts button { flex: 1 0 auto; display: inline-flex !important; align-items: center; justify-content: center; height: 32px !important; padding: 0 7px !important; border-radius: 10px !important; background: none !important; color: var(--ink-2) !important; box-shadow: inset 0 0 0 1px var(--hair) !important; font-size: 12.5px !important; white-space: nowrap; text-align: center; }
html body #saverSheet.ss-ed .ss-line .ss-opts button::after { display: none !important; }
html body #saverSheet.ss-ed .ss-line .ss-opts button:hover { color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--ink-2) !important; }
html body #saverSheet.ss-ed .ss-line .ss-opts button[aria-pressed="true"] { color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink) !important; }
html body #saverSheet.ss-ed .ss-line .ss-opts button[hidden] { display: none !important; }

/* the Shelf button: its count takes the same squircle as the button round it, with the same 6px all round, so the two corners run together */
html body .nav-right .shelf-link b, html body #shelfCount { corner-shape: squircle !important; border-radius: 999px !important; }


/* ===== the screensaver settings on a tablet held upright: the panel lies along the bottom in two columns, the vases get the whole width above it */
@media (orientation: portrait) and (min-width: 701px) {
  html body #saverSheet.ss-ed { top: auto !important; left: 16px !important; right: 16px !important; bottom: 16px !important; width: auto !important; max-height: 58svh;
    display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px !important; row-gap: 0 !important; align-content: start; padding: 22px 24px 16px !important; }
  #saverSheet.ss-ed > .ss-top, #saverSheet.ss-ed > .ss-h { grid-column: 1 / -1; grid-row: 1; }
  #saverSheet.ss-ed > .ss-top .ss-h, #saverSheet.ss-ed > .ss-h { margin-bottom: 12px !important; }
  #saverSheet.ss-ed > .ss-row:has([data-k="src"]) { grid-column: 1; grid-row: 2; }
  #saverSheet.ss-ed > .ss-row:has(.ss-lays) { grid-column: 1; grid-row: 3; }
  #saverSheet.ss-ed > .ss-bgrow { grid-column: 1; grid-row: 4; }
  #saverSheet.ss-ed > .ss-motion { grid-column: 2; grid-row: 2 / 4; }
  #saverSheet.ss-ed > .ss-sliders { grid-column: 2; grid-row: 4; align-self: start; }
  #saverSheet.ss-ed > .ss-go { grid-column: 1 / -1; grid-row: 5; grid-template-columns: 1fr 1fr !important; margin: 0 !important; padding-top: 16px; }
  #saverSheet.ss-ed > .ss-done { grid-column: 1 / -1; grid-row: 6; justify-self: center; }
  html[class].saver.ss-live .stage { right: 0 !important; top: 0 !important; height: auto !important; bottom: calc(var(--ssh, 46svh) + 16px) !important; }
}

/* the step tabs stay put while the panel scrolls: on a tablet or computer they were see-through, and the panel's top padding left a strip
   where the list showed above them. They now take the panel's own colour, right up to its top edge (the grip stays on top) */
@media (min-width: 701px) {
  html:root body .rail > .step-tabs { background-color: inherit !important; background-image: none !important; top: calc(-1 * var(--rail-pt, 16px)) !important; margin-top: calc(-1 * var(--rail-pt, 16px)) !important; padding-top: calc(var(--rail-pt, 16px) + 4px) !important; }
  html body .sheet-grip { z-index: 5 !important; }
  html:root body .rail { --rail-pt: 14px; }
  @media (orientation: portrait) { html.tablet body .rail { --rail-pt: 16px; } }
}
/* iPad upright: the shapes and the handles always fit in the one row; the shapes give up a little width instead of the last handle running off the edge */
@media (orientation: portrait) {
  html.tablet body .ph-row { overflow: visible !important; }
  html.tablet body .ph-row > #shapes { flex: 1 1 auto !important; min-width: 0 !important; }
  html.tablet body .ph-row > #shapes .shape { flex: 1 1 0 !important; width: auto !important; min-width: 0 !important; max-width: 42px; }
  html.tablet body .ph-row > #shapes .shape svg { max-width: 100%; }
}
/* the screensaver carries a small Pottle mark, bottom left, in the ink of whatever it plays on */
.ss-mark { display: none; }
html.saver .ss-mark { display: block; position: fixed; left: var(--margin); bottom: calc(var(--margin) + env(safe-area-inset-bottom, 0px)); z-index: 5; font-size: 20px; line-height: 1; color: var(--ink); pointer-events: none; }
html.saver .ss-mark .rolmes-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 700px) { html.saver .ss-mark { font-size: 17px; } }
@media (orientation: portrait) { html.tablet.saver.ss-live .ss-mark { bottom: calc(var(--ssh) + 16px); } }
/* the tools sheet all the way up (phone, iPad upright): tall enough for every control of the open tab, the vase still showing above */
@media (max-width: 700px) {
  html.sheet-full:not(.saver) { --sheet: max(212px, min(var(--sheetfull, 60svh), calc(100svh - var(--navh) - var(--tabs) - 190px))); }
  html.sheet-full:not(.saver) body .rail { overflow-x: hidden !important; overflow-y: auto !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 8px !important; }
  /* everything the short sheet leaves out comes back */
  html.sheet-full:not(.saver) body #p-shape > label.row:not([hidden]) { display: grid !important; grid-template-columns: 78px 1fr 48px !important; align-items: center; gap: 10px; margin: 0 !important; padding: 0 20px !important; min-height: 34px; font-size: 14px !important; }
  html.sheet-full:not(.saver) body #p-paint > label.row { display: grid !important; grid-template-columns: 78px 1fr 48px !important; align-items: center; gap: 10px; margin: 0 !important; padding: 0 20px !important; min-height: 34px; font-size: 14px !important; }
  html.sheet-full:not(.saver) body #p-paint .own-cols, html.sheet-full:not(.saver) body #p-paint #materials { display: block !important; margin: 0 !important; padding: 0 20px !important; }
  html.sheet-full:not(.saver) body #p-paint .row-seg { display: grid !important; grid-template-columns: 78px 1fr !important; align-items: center; gap: 10px; margin: 0 !important; padding: 0 20px !important; font-size: 14px !important; }
  html.sheet-full:not(.saver) body #p-take .takes > #stl { display: flex !important; }
  html.sheet-full:not(.saver) body #p-take .takes > .print-step:not([hidden]) { display: block !important; grid-column: 1 / -1; }
  html.sheet-full:not(.saver) body #p-take .takes > .print-step:not([hidden]) .print-row { display: grid !important; }
}
@media (orientation: portrait) {
  html.tablet.sheet-full:not(.saver) { --railh: max(300px, min(var(--sheetfull, 600px), calc(100vh - var(--navh) - 280px))); }
}
/* iPad: messages come at the top, like on a phone, never behind the tools sheet */
html.tablet body .toast, html.tablet body .toast.on { top: calc(var(--navh) + 8px) !important; bottom: auto !important; z-index: 60 !important; }
/* recording a film: the time left, at the top */
.ss-rec { position: fixed; top: calc(var(--margin) + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 60; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--ground); font-size: 13px; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
/* recording a film: the view takes the film's shape, as large as the screen allows, centred; what you see is what is recorded */
html[class][class].saver.ss-film body .stage { position: fixed !important; inset: auto !important; left: 50% !important; top: 50% !important; right: auto !important; bottom: auto !important; margin: 0 !important; transform: translate(-50%, -50%) !important; width: min(100vw, calc(100svh * var(--fw) / var(--fh))) !important; height: min(100svh, calc(100vw * var(--fh) / var(--fw))) !important; }
html.saver.ss-film .stage::after, html.saver.ss-film .ss-mark { display: none !important; }
.ss-rec { display: flex; align-items: center; gap: 14px; pointer-events: auto !important; }
.ss-rec button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* share at once: a round outlined icon between Save and Shelf, the same line as the Shelf pill */
.nav-right .nav-share { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); cursor: pointer; transition: background-color .2s, color .2s; }
.nav-right .nav-share:hover { background: var(--ink); color: var(--ground); }
.nav-right .nav-share:active { transform: scale(.96); }
@media (max-width: 700px) { .nav-right .nav-share { width: 34px; height: 34px; } .nav-right .nav-share svg { width: 17px; height: 17px; } }
html.saver .nav-right .nav-share { display: none; }

/* Take home on a tablet held upright: the sheet is the full width, so the four ways sit side by side, picture over name and a line under it */
@media (orientation: portrait) {
  html.tablet body #p-take .takes { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px !important; flex-direction: unset !important; }
  html.tablet body #p-take .takes > .take.take-ic, html.tablet body #p-take .takes > .take.take-ic:not(#save), html.tablet body #p-take .takes > #save.take-ic { grid-template-columns: 1fr !important; justify-items: center !important; align-content: start !important; gap: 10px !important; padding: 8px 0 4px !important; border-top: 0 !important; text-align: center !important; }
  html.tablet body #p-take .takes > .take-ic i.tk-art { grid-column: 1 !important; grid-row: 1 !important; width: 96px !important; height: 96px !important; }
  html.tablet body #p-take .takes > .take-ic span { grid-column: 1 !important; grid-row: 2 !important; justify-self: center !important; }
  html.tablet body #p-take .takes > .take-ic b { font-size: 20px !important; display: inline !important; }
  html.tablet body #p-take .takes > .take-ic .tk-long { display: none !important; }
  html.tablet body #p-take .takes > .take-ic .tk-sub, html.tablet body #p-take .takes > .take-ic em { display: block !important; white-space: nowrap !important; font-size: 12.5px !important; }
  html.tablet body #p-take .takes > #save.take.take-ic { grid-column: auto !important; }
  html.tablet body #p-take .takes > div.print-step { grid-column: 1 / -1 !important; order: 9 !important; }
}
/* Take home on a phone held sideways: the rail is short, so two by two, a smaller picture over the name */
@media (orientation: landscape) and (max-height: 500px) {
  html body #p-take .takes { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px 12px !important; }
  html body #p-take .takes > .take.take-ic, html body #p-take .takes > .take.take-ic:not(#save), html body #p-take .takes > #save.take-ic { grid-template-columns: 1fr !important; justify-items: center !important; align-content: start !important; gap: 6px !important; padding: 6px 0 !important; border-top: 0 !important; text-align: center !important; }
  html body #p-take .takes > #save.take.take-ic { grid-column: auto !important; }
  html body #p-take .takes > .take-ic i.tk-art { grid-column: 1 !important; grid-row: 1 !important; width: 60px !important; height: 60px !important; }
  html body #p-take .takes > .take-ic span { grid-column: 1 !important; grid-row: 2 !important; justify-self: center !important; }
  html body #p-take .takes > .take-ic b { font-size: 17px !important; display: inline !important; }
  html body #p-take .takes > .take-ic .tk-long { display: none !important; }
  html body #p-take .takes > .take-ic .tk-sub, html body #p-take .takes > .take-ic em { display: block !important; white-space: nowrap !important; font-size: 11.5px !important; margin-top: 2px !important; }
  html body #p-take .takes > div.print-step { grid-column: 1 / -1 !important; order: 9 !important; }
}
/* Paint > Photo: one clear button to pick the picture the pot wears */
.photo-pick { display: inline-flex; align-items: center; height: 40px; margin: 4px 0 8px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1.5px var(--ink); cursor: pointer; transition: background-color .2s, color .2s; }
.photo-pick:hover { background: var(--ink); color: var(--ground); }
.photo-pick[hidden] { display: none; }
html:not(.x-a):not(.x-b) body #p-paint > label.row[hidden] { display: none !important; }   /* a pattern without that knob (your photo) hides it everywhere */
html body #p-paint .photo-pick { width: max-content !important; justify-self: start; align-self: flex-start; }
@media (max-width: 700px) { html body #p-paint .photo-pick { margin-left: 20px !important; } }
html.tablet body > .sheet-grip { z-index: 40 !important; }

/* fingers: the small controls keep their look but take a tap from a little further round them */
@media (pointer: coarse) {
  html body #saverSheet.ss-ed .ss-bgs { grid-template-columns: repeat(9, minmax(0, 32px)) !important; }
  html body #saverSheet.ss-ed .ss-bgs .ss-sw { max-width: 32px; aspect-ratio: 1; height: auto !important; border-radius: 9px !important; }
  html body #drawerX { padding: 12px !important; margin: -12px !important; }
  html body .dw-flowers { padding-block: 9px !important; margin-block: -9px !important; }
  html body .own-cols summary { padding-block: 8px; margin-block: -8px; }
  html body .sheet-grip::after { content: ""; position: absolute; inset: -8px 0; }
}

/* a phone held sideways: the colour row of the screensaver stacks (name over swatches), and the tool words are readable */
@media (orientation: landscape) and (max-height: 500px) {
  html body #saverSheet.ss-ed .ss-bgrow { display: block !important; }
  html body #saverSheet.ss-ed .ss-bgrow > span { display: flex !important; justify-content: space-between; margin: 0 0 8px !important; }
  html body #saverSheet.ss-ed .ss-bgrow .ss-bgs { width: 100% !important; }
  html body .rail .step-tabs button, html body .rail [role=tab] { font-size: 14px !important; padding-block: 8px !important; }
  html body .pat-cats button { font-size: 13px !important; padding-block: 6px !important; }
  html body #p-paint label.row > span, html body #p-paint label.row output { font-size: 12.5px !important; }
  html body .vase-acts #undo, html body .vase-acts #redo { min-width: 32px; min-height: 36px; }
}
html body #p-paint .photo-pick { margin-top: 12px !important; }
html.ph-wait #gl { visibility: hidden; }
html.room-on .vase-acts { visibility: hidden !important; }   /* in your room only the room's own bar is there; the vase's buttons do not show through it */

/* ===== Settings: a sheet from the bottom on a phone, a panel in the middle elsewhere; the same paper and ink as the other sheets */
.st-sheet[hidden] { display: none; }
.st-sheet { position: fixed; inset: 0; z-index: 90; }
.st-sheet .st-veil { position: absolute; inset: 0; background: rgba(23, 19, 15, .32); opacity: 0; transition: opacity .38s cubic-bezier(.22, 1, .36, 1); }
.st-sheet .st-card { position: absolute; left: 50%; top: 50%; width: min(620px, calc(100vw - 32px)); max-height: min(780px, calc(100svh - 168px)); display: flex; flex-direction: column; border-radius: 28px; background: #fffdf8; color: #17130f; transform: translate(-50%, calc(-50% + 24px)); opacity: 0; transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .3s; }
.st-sheet.on .st-veil { opacity: 1; }
.st-sheet.on .st-card { transform: translate(-50%, -50%); opacity: 1; }
.st-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 12px; border-bottom: 1px solid rgba(23, 19, 15, .1); }
.st-title { font-family: "PottleHead", "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1; }
.st-done { height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: #17130f; color: #fffdf8; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.st-done:hover { background: #fffdf8; color: #17130f; box-shadow: inset 0 0 0 1.5px #17130f; }
.st-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px 24px; }
.st-body section { padding: 18px 0 6px; }
.st-body section + section { border-top: 1px solid rgba(23, 19, 15, .1); margin-top: 12px; }
.st-body h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; }
.st-note { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: #6b625a; max-width: 46ch; }
.st-group { margin: 0 0 16px; }
.st-group[hidden] { display: none; }
.st-group > span { display: block; margin: 0 0 8px; font-size: 12.5px; color: #6b625a; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
/* each choice is the icon as the phone will round it; the chosen one gets an ink ring with a gap of paper */
.st-ic { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--paper, #efe8dc); cursor: pointer; box-shadow: 0 0 0 0 #fffdf8, 0 0 0 0 #17130f; transition: box-shadow .25s cubic-bezier(.22, 1, .36, 1); }
.st-ic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-ic:hover, .st-ic[aria-pressed="true"] { box-shadow: 0 0 0 2.5px #fffdf8, 0 0 0 4px #17130f; }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 13.5px; }
.st-seg { display: flex; flex: none; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(23, 19, 15, .18); }
.st-seg button { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: #17130f; font: inherit; font-size: 13.5px; cursor: pointer; transition: background-color .2s, color .2s; }
.st-seg button[aria-checked="true"] { background: #17130f; color: #fffdf8; }
.st-seg button:not([aria-checked="true"]):hover { background: #efe8dc; }
@media (max-width: 700px) {
  .st-sheet .st-card { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: calc(100svh - 56px); border-radius: 28px 28px 0 0; padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); opacity: 1; }
  .st-sheet.on .st-card { transform: none; }
  .st-head { padding: 18px 20px 10px; } .st-title { font-size: 26px; }
  .st-body { padding: 0 20px 20px; }
  .st-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
  .st-ic { border-radius: 14px; }
  .st-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .st-sheet .st-card, .st-sheet .st-veil { transition: none; } }
@media (orientation: landscape) and (max-height: 500px) { .st-sheet .st-card { max-height: calc(100svh - 24px); width: min(680px, calc(100vw - 48px)); } .st-head { padding: 14px 20px 10px; } .st-title { font-size: 24px; } .st-grid { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); } }
.st-note + .st-wink { margin-top: -8px; font-style: italic; }
.st-wink .st-sign { font-style: normal; white-space: nowrap; }
.st-cup { display: flex; align-items: center; gap: 14px; margin: 14px 0 6px; padding: 12px 20px 12px 14px; border-radius: 40px; background: #f3ebdd; color: #17130f; text-decoration: none; transition: background-color .2s; }
.st-cup:hover { background: #ecdfc9; }
.st-mug { flex: none; width: 56px; height: 56px; }
.st-wisp { animation: stWisp 2.4s ease-in-out infinite; }
@keyframes stWisp { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2px; } }
.st-steam { transform-origin: 32px 28px; animation: stSway 3.2s ease-in-out infinite; }   /* the flowers sway a little */
@keyframes stSway { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }
.st-cup:hover .st-mug { animation: stTilt .6s cubic-bezier(.34, 1.56, .64, 1); transform-origin: 50% 90%; }
@keyframes stTilt { 0% { rotate: 0deg; } 40% { rotate: -10deg; } 100% { rotate: 0deg; } }
.st-cup-t { display: grid; gap: 2px; min-width: 0; }
.st-cup-t b { font-size: 15px; font-weight: 500; }
.st-cup-t span { font-size: 13px; line-height: 1.45; color: #6b625a; text-wrap: pretty; }
.st-cup-t { flex: 1; }
.st-cup-b { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px; background: #17130f; color: #fffdf8; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background-color .2s, color .2s; }
.st-cup:hover .st-cup-b { background: #fffdf8; color: #17130f; box-shadow: inset 0 0 0 1.5px #17130f; }
@media (max-width: 700px) { .st-cup { flex-wrap: wrap; } .st-cup-t { flex: 1 1 0; } .st-cup-b { flex: 1 0 100%; justify-content: center; height: 44px; } .st-cup { border-radius: 34px; padding: 12px; } }
@media (prefers-reduced-motion: reduce) { .st-steam, .st-wisp, .st-cup:hover .st-mug { animation: none; } }
.st-about { margin: 18px 0 4px; font-size: 15px; line-height: 1.5; color: #17130f; max-width: 44ch; }
.st-note.st-wink.st-first { margin-top: 0; }
/* the backgrounds: pastels then oils in one row that slides sideways when it is longer than the panel */
html body .sh-scenes { max-width: 100%; min-width: 0; overflow-x: auto; overflow-y: visible; scrollbar-width: none; padding: 4px 4px 6px; margin: -4px -4px -6px; scroll-snap-type: x proximity; }
html body .sh-scenes::-webkit-scrollbar { display: none; }
html body .sh-scenes button { flex: none; scroll-snap-align: start; }
html body .sh-scenes button[data-s="7"] { margin-left: 8px; }   /* a little gap where the oils begin */
html body .sh-box > * { min-width: 0; }
html body .sh-side { min-width: 0; max-width: 100%; }

/* an upright tablet: the share sheet is a card in the middle, the same room above and below it on every iPad,
   the picture sized so the whole card fits the screen; it never runs under the header */
@media (min-width: 701px) and (orientation: portrait) {
  html body .share-sheet { place-items: center !important; }
  html body .sh-box { width: min(640px, calc(100vw - 64px)) !important; max-height: calc(100svh - 64px) !important; border-radius: 28px !important; padding: 24px 28px 20px !important; }
  html body .sh-pic { width: min(100%, calc((100svh - 64px - 400px) * .8)) !important; }
  html body .sh-pic[data-f="story"] { width: min(100%, calc((100svh - 64px - 400px) * .5625)) !important; }
}
/* the backgrounds: one row, a thin upright bar between the pastels and the oils; the row slides sideways when it is longer than the panel */
html body .sh-scenes button[data-s="7"] { margin-left: 0 !important; }
html body .sh-sep { flex: none; align-self: center; width: 1.5px; height: 30px; margin: 0 2px; border-radius: 1px; background: rgba(23, 19, 15, .28); }
/* an upright tablet: the picture already says what it is; the line about the short film is left to the side-by-side layouts */
@media (min-width: 701px) and (orientation: portrait) { html body .sh-sub { display: none !important; } }

/* a button that shows its own progress: it fills from the left in a solid tone while the video is made,
   says when one more tap is needed, and grows a small flower when the video is saved */
.pb-busy { background: linear-gradient(90deg, #e3d7c3 calc(var(--pb, 0) * 100%), transparent 0) !important; cursor: progress !important; font-variant-numeric: tabular-nums; }
.pb-ready { background: #17130f !important; color: #fffdf8 !important; box-shadow: none !important; }
.pb-done { display: inline-flex !important; align-items: center; justify-content: center; gap: 7px; }
.pb-done .pb-flower { flex: none; margin: -3px 0 0 -4px; transform-origin: 50% 90%; animation: tFlower .8s cubic-bezier(.34, 1.56, .64, 1) .45s both; }   /* blooms once the phone's Save sheet has slid away */
.pb-busy > span, .pb-ready > span, .pb-done > span { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-busy, .pb-ready, .pb-done { white-space: nowrap !important; min-width: 0; }
#saverSheet.ss-ed .ss-go button.pb-busy { background: linear-gradient(90deg, #e3d7c3 calc(var(--pb, 0) * 100%), var(--ground) 0) !important; }
html body .sh-acts button.pb-busy, html body .sh-acts button.pb-busy:hover, html body #saverSheet .ss-go button.pb-busy, html body #saverSheet .ss-go button.pb-busy:hover { background: linear-gradient(90deg, #e3d7c3 calc(var(--pb, 0) * 100%), #fffdf8 0) !important; color: #17130f !important; box-shadow: inset 0 0 0 1.5px #17130f !important; }
html body .sh-acts button.pb-ready, html body .sh-acts button.pb-ready:hover, html body #saverSheet .ss-go button.pb-ready, html body #saverSheet .ss-go button.pb-ready:hover { background: #17130f !important; color: #fffdf8 !important; box-shadow: none !important; }
html body .sh-acts button.pb-done, html body .sh-acts button.pb-done:hover, html body #saverSheet .ss-go button.pb-done, html body #saverSheet .ss-go button.pb-done:hover { background: #fffdf8 !important; color: #17130f !important; box-shadow: inset 0 0 0 1.5px #17130f !important; }

/* the logo sits on the same middle as the words beside it (it rode 3px high) */
@media (min-width: 701px) { html body .nav > .mark { position: relative; top: 3px; } }
/* the screensaver's reel: one canvas over the stage, the vase in the middle of it */
.ss-reel-cv { display: none; }
html.saver.ss-reel .ss-reel-cv { display: block; position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 4; pointer-events: none; }
html.ss-reel .save-bloom, html.saver.ss-reel .stage::after { display: none !important; }
/* the screensaver's mark sits bottom centre, under the vase's foot */
html.saver .ss-mark { left: 50%; translate: -50% 0; }
/* the share card's backgrounds: room around each swatch so the chosen ring is never cut, and a fade at an edge where more wait */
html body .sh-scenes { padding: 6px 8px 8px !important; margin: -6px -8px -8px !important; scroll-padding-inline: 8px; }
html body .sh-scenes.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
html body .sh-scenes.more-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px); mask-image: linear-gradient(to right, transparent, #000 44px); }
html body .sh-scenes.more-l.more-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
/* Settings › Home screen icon: the heading and the maker's aside share one line, so the aside no longer takes a block of its own */
.st-body section:has(> .st-first) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; align-items: baseline; }
.st-body section:has(> .st-first) > * { grid-column: 1 / -1; }
.st-body section:has(> .st-first) > h3 { grid-column: 1; margin: 0; white-space: nowrap; }
.st-body section:has(> .st-first) > .st-first { grid-column: 2; justify-self: end; max-width: 52ch; margin: 0 0 16px; font-size: 12.5px; line-height: 1.45; text-align: right; text-wrap: pretty; }
@media (max-width: 520px) { .st-body section:has(> .st-first) { display: block; } .st-body section:has(> .st-first) > h3 { margin: 0 0 6px; } .st-body section:has(> .st-first) > .st-first { text-align: left; margin: 0 0 14px; } }
/* while the film is made: the settings rest (dimmed, untouchable); Save video shows how far it is, and the link below stops it */
html.ss-making #saverSheet > *:not(.ss-go):not(.ss-top):not(.ss-done) { opacity: .4; pointer-events: none; transition: opacity .3s; }
html.saver.ss-making body #saverSheet .ss-go button#saverPlay { pointer-events: none; background: color-mix(in srgb, var(--ink) 22%, var(--ground)) !important; color: color-mix(in srgb, var(--ink) 55%, var(--ground)) !important; opacity: 1; }   /* resting, in solid colour: a see-through dark button turns muddy on the paper */
/* the "Made in 3D" thumbnail plays from one small sheet of the nine studio vases */
.nl-spin.sprite { object-fit: none !important; object-position: var(--sx, 0px) var(--sy, 0px); }
