/* A library, DRAWN (2026-11-13): the rows with their spines, Books · Bookcases,
 * the bookcases as the app's map draws them, one shelf rendered as its books on
 * a board, and one book's page — the views `share-page.js` draws. Moved out of
 * `share.css` so the two places that draw them share one copy:
 *
 * - the public pages (`hub/src/shares/pages.ts` loads this BEFORE share.css,
 *   which keeps the page around them: header, search, footer, the big picture
 *   view, the embed, the directory);
 * - a friend's library on the website (`index.html`, `sharing.js`; `docs/WEB.md`
 *   W37), whose view is wrapped in `.sp` so the rules scoped to it apply there
 *   too — share.css's `.sp` base (the public page's body) is not loaded there.
 *
 * The look is the app's own: the colours and faces from `tokens.css`. */

.sp a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.sp :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sp .sp-title { font-family: "Fraunces", Georgia, serif; font-weight: 500; letter-spacing: -0.015em; }
.sp-kick { margin: 0; font-size: 15px; font-weight: 600; color: var(--accent); }
.sp-count { margin: 0; font-size: 15px; color: var(--ink-2); }

/* the list */
.sp-list { flex: 999 1 34rem; min-width: 0; margin: 0; padding: 0; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius, 12px); overflow: hidden; }
.sp-book { display: flex; gap: 16px; padding: 16px 18px; border-top: 1px solid var(--line); }
.sp-book:first-child { border-top: 0; }
.sp-book[aria-current] { background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.sp-book-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-title { font-size: 19px; line-height: 1.25; }
.sp-author { color: var(--ink); }
.sp-meta, .sp-where { font-size: 15px; color: var(--ink-2); }
/* With places shown the title opens the book's own page (W35), and so does a
   tap anywhere on the row — the spine aside, which opens the big picture. */
.sp .sp-open { color: var(--ink); text-decoration: none; }
.sp-open:hover, .sp-open:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; }
.sp-with-spines .sp-book { position: relative; }
.sp-with-spines .sp-open::after { content: ""; position: absolute; inset: 0; }
.sp-with-spines .sp-open:focus-visible { outline: none; }
.sp-with-spines .sp-open:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: 4px; }
.sp-with-spines .sp-book:hover { background: color-mix(in srgb, var(--accent) 4%, var(--card)); }
.sp-book-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }

/* A book's spine beside it (2026-11-12): a fixed box, so the list never jumps
   while the spines arrive, painted by the browser from the shelf's photograph
   and the book's outline (spine-draw.js). Until then — and for a book with no
   photograph or outline — its title stands on a plain spine. One that can be
   drawn is a button: tapped, the big picture view (W35). Above the row's own
   link, so the row opens the book and the spine opens its picture. */
.sp-spine { position: relative; z-index: 1; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 40px; height: 112px; margin: 0; padding: 0; border: 0; overflow: hidden; border-radius: 3px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font: inherit; text-decoration: none; }
button.sp-spine { cursor: zoom-in; }
.sp-spine canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp-spine-label { max-height: 102px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; writing-mode: vertical-rl; font-family: "Fraunces", Georgia, serif; font-size: 12px; line-height: 1; letter-spacing: 0.01em; }
/* German and Italian spines read from the bottom up. */
.sp:lang(de) .sp-spine-label, .sp:lang(it) .sp-spine-label { transform: rotate(180deg); }
.sp-spine.sp-drawn { background: transparent; box-shadow: none; }
.sp-spine.sp-drawn .sp-spine-label { visibility: hidden; }
.sp .sp-spine { color: var(--ink-2); }
button.sp-spine:hover, button.sp-spine:focus-visible { box-shadow: 0 0 0 2px var(--highlight); outline: none; }
/* With spines: spine | text | price on a wide screen; on a phone the price and
   tags go under the text, which keeps the width of the line. */
