/* The shelf: a wall in one colour, every pot standing on its own paper, turning under the cursor. */
.shelf-page { background: var(--ground); min-height: 100svh; }
html:has(.shelf-page) { background: var(--ground); }
.shelf-nav { position: sticky; top: 0; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(12px); pointer-events: auto; }
.shelf-nav .tabs a { position: relative; padding: 6px 0; font-size: calc(14 * var(--u)); color: var(--ink-2); text-decoration: none; transition: color .25s; }
.shelf-nav .tabs a::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); }
.shelf-nav .tabs a:hover, .shelf-nav .tabs a[aria-current="page"] { color: var(--ink); }
.shelf-nav .tabs a:hover::after, .shelf-nav .tabs a[aria-current="page"]::after { transform: scaleX(1); }
.walls { gap: 10px; }
.walls > span { font-size: calc(12 * var(--u)); color: var(--ink-2); }
#walls { display: flex; gap: 6px; }
.wall { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair); transition: transform .25s var(--ease), box-shadow .2s; }
.wall:hover { transform: scale(1.15); }
.wall[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ground), 0 0 0 3.5px var(--ink); }

.shelf { padding-top: calc(60 * var(--u)); padding-bottom: calc(120 * var(--u)); row-gap: 0; }
.shelf-head { grid-column: 1 / 13; display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: calc(28 * var(--u)); margin-bottom: calc(36 * var(--u)); border-bottom: 1px solid var(--hair); }
.shelf-head h1 { font-size: calc(96 * var(--u)); line-height: .92; }
.shelf-head p { max-width: 34ch; color: var(--ink-2); font-size: calc(15 * var(--u)); }
.tiles { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(40 * var(--u)) var(--gutter); }
.tile { display: flex; flex-direction: column; gap: 12px; }
.tile-pic { position: relative; aspect-ratio: 4 / 5; border-radius: calc(16 * var(--u)); overflow: hidden; cursor: ew-resize; translate: 0 0; transition: translate .4s var(--ease); touch-action: pan-y; }
.tile-pic:hover { translate: 0 -4px; }
.tile-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.tile-pic .dial { position: absolute; left: 50%; bottom: 12px; translate: -50% 0; width: 56px; height: 1.5px; background: rgba(0,0,0,.14); opacity: 0; transition: opacity .3s; }
.tile-pic .dial i { position: absolute; top: 0; bottom: 0; left: 0; width: 22%; background: rgba(0,0,0,.6); translate: calc(var(--p, 0) * 355%) 0; }
.tile-pic:hover .dial { opacity: 1; }
.tile-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tile-meta b { font-family: var(--serif); font-weight: 400; font-size: calc(26 * var(--u)); line-height: 1.05; letter-spacing: -.01em; }
.tile-meta span { color: var(--ink-2); font-size: calc(12 * var(--u)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile-acts { display: flex; gap: 14px; font-size: calc(13 * var(--u)); }
.tile-acts button, .tile-acts a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair); }
.tile-acts button:hover, .tile-acts a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.tile-acts .sure { color: #c0261b; text-decoration-color: currentColor; }
.tile.leaving { animation: leave .45s var(--ease) forwards; }
@keyframes leave { to { opacity: 0; transform: scale(.94); } }
.empty { grid-column: 1 / 13; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: calc(80 * var(--u)) 0; }
.empty[hidden] { display: none; }
.empty .serif { font-size: calc(48 * var(--u)); line-height: 1; }
.empty p { color: var(--ink-2); }

@media (max-width: 1199px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .shelf-nav .tabs { position: static; grid-column: 1 / 13; grid-row: 2; justify-content: flex-start; gap: 20px; padding: 0 0 10px; background: none; border: 0; backdrop-filter: none; }
  .shelf-nav { height: auto; padding-top: 14px; row-gap: 6px; }
  .walls > span { display: none; }
  .shelf-head { flex-direction: column; align-items: flex-start; }
  .shelf-head h1 { font-size: 56px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .tile-meta { flex-direction: column; gap: 2px; }
  .tile-meta b { font-size: 22px; }
  .tile-acts { font-size: 13px; gap: 12px; flex-wrap: wrap; }
}

.tile-pic .bloom { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.head-r { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
@media (max-width: 700px) { .head-r { align-items: flex-start; } }

/* ---------------- arrange: the vase full screen on its own paper, a tray of flowers on the right */
.arrange { position: fixed; inset: 0; z-index: 30; background: var(--paper, var(--ground)); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: calc(28 * var(--u)) var(--margin); align-items: center;
  opacity: 0; transform: scale(.985); transition: opacity .42s var(--ease), transform .42s var(--ease); --ground: var(--paper); }
.arrange.open { opacity: 1; transform: none; }
.arrange[hidden] { display: none; }
.arrange.on-dark { --ink: #f6f1ea; --ink-2: rgba(246,241,234,.66); --ink-3: rgba(246,241,234,.42); --hair: rgba(246,241,234,.2); color: var(--ink); }
.arr-head { grid-column: 1 / 4; display: flex; flex-direction: column; gap: 12px; }
.arr-kicker { font-size: calc(11 * var(--u)); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.arr-head h2 { font-size: calc(64 * var(--u)); line-height: .95; }
.arr-hint { color: var(--ink-2); font-size: calc(13.5 * var(--u)); max-width: 30ch; }
.arr-count { font-size: calc(12.5 * var(--u)); font-variant-numeric: tabular-nums; }
.arr-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.arr-stage { grid-column: 4 / 10; display: grid; place-items: center; height: calc(100svh - 56 * var(--u)); }
.arr-pic { position: relative; height: 100%; max-width: 100%; aspect-ratio: 4 / 5; border-radius: calc(18 * var(--u)); overflow: hidden; }
.arr-pic img, .arr-pic canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.arr-pic img { object-fit: cover; user-select: none; }
.arr-pic canvas { cursor: crosshair; touch-action: none; }
.arr-tray { grid-column: 10 / 13; display: flex; flex-direction: column; gap: 12px; align-self: center; }
.arr-tray h3 { font: 500 calc(11 * var(--u))/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--hair); margin-top: 8px; }
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kind { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: calc(10.5 * var(--u)); color: var(--ink-2); padding: 6px 2px; border-radius: 10px; transition: background-color .2s, translate .3s var(--ease); }
.kind canvas { width: 64px; height: 64px; }
.kind:hover { translate: 0 -2px; }
.kind[aria-pressed="true"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.fcols { display: flex; flex-wrap: wrap; gap: 8px; }
.fcol { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: translate .3s var(--ease); }
.fcol:hover { translate: 0 -2px; }
.fcol[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.2px var(--ink); }
.arr-tray .row output { display: none; }
.arr-tray .row { grid-template-columns: 50px 1fr; }
@media (max-width: 700px) {
  .arrange { grid-template-columns: 1fr; align-content: start; overflow: auto; padding: 16px 20px 32px; row-gap: 16px; }
  .arr-head, .arr-stage, .arr-tray { grid-column: 1; }
  .arr-head h2 { font-size: 40px; }
  .arr-stage { height: auto; }
  .arr-pic { height: auto; width: 100%; }
  .kinds { grid-template-columns: repeat(6, 1fr); }
  .kind canvas { width: 48px; height: 48px; }
}

/* the studio pieces: path-traced turntables, each opens Pottle set up like it */
.studio-head { margin-top: calc(96 * var(--u)); }
.studio-head h2 { font-size: calc(56 * var(--u)); line-height: .95; }
.tile-pic.studio-pic img { object-fit: cover; }
.tile-acts a.make { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair); }
.tile-acts a.make:hover { text-decoration-color: var(--ink); }
@media (max-width: 700px) { .studio-head { margin-top: 64px; } .studio-head h2 { font-size: 40px; } }
.shelf-nav .tabs { display: flex !important; gap: calc(26 * var(--u)); grid-column: 4 / 10; justify-self: center; align-items: center; } @media (max-width: 700px) { .shelf-nav .tabs { grid-column: 1 / 13; justify-self: start; gap: 16px; } .shelf-nav .tabs a { font-size: 13px; } }

/* ===== shelf and studio, on Folio's frames: squircles with a hairline rim, nothing lifts or casts a shadow */
.tile-pic, .tile-pic:hover { translate: none !important; border-radius: 0; box-shadow: none !important; }
.tile-pic .edge path { stroke: rgba(23, 19, 15, .12); }
.tile-pic:hover .edge path { stroke: rgba(23, 19, 15, .35); }
.tiles { gap: calc(48 * var(--u)) var(--gutter); }
.tile { gap: 14px; }
.tile-meta { align-items: baseline; }
.tile-meta span { font-size: calc(12.5 * var(--u)); }
.tile-acts { flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.tile-acts button, .tile-acts a { font-size: 13px; text-decoration: none !important; color: var(--ink-2); }
.tile-acts button:hover, .tile-acts a:hover { color: var(--ink); }
.tile-acts .act-main { padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--ground) !important; font-weight: 500; }
.tile-acts .act-main:hover { opacity: .88; }
.shelf-head { border-bottom: 0 !important; padding-bottom: 0; margin-bottom: calc(44 * var(--u)); align-items: end; }
.shelf-head h1 { font-size: calc(120 * var(--u)) !important; }
.shelf-head .btn-line { box-shadow: inset 0 0 0 1.5px var(--ink); }
.shelf-nav { background: color-mix(in srgb, var(--ground) 80%, transparent); }

/* tile actions on one line: the main action, open, and two quiet ones at the end */
.tile-acts { flex-wrap: nowrap; gap: 14px; }
.tile-acts .act-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-left: auto; color: var(--ink-2); }
.tile-acts .act-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-acts .act-ic:hover { color: var(--ink); background: rgba(23,19,15,.08); }
.tile-acts .act-rm { font-size: 12.5px; }

@media (min-width: 701px) {
  body.shelf-page .nav { height: var(--navh); }
  body.shelf-page .nav > .mark { grid-column: 5 / 9 !important; grid-row: 1; justify-self: center !important; }
  .shelf-nav .tabs { grid-column: 1 / 5 !important; grid-row: 1; justify-self: start !important; gap: 20px !important; }
  body.shelf-page .nav > .nav-right { grid-column: 9 / 13; grid-row: 1; justify-self: end; }
}

/* the flowers switch wears a little flower that grows when they are on, and wilts away when they are off */
.flower-btn { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px 0 12px; }
.fb-ic { width: 22px; height: 22px; overflow: visible; }
.fb-stem { fill: none; stroke: #2f7a4a; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 10; stroke-dashoffset: 10; transition: stroke-dashoffset .4s var(--ease); }
.fb-leaf { fill: #2f7a4a; transform-origin: 12px 17px; transform: scale(0); transition: transform .4s var(--ease) .15s; }
.fb-head circle { fill: #ff5d8f; }
.fb-head .fb-mid { fill: #ffd23f; }
.fb-head { transform-origin: 12px 9px; transform: scale(0) rotate(-40deg); transition: transform .55s cubic-bezier(.34, 1.56, .64, 1) .3s; }
.flower-btn[aria-pressed="true"] .fb-stem { stroke-dashoffset: 0; }
.flower-btn[aria-pressed="true"] .fb-leaf { transform: none; }
.flower-btn[aria-pressed="true"] .fb-head { transform: none; }
.flower-btn:hover .fb-head { transform: rotate(14deg); }
.flower-btn[aria-pressed="false"]:hover .fb-head { transform: scale(.5); }
/* header: the three parts on one centre line */
@media (min-width: 701px) {
  body.shelf-page .nav { align-items: center !important; }
  body.shelf-page .nav > * { align-self: center !important; margin-top: 0 !important; margin-bottom: 0 !important; }
  .shelf-nav .tabs a { padding: 8px 0 !important; line-height: 1; }
  .shelf-nav .tabs a::after { bottom: 0 !important; }
  body.shelf-page .walls { display: flex; align-items: center; }
}
/* the big heading and its sentence share a baseline */
.shelf-head { align-items: flex-end !important; }
.shelf-head .head-r { padding-bottom: calc(120 * var(--u) * .2); }
@media (max-width: 700px) { .shelf-head .head-r { padding-bottom: 0; } }

/* ===== the two shelf views */
.view-seg { grid-column: 1 / 13; display: inline-flex; justify-self: start; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(23,19,15,.07); margin: 0 0 calc(28 * var(--u)); }
.view-seg button { height: 34px; padding: 0 18px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.view-seg button[aria-selected="true"] { background: var(--ink); color: var(--ground, #f6efe3); }
.bookcase { grid-column: 1 / 13; }
.bookcase[hidden] { display: none; }
.bc-room { position: relative; height: min(78vh, 760px); min-height: 480px; border-radius: 28px; overflow: hidden; }
.bc-wall { position: absolute; inset: 0 0 18% 0; background: radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.35), rgba(255,255,255,0) 60%), currentColor; color: inherit; }
.bc-wall { background-color: color-mix(in srgb, var(--ground) 88%, #fff); background-image: radial-gradient(120% 90% at 25% 15%, rgba(255,255,255,.4), rgba(255,255,255,0) 55%), linear-gradient(90deg, rgba(0,0,0,.04), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.06)); }
.bc-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: repeating-linear-gradient(90deg, #d9b98e 0 120px, #d4b285 120px 121px, #dcbd93 121px 260px, #d2ad80 260px 261px); box-shadow: inset 0 1px 0 rgba(0,0,0,.08); }
.bc-floor::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,0) 40%); }
.bc-case { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); }
.bc-case > i { position: absolute; display: block; }
.bc-back { background: linear-gradient(180deg, #c98f52, #b97d42); box-shadow: inset 0 10px 18px rgba(80,40,10,.25); }
.bc-board { background: linear-gradient(180deg, #e2a865, #cf914f); }
.bc-board.v { background: linear-gradient(90deg, #d79a58, #e6ad6a 40%, #cf914f); }
.bc-board.bc-sh, .bc-board.bc-top { box-shadow: 0 1.5px 0 rgba(120,60,15,.35); }
.bc-leg { background: linear-gradient(90deg, #cf914f, #e2a865 50%, #c4874a); }
.bc-rail { background: linear-gradient(180deg, #e0a564, #c98b4b); }
.bc-brace { position: absolute; display: block; height: 2.6%; background: #d2955a; transform-origin: left center; }
.bc-brace.l { transform: rotate(-38deg); }
.bc-brace.r { transform: rotate(38deg); transform-origin: right center; }
.bc-case::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: -3%; height: 6%; background: radial-gradient(50% 50% at 50% 50%, rgba(60,40,20,.25), rgba(60,40,20,0) 70%); z-index: -1; }
.bc-vase { position: absolute; display: block; opacity: 0; transform: translateY(10px); animation: bcIn .6s var(--ease) var(--d) forwards; transition: transform .3s var(--ease); }
.bc-vase img { width: 100%; height: 100%; display: block; }
.bc-vase:hover { transform: translateY(-3px); }
@keyframes bcIn { to { opacity: 1; transform: none; } }
.bc-empty { position: absolute; left: 0; right: 0; top: 40%; text-align: center; color: rgba(255,255,255,.85); font-size: 15px; }
body.case-view .flower-btn { visibility: hidden; }
@media (max-width: 700px) { .bc-room { height: 60vh; min-height: 360px; border-radius: 18px; } }
.bc-room { background: var(--ground); }
.tiles[hidden] { display: none !important; }

/* the 3D bookcase runs edge to edge, no frame */
.bookcase { grid-column: 1 / -1; margin: 0 calc(var(--margin) * -1); height: min(86vh, 900px); position: relative; touch-action: pan-y; cursor: grab; }
.bookcase:active { cursor: grabbing; }
.bc3d { width: 100%; height: 100%; display: block; }
.bc3d-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 12px; color: rgba(23,19,15,.55); pointer-events: none; }
body.case-view .shelf-head { margin-bottom: 12px; }

.view-bar { grid-column: 1 / 13; display: flex; align-items: center; justify-content: space-between; margin: 0 0 calc(28 * var(--u)); }
.view-bar .view-seg { margin: 0; }
.col-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(23,19,15,.07); }
.col-seg[hidden] { display: none; }
.col-seg button { width: 34px; height: 34px; border-radius: 50%; font-size: 13px; color: var(--ink-2); }
.col-seg button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
#tiles { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)) !important; }
@media (max-width: 700px) { .col-seg { display: none; } #tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* shelf and studio: the same header as the maker; a smaller heading; the page's controls in one bar under it */
body.shelf-page .nav > .pages { grid-column: 1 / 5; grid-row: 1; }
/* tabs shown again */
.shelf-head h1 { font-size: calc(72 * var(--u)) !important; }
.shelf-head { margin-bottom: calc(24 * var(--u)) !important; padding-top: calc(12 * var(--u)); }
.view-bar { position: sticky; top: calc(var(--navh) - 8px); z-index: 3; padding: 10px 0; background: color-mix(in srgb, var(--ground) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bar-r { display: flex; align-items: center; gap: 14px; }
.bar-r .walls { display: flex; align-items: center; gap: 8px; }
.bar-r .walls span { font-size: 12px; color: var(--ink-2); }
.bar-r .walls #walls { display: flex; gap: 5px; }
.bar-r .wall { width: 20px !important; height: 20px !important; }
.bar-r .flower-btn { height: 42px; }
@media (max-width: 700px) { .bar-r .walls span { display: none; } .view-bar { flex-wrap: wrap; gap: 10px; } }
@media (max-width: 700px) {
  body.shelf-page .nav { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  body.shelf-page .nav > .mark { order: 1; }
  body.shelf-page .nav > .pages { order: 2; width: auto; }
  .shelf-head h1 { font-size: 48px !important; }
  .shelf-head .head-r { padding: 0 !important; }
  .shelf-head .head-r p { font-size: 14px; }
  .tile-acts .act-main { white-space: nowrap; }
}
@media (max-width: 700px) {
  .shelf-head { flex-direction: column !important; align-items: flex-start !important; gap: 8px; }
  .shelf-head h1 { align-self: flex-start; }
  .shelf-head .head-r { align-self: stretch; text-align: left; }
  .shelf-head .head-r p { max-width: none; margin: 0; }
}
.view-seg button, .flower-btn, .tile-acts .act-main { font-weight: 500 !important; }
#bookcase.grabbing, .grabbing { cursor: grabbing; }
/* Bookcase view: the room is the page. The heading and sentence step aside, the view bar sits right under the header, and the bookcase fills the rest of the screen */
body.case-view .shelf-head { display: none !important; }
body.case-view .view-bar { margin-bottom: 0 !important; position: relative; top: 0; }
body.case-view .bookcase { height: calc(100svh - 250px) !important; min-height: 420px; }
body.case-view main.shelf { padding-bottom: 0 !important; }

/* cards hold their text at any width: the name on its own line, the facts under it, the actions on one line (icons when narrow) */
.tile { container-type: inline-size; }
.tile-meta { flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
.tile-meta b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tile-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tile-acts { flex-wrap: nowrap !important; min-width: 0; }
.tile-acts > * { white-space: nowrap; flex: none; }
.tile-acts .act-main { white-space: nowrap; }
.tile-acts .act-rm.sure { color: #c0392b; }
@container (max-width: 250px) {
  .tile-acts { gap: 10px !important; }
  .tile-acts a:not(.act-main), .tile-acts .act-rm { font-size: 12px; }
  .tile-acts .act-main { padding: 7px 12px; font-size: 12px; }
  .tile-meta b { font-size: 20px !important; }
}
@container (max-width: 190px) {
  .tile-acts a:not(.act-main) { display: none; }
}

/* ===== the shelf bar: three quiet groups of one height (40px) on one baseline, each in the same soft capsule */
.view-bar { align-items: center; }
.bar-r { gap: 10px !important; }
.view-seg, .col-seg, .bar-r .walls, .bar-r .flower-btn { height: 44px; box-sizing: border-box; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent) !important; box-shadow: none !important; padding: 4px !important; display: inline-flex; align-items: center; }
.view-seg button, .col-seg button { height: 36px; }
.bar-r .flower-btn { gap: 8px; padding: 4px 16px 4px 10px !important; font-size: 14px; color: var(--ink); }
.bar-r .flower-btn[aria-pressed="true"] { background: var(--ink) !important; color: var(--ground); }
.bar-r .flower-btn .fb-ic { width: 20px; height: 20px; }
.bar-r .walls { gap: 4px !important; padding: 4px 6px !important; }
.bar-r .walls > span { display: none; }
.bar-r .walls #walls { gap: 4px !important; }
.bar-r .wall { width: 28px !important; height: 28px !important; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1) !important; transform: none !important; }
.bar-r .wall[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(0,0,0,.1), 0 0 0 2px var(--ground), 0 0 0 3.5px var(--ink) !important; }
.col-seg { gap: 2px !important; }
.col-seg button { width: 40px !important; border-radius: 999px !important; display: grid; place-items: center; color: var(--ink-2); }
.col-seg button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.cg { display: flex; gap: 2px; height: 14px; }
.cg i { display: block; width: 4px; border-radius: 1.5px; background: currentColor; }
.cg.c2 i { width: 7px; } .cg.c3 i { width: 5px; } .cg.c4 i { width: 3.5px; } .cg.c6 i { width: 2.4px; gap: 1px; }
@media (max-width: 700px) { .bar-r .wall { width: 24px !important; height: 24px !important; } .bar-r .flower-btn span { display: none; } .bar-r .flower-btn { padding: 4px 10px !important; } }

/* card size: one card drawn at the size it will be (big to tiny), with the same rounded corners as the shelf cards */
.cs { display: block; border-radius: 30%; border: 1.6px solid currentColor; }
.cs2 { width: 18px; height: 22px; } .cs3 { width: 14px; height: 17px; } .cs4 { width: 10px; height: 12px; } .cs6 { width: 7px; height: 8.5px; border-width: 1.4px; }
.col-seg button[aria-pressed="true"] .cs { background: currentColor; }
/* the name and facts sit inside the card, on its paper, bottom left */
.tile { display: grid !important; grid-template-areas: "pic" "acts"; grid-template-rows: auto auto; gap: 12px !important; }
.tile > .tile-pic { grid-area: pic; }
.tile > .tile-meta { grid-area: pic; align-self: end; justify-self: stretch; z-index: 2; padding: 0 clamp(10px, 6%, 18px) clamp(10px, 6%, 16px); pointer-events: none; }
.tile > .tile-acts { grid-area: acts; }
.tile-meta b { font-size: clamp(16px, 9cqw, 26px) !important; }
.tile-meta span { font-size: clamp(10.5px, 4.6cqw, 12.5px) !important; color: color-mix(in srgb, var(--ink) 70%, transparent) !important; }

/* card size: two grid icons */
.col-seg button { width: 40px !important; }
.col-seg svg { width: 18px; height: 18px; fill: currentColor; }
/* wall: one swatch; the colours slide out beside it */
.bar-r .walls { padding: 4px !important; gap: 0 !important; }
.wall-now { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 4px; border-radius: 999px; font-size: 14px; color: var(--ink); }
.wall-now i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); }
.wall-tray { display: flex !important; align-items: center; gap: 6px !important; max-width: 0; overflow: hidden; transition: max-width .45s cubic-bezier(.22,1,.36,1), padding .45s; }
.walls.open .wall-tray { max-width: 320px; padding: 0 6px 0 2px; }
.wall-tray .wall { width: 24px !important; height: 24px !important; flex: none; transform: scale(.4); opacity: 0; transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .2s; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12) !important; }
.walls.open .wall-tray .wall { transform: none; opacity: 1; }
.wall-tray .wall[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 2px var(--ground), 0 0 0 3.5px var(--ink) !important; }
@media (max-width: 700px) { .wall-now span { display: none; } .wall-now { padding: 0 4px; } }

/* ===== shelf page, simplified: the header holds the page's tools on the right; the cards start right under it */
.sr-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body.shelf-page main.shelf { padding-top: calc(var(--navh) + 8px); }
.shelf-tools { grid-column: 9 / 13; grid-row: 1; justify-self: end; align-self: center; display: flex; align-items: center; gap: 8px; }
.shelf-tools .ic-seg, .shelf-tools .col-seg { display: inline-flex; gap: 2px; padding: 3px !important; height: auto; border-radius: 999px; background: none !important; box-shadow: inset 0 0 0 1.5px var(--ink) !important; }
.shelf-tools .ic-seg button, .shelf-tools .col-seg button { width: 34px !important; height: 34px !important; border-radius: 50% !important; display: grid; place-items: center; color: var(--ink); background: none; padding: 0; }
.shelf-tools .ic-seg button[aria-selected="true"], .shelf-tools .col-seg button[aria-pressed="true"] { background: var(--ink) !important; color: var(--ground); }
.shelf-tools .ic-seg svg, .shelf-tools .col-seg svg { width: 17px; height: 17px; }
.shelf-tools .ic-seg button:first-child svg { fill: currentColor; }
.st-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); background: none !important; padding: 0 !important; }
.st-ic .fb-ic { width: 22px; height: 22px; }
.st-ic[aria-pressed="false"] { opacity: .55; }
.shelf-tools .walls { height: 40px; padding: 0 !important; background: none !important; box-shadow: inset 0 0 0 1.5px var(--ink) !important; border-radius: 999px; display: inline-flex; align-items: center; }
.shelf-tools .wall-now { height: 40px; padding: 0 6px; }
.shelf-tools .wall-now span { display: none; }
.shelf-tools .wall-now i { width: 26px; height: 26px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.shelf-tools .walls.open .wall-tray { padding: 0 8px 0 0; }
body.case-view .shelf-tools .col-seg, body.case-view .shelf-tools .flower-btn { display: none; }
body.case-view main.shelf { padding-top: var(--navh); }
body.case-view .bookcase { height: calc(100svh - var(--navh)) !important; }
@media (max-width: 700px) {
  body.shelf-page .nav { display: grid !important; grid-template-columns: 1fr auto; row-gap: 10px; height: auto; padding-top: 12px; padding-bottom: 10px; }
  body.shelf-page .nav > .mark { grid-column: 1; grid-row: 1; justify-self: start; }
  .shelf-nav .tabs { grid-column: 1 / -1; grid-row: 2; display: flex !important; gap: 16px; justify-self: start; }
  .shelf-tools { grid-column: 2; grid-row: 1; gap: 6px; }
  .shelf-tools .col-seg { display: none; }
  body.shelf-page main.shelf { padding-top: 120px; }
}
/* all header tools on one line, one height */
.shelf-tools { align-items: center !important; }
.shelf-tools > * { margin: 0 !important; align-self: center !important; }
.shelf-tools .ic-seg, .shelf-tools .col-seg, .shelf-tools .walls, .st-ic { height: 40px !important; box-sizing: border-box; }
.shelf-tools .ic-seg button, .shelf-tools .col-seg button { width: 32px !important; height: 32px !important; }
.shelf-tools .view-seg { margin: 0 !important; position: static !important; }

/* ===== flip cards */
.tile { display: block !important; perspective: 1200px; }
.flip { position: relative; display: grid; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.34, 1.4, .5, 1); }
.flip > .tile-pic, .flip > .tile-back { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tile-back { transform: rotateY(180deg); border-radius: calc(16 * var(--u)); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(14px, 8%, 24px); box-sizing: border-box; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); overflow: hidden; }
.tile-back::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.35), rgba(255,255,255,0) 60%); pointer-events: none; }
/* hover turns the vase; a click flips */
.tile-pic { cursor: pointer; }
.tile-back { cursor: pointer; }
.tile.flipped .flip { transform: rotateY(180deg); }
.tile:hover .tile-pic, .tile-pic:hover { translate: none !important; }
.tile-pic .dial { display: none !important; }
.tile-back .tile-meta { position: static !important; padding: 0 !important; display: grid !important; gap: 6px !important; pointer-events: auto; }
.tile-back .tile-meta b { font-size: clamp(22px, 12cqw, 40px) !important; white-space: normal !important; line-height: 1; }
.tile-back .tile-meta span { white-space: normal !important; font-size: clamp(12px, 5.4cqw, 14px) !important; }
.tile-back .tile-acts { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
.tile-back .tile-acts > * { justify-self: stretch; text-align: center; padding: 10px 0; border-radius: 999px; font-size: 13px !important; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink) !important; margin: 0 !important; }
.tile-back .tile-acts .act-main { grid-column: 1 / -1; background: var(--ink); color: var(--ground) !important; box-shadow: none; }
.tile-back .tile-acts .act-ic { width: auto !important; height: auto !important; display: grid; place-items: center; }
.tile-back .tile-acts .act-rm { box-shadow: none; text-decoration: underline !important; text-underline-offset: 3px; }
.tile-back .tile-acts [hidden] { display: none !important; }
@container (max-width: 210px) { .tile-back .tile-acts { grid-template-columns: 1fr; } .tile-back .tile-acts .act-ic { display: none; } }
@media (prefers-reduced-motion: reduce) { .flip { transition: none; } }
/* the page links: the same quiet words as the maker's header, the current one simply darker */
.shelf-nav .tabs a { font-size: calc(14 * var(--u)) !important; color: var(--ink-2); }
.shelf-nav .tabs a[aria-current="page"] { color: var(--ink); }
.shelf-nav .tabs a::after { display: none !important; }
/* the wall picker: one swatch; the colours drop down in a small card under it */
.shelf-tools .walls { position: relative; }
.shelf-tools .wall-tray { position: absolute !important; top: calc(100% + 8px); right: 0; max-width: none !important; padding: 10px !important; border-radius: 20px; background: var(--ground); box-shadow: inset 0 0 0 1.5px var(--ink); display: grid !important; grid-template-columns: repeat(4, 26px); gap: 8px !important; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .2s, transform .3s cubic-bezier(.34,1.56,.64,1); z-index: 5; }
.shelf-tools .walls.open .wall-tray { opacity: 1; pointer-events: auto; transform: none; }
.shelf-tools .wall-tray .wall { width: 26px !important; height: 26px !important; transform: none !important; opacity: 1 !important; }
.shelf-tools .wall-now { gap: 0; padding: 0 6px !important; }

/* the back of a shelf card: picture, colours, name and facts, actions */
.tile-back { justify-content: flex-start !important; gap: 10px; }
.tb-thumb { width: 44%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; align-self: flex-start; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.tb-chips { display: flex; gap: 6px; }
.tb-chips i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.tile-back .tile-acts { margin-top: auto !important; }
/* studio cards: no flip */
#studio .tile { perspective: none; }
/* bookcase view: the room fills everything under the header */
body.case-view .bookcase { position: fixed !important; left: 0; right: 0; top: var(--navh); bottom: 0; height: auto !important; margin: 0 !important; z-index: 1; }
body.case-view main.shelf { min-height: 0; }

/* ===== shelf, calm: one warm off-white ground; vases on their own coloured cards; the name under each card, the actions appear on the card when you point at it */
body.shelf-page { --ground: #f4efe6 !important; background: #f4efe6 !important; }
.tile { display: grid !important; grid-template-areas: "pic" "meta" !important; grid-template-rows: auto auto; gap: 10px !important; perspective: none !important; }
.tile > .tile-pic { grid-area: pic; box-shadow: none !important; }
.tile > .tile-pic .edge { display: none; }
.tile > .tile-meta { grid-area: meta !important; align-self: start !important; padding: 0 2px !important; pointer-events: auto; display: flex !important; flex-direction: row !important; align-items: baseline !important; justify-content: space-between; gap: 10px !important; }
.tile > .tile-meta b { font-size: clamp(17px, 8cqw, 22px) !important; }
.tile > .tile-meta span { font-size: 12px !important; color: var(--ink-2) !important; }
.tile > .tile-acts { grid-area: pic !important; align-self: end; justify-self: stretch; z-index: 3; display: flex !important; justify-content: center; gap: 6px !important; padding: 12px !important; opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .35s cubic-bezier(.34,1.56,.64,1); pointer-events: none; }
.tile:hover > .tile-acts, .tile:focus-within > .tile-acts { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: none) { .tile > .tile-acts { opacity: 1; transform: none; pointer-events: auto; } }
.tile > .tile-acts > * { height: 34px; padding: 0 14px !important; border-radius: 999px !important; display: inline-grid !important; place-items: center; font-size: 13px !important; background: rgba(255,255,255,.9) !important; color: var(--ink) !important; box-shadow: 0 0 0 1px rgba(0,0,0,.06) !important; text-decoration: none !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tile > .tile-acts .act-main { background: var(--ink) !important; color: #fff !important; }
.tile > .tile-acts .act-ic { width: 34px; padding: 0 !important; }
.tile > .tile-acts .act-rm { font-size: 12px !important; }
#tiles { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 36px 20px !important; }
@media (max-width: 700px) { #tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.shelf-tools { gap: 0 !important; }
/* the header holds only the view switch; the card actions fit inside the card */
body.shelf-page #flowers { display: none !important; }
.tile > .tile-acts { flex-wrap: wrap; gap: 4px !important; padding: 10px !important; }
.tile > .tile-acts > * { height: 30px; padding: 0 11px !important; font-size: 12px !important; }
.tile > .tile-acts .act-ic { width: 30px; }
body.shelf-page:not(.case-view) main.shelf { padding-top: 24px !important; }

/* ===== cards that fit every screen (patch 63) */
.tile { grid-template-columns: minmax(0, 1fr) !important; min-width: 0; }
.tile > .tile-meta { min-width: 0; flex-wrap: wrap !important; row-gap: 2px !important; }
.tile > .tile-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-acts > [hidden] { display: none !important; }
.tile-acts svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; width: 18px; height: 18px; flex: none; }
.tile > .tile-acts > *:not(.act-ic) svg { display: none; }
.tile > .tile-acts > * { display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; }
.bc3d-hint { white-space: nowrap; }
@media (max-width: 700px) {
  #tiles, #studio { gap: 28px 12px !important; }
  .tile { grid-template-areas: "pic" "meta" "acts" !important; grid-template-rows: auto auto auto; gap: 8px !important; }
  .tile > .tile-meta { flex-direction: column !important; align-items: flex-start !important; gap: 0 !important; }
  .tile > .tile-meta b { font-size: 18px !important; }
  .tile > .tile-meta span { font-size: 11px !important; max-width: 100%; }
  #tiles .tile > .tile-acts { grid-area: acts !important; align-self: start; justify-self: start; opacity: 1 !important; transform: none !important; pointer-events: auto !important; padding: 0 !important; gap: 6px !important; justify-content: flex-start; flex-wrap: nowrap !important; }
  #tiles .tile > .tile-acts > * { width: 36px !important; height: 36px !important; padding: 0 !important; border-radius: 50% !important; background: color-mix(in srgb, var(--ink) 7%, transparent) !important; color: var(--ink) !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
  #tiles .tile > .tile-acts > .act-main { background: var(--ink) !important; color: #fff !important; }
  #tiles .tile > .tile-acts > * span { display: none; }
  #tiles .tile > .tile-acts > * svg { display: block !important; width: 18px; height: 18px; }
  #studio .tile > .tile-acts { opacity: 1 !important; transform: none !important; pointer-events: auto !important; padding: 0 0 10px !important; }
  #studio .tile > .tile-acts > * { height: 32px !important; font-size: 12px !important; padding: 0 12px !important; }
  body.studio-page h1, .studio-head h1, main h1.serif { font-size: clamp(34px, 11vw, 56px) !important; line-height: 1 !important; overflow-wrap: anywhere; }
}
@media (max-width: 700px) { #tiles .tile > .tile-acts > [data-act="bloom"], #tiles .tile > .tile-acts > .act-ic { display: none !important; } }

/* ===== words, not icons (patch 66) */
.view-seg.word-seg { display: flex !important; gap: 20px !important; padding: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; width: auto !important; height: auto !important; }
.view-seg.word-seg button { position: relative; width: auto !important; height: auto !important; padding: 6px 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; color: var(--ink-2) !important; font-size: 15px !important; }
.view-seg.word-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 .4s var(--ease); }
.view-seg.word-seg button[aria-selected="true"] { color: var(--ink) !important; }
.view-seg.word-seg button[aria-selected="true"]::after { transform: scaleX(1); }
.view-seg.word-seg button::before { display: none !important; }
.tile > .tile-acts > * svg { display: none !important; }
@media (max-width: 700px) {
  #tiles .tile > .tile-acts { flex-wrap: wrap !important; gap: 4px 14px !important; }
  #tiles .tile > .tile-acts > * { width: auto !important; height: auto !important; border-radius: 0 !important; padding: 4px 0 !important; background: none !important; color: var(--ink) !important; font-size: 13px !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  #tiles .tile > .tile-acts > .act-main { background: none !important; color: var(--ink) !important; font-weight: 500; }
  #tiles .tile > .tile-acts > * span { display: inline !important; }
  #tiles .tile > .tile-acts > .act-pic { display: none !important; }
}
@media (max-width: 700px) {
  #tiles .tile > .tile-acts { flex-wrap: nowrap !important; gap: 12px !important; }
  #tiles .tile > .tile-acts > .act-main { font-size: 0 !important; }
  #tiles .tile > .tile-acts > .act-main::after { content: "Flowers"; font-size: 13px; }
}
@media (max-width: 700px) { #tiles .tile > .tile-acts > * { justify-content: flex-start !important; text-align: left; } }

/* ===== patch 70: card actions fit inside the card; a click on the picture makes it bloom */
#tiles .tile > .tile-acts > [data-act="bloom"] { display: none !important; }
@media (min-width: 701px) {
  #tiles .tile > .tile-acts { flex-wrap: wrap !important; justify-content: center !important; gap: 6px !important; padding: 12px !important; box-sizing: border-box; max-width: 100%; }
  #tiles .tile > .tile-acts > * { height: 30px !important; padding: 0 12px !important; font-size: 12.5px !important; white-space: nowrap; }
}
#tiles .tile-pic { cursor: pointer; }
#tiles .tile-pic img { image-rendering: auto; }
#tiles .tile-pic.popped img { animation: vasePop .5s cubic-bezier(.34, 1.56, .64, 1); transform-origin: 50% 90%; }
@keyframes vasePop { 0% { transform: scale(1); } 30% { transform: scale(.97, 1.03); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { #tiles .tile-pic.popped img { animation: none; } }

/* ===== patch 71: the bookcase room runs to the top of the window; the header floats on it, no band */
body.case-view .bookcase { top: 0 !important; }
body.case-view .nav, body.case-view header.nav { background: none !important; box-shadow: none !important; border: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; z-index: 5; }
body.case-view .nav::before, body.case-view .nav::after { display: none !important; }

/* ===== patch 72: the card actions as one quiet bar of words on the paper, not a row of pills */
@media (min-width: 701px) {
  #tiles .tile > .tile-acts { justify-content: center !important; align-items: flex-end; padding: 0 0 14px !important; flex-wrap: nowrap !important; opacity: 1 !important; transform: none !important; clip-path: inset(100% 0 0 0); transition: clip-path .45s var(--ease) !important; }
  #tiles .tile:hover > .tile-acts, #tiles .tile:focus-within > .tile-acts { clip-path: inset(0 0 0 0); }
  #tiles .tile > .tile-acts { gap: 0 !important; }
  #tiles .tile > .tile-acts > * { position: relative; height: 34px !important; padding: 0 13px !important; border-radius: 0 !important; background: #fffdf8 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; color: var(--ink) !important; font-size: 12.5px !important; font-weight: 400 !important; letter-spacing: .01em; }
  #tiles .tile > .tile-acts > :not([hidden]):first-child { border-radius: 999px 0 0 999px !important; padding-left: 16px !important; font-weight: 500 !important; }
  #tiles .tile > .tile-acts > :last-child { border-radius: 0 999px 999px 0 !important; padding-right: 16px !important; color: var(--ink-2) !important; }
  #tiles .tile > .tile-acts > * + *::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 1px; background: rgba(23,19,15,.14); }
  #tiles .tile > .tile-acts > [hidden] + *::before { display: block; }
  #tiles .tile > .tile-acts > *:hover { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 1px; color: var(--ink) !important; opacity: 1 !important; }
  #tiles .tile > .tile-acts .act-rm.sure { color: #c0392b !important; }
  @media (hover: none) { #tiles .tile > .tile-acts { clip-path: none; } }
}

/* the bookcase: a click on a vase asks before it takes you to edit; shelves can be added */
.bookcase { position: relative; }
.bc-pop { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 14px)); pointer-events: auto; }
.bc-pop[hidden] { display: none; }
.bc-pop button { display: block; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: #17130f; color: #fbf6ee; font: 500 14px/1 inherit; font-family: inherit; white-space: nowrap; cursor: pointer; }
.bc-pop button:hover { background: #3a2f25; }
.bc-pop::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #17130f; transform: translateX(-50%) rotate(45deg); border-radius: 2px; z-index: -1; }
.case-tools { display: none; gap: 14px; align-items: center; }
body.case-view .case-tools { display: inline-flex; }
.case-tools button { height: 36px; padding: 0 4px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: transparent; }
.case-tools button:hover { text-decoration-color: currentColor; }
.case-tools button[hidden] { display: none; }
.case-tools { margin-left: 18px; }
.shelf-tools .case-tools { margin-left: 18px !important; }
/* the question's hover: the words roll up and come round again, the dark stays solid */
.bc-pop button, .bc-pop button:hover { background: #17130f !important; }
.bc-pop button { overflow: hidden; }
.bc-roll { display: block; height: 40px; overflow: hidden; }
.bc-roll > span { display: block; height: 40px; line-height: 40px; transition: transform .45s cubic-bezier(.65, 0, .35, 1); }
.bc-pop button:hover .bc-roll > span { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .bc-roll > span { transition: none; } }

/* sharing is the point of a card: its own button at the top right of the picture; the bar keeps the rest */
.tile { position: relative; }
.tile-acts [data-act=share] { display: none !important; }
.tile-acts [data-act=share] + * ::before, .tile-acts [data-act=share] + *::before { }
.tile-share { position: absolute; z-index: 3; top: 14px; right: 14px; height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: #17130f; color: #fbf6ee; font: 500 14px/1 inherit; font-family: inherit; cursor: pointer; overflow: hidden; }
.tile-share .bc-roll, .tile-share .bc-roll > span { height: 40px; line-height: 40px; }
.tile-share:hover .bc-roll > span { transform: translateY(-100%); }
.tile-share:hover { background: #17130f; }
/* the bookcase layers: a new picture is built over the old one */
.bc-layer { position: absolute; inset: 0; }

/* Add flowers: a panel over the shelf, not a page of its own; the picture always fits whole */
.arr-stage { container-type: size; }
.arr-pic { height: auto !important; width: min(100cqw, 100cqh * .8) !important; aspect-ratio: 4 / 5; }
@media (min-width: 701px) {
  .arrange { inset: auto; left: 50%; top: 50%; width: min(1240px, calc(100vw - 48px)); height: min(880px, calc(100svh - 48px)); border-radius: 28px; box-shadow: 0 0 0 1px var(--hair), 0 40px 90px -30px rgba(23, 19, 15, .45);
    grid-template-columns: minmax(200px, 1fr) minmax(0, 2.1fr) minmax(220px, 1fr); column-gap: 32px; padding: 28px 32px; transform: translate(-50%, -50%) scale(.97); }
  .arrange.open { transform: translate(-50%, -50%); }
  .arr-head { grid-column: 1; } .arr-stage { grid-column: 2; height: 100%; } .arr-tray { grid-column: 3; }
  .arr-head h2 { font-size: calc(48 * var(--u)); }
}
@media (max-width: 700px) { .arr-stage { container-type: inline-size; } .arr-pic { width: 100% !important; } }
@media (min-width: 701px) { .arrange { width: min(1060px, calc(100vw - 160px)); height: min(740px, calc(100svh - 140px)); padding: 24px 28px; column-gap: 24px; } .arr-head h2 { font-size: calc(40 * var(--u)); } }

/* ===== patch 82: nothing rises. The card's bar and its Share appear in place, only while the card is pointed at; no wipe, no lift, no rolling label */
#tiles .tile > .tile-acts { transition: none !important; transform: none !important; }
.tile-share .bc-roll > span, .tile-share:hover .bc-roll > span { transform: none !important; transition: none !important; }
.tile-share .bc-roll > span + span { display: none; }
.kind:hover, .fcol:hover { translate: none !important; }
@media (hover: hover) { .tile-share { display: none; } .tile:hover .tile-share, .tile:focus-within .tile-share { display: block; } }
@media (hover: none) { .tile-share { display: none; } #tiles .tile > .tile-acts [data-act=share] { display: inline-flex !important; align-items: center; } }

/* ===== patch 82: arranging, reduced: the name, the vase, the flowers and colours; Done and Undo. Esc or a click outside leaves without saving */
.arr-head { gap: 16px; }
.arr-tray { gap: 16px; }
.kind { padding: 4px 2px; }
.kind span { display: none; }
.tile-pic:hover, .tile:hover .tile-pic { translate: none !important; transform: none !important; }   /* the card stays put on hover */
/* flowers: the picked flower follows the pointer and shows where it opens, so no cross on top of it */
.arr-pic canvas { cursor: none !important; }
/* the card's bar stays where it is; nothing rises on hover */
#tiles .tile > .tile-acts { clip-path: none !important; transform: none !important; translate: none !important; transition: none !important; }
/* bookcases are added and taken away right by the bookcases, not from the top bar */
.shelf-tools .case-tools { display: none !important; }
.bc-add { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 10px; padding: 0; border: 0; background: none; color: #17130f; font: inherit; font-size: 13px; cursor: pointer; }
.bc-add i { position: relative; display: block; width: 48px; height: 48px; border-radius: 50%; background: #17130f; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.bc-add i::before, .bc-add i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; border-radius: 1px; background: #fbf6ee; transform: translate(-50%, -50%); }
.bc-add i::after { transform: translate(-50%, -50%) rotate(90deg); }
.bc-add:hover i { transform: rotate(90deg); }
.bc-add span { white-space: nowrap; }
.bc-drop { position: absolute; z-index: 2; transform: translate(-50%, -50%); padding: 6px 2px; border: 0; background: none; color: #17130f; font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: transparent; }
.bc-drop:hover { text-decoration-color: currentColor; }
.bc-roll > span { transition-duration: .7s !important; }
.bc-add i { transition-duration: .7s !important; }

/* Add flowers, in place: the card's own picture takes the flowers; a slim set of tools sits right under it. No panel, no new page */
.arrange.inplace { position: fixed !important; inset: auto !important; left: var(--ax) !important; top: var(--ay) !important; width: var(--aw) !important; height: calc(var(--ph) + 112px) !important;
  display: block !important; padding: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; transform: none !important; opacity: 1 !important; overflow: visible; z-index: 20; }
.arrange.inplace .arr-stage { position: absolute; left: 0; top: 0; width: 100%; height: var(--ph) !important; }
.arrange.inplace .arr-pic { width: 100% !important; height: 100% !important; border-radius: var(--ar, 24px); }
.arrange.inplace #arrTitle { display: none; }
.arrange.inplace .arr-tray, .arrange.inplace .arr-head { --ink: #17130f; --ink-2: rgba(23, 19, 15, .6); color: var(--ink); }
.arrange.inplace .arr-tray { position: absolute; left: 0; right: 0; top: calc(var(--ph) + 10px); height: 100px; margin: 0; padding: 0; display: grid; grid-template-rows: auto auto; gap: 10px; background: #f3eee6; align-content: start; }
.arrange.inplace .kinds { display: flex !important; gap: 4px; }
.arrange.inplace .kind { padding: 2px; border-radius: 10px; }
.arrange.inplace .kind span { display: none; }
.arrange.inplace .kind canvas { width: 40px !important; height: 40px !important; }
.arrange.inplace .kind[aria-pressed="true"] { background: #e6dfd3; }
.arrange.inplace .fcols { gap: 7px; align-items: center; padding-left: 4px; }
.arrange.inplace .fcol { width: 20px; height: 20px; }
.arrange.inplace .fcol[aria-pressed="true"] { box-shadow: 0 0 0 2px #f3eee6, 0 0 0 3.2px #17130f; }
.arrange.inplace .arr-head { position: absolute; right: 0; top: calc(var(--ph) + 54px); display: block; margin: 0; z-index: 2; }
.arrange.inplace .arr-btns { display: flex; gap: 6px; }
.arrange.inplace .arr-btns .btn { height: 36px; padding: 0 16px; font-size: 14px; }
/* the +: hidden until the pointer goes out to the right of the last bookcase; it grows in, no fade */
.bc-add { pointer-events: none; }
.bc-add i, .bc-add span { transform: scale(0); transition: transform .6s cubic-bezier(.22, 1, .36, 1) !important; }
.bc-add span { transform: translateY(-6px) scale(0); transform-origin: 50% 0; }
.bc-add.on { pointer-events: auto; }
.bc-add.on i { transform: scale(1); }
.bc-add.on span { transform: none; }
.bc-add.on:hover i { transform: rotate(90deg); }
/* the card's bar as icons: flowers, open, remove */
#tiles .tile > .tile-acts > .act-ic { width: 40px; height: 36px; padding: 0 !important; display: inline-grid !important; place-items: center; }
#tiles .tile > .tile-acts > .act-ic:hover { text-decoration: none !important; color: var(--ink) !important; }
#tiles .tile > .tile-acts > .act-ic svg { transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
#tiles .tile > .tile-acts > .act-ic:hover svg { transform: translateY(-2px); }
#tiles .tile > .tile-acts > .act-rm.sure { width: auto; padding: 0 10px !important; font-size: 13px; }
#tiles .tile > .tile-acts > .act-ic svg { display: block !important; width: 20px !important; height: 20px !important; }
#tiles .tile > .tile-acts { justify-content: center !important; gap: 0 !important; }
#tiles .tile > .tile-acts > .act-ic { width: 52px !important; }
/* in place: the same rounded corners as the card; Done and Undo sit on the flower row, the colours get their own */
.arrange.inplace .arr-pic { border-radius: var(--ar, 24px) !important; overflow: hidden; }
.arrange.inplace .arr-head { top: calc(var(--ph) + 12px) !important; }
#tiles .tile > .tile-acts > * { margin: 0 !important; }
/* in place: flower kinds on one row; colours with Undo and Done on the next */
.arrange.inplace .arr-head { top: calc(var(--ph) + 58px) !important; }
.arrange.inplace .fcols { gap: 6px; }
.arrange.inplace .fcol { width: 18px; height: 18px; }
.arrange.inplace .arr-btns .btn { height: 32px; padding: 0 13px; font-size: 13px; }
.arrange.inplace .kind canvas { width: 36px !important; height: 36px !important; }

/* ===== the card's actions: three ink circles that come up out of the card when you're on it (always there on touch) */
@media (hover: hover) {
  #tiles .tile > .tile-acts { background: none !important; box-shadow: none !important; padding: 0 !important; gap: 10px !important; pointer-events: none; }
  #tiles .tile:hover > .tile-acts, #tiles .tile:focus-within > .tile-acts { pointer-events: auto; }
  #tiles .tile > .tile-acts > *::before { display: none !important; }
  #tiles .tile > .tile-acts > .act-ic { width: 46px !important; height: 46px !important; border-radius: 50% !important; background: #17130f !important; color: #fbf6ee !important;
    transform: translateY(18px) scale(0); transition: transform .55s cubic-bezier(.34, 1.4, .64, 1) !important; }
  #tiles .tile > .tile-acts > .act-ic:nth-child(2) { transition-delay: .05s !important; }
  #tiles .tile > .tile-acts > .act-rm { transition-delay: .1s !important; color: #fbf6ee !important; }
  #tiles .tile:hover > .tile-acts > .act-ic, #tiles .tile:focus-within > .tile-acts > .act-ic { transform: none; }
  #tiles .tile > .tile-acts > .act-ic:hover { background: #3a2f25 !important; }
  #tiles .tile > .tile-acts > .act-ic:hover svg { transform: none; }
  #tiles .tile > .tile-acts > .act-rm.sure { width: auto !important; border-radius: 999px !important; padding: 0 16px !important; background: #c0392b !important; }
  /* the name of each, under the pointer */
  #tiles .tile > .tile-acts > .act-ic[aria-label]::after { content: attr(aria-label); position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 0; padding: 5px 10px; border-radius: 999px; background: #17130f; color: #fbf6ee; font-size: 12px; white-space: nowrap; pointer-events: none; transform: scale(0); transform-origin: 50% 100%; transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
  #tiles .tile > .tile-acts > .act-ic:hover::after { transform: scale(1); }
  #tiles .tile > .tile-acts > .act-ic { position: relative; overflow: visible !important; }
}
@media (hover: hover) {
  html body #tiles .tile > .tile-acts, html body #tiles .tile > .tile-acts > * { clip-path: none !important; overflow: visible !important; }
  html body #tiles .tile > .tile-acts > .act-ic, html body #tiles .tile > .tile-acts > .act-ic:first-child, html body #tiles .tile > .tile-acts > .act-ic:last-child { border-radius: 50% !important; }
  html body #tiles .tile > .tile-acts > .act-ic:hover { color: #fbf6ee !important; text-decoration: none !important; }
}
/* Cards / Bookcase: a little picture of each, so the choice reads at a glance */
.view-seg button { display: inline-flex !important; align-items: center; gap: 8px; }
.view-seg .vs-pic { display: block; width: 34px; height: 29px; object-fit: contain; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.view-seg button:hover .vs-pic { transform: translateY(-2px); }
.view-seg button[aria-selected="false"] .vs-pic { filter: saturate(.55); }
/* removing an empty bookcase you added: a small × at its top corner, only while you're on that bookcase */
.bc-drop { transform: translate(-50%, -50%) !important; padding: 0 !important; text-decoration: none !important; pointer-events: none; }
.bc-drop i { position: relative; display: block; width: 34px; height: 34px; border-radius: 50%; background: #17130f; transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.4, .64, 1); }
.bc-drop i::before, .bc-drop i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.8px; border-radius: 1px; background: #fbf6ee; transform: translate(-50%, -50%) rotate(45deg); }
.bc-drop i::after { transform: translate(-50%, -50%) rotate(-45deg); }
.bc-drop span { position: absolute; right: 50%; bottom: calc(100% + 8px); translate: 50% 0; padding: 5px 10px; border-radius: 999px; background: #17130f; color: #fbf6ee; font-size: 12px; white-space: nowrap; transform: scale(0); transform-origin: 50% 100%; transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.bc-drop.on { pointer-events: auto; }
.bc-drop.on i { transform: scale(1); }
.bc-drop.on:hover span { transform: scale(1); }
.bc-drop.on:hover i { background: #3a2f25; }
.view-seg button { gap: 5px !important; }
.view-seg svg.vs-pic { width: 20px; height: 27px; }
.view-seg img.vs-pic { width: 34px; height: 29px; filter: brightness(1.3) saturate(.85) contrast(.92); }
.view-seg button[aria-selected="false"] img.vs-pic { filter: brightness(1.3) saturate(.5) contrast(.92); }
/* card actions as words: small ink pills that come up on hover, the same as Share */
@media (hover: hover) {
  html body #tiles .tile > .tile-acts { gap: 6px !important; bottom: 16px; }
  html body #tiles .tile > .tile-acts > .act-ic, html body #tiles .tile > .tile-acts > .act-ic:first-child, html body #tiles .tile > .tile-acts > .act-ic:last-child { width: auto !important; height: 36px !important; padding: 0 15px !important; border-radius: 999px !important; font-size: 13.5px !important; font-weight: 400; display: inline-flex !important; align-items: center; }
  html body #tiles .tile > .tile-acts > .act-ic::after { display: none !important; }
  html body #tiles .tile > .tile-acts > .act-rm { color: rgba(251, 246, 238, .7) !important; }
}
@media (hover: hover) { html body #tiles .tile > .tile-acts { margin-top: -66px !important; position: relative; z-index: 2; } }

/* 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; } }
/* flowers, in place: the vase's own colours come first, set off by a hairline; picking a flower gives it a little bounce */
.arrange.inplace .fcol.own + .fcol:not(.own) { margin-left: 10px; position: relative; }
.arrange.inplace .fcol.own + .fcol:not(.own)::before { content: ""; position: absolute; left: -9px; top: 2px; bottom: 2px; width: 1px; background: rgba(23, 19, 15, .2); }
.arrange.inplace .kind canvas { transition: transform .5s cubic-bezier(.34, 1.5, .64, 1); }
.arrange.inplace .kind:hover canvas { transform: translateY(-3px) rotate(-4deg); }
.arrange.inplace .kind[aria-pressed="true"] canvas { transform: scale(1.12); }
.arrange.inplace .fcol { transition: transform .5s cubic-bezier(.34, 1.5, .64, 1), box-shadow .4s cubic-bezier(.22, 1, .36, 1) !important; }
.arrange.inplace .fcol:hover { transform: scale(1.18); translate: none !important; }
.arrange.inplace .arr-tray, .arrange.inplace .arr-head { animation: arrUp .6s cubic-bezier(.22, 1, .36, 1) both; }
.arrange.inplace .arr-head { animation-delay: .08s; }
@keyframes arrUp { from { clip-path: inset(0 0 100% 0); transform: translateY(-10px); } to { clip-path: inset(0 0 -20% 0); transform: none; } }
@media (prefers-reduced-motion: reduce) { .arrange.inplace .arr-tray, .arrange.inplace .arr-head { animation: none; } }

/* ===== phones: flowers. The card comes up large over a soft veil; the tools are one bar at the bottom */
html body .arrange.inplace[hidden] { display: none !important; }
.arrange.inplace.big::before { content: ""; position: fixed; inset: 0; background: #f3eee6; z-index: -1; }
.arrange.inplace.big { height: auto !important; }
.arrange.inplace.big .arr-tray { position: fixed !important; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); top: auto !important; height: auto !important; padding: 12px 14px; border-radius: 22px; background: #fffdf8 !important; gap: 12px; animation: none; }
.arrange.inplace.big .kinds { justify-content: space-between; }
.arrange.inplace.big .kind canvas { width: 44px !important; height: 44px !important; }
.arrange.inplace.big .fcol { width: 24px; height: 24px; }
.arrange.inplace.big .fcols { gap: 8px; padding-right: 150px; flex-wrap: nowrap; overflow: hidden; }
.arrange.inplace.big .arr-head { position: fixed !important; right: 24px; top: auto !important; bottom: calc(22px + env(safe-area-inset-bottom)); animation: none; }
.arrange.inplace.big .arr-btns .btn { height: 36px; }
@media (hover: none) { #tiles .tile > .tile-acts { gap: 2px 12px !important; flex-wrap: wrap; } #tiles .tile > .tile-acts > * { font-size: 13px !important; } }
@media (max-width: 700px) { .view-seg .vs-pic { display: none; } }
.arrange.inplace .fcol { flex: none; }
body:has(.arrange.big:not([hidden])) .snd-btn { display: none; }
/* touch screens: the card's words wrap inside the card, never past the screen edge */
@media (hover: none) {
  html body #tiles .tile { min-width: 0; }
  html body #tiles .tile > .tile-acts { display: flex !important; flex-wrap: wrap !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; box-sizing: border-box; gap: 2px 14px !important; margin: 0 !important; padding: 0 0 10px !important; justify-content: flex-start !important; overflow: hidden; }
  html body #tiles .tile > .tile-acts > * { flex: none; margin: 0 !important; padding: 4px 0 !important; width: auto !important; white-space: nowrap; }
  html body #tiles .tile > .tile-acts > *::before { display: none !important; }
}
html, body { overflow-x: clip; }
.arrange.inplace.big .fcols { padding-right: 0 !important; max-width: calc(100% - 150px); box-sizing: border-box; }

/* ===== 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; } }
@media (max-width: 700px) {
  /* the card's words: one size, one baseline */
  html body #tiles .tile > .tile-acts { align-items: center !important; }
  html body #tiles .tile > .tile-acts > *, html body #tiles .tile > .tile-acts > .act-ic { font-size: 14px !important; line-height: 1.2 !important; height: auto !important; padding: 6px 0 !important; display: inline-block !important; vertical-align: middle; font-weight: 400 !important; }
  html body #tiles .tile > .tile-acts > .act-main { font-size: 14px !important; }
  /* the toast sits at the bottom here, clear of the menu */
  html body .toast, html body .toast.on { top: auto !important; bottom: calc(20px + env(safe-area-inset-bottom)) !important; }
  /* the speaker in the bottom corner */
  html body .snd-btn { top: auto !important; bottom: calc(20px + env(safe-area-inset-bottom)) !important; right: 16px !important; }
  body:has(.toast.on) .snd-btn { visibility: hidden; }
}
/* touch: the card's words as written, no swapped-in text */
@media (hover: none) {
  html body #tiles .tile > .tile-acts > .act-main { font-size: 14px !important; }
  html body #tiles .tile > .tile-acts > *::after { content: none !important; display: none !important; }
}
@media (hover: none) { html body #tiles .tile > .tile-acts > .act-ic, html body #tiles .tile > .tile-acts > .act-main, html body #tiles .tile > .tile-acts > .act-open, html body #tiles .tile > .tile-acts > .act-rm { width: auto !important; min-width: 0 !important; } html body #tiles .tile > .tile-acts { column-gap: 16px !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; }
.arrange.inplace .arr-btns { align-items: center; }
.arrange.inplace .arr-btns .snd-btn { color: #6b625a !important; box-shadow: inset 0 0 0 1.5px rgba(23,19,15,.2) !important; }
.arrange.inplace .arr-btns .snd-btn[aria-pressed="true"] { background: #17130f !important; color: #fbf6ee !important; box-shadow: none !important; }

/* ===== touch: no row of words under each card; a quiet … on the card opens its actions from the bottom */
.tile-more { display: none; }
.act-sheet[hidden] { display: none; }
@media (hover: none) {
  html body #tiles .tile > .tile-acts { display: none !important; }
  .tile-more { display: grid; grid-auto-flow: column; gap: 3px; place-content: center; position: absolute; z-index: 3; top: 10px; right: 10px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #fffdf8; box-shadow: 0 1px 4px rgba(23,19,15,.12); }
  .tile-more i { display: block; width: 4px; height: 4px; border-radius: 50%; background: #17130f; }
  html body .tile-share { display: none !important; }
}
.act-sheet { position: fixed; inset: 0; z-index: 80; }
.act-sheet .as-veil { position: absolute; inset: 0; background: rgba(23, 19, 15, .32); opacity: 0; transition: opacity .38s cubic-bezier(.22, 1, .36, 1); }
.act-sheet .as-card { position: absolute; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 18px 8px 8px; border-radius: 24px; background: #fffdf8; transform: translateY(110%); transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.act-sheet.on .as-veil { opacity: 1; }
.act-sheet.on .as-card { transform: none; }
.act-sheet .as-title { display: block; padding: 0 14px 10px; font-family: "PottleHead", "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 24px; color: #17130f; }
.act-sheet .as-list { display: grid; }
.act-sheet .as-list button, .act-sheet .as-cancel { display: block; width: 100%; height: 52px; padding: 0 14px; border: 0; border-top: 1px solid rgba(23,19,15,.1); background: none; text-align: left; font: inherit; font-size: 16px; color: #17130f; }
.act-sheet .as-list button:active, .act-sheet .as-cancel:active { background: #f1ebe1; }
.act-sheet .as-list .danger { color: #c0392b; }
.act-sheet .as-cancel { margin-top: 6px; border-radius: 16px; border-top: 0; background: #f1ebe1; text-align: center; font-weight: 500; }

/* ===== phone: arranging flowers. Done, Undo and sound on a bar at the top; kinds and colours each a sideways row at the bottom */
@media (max-width: 700px) {
  html body .arrange.inplace.big .arr-head { position: fixed !important; left: 0 !important; right: 0 !important; top: 0 !important; bottom: auto !important; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: #f3eee6; z-index: 3; }
  html body .arrange.inplace.big .arr-btns { display: flex !important; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 8px; }
  html body .arrange.inplace.big .arr-btns .btn { height: 40px !important; padding: 0 20px !important; font-size: 15px !important; }
  html body .arrange.inplace.big .arr-btns #arrUndo { margin-right: auto; }
  html body .arrange.inplace.big .arr-tray { left: 0 !important; right: 0 !important; bottom: 0 !important; border-radius: 22px 22px 0 0 !important; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)) !important; gap: 10px !important; }
  html body .arrange.inplace.big .kinds, html body .arrange.inplace.big .fcols { display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important; gap: 8px !important; overflow-x: auto; scrollbar-width: none; padding: 0 16px !important; max-width: none !important; }
  html body .arrange.inplace.big .kinds::-webkit-scrollbar, html body .arrange.inplace.big .fcols::-webkit-scrollbar { display: none; }
  html body .arrange.inplace.big .kind { flex: none; }
  html body .arrange.inplace.big .kind canvas { width: 50px !important; height: 50px !important; }
  html body .arrange.inplace.big .fcol { flex: none; width: 30px !important; height: 30px !important; }
  html body .arrange.inplace.big .fcols { padding-top: 4px !important; padding-bottom: 4px !important; }
}

/* ===== Add flowers, in place, rebuilt: one card of tools under the vase. Row 1 the flowers, row 2 the colours, row 3 Undo, sound and Done. Nothing overlaps. */
@media (min-width: 701px) {
  html body .arrange.inplace .arr-tray { position: absolute !important; left: var(--tx, 0px) !important; right: auto !important; top: calc(var(--ph) + 12px) !important; width: var(--tw, 360px) !important; height: auto !important; box-sizing: border-box;
    display: grid !important; grid-template-rows: auto auto auto; gap: 10px !important; padding: 12px 14px 14px !important; border-radius: 20px !important; background: #fffdf8 !important; box-shadow: 0 10px 30px -12px rgba(23, 19, 15, .25), 0 0 0 1px rgba(23, 19, 15, .06) !important; }
  html body .arrange.inplace .kinds { display: flex !important; justify-content: space-between !important; gap: 2px !important; flex-wrap: nowrap !important; }
  html body .arrange.inplace .kind { flex: 1 1 0; display: grid !important; place-items: center; padding: 2px 0 !important; min-width: 0; }
  html body .arrange.inplace .kind canvas { width: 40px !important; height: 40px !important; }
  html body .arrange.inplace .fcols { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 8px !important; padding: 2px 2px 4px !important; overflow-x: auto; scrollbar-width: none; max-width: none !important; }
  html body .arrange.inplace .fcols::-webkit-scrollbar { display: none; }
  html body .arrange.inplace .fcol { flex: none; width: 24px !important; height: 24px !important; }
  html body .arrange.inplace .arr-tray > .arr-head { position: static !important; display: block !important; margin: 2px 0 0 !important; padding: 10px 0 0 !important; border-top: 1px solid rgba(23, 19, 15, .08); animation: none !important; }
  html body .arrange.inplace .arr-tray > .arr-head .arr-btns { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; }
  html body .arrange.inplace .arr-tray > .arr-head #arrUndo { order: 1; height: 36px !important; padding: 0 16px !important; font-size: 14px !important; }
  html body .arrange.inplace .arr-tray > .arr-head .snd-btn { order: 2; }
  html body .arrange.inplace .arr-tray > .arr-head #arrDone { order: 3; margin-left: auto !important; height: 36px !important; padding: 0 22px !important; font-size: 14px !important; }
  html body .arrange.inplace { height: calc(var(--ph) + 200px) !important; }
}
/* phone: Done, Undo and sound stay on the top bar */
@media (max-width: 700px) { html body .arrange.inplace.big .arr-tray > .arr-head { position: fixed !important; } }
/* while arranging, the rest of the shelf steps back behind a quiet veil, so the tools never read as part of another card */
@media (min-width: 701px) {
  html body .arrange.inplace::before { content: ""; position: fixed; inset: 0; z-index: -1; background: color-mix(in srgb, #f3eee6 86%, transparent); pointer-events: none; }
}
.view-seg .vs-pic { display: none !important; } .view-seg button { gap: 0 !important; }

/* the header follows the page but has no tinted, blurred band behind it */
html body .shelf-nav, html body header.nav.shelf-nav { position: sticky !important; top: 0; background: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; }
html body .view-bar { background: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* card actions, quieter: small paper pills that rise a little, no pop; ink fills them on hover */
@media (hover: hover) {
  html body #tiles .tile > .tile-acts { gap: 6px !important; }
  html body #tiles .tile > .tile-acts > .act-ic, html body #tiles .tile > .tile-acts > .act-ic:first-child, html body #tiles .tile > .tile-acts > .act-ic:last-child { height: 30px !important; padding: 0 12px !important; font-size: 12.5px !important; background: #fffdf8 !important; color: #17130f !important; box-shadow: none !important;
    transform: translateY(8px) !important; transition: transform .45s cubic-bezier(.22, 1, .36, 1), background-color .35s cubic-bezier(.22, 1, .36, 1), color .35s cubic-bezier(.22, 1, .36, 1) !important; }
  html body #tiles .tile > .tile-acts > .act-rm { color: #8a8178 !important; }
  html body #tiles .tile:hover > .tile-acts > .act-ic, html body #tiles .tile:focus-within > .tile-acts > .act-ic { transform: none !important; }
  html body #tiles .tile > .tile-acts > .act-ic:hover { background: #17130f !important; color: #fbf6ee !important; }
  html body #tiles .tile > .tile-acts > .act-rm.sure { background: #c0392b !important; color: #fff !important; }
  html body #tiles .tile > .tile-acts { margin-top: -52px !important; }
}
/* the card's buttons are there only while you are on the card */
@media (hover: hover) {
  html body #tiles .tile > .tile-acts > .act-ic { visibility: hidden; }
  html body #tiles .tile:hover > .tile-acts > .act-ic, html body #tiles .tile:focus-within > .tile-acts > .act-ic { visibility: visible; }
}
/* Add flowers is the one that matters here, after Share: ink like Share; Edit stays paper; Remove is a small bin */
@media (hover: hover) {
  html body #tiles .tile > .tile-acts > .act-main.act-ic:first-child { background: #17130f !important; color: #fbf6ee !important; }
  html body #tiles .tile > .tile-acts > .act-main.act-ic:first-child:hover { background: #3a2f25 !important; }
  html body #tiles .tile > .tile-acts > .act-rm.act-ic:last-child:not(.sure) { width: 30px !important; padding: 0 !important; justify-content: center; border-radius: 50% !important; color: #17130f !important; }
  html body #tiles .tile > .tile-acts > .act-rm.act-ic:last-child:not(.sure):hover { background: #c0392b !important; color: #fff !important; }
  html body #tiles .tile > .tile-acts > .act-rm svg { display: block; }
}
@media (hover: none) { html body #tiles .tile > .tile-acts > .act-rm svg { width: 18px; height: 18px; vertical-align: middle; } }
html body #tiles .tile > .tile-acts > .act-rm svg { stroke-width: 1.25 !important; width: 18px !important; height: 18px !important; }
*, *::before, *::after { corner-shape: squircle; }
.wall, .fcol, .col-seg button, .wall-now i, .st-ic, .tb-chips i, .bc-add i, .bc-drop i, .tile-more, .tile-more i, .snd-btn, html body #tiles .tile > .tile-acts > .act-rm:not(.sure), input[type=range]::-webkit-slider-thumb { corner-shape: round !important; }
/* removing a bookcase: a quiet small paper disc with a fine ×, not a black UI button; ink only when you are on it */
.bc-drop i { width: 24px !important; height: 24px !important; background: #fbf6ee !important; box-shadow: inset 0 0 0 1px rgba(23, 19, 15, .18); transition: transform .45s cubic-bezier(.22, 1, .36, 1), background-color .3s cubic-bezier(.22, 1, .36, 1) !important; }
.bc-drop i::before, .bc-drop i::after { width: 9px !important; height: 1.2px !important; background: #17130f !important; }
.bc-drop.on:hover i { background: #17130f !important; }
.bc-drop.on:hover i::before, .bc-drop.on:hover i::after { background: #fbf6ee !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 #tiles .tile > .tile-acts > .act-main.act-ic:first-child:hover,
  html body .tile-share:hover, html body .bc-pop button:hover, html body #arrDone:hover, html body .act-sheet button:hover { background: #fffdf8 !important; color: #17130f !important; box-shadow: inset 0 0 0 1.5px #17130f !important; opacity: 1 !important; }
  html body #tiles .tile > .tile-acts > .act-open.act-ic:hover, html body #arrUndo:hover { background: #17130f !important; color: #fbf6ee !important; box-shadow: none !important; opacity: 1 !important; }
  html body .bc-drop.on:hover i { background: #17130f !important; }
  html body .tile-pic:hover .edge path, html body .drawer-list button:hover .edge path { stroke: #b9b0a6 !important; }
  html body .fcol:hover { translate: 0 -2px; opacity: 1 !important; }
}
/* the flower colours: no line between the vase's own colours and the rest; room for the ring of the chosen one */
html body .arrange.inplace .fcol.own + .fcol:not(.own) { margin-left: 0 !important; }
html body .arrange.inplace .fcol.own + .fcol:not(.own)::before { display: none !important; }
html body .arrange.inplace .fcols { padding: 7px 7px 7px !important; margin: -5px -5px !important; }
/* Done: paper type on ink, never the vase's colour */
html body #arrDone { background: #17130f !important; color: #fbf6ee !important; }
html body #arrDone:hover { background: #fffdf8 !important; color: #17130f !important; }
/* the page you are on, marked the same way as Cards / Bookcase */
html body .shelf-nav .tabs a[aria-current="page"] { position: relative; }
html body .shelf-nav .tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1.5px; background: currentColor; }
/* removing a bookcase: the same small ink pill as the shelf bubbles, words not a symbol, coming up softly at the corner */
html body .bc-drop i { display: none !important; }
html body .bc-drop span { position: static !important; translate: none !important; display: block; height: 30px; line-height: 30px; padding: 0 14px !important; border-radius: 999px; background: #17130f !important; color: #fbf6ee !important; font-size: 13px !important; transform: translateY(6px) scale(.96) !important; transform-origin: 50% 100%; visibility: hidden; transition: transform .45s cubic-bezier(.22, 1, .36, 1), background-color .3s cubic-bezier(.22, 1, .36, 1), color .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s cubic-bezier(.22, 1, .36, 1), visibility 0s .45s !important; }
html body .bc-drop.on span { visibility: visible; transform: none !important; transition-delay: 0s, 0s, 0s, 0s, 0s !important; }
html body .bc-drop.on:hover span { background: #fffdf8 !important; color: #17130f !important; box-shadow: inset 0 0 0 1.5px #17130f; transform: none !important; }
/* Add flowers: over the picture the pointer is the small dot itself; over a grown flower, a hand to move it */
@media (hover: hover) { html body #arrange .arr-pic canvas { cursor: none; } }
/* Add flowers opens without fuss: the picture is simply there, exactly where the card was (no fade, no zoom, the card's own buttons never show through);
   only the tools come down from under it. No shadow under the tools, a hairline instead */
html body .arrange.inplace, html body .arrange.inplace .arr-stage, html body .arrange.inplace .arr-pic, html body .arrange.inplace .arr-pic img, html body .arrange.inplace .arr-pic canvas { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; scale: none !important; }
html body .arrange.inplace .arr-tray { box-shadow: inset 0 0 0 1px rgba(23, 19, 15, .1) !important; filter: none !important; }
html body .arrange.inplace .arr-tray::after, html body .arrange.inplace .arr-tray::before { display: none !important; }
html body .arrange.inplace .arr-tray { animation: arrDrop .5s cubic-bezier(.22, 1, .36, 1) both !important; }
@keyframes arrDrop { from { clip-path: inset(0 0 100% 0); translate: 0 -8px; } to { clip-path: inset(0 0 0 0); translate: 0 0; } }

/* ===== Add flowers tools: a slim palette standing beside the picture, the height of the picture, like paints next to a canvas.
   Flowers two by three, the colours below them, then undo and sound, and Done across the bottom. It never sits over another card's picture */
@media (min-width: 701px) {
  html body .arrange.inplace { height: var(--ph) !important; }
  /* on a tablet the picture can be shorter than the tools: the palette grows down past it (kept on screen) instead of cutting off the colours and Done */
  html body .arrange.inplace .arr-tray { position: absolute !important; top: 0 !important; left: calc(100% + 12px) !important; right: auto !important; width: 148px !important; height: auto !important; min-height: var(--ph); margin-top: var(--tyo, 0px) !important; box-sizing: border-box;
    display: flex !important; flex-direction: column !important; gap: 14px !important; padding: 14px !important; background: #fffdf8 !important; border-radius: 22px !important; box-shadow: inset 0 0 0 1px rgba(23, 19, 15, .1) !important; border: 0 !important; }
  html body .arrange.inplace.flip .arr-tray { left: auto !important; right: calc(100% + 12px) !important; }
  html body .arrange.inplace .kinds { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 4px !important; }
  html body .arrange.inplace .kind { display: grid !important; place-items: center; padding: 6px 0 !important; border-radius: 12px !important; background: none !important; position: relative; }
  html body .arrange.inplace .kind::after { display: none !important; }
  html body .arrange.inplace .kind[aria-pressed="true"] { background: #efe9df !important; }
  html body .arrange.inplace .kind:hover { background: none; box-shadow: inset 0 0 0 1px #17130f; }
  html body .arrange.inplace .kind[aria-pressed="true"]:hover { background: #efe9df !important; }
  html body .arrange.inplace .kind canvas { width: 40px !important; height: 40px !important; transform: none !important; }
  html body .arrange.inplace .fcols { display: grid !important; grid-template-columns: repeat(4, 22px) !important; justify-content: space-between; gap: 10px 0 !important; padding: 4px !important; margin: 0 !important; overflow: visible !important; }
  html body .arrange.inplace .fcol { width: 22px !important; height: 22px !important; }
  html body .arrange.inplace .fcol[aria-pressed="true"] { box-shadow: 0 0 0 2.5px #fffdf8, 0 0 0 4px #17130f !important; }
  html body .arrange.inplace .arr-tray > .arr-head { margin-top: auto !important; border-top: 0 !important; padding: 0 !important; }
  html body .arrange.inplace .arr-btns { display: grid !important; grid-template-columns: 36px 36px 1fr; gap: 8px; align-items: center; }
  html body .arrange.inplace #arrUndo, html body .arrange.inplace .arr-btns .snd-btn { width: 36px !important; height: 36px !important; padding: 0 !important; border-radius: 50% !important; corner-shape: round !important; display: grid !important; place-items: center; background: none !important; color: #17130f !important; box-shadow: inset 0 0 0 1px rgba(23, 19, 15, .22) !important; order: 1; margin: 0 !important; }
  html body .arrange.inplace .arr-btns .snd-btn { order: 2; }
  html body .arrange.inplace #arrDone { order: 3; grid-column: 1 / -1; width: 100% !important; margin: 0 !important; height: 40px !important; padding: 0 !important; border-radius: 999px !important; font-size: 14px !important; }
  html body .arrange.inplace #arrUndo:hover, html body .arrange.inplace .arr-btns .snd-btn:hover, html body .arrange.inplace .arr-btns .snd-btn[aria-pressed="true"] { background: #17130f !important; color: #fbf6ee !important; box-shadow: none !important; }
  html body .arrange.inplace .arr-tray { animation: arrSide .5s cubic-bezier(.22, 1, .36, 1) both !important; }
  html body .arrange.inplace.flip .arr-tray { animation-name: arrSideL !important; }
}
@keyframes arrSide { from { clip-path: inset(0 100% 0 0 round 22px); translate: -10px 0; } to { clip-path: inset(0 0 0 0 round 22px); translate: 0 0; } }
@keyframes arrSideL { from { clip-path: inset(0 0 0 100% round 22px); translate: 10px 0; } to { clip-path: inset(0 0 0 0 round 22px); translate: 0 0; } }
html body #tiles .tile.arranging > :not(.tile-pic) { visibility: hidden !important; }

/* ===== 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]), .live: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; }
}
/* the time of day in the room: four small pictures in the top bar, picked like Cards / Bookcase (a line grows under the one in use), only on the bookcase view */
.time-seg { display: none; gap: 14px; margin-left: 26px !important; animation: inRise .5s cubic-bezier(.22, 1, .36, 1) both; }
body.case-view .time-seg { display: inline-flex; align-items: center; }
.time-seg button { position: relative; display: grid; place-items: center; width: 22px; height: 32.5px; padding: 0 0 2.5px; box-sizing: border-box; margin-top: 2.5px !important; border: 0; border-radius: 0; background: none; color: var(--ink-2); cursor: pointer; transition: color .25s; }
.time-seg button::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: 0; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease, cubic-bezier(.22, 1, .36, 1)); }
.time-seg button:hover, .time-seg button[aria-pressed="true"] { color: var(--ink); }
.time-seg button[aria-pressed="true"]::after { transform: scaleX(1); }
/* at night the room is dark: the top bar turns light */
body.case-view.night .shelf-nav { --ink: #f4eee6; --ink-2: #cfc8be; --ground: #17130f; color: var(--ink); transition: color .8s; }
/* the time of day sits on the carpet, bottom centre, so the top bar never shifts */
body.case-view .time-seg { position: fixed; left: 50%; bottom: 30px; translate: -50% 0; margin: 0 !important; gap: 18px; z-index: 6; animation: inRiseC .5s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes inRiseC { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body.case-view .time-seg button { color: #6f6253; }
body.case-view .time-seg button:hover, body.case-view .time-seg button[aria-pressed="true"] { color: #2a2119; }
body.case-view .time-seg button::after { background: #2a2119; }
body.case-view.night .time-seg button { color: #b59f86; }
body.case-view.night .time-seg button:hover, body.case-view.night .time-seg button[aria-pressed="true"] { color: #f4eee6; }
body.case-view.night .time-seg button::after { background: #f4eee6; }

/* the time icons take the carpet's light: dark ink on the pale noon carpet, cream on the evening and night carpets */
body.case-view.evening .time-seg button, body.case-view.night .time-seg button { color: #d8c2a2; }
body.case-view.evening .time-seg button:hover, body.case-view.evening .time-seg button[aria-pressed="true"], body.case-view.night .time-seg button:hover, body.case-view.night .time-seg button[aria-pressed="true"] { color: #fff7ea; }
body.case-view.evening .time-seg button::after, body.case-view.night .time-seg button::after { background: #fff7ea; }
#bookcase.can-grab, .can-grab { cursor: grab; }
#bookcase.grabbing, .grabbing { cursor: grabbing; }
/* phone and tablet: "Add a bookcase" is the same round + in the gap after the last bookcase; it shows for a few seconds after you touch the bookcases (bookcase3d.js), never as a bar that is always there */
@media (hover: none) { html body.case-view .shelf-tools .case-tools { display: none !important; } }
/* phone, arranging flowers: the tools' sliding entrance made their panel the frame for the Done bar, so the bar sat on the flower kinds instead of at the top. On a phone the panel just stands there */
@media (max-width: 700px) { html body .arrange.inplace.big .arr-tray { animation: none !important; translate: none !important; transform: none !important; clip-path: none !important; filter: none !important; } }
/* phone: the Pottle mark sits exactly where it does on the maker page (18px down), on the shelf and in the studio alike */
@media (max-width: 700px) { html body .shelf-nav > .mark { align-self: start !important; margin-top: calc(18px - 12px) !important; } }

/* keeping the shelf: one quiet line under the cards, a backup out and a backup in */
.shelf-keep { grid-column: 1 / 13; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 40px 0 56px; font-size: 14px; color: var(--ink-2); }
.shelf-keep > span { margin-right: auto; }
.shelf-keep button, .shelf-keep .keep-in { padding: 0; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; text-decoration-thickness: 1.5px; transition: text-decoration-color .2s; }
.shelf-keep button:hover, .shelf-keep .keep-in:hover { text-decoration-color: currentColor; }
body.case-view .shelf-keep { display: none; }
@media (max-width: 700px) { .shelf-keep { padding: 28px 0 40px; font-size: 13px; } .shelf-keep > span { flex-basis: 100%; } }

/* fingers: the small controls keep their look but take a tap from a little further round them */
@media (pointer: coarse) {
  .shelf-keep button, .shelf-keep .keep-in { padding-block: 12px; margin-block: -12px; }
  html body .time-seg button { min-width: 40px; }
  html body .fcol { position: relative; }
  html body .fcol::after { content: ""; position: absolute; inset: -5px; }
}

/* Made in 3D: the button sits in the same place on every card.
   With a mouse it comes up inside the picture, the same 14px in from the bottom as from the sides, solid (no fade);
   on a touch screen it lives in its own row under the name, so it never covers a vase */
#studio .tile > .tile-acts { padding: 0 14px 14px !important; }
@media (hover: hover) {
  #studio .tile > .tile-acts { opacity: 1 !important; visibility: hidden; transform: translateY(8px); transition: transform .35s var(--ease), visibility 0s .35s !important; }
  #studio .tile:hover > .tile-acts, #studio .tile:focus-within > .tile-acts { visibility: visible; transform: none; transition: transform .35s var(--ease), visibility 0s !important; }
}
@media (hover: none) {
  #studio .tile { grid-template-areas: "pic" "meta" "acts" !important; grid-template-rows: auto auto auto !important; }
  html body #studio .tile > .tile-acts { grid-area: acts !important; align-self: start !important; justify-self: start !important; justify-content: flex-start !important; padding: 2px 0 0 !important; opacity: 1 !important; visibility: visible; transform: none !important; }
}
.nl-spin.sprite { object-fit: none !important; object-position: var(--sx, 0px) var(--sy, 0px); }