.sp-with-spines .sp-book { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "spine text" "spine side"; column-gap: 14px; row-gap: 6px; padding: 14px 16px; }
.sp-with-spines .sp-spine { grid-area: spine; align-self: start; }
.sp-with-spines .sp-book-text { grid-area: text; }
.sp-with-spines .sp-book-side { grid-area: side; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: left; }
@media (min-width: 600px) {
  .sp-with-spines .sp-book { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "spine text side"; column-gap: 16px; padding: 16px 18px; }
  .sp-with-spines .sp-book-side { flex-direction: column; align-items: flex-end; text-align: right; }
}
.sp-price { font-family: "Fraunces", Georgia, serif; font-size: 20px; font-weight: 600; white-space: nowrap; }
.sp-tag { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.sp-empty { padding: 24px 18px; color: var(--ink-2); list-style: none; }

/* Books · Bookcases (2026-11-12). Shown by the script. */
.sp-views { align-self: flex-start; display: flex; gap: 4px; padding: 4px; background: var(--paper-2); border-radius: 12px; scroll-margin-top: 72px; }
.sp-views[hidden], .sp-books[hidden], .sp-cases[hidden], .sp-swipe[hidden] { display: none; }
.sp-views a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 9px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.sp-views a[aria-current] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.sp-books, .sp-cases, .sp-case-index { display: flex; flex-direction: column; gap: 24px; }

/* The bookcases: each one drawn as its bays, its shelves in them, top to bottom. */
.sp-cases { container-type: inline-size; gap: 18px; }
/* ⚠ `.sp-list`'s `flex: 999 1 34rem` is a WIDTH in the Books view's row (`.sp-body`); in this column it became a
   544 px HEIGHT, and its `overflow: hidden` cut a shelf's list to its first 3-5 books (1.3.5 item 6, W59). */
.sp-cases .sp-list { flex: none; }
.sp-case { display: flex; flex-direction: column; gap: 10px; }
.sp-case h2, .sp-shelf-head h2 { margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
.sp-other { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; padding: 6px; background: var(--wood); border-radius: var(--radius-sm, 8px); }
.sp-cell { display: flex; flex-direction: column; justify-content: flex-end; min-height: 56px; padding: 6px 8px; border-radius: 3px; border-bottom: 4px solid var(--wood-2); background: var(--card); color: var(--ink); text-decoration: none; }
.sp-cell-label { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.sp-cell-n { font-family: "Fraunces", Georgia, serif; font-size: 18px; line-height: 1.1; color: var(--accent); }
.sp-cell-empty { background: color-mix(in srgb, var(--card) 45%, var(--wood)); color: color-mix(in srgb, var(--ink) 55%, transparent); }
a.sp-cell:hover, a.sp-cell:focus-visible { outline: 2px solid var(--highlight); outline-offset: -2px; }

/* One shelf, RENDERED (W35): its books standing side by side on a board in
   their bookcase's colours, each cut upright from the shelf's photograph —
   never the photograph itself (the operator, 2026-11-12). The board keeps a
   height you can tap in and scrolls sideways when the row is longer than the
   screen (spine-draw.js `boardLayout`, the app's rule). */
.sp-crumbs a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.sp-crumbs { margin-bottom: -12px; }
.sp-shelf-head { display: flex; flex-direction: column; gap: 4px; }
.sp-board-frame { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; border-radius: var(--radius-sm, 8px); }
.sp-board { position: relative; min-width: 100%; height: 200px; overflow: hidden; border-radius: var(--radius-sm, 8px); background: linear-gradient(180deg, var(--shelf-back, var(--wood-2)) 0, color-mix(in srgb, var(--shelf-back, var(--wood-2)) 76%, #000) 100%); box-shadow: inset 0 -14px 20px rgba(0, 0, 0, 0.45); }
.sp-board::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background: var(--shelf-frame, var(--wood)); border-top: 1px solid color-mix(in srgb, var(--shelf-frame, var(--wood)) 81%, #fff); }
.sp-board canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp-board-book { position: absolute; z-index: 1; border-radius: 2px; }
.sp-board-book:hover, .sp-board-book:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.85); outline-offset: 1px; }
.sp-board-book[aria-current] { cursor: zoom-in; }
.sp-swipe { margin: -14px 0 0; font-size: 14px; color: var(--ink-2); }
.sp-where-shelf .sp-swipe { margin: 6px 0 0; }
.sp-steps { display: flex; justify-content: space-between; gap: 12px; }
.sp-steps a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 600; text-decoration: none; }
.sp-note { margin: 0; padding: 18px; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius, 12px); }
.sp-shelf-list .sp-book[aria-current] { background: color-mix(in srgb, var(--highlight) 22%, var(--card)); }

/* A bookcase, drawn as the app's map draws it (W35): its frame and back in its
   own colours, at its own proportions — the page's width, no taller than
   --maxh, and never with a row lower than --minrow (it scrolls sideways
   then). A shelf with listed books shows how many and opens it. */
.sp-bc-pointing { padding: 24px 10px 12px; }
/* A top-row book's arrow points up from below its bar: the room goes under the case, not above. */
.sp-bc-pointing-up { padding: 2px 10px 36px; }
.sp-bc-frame { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; padding: 2px 0 12px; }
.sp-bc { --case-frame: var(--wood); --case-back: var(--wood-2); box-sizing: border-box; width: min(100%, calc(var(--maxh) * var(--aspect))); min-width: calc(var(--rows) * var(--minrow) * var(--aspect)); aspect-ratio: var(--aspect); padding: 6px; background: var(--case-frame); border-radius: 2px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16); }
.sp-bc-in { position: relative; width: 100%; height: 100%; }
.sp-bc-cell { position: absolute; box-sizing: border-box; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; border: 1.5px solid var(--case-frame); border-bottom-width: 3px; border-radius: 0; background: var(--case-back); text-decoration: none; }
/* Books on it: a row of spines suggested, not drawn (the page has no colours for them). */
a.sp-bc-cell { background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.13) 0 3px, rgba(0, 0, 0, 0.18) 3px 5px, transparent 5px 9px); background-size: 100% 70%; background-position: bottom; background-repeat: no-repeat; }
a.sp-bc-cell:hover, a.sp-bc-cell:focus-visible { outline: 2px solid var(--highlight); outline-offset: -2px; z-index: 2; }
.sp-bc-gap { background: var(--paper); border-color: var(--case-frame); }
/* A bookcase of 1.3.5's pieces (`share-page.js` `carcass`, the phone's BookcaseDrawing). The wood is drawn on its own layer,
   beneath the spaces — the whole frame when nothing is open, else only the pieces that stand, so shelves with no walls
   round them float on the page — with ONE shadow over all of it (`drop-shadow`: a joint is not shadowed by its neighbour);
   a corner wall is darker and its two columns are shaded toward it; a round frame is an ellipse (`clip-path`). Every space
   keeps its light back, open or closed (1.3.5 item 16), and no wood is added where a piece is open. Nothing here applies to
   any other bookcase. */
.sp-bc.sp-bc-pcs { position: relative; background: none; box-shadow: none; border-radius: 0; }
.sp-bc-wood { position: absolute; inset: 0; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.16)); }
.sp-bc-float > .sp-bc-wood { filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.14)); }
.sp-bc-wood-in { position: absolute; inset: 0; }
.sp-bc-piece { position: absolute; background: var(--case-frame); }
.sp-bc-piece.sp-bc-fold { background: color-mix(in srgb, var(--case-frame) 72%, #000); }
.sp-bc-over { position: absolute; inset: 0; pointer-events: none; }
.sp-bc-ring { position: absolute; inset: 0; box-sizing: border-box; border: 6px solid var(--case-frame); border-radius: 50%; }
.sp-bc-shade { position: absolute; top: 6px; bottom: 6px; pointer-events: none; }
.sp-bc-shade-l { background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2)); }
.sp-bc-shade-r { background: linear-gradient(to right, rgba(0, 0, 0, 0.11), rgba(0, 0, 0, 0)); }
/* Where the wood floats the cell's own border is no wood: it is transparent and the back stops at the padding box, so a piece
   that stands shows through (its bar reaches 1.5 px each side of the line, `HALF_WALL`) and an open side shows the page. */
.sp-bc-float .sp-bc-cell { border-width: 1.5px; border-color: transparent; background-clip: padding-box; }
.sp-bc-on { z-index: 1; outline: 3px solid var(--highlight); outline-offset: -2px; box-shadow: 0 0 0 3px rgba(249, 157, 27, 0.35); }
.sp-bc-n { min-width: 22px; padding: 2px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); color: #262527; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; }
/* A shelf drawn from its books (2026-11-13, `spinesHtml`): the map's spines on the shelf's back, the count in a corner. */
.sp-bc-drawn, a.sp-bc-cell.sp-bc-drawn { background-image: none; }
.sp-bc-row { position: absolute; inset: 2px 2px 0; display: flex; align-items: flex-end; pointer-events: none; }
.sp-sp { flex: var(--g, 0) 1 0; min-width: 0; height: calc(var(--h, 1) * 78%); opacity: 0.95; box-shadow: inset -1px 0 rgba(0, 0, 0, 0.25); }
.sp-sp-none { opacity: 1; box-shadow: none; background: none; }
/* A long shelf in parts (1.3.5 item 7, `partsHtml`): ONE shelf — the parts' rows side by side, each as wide as its share (`--pw`), no wall
   between. Each part keeps its own row (its own colours are sampled from its own picture). */
.sp-bc-parts { position: absolute; inset: 2px 2px 0; display: flex; pointer-events: none; }
.sp-bc-part { position: relative; flex: var(--pw, 1) 1 0; min-width: 0; height: 100%; }
.sp-bc-part > .sp-bc-row { inset: 0; }
/* Two rows deep (1.3.5, `caseCell`): the small 2 of a front with a row of books behind it — top LEFT here, the count bubble has the right. */
.sp-bc-two { position: absolute; top: 3px; left: 3px; z-index: 1; box-sizing: border-box; display: grid; place-items: center; width: 13px; height: 13px; border: 0.5px solid color-mix(in srgb, var(--ink-2) 50%, transparent); border-radius: 3px; background: color-mix(in srgb, var(--card) 92%, transparent); color: var(--ink); font: 700 9px/1 var(--mono, ui-monospace, monospace); font-style: normal; pointer-events: none; }
.sp-bc-drawn .sp-bc-n { position: absolute; top: 2px; right: 2px; z-index: 1; min-width: 18px; padding: 1px 5px; font-size: 11px; }
/* The Wall shelves (1.3.3): one shelf a line, the full width, its name above
   it — the app's ShelfList (56 px in a 4 px frame). */
.sp-walls { display: flex; flex-direction: column; gap: 12px; }
.sp-wall-name { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.sp-bc.sp-bc-line { position: relative; width: 100%; min-width: 0; height: 60px; aspect-ratio: auto; padding: 0 4px 4px; border-radius: 0; background: none; box-shadow: none; }
/* Floating (1.3.5, the app's ShelfList): no frame and no back — the books on the page, standing on one board in the bookcase's wood. */
.sp-bc-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 2px; background: var(--case-frame); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14); }
.sp-bc-line .sp-bc-cell { background-color: transparent; border-color: transparent; }
/* How full a shelf is drawn (docs/SHELF_FILL.md, `web/shelf-fill.js` `fit`, the
   owner's map's rule): never stretched to the shelf. `--s` is the row's width
   over T, its typical book's height (`rowOf`); `--gt` its tallest book over T.
   A T-high book (`--u`) is 92% of the row's height, less when its tallest book
   would not fit under the shelf above, less again when the row would not fit
   the shelf's width — then the whole row shrinks (fitting always wins). Each
   book is `--w` T's wide and `--h` T's tall, standing from the left. A shelf the
   owner arranged (`sp-bc-own`) starts `--x` of the way along and is `--mw` of
   the shelf wide, as tall as that makes it, never taller than the shelf. A wall
   shelf's line is as wide as its books: in its 64 px the row is 49.5 px tall
   (4 px frame, the cell's 1.5 + 3 px borders, the row's 2 px); `--lw` is the
   row's width in rows' heights at r_max, and 15 px goes on the sides. Without
   container units: as before, the row stretched to its shelf. */
@supports (width: 1cqw) {
  .sp-bc-row.sp-bc-fit { container-type: size; --u: min(92cqh, 100cqw / var(--s), 100cqh / var(--gt, 1)); }
  .sp-bc-row.sp-bc-fit.sp-bc-own { --u: min(var(--mw) * 100cqw / var(--s), 100cqh / var(--gt, 1)); }
  .sp-bc-own .sp-sp:first-child { margin-left: calc(var(--x) * 100cqw); }
  .sp-bc-fit .sp-sp { flex: 0 1 auto; width: calc(var(--w) * var(--u)); height: calc(var(--h, 1) * var(--u)); }
  .sp-bc.sp-bc-line.sp-bc-fit { width: clamp(72px, calc(var(--lw) * 49.5px + 15px), 100%); }
}

/* A book lying on the others' tops (1.3.4 item 20, `cell.lying`): a bar across them. `--l`/`--r` are fractions of the drawn row, `--b`/`--t` the heights over the shelf line in T's. Fitted, as the books are: in T's of `--u`, the row's start (the owner's own `--x`) added. */
.sp-ly { position: absolute; left: calc(var(--l) * 100%); width: calc((var(--r) - var(--l)) * 100%); bottom: calc(var(--b) * 78%); height: calc((var(--t) - var(--b)) * 78%); opacity: 0.95; box-shadow: inset 0 0 0 0.75px rgba(0, 0, 0, 0.3); }
.sp-ly-pt { overflow: visible; }
@supports (width: 1cqw) {
  .sp-bc-fit .sp-ly { left: calc(var(--l) * var(--s) * var(--u)); width: calc((var(--r) - var(--l)) * var(--s) * var(--u)); bottom: calc(var(--b) * var(--u)); height: calc((var(--t) - var(--b)) * var(--u)); }
  .sp-bc-own .sp-ly { left: calc(var(--l) * var(--s) * var(--u) + var(--x) * 100cqw); }
}

/* A book's own page (W35): the book first, then where it stands. */
.sp-bookpage { display: flex; flex-direction: column; gap: 24px; }
.sp-bp-top { display: block; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius, 12px); }
.sp-bp-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sp-bp-text p { margin: 0; }
.sp-bp-text h2.sp-title { margin: 0 0 4px; font-size: clamp(24px, 6vw, 34px); line-height: 1.15; overflow-wrap: anywhere; }
.sp-bp-side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px !important; }
.sp-where-sec { display: flex; flex-direction: column; gap: 10px; }
.sp-where-line { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 21px; line-height: 1.3; }
.sp-where-none { color: var(--ink-2); font-size: 18px; }
.sp-where-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
/* The bookcase only as wide as it is drawn (min of 2/5 of the row and 200 px × its aspect, `--case-max`), the shelf the rest; script sets .sp-where-beside unless that would be under 72 px tall (`whereBeside`). */
.sp-where-grid.sp-where-beside { grid-template-columns: minmax(0, min(40%, var(--case-max, 200px))) minmax(0, 1fr); align-items: start; }
/* The arrow at a book's bar on its bookcase shelf (1.3.4, item 17): the highlight orange (1.3.5), edged in ink (on the white count bubble's dark too, not var(--ink): cream on the dark page), 22 px (SpineDraw.paintPointer's shape). */
.sp-sp-pt { position: relative; overflow: visible; }
.sp-pt { position: absolute; left: 50%; bottom: 100%; z-index: 2; height: 22px; aspect-ratio: 18.2 / 22; transform: translateX(-50%); overflow: visible; pointer-events: none; fill: var(--highlight, #f99d1b); stroke: #262527; stroke-width: 2.5px; stroke-linejoin: round; paint-order: stroke; }
.sp-pt-up { top: 100%; bottom: auto; transform: translateX(-50%) rotate(180deg); }
/* A neighbour tapped: which book it is, one way on (the app's BesideSheet). */
.sp-beside-scrim { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.4); }
.sp-beside { box-sizing: border-box; width: min(100%, 420px); display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius, 12px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.sp-beside p { margin: 0; }
.sp-beside-title { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
/* The website's `.btn.primary` (app.css): --primary with --on-primary, higher than the page's `a` colour (the website's app.css colours every link the accent). */
.sp-beside a.sp-beside-open { display: inline-flex; align-items: center; justify-content: center; align-self: stretch; min-height: 44px; margin-top: 10px; padding: 0 16px; border-radius: 10px; background: var(--primary); color: var(--on-primary); font-weight: 600; text-decoration: none; }
.sp-beside-open:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; }
/* The box a different shelf opens (1.3.5, item 3): Cancel and OK side by side, as the app's `showOpenShelfBox`; OK is the page's primary button. */
.sp-beside-actions { display: flex; gap: 12px; margin-top: 10px; }
.sp-beside-actions > * { flex: 1 1 0; }
.sp-beside .sp-beside-actions a.sp-beside-open { margin-top: 0; }
.sp-beside-cancel { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.sp-beside-cancel:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; }
@media (min-width: 720px) { .sp-beside-scrim { align-items: center; } }
.sp-where-label { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sp-where-hint { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.sp-where-more { margin: 0; }
.sp-where-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
