@font-face {
  font-family: "Geist";
  src: url("fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  font-display: swap;
}
/* The serif as the name is edited in: the cursor is as tall as the font says its letters
   reach (0.99 above, 0.31 below, 1.3 in all, though the capitals stop at 0.72). Cutting
   0.17 from each end keeps the baseline where it was and makes the cursor 0.96: inside the
   name's box (a line of 1) at both ends, never over its edge. */
@font-face {
  font-family: "Instrument Serif Caret";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  ascent-override: 82%;
  descent-override: 14%;
  line-gap-override: 0%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-display: swap;
}
/* The same types' letters beyond the files above (ł ő ş Č, Russian, Vietnamese), each in a
   file of its own, cut as Google Fonts cuts them. A browser fetches one only for a page
   that holds a letter of it; until now those letters came from the device's own font, in
   the middle of a word. */
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-var-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-var-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-var-cyrillic-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-var-vietnamese.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-ext.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif Caret";
  src: url("fonts/instrument-serif-ext.woff2") format("woff2");
  ascent-override: 82%;
  descent-override: 14%;
  line-gap-override: 0%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic-ext.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --bg: light-dark(#f6f3ee, #0f0e0d);
  --surface: light-dark(#ffffff, #191816);
  --sunk-0: light-dark(#eae6de, #1f1e1b);
  --sunk: var(--sunk-0);
  --line: light-dark(rgb(28 24 18 / .1), rgb(255 248 236 / .09));
  --line-2: light-dark(rgb(28 24 18 / .2), rgb(255 248 236 / .2));
  --text: light-dark(#1b1916, #f2efe9);
  --text-2: light-dark(#5f5a52, #aca69c);
  --text-3: light-dark(#746e65, #8a847a);
  --accent: light-dark(#d93a22, #ff6b4f);
  --seg-on: light-dark(#d1cdc6, #3f3d3a);  /* the chosen status: quiet, a step off its track (lighter in the dark, darker in the light), in the text's own colour */
  /* The tints of a person's other shelves (theirs alone to see). */
  --tint-1: light-dark(#2b7a8c, #62b4c6);
  --tint-2: light-dark(#7656b4, #a88be6);
  --tint-3: light-dark(#4c8638, #8ac270);
  --on-accent: light-dark(#ffffff, #1c0a06);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 28px;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.2l2.7 5.7 6.2.8-4.5 4.3 1.1 6.2-5.5-3-5.5 3 1.1-6.2-4.5-4.3 6.2-.8z' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  --key: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='3.8'/%3E%3Cpath d='M10.8 12.2L20 3M16 7l3 3M13.5 9.5l2 2'/%3E%3C/svg%3E");  /* a key: a passkey's line in Settings */
  --order: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4.5v15m0 0-3.500-3.500M8 19.5l3.500-3.500M16 19.5v-15m0 0-3.500 3.500M16 4.5l3.500 3.500' fill='none' stroke='%23888' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");  /* two arrows: the order, where its word has no room */
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
/* A browser that does not know light-dark() (Safari before 17.5, Firefox before 120) would have
   none of the colours above. For it alone, the same ones said plainly: the light ones, and the
   dark ones where its system is dark (unless light was chosen here) or dark was chosen here.
   (Said twice: tests/test_styles.py holds them to the ones above.) */
@supports not (color: light-dark(#000, #fff)) {
  :root {
    --bg: #f6f3ee; --surface: #ffffff; --sunk-0: #eae6de;
    --line: rgb(28 24 18 / .1); --line-2: rgb(28 24 18 / .2);
    --text: #1b1916; --text-2: #5f5a52; --text-3: #746e65; --accent: #d93a22; --seg-on: #d1cdc6;
    --tint-1: #2b7a8c; --tint-2: #7656b4; --tint-3: #4c8638; --on-accent: #ffffff;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0f0e0d; --surface: #191816; --sunk-0: #1f1e1b;
      --line: rgb(255 248 236 / .09); --line-2: rgb(255 248 236 / .2);
      --text: #f2efe9; --text-2: #aca69c; --text-3: #8a847a; --accent: #ff6b4f; --seg-on: #3f3d3a;
      --tint-1: #62b4c6; --tint-2: #a88be6; --tint-3: #8ac270; --on-accent: #1c0a06;
    }
  }
  :root[data-theme="dark"] {
    --bg: #0f0e0d; --surface: #191816; --sunk-0: #1f1e1b;
    --line: rgb(255 248 236 / .09); --line-2: rgb(255 248 236 / .2);
    --text: #f2efe9; --text-2: #aca69c; --text-3: #8a847a; --accent: #ff6b4f; --seg-on: #3f3d3a;
    --tint-1: #62b4c6; --tint-2: #a88be6; --tint-3: #8ac270; --on-accent: #1c0a06;
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* Room for a scrollbar on every page, whether it needs one or not: otherwise a page too short
   to scroll sits half a scrollbar to the right of the others, and going between them jumps. */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
/* A press on a phone: no grey rectangle from the browser (it ignored round buttons' shape); what
   has no pressed look of its own dims a moment instead (owner, 11-13). */
* { -webkit-tap-highlight-color: transparent; }
@media (hover: none) { :is(a, button, summary, label):not(.btn, .five-item, .show-tap, :disabled):active { opacity: .6; } }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
dialog.sheet[data-tapped] :focus-visible { outline: none; }  /* (opened by a press: no ring till a key is pressed; site.js) */
/* The words an empty field shows are the small grey, in every field and every browser (one that
   draws them fainter by itself is told not to). */
::placeholder { color: var(--text-3); opacity: 1; }
/* A menu with nothing chosen yet reads as an empty field does: its word in grey. */
select:has(> option[value=""]:checked) { color: var(--text-3); }
option { color: var(--text); }
/* A box that scrolls says so quietly: a thin bar in the colour of the lines, no arrows. */
textarea { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
/* A field being written in shows it in its own line, which darkens and doubles where it
   stands (each field's :focus rule); nothing is drawn round it, so no second line. */
:is(input:not([type=checkbox], [type=radio]), textarea, select):focus-visible { outline: none; }

.wrap { width: 100%; max-width: 1176px; margin-inline: auto; padding-inline: var(--gutter); }
/* Centred on a whole pixel: half a pixel off (an odd width to share) puts every edge of the
   page between two pixels, and Chrome can then leave a line of an old picture along one when
   a part of the page is drawn again. */
@supports (margin: round(down, 1.5px, 1px)) {
  .wrap { margin-inline: max(0px, round(down, (100% - 1176px) / 2, 1px)); }
}
/* An outline no one sees, round the blocks that change in place (a review saved, a box put
   away, a season opened). When one changes, Chrome draws again only the place it took; an
   edge between two pixels (any screen scaled to 125% or 150%) can leave the half pixel past
   it drawn as it was, a thin line beside the block. The outline makes that place a pixel
   larger all round, so it is drawn again too. Only on blocks that never take the keyboard,
   whose outline is otherwise unused. */
.block, .write, .rev, .log, .season, .board-note { outline: 1px solid transparent; }

/* ---- for the keyboard, and for what reads the page aloud ---- */

/* The way past the top of the page: the first thing Tab reaches, over the page's corner while
   the keyboard is on it, nowhere otherwise (and taking no room either way). Followed, the page
   is at its top (more room above than there is page above it), under the bar. */
.skip { position: fixed; z-index: 50; top: -100px; left: calc(env(safe-area-inset-left, 0px) + 10px); }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }
#main { scroll-margin-top: 400px; }
/* Words said aloud only: on the page for what reads it, taking no room on it. */
.aloud { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- header ---- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: grid;
  grid-template-columns: 1fr minmax(0, 460px) 1fr;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.top-left { justify-self: start; display: flex; align-items: center; gap: 26px; }
.mark { font: italic 400 32px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
/* The mark ends in a half-lit star, as a 4½ rating shows one. */
.mark-star { display: inline-block; width: .5em; height: .5em; margin-left: .04em; vertical-align: -.05em; overflow: visible; }
.mark-star path {
  --unlit: color-mix(in srgb, var(--text) 22%, var(--bg));
  fill: var(--unlit); stroke: var(--unlit); stroke-width: 1.6; stroke-linejoin: round;
}
.mark-star .lit { fill: var(--accent); stroke: var(--accent); }
.mark-preview { margin-left: 10px; font: 600 10.5px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); vertical-align: 4px; }

.find { position: relative; }
.find svg {
  position: absolute; left: 15px; top: 50%; width: 17px; height: 17px; translate: 0 -50%;
  fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; pointer-events: none;
}
.find input {
  width: 100%; height: 42px; padding: 0 44px 0 42px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.find input:focus { border-color: var(--text-3); box-shadow: inset 0 0 0 1px var(--text-3); }
.find input::-webkit-search-cancel-button { display: none; }
.find kbd {
  position: absolute; right: 10px; top: 50%; translate: 0 -50%;  /* as far from the field's end as from its top and foot */
  min-width: 22px; padding: 2px 0; border: 1px solid var(--line-2); border-radius: 6px;
  color: var(--text-3); font: 500 12px/1.3 var(--sans); text-align: center; pointer-events: none;
}
.find input:focus ~ kbd { display: none; }

.top-nav { justify-self: end; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer;
}
/* Every look under the pointer is kept to screens with a pointer that hovers: a finger's tap
   leaves :hover on what it touched until the next tap elsewhere, which would draw a switch
   just turned off as still on (Private). */
@media (hover: hover) { .icon-btn:hover { background: var(--sunk); color: var(--text); } }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.icon-btn .fill { fill: currentColor; stroke: none; }
.theme-toggle svg { stroke-linecap: round; stroke-linejoin: round; }
.theme-moon { display: none; }
:root[data-theme="dark"] .theme-sun { display: none; }
:root[data-theme="dark"] .theme-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun { display: none; }
  :root:not([data-theme="light"]) .theme-moon { display: block; }
}
.me { display: flex; align-items: center; gap: 9px; font-weight: 550; }
.me-wrap { position: relative; margin-left: 9px; }  /* (the icons beside it are 38px buttons round a 19px icon: as far from the bell as the bell from the moon; owner, 11-14) */
/* The gap between the name and its menu is part of the menu, so the pointer can cross it. */
.me-menu { position: absolute; z-index: 30; right: 0; top: 100%; display: none; padding-top: 10px; }
.me-wrap:focus-within .me-menu, .me-wrap.open .me-menu { display: block; }
@media (hover: hover) { .me-wrap:hover .me-menu { display: block; } }
/* Its corners are the items' 9px, 6px in, past a 1px line: a lit item rounds with the menu. */
.menu {
  display: grid; gap: 2px; min-width: 176px; padding: 6px;
  border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface);
  box-shadow: 0 18px 44px -14px rgb(0 0 0 / .55);
}
.menu-item {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%;
  padding: 9px 12px; border: 0; border-radius: 9px; background: none;
  color: var(--text-2); font-size: 14px; font-weight: 500; text-align: left; white-space: nowrap; cursor: pointer;
}
.menu-item:focus-visible { background: var(--sunk); color: var(--text); }
@media (hover: hover) { .menu-item:hover { background: var(--sunk); color: var(--text); } }
.menu-item svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linejoin: round; }
.menu-item:is([aria-pressed="true"], [aria-checked="true"]) { color: var(--text); }
.menu-item:is([aria-pressed="true"], [aria-checked="true"]) svg { fill: var(--accent); stroke: var(--accent); }
.pop { position: relative; display: grid; }
.pop-menu { position: absolute; z-index: 20; left: 0; top: calc(100% + 6px); min-width: 100%; }
/* Report (app/moderation.py), where it stands among a thing's quiet links: its reasons open
   under it (kept in the window: site.js), Other's line among them; once sent, "Reported", not
   to be pressed. The menu beside Follow on a profile (Block, Report, Suspend): three dots. */
.report-menu { min-width: 200px; }
.report-menu .menu-head { padding-top: 4px; }
.report-other { display: flex; gap: 8px; padding: 4px 6px 6px; }
.report-other input {
  flex: 1; width: 0; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 14px;
}
.report-other input:focus { outline: none; border-color: var(--accent); }
@media (pointer: coarse) { .report-other input { font-size: 16px; } }  /* (no zoom into it on a phone) */
.report-menu .log-error { margin: 2px 8px 4px; text-align: left; }
.link.reported, .menu-item.reported { color: var(--text-3); text-decoration: none; cursor: default; }
@media (hover: hover) { .link.reported:hover, .menu-item.reported:hover { color: var(--text-3); background: none; } }
:is(.rev-talk, .thread-acts, .board-acts) :is(.report > .link, .reported) { color: var(--text-3); font-size: 13px; }
.list-meta :is(.report > .link, .reported) { font-size: 14px; }
.who-acts { display: inline-flex; align-items: center; gap: 6px; }
.person-more { width: 34px; height: 34px; }
.person-more svg { fill: currentColor; stroke: none; }
.person-menu .pop-menu { min-width: 176px; }
.person-menu-main, .person-menu .report-menu { display: grid; gap: 2px; }
.who-head .person-menu form { display: block; }
.person-menu { display: inline-grid; }
/* A half-width window is still the desk's bar: the search box gives up its slash. */
@media (min-width: 681px) and (max-width: 949px) {
  .top-in { gap: 16px; }
  .top-left { gap: 14px; }
  .find kbd { display: none; }
  .find input { padding-right: 16px; }
}
.dock { display: none; }

.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--text); color: var(--bg);
  font: 600 14px/1 var(--sans);
}
img.avatar { object-fit: cover; background: var(--sunk); }
.avatar.s { width: 22px; height: 22px; font-size: 11px; }
.avatar.xl { width: 112px; height: 112px; font: 400 62px/1 var(--serif); }

/* ---- buttons, chips ---- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font: 600 14px/1 var(--sans); white-space: nowrap; cursor: pointer;
  transition: filter .15s, background .15s, opacity .15s;
}
@media (hover: hover) { .btn:hover { filter: brightness(1.07); } }
/* Not ready yet: an outline with the word in grey, not a faded fill (which goes muddy on dark). */
.btn:disabled { background: none; border-color: var(--line-2); color: var(--text-3); cursor: default; filter: none; }
.btn.quiet { background: none; border-color: var(--line-2); color: var(--text); }
.btn.quiet:disabled { color: var(--text-3); cursor: default; }
@media (hover: hover) { .btn.quiet:hover { background: var(--sunk); filter: none; } }
/* Held down, a button goes a shade darker than it lies: under a finger as under a pointer, and
   nothing moves. */
.btn:not(:disabled):active { filter: brightness(.9); }
.btn.quiet:not(:disabled, .asking):active { background: var(--line-2); filter: none; }
.btn.big { height: 50px; padding: 0 26px; font-size: 16px; }
.btn.small { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.wide { width: 100%; }
.link {
  padding: 0; border: 0; background: none; color: var(--text-2);
  font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--line-2); cursor: pointer;
}
@media (hover: hover) { .link:hover { color: var(--text); } }
/* What deletes, pressed once: asking to be pressed again (as Remove on a title). A button
   drawn as one goes red, as what deletes is; where it was a picture alone, it has room for
   its word. */
button.link.asking { color: var(--accent); }
@media (hover: hover) { button.link.asking:hover { color: var(--accent); } }
.btn.asking, .btn.quiet.asking { background: #c2361f; border-color: #c2361f; color: #fff; }
@media (hover: hover) { .btn.quiet.asking:hover { background: #c2361f; border-color: #c2361f; color: #fff; } }

/* The filters over what they filter, on a computer in one line: the kinds, then on a shelf
   where things sit, and at the line's end the shelf's size and order. (Owner, 11-10: the
   buttons "even bigger"; then, of the two lines those took: "as big as possible while keeping
   the one line".) How big is set by the fullest line there is: seven kinds, TV's four places
   with "Watching" and "Episodes", the order "Date finished". The sizes step down with the
   window so that this one fits (the steps are with .joined, below), and are the same for every
   filter in a window of one width: nothing changes size or place from one press to the next.
   Narrower than 850px no size fits: two lines there, as on a phone. A line too long after all
   wraps: nothing is cut off. */
.chips {
  display: flex; align-items: flex-end; margin: 24px 0 0; padding: 0;
  border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips-line { flex: none; display: flex; align-items: flex-end; gap: 0; }
.chips-line + .chips-line { flex: 1 1 auto; }  /* to the line's end, where the order sits */
/* What the filters show stands 20px under them, nearer than what is above (owner, 11-10); a
   section with a name 32px, so that its name stays nearer its own covers. */
.chips + :is(.block, .tags.lead, .search-start, .empty) { margin-top: 18px; }
.chips + .block:has(> :is(.block-head, .h2, .looking-head):first-child) { margin-top: 30px; }
/* (With a kind chosen what arrives has no name: what waits for it starts where it will.) */
.chips:has([data-kind][aria-current]) + .block.looking { margin-top: 18px; }

/* ---- type ---- */

.eyebrow {
  color: var(--text-3);
  font: 600 12px/1.2 var(--sans); letter-spacing: .11em; text-transform: uppercase;
}
.h2 { font: 400 32px/1.1 var(--serif); letter-spacing: -.005em; }
.block { margin-top: 64px; }
.block > .h2, .block-head { margin-bottom: 22px; }
/* A show's "Other", under its seasons: as far below them as a section is below the one before. */
.block > .h2.seasons-other { margin-top: 64px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
/* "Diary →": one line under word and arrow alike (drawn, not the font's: an arrow from
   another font got an underline of its own), and an arrow that is the same everywhere. */
.more {
  color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none;
  background: linear-gradient(var(--line-2), var(--line-2)) 0 calc(100% - 2px) / 100% 1px no-repeat;  /* where the underline was */
}
@media (hover: hover) { .more:hover { color: var(--text); } }
.more::after {
  content: ""; display: inline-block; width: .85em; height: .85em; margin-left: .3em; vertical-align: -.06em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
button.more { padding: 0; border: 0; background-color: transparent; font-family: inherit; cursor: pointer; }  /* (not `background: none`: that took the underline .more draws as a background) */
/* On a touch screen, the small words that are buttons or links (Close, Change, Hide a part,
   Spoilers, More, Reply, Send feedback, the follower counts, a year, "Streaming") and the small heart answer
   to a press around them: an unseen margin round each, so a finger finds them; nothing moves and
   nothing looks different. Each reaches 44 by 44 about its middle, and never less than 6 past
   each end. (Their own position, where they have one, is kept: :where weighs nothing.) */
@media (pointer: coarse) {
  :where(.link, .more, .check, .foot-feedback, .who-counts a, .rev-like:enabled, .music-source, .steam a, a.out-label) { position: relative; }
  :where(.link, .more, .check, .foot-feedback, .who-counts a, .rev-like:enabled, .music-source, .steam a, a.out-label)::before {
    content: ""; position: absolute; inset: min(0px, (100% - 44px) / 2) min(-6px, (100% - 44px) / 2);
  }
  /* Where something is nearer than that, the reach stops short of it: at half the gap to another
     thing that is pressed, and clear of words someone may want to select. */
  /* Every other small thing that is pressed (11-17: the header's marks, the tabs, tags, small buttons, filters, the choices in
     Settings, an edit mode's marks and eyes): 40 by 40 about its middle at the least, unseen, taking only the room that is
     free about it (the next press is never nearer than the 3px it leaves). */
  :where(.top .mark, .top .icon-btn, .top .me, .tabs a, .tag, .btn, .joined a, .set-choice button, .who-link, .sec-eye, .remove-mark, .list-tool,
    .edit-pair button, .board-by, .who, .set-how > summary, .played-cover, .pick, .rev-talk button.link, .rev-title a, .eyebrow a, a.person) { position: relative; }
  :where(.top .mark, .top .icon-btn, .top .me, .tabs a, .tag, .btn, .joined a, .set-choice button, .who-link, .sec-eye, .remove-mark, .list-tool,
    .edit-pair button, .board-by, .who, .set-how > summary, .played-cover, .pick, .rev-talk button.link, .rev-title a, .eyebrow a, a.person)::before {
    content: ""; position: absolute; inset: min(0px, (100% - 40px) / 2);
  }
  /* A menu the browser draws (the favorites', a list's order): 34 high, the form round it takes the press 3px above and below
     (site.js opens it from there): unseen, nothing moves. */
  form.five-pick:has(> select), form.five-pick > select { position: relative; }  /* (the menu after the reach, so above it) */
  form.five-pick:has(> select)::before { content: ""; position: absolute; inset: -3px 0; }
  .times-list { gap: 2px; }
  .block-head .more::before { inset-block: min(0px, 100% - 36px) -8px; }
  .overview-more::before { inset: 0 -6px min(0px, 100% - 44px) 0; }
  .clamp-more::before { inset: -8px -6px -9px 0; }
  .steam a::before { inset-block: -7px -10px; }
  .steam a.steam-store::before { inset-inline: -2px; }  /* (marks 4px apart: no reach into the next) */
  .thread-acts .link::before { inset-block: -6px -8px; }
  .board-acts .link::before { inset: -9px -6px -11px; }
  .board-acts > .link::before { left: -14px; }
  .rev-talk .rev-edit::before { inset-inline: -8px -13px; }
  .rev-talk .rev-edit:has(+ .rev-edit)::before { right: -8px; }  /* notes kept have two, 16 apart */
  .list-meta .link::before { top: -5px; }  /* on a narrow screen one may stand under the others, 10 down */
  .who-tags .link::before { inset-block: -4px min(0px, 100% - 40px); }
  .list-form .check::before { inset-block: -9px; }
  .list-picks .check::before { inset-block: -7px; }
  .five-edit-line .check::before { inset-block: -10px -9px; }
  .write-go :is(.link, .check)::before { inset-block: -10px -9px; }
  .when > .link::before { bottom: -4px; }
}
.empty { padding: 4px 0; color: var(--text-3); }
.empty small { display: block; margin-top: 4px; font-size: 14px; }
/* While the outside sources answer: a section of its own, with faint covers where theirs go. */
.looking-head { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--text-2); font: 500 15px/1.3 var(--sans); }
.looking-head svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; animation: spin .9s linear infinite; }
.ghost { display: block; padding-bottom: 12px; }
.ghost-cover { display: block; aspect-ratio: 2 / 3; margin-bottom: 11px; border-radius: 10px; background: var(--sunk); }
.ghost-line { display: block; width: 80%; height: 11px; margin-top: 6px; border-radius: 6px; background: var(--sunk); }
.ghost-line.short { width: 45%; }
.ghost > span { animation: ghost 1.4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ghost { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .looking-head svg, .ghost > span { animation: none; } }
.note { margin-top: 32px; color: var(--text-3); font-size: 13.5px; }

/* ---- genres ---- */

.shelf-head { padding-top: 56px; }
.shelf-head h1 { margin-top: 14px; font: 400 clamp(46px, 6.4vw, 84px)/.98 var(--serif); letter-spacing: -.02em; }
@media (hover: hover) { .shelf-head .eyebrow a:hover { color: var(--text-2); } }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.tags.lead { margin-top: 28px; }
.people-found .tag { gap: 8px; padding-left: 5px; }
.people-found small { color: var(--text-3); font-size: 12.5px; }
.tags > span { margin-right: 4px; color: var(--text-3); font-size: 13px; font-weight: 500; }
.tag {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--text-2); font-size: 13px; font-weight: 500;
}
@media (hover: hover) { .tag:hover { border-color: var(--text-3); color: var(--text); } }
.genre-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.genre-list a { display: block; padding: 7px 0; font: 400 24px/1.2 var(--serif); color: var(--text-2); }
@media (hover: hover) { .genre-list a:hover { color: var(--text); } }

/* ---- hero ---- */

.hero { max-width: 900px; padding: clamp(56px, 10vw, 128px) 0 clamp(8px, 3vw, 40px); }
.hero h1 {
  margin: 18px 0 22px;
  font: 400 clamp(46px, 7.4vw, 96px)/.97 var(--serif); letter-spacing: -.02em;
  text-wrap: balance;
}
.hero h1 em { color: var(--accent); }
.hero-sub { margin-bottom: 32px; color: var(--text-2); font-size: 19px; }
.hero-go { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-find { display: flex; gap: 10px; max-width: 560px; }
/* On an empty profile, the same question, the size of the page's other headings' room. */
.hero.start { padding: 28px 0 8px; }
.hero.start .h1 { margin: 14px 0 22px; font: 400 clamp(34px, 5vw, 56px)/1 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.hero-find input {
  flex: 1; min-width: 0; height: 50px; padding: 0 20px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); outline: none;
}
.hero-find input:focus { border-color: var(--text-3); box-shadow: inset 0 0 0 1px var(--text-3); }

/* ---- covers and cards ---- */

.cover {
  position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden;
  border-radius: 10px; background: var(--sunk);
  box-shadow: 0 1px 2px rgb(0 0 0 / .14), 0 10px 22px -10px rgb(0 0 0 / .4);
  transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s;
  container-type: inline-size;
}
.cover::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09);
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* What kind of thing it is, in the corner of a cover that stands among other kinds (a shelf
   of everything, favorites, reviews): the same disc as a favorite's song has in the other
   corner (owner, 11-11: the kind at the bottom right, the song at the bottom left). Smaller on a small cover; none on one too small to hold it. */
/* ONE size and ONE inset for every disc drawn on a cover (the kind, where it sits on the viewer's shelf): --disc across, --disc-in from
   each of its two edges (the same both ways), --disc-ink the picture in it. Said here once; a smaller cover has its own steps. */
:root { --disc: 28px; --disc-in: 7px; --disc-ink: 17px; }
.kind-mark {
  position: absolute; right: var(--disc-in); bottom: var(--disc-in); z-index: 1; display: grid; place-items: center;
  width: var(--disc); height: var(--disc); border-radius: 50%; background: rgb(12 10 8 / .78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.kind-mark svg { width: var(--disc-ink); height: var(--disc-ink); fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kind-mark .full { fill: #fff; stroke: none; }
@container (width < 100px) {
  .kind-mark { --disc: 20px; --disc-in: 5px; --disc-ink: 12px; }
  .kind-mark svg { stroke-width: 2.1; }
}
@container (width < 50px) { .kind-mark { display: none; } }
.cover:has(img) .cover-ph { display: none; }
.cover-ph {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 10%;
  background: linear-gradient(165deg, var(--sunk), color-mix(in srgb, var(--sunk) 78%, var(--text-3)));
  color: var(--text-2); font: 400 clamp(11px, 12cqw, 30px)/1.08 var(--serif);
  overflow-wrap: anywhere;
}
/* A name longer than its tile keeps its beginning and ends in "…" on the last line there is
   room for. A tile has 1.3 of its width for lines of 1.08 of the type: ten of them while the
   type grows with the tile, a line fewer for every 9.14px under 91.4px wide (the type stays
   11px) and a line more for every 24.93px from 274.2px (it stays 30px). Each edge is rounded
   to the side of a line fewer: a line too many would show cut through, with no "…". */
.cover-ph > span {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 10; overflow: hidden;
  /* A letter reaching past its line is not cut: under the last line only as far as a letter
     hangs, for the first line left out begins right under that. */
  padding: .2em .2em .05em; margin: -.2em -.2em -.05em;
  max-height: calc(100% + .25em);
}
/* At the smallest type that much under the last line is less than a pixel, and what showed in
   it was the top of the line left out. */
@container (width < 91.4px) {
  .cover-ph > span { -webkit-line-clamp: 9; padding-bottom: 0; margin-bottom: 0; max-height: calc(100% + .2em); }
}
@container (width < 82.3px) { .cover-ph > span { -webkit-line-clamp: 8; } }
@container (width < 73.2px) { .cover-ph > span { -webkit-line-clamp: 7; } }
@container (width < 64px) { .cover-ph > span { -webkit-line-clamp: 6; } }
@container (width < 54.9px) { .cover-ph > span { -webkit-line-clamp: 5; } }
@container (width < 45.7px) { .cover-ph > span { -webkit-line-clamp: 4; } }
@container (width < 36.6px) { .cover-ph > span { -webkit-line-clamp: 3; } }
@container (width < 27.5px) { .cover-ph > span { -webkit-line-clamp: 2; } }
@container (width < 18.3px) { .cover-ph > span { -webkit-line-clamp: 1; } }
@container (width >= 274.2px) { .cover-ph > span { -webkit-line-clamp: 11; } }
@container (width >= 299.1px) { .cover-ph > span { -webkit-line-clamp: 12; } }
@container (width >= 324.1px) { .cover-ph > span { -webkit-line-clamp: 13; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 34px 22px; }
/* Home's rows: one cover size down the page, six to a row (three on a phone). A short row
   leaves the rest empty; a cover never grows to fill it. */
.grid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid.one-row {
  grid-template-rows: auto; grid-auto-rows: 0; row-gap: 0; overflow: hidden;
  margin: -8px -14px -12px; padding: 8px 14px 0;
  /* The hidden rows still cast a shadow upward; trim the strip it lands in. (Each card ends
     above that strip, a margin under it and not room inside it: the line the keyboard draws
     round a card, 4px out, closes under it.) */
  clip-path: inset(0 0 8px);
}
.grid.one-row .card { margin-bottom: 12px; }
/* A card kept back until "Show all": in the grid as if not wrapped, once shown. */
.grid-more:not([hidden]) { display: contents; }
.card { position: relative; display: block; min-width: 0; }
.card .cover { margin-bottom: 11px; }
/* A cover rises a little under the pointer, anywhere on its card: over the button in its
   corner too, which is beside the card and not in it. Only under a pointer: a phone keeps a
   tap's hover, and the cover pressed last would stay risen. */
@media (hover: hover) {
  .card:hover .cover, .card-at:hover .cover, a.cover:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 4px rgb(0 0 0 / .16), 0 18px 30px -12px rgb(0 0 0 / .5);
  }
  /* What sits on the cover rises with it, and so stays in its corner. */
  .card-at:hover :is(.card-badge, .cut, .card-quick) { transform: translateY(-4px); }
}
.card-badge, .card .cut { transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
.card-name {
  --name: 14.5px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: var(--name); font-weight: 550; line-height: 1.3;
}
/* A name holding a word wider than its cover: a step smaller; wider still, the word ends in
   "…" rather than being cut through a letter (site.js measures which). */
.card-name.long-word { font-size: calc(var(--name) - 1px); }
.card-name.word-cut { text-overflow: ellipsis; }
.card-meta {
  display: block; margin-top: 3px; overflow: hidden;
  color: var(--text-3); font-size: 13px; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis;
}
/* How hard a title's Japanese is (app/jiten.py, from Jiten): five rising bars, lit as far as the figure
   reaches, and the figure. On a card it is a frosted pill inside the cover's bottom-left corner (the kind's disc has the right),
   so it rises with the cover on hover; smaller on a small cover, none on one too small. */
.jt-fig { display: inline-flex; align-items: center; gap: 4px; flex: none; white-space: nowrap; }
.jt-bars { display: block; width: 14px; height: 11px; flex: none; }
.jt-bars rect { fill: var(--line-2); }
.jt-bars rect.on { fill: var(--text-2); }
.jt-n { font-variant-numeric: tabular-nums; }
.jt-pill {
  position: absolute; left: var(--disc-in); bottom: var(--disc-in); z-index: 1; display: flex; align-items: center;
  height: var(--disc); padding: 0 8px; border-radius: 999px; background: rgb(12 10 8 / .78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font-size: 12px; font-weight: 600; line-height: 1;
}
.jt-pill .jt-bars rect { fill: rgb(255 255 255 / .32); }
.jt-pill .jt-bars rect.on { fill: #fff; }
@container (width < 100px) { .jt-pill { --disc: 20px; --disc-in: 5px; padding: 0 6px; font-size: 11px; } }
@container (width < 50px) { .jt-pill { display: none; } }
.facts + .jt-line, .jt-line + .edition-line { margin-top: 6px; }
.facts .jt-fig { vertical-align: -1px; }
.facts .jt-fig::before, .facts .jt-n::before { content: none; }  /* (a fact brings its dot: not the spans inside one) */
.season-meta .jt-fig { vertical-align: -1px; }
/* Under a cover on Home and among a title's related, the line says what a person needs
   ("Watching · Season 3", "Not out yet · 4 Mar 2027"): a second line where the cover is
   narrower than it, each part between its dots kept whole (the templates). */
.whole-meta .card-meta { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
/* A streaming service's name under a cover is never cut ("Amazon Prime Vid…" under a phone's):
   a second line where the cover is narrower than the name. */
.card-on { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; }
.again-mark {
  width: 13px; height: 13px; margin-left: 6px; vertical-align: -1px;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
/* A card and, for someone logged in, the button to put it on their shelf from here: in the
   cover's top right corner, shown while the card is hovered or the button has the keyboard. */
.card-at { position: relative; min-width: 0; }
.card-quick {
  position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px;
  padding: 0; border: 0; border-radius: 999px; background: rgb(12 10 8 / .78); color: #fff; cursor: pointer;
  opacity: 0; transition: opacity .2s cubic-bezier(.2, .7, .2, 1), transform .2s cubic-bezier(.2, .7, .2, 1);  /* fades in and rises with the cover (the same time and ease) */
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.card-quick svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.card-quick:focus-visible { opacity: 1; }
@media (hover: hover) { .card-at:hover .card-quick { opacity: 1; } }
/* No hover on a touch screen: a long press on the cover instead (cover-menu.js). */
@media (hover: none) {
  .card-quick { display: none; }
  .card-at .card { -webkit-touch-callout: none; }
}
.quick-menu { position: fixed; z-index: 40; }
/* The quick edit: the title's own status bar, counter and stars (cover-menu.js), in a popover under
   the button or, on a phone, a small sheet headed by the title's cover and name. */
.quick-edit { width: 300px; box-sizing: border-box; padding: 14px; }
.qe-body { display: grid; gap: 20px; }
.qe-body > .count { margin-top: -12px; }
.sheet-body:has(> .qe-body) { justify-items: stretch; }
.qe-who { display: flex; align-items: center; gap: 14px; min-width: 0; color: inherit; text-decoration: none; }
.qe-who:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 8px; }
.qe-more { margin-left: .35em; opacity: .5; }
.qe-who .cover { flex: none; width: 44px; margin: 0; border-radius: 7px; }
.sheet-head .qe-who .h2 { margin: 0; font-size: 22px; line-height: 1.1; }
.sheet.qe .sheet-head { align-items: center; }
/* While a finger is down that began a press on a cover (until it lifts), nothing on the page can be selected: the phone's
   long-press selection would land on whatever lies under the finger when the panel opens (cover-menu.js sets the class). */
html.press-held, html.press-held * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.card-badge {
  position: absolute; top: 8px; left: 8px; z-index: 1; padding: 4px 9px; border-radius: 999px;
  background: rgb(12 10 8 / .78); color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1.2;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
/* Where it sits on the viewer's shelf: its picture alone, in a frosted disc matching `.kind-mark`. */
.card-badge.is-status { top: var(--disc-in); left: var(--disc-in); display: grid; place-items: center; width: var(--disc); height: var(--disc); padding: 0; }
.card-badge.is-status .status-icon { width: var(--disc-ink); height: var(--disc-ink); stroke-width: 2.3; }
.card-badge.is-status .status-icon.solid { fill: currentColor; }

.stars {
  --s: 14px;
  display: inline-block; flex: none; width: calc(var(--s) * 5); height: var(--s); vertical-align: -2px;
  background: linear-gradient(90deg, var(--accent) calc(var(--r) * 10%), var(--line-2) 0);
  -webkit-mask: var(--star) 0 0 / var(--s) var(--s) repeat-x;
  mask: var(--star) 0 0 / var(--s) var(--s) repeat-x;
}

/* ---- a title's page ---- */

.title {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; align-items: start;
  padding-top: 56px;
}
.title-side { position: sticky; top: min(100px, calc(100dvh - var(--side-h, 0px) - 24px)); display: grid; gap: 18px; }  /* (taller than the window: its bottom stays in sight; --side-h is kept by title.js, without it 100px) */
.title-side .cover { border-radius: 14px; }
.title-head h1 {
  margin: 14px 0 12px;
  font: 400 clamp(44px, 5.4vw, 76px)/.98 var(--serif); letter-spacing: -.018em;
  text-wrap: balance; overflow-wrap: anywhere;
}
.credit { color: var(--text-2); font-size: 18px; }
.aka { margin-top: 6px; color: var(--text-3); font-size: 14px; }
.note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.crowd { display: flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--text-2); font-size: 14px; }
.crowd b { color: var(--text); font-size: 15px; font-weight: 600; }
/* One star (decoration), the average and the count; the bars only from the page's `spread_from` grades (data-spread-from, title.js). */
.crowd > .stars { --s: 15px; width: var(--s); background: var(--accent); vertical-align: baseline; }
/* How the grades fall, half a star to five: a profile's bars (.spread), after the count.
   Where the line is short (a phone, beside the cover) they go under, whole: the count is
   never broken in two. */
.crowd { flex-wrap: wrap; row-gap: 12px; }
.crowd [data-crowd-count] { white-space: nowrap; }
.crowd .spread { margin-left: 15px; }
@media (max-width: 680px) { .crowd .spread { margin-left: 0; } }
/* The stars, the average and the count stand on the bars' floor (the line they are written
   on is the bars' foot); "½" and "5" hang under it, in room the line keeps for them
   (5px and their line of 18, as on a profile). */
.crowd:has(.spread:not([hidden])) { align-items: baseline; padding-bottom: 23px; }
.crowd .spread-ends { position: absolute; left: 0; right: 0; top: 100%; }
.crowd:has(.spread:not([hidden])) > .stars { position: relative; top: 2px; }  /* level with the digits beside them */
.overview { max-width: 66ch; margin-top: 28px; font-size: 17px; line-height: 1.62; white-space: pre-line; }
.overview.clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.overview-box { position: relative; max-width: 66ch; }
.overview-more {
  position: absolute; right: 0; bottom: 0; padding-left: 4.5em; font-size: 17px; line-height: 1.62;
  background: linear-gradient(to right, transparent, var(--bg) 3.5em); color: var(--text);
}
/* Each fact brings its dot; the line is set a dot's width to the left and that width cut
   off, so a line never starts with one, however the facts wrap. */
.facts {
  display: flex; flex-wrap: wrap; margin: 18px 0 0 -19px; clip-path: inset(-6px -6px -6px 19px);
  color: var(--text-2); font-size: 14px;
}
.facts span::before { content: "·"; display: inline-block; width: 19px; color: var(--text-3); text-align: center; }
/* A game's price on Steam, on the way to it there; how much is off, where it is on sale. */
/* A line: Steam's mark, then what there is to say (a price, or the hours played), all on
   the mark's middle. */
.steam { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 14px; color: var(--text-2); font-size: 14px; line-height: 22px; }
.steam a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 8px; min-height: 22px; }  /* as tall with a price as without: one come later moves nothing */
@media (hover: hover) { .steam a:hover { color: var(--text); } }
.steam b { color: var(--text); font-weight: 600; }
.steam s { color: var(--text-3); }
.steam-where { display: inline-flex; }
.steam-where svg { width: 22px; height: 22px; fill: currentColor; }
.steam-played { color: var(--text-3); }
/* With the stores' prices: the price, then the marks of the stores that have it, each its deal's way; a store with no mark by its name, small. */
.steam-price { display: inline-flex; align-items: center; gap: 0 8px; white-space: nowrap; }
.steam-stores { display: inline-flex; align-items: center; gap: 0 4px; white-space: nowrap; }
.steam-store { display: inline-flex; align-items: center; min-height: 22px; }
.steam-store svg { width: 20px; height: 20px; fill: currentColor; }
.steam-store small, .steam-more { color: var(--text-3); font-size: 12px; font-weight: 500; }
@media (hover: hover) { .steam-store:hover small { color: var(--text); } }
/* A bundle that holds the game for less than it costs alone: a line of its own. */
.steam-bundle { flex-basis: 100%; font-size: 13.5px; }
.steam .steam-bundle a { display: inline; }
.store-picks .pick svg { width: 16px; height: 16px; margin-right: 7px; fill: currentColor; flex: none; }
/* A title's page on other sites: their marks in a row, as a person's accounts elsewhere are. */
.title-out { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 34px; margin-top: 10px; }
.out-group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; margin: 0; }
.out-label { margin-right: 6px; color: var(--text-3); font-size: 13px; }
@media (hover: hover) { a.out-label:hover { color: var(--text); } }
.out-group .who-link { width: 38px; height: 38px; }
.out-group .who-link svg { width: 22px; height: 22px; }
/* A service with no mark: its name. One the viewer ticked: brighter. */
.out-group .out-name { width: auto; padding: 0 8px; font-size: 13.5px; font-weight: 550; white-space: nowrap; }
.out-group .who-link.mine { color: var(--text); }
.out-more { padding: 0 6px; color: var(--text-3); font-size: 13.5px; line-height: 38px; }
@media (hover: hover) { .out-more:hover { color: var(--text); } }
.cut {
  padding: 4px 9px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-size: 11.5px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums;
}
/* On a cover (a wanted game's, on its shelf): in its corner, under "Up next" where it has both. */
.card .cut { position: absolute; top: 8px; left: 8px; z-index: 1; }
.card-badge + .cut { top: 34px; }

/* Four parts with the same room between each (the status with how far in; the stars; the
   watches; what else can be done), measured from what is drawn, not from the boxes: the
   stars and the pictures carry blank room of their own, taken back below. */
.log {
  display: grid; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
}
.log-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; margin: -2px -4px -2px 0; }
.log-head .shelf-on { justify-content: flex-start; margin: 0; font-size: 13px; }
.log-head-label { color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.log:has([data-remove][hidden]) .log-head-label { display: none; }
.log-tools { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.log-tool { width: 30px; height: 30px; color: var(--text-3); }
.log-tool svg { width: 17px; height: 17px; }
.log-tool[hidden] { display: none; }
.log-more:not(:has(.pop-menu > :not([hidden]))) { display: none; }
.log-more .pop-menu { left: auto; right: 0; min-width: 184px; }
.log-more .menu-item[aria-pressed="true"] svg { fill: none; stroke: var(--accent); }
.log-more .menu-item[data-waiting][aria-pressed="true"] .wait-off,
.log-more .menu-item[data-waiting][aria-pressed="false"] .wait-on { display: none; }
.log-more .menu-item.asking { color: var(--accent); }
.log-more .menu-item.asking svg { stroke: var(--accent); }
.log-mid { display: grid; gap: 10px; }
.log-mid .rate-row { --s: 34px; margin-block: round(calc(var(--s) * -.12), 1px); }
.log-mid .rate, .log-mid .heart { --s: 34px; }
.log-mid .count { height: 34px; grid-template-columns: 30px minmax(0, 1fr) 30px; }
.log-mid .count-step { width: 30px; height: 30px; }
.seg { --seg-h: 34px; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--sunk); }
.seg button {
  flex: 100 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0;
  height: var(--seg-h); padding: 0; border: 0; border-radius: 999px; background: none;
  color: var(--text-2); font-size: 13px; font-weight: 550; cursor: pointer;
  transition: background .15s, color .15s;
}
@media (hover: hover) { .seg button:hover { color: var(--text); } }
/* The lit ↻ pressed once: asking to be pressed again, to stop that watch (site.js). */
.seg button.asking, .seg button[aria-checked="true"].asking { background: #c2361f; color: #fff; }
/* The one chosen says what it is in words; the others are pictures. */
.seg button[hidden] { display: none; }
.seg button[aria-checked="true"] { flex: 1 1 auto; gap: 8px; padding: 0 11px; background: var(--seg-on); color: var(--text); }
/* The one chosen, its picture trimmed to what is drawn of it (each has its own blank room in
   its 16px square: the play sign 4px each side), so the picture and the word
   sit in the button's middle by their ink, the same 8px apart in every state. */
.seg button[aria-checked="true"][data-status="want"] .status-icon { margin-inline: -4px; }  /* the bookmark's room for ⚡ too (it draws 1px past it each side): its word stays put when one gives way to the other */
.seg button[aria-checked="true"][data-status="doing"] .mark-play .status-icon { margin-inline: -4px; }
.seg button[aria-checked="true"][data-status="doing"] .mark-again .status-icon { margin-inline: -1.33px; }
.seg button[aria-checked="true"][data-status="done"] .status-icon { margin-inline: -2.67px; }
.seg button[aria-checked="true"][data-status="dropped"] .status-icon { margin-inline: -2.33px; }
/* Beside the one chosen, a picture's place is not much wider than the circle that can light
   round it; room past that goes to the chosen one (a film has only three). */
.seg:has([aria-checked="true"]) button:not([aria-checked="true"]) { max-width: calc(var(--seg-h) + 6px); }
.seg-word { display: none; white-space: nowrap; }
.seg button[aria-checked="true"] .seg-word { display: inline; }
/* Two words for one button ("Watching", "Rewatching"; "Watchlist", "Up next"): only the one
   said takes room, so the picture and the word sit together in the button's middle. The
   button chosen fills what the others leave, whatever its word: nothing moves. */
.seg-two > span + span, .seg button.again-on .seg-two > span:first-child, .seg button.next-on .seg-two > span:first-child { display: none; }
.seg button.again-on .seg-two > span + span, .seg button.next-on .seg-two > span + span { display: inline; }
/* The watchlist up next: ⚡ in the bookmark's place; on the watchlist, hovered, ⚡ says a
   press makes it so. Finished, or going through it again: ↻ in ▷'s place. */
.seg .mark-want, .seg .mark-next, .seg .mark-play, .seg .mark-again { display: contents; }
.seg button:not(.next-on) .mark-next, .seg button.next-on .mark-want { display: none; }
@media (hover: hover) {
  /* (not straight after a press, while the pointer is still on it: only before the next) */
  .seg button[data-status="want"]:is([aria-checked="true"], [data-also]):not(.next-on, .just-pressed):hover .mark-want { display: none; }
  .seg button[data-status="want"]:is([aria-checked="true"], [data-also]):not(.next-on, .just-pressed):hover .mark-next { display: contents; }
}
.seg button:not(.again-on):not(.again-offer) .mark-again, .seg button.again-on .mark-play, .seg button.again-offer .mark-play { display: none; }
/* On the watchlist too, beside what is chosen: lit in its own place, which stays as it was,
   filling it as the chosen one fills its own (the same 3px from the bar's edge). */
.seg button[data-also] { position: relative; isolation: isolate; color: var(--text); }
.seg button[data-also]::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px; background: var(--seg-on); }
.seg button[data-also] > :is(.mark-want, .mark-next) > .status-icon.solid { fill: currentColor; }
.status-icon { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[aria-checked="true"] > .status-icon.solid, [aria-pressed="true"] > .status-icon.solid, [aria-pressed="true"] > .mark-on > .status-icon.solid,
[aria-checked="true"] > .mark-want > .status-icon.solid, [aria-checked="true"] > .mark-next > .status-icon.solid,
[aria-checked="true"] > .mark-play > .status-icon.solid { fill: currentColor; }
/* The status bar, the panel's width. */
.status-row { display: flex; align-items: center; }
.status-row .seg { flex: 1; min-width: 0; }
/* The heart beside the stars, filled in their grey, a little shorter than a star (a heart
   fills more of its outline). A heart carries its weight in its lobes, a star in its legs:
   centred by their outlines the heart looks high, so its tip stands on the line the stars'
   feet do (a star's ink runs from 10% to 87.5% of its square, the heart's from 20%). A
   margin's percentage is of the width, here the square's side. The heart's ink stands 0.0375 of the
   square under the square's middle, where it lines up with the stars; the button is put that much
   lower and its picture that much higher in it, so that its press area is centred on what is seen
   and the ink stands where it did. */
.heart {
  --s: 40px;
  display: grid; place-items: start center; width: var(--s); height: var(--s); padding: 0; border: 0; background: none;
  position: relative; top: calc(var(--s) * .0375);
  color: var(--line-2); cursor: pointer; transition: color .15s;
}
.heart svg { width: 75%; height: 67.5%; margin-top: calc(var(--s) * .1625); fill: currentColor; }
@media (hover: hover) { .heart:hover { color: var(--text-3); } }
.heart[aria-pressed="true"] { color: var(--accent); }
/* How far in: one back and one on at either end, the count between; filled as the status
   bar is, and as tall as the button for something not started. */
.count {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; align-items: center; height: 36px;
  padding: 0 2px; border-radius: 999px; background: var(--sunk);
}
.count-step {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 999px;
  background: none; color: var(--text); cursor: pointer;
}
@media (hover: hover) { .count-step:not(:disabled):hover { background: var(--line); } }
.count-step:disabled { color: var(--text-3); opacity: .45; cursor: default; }
.count-step svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.count-say { display: flex; align-items: baseline; justify-content: center; gap: 5px; min-width: 0; overflow: hidden; color: var(--text-2); font-size: 13px; white-space: nowrap; }
.count-say input {
  flex: none; width: 1ch; padding: 1px 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: none;
  color: var(--text); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; outline: none;
}
/* Typing a number: the whole counter is the field, ringed as the comment box is. */
.count:has(input:focus) { box-shadow: inset 0 0 0 1px var(--text-3); }  /* (not its − or + pressed: that is not typing) */
.count-say input:focus { border-bottom-color: var(--text-3); }
/* The stars with the heart close beside them, the two in the middle of the panel. */
/* The row's blank room above and below the stars taken back, and a little more: a star's tip
   and feet are a few pixels wide, so the eye puts the row's edges inside them (measured where
   a row of stars draws a quarter of its widest). In whole pixels: a row on a fraction of a
   pixel draws the stars and the heart a fraction apart. */
.rate-row { --s: 40px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-block: round(calc(var(--s) * -.175), 1px) round(calc(var(--s) * -.15), 1px); }
.rate-row .pop { flex: none; }
.rate-row .pop-menu { left: auto; right: 0; min-width: 190px; }
.menu-head { padding: 6px 12px 4px; color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.rate {
  --s: 40px;
  width: calc(var(--s) * 5); height: var(--s); border-radius: 6px; cursor: pointer; touch-action: manipulation;
  background: linear-gradient(90deg, var(--accent) calc(var(--p, var(--r)) * 10%), var(--line-2) 0);
  -webkit-mask: var(--star) 0 0 / var(--s) var(--s) repeat-x;
  mask: var(--star) 0 0 / var(--s) var(--s) repeat-x;
}
.rate.small { --s: 24px; border-radius: 4px; }
.rate.none { visibility: hidden; }
.rate.tiny { --s: 19px; border-radius: 4px; }

.seasons { border-bottom: 1px solid var(--line); }
.season { border-top: 1px solid var(--line); }
.season summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto 14px; align-items: center; gap: 18px;
  padding: 15px 0; list-style: none; cursor: pointer;
}
.season summary::-webkit-details-marker { display: none; }
/* A film of the show among its seasons: a row of the same shape, to the film's page. */
.season-film { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; align-items: center; gap: 18px; padding: 15px 0; color: inherit; }
@media (hover: hover) { .season-film:hover .season-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); } }
.season-film-mark { color: var(--text-3); font-size: 13px; }
/* A film among the seasons, opened like one: only its name leads to its own page. */
.film-row a.season-name { width: fit-content; max-width: 100%; }
@media (hover: hover) { .film-row a.season-name:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); } }
/* The film's grade as big as a season's, in the same place. */
.season-film-mark .stars { --s: 24px; display: block; }
.season-name { display: block; font-size: 16px; font-weight: 550; }
.season-meta { display: block; margin-top: 2px; color: var(--text-3); font-size: 13px; }
@media (hover: hover) { .season summary:hover .season-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); } }
.season-status { --mark-w: 32px; display: flex; align-items: center; gap: 2px; padding: 2px; border-radius: 999px; background: var(--sunk); }
/* Nothing to mark (the specials, a season not out): its room kept, so a count beside it
   stands where the seasons' counts do. */
.season-status.none { width: calc(2 * var(--mark-w) + 6px); padding: 0; background: none; }
.season-status button {
  display: grid; place-items: center; width: var(--mark-w); height: 26px; padding: 0; border: 0; border-radius: 999px;
  background: none; color: var(--text-3); cursor: pointer;
}
.season-status .status-icon { width: 16px; height: 16px; }
.season-status .mark-on, .season-status .mark-left, .season-status .mark-again { display: contents; }
.season-status :is([data-left], [data-again]) .mark-on, .season-status :not([data-left]) > .mark-left,
.season-status :not([data-again]) > .mark-again { display: none; }
@media (hover: hover) { .season-status button:hover { color: var(--text); } }
.season-status button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.season-status button.asking, .season-status button[aria-pressed="true"].asking { background: #c2361f; color: #fff; }
/* Watched: a quiet mark (the count says how often); only where it is under way is bright. */
.season-status :is([data-season-mark="done"], [data-film-mark], [data-special])[aria-pressed="true"] { background: var(--line-2); color: var(--text); }
.season-open {
  width: 9px; height: 9px; border: solid var(--text-3); border-width: 0 1.8px 1.8px 0;
  rotate: 45deg; translate: 0 -3px; transition: rotate .15s, translate .15s;
}
/* A game's chapter opens only for its plays: nothing to point to (its room kept, the columns as a season's). */
[data-chapter] > summary .season-open { visibility: hidden; }
.season[open] .season-open { rotate: 225deg; translate: 0 2px; }
/* Opened from its count for its watches alone: the season itself still folded. */
.season[open][data-only] .season-open { rotate: 45deg; translate: 0 -3px; }
.season[data-only] [data-episodes] { display: none; }
/* A film's: the same mark, pointing on to its page. */
.season-open.season-go { rotate: -45deg; translate: -3px 0; }
.episodes { padding: 0 34px 14px 0; color: var(--text-2); font-size: 13.5px; }
/* Beside a season's ▷ ✓ (a film's ✓), and in the panel: how many times it was watched, a
   small pill filled as the status bar is; pressed, its watches (lit while they are open, as a
   status chosen is). None: + to log one. */
.season-marks { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.season-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 30px; padding: 1px 10px 0;  /* "1×" is all tall letters: centred by its ink, half a pixel lower */
  border: 0; border-radius: 999px; background: var(--sunk); color: var(--text-2);
  font: inherit; font-size: 13px; font-weight: 600; line-height: 14px; font-variant-numeric: tabular-nums; cursor: pointer;
}
@media (hover: hover) { .season-count:hover { color: var(--text); } }
.season-count[aria-expanded="true"] { background: var(--text); color: var(--bg); }
.season-count.add { color: var(--text-3); }
.season-count svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* A season's watches, one menu under its row, as wide as its episodes: its times, the boxes
   to log one, and what can be done; ruled off from its episodes when those are open too. */
.times.season-times { margin: 0 0 6px; padding: 0 34px 14px 0; gap: 12px; border-bottom: 1px solid var(--line); }
.season[data-only] .times.season-times { margin-bottom: 0; border-bottom: 0; }
.season-say { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; }
.season-said { margin: 0; color: var(--text-2); font-size: 13.5px; }
/* What ▷ had as watched besides, under the season begun, with its Undo. */
.season-also { margin: -8px 0 0; padding: 0 0 12px; color: var(--text-2); font-size: 13px; }
.season-also .link { font-size: 13px; }
.log-also { margin: 0; padding: 0; text-align: center; }
/* A film among the seasons has no episodes to rule its watches off from. */
.film-row .times.season-times { margin-bottom: 0; border-bottom: 0; }
.season-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.episodes:empty { padding: 0; }
.episode.special { grid-template-columns: 26px minmax(0, 1fr) auto auto 95px; }
.ep-seen button { width: 30px; height: 24px; }
/* A special's count beside its ✓ (as tall as it), and its menu under its row. */
.ep-marks { gap: 6px; }
.ep-marks .season-count { height: 24px; }  /* as tall as the ✓ */
.times.special-times { margin: 0 0 4px; padding: 2px 0 12px 40px; border-bottom: 0; }
.episode {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 95px; align-items: center; gap: 14px;
  padding: 8px 0; color: var(--text); font-size: 14.5px;
}
.ep-n { color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
/* Names in rows go on to the next line where the row is too narrow for them: cut to one, a
   special's "Part I" and "Part II" read alike. */
.ep-name { overflow-wrap: break-word; }
.ep-date, .ep-soon { color: var(--text-3); font-size: 13px; white-space: nowrap; }
.ep-soon { text-align: right; }

.when {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 8px 12px;
  margin: 0; padding: 12px 4px 0; border: 0; border-top: 1px solid var(--line); min-width: 0;
}
.when + .when { padding-top: 2px; border-top: 0; }
.when legend { float: left; padding: 0; color: var(--text-2); font-size: 13.5px; }
.when > .link { justify-self: end; }
.when-parts { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 6px; }
.when-parts select, .when-parts input {
  width: 100%; height: 34px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface); color: var(--text); font-size: 13.5px; outline: none;
}
.when-parts :focus { border-color: var(--text-3); box-shadow: inset 0 0 0 1px var(--text-3); }
.when-parts [aria-invalid] { border-color: var(--accent); }
.fav {
  display: flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 999px; background: none;
  color: var(--text-2); font-size: 13.5px; font-weight: 550; cursor: pointer;
}
@media (hover: hover) { .fav:hover { color: var(--text); border-color: var(--text-3); } }
.fav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fav[aria-pressed="true"] { color: var(--text); }
.fav[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent); }
.fav[aria-pressed="true"] { border-color: var(--text-3); }
.fav[data-waiting][aria-pressed="true"] svg { fill: none; }
.fav[aria-pressed="true"] .wait-off, .fav[aria-pressed="false"] .wait-on { display: none; }
/* What is logged, in the panel: its line and what can be done with it, centred as the links
   under it, ruled off from the grade above; opened, the boxes or the list in their place. */
.times.log-times { margin: 0; padding: 10px 2px 0; border-top: 1px solid var(--line); }
/* The words and the pill at either end of the row. */
.log-say { justify-content: space-between; align-items: center; gap: 6px 10px; margin: 0; text-align: left; }
.log-times .when { padding-inline: 0; border-top: 0; }
.log-times .when + .when { padding-top: 0; }
.watches-menu { display: grid; gap: 10px; }
.shelf-lock { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* Another of the person's shelves, by its tint: the box beside the cover on a title it logs
   to, the ring round their picture while they are on it, its dot in their menu. */
[data-tint="1"] { --tint: var(--tint-1); }
[data-tint="2"] { --tint: var(--tint-2); }
[data-tint="3"] { --tint: var(--tint-3); }
.log[data-tint] {
  --sunk: color-mix(in srgb, var(--tint) 12%, var(--sunk-0));  /* its bars and steppers take the tint too */
  border-color: color-mix(in srgb, var(--tint) 45%, transparent); background: color-mix(in srgb, var(--tint) 9%, var(--surface));
}
.shelf-now { display: inline-flex; align-items: center; gap: 6px; color: var(--tint); font-size: 13.5px; font-weight: 550; }
.shelf-on { display: flex; align-items: center; justify-content: center; gap: 6px; margin: -5px 0 -5px; color: var(--tint); font-size: 13.5px; font-weight: 550; }
.me[data-tint] .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--tint); }
.menu-shelves { display: grid; gap: 2px; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.shelf-item-name { display: inline-flex; align-items: center; gap: 9px; }
.tint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tint, var(--text-3)); }
.shelf-item[aria-current] { color: var(--text); font-weight: 550; }
/* On a profile's Shelf tab, for its owner: which shelf, its size and hours. */
.shelf-choice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; margin: 0 0 18px; }
.shelf-mark { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 12.5px; font-weight: 550; }
/* Private: a lock before the word, open until pressed; shut, and in the accent, while it is. */
.private-toggle .lock-shut, .private-toggle[aria-pressed="true"] .lock-open { display: none; }
.private-toggle[aria-pressed="true"] .lock-shut { display: inline; }
.private-toggle[aria-pressed="true"] { color: var(--accent); }

/* ---- a sheet over the page: choosing a cover ---- */

.sheet {
  width: min(760px, calc(100vw - 32px)); max-height: min(88dvh, 920px); padding: 0;
  border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface); color: var(--text);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / .6);
}
.sheet::backdrop { background: rgb(0 0 0 / .6); }
/* A phone's sheet is as tall as the page above the dock allows, centred on it: its foot never runs over the dock (11-17). */
@media (max-width: 680px) { .sheet { max-height: min(88dvh, calc(100dvh - 136px - 2 * env(safe-area-inset-bottom, 0px))); } }
/* The page under a sheet stays where it was: a scroll inside the sheet ends there (the
   gutter is kept, so nothing moves sideways). */
html:has(dialog.sheet[open]) { overflow: hidden; }
.sheet { overscroll-behavior: contain; }
.sheet-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding: 18px 22px 14px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.sheet-head .h2 { font-size: 26px; }
/* A sheet with a heading closes by a round ✕ (the site's own drawing) at the row's end, its centre on the
   heading's centre line; its 40px press area is out of the row's height (negative margins), so the row is
   as tall as without it. Sheets with no heading have none: a press beside them, or Escape. */
.sheet-head:has(.sheet-x) { align-items: center; }
.sheet .sheet-foot { justify-self: stretch; position: sticky; bottom: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px;
  width: auto; margin: 0 -22px -22px; padding: 14px 22px; background: var(--surface); }
/* The hairline over a pinned foot shows only while content scrolls under it (site.js). */
.sheet .sheet-foot[data-over] { box-shadow: 0 -1px 0 var(--line); }
.sheet .sheet-foot .btn { margin: 0; }
.sheet-end.sheet-foot { justify-content: space-between; }
.sheet-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin: -10px -10px -10px 0; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s; }
.sheet-x svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (hover: hover) { .sheet-x:hover { background: var(--sunk); color: var(--text); } }
.sheet-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px; justify-items: start; }
/* A short form in a sheet: a narrower sheet, the form filling it. */
.sheet.small { width: min(480px, calc(100vw - 32px)); }
.sheet-body.door { max-width: none; margin: 0; }
.sheet-body.door label:not(.check) { width: 100%; }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 18px 16px; width: 100%; }
.cover-pick { padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.cover-pick .cover { border-radius: 8px; }
@media (hover: hover) { .cover-pick:hover .cover { transform: translateY(-4px); } }
.cover-pick[aria-checked="true"] .cover { outline: 3px solid var(--accent); outline-offset: 3px; }
/* A book's editions: a row each, its cover small beside what tells it from the others. */
.edition-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; width: 100%; }
.edition-pick {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
}
@media (hover: hover) { .edition-pick:hover { background: var(--sunk); } }
.edition-pick[aria-checked="true"] { background: var(--sunk); box-shadow: inset 0 0 0 2px var(--accent); }
.edition-pick .cover { border-radius: 4px; }
.edition-words { display: grid; gap: 2px; min-width: 0; color: var(--text-2); font-size: 14px; line-height: 1.35; }
.edition-words > :first-child { color: var(--text); font-size: 15px; font-weight: 600; }
.edition-words > * { overflow-wrap: anywhere; }
.facts + .edition-line { margin-top: 6px; }
.edition-line .edition-head { color: var(--text-3); }
.log-error { color: var(--accent); font-size: 13.5px; text-align: center; }
/* The same words said by what was pressed, when that line is out of sight (common.js), on a
   small note over the page as a grade's is over its bars. */
.log-error.said-here {
  position: fixed; z-index: 45; max-width: calc(100vw - 24px); margin: 0; padding: 6px 10px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface);
  box-shadow: 0 10px 26px -12px rgb(0 0 0 / .5); line-height: 18px; text-align: left; pointer-events: none;
}

/* ...or, for a form sent with no connection, a line of the page's own under it. */
.log-error.said-here.in-line { position: static; max-width: none; padding: 0; border: 0; background: none; box-shadow: none; text-align: left; pointer-events: auto; }
.set-row > .log-error.in-line { flex: 1 0 100%; }

.write { margin-bottom: 8px; }
.write:has(+ .revs > .rev) { margin-bottom: 22px; }  /* (the first review's line: as far under the button as the review is under the line) */
/* Likes and comments under reviews. (On a line too short for all of it the last goes under
   the rest, whole, and as far down as a finger's reach is tall.) */
.rev-talk { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 16px; min-height: 28px; margin-top: 12px; white-space: nowrap; }  /* (28: the heart's; one height whichever of the actions are there) */
/* The heart's drawing stands at the review's left edge (its button's padding and the drawing's own 1.4px room pulled out of it); what follows stays where it was. */
.rev-like { --pl: 4px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 var(--pl); border: 0; border-radius: 999px;
  background: none; color: var(--text-3); font-size: 13px; font-weight: 550; cursor: pointer; }
.rev-like:has([data-like-count]:empty) { --pl: 5.5px; gap: 0; padding: 0 5.5px; }
.rev-talk .rev-like { margin: 0 calc(var(--pl) + 1.4px) 0 calc(-1 * (var(--pl) + 1.4px)); }
.rev-like svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
@media (hover: hover) { .rev-like:not(:disabled):hover { color: var(--text); } }
.rev-like[aria-pressed="true"] { color: var(--accent); }
.rev-like[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent); }
.rev-like:disabled { cursor: default; }
/* On a list's card: how many like it, after what it holds. */
.card-likes { margin-left: 10px; white-space: nowrap; }  /* its number on the line's baseline */
.card-likes svg { width: 13px; height: 13px; margin-right: 3px; fill: currentColor; vertical-align: -2px; }
.rev-comments, .rev-talk .rev-edit { font-size: 13px; color: var(--text-3); }
@media (hover: hover) { .rev-talk .rev-edit:hover { color: var(--text); } }
/* A review's comments sit under its writer's name (the avatar's width in), each face
   beside its words, as the review's own does; the box to add one is one control. */
.rev-thread { margin-top: 16px; padding-left: 29px; }
.thread { display: grid; gap: 16px; margin: 0 0 16px; padding: 0; list-style: none; }
.thread li, .thread-write { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; column-gap: 10px; }
.thread li > a { padding-top: 1px; }
.thread-said { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.thread-name { color: var(--text); font-size: 13.5px; font-weight: 550; }
.thread p { max-width: 64ch; margin: 0; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.thread .at { color: var(--accent); font-weight: 550; }
@media (hover: hover) { .thread .at:hover { text-decoration: underline; text-underline-offset: 3px; } }
.thread-acts { display: flex; gap: 14px; margin-top: 3px; }
.thread-acts .link { color: var(--text-3); font-size: 13px; }
@media (hover: hover) { .thread-acts .link:hover { color: var(--text); } }
.thread-write { max-width: calc(64ch + 32px); }
.thread-write > .avatar { margin-top: 9px; }
.thread-box {
  display: flex; align-items: flex-end; gap: 8px; min-width: 0; padding: 4px 4px 4px 14px;
  border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface);
}
.thread-box:focus-within { border-color: var(--text-3); box-shadow: inset 0 0 0 1px var(--text-3); transition: border-color .15s, box-shadow .15s; }
.thread-box textarea {
  flex: 1; min-width: 0; min-height: 30px; max-height: 180px; padding: 4px 0; border: 0; outline: none; background: none;
  color: var(--text); font: inherit; font-size: 14.5px; line-height: 22px; resize: none;
}
.thread-post {
  flex: none; height: 30px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s;
}
/* Nothing to post yet: the word alone, no pill, so the empty box is one clean line. */
.thread-post:disabled { background: none; color: var(--text-3); cursor: default; }
@media (pointer: coarse) { .thread-box textarea { font-size: 16px; } }
.thread-note { color: var(--text-3); font-size: 13.5px; }
.thread-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* The year in review */
.year-head h1 { font-size: clamp(72px, 12vw, 148px); line-height: .9; }
/* The number's letters stand taller than its line and reach up over the name above it: the name
   stays on top, to be what a press there opens. */
.year-head .eyebrow { position: relative; }
/* The year's Share (the round picture of the favorites' row) and the years as one menu (the favorites' pill), Share first and the menu at
   the row's end, on the year's own line, at its right end; one row at every width (a menu is as wide as its widest year, so a dozen years change nothing). */
.year-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 16px; }  /* (a bar with no room beside the digits goes under them, at the left) */
.year-bar { display: flex; align-items: center; gap: 10px; }
.year-bar .five-pick { display: inline-grid; }
.year-bar .five-pick > * { grid-area: 1 / 1; }
.year-bar .five-pick select { width: 100%; }
.year-bar .btn svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.year-bar .five-share { flex: none; width: 34px; height: 34px; padding: 0; justify-content: center; }
.year-numbers { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px 44px; margin-top: 48px; padding-bottom: 8px; }
.year-numbers div { display: grid; gap: 2px; }
.year-numbers b { font: 400 44px/1 var(--serif); }
.year-numbers span { color: var(--text-3); font-size: 13.5px; }
.year-numbers .year-big b { font-size: 76px; color: var(--accent); }
.year-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 190px; }
.year-month { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 6px; height: 100%; min-width: 0; }
.home-shelf-mark { margin-top: 24px; margin-bottom: -24px; }
@media (max-width: 680px) { .home-shelf-mark { margin-top: 18px; margin-bottom: -14px; } }
.year-month i { align-self: end; width: 100%; max-width: 46px; height: calc(var(--h) * 1%); min-height: 2px; border-radius: 6px 6px 2px 2px; background: var(--accent); opacity: .85; }
.year-month.is-empty i { background: var(--line-2); opacity: 1; }
.year-month b { align-self: end; color: var(--text-2); font-size: 12.5px; font-weight: 550; }
.year-month span { color: var(--text-3); font-size: 12px; }
.year-note { margin-top: 14px; color: var(--text-3); font-size: 14px; }
.year-tail { margin-top: 48px; }
.year-genres .tag small { margin-left: 6px; color: var(--text-3); }
/* The year's first and last are covers of the grid's size, the same as "Best of" above them (the same columns, two of them filled). */
.year-ends { align-items: start; }
@media (max-width: 680px) {
  .year-numbers { gap: 18px 28px; margin-top: 30px; }
  .year-numbers b { font-size: 34px; }
  .year-numbers .year-big b { font-size: 56px; }
  .year-months { gap: 4px; height: 150px; }
  .year-month span { font-size: 10.5px; }
}

/* The times before */
/* Up under the dates it adds to: no empty list's row between them. */
.times { display: grid; gap: 10px; margin-top: -6px; padding: 4px 4px 0; }
.times-list:empty { display: none; }
.times-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.times-list li {
  position: relative; margin-inline: -8px; padding-inline: 8px;
  border-radius: 10px; color: var(--text); font-size: 14px; transition: background .16s, box-shadow .16s;
}
.time-line { display: flex; align-items: center; gap: 6px; min-height: 44px; }
.nowrap { white-space: nowrap; }
/* Every watch's dates are one small bar in the control fill: the start, an arrow, the finish (a film's, a special's:
   the one day), each date a button that opens its calendar under the row; a date not given is a muted word in its place
   (Started, Finished, No date). The one under way has its dot and status word (in the accent) for its finish. */
.times-list { container: timelist / inline-size; }
.time-when-say { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; height: 36px; padding: 0 3px; border-radius: 999px; background: var(--sunk); font-variant-numeric: tabular-nums; transition: opacity .16s; }
:where(.time-when-say, .time-cal, .time-drop) button, button:where(.time-date, .time-drop) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.time-date { height: 30px; min-width: 0; padding: 0 10px; border-radius: 999px; font-weight: 500; font-size: 14.5px; white-space: nowrap; }
.time-date.none { color: var(--text-3); font-weight: 400; }
.time-date.on { background: color-mix(in srgb, var(--text) 14%, var(--sunk)); }
.time-to { margin: 0 3px; color: var(--text-3); font-size: 14px; }
.time-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.time-now { color: var(--accent); }
.watch-add { display: flex; }
.watch-add .link {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 11px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none;
}
.watch-add .link::after {
  content: ""; order: -1; width: 15px; height: 15px; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.times-list:not(:empty) + .watch-add { margin-top: 2px; }
/* The one to put in its place: on a soft fill (its bar a step lighter); picked up, lifted over the rest. */
.times-list li:has(.time-grip) { background: var(--sunk); }
.times-list li:has(.time-grip) .time-when-say, .times-list li.held .time-when-say { background: color-mix(in srgb, var(--text) 8%, var(--sunk)); }
.times-list li.held { z-index: 1; background: var(--sunk); box-shadow: 0 10px 28px rgb(0 0 0 / .35), 0 0 0 1px var(--line-2); }
.times-list .stars { --s: 13px; }
/* A time's grip: held and dragged, it goes elsewhere in the list. */
.time-grip { flex: none; display: grid; place-items: center; width: 22px; height: 30px; margin-left: auto; color: var(--text-3); cursor: grab; touch-action: none; }
.time-grip + .time-drop { margin-left: 0; }
.time-grip svg { width: 16px; height: 16px; fill: currentColor; }
.times-list li.held .time-grip { cursor: grabbing; }
/* Its ✕, pressed once: the bar dims and the ✕ is ringed in the accent (no words, no more width); pressed again, gone. */
.time-drop { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin: 0 -6px 0 auto; border-radius: 50%; color: var(--text-3); }
@media (hover: hover) { .time-drop:hover { background: var(--sunk); color: var(--text); } }
.time-drop.asking { background: none; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
@media (hover: hover) { .time-drop.asking:hover { background: none; color: var(--accent); } }
.times-list li:has(.time-drop.asking) .time-when-say { opacity: .4; }
.time-drop svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@container timelist (max-width: 280px) { .time-line { gap: 4px; } .time-date { padding: 0 7px; font-size: 13.5px; } .time-to { margin: 0 2px; } .time-dot { margin-right: 4px; } .time-drop { margin-right: -8px; } }
/* Narrower still (the panel beside the cover at half a screen, a phone's narrowest): everything a little closer. */
@container timelist (max-width: 262px) {
  .time-line { gap: 3px; }
  .time-when-say { padding: 0 2px; }
  .time-date { padding: 0 5px; font-size: 12.5px; }
  .time-to { margin: 0 1px; font-size: 12.5px; }
  .time-dot { margin-right: 3px; }
  .time-drop { position: relative; width: 30px; height: 30px; margin-right: -8px; }
  .time-drop::before { content: ""; position: absolute; inset: -5px -2px; }  /* (the press stays 40 high) */
}
/* And narrower than any list should be. */
@container timelist (max-width: 215px) { .time-date { padding: 0 4px; font-size: 12px; } .time-to { margin: 0; } .time-dot { margin-right: 2px; } }
/* The calendar under a row (the days, zoomed out to months and to years): as wide as the row up to 336px. */
.time-cal { --band: color-mix(in srgb, var(--text) 8%, transparent); max-width: 336px; padding: 0 0 8px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.cal-title { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 999px; font-weight: 600; font-size: 16px; }
.cal-title svg, .cal-nav svg, .time-cal svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cal-title svg { color: var(--text-3); }
.cal-nav { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--text-2); }
.cal-nav:disabled { opacity: .25; cursor: default; }
.cal-dow, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow span { height: 24px; color: var(--text-3); font-size: 12px; text-align: center; }
.cal-days { grid-auto-rows: 40px; }
.cal-cell { display: grid; place-items: center; }
.cal-cell.in { background: var(--band); }
.cal-cell.from { background: linear-gradient(90deg, transparent 50%, var(--band) 50%); }
.cal-cell.to { background: linear-gradient(90deg, var(--band) 50%, transparent 50%); }
.day { width: 36px; height: 36px; border-radius: 50%; font-size: 15px; font-variant-numeric: tabular-nums; }
.day.today { box-shadow: inset 0 0 0 1px var(--line-2); }
.day.other { box-shadow: inset 0 0 0 1.5px var(--text-3); }
.day.sel, .cal-pick.sel { background: var(--text); color: var(--bg); font-weight: 600; box-shadow: none; }
.day:disabled, .cal-pick:disabled, .cal-chip:disabled { color: var(--text-3); opacity: .38; cursor: default; }
.cal-picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 4px 0 2px; }
.cal-pick { height: 44px; border-radius: 999px; background: var(--sunk); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cal-foot { display: flex; justify-content: space-between; gap: 8px; min-height: 32px; margin-top: 10px; }
.cal-chip { height: 32px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); font-size: 13.5px; white-space: nowrap; }

/* Lists */
/* You and them: how alike, what you both loved, where you are furthest apart. */
.link.share-picture { font-size: 13.5px; }
/* The Share sheet: the picture at its own shape, and under it what can be done with it. */
.share-body { justify-items: stretch; gap: 18px; }
/* Its room is the picture's shape (share.js: from the button pressed) before the picture comes:
   as tall as the screen allows, as wide as the sheet; the sheet does not grow when it comes. */
.share-view { position: relative; justify-self: center; width: min(100%, min(54dvh, 480px) * var(--wide, 1080) / var(--high, 1350)); }
.share-pic {
  display: block; width: 100%; height: auto;
  border-radius: 12px; background: var(--sunk); box-shadow: 0 0 0 1px var(--line);
  transition: opacity .28s ease;
}
/* Coming: the place is a quiet surface with a soft shimmer; the picture, hidden at once (never the
   last one), fades in when it has loaded. Failed, or for reduced motion: the surface, still. */
.share-view[data-loading] .share-pic { opacity: 0; transition: none; }
.share-view[data-loading]::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 12px; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--text) 9%, transparent) 50%, transparent 70%) 0 0 / 250% 100% no-repeat, var(--sunk);
  box-shadow: 0 0 0 1px var(--line);
  animation: share-shimmer 1.4s ease-in-out infinite;
}
.share-view[data-loading="failed"]::before { animation: none; background: var(--sunk); }
@keyframes share-shimmer { from { background-position: 150% 0, 0 0; } to { background-position: -50% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .share-view[data-loading]::before { animation: none; background: var(--sunk); }
  .share-pic { transition: none; }
}
.share-said {
  position: absolute; inset: auto 10px 10px; margin: 0; padding: 8px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); color: var(--text-2); font-size: 13px; text-align: center; overflow-wrap: anywhere;
}
.share-said:empty { display: none; }
.share-acts { display: flex; gap: 8px; }
.share-acts .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; }
/* On a phone three words do not fit side by side: Share (or Copy) across the sheet, the other
   two under it, half each. */
@media (max-width: 680px) {
  .share-acts { display: grid; grid-template-columns: 1fr 1fr; }
  .share-acts > [data-share-native], .share-acts > [data-share-copy] { grid-column: 1 / -1; }
}
/* An action's picture and word, together in the middle of its button. */
.act { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.act svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* A word that changes for a moment ("Copied") in the room of the longer: nothing moves. */
.swap { display: inline-grid; justify-items: center; }
.swap > span { grid-area: 1 / 1; }
.swap > span + span, [data-done] .swap > span:first-child { visibility: hidden; }
[data-done] .swap > span + span { visibility: visible; }
.alike-n { margin: 0; color: var(--text-2); font-size: 15px; }
.alike-n b { margin-right: 4px; color: var(--accent); font: 400 44px/1 var(--serif); vertical-align: -4px; }
.alike-h { margin: 30px 0 16px; color: var(--text-2); font: 500 14px var(--sans); }
.alike-apart { display: inline-flex; align-items: center; gap: 16px; max-width: 100%; }
.alike-apart .cover { flex: none; width: 64px; }
.alike-what { display: grid; gap: 6px; min-width: 0; }
.alike-name { font-size: 15px; font-weight: 550; }
.alike-grade { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 13px; }
.alike-grade > span:first-child { min-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 34px 38px; }
.list-card { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
/* The Lists tab: New list for the owner, then the lists. */
/* The owner's lists beside their favorites: a card holds its link and, for editing, the
   button that keeps it on the profile or off it. Those kept off, and those past the sixth,
   are out of sight until Edit is pressed. */
div.list-card { position: relative; }
.list-link { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lists-block:not(.editing) :is(.list-card.aside, .list-card.beyond, .list-tool) { display: none; }
/* Editing, as the favorites are: each list as it will stand, dashed round, dragged into its
   place; one kept off the profile after the others, faint, its eye struck through. */
.lists-block.editing .list-card { cursor: grab; touch-action: manipulation; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.lists-block.editing .list-stack { outline: 1.5px dashed var(--line-2); outline-offset: 4px; border-radius: 12px; }
.lists-block.editing .list-card:is(.aside, .beyond) .list-link { opacity: .4; filter: grayscale(1); }
.lists-block.editing .list-card:is(.aside, .beyond) .list-stack { outline-color: color-mix(in srgb, var(--text) 14%, transparent); }
@media (hover: hover) { .lists-block.editing .list-card:hover .list-name { text-decoration: none; } }
/* Things being moved about by hand (common.js): none of them is what the browser keeps still on
   the screen as the page changes (it would scroll the page as they swap places). */
.five.editing .five-row, .lists-block.editing .list-cards, .list-items.editing, .times-list { overflow-anchor: none; }
/* One held and taken to the screen's edge widens nothing: no scrollbar comes, and a phone does
   not take the page for a wider one (and scroll it). */
html:has(.held), html:has(.held) > body { overflow-x: clip; }
/* Picked up: lifted over the others (common.js), on the shadow a cover rises with. */
.list-cards > .list-card.held { cursor: grabbing; }
.list-cards > .list-card.held .list-stack .cover:not(.blank) { box-shadow: 0 2px 4px rgb(0 0 0 / .16), 0 18px 30px -12px rgb(0 0 0 / .5); }
.list-tool {
  position: absolute; top: 8px; right: 8px; z-index: 5; display: grid; place-items: center; width: 34px; height: 34px;
  padding: 0; border: 0; border-radius: 999px; background: rgb(12 10 8 / .78); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.list-tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.list-tool[aria-pressed="true"] .list-tool-on, .list-tool[aria-pressed="false"] .list-tool-off { display: none; }
.list-card.held .list-tool { display: none; }
.lists-block .log-error { text-align: left; }
.lists-tab { margin-top: 36px; }
/* Larger there than anywhere else (owner, 11-11): three to a row on a wide screen, two on a
   narrower one, where anywhere else as many stand as a card's least width lets. */
@media (min-width: 681px) { .lists-tab .list-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 38px; } }
@media (min-width: 1000px) { .lists-tab .list-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Beginning a list: a dashed outline where its covers would be (the covers there, unseen,
   give it their size), a plus in the middle. */
.list-begin { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.list-begin .list-stack { position: relative; }
.list-begin .list-stack .cover { visibility: hidden; }
.list-begin-box {
  position: absolute; inset: 0; display: grid; place-items: center;
  border: 1.5px dashed var(--line-2); border-radius: 8px; color: var(--text-3);
}
.list-begin-box svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
@media (hover: hover) { .list-begin:hover .list-begin-box { border-color: var(--text-3); color: var(--text-2); } }
/* A list made from the shelf, not kept yet: faint, with Keep in the accent. */
.list-offered .list-stack { opacity: .55; }
.list-offered .list-name { color: var(--text-2); }
.list-keep { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; }
@media (hover: hover) { .list-keep:hover { text-decoration: underline; text-underline-offset: 3px; } }
.list-stack { display: flex; width: 100%; margin-bottom: 10px; }
.list-stack .cover { flex: 0 0 34%; min-width: 0; margin-right: -12%; border: 2px solid var(--bg); }
/* Room on a list not filled yet: a dashed outline, as where a list begins (owner, 10-21). Its
   ground hides the one behind it; the same size as a cover. */
.list-stack .cover.blank { background: var(--bg); box-shadow: none; }
.list-stack .cover.blank::after { box-shadow: none; border: 1.5px dashed var(--line-2); }
.list-name { font-size: 14.5px; font-weight: 550; line-height: 1.3; }
@media (max-width: 680px) {
  .list-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
}
.list-stack .cover:nth-child(1) { z-index: 4; } .list-stack .cover:nth-child(2) { z-index: 3; }
.list-stack .cover:nth-child(3) { z-index: 2; } .list-stack .cover:nth-child(4) { z-index: 1; }
@media (hover: hover) { .list-card:hover .list-name { text-decoration: underline; text-underline-offset: 3px; } }
.list-head .list-about { max-width: 64ch; margin-top: 14px; color: var(--text-2); font-size: 16px; white-space: pre-line; }
.list-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 18px 0 30px; color: var(--text-3); font-size: 14px; }
.list-meta [data-list-edit][aria-pressed="true"] .five-off, .list-meta [data-list-edit][aria-pressed="false"] .five-on { visibility: hidden; }
.list-meta [data-list-edit][aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.list-meta:not(:has([data-list-edit][aria-pressed="true"])) .while-editing { display: none; }
/* Its order at the line's end, as a shelf's is at the end of its filters. */
.list-sort { display: flex; margin-left: auto; }  /* (no line of text around it: level with Edit) */
/* On a phone the list's words fill their line and Edit and the order have the next to
   themselves: Details, shown while editing, has room there beside Done, and nothing under it moves. */
@media (max-width: 680px) { .list-meta:has([data-list-edit], .list-sort) > span:first-child { flex-basis: 100%; } }
.list-items { margin: 0; padding: 0; list-style: none; }
/* In a shelf's order: the shelf's headings, each across the grid and spaced as on the shelf
   (44px over it, 20px under: the grid's own gap counted in). */
.list-sec { grid-column: 1 / -1; }
.list-items .list-sec .shelf-sec { margin: 10px 0 -14px; }
@media (max-width: 680px) { .list-items .list-sec .shelf-sec { margin: 22px 0 -2px; } }
.list-items .list-sec:first-child .shelf-sec { margin-top: 0; }
/* Adding from the shelf: a card where the next cover would be, a dashed outline and a plus. */
.list-add { display: block; width: 100%; padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; text-align: left; cursor: pointer; }
.list-add-box { position: relative; display: block; margin-bottom: 11px; }
.list-add-box .cover { visibility: hidden; }
.list-add-plus {
  position: absolute; inset: 0; display: grid; place-items: center;
  border: 1.5px dashed var(--line-2); border-radius: 10px; color: var(--text-3);
}
.list-add-plus svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
@media (hover: hover) { .list-add:hover .list-add-plus { border-color: var(--text-3); color: var(--text-2); } }
@media (hover: hover) { .list-add:hover .card-name { color: var(--text); } }
/* A title put on the list from the sheet: ticked, the grade making way. */
.choices button[aria-pressed="true"] { background: var(--sunk); }
.choices button[aria-pressed="true"] .stars { display: none; }
.choices button[aria-pressed="true"]::after {
  content: ""; width: 18px; height: 18px; margin-right: 4px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.8l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.8l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.list-items > li { position: relative; }
.list-items.ranked > li { padding-left: 0; }
.list-n {
  position: absolute; z-index: 2; top: -12px; left: -10px;
  color: var(--accent); font: italic 400 34px/1 var(--serif); -webkit-text-stroke: 6px var(--bg); paint-order: stroke fill;
}
/* The ✕ that takes something away in an edit mode (a favorite, a list's title, one's picture):
   one drawing, white, on the thing's corner. Pressed once it turns red and asks to be pressed
   again (site.js); nothing else about it changes. */
.remove-mark { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: #f2efe9; color: #1b1916; box-shadow: 0 2px 8px rgb(0 0 0 / .45); cursor: pointer; transition: background .15s, color .15s; }
.remove-mark svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.remove-mark.asking { background: #c2361f; color: #fff; }
.list-remove { display: none; position: absolute; z-index: 3; top: -10px; right: -10px; }
.list-items.editing .list-remove { display: grid; }
/* Editing, a cover is something to move or take off: "add to your shelf" is not offered
   beside the ✕ in the same corner. */
.list-items.editing .card-quick { display: none; }
/* Both sit on a cover's corners and rise with it under the pointer, as what is on the cover
   does; the number is nothing to press, and what is under it gets the pointer. */
.list-n, .list-remove { transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
.list-n { pointer-events: none; }
@media (hover: hover) { .list-items > li:has(.card-at:hover) > :is(.list-n, .list-remove) { transform: translateY(-4px); } }
/* A phone's covers stand closer: a ranking's number and the ✕ of the cover before it keep apart. */
@media (max-width: 680px) { .list-n { top: -9px; left: -4px; font-size: 24px; -webkit-text-stroke-width: 5px; } .list-remove { right: -4px; } }
/* Editing, on a phone: the ✕ inside its cover's corner and the dashed frames inside the cover (the stack), so that none stands outside
   the page's side gutter and the ✕ never reaches the next cover's number (11-17). */
@media (max-width: 680px) {
  .list-remove { top: 4px; right: 4px; }
  .lists-block.editing .list-stack { outline-offset: -1.5px; }
}
/* Editing, in the list's own order: a finger still scrolls the page; one held a moment picks
   a title up (common.js), and holding it opens no menu of the phone's own. */
.list-items[data-by-hand].editing > li { cursor: grab; touch-action: manipulation; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.list-items.editing .cover { outline: 1.5px dashed var(--line-2); outline-offset: 4px; }
@media (max-width: 680px) { .list-items.editing .cover { outline-offset: -1.5px; } }  /* (inside the cover: the first column's frame stays inside the gutter) */
.list-items > li.held { cursor: grabbing; }
.list-items > li.held .cover { box-shadow: 0 2px 4px rgb(0 0 0 / .16), 0 18px 30px -12px rgb(0 0 0 / .5); }
/* ---- a tier list or a grid (owner, 11-29; app/templates/_listboard.html, lists.js) ----
   Rows of covers, each with its name in its colour (--c on its ground, --ct the ink on it); what
   is not in a row waits in the tray under them. A grid is squares of covers, some empty. A cover
   keeps its 2:3 shape in all of them. Its maker moves things while the list is edited (.editing). */
.tl-bar { display: none; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -12px 0 18px; }
.list-editing .tl-bar { display: flex; }
.tl-bar .btn, .list-share { gap: 7px; }
.tl-bar svg, .list-share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tl-wrap { --lab: 56px; }
@media (min-width: 760px) { .tl-wrap { --lab: 84px; } }
.tl-cov { position: relative; display: block; min-width: 0; color: inherit; text-decoration: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.tl-cov .cover { border-radius: 6px; box-shadow: none; transition: transform .12s, box-shadow .12s; }
.tl-cov .cover::after { box-shadow: inset 0 0 0 1px rgb(128 120 108 / .28); }
.tl-cov .cover img { pointer-events: none; -webkit-user-drag: none; }
.tl-wrap.editing .tl-cov { cursor: grab; }
.tl-cov.sel .cover { outline: 2px solid var(--accent); outline-offset: 2px; transform: scale(1.04); }
.tl-cov.lifted { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; overflow: hidden; }
.tl-ph { aspect-ratio: 2 / 3; min-width: 0; border: 1.5px dashed var(--accent); border-radius: 6px; }
.tl-ghost { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; border-radius: 6px; overflow: hidden; box-shadow: 0 14px 30px rgb(0 0 0 / .4); will-change: transform; }
.tl-ghost .cover { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 6px; box-shadow: none; }
body.tl-dragging, body.tl-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.tl-rows { display: grid; gap: 6px; }
.tl-row { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.tl-lab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 3px; background: var(--c); color: var(--ct); min-height: 100%; min-width: 0; }
.tl-lab-in { display: block; max-width: 100%; min-width: 20px; padding: 2px; border-radius: 5px; text-align: center; font: 400 30px/1.05 var(--serif); outline: none; word-break: break-word; overflow-wrap: anywhere; }
.tl-lab-in[data-len="s"] { font-size: 22px; }
.tl-lab-in[data-len="m"] { font: 600 16px/1.05 var(--sans); }
.tl-lab-in[data-len="long"] { font: 600 13px/1.05 var(--sans); }
.tl-lab-in[contenteditable] { cursor: text; }
.tl-lab-in:focus { background: rgb(255 255 255 / .38); box-shadow: 0 0 0 2px var(--ct); }
.tl-lab-in:empty::before { content: "–"; opacity: .5; }
@media (min-width: 760px) {
  .tl-lab-in { font-size: 42px; }
  .tl-lab-in[data-len="s"] { font-size: 30px; }
  .tl-lab-in[data-len="m"] { font-size: 20px; }
  .tl-lab-in[data-len="long"] { font-size: 15px; }
}
.tl-more { display: none; place-items: center; width: 30px; height: 24px; padding: 0; border: 0; border-radius: 12px; background: rgb(0 0 0 / .13); color: var(--ct); cursor: pointer; }
.tl-more[aria-expanded="true"] { background: var(--ct); color: var(--c); }
.tl-more svg { width: 14px; height: 14px; fill: currentColor; }
.tl-wrap.editing .tl-more { display: grid; }
.tl-zone { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; align-content: start; min-width: 0; min-height: 103px; padding: 8px; }
@media (min-width: 760px) { .tl-zone { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; min-height: 138px; padding: 10px; } }
.tl-zone.hot { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.tl-slot { display: grid; place-items: center; aspect-ratio: 2 / 3; padding: 0; border: 1.5px dashed var(--accent); border-radius: 6px; background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent); cursor: pointer; }
.tl-slot svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
body.tl-dragging .tl-slot { display: none; }
.tl-panel { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 10px 12px; border-top: 1px solid var(--line); background: var(--sunk); }
.tl-panel[hidden] { display: none; }
.tl-sw { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-sw button { position: relative; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--c); cursor: pointer; }
.tl-sw button[aria-pressed="true"]::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--text); }
.tl-pa { display: flex; gap: 6px; margin-left: auto; }
.tl-pa button { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 550; cursor: pointer; }
.tl-pa button:disabled { opacity: .4; cursor: default; }
.tl-pa .rm { color: var(--accent); }
.tl-pa svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tl-addrow { display: none; align-items: center; gap: 7px; height: 36px; margin-top: 6px; padding: 0 14px; border: 1.5px dashed var(--line-2); border-radius: 999px; background: none; color: var(--text-2); font-size: 13.5px; font-weight: 550; cursor: pointer; }
.tl-addrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tl-addrow:disabled { opacity: .45; cursor: default; }
.tl-wrap.editing .tl-addrow { display: inline-flex; }
@media (hover: hover) { .tl-addrow:not(:disabled):hover { color: var(--text); border-color: var(--text-3); } }
.tl-tray { margin-top: 22px; border-radius: 12px; background: var(--sunk); }
.tl-tray h2 { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 12px 14px 0; font: 400 24px/1 var(--serif); }
.tl-tray h2 span { font: 500 13px/1 var(--sans); color: var(--text-3); }
/* A grid: its size and whether its squares name their titles, then the squares. */
.tg { display: grid; justify-items: center; gap: 16px; }
.tg-tools { display: none; flex-wrap: wrap; align-items: center; gap: 10px 16px; width: 100%; max-width: calc(var(--n) * 134px + (var(--n) - 1) * 8px + 32px); }
.tl-wrap.editing .tg-tools { display: flex; }
.tg-size { flex: 0 1 230px; }
.tg-size button:disabled { opacity: .4; cursor: default; }
.tg-sw { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; padding: 0; border: 0; background: none; color: var(--text); font-size: 13.5px; font-weight: 550; cursor: pointer; }
.tg-sw i { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--seg-on); transition: background .15s; }
.tg-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .15s; }
.tg-sw[aria-checked="true"] i { background: var(--accent); }
.tg-sw[aria-checked="true"] i::after { transform: translateX(16px); background: #fff; }
.tg-board { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; width: 100%; max-width: calc(var(--n) * 134px + (var(--n) - 1) * 8px + 32px); padding: 16px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 420px) { .tg-board { padding: 10px; gap: 6px; } }
.tg-cell { position: relative; min-width: 0; border-radius: 6px; }
.tg-cell.over .cover, .tg-cell.over .tg-empty { outline: 2px solid var(--accent); outline-offset: 2px; }
.tg-empty { display: grid; place-items: center; aspect-ratio: 2 / 3; width: 100%; padding: 0; border: 1.5px dashed var(--line-2); border-radius: 6px; background: none; color: var(--text-3); cursor: pointer; }
span.tg-empty { cursor: default; }
.tg-empty svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; opacity: 0; }
.tl-wrap.editing .tg-empty svg { opacity: 1; }
.tl-wrap:not(.editing) button.tg-empty { pointer-events: none; }
@media (hover: hover) { .tl-wrap.editing button.tg-empty:hover { border-color: var(--accent); color: var(--accent); } }
.tg-x { display: none; position: absolute; top: -7px; right: -7px; z-index: 3; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: var(--text); color: var(--bg); box-shadow: 0 1px 4px rgb(0 0 0 / .35); cursor: pointer; }
.tg-x::before { content: ""; position: absolute; inset: -8px; }
.tg-x svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.tl-wrap.editing .tg-x { display: grid; }
.tg-name { margin-top: 5px; min-height: 2.5em; color: var(--text-2); font-size: 11.5px; line-height: 1.25; text-align: center; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (min-width: 760px) { .tg-name { font-size: 13px; } }
.tg[data-names="false"] .tg-name { display: none; }
/* What is picked up to be put somewhere (a tap on a cover): its name, and what can be done with it. */
.tl-selbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
@media (max-width: 680px) { .tl-selbar { bottom: calc(62px + var(--get-app-room, 0px)); } }
.tl-selbar[hidden] { display: none; }
.tl-sel { pointer-events: auto; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px; padding: 8px 8px 8px 10px; border-radius: 16px; background: var(--surface); box-shadow: 0 10px 30px rgb(0 0 0 / .25), 0 0 0 1px var(--line-2); }
.tl-sel-cover { flex: none; width: 30px; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; }
.tl-sel-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tl-sel-name { flex: 1 1 0; min-width: 0; line-height: 1.25; }
.tl-sel-name b { display: block; overflow: hidden; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tl-sel-name span { display: block; overflow: hidden; color: var(--text-3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tl-sel button { flex: none; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--text); font-size: 13px; font-weight: 550; cursor: pointer; }
.tl-sel button.rm { color: var(--accent); }
.tl-sel button.done { display: grid; place-items: center; width: 34px; padding: 0; border: 0; color: var(--text-2); }
.tl-sel button.done svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* The sheet that adds titles to one: quick filters over its search. */
.tl-chips { display: flex; gap: 6px; margin: -4px -22px 0; padding: 0 22px 4px; overflow-x: auto; scrollbar-width: none; }
.tl-chips::-webkit-scrollbar { display: none; }
.tl-chips button { flex: none; height: 32px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--text-2); font-size: 13px; font-weight: 550; white-space: nowrap; cursor: pointer; }
.tl-chips button[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--bg); }
.tl-foot .btn:disabled { opacity: .45; cursor: default; }
.tl-wrap[data-saving] { cursor: progress; }
/* A character (owner, 11-29: a list of characters): framed as the profile frames them (`.pb-fp`): the picture WHOLE on a tile of a cover's shape, never cut, standing
   on the tile's foot, what its own shape leaves of the tile the picture itself out of focus (`--art`, the same file); a drawing and an actor's photo are alike whole tiles. */
.cover.char { isolation: isolate; background: color-mix(in srgb, var(--text) 9%, var(--surface, var(--bg))); }
.cover.char::before { content: ""; position: absolute; z-index: -1; inset: -12%; background: var(--art, none) center / cover no-repeat; filter: blur(8px) saturate(1.1); }
.cover.char img { object-fit: contain; object-position: 50% 100%; }
.tl-sel-cover .cover { border-radius: 4px; box-shadow: none; }
/* The sheet that adds characters: a title found, then its characters as pictures to press. */
.tc { display: grid; gap: 0; margin-top: 10px; }
.tc-say { margin: 12px 0; color: var(--text-3); font-size: 14px; }
.tc-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 6px 0; border: 0; border-top: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tc-row:first-child { border-top: 0; }
.tc-cov { display: block; flex: none; width: 36px; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 5px; background: var(--sunk); }
.tc-cov img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tc-words { flex: 1; min-width: 0; }
.tc-words b, .tc-back b { display: block; font-size: 15px; font-weight: 500; line-height: 1.25; }
.tc-words small { display: block; color: var(--text-3); font-size: 12.5px; }
.tc-back { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tc-back button { display: grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--sunk); color: var(--text); cursor: pointer; }
.tc-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 14px 9px; }
.tc-ct { position: relative; display: block; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tc-ct .cover { border-radius: 7px; }
.tc-ct b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: 6px; overflow: hidden; color: var(--text-2); font-size: 12px; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.tc-tick { position: absolute; top: 5px; right: 5px; display: none; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; }
.tc-tick svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tc-ct[aria-pressed="true"] .cover { outline: 2px solid var(--accent); outline-offset: 2px; }
.tc-ct[aria-pressed="true"] .tc-tick { display: grid; }
.tc-ct:disabled { opacity: .5; cursor: default; }
main .list-hint { display: block; visibility: hidden; }  /* (keeps its room: the edit mode moves nothing) */
.list-editing .list-hint { visibility: visible; }
.door textarea { display: block; padding: 13px 16px; color: var(--text); font: inherit; font-size: 16px; line-height: 1.5; resize: none; max-height: 40vh; }
.check, .door .check { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
/* One that cannot be ticked yet (it says under it what it waits for). */
.check:has(input:disabled) { color: var(--text-3); cursor: default; }
/* A sheet's last line: what deletes at its left, a button as Save is and level with it (owner,
   11-10); pressed, what goes and the red button come under it. */
.sheet-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; width: 100%; }
.list-picking { width: 100%; }
.list-picks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.list-picks:not(:has(li)) { display: none; }
/* The box and its button one height, side by side on one middle. */
.list-new { display: flex; align-items: center; gap: 8px; width: 100%; }
.list-new input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; outline: none; }

/* Following: who follows them and whom they follow, at the right end of the handle line, in its type; "Follows you" and the private mark before them. */
.who-counts { display: inline-flex; align-items: baseline; gap: 0 6px; color: var(--text-3); font-size: 14px; white-space: nowrap; }
.who-tail { position: relative; display: flex; align-items: baseline; }
.who-nums { white-space: nowrap; }
.who-counts a { color: inherit; text-decoration: none; }
@media (hover: hover) { .who-counts a:hover { color: var(--text); } }
.who-counts b { color: var(--text); font-weight: 600; }
.who-asking { margin-left: 8px; color: var(--accent) !important; font-weight: 550; }
.who-private { display: inline-flex; align-items: baseline; gap: 6px; margin-right: 8px; color: var(--text-3); }
.who-follows-you { margin-right: 8px; padding: 2px 8px; border-radius: 6px; background: var(--sunk); color: var(--text-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; }  /* (owner, 11-13) */
/* A phone: "Follows you" stands on a line of its own where the line does not hold all of it (never a sideways scroll). */
@media (max-width: 430px) { .who-counts { flex-wrap: wrap; row-gap: 4px; } .who-nums { white-space: normal; } .who-nums a { white-space: nowrap; } }
.who-private svg { align-self: center; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
/* Follow, Following and Requested are one width (the widest word's): pressing it moves nothing beside it. (The followers' "s" no longer keeps
   its room when there is one follower: unseen, it stood between "1 follower" and the dot, a gap wider before the dot than after it on every such
   profile; owner's screenshot, 11-21. The counts keep the end they stand at; the other end is a letter longer or shorter with the word.) */
.btn.follow-btn { min-width: 100px; }
.who-counts b { font-variant-numeric: tabular-nums; }
.follow-on { display: inline-grid; place-items: center; }
.follow-on > span { grid-area: 1 / 1; }
.follow-on > span + span { visibility: hidden; }
@media (hover: hover) { .follow-on:hover > span:first-child { visibility: hidden; } }
@media (hover: hover) { .follow-on:hover > span + span { visibility: visible; } }
@media (hover: hover) { .follow-on:hover > span + span { display: inline; } }
.locked { display: grid; justify-items: center; gap: 10px; margin-top: 72px; padding: 56px 24px; border-top: 1px solid var(--line); text-align: center; color: var(--text-2); }
.locked > svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; color: var(--text-3); }
.locked p { max-width: 44ch; }
.locked a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.followed-here { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; }
.followed-here li { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; }
.people { display: grid; margin: 0; padding: 0; list-style: none; }
.people li form { display: contents; }
.person { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; }
.person span { display: grid; min-width: 0; }
.person b { font-weight: 600; }
.person small { color: var(--text-3); font-size: 13px; }
.menu-count { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; }
.me.asked { position: relative; }
.me.asked::after { content: ""; position: absolute; top: 0; left: 26px; width: 9px; height: 9px; border: 2px solid var(--bg); border-radius: 50%; background: var(--accent); }
/* A review with spoilers, to a reader: a line saying so, opened on asking. */
.spoiler { margin-top: 10px; }
.spoiler summary { display: inline-block; color: var(--text-3); font-size: 14px; cursor: pointer; list-style: none; }
.spoiler summary::-webkit-details-marker { display: none; }
.spoiler summary u { color: var(--text-2); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
@media (hover: hover) { .spoiler summary:hover u { color: var(--text); } }
.spoiler:not([open]) .spoiler-open, .spoiler[open] .spoiler-shut { display: none; }
.spoiler .rev-text { margin-top: 8px; }
/* A hidden part: a dark bar the width of its words, until pressed. Seen (its writer, someone
   past it, or pressed), it stays lightly marked, so what was hidden still shows. */
.spoil, .spoil.lines > span { border-radius: 4px; padding: 0 2px; margin: 0 -2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; background: var(--spoil); transition: background .15s, color .15s; }
.spoil:not(.seen) { --spoil: var(--text-2); color: transparent; cursor: pointer; user-select: none; }
@media (hover: hover) { .spoil:not(.seen):hover { --spoil: var(--text-3); } }
.spoil.seen { --spoil: color-mix(in srgb, var(--accent) 14%, transparent); }
/* Over several lines, each line with words is drawn (spoils()): the empty line between two
   paragraphs is no sliver of colour. */
.spoil.lines { padding: 0; margin: 0; background: none; }
.rev-flag { color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.rev-part { padding: 2px 9px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); font: 500 12px/1.5 var(--sans); }
@media (hover: hover) { a.rev-part:hover { color: var(--text); border-color: var(--text-3); } }
/* Whole, never broken across lines (owner, 10-21): beside the name where it fits, else on the
   next line from its left edge (the room before it is the name's, which a line end drops); one
   longer than the column wraps inside its own outline. */
.rev-title .rev-part { display: inline-block; max-width: 100%; margin-left: 0; vertical-align: 4px; }
.rev-title a:has(+ .rev-part) { margin-right: 8px; }
.write-delete { color: var(--text-3); font-size: 13.5px; }
/* The writer's word that a review gives things away: first in the row, the rest at its end. */
.write-spoils { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-right: auto; }
.write-spoils .link { font-size: 13.5px; }
/* What the review is of, above the box: the whole show, a season, an episode of it. */
.write-part { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.write-part select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
.write-spoilers { color: var(--text-2); font-size: 13.5px; }
.write-spoilers input { width: 16px; height: 16px; }
/* (A door's fields are what is typed into: a tick is not one, nor one choice of several, which
   may be unseen under a chip and would lie a field wide past the edge of what holds it.) */
.write textarea, .door input:not([type=checkbox], [type=radio]), .door textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); outline: none;
}
/* Five lines at the least; it grows with the review (common.js grow), and scrolls past most of a screen. */
.write textarea { display: block; min-height: 152px; max-height: 60vh; padding: 14px 16px; font-size: 16px; line-height: 1.55; resize: none; }
/* The ring fades in and goes at once: a box hidden as it is left (saved, posted) would
   otherwise go mid-fade, and Chrome can leave a side of the ring drawn on the page. Every
   field's ring is drawn inside its line, never past it: a ring past the edge of the column
   could be left behind there as a thin line when its box went (owner, 10-21, beside a
   review), and the field's outer edge stays where it was when it is pressed. */
.write textarea:focus, .door input:not([type=checkbox], [type=radio]):focus, .door textarea:focus, .list-new input:focus {
  border-color: var(--text-3); box-shadow: inset 0 0 0 1px var(--text-3); transition: border-color .15s, box-shadow .15s;
}
.write-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; margin-top: 12px; }
/* What is done with the words (delete, cancel, save) goes to the next line together, on a
   narrow screen: never Delete on one line and Save on another. */
.write-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; margin-left: auto; }
.write-saves { display: flex; align-items: center; gap: 14px; }  /* Post as review and Save notes: never one alone on a line */
.saved { color: var(--text-2); font-size: 13.5px; }
.saved.failed { color: var(--accent); }

/* ---- reviews ---- */

.revs { display: grid; }
.revs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.rev {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; align-items: start;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.rev[id] { scroll-margin-top: 68px; }  /* (flush with the sticky bar's edge so the review's own 22px padding frames it without a stray top line) */
.rev.plain { grid-template-columns: minmax(0, 1fr); }
.rev .cover { border-radius: 7px; }
.rev-title { margin-bottom: 7px; font: 400 24px/1.12 var(--serif); }
.rev-title span { margin-left: 4px; color: var(--text-3); font: 400 14px var(--sans); }
.rev-by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--text-3); font-size: 13px; }
.who { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: 14px; font-weight: 550; }
.rev-text { max-width: 68ch; margin-top: 10px; font-size: 15.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
/* A review cut short to five lines, "Read more" over the end of the last (as a description's). */
.clamp-box { position: relative; max-width: 68ch; }
.rev-text.clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.clamp-more {
  position: absolute; right: 0; bottom: 0; padding-left: 4.5em; font-size: 15.5px; line-height: 1.6;
  background: linear-gradient(to right, transparent, var(--bg) 3.5em); color: var(--text);
}

/* ---- a person's page ---- */

/* (The head, the top and the rows under it: the album, last in this file.) */
.tag.tag-first { border-color: var(--accent); }
.about-hint { color: var(--text-3); font-size: 13px; }
/* How grades fall, half a star to five (_macros.html `spread`): a profile's, and a title's
   page's after its count. */
.spread { position: relative; display: block; flex: none; width: 132px; }
.spread-bars { display: flex; align-items: flex-end; gap: 3px; height: 44px; }
.spread-bars i { flex: 1; height: max(2px, calc(var(--h) * 1%)); border-radius: 2px; background: var(--text-3); }
.spread-ends { display: flex; justify-content: space-between; margin-top: 5px; color: var(--text-3); font-size: 11.5px; }
/* The bar being told of (under the pointer, or pressed): its colour only, and over the bars
   a small note of which grade it is and how many gave it (site.js sets where it stands). */
.spread-bars i.said { background: var(--text); }
.spread-said {
  position: absolute; z-index: 15; left: 0; bottom: calc(100% + 8px);
  display: flex; align-items: center; gap: 7px; padding: 6px 10px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface);
  box-shadow: 0 10px 26px -12px rgb(0 0 0 / .5);
  color: var(--text-2); font-size: 12.5px; font-weight: 500; line-height: 16px; white-space: nowrap;
  pointer-events: none;
}
.spread-said .stars { --s: 12px; vertical-align: 0; }

.five { margin-top: 36px; }
.five-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 22px; }
/* A genre's list is deleted while it is edited: the button only then. */
.five:not(.editing) .five-drop { visibility: hidden; }  /* (there, unseen, at rest, as the eye after it is: in a row short of room the menu is as wide editing as not) */
.five-head .h2 { margin: 0; }
.five-acts { display: flex; align-items: center; gap: 10px; }
.five-pick select {
  height: 34px; padding: 0 32px 0 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.500-3.500' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 12px no-repeat;
  color: var(--text); font-size: 14px; font-weight: 500; appearance: none; cursor: pointer; outline: none;
}
/* The menu is as wide as its widest name, whichever list is chosen: the names are laid over one another, unseen,
   and the menu fills them (nothing beside it moves when another list is chosen). */
.five-head .five-pick { display: inline-grid; }
.five-head .five-pick > * { grid-area: 1 / 1; }
.five-head .five-pick select { width: 100%; }
.pick-ghost { display: grid; height: 0; overflow: hidden; visibility: hidden; padding: 0 33px 0 15px; font-size: 14px; font-weight: 500; }
.pick-ghost > span { grid-area: 1 / 1; white-space: nowrap; }
.five-pick select:focus-visible { border-color: var(--text-3); box-shadow: inset 0 0 0 1px var(--text-3); }
/* Its name stays on one line, cut at the menu's own edge where the menu has less room than the name (a long season's name went
   onto two lines and out of the menu on the owner's phone, 11-19). */
.pick-found .five-pick { min-width: 0; max-width: 100%; }
.five-pick select { max-width: 100%; white-space: nowrap; overflow: clip; overflow-clip-margin: content-box; }
/* Five equal covers across the whole width (on a phone, three over two: below). */
.five-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 26px; margin: 0; padding: 0; list-style: none; }
.five-row li { min-width: 0; }
.five-item { display: block; -webkit-tap-highlight-color: transparent; }  /* (pressed on a phone, nothing lights its square: the spotlight opens) */
@media (hover: hover) { .five-item:hover .cover { transform: translateY(-4px); box-shadow: 0 2px 4px rgb(0 0 0 / .16), 0 18px 30px -12px rgb(0 0 0 / .5); } }
.five-cap { display: flex; align-items: flex-start; gap: 12px; min-height: 62px; margin-top: 14px; }
/* A ranking is drawn as five equals are (owner, 11-13: "the ranked top 5 should look more like the
   unranked top 5"): only its numbers say it is one, small on each cover's corner as a ranked
   list's are, number one's in the accent; ranked or not, nothing else changes. */
.five-n {
  position: absolute; z-index: 2; top: -12px; left: -10px; pointer-events: none;
  color: var(--text); font: italic 400 34px/1 var(--serif); -webkit-text-stroke: 6px var(--bg); paint-order: stroke fill;  /* (read over the page and the cover alike) */
  transition: transform .2s cubic-bezier(.2, .7, .2, 1);
}
.five-row li:first-child .five-n { color: var(--accent); }
@media (hover: hover) { .five-row li:has(.five-item:hover) .five-n { transform: translateY(-4px); } }
/* Whatever list is chosen, a caption takes the room it is kept (62px): a name of two lines at most,
   the kind and year one. */
.five-cap > span:last-child { min-width: 0; }
.five-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 15px; font-weight: 550; line-height: 1.3; }
.five-kind { display: block; margin-top: 2px; color: var(--text-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.five-empty {
  display: grid; place-items: center; aspect-ratio: 2 / 3;
  border: 1.5px dashed var(--line-2); border-radius: 10px;
  color: var(--text-3); font: 400 44px/1 var(--serif);
}
@media (hover: hover) { .five-empty:hover { border-color: var(--text-3); color: var(--text-2); } }
/* The room a cover's caption takes under it: its margin and least height. */
.five-slot { padding-bottom: 76px; }
/* A place a list leaves unfilled is there, unseen, so that the area is a full list's whichever is chosen:
   seen only as the owner's "+" while editing. */
.five:not(.editing) .five-empty { visibility: hidden; }
.five-hint { margin-top: 18px; color: var(--text-3); font-size: 13.5px; }
.five-hint:empty { display: none; }  /* (no room kept for nothing said: the favorites end where a visitor's do) */
/* Not a ranking: five equals, no numbers. */
.five.plain .five-n { display: none; }
/* A ranking on a desk: number one a bit larger (owner, 11-14: "the number one a bit bigger"),
   1.4 times as wide as each of the four beside it, the row still the whole width, their feet
   level (the four lowered by the difference in height: a cover is 2 : 3). Five equals stay
   equal; a phone keeps three over two. */
@media (min-width: 681px) {
  .five:not(.nine) .five-row { --gap: 26px; container-type: inline-size; }
  .five:not(.nine, .plain) .five-row { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); }
  /* Five equals stand as tall as a ranking does (the first of it 1.4 : 1 of the others): choosing a
     ranked list or another moves nothing under them. */
  .five.plain:not(.nine) .five-row > li { margin-bottom: calc((100cqw - 4 * var(--gap)) * (1.4 / 5.4 - .2) * 1.5); }
  .five:not(.nine, .plain) .five-row > li + li { margin-top: calc((100cqw - 4 * var(--gap)) / 5.4 * .4 * 1.5); }
}
/* Five on a phone in two rows, three over two in the middle (owner, 11-13:
   five across a phone were too small): each cover as large as a 3×3's. */
@media (max-width: 680px) {
  .five:not(.nine) .five-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 10px; max-width: 560px; }
  .five:not(.nine) .five-row > li { grid-column: span 2; }
  .five:not(.nine) .five-row > li:nth-child(4) { grid-column: 2 / span 2; }
}
/* Nine, as a 3×3: covers only, close together in three columns (their names on hover). */
.five.nine .five-row { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 10px; max-width: 560px; }
.five.nine .five-cap { display: none; }
.five.nine .five-slot { padding-bottom: 0; }
.five-shape { display: inline-flex; gap: 16px; }
/* Share (and a genre's Delete list): their pictures and words; on a phone, where the line is
   short, the pictures. */
/* The list's menu and Share: two pills of one height, 10px apart (owner, 11-15: the menu its own pill, Share beside it). */
.five-head { --fg: 16px; }
.five-head > .five-pick:has(+ .five-acts > .five-share:first-child) select { height: 34px; }
.five-head > .five-pick + .five-acts:has(> .five-share:first-child) { margin-left: calc(10px - var(--fg)); }
.five-head > .five-pick + .five-acts > .five-share:first-child { height: 34px; }
.five-head .btn { gap: 7px; }
.five-head .btn svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Share and a genre's Delete: pictures alone, round, at every width (their words are their aria-label and title). Asking to be pressed
   again, Delete goes red and, where there is room at its right (the eye unseen then), says so in the room it grows into: nothing beside
   it moves (its box in the row stays its 34px; app.css below, "the room"). `.tight` (profile.js): a long list's name leaves no room for the word. */
.five-head :is(.five-share, .five-drop) { flex: none; width: 34px; height: 34px; padding: 0; justify-content: center; }
.five-head .btn svg { margin-left: 0; }
.five-share:not(button) { visibility: hidden; }  /* (a list with nothing to picture keeps Share's place) */
/* (Asking, from 1120px, where there is room at its right (49px under it at 1100, 90px from 1120, 113px at 1280 and 1440, beside a 3×3): its
   word, in the room it grows into; its box in the row stays 34px. Narrower it stays its picture, red.) */
@media (min-width: 1120px) {
  .five-head .five-drop.asking:not(.tight) { position: relative; z-index: 2; width: auto; margin-right: -63px; padding: 0 12px 0 10px; gap: 7px; }
  .five-head .five-drop.asking:not(.tight)::after { content: "Confirm"; }
    /* (Under a 3×3 it stands before Share, the eye at its left: it grows to the left, over the eye.) */
  .top-nine .five-head .five-drop.asking:not(.tight) { margin-right: 0; margin-left: -63px; }
}
/* Editing: Five | 3×3 and Ranked, in the favorites' row at its right end (owner, 11-19); where the row cannot hold them they stand on a line
   of their own under it. Unseen at rest, in the room they take: entering the edit mode moves nothing. */
.five-edit-line { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px 22px; margin-left: auto; visibility: hidden; }
.five.editing .five-edit-line { visibility: visible; }
/* (A 3×3's line stands on a row of its own under 1100px; a band's stays at the heading row's end, as from 1100: where it does not fit, a phone, it lies in the room under the covers.) */
@media (max-width: 1099px) { .top-nine .five-edit-line { flex: 1 0 100%; margin-left: 0; } }
.five-edit-line .check { gap: 8px; font-size: 13.5px; font-weight: 550; }
.five-edit-line .check input { width: 16px; height: 16px; }

.taste-edit { justify-items: stretch; }
.taste-edit fieldset { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; border: 0; }
.taste-edit legend { margin-bottom: 10px; padding: 0; color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
/* The choice itself is unseen, and stays within its chip wherever the chip stands. */
.pick { position: relative; }
.pick input { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; }
.pick span {
  display: inline-flex; align-items: center; height: 32px; padding: 0 13px;
  border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); font-size: 13.5px; font-weight: 500; cursor: pointer;
}
@media (hover: hover) { .pick span:hover { border-color: var(--text-3); color: var(--text); } }
.pick input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Their number one: picked, and ringed in the accent (as on their profile). */
.pick.first input:checked + span { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.kind-off { display: grid; justify-items: start; gap: 12px; color: var(--text-2); font-size: 14px; }
/* The bell, and the new on it. */
.bell { position: relative; }
.bell svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.bell-count {
  position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: 700 10.5px/17px var(--sans); text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.notices { display: grid; gap: 2px; max-width: 720px; margin: 8px 0 0; padding: 0; list-style: none; }
.notice { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 12px; padding: 12px 14px; border-radius: 14px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
@media (hover: hover) { .notice:hover { background: var(--sunk); } }
/* A line that is a button (it puts its reader on another shelf of theirs on the way): as the others. */
button.notice { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; }
.notice b { color: var(--text); font-weight: 600; }
.notice i { color: var(--text); font-style: normal; font-weight: 550; }
.notice-said { display: block; margin-top: 2px; color: var(--text-3); overflow-wrap: anywhere; }
/* Something that came out: its cover, the size of a face, where the person would be. */
.notice-cover { width: 22px; aspect-ratio: 2 / 3; margin-top: -4px; border-radius: 3px; object-fit: cover; background: var(--sunk); }
.notices-more { display: flex; gap: 20px; max-width: 720px; margin: 14px 0 0; padding: 0 14px; font-size: 13.5px; }
.notices .new .notice { background: color-mix(in srgb, var(--accent) 8%, transparent); }
@media (hover: hover) { .notices .new .notice:hover { background: color-mix(in srgb, var(--accent) 13%, transparent); } }
.feed-what { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; color: var(--text-3); font-size: 14px; }
.feed-title { color: var(--text); font-weight: 600; }
.feed .rev-by { margin-top: 6px; }
/* Home: games on the backlog that Steam says were played lately, under what is in progress.
   A line each: its cover, its name over what Steam says, and the two answers at its end
   (under the words on a phone). Each runs the content's whole width. */
.played { display: grid; gap: 8px; margin: 30px 0 0; padding: 0; list-style: none; }
.block > .h2 + .played { margin-top: 0; }  /* nothing in progress: the lines are all there is under the heading */
.played-row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 6px 14px;
  padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 14px;
}
.played-cover { display: block; width: 36px; aspect-ratio: 2 / 3; border-radius: 4px; background: var(--sunk); }  /* (not clipped: the press area round it is its own) */
.played-cover img { display: block; width: 100%; height: 100%; border-radius: 4px; object-fit: cover; }
.played-words { min-width: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.4; }
.played-words a { position: relative; display: block; margin-block: -11px; padding-block: 11px; overflow: hidden; color: var(--text); font-size: 14.5px; font-weight: 550; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
@media (hover: hover) { .played-words a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); } }
.played-words span { display: block; margin-top: 2px; }
.played-acts { display: flex; gap: 8px; }
/* An answer on its way: dimmed only where it is slow in coming. */
.played-row[data-busy] .played-acts { opacity: .5; transition: opacity .15s .3s; }
.played-row .log-error { grid-column: 2 / -1; text-align: left; }
@media (max-width: 680px) {
  .played { margin-top: 20px; }
  .played-row { grid-template-columns: 36px minmax(0, 1fr); align-items: start; padding: 12px 14px 12px 12px; }
  .played-cover { grid-row: span 2; }
  .played-acts { grid-column: 2; margin-top: 4px; }
}
/* ---- Home as a board of tiles (owner, 11-26; pages/board.py, templates/home.html, js/board.js) ----
   Tiles of two sizes, each one thing: two columns on a phone (10px gaps), four from 681px (14px). Every tile says its columns at both widths
   (`--c2`, `--c4`: the server leaves no hole in a row); a small tile is 214px high wherever it stands. Over a cover (the bleed, the fan, the wash) the
   words are always light on a dark shade, in the light look too, as a cover's own caption is. */
.bd { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: var(--page-top, 18px) 0 28px; }
.bd-tile { position: relative; grid-column: span var(--c2, 1); min-width: 0; border-radius: 22px; background: var(--surface); overflow: hidden; isolation: isolate; }
.bd-tonight, .bd-sale, .bd-soon, .bd-ago { height: 214px; background: var(--sunk); }
.bd-sale, .bd-soon { background: var(--surface); }
@media (min-width: 681px) {
  .bd { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 34px 0 40px; }
  .bd-tile { grid-column: span var(--c4, 1); }
  /* The tiles of one row end level: a small tile beside Now is as high as Now (214px at least), never short of the row's foot. */
  .bd-tonight, .bd-sale, .bd-soon, .bd-ago { height: auto; min-height: 214px; }
}
.bd-lab { display: block; color: var(--text-3); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.bd-val { display: block; margin-top: 8px; font: 600 42px/1 var(--sans); letter-spacing: -.02em; }
.bd-sub { display: block; margin-top: 4px; color: var(--text-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* A whole tile that is one press (a link, or the button that opens a sheet): its words laid over it. */
.bd-hit { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; width: 100%; padding: 14px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.bd-hit:focus-visible, .bd-slide:focus-visible, .bd-stat:focus-visible, .bd-line:focus-visible { outline-offset: -4px; border-radius: 22px; }

/* a cover as the tile: Tonight, and a year ago */
.bd-slide { position: absolute; inset: 0; display: block; color: #f2efe9; }
.bd-bleed { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.bd-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 30%, rgb(10 9 8 / .7) 58%, rgb(10 9 8 / .97) 80%); }
.bd-chip { position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; pointer-events: none;
  background: rgb(12 10 8 / .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #f2efe9; font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.bd-foot { position: absolute; left: 14px; right: 14px; bottom: 12px; }
.bd-foot b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-weight: 600; font-size: 15px; line-height: 1.22; color: #f2efe9; }
.bd-foot span { display: block; margin-top: 3px; color: #c9c2b6; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-round { position: absolute; right: 10px; top: 10px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgb(12 10 8 / .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #f2efe9; }
.bd-round::before { content: ""; position: absolute; inset: -3px; }  /* (a 40px press area) */
.bd-round svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bd-round:focus-visible { outline-color: #f2efe9; outline-offset: 1px; }

/* what he is on */
.bd-now { padding: 14px 14px 14px 16px; }
/* (The wash is a background, not a picture: it reaches 30px past the tile, as a blur must, and is clipped by it.) */
.bd-wash { position: absolute; inset: -30px; z-index: -2; background: center / cover no-repeat; filter: blur(30px) saturate(1.25); opacity: .5; }
.bd-now::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, color-mix(in srgb, var(--surface) 82%, transparent), color-mix(in srgb, var(--surface) 50%, transparent)); }
.bd-now-main { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.bd-cv { flex: none; width: 76px; aspect-ratio: 2 / 3; border-radius: 10px; background: var(--sunk); overflow: hidden; box-shadow: 0 6px 18px rgb(0 0 0 / .45); }
.bd-cv img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bd-now-txt { flex: 1; min-width: 0; }
.bd-name { display: block; margin-block: -6px; padding-block: 6px; font: 400 27px/1.05 var(--serif); }  /* (the press area is its own padding: what clamps the words is inside) */
.bd-name > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bd-say { display: block; margin-top: 7px; color: var(--text-2); font-size: 14.5px; text-wrap: balance; }
.bd-count { flex: none; display: block; }
.bd-plus { position: relative; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.bd-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 2.5; pointer-events: none; }
.bd-ring .t { stroke: var(--line-2); }
.bd-ring .p { stroke: var(--accent); stroke-linecap: round; }
.bd-mark { position: relative; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bd-plus:disabled { color: var(--text-3); opacity: .45; cursor: default; }
.bd-plus:active:not(:disabled) { background: color-mix(in srgb, var(--text) 8%, transparent); }
.bd-error { margin-top: 8px; text-align: left; }
.bd-also { display: flex; gap: 8px; margin-top: 14px; }
.bd-sm { flex: none; display: grid; place-items: center; width: 40px; aspect-ratio: 2 / 3; padding: 0; border: 0; border-radius: 7px; background: var(--sunk); overflow: hidden; opacity: .72; cursor: pointer; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.bd-sm img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .bd-sm:hover { opacity: 1; } }

/* played lately: today's row for it (js/cover-menu.js answers its buttons), as a tile */
.bd-played { padding: 14px; }
.bd-played .played { margin: 10px 0 0; }
.bd-played .played-row { padding: 6px 0; border: 0; border-radius: 0; }
.bd-played .played-row + .played-row { border-top: 1px solid var(--line); }
.bd-played .btn.small { position: relative; }
/* From 681px a slim strip of its own row: each game on one line (cover, its name and the words after it, the two buttons at the end); the words go
   under the name only where the line has no room, and the name is never cut while there is room. */
@media (min-width: 681px) {
  .bd-played { align-self: start; }
  .bd-played .played-words { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; }
  .bd-played .played-words a { display: inline-block; flex: none; max-width: 100%; margin-block: -11px; }
  .bd-played .played-words span { display: inline; margin: 0; }
}
.bd-played .btn.small::before { content: ""; position: absolute; inset: -3px -2px; }  /* (a 40px press area) */

/* on sale, coming up: words and a number */
.bd-sale .bd-hit, .bd-soon .bd-hit { padding: 14px; }
.bd-cut { display: inline-flex; align-items: center; height: 24px; margin-top: 10px; padding: 0 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12.5px; font-weight: 600; }
.bd-fan { position: absolute; left: 14px; right: 0; bottom: -26px; display: flex; }
.bd-fan img { flex: none; width: 60px; aspect-ratio: 2 / 3; border-radius: 8px; object-fit: cover; box-shadow: 0 4px 14px rgb(0 0 0 / .5); margin-right: -12px; background: var(--sunk); }
.bd-fan img:nth-child(1) { transform: rotate(-7deg); }
.bd-fan img:nth-child(2) { transform: translateY(-6px); }
.bd-fan img:nth-child(3) { transform: rotate(7deg); }
.bd-labrow > :first-child { white-space: nowrap; }
.bd-labrow { align-self: stretch; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bd-more { color: var(--text-3); font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.bd-date { display: block; margin-top: 8px; font: 400 40px/1 var(--serif); white-space: nowrap; }
.bd-words { font-size: 28px; line-height: 1.05; white-space: normal; }
.bd-what { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; }
.bd-what img { flex: none; width: 38px; aspect-ratio: 2 / 3; border-radius: 7px; object-fit: cover; background: var(--sunk); }
.bd-what b { min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-weight: 600; font-size: 14px; line-height: 1.22; }
@media (max-width: 350px) { .bd-what img { display: none; } .bd-lab, .bd-chip { letter-spacing: .05em; } .bd-m { display: none; } .bd-stat { padding: 0 2px 0 9px; } .bd-stat .bd-lab { letter-spacing: .02em; } }

/* your year in numbers */
.bd-year { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; padding: 14px 4px; }  /* (from 681px it stands in a row of 214px tiles: its numbers in the middle of it) */
.bd-stat { position: relative; display: block; min-width: 0; padding: 0 10px 0 12px; }
.bd-stat + .bd-stat { border-left: 1px solid var(--line); }
.bd-stat .bd-lab { white-space: nowrap; }
.bd-stat .bd-val { margin-top: 6px; font-size: 30px; }

/* the people he follows */
.bd-people { padding: 14px 14px 4px; }
.bd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bd-all { position: relative; padding: 0; border: 0; background: none; color: var(--text-2); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.bd-all::before { content: ""; position: absolute; inset: -14px -14px -12px; }  /* (a 40px press area) */
@media (hover: hover) { .bd-all:hover { color: var(--text); } }
.bd-feed { display: grid; margin: 0; padding: 0; list-style: none; }
.bd-line { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.bd-feed li + li .bd-line { border-top: 1px solid var(--line); }
.bd-line .avatar { width: 36px; height: 36px; font-size: 14px; }
.bd-said { flex: 1; min-width: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.35; }
.bd-said b { color: var(--text); font-weight: 600; }
.bd-said small { display: block; color: var(--text-3); font-size: 12.5px; }
.bd-said .stars { --s: 13px; margin-left: 2px; }
.bd-tiny { flex: none; width: 36px; aspect-ratio: 2 / 3; border-radius: 6px; object-fit: cover; background: var(--sunk); }
.bd-people .empty { padding: 12px 0 14px; }
@media (min-width: 681px) {
  .bd-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
  .bd-feed li + li .bd-line { border-top: 0; }
}

/* the two sheets (the site's `dialog.sheet`) */
.bd-sheet .revs { width: 100%; }
.bd-rows { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; margin: 0; padding: 0; list-style: none; }
.bd-row { position: relative; display: flex; min-width: 0; align-items: center; gap: 14px; padding: 10px 0; }
.bd-rows li + li .bd-row { border-top: 1px solid var(--line); }
.bd-rowcover { flex: none; width: 40px; aspect-ratio: 2 / 3; border-radius: 6px; background: var(--sunk); overflow: hidden; }
.bd-rowcover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bd-rowtxt { flex: 1; min-width: 0; }
.bd-rowtxt b { display: block; overflow: hidden; font-weight: 600; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.bd-rowtxt small { display: block; margin-top: 2px; color: var(--text-2); font-size: 13.5px; }
/* Search with nothing typed: what it finds, and the recent searches on this device. */
.search-start { margin-top: 30px; }
.search-start > .block:first-child { margin-top: 0; }
.search-recent { max-width: none; margin-top: 30px; margin-bottom: 28px; }
.search-start > .search-recent:first-child { margin-top: 0; }
.search-start > .search-recent[hidden] + .block { margin-top: 0; }
/* A pasted link's answer has no kinds over it to narrow by: its first line stands where the
   hint's did (the "nothing found" line has 4px of its own over it). */
#results > :is(.block, .note):first-child { margin-top: 30px; }
#results > .empty:first-child { margin-top: 26px; }
/* "Clear" at the heading's right end: every recent search forgotten at once (owner, 11-22). */
.recent-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.search-recent ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.search-recent li { display: inline-flex; align-items: center; gap: 2px; padding: 0 4px 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.recent-q { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 6px 4px 6px 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.recent-q svg, .recent-drop svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; }
.recent-drop { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
@media (hover: hover) { .recent-drop:hover { background: var(--sunk); } }
@media (hover: hover) { .recent-drop:hover svg { stroke: var(--text); } }
/* The comments on a profile: the box on top, newest first under it. */
.wall .h2 small { margin-left: 6px; color: var(--text-3); font: 400 15px var(--sans); }
.wall .thread-write { margin-top: 18px; }
.wall .thread-note { margin-top: 14px; }
/* The board: each comment a note as wide as its words need, up to a point, side by side. */
.board { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.board-note {
  display: grid; justify-items: start; gap: 5px; max-width: min(100%, 340px); padding: 10px 14px 11px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
}
.board-by { display: flex; text-decoration: none; align-items: center; gap: 7px; color: var(--text); font-size: 13px; font-weight: 550; }
.board-note p { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.board-note .at { color: var(--accent); font-weight: 550; }
.board-acts { display: grid; }
.board-acts > span { display: flex; grid-area: 1 / 1; gap: 12px; }
.board-acts form { display: contents; }
/* Your note, edited where it stands: the box lies over its words, which keep the note's size; Save and Cancel over Edit and Delete. */
.board-text { position: relative; display: grid; justify-items: start; }
.board-text textarea {
  position: absolute; inset: 0; display: none; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; outline: none; border-radius: 0;
  background: var(--surface); color: var(--text); font: inherit; font-size: 14.5px; line-height: 1.5; resize: none; overflow: hidden;
  box-shadow: 0 1px 0 var(--line-2);
}
.board-text textarea:focus { box-shadow: 0 1px 0 var(--text-3); }
/* A phone zooms into a field whose letters are under 16px: the box is 16px to the phone and drawn at the words' own 14.5px (scaled, its
   room made as much bigger as it is drawn smaller), so that it still lies on its words line for line. */
@media (pointer: coarse) {
  .board-text textarea { right: auto; bottom: auto; width: calc(100% / .90625); height: calc(100% / .90625); font-size: 16px; transform: scale(.90625); transform-origin: 0 0; }
}
.board-edit { visibility: hidden; }
.wall-editing .board-text p { visibility: hidden; }
.wall-editing .board-text textarea { display: block; }
.wall-editing .board-rest { visibility: hidden; }
.wall-editing .board-edit { visibility: visible; }
.board-acts .link { color: var(--text-3); font-size: 13px; }
@media (hover: hover) { .board-acts .link:hover { color: var(--text); } }
.wall-all { display: inline-block; font-size: 13.5px; }
/* A choice made while joining: its name, and a line on what it means. */
.door .door-choice { align-items: flex-start; margin-top: 4px; }
.door-choice input { flex: none; margin: 2px 0 0; }
.door-choice span { display: grid; gap: 4px; }
.door-choice b { font-weight: 550; }
.door-choice small { color: var(--text-3); font-size: 13px; font-weight: 400; line-height: 1.45; }
.taste-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 26px; color: var(--text-3); font-size: 13.5px; }
/* A sheet's main button at its right end, as in every sheet (owner, 10-21); what it says, at the left. */
.taste-go > span { margin-right: auto; }

.tabs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 30px; margin-top: 56px; scroll-margin-top: 96px; }  /* (clear of the bar at the page's top, a tab pressed) */
.tabs a { color: var(--text-3); font: 400 38px/1.05 var(--serif); letter-spacing: -.01em; transition: color .15s; }
@media (hover: hover) { .tabs a:hover { color: var(--text-2); } }
.tabs a[aria-current] { color: var(--text); }
/* A kind's picture is for a phone (below): anywhere wider, its word. */
.joined [data-kind] > svg { display: none; }
/* All is its four squares where the other kinds are pictures (a phone, below), its word elsewhere. */
.chips .joined [data-all] > svg { display: none; }
/* A section's name: nearer its covers than the filters are to it, as a month's is in the diary. */
.shelf-sec { margin: 44px 0 14px; color: var(--text-2); font: 400 26px/1.1 var(--serif); }
.shelf-sec:first-of-type { margin-top: 0; }
.shelf-sec .stars { --s: 22px; vertical-align: -3px; }

/* A month: its name in the serif and its year at the left, its covers across in a wrapping grid;
   under each its day and a mark (✓ finished, ▷ started), and its grade where there is one. */
.month { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 0 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.month .h2 { margin: 0; color: var(--text); font-size: 30px; line-height: 1.1; }
.month .h2 small { display: block; margin-top: 8px; color: var(--text-3); font: 500 13px var(--sans); }
.mc-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 22px 16px; }
.mc { display: grid; align-content: start; justify-items: center; gap: 7px; width: 100px; color: var(--text-3); font: 500 12.5px var(--sans); }
.mc[hidden] { display: none; }
.mc .cover { width: 100%; border-radius: 6px; }
.mc-day { display: inline-flex; align-items: center; gap: 4px; min-height: 16px; }
.mc-day b { font-weight: 500; }
.mc-day svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mc-day.fin { color: var(--text); }
.mc-day.fin svg { color: var(--accent); }
.mc-part { margin-top: -3px; font-size: 11px; letter-spacing: .06em; }
.mc-stars .stars { --s: 11px; vertical-align: top; }
.mc-say { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- log in, sign up ---- */

.door { max-width: 392px; margin: clamp(40px, 10vh, 120px) auto 0; }
.door h1 { margin-bottom: 30px; font: 400 52px/1 var(--serif); letter-spacing: -.015em; }
.door form { display: grid; gap: 18px; }
.door label { display: grid; gap: 7px; color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.door input:not([type=checkbox], [type=radio]) { height: 50px; padding: 0 16px; font-size: 16px; color: var(--text); }
.door .btn { margin-top: 6px; }
.door-problem { padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--text); font-size: 14px; }
.door-other { margin-top: 22px; color: var(--text-2); font-size: 14px; }
/* Confirm it is you (door_prove.html): a problem above the forms keeps their gap; the app's
   code, a form of its own under the password's, stands apart from it as a group. */
.door > .door-problem { margin-bottom: 18px; }
.door-also { margin-top: 30px; }
/* The other way in, under the form: with a passkey. */
.door-passkey { display: grid; gap: 12px; margin-top: 12px; }
.door-other a, .door-invited a, .set-said a, .door-problem a, .link-button { color: var(--text); font-weight: 550; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.link-button { padding: 0; border: 0; background: none; font: inherit; font-weight: 550; cursor: pointer; }  /* (the weight the links beside it have) */
/* A sentence with a button in it, not a form laid out in rows. */
.door form.door-other { display: block; }
.door input.door-code { height: 60px; font-size: 28px; letter-spacing: .32em; text-align: center; font-variant-numeric: tabular-nums; }
.door-other + .door-other { margin-top: 10px; }

/* ---- footer ---- */

.foot { margin-top: 112px; padding-block: 28px 44px; color: var(--text-3); font-size: 12.5px; }
.foot span { display: block; padding-top: 24px; border-top: 1px solid var(--line); }
.foot .foot-feedback { margin-top: 14px; font-size: inherit; color: var(--text-2); }
/* Feedback: the sheet's foot (a word when it went, Send), and the list its readers see. */
/* The button at the box's right edge (the room above it kept, as a form's), "Sent" level with it. */
.feedback-end { display: flex; align-items: center; justify-content: flex-end; gap: 16px; width: 100%; margin-top: 6px; }
.feedback-end .btn { margin: 0; }
.feedback-done { margin: 0; color: var(--text-2); }
.feedback-list { list-style: none; margin: 20px 0 0; padding: 0; }
.feedback-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.feedback-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 8px; color: var(--text-3); font-size: 14px; }
.feedback-page { color: var(--text-3); overflow-wrap: anywhere; }
.feedback-body { margin: 0; max-width: 70ch; white-space: pre-wrap; overflow-wrap: anywhere; }

#results { transition: opacity .15s; }
#results.loading { opacity: .45; transition-delay: .12s; }

/* ---- narrower screens ---- */

@media (max-width: 900px) {
  .revs.two { grid-template-columns: minmax(0, 1fr); }
  .title { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
  .seg button { font-size: 12px; }
  .rate, .heart, .rate-row { --s: 30px; }
  .log-mid .rate, .log-mid .heart, .log-mid .rate-row { --s: 28px; }
}

@media (max-width: 680px) {
  :root { --gutter: 18px; --page-top: 24px; }
  .top-in { grid-template-columns: 1fr auto; gap: 12px 16px; height: auto; padding-block: 12px; }
  .mark { font-size: 26px; }
  /* Signed out, the dock has Log in; the header keeps Sign up. */
  .top-nav .btn.quiet { display: none; }
  .find { grid-row: 2; grid-column: 1 / -1; }
  .find kbd { display: none; }
  .rev[id] { scroll-margin-top: 62px; }

  /* The three main places, in thumb's reach. */
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px) + var(--get-app-room, 0px)); }  /* (--get-app-room: the install card's height and its gap, while it stands over the page's end: site.js) */
  .dock {
    position: fixed; inset: auto 0 0; z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;  /* (signed out, three places and not four) */
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
    border-top: 1px solid var(--line);
  }
  .dock a { display: grid; justify-items: center; gap: 3px; padding: 9px 0 8px; color: var(--text-3); font-size: 11px; font-weight: 550; }
  .dock a[aria-current] { color: var(--text); }
  .dock a:focus-visible { outline-offset: -2px; }  /* inside: outside, the screen's edge cuts it */
  .dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
  .genre-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .genre-list a { font-size: 21px; }

  .h2 { font-size: 27px; }
  .block { margin-top: 44px; }
  .block > .h2, .block-head { margin-bottom: 16px; }
  .grid, .grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 12px; }
  .grid.one-row { grid-template-rows: auto auto; margin: -8px -8px -12px; padding: 8px 8px 0; }
  .grid.one-row .card { margin-bottom: 22px; }
  .card-name { --name: 13.5px; }
  .card-meta { font-size: 12px; }
  .card-meta .stars { --s: 12px; }
  .cover { border-radius: 8px; }
  .card-badge { top: 6px; left: 6px; padding: 3px 7px; font-size: 10.5px; }
  :root { --disc: 24px; --disc-in: 6px; --disc-ink: 15px; }
  .card .cut { top: 6px; left: 6px; padding: 3px 7px; font-size: 10.5px; }
  .card-badge + .cut { top: 29px; }

  /* Cover and name side by side, then the grading panel, then the rest. */
  .title {
    grid-template-columns: 116px minmax(0, 1fr); gap: 22px 18px;
    grid-template-areas: "cover head" "log log" "rest rest";
  }
  .title-side, .title-main { display: contents; }
  .title-side > .cover { grid-area: cover; border-radius: 9px; }
  .title-side .log, .title-side > .btn { grid-area: log; }
  .title-head { grid-area: head; align-self: center; }
  .title-rest { grid-area: rest; }
  .title-head h1 { margin: 8px 0 6px; font-size: 34px; line-height: 1.02; }
  .credit { font-size: 15px; }
  .crowd { margin-top: 10px; }
  .overview { margin-top: 4px; font-size: 16px; }
  .overview-more { font-size: 16px; }
  /* Thumb-sized on a phone: compact visually, with 44px touch reach. */
  .seg { --seg-h: 44px; }
  .log .seg { --seg-h: 36px; }
  .count { grid-template-columns: 44px minmax(0, 1fr) 44px; height: 48px; }
  .count-step { width: 44px; height: 44px; }
  .season-count { height: 44px; min-width: 48px; }
  .log-tool { position: relative; width: 32px; height: 32px; }
  .log-tool::before { content: ""; position: absolute; inset: -6px -4px; }
  .log-mid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 8px; }
  .log-mid .rate-row, .log-mid .rate, .log-mid .heart { --s: 26px; }
  .log-mid .rate-row { justify-content: flex-start; gap: 6px; margin-block: 0; }
  .log-mid .count { flex: 0 1 auto; height: 32px; grid-template-columns: 28px auto 28px; padding: 0 2px; gap: 2px; }
  .log-mid .count-step { position: relative; width: 28px; height: 28px; }
  .log-mid .count-step::before { content: ""; position: absolute; inset: -8px -4px; }
  .log-mid .count-say { gap: 4px; padding: 0 2px; font-size: 12.5px; }
  .log-mid .count:has([data-count-season]:not(:empty)) .count-unit { display: none; }
  /* In the panel the pill is drawn compactly, with a 44px invisible touch area. */
  .log-say .season-count { position: relative; height: 28px; min-width: 34px; }
  .log-say .season-count::before { content: ""; position: absolute; inset: -8px -6px; }
  .season-status { --mark-w: 48px; }
  .season-status button { height: 44px; }
  .season-marks .season-count { height: 48px; }
  .seg button { font-size: 13.5px; }
  /* As big as the row lets them be beside the heart, up to 44px a star (a narrow phone). */
  .rate, .heart, .rate-row { --s: min(44px, round(down, (100vw - 122px) / 5, 1px)); }

  .five { margin-top: 28px; }
  .five-head { margin-bottom: 16px; }
  .five-row { gap: 8px; }
  .five-cap { min-height: 0; margin-top: 0; }
  .five-cap > span:last-child { display: none; }
  .five-n { top: -9px; left: -4px; font-size: 24px; -webkit-text-stroke-width: 5px; }  /* (the covers close together: kept off the one before) */
  .five-empty { font-size: 28px; border-radius: 8px; }
  .five-slot { padding-bottom: 0; }
  /* Name + metadata inline on row 1 (wrapping only for long names); stars left and compact marks right on row 2. */
  .season summary { grid-template-columns: minmax(0, 1fr) auto 14px; gap: 10px 12px; padding: 14px 0; }
  .season summary > .season-what { grid-row: 1; grid-column: 1 / 3; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
  .season summary > .season-what .season-meta { margin-top: 0; }
  .season summary > .season-open { grid-row: 1; grid-column: 3; justify-self: end; }
  /* A season's stars as big as a finger needs (owner, 10-20): 32px elsewhere; 28px in the 2-row season bar beside the pills. */
  .rate.small { --s: 32px; }
  .season summary > .rate.small { grid-row: 2; grid-column: 1; justify-self: start; --s: 28px; }
  .season summary > .rate.small.none { display: none; }
  .season-film { gap: 12px; }
  .season summary > .season-marks { grid-row: 2; grid-column: 2 / -1; justify-self: end; }
  .season summary > .season-marks:not(:has(> :not(.none, [hidden]))) { display: none; }
  .season summary .season-status.none { display: none; }
  /* Compact 34px-tall pills visually, with invisible 44px touch reach (matching .log-say .season-count). */
  .season summary .season-status { --mark-w: 36px; }
  .season summary .season-status button { position: relative; height: 30px; }
  .season summary .season-status button::before { content: ""; position: absolute; inset: -7px 0; }
  /* The two marks side by side: each takes 4px of reach beyond its outer edge (36px wide, they were under the 40 a finger needs); the room between them stays each its own. */
  .season summary .season-status button:first-child::before { inset: -7px 0 -7px -4px; }
  .season summary .season-status button:last-child::before { inset: -7px -4px -7px 0; }
  .season summary .season-status button:only-child::before { inset: -7px -4px; }
  .season summary .season-marks .season-count { position: relative; height: 34px; min-width: 40px; padding: 1px 10px 0; }
  .season summary .season-marks .season-count::before { content: ""; position: absolute; inset: -5px -3px; }
  .episodes, .times.season-times { padding-right: 0; }
  .episode { grid-template-columns: 22px minmax(0, 1fr) 95px; gap: 10px; }
  .episode.special { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px 10px; padding: 10px 0; }
  .episode.special + .episode.special, .special-times + .episode.special { border-top: 1px solid var(--line); }
  .episode.special .ep-n { grid-row: 1; grid-column: 1; }
  .episode.special .ep-name { grid-row: 1; grid-column: 2 / -1; }
  .episode.special .rate { grid-row: 2; grid-column: 2; justify-self: start; --s: 22px; }
  .episode.special .ep-marks { grid-row: 2; grid-column: 3; justify-self: end; }
  .episode.special .ep-seen { --mark-w: 32px; }
  .episode.special .ep-seen button { position: relative; width: 32px; height: 26px; }
  .episode.special .ep-seen button::before { content: ""; position: absolute; inset: -9px -4px; }
  .episode.special .ep-marks .season-count { position: relative; height: 30px; min-width: 36px; padding: 1px 9px 0; }
  .episode.special .ep-marks .season-count::before { content: ""; position: absolute; inset: -7px -4px; }
  .times.special-times { padding-left: 32px; }
  .ep-date { display: none; }

  .rev { grid-template-columns: 58px minmax(0, 1fr); gap: 16px; }
  .rev-title { font-size: 21px; }
  .hero-find { flex-direction: column; }
  .hero-find input { flex: none; }  /* stacked, its height is its own (it stretched across, not down) */
  .foot { margin-top: 72px; }
}

/* A show's seasons and specials where the column is narrow (a desk window of 681 to 820, where the title's side column takes 280 of it): as on
   a phone, the season's name and stars on one line and its marks under the name; a special's name on a line of its own over its date, marks
   and stars (down to 420px of a phone too: its name had 49px at 320). */
@media (min-width: 681px) and (max-width: 820px) {
  .season summary { grid-template-columns: minmax(0, 1fr) auto 14px; gap: 8px 12px; }
  .season summary > .season-what { grid-row: 1; grid-column: 1 / 3; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
  .season summary > .season-what .season-meta { margin-top: 0; }
  .season summary > .season-open { grid-row: 1; grid-column: 3; justify-self: end; }
  .season summary > .rate.small { grid-row: 2; grid-column: 1; justify-self: start; }
  .season summary > .rate.small.none { display: none; }
  .season summary > .season-marks { grid-row: 2; grid-column: 2 / -1; justify-self: end; }
  .season summary > .season-marks:not(:has(> :not(.none, [hidden]))) { display: none; }
  .season summary .season-status.none { display: none; }
}
@media (min-width: 681px) and (max-width: 920px) {
  .episode.special { grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 4px 10px; }
  .episode.special .ep-name { grid-column: 2 / -1; }
  .episode.special .ep-date { grid-row: 2; grid-column: 2; }
  .episode.special .ep-marks { grid-row: 2; grid-column: 3; }
  .episode.special .rate { grid-row: 2; grid-column: 4; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---- a show's graded seasons and episodes, on a profile ---- */

.parts { margin-top: 34px; }
.parts:first-of-type { margin-top: 4px; }
.parts-show { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; font: 400 26px/1.1 var(--serif); }
.parts-show .cover { width: 40px; flex: none; border-radius: 6px; }
@media (hover: hover) { .parts-show:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); } }
.parts-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.parts-list a { display: flex; align-items: center; gap: 16px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
@media (hover: hover) { .parts-list a:hover { background: color-mix(in srgb, var(--sunk) 55%, transparent); } }
.parts-what { flex: 1; min-width: 0; color: var(--text-2); font-size: 15px; overflow-wrap: anywhere; }
.parts-what b { margin-right: 6px; color: var(--text); font-weight: 600; }
.parts-of { flex: none; width: min(34%, 260px); color: var(--text); font-weight: 550; overflow-wrap: break-word; }  /* (whole, on as many lines as it takes, as the episode's name beside it) */
.parts-list .stars { --s: 17px; flex: none; }

/* ---- menus that drop down ----
   Where the browser lets the list itself be drawn (Chrome and Edge since 2025), it looks
   like the site's other menus; elsewhere the system's own list opens. */
@supports (appearance: base-select) {
  select, .five-pick select, ::picker(select) { appearance: base-select; }
  ::picker(select) {
    /* (Its edge a ring, and 9px of see-through border over and under: the scroll bar, which runs
       the padding box's height, stops short of the round corners instead of reaching into them.) */
    margin-block: 6px; padding: 0 6px; border: 1px solid transparent; border-block-width: 9px; border-radius: 14px;
    background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line-2), 0 18px 44px -14px rgb(0 0 0 / .55);
    /* (As tall as the window lets it be, so that the favorites' lists, the longest of the site's menus, rarely scroll; where it must, it
       scrolls with no bar of its own: no other menu has one. Owner, 11-22: "the 3x3 selector has a special scrolling bar but nothing else has".) */
    max-height: calc(100dvh - 48px); overflow-y: auto; scrollbar-width: none;
  }
  ::picker(select)::-webkit-scrollbar { display: none; }
  select option {
    display: flex; align-items: center; gap: 14px; min-height: 0; padding: 8px 12px; border-radius: 9px;
    color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
  }
  select option:focus-visible { background: var(--sunk); color: var(--text); outline: none; }
  @media (hover: hover) { select option:hover { background: var(--sunk); color: var(--text); outline: none; } }
  select option:checked { color: var(--text); font-weight: 600; }
  select option::checkmark { order: 1; margin-left: auto; color: var(--accent); }
  /* The same small chevron as the site's other menus, in place of the browser's triangle. */
  select::picker-icon {
    content: ""; width: 12px; height: 12px; transition: rotate .2s;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.500-3.500' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  }
  select:open::picker-icon { rotate: 180deg; }
  /* A long list (the countries) opens as a short one that scrolls, under its button's right edge, so it stays
     on a phone's screen. Owner, 12-01: "this big ass list". */
  .short-pick::picker(select) { position-area: bottom span-left; max-height: min(300px, 100dvh - 48px); }
  .five-pick select { display: inline-flex; align-items: center; }
  .five-pick select::picker-icon { display: none; }  /* it draws its own */
  .five-pick select:open, .when-parts select:open { border-color: var(--text-3); }
  select { align-items: center; justify-content: space-between; }
  .when-parts select { display: flex; }
}



/* ---- your top five, being edited ---- */

/* A list's Edit and Done in one place, the button as wide as the wider of them. */
.list-meta [data-list-edit] { display: inline-grid; place-items: center; }
.list-meta [data-list-edit] > span { grid-area: 1 / 1; }
.editing-hint { display: none; }
.five.editing .editing-hint { display: block; }
.five-row > li { position: relative; }
.five-tools { display: none; position: absolute; inset: 0 0 auto 0; aspect-ratio: 2 / 3; pointer-events: none; }
/* Editing, with a mouse and a finger alike, nothing covers the picture: a small mark sits on
   its corner (its ✕, or a lock where it comes from the overall favorites). */
.five.editing .five-tools { display: block; }
.five.editing .five-tools > *, .five.editing .five-lock {
  position: absolute; top: -10px; right: -10px; pointer-events: auto;
}
.five-lock { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgb(0 0 0 / .62); color: #f2efe9; box-shadow: 0 2px 8px rgb(0 0 0 / .45); }
.five-lock svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.five.editing li[data-title]:not([data-fixed]) { cursor: grab; touch-action: manipulation; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.five.editing li[data-title] .cover { outline: 1px dashed var(--line-2); outline-offset: 0; }  /* hugs its own cover: the room between covers (8 to 26px) keeps neighbours apart */
/* Editing, a phone's mark (✕ or lock) stands inside its cover's corner, and its dashed frame inside the cover: neither touches the next cover's
   number nor reaches past the page's side gutter (11-17). */
@media (max-width: 680px) {
  .five.editing .five-tools > *, .five.editing .five-lock { top: 4px; right: 4px; }
  .five.editing li[data-title] .cover { outline-offset: -1px; }
}
.five-row > li.held { cursor: grabbing; }
.five-row > li.held .cover { box-shadow: 0 2px 4px rgb(0 0 0 / .16), 0 18px 30px -12px rgb(0 0 0 / .5); }
.five-row > li.held .five-tools { display: none; }
button.five-empty { width: 100%; background: none; cursor: pointer; }  /* (its "+" keeps the serif size .five-empty gives it: no `font: inherit`) */

/* ---- picking a title from your shelf ---- */

/* A new list: its two steps, each the sheet's body (its gap, its button at the right end);
   choosing its titles, the sheet as wide as the shelf's picker. */
.new-list-step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; justify-self: stretch; }
.new-list-step[hidden] { display: none; }
.new-list-step > .btn { justify-self: end; }
.sheet.small.picking { width: min(760px, calc(100vw - 32px)); }
.new-list-go { gap: 16px; }
.new-list-go .btn { margin: 0; }  /* (a door's button stands off the field over it; here nothing is over it) */
.new-list-count { margin-left: auto; color: var(--text-3); font-size: 13.5px; }
/* What a list holds: chips, as Settings' kinds. */
.list-kinds, .list-shapes { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.list-kinds legend, .list-shapes legend { margin-bottom: 7px; padding: 0; color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.sheet-body.door :is(.list-kinds, .list-shapes) label { display: inline-flex; width: auto; }

.five-picking { justify-items: stretch; }
.five-filter {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--bg); color: var(--text); font-size: 16px; outline: none;
}
.five-filter:focus { border-color: var(--text-3); box-shadow: inset 0 0 0 1px var(--text-3); }
.choices { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.choices button {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%;
  padding: 8px; border: 0; border-radius: 13px; background: none; color: var(--text); text-align: left; cursor: pointer;  /* round the 5px cover, 8px out */
}
/* (Lit under a pointer only where there is one: a tap leaves nothing lit.) */
@media (hover: hover) { .choices button:hover { background: var(--sunk); } }
.choices button:focus-visible { background: var(--sunk); outline-offset: -2px; }  /* inside: what scrolls them cuts it outside */
.choices .cover { border-radius: 5px; }
.choice-what b { display: block; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choice-what small { display: block; margin-top: 2px; color: var(--text-3); font-size: 12.5px; }
/* On a lit row they go a shade darker, to read as well as they do off it. */
.choices button:is([aria-pressed="true"], :focus-visible) .choice-what small { color: var(--text-2); }
@media (hover: hover) { .choices button:hover .choice-what small { color: var(--text-2); } }
.choices .stars { --s: 15px; }
#new-genre-list .tag { cursor: pointer; background: none; font: inherit; font-size: 13.5px; font-weight: 500; }  /* (the weight of every .tag) */

/* ---- choices joined into one control (the shelf's filters) ---- */

/* A chosen one is the same pill as a chosen chip on its own: as tall as the group, laid over
   its outline (the -1px), not a smaller pill floating inside it. */
/* One control of several choices: a filled track, the one chosen a pill set in it evenly (as
   the status bar beside a title's cover). */
.joined { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--sunk); }
.joined a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 12px;
  border-radius: 999px; color: var(--text-2); font-size: 16px; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s;
}
.joined a .status-icon { width: 21px; height: 21px; }
@media (hover: hover) { .joined a:hover { color: var(--text); } }
.joined a[aria-current] { background: var(--text); color: var(--bg); }
.joined a[aria-current] > .status-icon.solid { fill: currentColor; }
.chips .joined { flex: none; display: inline-flex; align-items: center; gap: 26px; padding: 0; border-radius: 0; background: none; }
.chips .joined a {
  position: relative; height: auto; min-width: 0; padding: 8px 0 11px;
  border-radius: 0; background: none; color: var(--text-3); font-size: 15px; font-weight: 500;
}
@media (hover: hover) { .chips .joined a:hover { color: var(--text); } }
.chips .joined a[aria-current] { background: none; color: var(--text); }
.chips .joined a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }

/* ---- your own picture, name and lines: an edit mode ----
   Nothing changes place when it starts: the words get a box (its room taken back), the picture
   a veil saying "Change" and "Remove", and "Edit profile" becomes Cancel | Done where it is. */

.who-pic:disabled { cursor: default; }
/* While editing, each field is a box drawn round the words where they stand: its padding
   is taken back by a negative margin, so the words do not move, and the box is as tall as
   the cursor and then some. The two boxes share their left edge. */
/* Their accounts elsewhere: a row of marks in the words' colour, each with a finger's room. */
.who-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.who-link { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px;
  background: none; color: var(--text-2); cursor: pointer; }
.who-link:focus-visible { color: var(--text); background: var(--sunk); }
@media (hover: hover) { .who-link:hover { color: var(--text); background: var(--sunk); } }  /* a phone keeps a tap's hover */
.who-link svg { width: 17px; height: 17px; fill: currentColor; }
.who-link svg.site-line { fill: none; stroke: currentColor; stroke-width: 1.8; }
/* The marks one group (to be kept in the middle by the heads laid out there); else as if loose. */
.who-marks { display: contents; }
/* The taste tags' Change, there only while the profile is edited, in the room it keeps when it
   is not: nothing moves as it comes. */
.who-copied { margin-left: 8px; color: var(--text-3); font-size: 13px; }
@media (pointer: coarse) {
  .who-link { width: 40px; height: 40px; }
}
/* Their sheet: a box a site, two to a row where there is room. */
.links-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px 18px; width: 100%; }
.links-site { display: inline-flex; align-items: center; gap: 8px; }
.links-site svg { width: 15px; height: 15px; fill: currentColor; }
.links-site svg.site-line { fill: none; stroke: currentColor; stroke-width: 1.8; }
.links-form > .btn { justify-self: end; }
.door.links-form input:not([type=checkbox]) { height: 44px; }
/* Each as wide as its words, at rest and while editing (owner, 11-13: not a box to the screen's
   edge round a short name): the box grows as it is typed in. */
.who-name h1, .who-name .who-bio { width: fit-content; }
/* While editing, each field is a box round the words where they stand: its padding is taken back by a negative margin,
   so the words do not move; focused, the box's own line darkens (no ring outside it). */
.who-head.editing [data-edit-field] {
  max-width: calc(100% + 24px);
  margin-inline: -12px; padding-inline: 12px; border-radius: 12px; outline: none; cursor: text; caret-color: var(--text);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .15s;
}
.who-head.editing h1[data-edit-field] { margin-block: 0; padding-block: 0; font-family: "Instrument Serif Caret", var(--serif); }
.who-head.editing .who-bio[data-edit-field] {
  max-width: min(100% + 24px, 46ch + 24px);
  margin-block: calc(var(--bio-top) - 8px) -8px; padding-block: 8px; border-radius: 10px;  /* the words where they were */
}
.who-head.editing [data-edit-field]:focus { box-shadow: inset 0 0 0 1px var(--text-3); }
.who-head.editing [data-edit-field]:empty::before { content: attr(data-placeholder); color: var(--text-3); }
.who-bio[data-edit-field]:empty::before { content: attr(data-placeholder); color: var(--text-3); }
/* The pronouns, a small field in the line under the name while editing, over the dots on either
   side (unseen then), its words where they were. On their owner's page, empty, its placeholder
   at rest too (as the bio's), so that nothing moves as it opens. */
.who-pronouns[data-edit-field] { display: inline-block; margin-inline: -7px; padding-inline: 7px; white-space: nowrap; }
.who-pronouns[data-edit-field]:empty::before { content: attr(data-placeholder); color: color-mix(in srgb, var(--text-3) 55%, transparent); }  /* (dimmer than the handle line it sits in, so it reads as a placeholder, not as pronouns) */
.who-head.editing .who-pronouns[data-edit-field] { margin-inline: -7px; padding-inline: 7px; border-radius: 8px; }
/* A phone zooms into a box whose letters are under 16px: this one is 16px to the phone and drawn at the line's 14px (scaled; its
   box the size it was, and the .85ch is the room the words' last eighth leaves), so that the line does not move. */
@media (pointer: coarse) {
  .who-pronouns[data-edit-field], .who-head.editing .who-pronouns[data-edit-field] {
    padding-inline: 8px; vertical-align: top; font-size: 16px; line-height: 24.8px; margin-block: -1.55px; transform: scale(.875); transform-origin: 0 50%; margin-right: calc(-7px - .85ch);
  }
}
.who-head.editing .who-name > p .who-dot { visibility: hidden; }
.who-pic-wrap { position: relative; flex: none; width: fit-content; }  /* as wide as the picture: what lies on it (Remove) is centred on the picture, not on the column (owner, 11-13) */
.who-pic { position: relative; display: grid; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.who-pic.busy .avatar { opacity: .5; }
.who-links[hidden], .five-rank[hidden] { display: none; }
.who-name .who-problem { margin-top: 8px; text-align: left; }
/* ---- settings ----
   A list of its parts beside the part shown; on a phone a row of tabs over it.
   Which part is shown is the address's: the part that is the :target, or holds it (a form sent
   comes back to /settings#password); with none, the first (or the one a page drawn after a
   form, with no place in its address, has something to say in). CSS alone, so nothing is drawn
   and then moved. Every part is cards of rows of one width; a row says what it is on its left
   and holds its control at its end, or under its words when the control is wide. One height
   for every field, menu, button and joined choice in it (--set-h). */
.set-head { padding-top: 56px; display: grid; gap: 14px; justify-items: start; }
.set-head h1 { font: 400 clamp(46px, 6.4vw, 84px)/.98 var(--serif); letter-spacing: -.02em; }  /* (a page's title is one size: .shelf-head h1's) */
.set-head > h1:first-child { margin-top: 14px; }  /* (and its top where the page begins with it: .shelf-head h1's) */
@media (hover: hover) { .set-head .eyebrow a:hover { color: var(--text-2); } }
.import-onto { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.set-layout { --set-h: 40px; display: grid; grid-template-columns: 200px minmax(0, 680px); gap: 64px; align-items: start; margin-top: 40px; }
.set-nav { position: sticky; top: 96px; display: grid; gap: 2px; }
.set-tabs { display: contents; }
.set-nav a { --lit-bg: var(--sunk); --lit-fg: var(--text); padding: 9px 14px; border-radius: 10px; color: var(--text-2); font-size: 15px; font-weight: 500; }
@media (hover: hover) { .set-nav a:hover { background: var(--sunk); color: var(--text); } }
/* The part shown lit in the list (a tab on a phone). */
.set-layout:not(:has(.set-group:target, .set-group :target)) .set-nav a.first,
.set-layout:has(#account:target, #account :target) .set-nav [data-part="account"],
.set-layout:has(#privacy:target, #privacy :target) .set-nav [data-part="privacy"],
.set-layout:has(#shelf:target, #shelf :target) .set-nav [data-part="shelf"],
.set-layout:has(#notifications:target, #notifications :target) .set-nav [data-part="notifications"],
.set-layout:has(#gamestores:target, #gamestores :target) .set-nav [data-part="gamestores"],
.set-layout:has(#streaming:target, #streaming :target) .set-nav [data-part="streaming"],
.set-layout:has(#steam:target, #steam :target) .set-nav [data-part="steam"],
.set-layout:has(#import:target, #import :target) .set-nav [data-part="import"],
.set-layout:has(#invite:target, #invite :target) .set-nav [data-part="invite"],
.set-layout:has(#phone:target, #phone :target) .set-nav [data-part="phone"],
.set-layout:has(#leave:target, #leave :target) .set-nav [data-part="leave"],
.set-layout:has(#overview:target, #overview :target) .set-nav [data-part="overview"],
.set-layout:has(#reports:target, #reports :target) .set-nav [data-part="reports"],
.set-layout:has(#suspended:target, #suspended :target) .set-nav [data-part="suspended"],
.set-layout:has(#invites:target, #invites :target) .set-nav [data-part="invites"],
.set-layout:has(#tiktok:target, #tiktok :target) .set-nav [data-part="tiktok"] { background: var(--lit-bg); color: var(--lit-fg); }
.set-layout:has(.set-group:target, .set-group :target) .set-group:not(:target, :has(:target)) { display: none; }
.set-layout:not(:has(.set-group:target, .set-group :target)) .set-group:not(.first) { display: none; }
/* A place in a part is scrolled to clear of the bar at the top; a part itself, to the page's top
   (its margin is more than there is above it): from one part to the next, the page stays put. */
.set-layout [id] { scroll-margin-top: 88px; }
.set-layout .set-group { display: grid; gap: 16px; scroll-margin-top: 100vh; }
.set-group > .h2 { margin-bottom: 4px; }
.set-back, .set-nav svg { display: none; }
/* How many a part holds, beside its name in the list (the admin's Reports, Suspended): at the
   list's right edge on a desk, after the name on a phone. */
.set-count { float: right; margin-left: 12px; color: var(--text-3); font-size: inherit; font-variant-numeric: lining-nums tabular-nums; }
.set-lead { margin-top: -8px; color: var(--text-2); font-size: 14.5px; }
.set-said { padding: 12px 16px; border-radius: 12px; background: var(--sunk); color: var(--text); font-size: 14px; }
/* Rows ruled off by one line each: a row's line lies over the one above it, the first's
   under the card's edge. */
.set-card { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: clip; }
.set-card form:not(.set-row, .set-line, .set-choice), .set-rows { display: contents; }
.set-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; min-height: 72px; margin-top: -1px; padding: 12px 20px; border-top: 1px solid var(--line); }
label.set-row { cursor: pointer; }
label.set-row:has(:disabled) { cursor: default; }
.set-what { flex: 1 1 10em; display: grid; gap: 2px; min-width: 0; }
.set-what b { color: var(--text); font-size: 15px; font-weight: 550; overflow-wrap: anywhere; }
.set-what span { color: var(--text-2); font-size: 13.5px; }
.set-what a { color: var(--text); font-weight: 550; }
.set-row > :is(.btn, form:not(.set-line), .five-pick, .set-switch) { flex: none; }
.set-row:has(> .set-line) { column-gap: 8px; }
/* Passkeys, one block: the heading and Add, and under them in the same row each key as a
   quieter line (a small key, the device in regular weight, when added and last used muted
   under it, Remove a text link), no lines between them. */
#passkeys .set-sub { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 0 12px; min-height: 0; margin-top: 0; padding: 9px 20px; border-top: 0; }
#passkeys .set-sub::before { content: ""; width: 18px; height: 18px; background: var(--text-3); -webkit-mask: var(--key) center / contain no-repeat; mask: var(--key) center / contain no-repeat; }
#passkeys .set-sub .set-what b { font-size: 15px; font-weight: 400; }
#passkeys .set-sub .set-what span { color: var(--text-3); font-size: 13px; }
#passkeys .set-sub .btn { min-width: 0; height: auto; padding: 4px 0; border: 0; background: none; color: var(--text-2); font: 500 13.5px/1.2 var(--sans); text-decoration: underline; text-underline-offset: 3px; }
#passkeys .set-sub:last-child { padding-bottom: 16px; }
/* A row's button of one word is one width: a shelf's own two (96px each, .set-shelf below), so that every row of every card ends alike;
   its word has 12px each side at least (Download, the longest, fits it); a longer one grows. */
.set-row > .btn:not(.set-file), .set-row > form:not(.set-line) > .btn { min-width: 96px; padding-inline: 12px; }
/* (A wide control under its words: choices, an address.) */
.set-wide { display: grid; gap: 14px; }
.set-more, .set-layout :is(.set-said, .door-problem, .recovery) { flex: 1 0 100%; }
.set-more { display: grid; gap: 12px; padding-block: 4px; }
.set-card > :is(.set-said, .door-problem) { margin: 0 20px 16px; }
.set-hint { color: var(--text-2); font-size: 13.5px; }
.set-layout .btn:not(.small) { height: var(--set-h); }
.set-field {
  width: 100%; min-width: 0; height: var(--set-h); padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--bg); color: var(--text); font-size: 15px; outline: none;
}
.set-field:focus { border-color: var(--text-3); box-shadow: inset 0 0 0 1px var(--text-3); }
.set-field.door-code { font-size: 20px; letter-spacing: .32em; text-align: center; font-variant-numeric: tabular-nums; }
.set-line { display: flex; flex: 1 1 12em; gap: 8px; min-width: 0; }
.set-line .set-field { flex: 1; }
.set-line .btn { flex: none; }
.set-fields { display: grid; gap: 8px; }
/* Other shelves: a line each, its name, Rename and Delete; the names all one width, the new
   one's too (its button as wide as the two). */
.set-shelf { display: grid; grid-template-columns: minmax(0, 1fr) 96px 96px; }
.set-shelf > .set-line { display: contents; }
.set-shelf .btn { width: 100%; padding-inline: 0; }
.set-shelf-new .btn { grid-column: span 2; }
.set-shelf > .set-more { grid-column: 1 / -1; }
/* (The narrowest phones: the name over its two buttons, which share the line; a name beside
   them would have room for a few letters.) */
@media (max-width: 360px) { .set-shelf { grid-template-columns: 1fr 1fr; } .set-shelf .set-field { grid-column: 1 / -1; } }
.set-fields > .btn, .set-acts { justify-self: end; }
.set-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.set-layout .five-pick select { height: var(--set-h); }
/* One choice of a few: a filled track, the one chosen a pill in it (as the shelf's filters). */
.set-choice { display: inline-flex; flex: none; gap: 2px; padding: 3px; border-radius: 999px; background: var(--sunk); }
.set-choice button {
  height: calc(var(--set-h) - 6px); padding: 0 14px; border: 0; border-radius: 999px; background: none;
  color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s;
}
@media (hover: hover) { .set-choice button:hover { color: var(--text); } }
.set-choice button[aria-pressed="true"] { background: var(--text); color: var(--bg); cursor: default; }
/* On or off: a switch, lit as a chosen pill is. */
.set-switch {
  position: relative; flex: none; width: 44px; height: 26px; margin: 0; border-radius: 999px;
  background: var(--line-2); appearance: none; cursor: pointer; transition: background .15s;
}
.set-switch::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: translate .15s, background .15s;
}
.set-switch:checked { background: var(--text); }
.set-switch:checked::before { translate: 18px 0; background: var(--bg); }
.set-switch:disabled { opacity: .45; cursor: default; }
.set-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
/* A file to bring over: a button that is the file's picker, sent once one is chosen. */
.set-file { position: relative; max-width: 240px; overflow: hidden; cursor: pointer; }
.set-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.set-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-file:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.set-past li { display: block; }
.set-past .set-row { min-height: 52px; }
.set-past .set-what { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
@media (hover: hover) { .set-past a.set-row:hover { background: var(--sunk); } }
.set-state { flex: none; color: var(--text-2); font-size: 14px; }
/* Import & export: two groups, their rows alike: the site at the left, what it holds muted after it, one button at the right. */
.set-sub-head { margin: 14px 0 -6px; color: var(--text-3); font: 500 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.set-group > .set-sub-head:first-of-type { margin-top: 8px; }
/* Every button of Import and of Export one width and one right edge (the file pickers, AniList's opener, Download). */
.set-io .set-row > .btn { box-sizing: border-box; width: 112px; min-width: 112px; max-width: 112px; justify-content: center; }
.set-io .set-what { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.set-io .set-what .set-note { flex-basis: 100%; color: var(--text-3); font-size: 13px; }
/* Past imports: one row, folded; opened, the list and Clear at its end. */
.set-fold > summary { cursor: pointer; list-style: none; margin-top: 0; border-top: 0; min-height: 56px; }
.set-fold > summary::-webkit-details-marker { display: none; }
.set-fold > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border: solid var(--text-3); border-width: 0 1.8px 1.8px 0; rotate: 45deg; translate: 0 -2px; transition: rotate .15s; }
.set-fold[open] > summary::after { rotate: -135deg; translate: 0 2px; }
.set-fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (hover: hover) { .set-fold > summary:hover { background: var(--sunk); } }
.set-fold > ul { margin: 0; padding: 0; list-style: none; }
.set-fold > ul .set-row { margin-top: 0; }
.set-clear { justify-content: flex-end; min-height: 0; margin-top: 0; }
.set-clear .btn { min-width: 96px; }
/* An address to copy (the calendar's, an invite's): the field is the pill, Copy inside it. */
.invite { display: flex; align-items: center; gap: 4px; width: 100%; padding: 2px 3px 2px 16px; border: 1px solid var(--line-2); border-radius: 999px; }
.invite > input { flex: 1; min-width: 0; height: calc(var(--set-h) - 8px); padding: 0; border: 0; background: none; color: var(--text-2); font-size: 13.5px; text-overflow: ellipsis; outline: none; }
.invite:has(> input:focus) { border-color: var(--text-3); box-shadow: inset 0 0 0 1px var(--text-3); }  /* (the field is the pill: it lights as every other field does) */
.invite form { display: contents; }
.invite .icon-btn { height: calc(var(--set-h) - 8px); }
/* Wide enough for "Copied", so the link never moves when it changes. */
.invite [data-copy] { min-width: 82px; justify-content: center; }
.invite .icon-btn { width: calc(var(--set-h) - 8px); }
.invite .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.set-how summary { width: fit-content; color: var(--text-2); font-size: 13.5px; cursor: pointer; }
@media (hover: hover) { .set-how summary:hover { color: var(--text); } }
.set-steps { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 13.5px; }
.set-steps b { margin-right: 6px; color: var(--text); font-weight: 550; }
/* A button that opens what asks "are you sure" reads Cancel while that is open: one Delete on
   the screen at a time. Both words are in it, one over the other, so it keeps its width. */
.reveals { display: inline-grid; place-items: center; }
.reveals > span { grid-area: 1 / 1; }
.reveals[aria-expanded="false"] > span + span, .reveals[aria-expanded="true"] > span:first-child { visibility: hidden; }
.btn.danger { background: #c2361f; color: #fff; }
.set-more .btn.danger { justify-self: end; }
/* Two-step sign-in: its picture and secret, and the recovery codes, shown once. */
.two-step-qr { display: block; width: 180px; height: 180px; border-radius: 10px; background: #fff; }
.two-step-secret { font: 500 15px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; overflow-wrap: anywhere; user-select: all; }
.recovery { padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--sunk); font-size: 14px; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 28px; margin: 12px 0 0; padding: 0; list-style: none;
  font: 500 15px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; user-select: all; }
/* A phone: the parts a grid of tiles, a picture over each name, all one size; a part opened
   from it on its own, under the way back to them. (A page drawn after a form with no place in
   its address opens on the part it has something to say in: recovery codes, an import's problem.) */
@media (max-width: 680px) {
  .set-layout { display: block; margin-top: 18px; }
  .set-layout [id] { scroll-margin-top: 136px; }
  .set-layout .set-group { scroll-margin-top: 100vh; }
  .phone-squares .set-nav { position: static; display: block; margin-bottom: 16px; }
  /* Two to a row at every phone width (owner, 11-13: "i liked how it looked more with two"), a little wider than tall so nine fit on a screen. */
  .phone-squares .set-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .phone-squares .set-nav a {
    --lit-bg: var(--text); --lit-fg: var(--bg);
    display: grid; place-content: center; justify-items: center; gap: 8px; aspect-ratio: 4 / 3; min-width: 0; padding: 6px;
    border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text);
    font-size: 14px; text-align: center; transition: background .15s, color .15s;
  }
  .phone-squares .set-nav svg {
    display: block; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  }
  /* (Opened on its own: no tile is lit; the squares are a list to choose from.) */
  .phone-squares .set-nav a { --lit-bg: var(--surface); --lit-fg: var(--text); }
  :root:has(.phone-squares :is(.set-group:target, .set-group :target, .set-group.asked)) .set-head,
  .phone-squares:has(.set-group:target, .set-group :target, .set-group.asked) .set-nav,
  .phone-squares:not(:has(.set-group:target, .set-group :target)) .set-group:not(.asked) { display: none; }
  .phone-squares:has(.set-group:target, .set-group :target, .set-group.asked) { margin-top: var(--page-top); }
  .phone-squares .set-back { display: inline-flex; align-items: center; gap: 10px; justify-self: start; min-height: 44px; margin-top: -10px; color: var(--text-2); font-size: 15px; font-weight: 500; }
  .set-count { float: none; margin-left: 4px; }
  .phone-squares .set-back::before { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 0 1.8px 1.8px; rotate: 45deg; }
  .set-row { padding-inline: 16px; }
  .set-card > :is(.set-said, .door-problem) { margin-inline: 16px; }
}
/* The narrowest phones: a choice of three ("People you follow") across the row, a long word
   on two lines in its pill rather than past the card's edge. */
@media (max-width: 360px) {
  .set-what { flex-basis: 8em; }  /* (a row's button stays beside its words where they are short: Username's Change was 4px short of room at 320 and fell under them, as no other row's button does) */
  .set-choice { width: 100%; }
  .set-choice button { flex: 1 1 auto; padding: 0 8px; font-size: 13.5px; line-height: 1.1; }
  .set-choice button.long { white-space: normal; }
}
/* A choice of three is 306px wide and has that room only from 376px of window: between the narrowest phones' rules (above) and there it
   takes the row's width with its pills sharing it, so that it never pushes its card past the page's margin (owner's phone, 366px wide,
   11-20: the cards stood 8px from the right edge, 18px from the left). */
@media (min-width: 361px) and (max-width: 379px) {
  .set-choice:has(> button:nth-child(3)) { width: 100%; }
  .set-choice:has(> button:nth-child(3)) button { flex: 1 1 auto; padding-inline: 8px; }
}
/* The admin's page: Settings' layout and cards (above), its counts in the text's colour. */
.admin .set-state { color: var(--text); font-size: 15px; font-variant-numeric: lining-nums tabular-nums; }
/* What was reported (app/moderation.py): the thing, whose it is, what it says, each report on
   it; its actions under them, as a row's wide control is. */
.admin-report { align-items: flex-start; }
.admin-report > .set-what { flex-basis: 100%; gap: 4px; }
.admin-report i { font-style: normal; }
.admin-said { margin: 2px 0; color: var(--text); font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-reason b { color: var(--text); font-weight: 550; }
.admin .set-acts form { display: contents; }
.admin-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
/* Installed, it is already on the phone. */
@media (display-mode: standalone) { #phone, .set-nav [data-part="phone"] { display: none; } }
.door-invited { margin: -14px 0 26px; color: var(--text-2); font-size: 15px; }
.door-invited[data-passkey-only] { margin: 0 0 18px; }

/* ---- an import, being looked over ---- */

.import-wait { max-width: 520px; margin-top: 40px; display: grid; gap: 14px; color: var(--text-2); }
.import-bar { height: 8px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.import-bar i { display: block; width: var(--p, 0%); height: 100%; background: var(--accent); transition: width .4s; }
.import-top, .import-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.import-top p { max-width: 64ch; color: var(--text-2); }
.import-kind { margin: 44px 0 14px; }
.import-kind small { margin-left: 8px; color: var(--text-3); font: 500 15px var(--sans); }
.import-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.import-rows label { display: grid; grid-template-columns: 20px 36px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
@media (hover: hover) { .import-rows label:hover { background: color-mix(in srgb, var(--sunk) 55%, transparent); } }
.import-rows input { width: 16px; height: 16px; accent-color: var(--accent); }
.import-rows .cover { border-radius: 4px; box-shadow: none; }
.import-rows label:has(input:not(:checked)) { opacity: .45; }
.import-what b { display: block; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-what small { display: block; margin-top: 1px; color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* (On a phone the small line wraps rather than cut its last words, "on your shelf" among them.) */
@media (max-width: 680px) { .import-what small { white-space: normal; text-overflow: clip; } }
/* What a row brought with it, in columns down the page: its state, its stars and (where any
   row has one) its day, each in its place whichever of them a row lacks. */
.import-did { display: grid; grid-template-columns: 15px 75px; align-items: center; column-gap: 12px; color: var(--text-2); font-size: 13px; }
main:has(.import-did time) .import-did { grid-template-columns: 15px 75px 80px; }
.import-did > span { grid-column: 1; }
.import-did > .stars { grid-column: 2; --s: 15px; }
.import-did > time { grid-column: 3; justify-self: end; white-space: nowrap; }
@media (max-width: 680px) {
  /* On a phone the day goes under the stars, and the name keeps the room. */
  main:has(.import-did time) .import-did { grid-template-columns: 15px 75px; row-gap: 3px; }
  .import-did > time { grid-column: 1 / -1; grid-row: 2; }
  .import-did > time:only-child { grid-row: 1; }
}
.import-did .status-icon { width: 15px; height: 15px; }
/* A Steam library's row brings only how long its game was played. */
.import-played { color: var(--text-2); font-size: 13px; white-space: nowrap; }
.import-note { color: var(--text-3); font-size: 14px; margin-bottom: 12px; }
.import-missing { columns: 3 220px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.import-missing li { padding: 4px 0; break-inside: avoid; }
.import-missing a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.import-done { margin-top: 40px; display: grid; gap: 20px; justify-items: start; }
.import-sum { font: 400 28px/1.25 var(--serif); max-width: 40ch; }


/* ---- a phone ---- */

@media (max-width: 680px) {
  /* The search box only where you search; everywhere else it is a place in the dock. */
  body:not(.searching) .find { display: none; }
  /* However the phone draws its own bar below, nothing of the page shows under the dock. */
  .dock::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 160px; background: var(--bg); }

  /* A profile's sections on one line; the shelf's order an icon at the end of its filters. */
  .tabs { flex-wrap: nowrap; gap: 0 clamp(10px, 3.6vw, 22px); margin-top: var(--page-top); }
  .tabs a { font-size: clamp(23px, 7.6vw, 34px); white-space: nowrap; }
  .list-sort select {
    padding: 0; color: transparent;
    white-space: nowrap; overflow: clip;  /* its unseen word on one line: two made the box that holds it taller than the line */
    background: var(--surface) var(--order) center / 17px no-repeat;
  }
  .list-sort option { color: var(--text); }
  /* (A list's ends beside Edit; its unseen word stays inside it: the line is no wider.) */
  .list-sort select { width: 34px; height: 34px; }

  /* Each line of filters goes across the screen; one that holds more than fits (a shelf with
     anime and manga apart) swipes sideways rather than being cut off. */
  .chips { display: flex; overflow-x: auto; margin-inline: 0; padding-inline: 0; border-bottom: 1px solid var(--line); }
  /* (Each line has 2px more about it, its own room replaced by this one's: 12 + 10 + 2 = 24px
     under the tabs, 2 + 10 + 8 = 20 over what they show; a section with a name 24px.) */
  /* The kinds as their pictures, so that six and All stand in one line with no swiping. */
  .joined [data-kind] > svg { display: block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .joined [data-kind] > svg .full { fill: currentColor; stroke: none; }
  .joined [data-kind] > .kind-word { display: none; }
  .chips .joined [data-all] > svg { display: block; flex: none; width: 19px; height: 19px; margin-block: -1px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .chips .joined [data-all] > .kind-word { display: none; }
  .chips + :is(.block, .tags.lead, .search-start, .empty) { margin-top: 16px; }
  .chips + .block:has(> :is(.block-head, .h2, .looking-head):first-child) { margin-top: 20px; }
  .chips:has([data-kind][aria-current]) + .block.looking { margin-top: 16px; }
  .chips-line { overflow-x: auto; scrollbar-width: none; margin-inline: 0; padding: 0; }
  .chips-line::-webkit-scrollbar { display: none; }
  /* The lines are full as they are: the buttons the size a phone's were, not a computer's. */
  .joined a { gap: 7px; height: 36px; min-width: 34px; padding: 0 10px; font-size: 15px; }
  .joined a .status-icon { width: 19px; height: 19px; }
  .chips .joined { flex: 0 0 auto; gap: 20px; }
  .chips .joined a { flex: 0 0 auto; height: auto; min-width: 0; padding: 8px 0 11px; }
  /* Search's kinds (owner, 11-22): seven equal slots across the whole screen, bigger pictures
     (28px in a 44px-high press target, 46px+ wide at 320). The row runs out to the screen's edges
     (the gutter's 18px each side) so that a slot is never under 44px; underline under the chosen one. */
  .chips:has(.joined.kinds-even) { margin-inline: calc(var(--gutter) * -1); }
  .chips-line:has(.joined.kinds-even) { flex: 1 1 auto; overflow: visible; }
  .chips .joined.kinds-even { flex: 1 1 auto; display: flex; gap: 0; }
  .chips .joined.kinds-even a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; height: 44px; padding: 0; }
  .chips .joined.kinds-even a > svg { width: 28px; height: 28px; margin: 0; }
  .chips .joined.kinds-even a[aria-current]::after { left: 50%; right: auto; width: 34px; margin-left: -17px; bottom: -1px; }
}

.get-app {
  position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(62px + env(safe-area-inset-bottom, 0px) + 12px);
  display: flex; align-items: center; gap: 10px; padding: 12px 8px 12px 12px;
  border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface);
  box-shadow: 0 18px 40px -14px rgb(0 0 0 / .5);
  animation: get-app-in .35s cubic-bezier(.2, .8, .2, 1);
}
.get-app[hidden] { display: none; }
.get-app img { flex: none; width: 44px; height: 44px; border-radius: 11px; }
.get-app-text { flex: 1; min-width: 0; display: grid; gap: 2px; margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.35; }
.get-app-text b { color: var(--text); font-size: 14.5px; font-weight: 600; }
.get-app-text svg { width: 16px; height: 16px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.get-app .btn { flex: none; }
.get-app .icon-btn { flex: none; width: 34px; height: 34px; }
.get-app .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@keyframes get-app-in { from { transform: translateY(18px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .get-app { animation: none; } }
@media (min-width: 681px) { .get-app { display: none !important; } }

/* Installed on a phone, Android draws its own bar under the dock, black in dark mode, and on
   most phones the page cannot paint it. In the app, the dock takes the same black, so the
   two read as one (a phone's: the desk's left rail is the page's own ground). */
@media (display-mode: standalone) and (prefers-color-scheme: dark) and (max-width: 680px) {
  :root:not([data-theme="light"]) .dock, :root:not([data-theme="light"]) .dock::after { background: #000; }
}
@media (display-mode: standalone) and (max-width: 680px) {
  :root[data-theme="dark"] .dock, :root[data-theme="dark"] .dock::after { background: #000; }
}

/* ---- a title's music: its openings and endings, its soundtracks ---- */
/* Each folded (an entry's themes, an album): its head a row between lines, opened on asking. */
.music-folds { border-bottom: 1px solid var(--line); }
.music-part, .music-album { border-top: 1px solid var(--line); }
.music-head { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 14px; min-height: 60px; padding: 10px 0; }
summary.music-head { cursor: pointer; list-style: none; }
summary.music-head::-webkit-details-marker { display: none; }
summary.music-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.music-fold { width: 20px; height: 20px; fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
@media (hover: hover) { summary.music-head:hover .music-fold { stroke: var(--text); } }
details[open] > .music-head .music-fold { transform: rotate(180deg); }
.music-part-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-part-name b { font-weight: 600; }
.music-part-name span { margin-left: 6px; color: var(--text-3); font-weight: 500; }
.music-count { color: var(--text-3); font-size: 13.5px; }
.songs { display: grid; margin: 0; padding: 0; list-style: none; }
.song { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 32px; align-items: center; gap: 4px 14px; min-height: 52px;
  padding: 6px 0; border-top: 1px solid var(--line); }
.song-label { color: var(--text-3); font-size: 12.5px; font-weight: 650; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.song-what { display: grid; gap: 2px; min-width: 0; }
.song-what b { font-weight: 550; overflow-wrap: break-word; }  /* (whole, as an episode's name) */
.song-what small { overflow: hidden; color: var(--text-3); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.song-play { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; color: var(--text-3); }
@media (hover: hover) { a.song-play:hover { background: var(--sunk); color: var(--text); } }
.song-play svg { width: 16px; height: 16px; fill: currentColor; }
/* An album's head: its cover beside its name (the row a little taller for it). */
.music-album .music-head { grid-template-columns: 72px minmax(0, 1fr) 20px; gap: 16px; padding: 12px 0; }
.music-album div.music-head { grid-template-columns: 72px minmax(0, 1fr); }
.music-cover { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--sunk); }
.music-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* No cover (none known, or it will not come): a note, quietly, where it would be. */
.music-cover:not(:has(img))::after {
  content: ""; display: block; height: 100%; background: var(--text-3); opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 18V5l12-2v13' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='6' cy='18' r='3' fill='black'/%3E%3Ccircle cx='18' cy='16' r='3' fill='black'/%3E%3C/svg%3E") center / 38% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 18V5l12-2v13' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='6' cy='18' r='3' fill='black'/%3E%3Ccircle cx='18' cy='16' r='3' fill='black'/%3E%3C/svg%3E") center / 38% no-repeat;
}
.music-album-what { display: grid; gap: 5px; justify-items: start; min-width: 0; }
.music-album-what h3 { max-width: 100%; overflow: hidden; font: 400 20px/1.15 var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.music-source { display: inline-block; margin: 12px 0 16px; color: var(--text-3); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
@media (hover: hover) { .music-source:hover { color: var(--text); } }
details[open] > .songs { margin-bottom: 8px; }
.music-all { margin-top: 14px; }
/* On a phone the name has the line to itself, its stars under it (thumb-sized, as a season's). */
@media (max-width: 680px) {
  .song { grid-template-columns: 34px minmax(0, 1fr) 32px; grid-template-areas: "label what play" "label grade play"; gap: 8px 10px; padding: 10px 0; }
  .song-label { grid-area: label; } .song-what { grid-area: what; } .song-play { grid-area: play; }
  .song .rate { grid-area: grade; justify-self: start; }
  .music-album .music-head { grid-template-columns: 60px minmax(0, 1fr) 20px; gap: 14px; }
  .music-album div.music-head { grid-template-columns: 60px minmax(0, 1fr); }
  .music-album-what h3 { font-size: 18px; white-space: normal; }
  .music-part .music-head { grid-template-columns: minmax(0, 1fr) 20px; grid-template-areas: "name fold" "count fold"; gap: 2px 14px; }
  .music-part-name { grid-area: name; } .music-part .music-count { grid-area: count; } .music-part .music-fold { grid-area: fold; }
}

/* ---- a favorite's showcase: pressed, it opens over the profile as a card, its song playing ---- */

.showcase { width: min(640px, calc(100vw - 32px)); }
/* Opened, it takes the focus itself (not the first thing in it, ringed): nothing to mark. */
.showcase:focus { outline: none; }
.show-card {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 196px minmax(0, 1fr);
  grid-template-areas: "cover what" "cover picks" "cover said" "song song" "foot foot"; grid-template-rows: auto auto 1fr auto auto;
  gap: 0 26px; padding: 28px;
}
/* Its colours: its art blown up and blurred behind it all, under a veil of the page's own colour
   so its words read as anywhere else. */
.show-backdrop {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.5); filter: blur(44px) saturate(1.4); pointer-events: none;
}
.show-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: light-dark(rgb(255 255 255 / .72), rgb(22 21 19 / .62)); }
/* Or the art's own colours, as a gradient (--p1, the most of it; --p2, its most vivid, from the
   top left; --p3, one unlike both, from the bottom right), fitted to the theme (pale in the light,
   deep in the dark: the words read over them as they are). */
.show-card.wash {
  --p1: light-dark(var(--p1l), var(--p1d)); --p2: light-dark(var(--p2l), var(--p2d)); --p3: light-dark(var(--p3l), var(--p3d));
  background:
    radial-gradient(120% 90% at 0% 0%, var(--p2), transparent 70%),
    radial-gradient(110% 90% at 100% 100%, var(--p3), transparent 72%),
    var(--p1);
}
.show-card.wash .show-backdrop, .show-card.wash::before { display: none; }
.show-cover { position: relative; grid-area: cover; align-self: start; }
.show-poster { display: block; }
/* Its video, in place of its cover: TikTok's player, as tall as TikTok's are (9:16), over the
   cover until it comes. A spoiler: veiled until asked for. With a video, its sound is the
   video's: no song. */
.show-screen { position: relative; }
.show-frame { display: none; }
/* Its own shape (--r, its width over its height, from TikTok; 9:16 unknown). */
.has-video .show-screen {
  aspect-ratio: var(--r, .5625); overflow: hidden; border-radius: 12px; background: #000;
  box-shadow: 0 2px 4px rgb(0 0 0 / .16), 0 22px 40px -16px rgb(0 0 0 / .6);
}
.has-video .show-poster, .has-video .show-poster .cover { height: 100%; }
.has-video .show-cover .cover { aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.has-video .show-frame { position: absolute; inset: 0; display: block; }
.show-frame iframe { display: block; width: 100%; height: calc(100% + 2px); margin-top: -1px; border: 0; }
/* Unseen till it plays (its cover under it), a ring turning over the cover meanwhile. */
.show-screen:not([data-waiting]) .show-frame { transition: opacity .25s; }  /* (hidden at once; shown, faded in) */
.show-screen[data-waiting] .show-frame { opacity: 0; }
.show-screen[data-waiting]::after {
  content: ""; position: absolute; top: 50%; left: 50%; z-index: 2; width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border: 2.5px solid rgb(242 239 233 / .3); border-top-color: #f2efe9; border-radius: 50%; animation: spin .9s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .show-screen[data-waiting]::after { animation: none; } }  /* (a pixel past it, top and bottom: TikTok's player falls a hair short of its frame, which showed as a line) */
.show-failed span { font: 600 12px/1.2 var(--sans); letter-spacing: .11em; text-transform: uppercase; }
.show-failed u { text-underline-offset: 3px; text-decoration-color: rgb(242 239 233 / .4); }
/* TikTok's player failing: over the cover, as the veil over a spoiler is, the way to the video. */
.show-failed {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; gap: 8px; padding: 16px;
  background: rgb(12 11 10 / .72); color: #f2efe9; font-size: 14px; text-align: center;
}
.has-video .show-song { display: none; }
/* (Its edit veiled: the card is drawn without it, cover and song; "Watch edit" makes it the edit, and takes the song away.) */
/* A press on the video plays or pauses it (or, without its sound yet, gives it its sound): over it
   but for TikTok's own name along its top and buttons down its right side. Without its sound, a
   mark in its corner says so. */
.show-tap { display: none; }
.has-video .show-tap { position: absolute; top: 64px; right: 64px; bottom: 0; left: 0; z-index: 1; display: block; padding: 0; border: 0; background: none; cursor: pointer; }
.show-tap:not([data-started]) { pointer-events: none; }  /* (till it has played: TikTok's own play button) */
/* (A press on it lights nothing: a phone would light the layer's square, the video's lower left.) */
.show-tap { -webkit-tap-highlight-color: transparent; }
.show-tap:focus:not(:focus-visible) { outline: none; }
.show-quiet {
  position: absolute; left: 10px; bottom: 10px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgb(14 13 12 / .7); color: #f2efe9; pointer-events: none;
}
.show-quiet svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* A wide one (a film's shape): across the top of the card, as wide as it, everything under it;
   Close on a line of its own above it. */
.show-card.has-video { grid-template-areas: "cover cover" "what what" "picks picks" "said said" "song song" "foot foot"; }
/* (Edge to edge with the card's top and sides, as a cover photo; its two buttons in line with the
   words under it.) */
.show-card.has-video .show-cover { margin: -28px -28px 22px; }
.show-card.has-video .show-screen { width: 100%; border-radius: 0; box-shadow: none; }  /* (as wide as the card when its height is held down, too: profile.js) */
/* On a wide screen the video is wider than a cover (TikTok's own words in it, its cookie question
   in Europe, need the room); the words beside it narrower. */
@media (min-width: 681px) { .show-card.has-video { grid-template-columns: 252px minmax(0, 1fr); } }
.show-cover .cover { border-radius: 12px; box-shadow: 0 2px 4px rgb(0 0 0 / .16), 0 22px 40px -16px rgb(0 0 0 / .6); }
.show-what { grid-area: what; min-width: 0; }
.show-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.show-head .eyebrow { min-width: 0; }
.show-tools { display: inline-flex; align-items: center; gap: 4px; flex: none; margin: -6px -6px -6px 0; }
.show-tool { width: 32px; height: 32px; color: var(--text-2); }
.show-tool svg { width: 16px; height: 16px; }
.show-tool .show-tool-b { display: none; }
.show-tool:is([data-done], [data-has]) .show-tool-a { display: none; }
.show-tool:is([data-done], [data-has]) .show-tool-b { display: block; }
.show-tool[data-has] { background: var(--text); color: var(--bg); }
.show-tool[data-done] { color: var(--text); }
.show-name { margin-top: 10px; font: 400 34px/1.08 var(--serif); letter-spacing: -.005em; text-wrap: balance; overflow-wrap: anywhere; }
/* Its name goes to its page: underlined under a pointer, as a title's name is elsewhere. */
@media (hover: hover) { .show-name a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--line-2); } }
.show-by { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 12px; color: var(--text-2); font-size: 14px; }
.show-by-grade { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.show-by .stars { --s: 17px; }
.show-said { grid-area: said; min-width: 0; margin-top: 16px; }
.show-said:not(:has(> :not([hidden]):not(.spot-add))) { margin-top: 0; }
.editing .show-said:has(> .spot-add:not([hidden])) { margin-top: 16px; }
.show-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; color: var(--text); font-size: 15px; line-height: 1.5; }
.show-note > span { min-width: 0; overflow-wrap: anywhere; }
.show-review-link { display: inline-flex; align-items: center; color: var(--text-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: color .15s; }
.show-note[hidden], .show-review-link[hidden] { display: none; }
@media (hover: hover) { .show-review-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; } }
/* Their favorite character in it (its picture, or its initial) and episode, under their grade. */
.show-picks { grid-area: picks; display: grid; gap: 12px; margin-top: 20px; min-width: 0; }
/* (Nothing picked: no room for it; in edit mode, room for what can be added.) */
.show-picks:not(:has(> .show-pick:not([hidden]):not(.spot-add))) { margin-top: 0; }
.editing .show-picks:has(> .spot-add:not([hidden])) { margin-top: 20px; }
.show-pick { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; }
.show-pick-face, .char-face {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden; border-radius: 50%;
  background: var(--sunk); color: var(--text-2); font: 400 20px/1 var(--serif);
}
.show-pick-face img, .char-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.show-pick-face.mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.show-pick-what { display: grid; min-width: 0; }
.show-pick-what b { font-size: 15px; font-weight: 550; line-height: 19px; overflow-wrap: anywhere; }
.show-pick-what small { color: var(--text-3); font-size: 13px; line-height: 17px; }
/* Its first three lines (the art, the song, the edit come first): the rest on its title's page. */
.show-said .rev-text { margin-top: 0; }
.show-said .rev-text.clamped { -webkit-line-clamp: 3; }
.show-said .rev-text.scrolls { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; padding-right: 8px; }
.show-said .rev-text.scrolls:not(.at-end) { -webkit-mask-image: linear-gradient(#000 calc(100% - 40px), transparent); mask-image: linear-gradient(#000 calc(100% - 40px), transparent); }
/* Its "Read more" on a line of its own under them (not laid over their end: the card's colours
   are no single colour to fade into). */
.show-said .clamp-more { position: relative; inset: auto; display: inline-block; margin-top: 8px; padding: 0; background: none; color: var(--text-2); font-size: 13.5px; line-height: normal; }
.show-said .spoiler { margin-top: 0; }
.show-said .spoiler .rev-text { margin-top: 10px; }
.show-part { margin-bottom: 6px; color: var(--text-3); font-size: 13px; }
/* Closed by a press beside it, or Escape (no Close button). */
/* Its song: a round button to play or stop it, its name and singer over the line it has
   played, and where it is on Apple Music (whose clip it is). */
.show-song {
  grid-area: song; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  margin-top: 26px; padding: 11px 20px 11px 11px; border-radius: 34px;
  background: light-dark(rgb(255 255 255 / .6), rgb(0 0 0 / .26));
}
/* (The spotlight's own colours, for a browser that does not know light-dark(): as above.) */
@supports not (color: light-dark(#000, #fff)) {
  .show-card::before { background: rgb(255 255 255 / .72); }
  .show-card.wash { --p1: var(--p1l); --p2: var(--p2l); --p3: var(--p3l); }
  .show-song { background: rgb(255 255 255 / .6); }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .show-card::before { background: rgb(22 21 19 / .62); }
    :root:not([data-theme="light"]) .show-card.wash { --p1: var(--p1d); --p2: var(--p2d); --p3: var(--p3d); }
    :root:not([data-theme="light"]) .show-song { background: rgb(0 0 0 / .26); }
  }
  :root[data-theme="dark"] .show-card::before { background: rgb(22 21 19 / .62); }
  :root[data-theme="dark"] .show-card.wash { --p1: var(--p1d); --p2: var(--p2d); --p3: var(--p3d); }
  :root[data-theme="dark"] .show-song { background: rgb(0 0 0 / .26); }
}
.show-play {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: #fff; cursor: pointer;
}
/* The record: black vinyl and its grooves, the album's cover its label (the accent where there
   is none), a hole in the middle. It turns while the song plays and rests where it was when it
   stops; the light on it stays where it is as it turns. */
.record {
  position: absolute; inset: 0; border-radius: 50%;
  background: repeating-radial-gradient(circle, #111 0 1.2px, #1d1c1b 1.2px 2.4px);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .3), 0 4px 12px -4px rgb(0 0 0 / .6);
  animation: spin 3.6s linear infinite paused;
}
[data-playing] .record { animation-play-state: running; }
.record::before, .record img { position: absolute; top: 27%; left: 27%; width: 46%; height: 46%; border-radius: 50%; }
.record::before { content: ""; background: var(--accent); }
.record img { object-fit: cover; }
.record::after { content: ""; position: absolute; top: calc(50% - 2px); left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: #111; }
.show-play::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 20deg, transparent 0 7%, rgb(255 255 255 / .14) 12%, transparent 17% 50%, rgb(255 255 255 / .09) 62%, transparent 67%);
}
.show-play svg { position: relative; z-index: 1; grid-area: 1 / 1; width: 20px; height: 20px; fill: currentColor; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .65)); }
/* Still: a play mark on it. Playing: nothing on it (where there is a pointer, a pause mark under it). */
.show-play .when-playing, .show-play .when-none, [data-playing] .show-play .when-still { visibility: hidden; }
@media (hover: hover) { [data-playing] .show-play:hover .when-playing { visibility: visible; } }
/* A song Apple has no clip of: no record, its note, with nothing to play. */
.show-play:disabled { background: var(--line); color: var(--text-3); cursor: default; }
.show-play:disabled .record, .show-play:disabled::after, .show-play:disabled .when-still { display: none; }
.show-play:disabled .when-none { visibility: visible; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; filter: none; }
.show-play .when-none circle { fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .record { animation: none; } }
.show-song-what { display: grid; min-width: 0; }
.show-song-what b, .show-song-what small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Name, singer and line exactly as tall as the button (19 + 16 + 8 + 3 = 46): the button sits
   as far in from the pill's top, bottom and end. */
.show-song-what b { font-size: 15px; font-weight: 550; line-height: 19px; }
.show-song-what small { color: var(--text-2); font-size: 13px; line-height: 16px; }
.show-song-what small:empty { display: none; }
.show-line { display: block; height: 3px; margin-top: 8px; overflow: hidden; border-radius: 2px; background: var(--line-2); }
.show-line > span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.show-play:disabled ~ .show-song-what .show-line { display: none; }
/* Apple's own badge, as Apple asks a song there be linked: as it comes, 30px tall (smaller on a
   phone, where room is short, as Apple allows). */
.show-apple { display: block; flex: none; line-height: 0; }
.show-apple img { display: block; width: auto; height: 30px; }
.show-foot { grid-area: foot; display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.show-acts { display: flex; gap: 8px; }
.show-acts .btn { gap: 7px; }
.show-acts [data-unveil] svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
/* Choose or Change: the one it is, in the room of the longer (nothing moves when it changes). */
.pick-words { display: inline-grid; justify-items: center; }
.pick-words > span { grid-area: 1 / 1; }
[data-has] > .pick-words > span:first-child, :not([data-has]) > .pick-words > span + span { visibility: hidden; }
@media (max-width: 680px) {
  .show-card {
    grid-template-columns: 108px minmax(0, 1fr); grid-template-areas: "cover what" "picks picks" "said said" "song song" "foot foot";
    grid-template-rows: auto; gap: 0 18px; padding: 20px;
  }
  .show-name { margin-top: 8px; font-size: 25px; }
  .show-by { margin-top: 10px; }
  .show-song { margin-top: 20px; padding-right: 16px; gap: 12px; }
  .show-apple img { height: 24px; }
  /* What can be done, side by side across the card (the main one at the right). */
  .show-foot { display: grid; justify-content: stretch; justify-items: start; gap: 14px; margin-top: 18px; }
  .show-acts { order: -1; width: 100%; }
  .show-acts .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; }
  /* A video across the top of the card, whatever its shape (a phone: as wide as the card, edge to edge, as a wide one is on
     a desk), in its own shape; held lower where there is no room (profile.js), and TikTok then blurs its sides; the rest under it. */
  .show-card.has-video { grid-template-areas: "cover cover" "what what" "picks picks" "said said" "song song" "foot foot"; }
  .show-card.has-video .show-cover { justify-self: stretch; margin: -20px -20px 18px; }
  .show-card.has-video .show-screen { width: 100%; height: auto; border-radius: 0; box-shadow: none; }
}
/* The choice of its song: its label (OP1, ED2; a note for a track or any song) in the column
   a title's cover has in the other pickers. */
/* Cover or TikTok: the two, joined, as the shelf's choices are. */
.joined button {
  display: inline-flex; align-items: center; justify-content: center; height: 28px; min-width: 34px; padding: 0 14px; border: 0;
  border-radius: 999px; background: none; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background .15s, color .15s;
}
@media (hover: hover) { .joined button:hover { color: var(--text); } }
.joined button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.media-note { color: var(--text-3); font-size: 13.5px; }
.song-choice-label {
  display: grid; place-items: center; height: 26px; border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--text-3); font: 600 11px/1 var(--sans); letter-spacing: .05em; white-space: nowrap;
}
.song-choice-label svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.song-choice-label circle { fill: currentColor; }
.song-found { min-height: 120px; }
.song-found[aria-busy], .song-choices button[aria-busy] { opacity: .55; }
.song-none { justify-self: start; }
/* Picking an episode (a season at a time) or a character (filtered by name). */
.pick-found { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.pick-found[aria-busy] { opacity: .55; }
.pick-found .five-pick { justify-self: start; }
.chapter-pick { display: flex; gap: 10px; }
.chapter-pick input { flex: 1 1 auto; min-width: 0; }
.choices .char-face { font-size: 18px; }

/* ---- a spotlight edited in place (for its owner) ----
   "Edit spotlight": a pencil on each part (its cover, its song, their picks), and, where one is
   missing, a place to add it; a part pressed opens its choices in the card, beside its cover (on
   a phone, under it), in place of its words, picks and song. */
.spot-part, .spot-add, .spot-slot { display: none; }
.editing .spot-part { display: inline-flex; }
.editing .spot-add:not([hidden]) { display: grid; }
.editing .show-tap, .editing .show-quiet, .editing .show-apple { display: none; }
/* (Nor the word that its TikTok is not answering: it lies over the cover, and the cover's button is how a video that will not play is changed.) */
.editing .show-failed { display: none; }
.editing.has-video .show-song:not([hidden]) { display: grid; }
.editing-part .show-picks, .editing-part .show-said, .editing-part .show-song, .editing-part .show-song-add { display: none !important; }
.editing-part .spot-slot { grid-area: said; display: block; min-width: 0; margin-top: 18px; }
.spot-part {
  align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; border: 0; border-radius: 999px;
  background: rgb(14 13 12 / .84); color: #f2efe9; font: inherit; font-size: 13px; font-weight: 550; white-space: nowrap; cursor: pointer;
  box-shadow: 0 0 0 1px rgb(242 239 233 / .28), 0 2px 8px rgb(0 0 0 / .35);  /* seen on dark art too */
}
@media (hover: hover) { .spot-part:hover { background: rgb(14 13 12 / .95); } }
.spot-part svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spot-part-art { position: absolute; left: 10px; bottom: 10px; z-index: 2; }
.show-card.editing.has-video .spot-part-art { left: 28px; }
.spot-part-song { grid-column: 3; }
.spot-part-pick { width: 30px; padding: 0; }
.editing .show-pick { grid-template-columns: 40px minmax(0, 1fr) auto; }
/* What is not there yet: a dashed place for it, where it would be. */
.show-pick.spot-add { width: 100%; padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; text-align: left; cursor: pointer; }
.spot-add .show-pick-face { border: 1.5px dashed var(--line-2); background: none; color: var(--text-3); }
@media (hover: hover) { .spot-add:hover .show-pick-face, .show-song-add:hover .show-play-add { border-color: var(--text-3); color: var(--text-2); } }
.show-song-add {
  grid-area: song; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 26px; padding: 11px 20px 11px 11px;
  border: 1.5px dashed var(--line-2); border-radius: 34px; background: none; color: var(--text-2); font: inherit; font-size: 15px; font-weight: 550; text-align: left; cursor: pointer;
}
.show-play-add { display: grid; place-items: center; width: 46px; height: 46px; border: 1.5px dashed var(--line-2); border-radius: 50%; color: var(--text-3); }
/* Its plus drawn, not a letter (a "+" sits where the font puts it, off its circle's middle): at the
   middle, the same in each. */
.spot-add .show-pick-face svg, .show-play-add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
/* A part's choices, in the card. */
.spot-editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.spot-editor-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.spot-editor-title { font: 400 24px/1.1 var(--serif); }
.spot-art-switch { justify-self: start; }
.spot-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.spot-panel .taste-go { margin-top: 4px; }
.spot-editor .cover-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 12px; }
@media (max-width: 680px) {
  .show-song-add { margin-top: 20px; }
  /* (Its pencil alone on a phone's small cover.) */
  .spot-part-art { left: 8px; bottom: 8px; width: 30px; padding: 0; }
  .spot-part-art span { display: none; }
  .show-card.editing.has-video .spot-part-art { left: 20px; }
}

/* The admin's list of people (TikToks without the checks): a tick each, one under another. */

/* Notes kept while something is under way (app/notes.py): a card where the review would be,
   marked as only its writer's. */
.notes-mark { color: var(--text-2); }

/* ---- fields on a phone ---- */
/* A phone's browser zooms the page into a field whose words are smaller than 16px, and leaves it
   zoomed. Under a finger every field's words are 16px; its box stays as it was wherever the box
   has its own size (the comment box has done this since it was made). */
@media (pointer: coarse) {
  .find input, .count-say input, .when-parts select, .when-parts input, .five-pick select, .pick-ghost,
  .set-shelf-name input, .invite > input, .list-new input, .set-field { font-size: 16px; }
  /* (a field that fills its row asks for no width of its own: at 16px its twenty letters would
     push the row past the column) */
  .invite > input { width: 0; }
}

/* ---- a phone: where every page starts ----
   One distance from the bar at the top to the first thing on every page (owner, 11-13: 50 to
   65px was "too big"): 24px, as a title's page stood already and as the filters stand under a
   profile's tabs and a section's name over its covers. To the box of what comes first: a page's
   heading, Home's first section, a line of filters, the start of a search. (Last in the file:
   each of these is first set further up.) */
@media (max-width: 680px) {
  .shelf-head, .who-head, .set-head, .hero, .title { padding-top: var(--page-top); }
  .shelf-head > h1:first-child, .set-head > h1:first-child { margin-top: 0; }
  main > :is(.block:first-child, .aloud:first-child + .block) { margin-top: var(--page-top); }
  #results > .search-start:first-child { margin-top: var(--page-top); }
  #results > .chips:first-child { margin-top: calc(var(--page-top) - 2px); }  /* (its own 2px about it) */
}

/* The other tabs' head: on desktop, inline at the right of the tabs so switching tabs keeps the
   tabs in one spot; on narrower screens, stacked above the tabs. */
.tabs-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 56px; }
.tabs-bar > .tabs { flex: none; margin-top: 0; }
.who-mini { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 40px; }
.who-mini-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.who-mini .avatar { width: 52px; height: 52px; font: 400 28px/1 var(--serif); }
.who-mini-name { overflow: hidden; font: 400 34px/1.2 var(--serif); letter-spacing: -.01em; white-space: nowrap; text-overflow: ellipsis; }
.who-mini-handle { color: var(--text-3); font-size: 14px; white-space: nowrap; }
.who-mini .who-acts form { display: contents; }
.who-mini .person-menu .pop-menu { left: auto; right: 0; }
.tabs-bar > .who-mini { flex: 0 1 auto; flex-wrap: nowrap; min-width: 0; gap: 12px; padding-top: 0; }
.tabs-bar .who-mini-who { gap: 10px; }
.tabs-bar .who-mini .avatar { width: 34px; height: 34px; font: 400 18px/1 var(--serif); }
.tabs-bar .who-mini-name { font: 400 22px/1.15 var(--serif); }
.tabs-bar .who-mini-handle { display: none; }
@media (max-width: 900px) {
  .tabs-bar { flex-direction: column; align-items: stretch; gap: 0; margin-top: 0; }
  .tabs-bar > .who-mini { order: -1; gap: 12px 20px; padding-top: 32px; }
  .tabs-bar .who-mini-who { gap: 12px; }
  .tabs-bar .who-mini .avatar { width: 44px; height: 44px; font-size: 24px; }
  .tabs-bar .who-mini-name { font-size: 30px; }
  .tabs-bar .who-mini-handle { display: inline; }
  .tabs-bar > .tabs { margin-top: 24px; }
}
@media (max-width: 680px) {
  .tabs-bar > .who-mini { flex-wrap: nowrap; padding-top: var(--page-top); }
  .tabs-bar .who-mini-who { gap: 10px; }
  .tabs-bar .who-mini .avatar { width: 40px; height: 40px; font-size: 22px; }
  .tabs-bar .who-mini-name { font-size: 26px; }
  .tabs-bar .who-mini-handle { display: none; }
  .tabs-bar > .tabs { margin-top: 20px; }
}

/* What is dragged by hand is not dragged by the browser: a long press on a cover or a link
   would start the phone's own drag and cancel the touch (common.js holdToDrag). */
.lists-block.editing .list-card img, .list-items[data-by-hand].editing > li img, .five.editing li[data-title] img,
.lists-block.editing .list-card a, .list-items[data-by-hand].editing > li a, .five.editing li[data-title] a { -webkit-user-drag: none; }

/* ---- the parts of a profile its owner may hide (owner, 11-14) ----
   A hidden part is not sent to anyone else; its owner sees the page as they do, with no sign of it (the Blocks sheet, in the edit mode, brings it
   back: profile.js). A new row that is off is the same: sent to its owner, unseen. */
[data-section][data-off] { display: none !important; }
.five-head { position: relative; }  /* (the favorites' heading row is the place its edit line, a drop's asking state and the menus stand against: as before the eyes' rules went) */
:is(.who-tags, .tally)[data-section] { position: relative; }

/* ---- the Profile tab, an album (owner, 11-14) ----
   The tabs first, at the left; then the top. With a 3×3 of favorites (.top-nine) it is two columns: the
   favorites at the left, a caption row under them (the word Favorites, its menu, Share), and at the right the
   person, level with the 3×3's foot: the picture and the name, their bio, accounts, Follow and who follows, the
   taste tags, then (the room between is what is left over) the slot (Now and Up next, or one of them, or what they
   finished) and the foot row (the counts and how they grade). With five, or none to show, a band (.top-band): the
   person at the left, the slot at the right, the foot row under, and then the favorites' row. Behind the top, the
   favorites' own covers, blurred to a glow (.top-glow). Under it, rows the page's width, 72px apart. Everything here is
   laid out by CSS from the window's width alone; a part its owner hid (data-off) is simply not there, and the
   rest closes up. A phone: one column, the person over the tabs. */
html:has(.album) { overflow-x: clip; }
.album { --gap: 56px; --av: 104px; --nm: 104px; --cap: 46px; position: relative; }
@media (max-width: 1099px) { .album { --gap: 36px; --av: 80px; --nm: 68px; } }
@media (max-width: 680px) { .album { --av: 72px; --nm: 56px; --nm-min: 14px; } }  /* (--nm is the size a short name has; a long one steps down from it, as the clamp below says: its floor was 56 too, so it never could) */
.album-top {
  position: relative; isolation: isolate; display: grid; align-items: start; column-gap: var(--gap);
  grid-template-columns: minmax(0, min(42%, 520px)) minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(32px, 1fr) auto auto auto;
  padding: 56px 0 var(--cap);
}
.album-top > * { min-width: 0; }
.album-top > .tabs { grid-column: 1 / -1; grid-row: 1; margin: 0 0 36px; }
.album-top:not(:has(> .five, > .slot)) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
}
/* With a 3×3 the person stands at the left and the 3×3 at the right (owner, 11-19: mirrored): from 1100px the tabs are the person column's
   first row and the 3×3 starts level with them; under it the tabs are a row over both (below). */
.top-nine .album-top { grid-template-columns: minmax(0, 1fr) minmax(0, min(42%, 520px)); }
/* From 1120px the 3×3's column is a little wider, so that the person's column gains in height what the head's row takes (owner, 11-19):
   under it the covers of Now / Up next are as wide as their column allows, and a wider 3×3 would take that from them. */
@media (min-width: 1120px) { .top-nine .album-top { grid-template-columns: minmax(0, 1fr) minmax(0, min(45%, 520px)); } }
@media (min-width: 1100px) { .top-nine .album-top > .tabs { grid-column: 1; } }

/* The glow: the favorites' smallest covers, a grid, blurred well past what is a cover, faint, fading out downward and at both
   sides, the window's whole width; the same quiet for a 3×3, five and any width. In the light theme it is only a tint (the
   covers' hue and saturation laid over the page's own light, so that a dark cover leaves no grey in it: mix-blend-mode),
   and the top then has no stacking context of its own for that to blend in. */
.top-glow {
  position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 40%, transparent 100%), linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 0, #000 40%, transparent 100%), linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); mask-composite: intersect;
}
.top-glow ol {
  position: absolute; top: 0; bottom: 0; left: -200px; right: -200px; display: grid; grid-auto-rows: 1fr; margin: 0; padding: 0; list-style: none;
  opacity: .42; filter: blur(120px) saturate(1.25);
}
.top-glow ol.of-nine { grid-template-columns: repeat(3, 1fr); }
.top-glow ol.of-five { grid-template-columns: repeat(5, 1fr); grid-auto-rows: 100%; opacity: .3; }
.top-glow li { position: relative; min-height: 0; contain: size; }  /* (a size of its own before its picture comes: nothing shifts as they load) */
.top-glow img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .album-top { isolation: auto; }
  :root:not([data-theme="dark"]) .top-glow { mix-blend-mode: color; }
  :root:not([data-theme="dark"]) .top-glow ol { opacity: .75; filter: blur(110px) saturate(1.9); }
  :root:not([data-theme="dark"]) .top-glow ol.of-five { opacity: .6; }
}
:root[data-theme="light"] .album-top { isolation: auto; }
:root[data-theme="light"] .top-glow { mix-blend-mode: color; }
:root[data-theme="light"] .top-glow ol { opacity: .75; filter: blur(110px) saturate(1.9); }
:root[data-theme="light"] .top-glow ol.of-five { opacity: .6; }
.album-top:has(> .five[data-off]) > .top-glow { display: none; }
/* (On a phone the glow stands behind the person only, gone by the tabs: over a narrow column of covers it read as a smudge.) */
@media (max-width: 680px) {
  .top-glow { bottom: auto; height: 380px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 35%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 35%, transparent 100%); }
  .top-glow ol,
  :root:not([data-theme="dark"]) .top-glow ol,
  :root[data-theme="light"] .top-glow ol { left: -120px; right: -120px; opacity: .45; filter: blur(70px) saturate(1.3); }
}

/* The person: the picture and the name side by side, the rest under them. */
.who-head { --bio-top: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 0; align-items: center; container-type: inline-size; min-width: 0; padding: 0; }
.who-name { display: contents; }
.who-head > :is(.who-pic-wrap, .avatar) { grid-column: 1; grid-row: 1 / span 2; margin-right: 24px; }
.avatar.xl { width: var(--av); height: var(--av); font-size: calc(var(--av) * .55); }
.who-name > .who-title { display: contents; }
.who-title > h1 {
  flex: 0 1 auto; min-width: 0; width: auto; margin: 0; white-space: nowrap; overflow-x: clip; text-overflow: ellipsis;
  font: 400 clamp(var(--nm-min, 56px), calc((100cqw - var(--av) - 24px) / (var(--n, 8) * .42)), var(--nm))/1 var(--serif); letter-spacing: -.015em;
}
.who-name > .who-line { grid-column: 2 / 4; grid-row: 2; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin: 8px 0 0; color: var(--text-3); font-size: 14px; white-space: nowrap; }
.who-title > h1 { grid-column: 2 / 4; grid-row: 1; }
.who-head .who-acts > form { display: contents; }
/* The name stands alone on its line, and what a visitor does (Follow, the menu, "Follows you" after them), or their owner's Edit profile
   where there is no favorites row, is a row of its own under the handle line, at the person's left edge (the picture's, the bio's):
   the same place and the same gaps for a short name and a long one, on a phone and on a desk. Where there is nothing to draw (the owner
   on a phone: his Edit profile is under the tabs) no row, and nothing moves. */
.who-head .who-acts { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin: 16px 0 0; }
.who-head .who-acts .who-follows-row { display: inline-block; margin: 0 0 0 4px; }
.who-counts > .who-follows-you { display: none; }
/* Where there is a row, the name and the handle line stand on the picture's foot (the row under them starts below the picture, so that
   its gap under the line is the same for any name: the room a short name leaves goes over it, not between the line and the row). */
.who-head:has(.who-acts) { --bio-top: 16px; grid-template-rows: 1fr auto auto; }
.who-head:has(.who-acts) :is(.who-title > h1, .who-line) { align-self: end; }
/* Their owner's head has no row (nothing stands where Edit profile did, 11-27), and is laid out as a visitor's is: the name and the line on the picture's foot, the lines 16px under the line a visitor's row would stand under. */
@media (min-width: 681px) {
  .who-head[data-about] { --bio-top: 16px; grid-template-rows: 1fr auto auto; }
  .who-head[data-about] :is(.who-title > h1, .who-line) { align-self: end; }
}
.who-name > :is(.who-bio, .who-problem, .who-links) { grid-column: 1 / -1; }
.who-name > .who-bio { max-width: 46ch; margin: var(--bio-top) 0 0; color: var(--text-2); font-size: 18px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.who-name > .who-problem { margin: 8px 0 0; }
.who-name > .who-links { margin: 14px 0 0 -7px; }
@media (pointer: coarse) { .who-name > .who-links { margin-left: -11.5px; } }  /* (a finger's 40px marks: the first one's ink, 11.5px in, on the words' left edge) */
/* Link accounts: beside Edit profile / Discard | Save, in the head's row, 10px to its right (there, unseen, at rest: nothing moves); on a
   phone, the other half of their row. Nowhere else. */
.who-head[data-about] .who-bio { min-height: 3em; }  /* (two lines of 1.5, no more: its owner's box is as tall at rest as editing) */
.who-head.editing .who-bio[data-edit-field] { min-height: calc(3em + 16px); }
.who-head .who-title > h1 { width: max-content; max-width: 100%; }  /* (each as wide as its words, a long name stepping down within the column: the box grows as it is typed in) */
.who-head .who-name > .who-bio { width: fit-content; }

/* Edit profile (their owner; Discard | Save in its place, Link accounts beside it): in the head's row under the handle line, on every
   profile (owner, 11-19), from 681px; a phone has its own under the tabs. */

/* The taste tags: one line (a pill that does not fit is not drawn, never half of one); editing, the whole row is one field, over them. */
.who-tags { position: relative; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px 6px; height: 30px; margin: 24px 0 0; min-width: 0; overflow: clip; overflow-clip-margin: 8px; }
.who-tags .tag { flex: none; }
.who-tags .link { margin-left: 6px; align-self: center; }
.tag-row { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px 6px; min-width: 0; margin: -4px; padding: 4px; }  /* (room round the pills for their focus rings, taken back) */
.tag-row:empty { display: none; }
/* The "Change" that is the whole row, pressed as one: a box 8px round the row (no eye stands at its end since 11-27, so the row is its owner's as it is
   anyone's, to its end). */
.who-tags:has(.tag) > .while-editing { position: absolute; inset: -8px; align-self: stretch; margin: 0; border-radius: 14px; color: transparent; text-decoration: none; overflow: hidden; }
.album-top:not(.editing) .who-tags .while-editing { visibility: hidden; }
/* (Editing, the row is a box, as the other fields are, and is pressed as one.) */
.album-top.editing .who-tags:has(.tag) > .while-editing { border: 1px solid var(--line-2); background: color-mix(in srgb, var(--text) 4%, transparent); cursor: pointer; }
@media (hover: hover) { .album-top.editing .who-tags:has(.tag) > .while-editing:hover { border-color: var(--text-3); } }
.album-top.editing .who-tags:has(.tag) > .while-editing:focus-visible { outline: 2px solid var(--text-3); outline-offset: -3px; }

/* The slot: under the person (or at the right of the band): Now and Up next side by side where both are there, each a
   few lines; one alone, a row of covers; neither, what they finished in that row (and its own row below is not drawn). */
.slot { min-width: 0; }
.slot:not(:has(.slot-part:not([data-off]))) { display: none; }
.slot:has(.slot-now:not([data-off]), .slot-next:not([data-off])) > .slot-fin { display: none; }
.slot-part { min-width: 0; }
.slot-head { margin-bottom: 16px; }
.slot-h { margin: 0; font: 400 24px/1.1 var(--serif); letter-spacing: -.005em; }
.slot-name { display: block; min-width: 0; font: 600 15px/1.3 var(--sans); }
.slot-name .w { display: inline-block; max-width: 100%; overflow: hidden; vertical-align: top; text-overflow: ellipsis; white-space: nowrap; }
.slot-text { min-width: 0; }
.slot-meta { display: block; margin-top: 2px; color: var(--text-3); font-size: 13px; line-height: 1.3; }
.slot-item { display: block; min-width: 0; }
.slot-item .cover { aspect-ratio: auto; transition: none; }
.fin-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }  /* (the stars and the day: two lines where one is too short; a day is never cut) */
.fin-meta .stars { --s: 12px; vertical-align: 0; }
.fin-meta > span:last-child { min-width: 0; }
/* One alone: a row of covers, left-aligned, 16px apart. */
.slot-items { display: grid; grid-template-columns: repeat(4, var(--cw)); grid-template-rows: auto; grid-auto-rows: 0; justify-content: start; column-gap: 16px; overflow: clip; overflow-clip-margin: 4px; }
.slot { --cw: 120px; }
.slot-items .slot-item .cover { width: var(--cw); height: calc(var(--cw) * 1.5); border-radius: 10px; }
.slot-items .slot-name { margin-top: 10px; font-size: 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* (Covers of 120x180 from 1200px: in the room a 3×3 leaves the person under that, the column would end below it.) */
@media (max-width: 1199px) { .slot { --cw: 80px; } .slot-items .slot-item .cover { border-radius: 8px; } .slot-items .slot-name { display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; } }
@media (max-width: 759px) { .slot-items > :nth-child(4) { display: none; } .slot-items { grid-template-columns: repeat(3, var(--cw)); } }
.slot-fin .slot-meta { width: calc(100% + 14px); margin-right: -14px; }
@media (max-width: 1199px) { .slot-fin .fin-meta { gap: 5px; font-size: 12px; } .slot-fin .fin-meta .stars { --s: 9px; } }
/* Now and Up next: grids of covers and nothing else (owner, 11-15): each cover is the link, with its kind in the corner. Both there:
   two equal columns (40px between, the parts stacked on a phone), each a grid of three across, two rows (six), 10px apart both ways. One
   alone (681px and up; a phone: four across, two rows): the covers as large as fit, across the whole slot: as many columns as it has
   titles (the page hands the count over: --n), four to eight from 1100, three to six from 681, 10px apart; more than the columns, a
   second row.
   The size is the slot's own width's (a container: --gc); in a 3×3's person column it is held to the room's height too (below). */
.slot { container-type: inline-size; --rw: 2; --gn: 4; --cg: 10px; --rg: 10px; --gc: calc((100cqw - 30px) / 4); --gh: calc(var(--gc) * 1.5); }
/* Both: three across each, two rows (six), 10px apart both ways, the parts 40px apart (stacked on a phone): a cover is
   (the slot's width - 80px) / 6; beside a 3×3 from 1100px it is held to the room's height too (below). */
.slot:has(.slot-now:not([data-off])):has(.slot-next:not([data-off])) { --gn: 3; --gc: calc((100cqw - 20px) / 3); }
@media (min-width: 681px) { .slot:has(.slot-now:not([data-off])):has(.slot-next:not([data-off])) { --gc: calc((100cqw - 80px) / 6); } }
.slot-grid { display: grid; grid-template-columns: repeat(var(--gn), var(--gc)); grid-auto-rows: var(--gh); justify-content: space-between; gap: var(--rg) var(--cg); align-content: start; min-width: 0; overflow: clip; overflow-clip-margin: 4px; }  /* (4px: a keyboard ring's reach) */
@media (max-width: 680px) { .slot-grid > :nth-child(n+9) { display: none; } }
@media (min-width: 681px) and (max-width: 1099px) { .slot-grid > :nth-child(n+13) { display: none; } }
.slot:has(.slot-now:not([data-off])):has(.slot-next:not([data-off])) .slot-grid { justify-content: start; }
.slot:has(.slot-now:not([data-off])):has(.slot-next:not([data-off])) .slot-grid > :nth-child(n+7) { display: none; }
.slot-grid { --rw: 2; }
/* (Both there with three titles at most in each: one row, not the room of two.) */
.slot:has(.slot-now:not([data-off])):has(.slot-next:not([data-off])):not(:has(.slot-grid > :nth-child(4))) .slot-grid { --rw: 1; }
@media (min-width: 681px) {
  .slot:not(:has(.slot-now:not([data-off])):has(.slot-next:not([data-off]))) .slot-grid { --gn: clamp(3, var(--n, 4), 6); --cg: 10px; --rg: 10px;
    --gw: calc((100cqw - (var(--gn) - 1) * var(--cg)) / var(--gn)); --gc: var(--gw); --gh: calc(var(--gc) * 1.5); --rw: clamp(1, var(--n, 4) - var(--gn) + 1, 2); justify-content: start; }
}
@media (min-width: 1100px) {
  .slot:not(:has(.slot-now:not([data-off])):has(.slot-next:not([data-off]))) .slot-grid { --gn: clamp(4, var(--n, 4), 8); }
}
.slot-cover { display: block; min-width: 0; }
.slot-cover .cover { width: 100%; border-radius: 6px; transition: none; }
@container (width < 50px) { .slot-cover .kind-mark { display: grid; --disc: 16px; --disc-in: 3px; --disc-ink: 10px; } }  /* (a cover under 50px: a smaller disc, never none) */
.slot:has(.slot-now:not([data-off])):has(.slot-next:not([data-off])) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }

/* The foot row: the counts, and how they grade at the right end. */
.foot-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; min-width: 0; }
.foot-row:not(:has(> :not([data-off]))) { display: none; }
.tally { --tg: clamp(14px, 2.2vw, 28px); display: flex; flex-wrap: wrap; gap: 12px var(--tg); min-width: 0; }
.tally a { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.tally b { font: 400 28px/1 var(--serif); }
.tally span { color: var(--text-3); font-size: 13px; font-weight: 500; }
.foot-row .spread { width: clamp(120px, 12vw, 160px); margin-left: auto; }
.foot-row .spread-bars { height: 40px; }
.foot-row .spread-ends { margin-top: 4px; }

/* With a 3×3: the favorites at the left, a caption row under them that takes no room (the top ends under it);
   the person's column ends level with the covers. */
.top-nine .album-top > .five { grid-column: 2; grid-row: 2 / span 5; position: relative; margin: 0; }
/* (From 1100px it starts in the tabs' row, and the room of its caption row under the covers is its margin: the two columns end together.) */
@media (min-width: 1100px) { .top-nine .album-top > .five { grid-row: 1 / span 6; margin-bottom: var(--cap); } }
.top-nine .five .five-row { max-width: none; }
.top-nine .five-head { --fg: 10px; position: absolute; top: calc(100% + 12px); left: 0; right: 0; flex-wrap: nowrap; margin: 0; gap: 10px var(--fg); }
.top-nine .five-head .five-pick { min-width: 0; flex: 0 1 auto; }
.top-nine .five-head .h2 { font: 500 13px/1 var(--sans); letter-spacing: 0; color: var(--text-3); }
.top-nine .five-head .five-acts { margin-left: 0; }
/* "Favorites" alone at the left, the menu at the row's right end (on a phone under the thumb), Share just before it; its owner's eye (shown
   while editing, its room kept at rest) before them, so that the menu is at the end for its owner too. Five | 3×3 from 1100 right after "Favorites" (on its own line under 1100; under the covers on a phone). Owner, 11-22: "the picker
   should be on the right so its easy to access. and the share to the left of the picker", then "on desktop too so its the same way as on phone". */
.top-nine .five-head > .h2 { margin-right: auto; }
.top-nine .five-head > .five-acts { order: 2; }
.top-nine .five-head > .five-pick { order: 3; }
/* (A genre's Delete, unseen at rest, before Share: its room never stands between Share and the menu.) */
.top-nine .five-head .five-acts > .five-drop { order: -1; }
.top-nine .five-head > .five-edit-line { order: 4; }
@media (min-width: 1100px) {
  .top-nine .five-head > .five-edit-line { order: 0; margin-left: 0; margin-right: auto; }
  .top-nine .five-head:has(> .five-edit-line) > .h2 { margin-right: 0; }
}
.top-nine .album-top > .who-head { grid-column: 1; grid-row: 2; }
.top-nine .album-top > .who-tags { grid-column: 1; grid-row: 3; }
.top-nine .album-top > .slot { grid-column: 1; grid-row: 5; }
.top-nine .album-top > .foot-row { grid-column: 1; grid-row: 6; }
@media (max-width: 1099px) {
  .top-nine .album-top > .five { grid-row: 2 / span 4; }
  .top-nine .album-top > .foot-row { grid-column: 1 / -1; margin: calc(var(--cap) + 24px) 0 calc(-1 * var(--cap)); }
  /* (Under 1100px the row under the 3×3 is too short for Five | 3×3 beside the rest: they stand on a line of their own under it, the room
     kept in the foot row's margin for their owner.) */
  .top-nine .five-head { flex-wrap: wrap; }
}
/* (...from 681px only: on a phone that line is in the favorites' own column, and the counts stand 28px under what is before them. Said for every width under 1100, it put the
   counts of a 3×3's owner 114px under their tags on a phone: owner, 11-21, "there's a gap here no?") */
@media (min-width: 681px) and (max-width: 1099px) { .top-nine .album-top:has(.five-edit-line) > .foot-row { margin-top: calc(var(--cap) + 68px); } }
/* The room the slot has (a 3×3 beside the person, 681px and up): the slot is the one flexible row of the column; the 3×3 sets the
   height, the slot is given what is left (it has no height of its own to ask for: container-type: size), and the column ends level
   with the 3×3. Now and/or Up next: each grid is as tall as the whole rows the room holds, two at most, one at least (round() of the room
   over a row and its gap); the least the slot is given is its head and one row of covers (a hidden box over the slot's cell, as high as
   they are: a cover's size is a share of the slot's width, and so is that padding). Only where not even that fits does the column run longer.
   Recently finished (alone in the slot, as before): its covers scale with the room, 120x180 down to 80x120 (--dd, --slot-min). */
.album-top { --hd: 44px; --dd: 127px; --slot-min: calc(120px + var(--dd)); }
@media (max-width: 1199px) { .album-top { --dd: 109px; } }  /* (--dd: all of Recently finished's cover form but the cover: head, the name (two lines from 1200, one under), its caption (two lines at most)) */
.album-top:has(.slot .slot-now:not([data-off]), .slot .slot-next:not([data-off])) { --slot-min: auto; }
.album-top:not(:has(.slot .slot-part:not([data-off]))) { --slot-min: 0px; }
@media (min-width: 681px) {
  .top-nine .album-top { grid-template-rows: auto auto auto 32px minmax(var(--slot-min), 1fr) auto auto; }
  .top-nine .album-top > .slot { align-self: stretch; container-type: size; overflow: clip; overflow-clip-margin: 4px; --cw: max(80px, min(120px, calc((100cqh - var(--dd)) / 1.5), calc((100cqw - 48px) / 4))); }
  .top-nine .slot:not(:has(.slot-now:not([data-off])):has(.slot-next:not([data-off]))) .slot-grid { --gc: min(var(--gw), calc((100cqh - var(--hd)) / 1.5)); }  /* (never taller than the room: it shrinks, and the row stays at the left) */
  .top-nine .slot-grid { height: max(var(--gh), min(calc(var(--rw) * var(--gh) + (var(--rw) - 1) * var(--rg)), calc(round(down, 100cqh - var(--hd) + var(--rg) + .5px, var(--gh) + var(--rg)) - var(--rg)))); }
  .top-nine .album-top:has(.slot .slot-now:not([data-off]), .slot .slot-next:not([data-off]))::before { content: ""; grid-column: 1; grid-row: 5; align-self: start; visibility: hidden; pointer-events: none; padding-top: calc(var(--hd) + 25% - 20px); }
  .top-nine .album-top:not(:has(.slot-now:not([data-off])):has(.slot-next:not([data-off])))::before { padding-top: calc(var(--hd) + 80px); }  /* (one alone: the least is the head and a row of the smallest covers, 53x80, as a pair's) */
}
@media (min-width: 681px) and (max-width: 759px) { .top-nine .album-top > .slot { --cw: max(80px, min(120px, calc((100cqh - var(--dd)) / 1.5), calc((100cqw - 32px) / 3))); } }
/* (Recently finished in the slot, from 1100: the room the person's column has is used, up to the slot's width, four across: no cap of 120px.) */
@media (min-width: 1100px) { .top-nine .album-top > .slot { --cw: max(80px, min(300px, calc((100cqh - var(--dd)) / 1.5), calc((100cqw - 48px) / 4))); } }
/* (Room its covers cannot take, their width being all the column has: over the slot, not under it. Its last row of covers stands on
   the counts whatever the person's column holds; `safe`: a slot short of room keeps its heading.) */
@media (min-width: 1100px) { .top-nine .album-top > .slot { align-content: safe end; } }
@media (min-width: 1100px) { .top-nine .album-top { grid-template-rows: auto auto auto 16px minmax(var(--slot-min), 1fr) auto auto; } .top-nine .album-top > .who-tags { margin-top: 16px; } .top-nine .album-top > .foot-row { margin-top: 16px; } }  /* (the tags' box, 8px past their row, clear of what is over and under it by 8px at least) */
/* (From 1100 a pair's heading stands 12px over its covers, so that two rows still fit beside a 3×3 with a bio of two lines and a row of
   linked accounts: what their owner sees at rest, whose bio keeps the room of two lines. The same under a band: a pair looks one way at a width.) */
@media (min-width: 1100px) {
  /* (The largest cover that has two rows under the heading, and three across: --two is what two rows allow. Where that is under 56px wide
     (a long name over a long bio, a narrow window) one row of the largest that fits stands instead: under 56px --two gives way to it.) */
  .top-nine .album-top > .slot:has(.slot-now:not([data-off])):has(.slot-next:not([data-off])) { --two: calc((100cqh - var(--hd) - 10px) / 3); --gc: min(calc((100cqw - 80px) / 6), calc((100cqh - var(--hd)) / 1.5), calc(var(--two) + clamp(0px, calc((56px - var(--two)) * 9999), 9999px))); --gh: calc(var(--gc) * 1.5); }
  .album-top:has(.slot-now:not([data-off])):has(.slot-next:not([data-off])) { --hd: 40px; }
  .album-top .slot:has(.slot-now:not([data-off])):has(.slot-next:not([data-off])) .slot-head { margin-bottom: 12px; }
}
/* A band: the person at the left, the slot at the right, the counts under, then the favorites. */
.top-band .album-top { padding-bottom: 0; }
.top-band .album-top > .who-head { grid-column: 1; grid-row: 2; }
.top-band .album-top > .who-tags { grid-column: 1; grid-row: 3; }
.top-band .album-top > .slot { grid-column: 2; grid-row: 2 / span 2; }
@media (min-width: 681px) {
  .top-nine .album-top > .five, .top-band .album-top > .slot { align-self: start; }
  .top-nine .album-top > .foot-row { align-self: end; }
}
.top-band .album-top > .foot-row { grid-column: 1 / -1; grid-row: 5; margin-top: 36px; }
.top-band .album-top > :is(.five, .hero) { grid-column: 1 / -1; grid-row: 6; margin: 56px 0 0; }

/* The rows under: each the page's width, 72px apart. */
.album .block { margin-top: 72px; }
.album .block-head { margin-bottom: 22px; }
.album .slot-head { margin-bottom: 16px; }
/* Lists: three across, each a fan of its first four covers (each next one 55% of a cover to the right, behind the one before). */
.album .lists-block .list-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.album .list-card, .album .list-link { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.album .list-stack { display: flex; width: 100%; margin-bottom: 14px; --c: calc(100% / 2.65); }
.album .list-stack .cover {
  flex: 0 0 var(--c); width: var(--c); margin-right: calc(var(--c) * -.45); border: 2px solid var(--bg); border-radius: 8px;
  box-shadow: 0 2px 4px rgb(0 0 0 / .25), 0 10px 22px -4px rgb(0 0 0 / .55);
}
.album .list-stack .cover:last-child { margin-right: 0; }
/* Editing: each list's eye hangs on its corner as a favorite's ✕ does (one drawing, the same size, the same place); a list kept off the
   profile, or past the sixth, is faint and grey, and its eye struck. */
.album .lists-block .list-tool { top: -10px; right: -10px; width: 30px; height: 30px; background: #f2efe9; color: #1b1916; box-shadow: 0 0 0 1px rgb(0 0 0 / .16), 0 2px 8px rgb(0 0 0 / .35); -webkit-backdrop-filter: none; backdrop-filter: none; }
.album .lists-block .list-tool svg { width: 18px; height: 18px; stroke-width: 2.2; }
.album .lists-block .list-card.aside .list-tool { background: color-mix(in srgb, #f2efe9 75%, transparent); }
@media (max-width: 680px) { .album .lists-block .list-tool { top: 4px; right: 4px; } }
/* Recently finished: eight across (seven under 1100px, three by two on a phone: the page sends eight, the stylesheet draws them). */
.fin-items { grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-rows: auto; column-gap: 20px; row-gap: 32px; overflow: visible; }
.fin-items .slot-item .cover { width: 100%; height: auto; aspect-ratio: 2 / 3; border-radius: 10px; }
.fin-items .slot-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 11px; font-size: 15px; white-space: normal; text-overflow: clip; }
.fin-items .slot-meta { width: auto; margin-right: 0; margin-top: 4px; }
.fin-items .fin-meta { flex-direction: column; align-items: flex-start; font-size: 13px; gap: 3px; }
.fin-items .fin-meta .stars { --s: 12px; }
.fin-items > :nth-child(n) { display: block; }
.album:not(:has(.slot-now:not([data-off]), .slot-next:not([data-off]))) .fin-row { display: none; }
/* Reviews: boxless, three across (two where there is less room). */
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
.reviews-item:nth-child(4) { display: none; }
.reviews-item .rev { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 0; border: 0; }
.reviews-item .rev .cover { width: 72px; height: 108px; aspect-ratio: auto; border-radius: 6px; }
.reviews-item .rev-title { margin-bottom: 6px; font-size: 24px; }
.reviews-item .rev-text, .reviews-item .clamp-more { font-size: 15px; line-height: 1.55; }
.reviews-item .rev-text { margin-top: 10px; }
.reviews-item .rev-text.clamped { -webkit-line-clamp: 5; }
@media (max-width: 1099px) {
  .fin-items { grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 14px; }
  .fin-items > :nth-child(8) { display: none; }
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-item:nth-child(4) { display: block; }
}

/* Seven across, from 681 to 1099px: the stars and the day on one line, in the slot's smaller size. */
@media (min-width: 681px) and (max-width: 1099px) {
  .fin-items .fin-meta { gap: 5px; font-size: 12px; }
  .fin-items .fin-meta .stars { --s: 9px; }
  .fin-items .slot-name { font-size: 14px; }
}

/* A phone: the person, the tabs, the favorites, the slot, the tags, the counts, then the rows. */
@media (max-width: 680px) {
  .album-top { display: flex; flex-direction: column; align-items: stretch; padding: 0; }
  .album .album-top > .who-head { order: 1; padding-top: var(--page-top); }
  .album .album-top > .tabs { order: 2; margin: 28px 0 0; gap: 0 clamp(10px, 3.6vw, 22px); flex-wrap: nowrap; }
  /* With a 3×3 (owner, 11-19): the tabs first, then the person. */
  .top-nine .album-top > .tabs { order: 1; margin: var(--page-top) 0 0; }
  .top-nine .album-top > .who-head { order: 2; margin-top: 28px; padding-top: 0; }
  .album .album-top > :is(.five, .hero) { order: 4; margin: 24px 0 0; }
  .album .album-top > .slot { order: 5; margin-top: 56px; }
  .album .album-top > .who-tags { order: 6; margin-top: 28px; }
  .album .album-top > .foot-row { order: 7; margin: 28px 0 0; display: block; }
  .album .album-top > .foot-row:not(:has(> :not([data-off]))) { display: none; }  /* (its owner has it, hidden: no room of its own) */
  .top-nine .album-top > .five { display: flex; flex-direction: column; }
  .top-nine .five-row { order: 1; }
  .top-nine .five-head { order: 2; position: relative; margin-top: 12px; }
  /* (Their owner's Five | 3×3 line lies in the 56px under that row, with no room of its own: what follows the favorites stands as far for their owner as for anyone.
     As a line of the row, unseen at rest, it put his Now 92px under his favorites: owner, 11-21, "also here no?") */
  .top-nine .five-head > .five-edit-line { position: absolute; top: calc(100% + 12px); left: 0; right: 0; }  /* (12px: the eye, which stands over Five | 3×3 now that the menu ends the row, keeps its press area clear of theirs) */
  .top-nine .five-head { flex-wrap: wrap; }
  .top-band .five { position: relative; }
  .top-band .five-head { position: static; }
  .top-band .five-head > .five-edit-line { position: absolute; top: calc(100% + 10px); left: 0; right: 0; }
  .who-head { --bio-top: 18px; }
  .who-name > .who-bio { font-size: 17px; }
  .who-name > .who-line { white-space: normal; }
  .who-tags { height: auto; overflow: visible; }  /* (every one shown, on a second line where it must) */
  /* The favorites' Five | 3×3 line lies in the room under them (the slot's 56px): what comes next after them, tags or counts, stands as far. */
  .album-top:has(> .five:not([data-off])):not(:has(> .slot .slot-part:not([data-off]))) > .who-tags { margin-top: 56px; }
  .album-top:has(> .five:not([data-off])):not(:has(> .slot .slot-part:not([data-off]))):not(:has(> .who-tags:not([data-off]))) > .foot-row { margin-top: 56px; }
  .tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
  .foot-row .spread { display: none; }
  .slot:has(.slot-now:not([data-off])):has(.slot-next:not([data-off])) { display: block; }
  .slot:has(.slot-now:not([data-off])):has(.slot-next:not([data-off])) .slot-part + .slot-part { margin-top: 28px; }
  .album .block { margin-top: 56px; }
  .album .lists-block .list-cards { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .fin-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; }
  .fin-items > :nth-child(n+7) { display: none; }
  .reviews-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .reviews-item:nth-child(4) { display: none; }
  .slot-fin .fin-meta { gap: 5px; }
  /* (Three across on a phone: the stars a little smaller, so that the day beside them is never cut: "25 Au…".) */
  .fin-items .fin-meta { gap: 6px; }
  .fin-items .fin-meta .stars { --s: 10px; }
}
@media (max-width: 360px) {
  .fin-items { column-gap: 8px; }
  .fin-items .fin-meta { gap: 4px; font-size: 12px; }
  .fin-items .fin-meta .stars { --s: 9px; }
}

/* At 320 a phone's width leaves a title's name field a sliver beside "Create and add", and an
   import's row its title an ellipsis: the button goes under the field, and the row's marks under
   its words (the title on two lines at most, the small line whole). */
/* (On a phone the new list's name takes the sheet's width, its button under it at the right, where a sheet's main
   button stands: beside it, the name had a sliver.) */
@media (max-width: 430px) {
  .list-new { flex-wrap: wrap; justify-content: flex-end; }
  .list-new input { flex: 1 0 100%; }
}
@media (max-width: 359px) {
  .import-rows label > :is(input, .cover) { grid-row: 1 / span 2; }
  .import-what b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; }
  .import-what small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
  .import-rows label > :is(.import-did, .import-played) { grid-column: 3; grid-row: 2; justify-self: start; }
}

@media (max-width: 849px) {
  .month { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px 0; }
  .month .h2 { font-size: 26px; }
  .mc-grid { gap: 16px 10px; }
  .mc { width: calc((100% - 3 * 10px) / 4); }
}

/* ---- the account menu (base.html): who you are, then its places in groups ---- */

.me-card { gap: 0; min-width: 236px; padding: 8px; }
.me-card { max-width: calc(100vw - 36px); max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; }  /* (the window's height less the menu's top, 60px, and 16 under it: a long list scrolls in itself, every row reachable; as wide as the window less 18 a side) */
.me-card .shelf-item-name { min-width: 0; white-space: normal; overflow-wrap: anywhere; }  /* (a long shelf's name goes on to a second line, whole) */
@media (max-width: 680px) { .me-card { max-height: calc(100dvh - 76px - 62px - env(safe-area-inset-bottom, 0px)); } }  /* (and over the dock, 62px, which stands over the menu) */
.me-head { display: flex; align-items: center; gap: 12px; padding: 8px 10px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0; }
.me-head .avatar { width: 40px; height: 40px; }
.me-head span { display: grid; min-width: 0; }
.me-head b { overflow: hidden; color: var(--text); font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.me-head small { overflow: hidden; color: var(--text-3); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.me-head:focus-visible { outline: 0; background: var(--sunk); }
@media (hover: hover) { .me-head:hover { background: var(--sunk); } }
.me-group { display: grid; gap: 2px; }
.me-group + .me-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.me-card .menu-item { justify-content: flex-start; gap: 12px; padding: 10px 12px; font-size: 14.5px; }
.me-card .menu-item svg { width: 17px; height: 17px; }
.me-card .menu-item[aria-current="page"] { color: var(--text); font-weight: 600; }
.me-card .menu-count { margin-left: auto; }
.me-card .menu-shelves { margin: 0; padding: 0; border: 0; }  /* (a group as the others: the same 6px from the line over it as from the line under it; it had 14px over it, owner 11-20) */
.me-card .shelf-item { justify-content: space-between; }
.me-card .shelf-item svg { stroke: var(--text); }
.me-card .shelf-item-name { gap: 12px; }  /* (the dot in the icons' column, 17px wide, and the name where the other labels start) */
.me-card .tint-dot { flex: none; box-sizing: content-box; margin: 0 4.5px; }

/* ---- reviews as cards, two columns (a profile's Reviews tab) ---- */

.revs-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.revs-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.revs-cards .rev {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; row-gap: 0; align-items: start;
  margin: 0; padding: 22px 22px 20px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
}
.revs-cards .rev .cover { grid-row: 1 / span 2; grid-column: 1; width: 64px; }
.revs-cards .rev-body { display: contents; }
.revs-cards .rev-title { grid-column: 2; grid-row: 1; align-self: end; margin: 0 0 6px; }
.revs-cards .rev-by { grid-column: 2; grid-row: 2; align-self: start; }
.revs-cards .rev-body > :is(.clamp-box, .rev-text, .spoiler) { grid-column: 1 / -1; grid-row: 3; max-width: none; margin-top: 16px; }
.revs-cards .clamp-more { background: linear-gradient(to right, transparent, var(--surface) 3.5em); }
@media (max-width: 859px) { .revs-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---- people as cards: who, a strip of their covers, the answer (Followers, Following) ---- */

.people { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.people li {
  display: flex; flex-direction: column; align-items: stretch; gap: 20px; min-width: 0; padding: 22px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
}
.people .person { flex: none; gap: 14px; }
.people .person .avatar { width: 64px; height: 64px; font-size: 26px; }
.people .person b { overflow: hidden; font: 400 26px/1.1 var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.people .person small { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.pstrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pstrip .cover { border-radius: 7px; }
.pacts { display: flex; justify-content: flex-end; gap: 14px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 1099px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .people li { padding: 18px; } }
@media (max-width: 899px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .people { grid-template-columns: minmax(0, 1fr); gap: 16px; } .people li { padding: 22px; } }

/* ---- the row of kinds: Shelf, Lists, Reviews and Diary (owner, 11-20: "A · Underline") ----
   One line under the tabs from 1100px, two under it: the kinds (All, then each kind this member has anything of), on the Shelf the places of
   the kind with what each lists and the order at the end, on the Diary the years in review. Words on a hairline, a 2px bar on the hairline
   under what is chosen. It stays in view under the bar as the page goes by. */
.shelf-view { display: contents; }  /* the row and what it shows, swapped together */
.krow {
  position: sticky; top: 68px; z-index: 15; display: flex; align-items: center; margin: 12px 0 0; padding: 12px 0 0;
  border-bottom: 1px solid var(--line); background: var(--bg);
}
.kr-line { display: flex; align-items: center; min-width: 0; }
.kr-group { display: flex; align-items: center; gap: 26px; }
.kr-i {
  position: relative; display: inline-flex; align-items: center; flex: none; height: 46px;
  color: var(--text-2); font: 500 15px/1 var(--sans); white-space: nowrap; transition: color .15s;
}
.kr-i svg { display: none; }
@media (hover: hover) { a.kr-i:hover { color: var(--text); } }
.kr-i[aria-current] { color: var(--text); }
.kr-i[aria-current]::after { content: ""; position: absolute; inset: auto var(--kp, 0px) -1px; height: 2px; background: var(--text); }
.kr-i.is-none { opacity: .45; }
/* The places: after the kinds, one upright line between; the order at the end. */
.kr-places { flex: 1 1 auto; }
.kr-places::before { content: ""; flex: none; width: 1px; height: 18px; margin: 0 26px; background: var(--line-2); }
.kr-places .sort { margin-left: auto; flex: none; display: flex; align-items: baseline; }
/* How many the place chosen lists, once, at the row's end before the order (owner, 11-21: the counts left the words, whose gaps were uneven and moved).
   Desk: "13 titles", 16px before the order's word; a phone (up to 680px): the number alone, 10px before the order's picture. */
.kr-total { flex: none; margin-right: 16px; color: var(--text-3); font: 400 13.5px/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.krow.probe .kr-total { min-width: 11ch; text-align: right; }  /* (profile.js fits the row for the widest count there can be: no kind's number decides what the row shows) */
.krow .sort select {
  width: auto; height: 46px; padding: 0 24px 0 0; border: 0; border-radius: 0; background-color: transparent; background-position: right -2px center;
  color: var(--text-2); font: 500 15px/1 var(--sans); box-shadow: none;
}
@media (hover: hover) { .krow .sort select:hover { color: var(--text); } }
.krow .sort select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The years in review, at the row's end: their label quiet, the years as words. */
.kr-years { flex: 1 1 auto; justify-content: flex-end; gap: 12px; }
.kr-label { color: var(--text-3); font: 400 13.5px/1 var(--sans); white-space: nowrap; }
.kr-order { flex: 1 1 auto; justify-content: flex-end; }
.kr-order .sort { flex: none; display: flex; align-items: baseline; }
/* What follows starts 26px under the hairline (a month of the diary has the room in its own top). */
.shelf-view > .krow + * { margin-top: 26px; }
.shelf-view > .krow + .diary { margin-top: 0; }
/* Shows / Episodes: on TV and Anime with Done chosen, a slim line of two words directly under the row (not a place of it): 14px under its hairline,
   what follows 18px under it. The one shown is bright; neither has a bar or a pill. */
.kr-sub { display: flex; align-items: baseline; gap: 18px; margin: 14px 0 0; font: 500 14px/18px var(--sans); }
.shelf-view > .krow + .kr-sub { margin-top: 14px; }
.shelf-view > .kr-sub + * { margin-top: 18px; }
.kr-sw { position: relative; color: var(--text-2); }
a.kr-sw::before { content: ""; position: absolute; inset: -11px -9px; }  /* (a press of 40px, as the row's words have: the line itself is 18px) */
.kr-sw[aria-current] { color: var(--text); }
@media (hover: hover) { a.kr-sw:hover { color: var(--text); } }
.diary > .month:first-child { padding-top: 26px; border-top: 0; }
.shelf-choice + .diary > .month:first-child { padding-top: 0; }  /* (under the shelf's badge the 18px of its own margin is the whole of it, as on Shelf and Reviews) */
/* The Diary's fast-scroll handle (owner's choice, 12-01): a quiet pill on the right edge, shown while the page scrolls, with the month's name beside it
   while it is dragged (profile.js). Fixed: nothing on the page moves; under the bars (20) and the sheets, over the page. */
.diary-fast {
  position: fixed; z-index: 18; top: 0; right: calc(env(safe-area-inset-right, 0px) + 3px); width: 22px; height: 40px; box-sizing: border-box;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; touch-action: none; cursor: grab;
}
.diary-fast.on { opacity: 1; visibility: visible; transition: opacity .2s; }
.diary-fast.drag { cursor: grabbing; }
.diary-fast-bubble {
  position: absolute; right: calc(100% + 10px); top: 50%; translate: 0 -50%; display: none; padding: 7px 14px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  background: var(--text); color: var(--bg); font: 600 14px/1.2 var(--sans); box-shadow: 0 4px 16px rgb(0 0 0 / .3);
}
.diary-fast.drag .diary-fast-bubble { display: block; }
@media (prefers-reduced-motion: reduce) { .diary-fast, .diary-fast.on { transition: none; } }
@media (max-width: 1099px) {
  .krow { display: block; border-bottom: 0; }
  .kr-line { display: block; position: relative; box-sizing: border-box; min-height: 44px; border-bottom: 1px solid var(--line); }
  .kr-years .kr-group { flex-wrap: wrap; }
  .kr-i { height: 43px; }
  .kr-places { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: start; }
  .kr-places::before { display: none; }
  .kr-places .sort { margin-left: 0; }
  .krow .sort select { height: 43px; }
  .kr-years { display: flex; justify-content: flex-start; align-items: flex-start; gap: 0 12px; }
  .kr-label { display: flex; align-items: center; height: 43px; }
  .kr-order { display: flex; justify-content: flex-end; align-items: center; }
}
/* (Where the one line of a wide window is too short for what it holds: the same two lines.) */
.krow.two { display: block; border-bottom: 0; }
.krow.two .kr-line { display: block; position: relative; box-sizing: border-box; min-height: 44px; border-bottom: 1px solid var(--line); }
.krow.two .kr-years .kr-group { flex-wrap: wrap; }
.krow.two .kr-i { height: 43px; }
.krow.two .kr-places { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: start; }
.krow.two .kr-places::before { display: none; }
.krow.two .kr-places .sort { margin-left: 0; }
.krow.two .sort select { height: 43px; }
.krow.two .kr-years { display: flex; justify-content: flex-start; align-items: flex-start; gap: 0 12px; }
.krow.two .kr-label { display: flex; align-items: center; height: 43px; }
.krow.two .kr-order { display: flex; justify-content: flex-end; align-items: center; }
/* The kinds as pictures (profile.js: where their words would stand too close). */
.krow.pics .kr-i[data-kind] .kr-word { display: none; }
.krow.pics .kr-i[data-kind] svg { display: block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.krow.pics .kr-i[data-kind] svg .full { fill: currentColor; stroke: none; }
/* Until profile.js has fitted the row (one line or two) the places are not drawn (so that no wrapped or cut words are seen); where the
   window is wide enough for them whatever they hold, they are there at once. Should the script never get there (it stopped on a fault
   before this), they are drawn after a moment all the same: a filter is never lost to a fault elsewhere. */
@media (scripting: enabled) and (max-width: 1159px) { .krow:not(.fit) .kr-places .kr-group { visibility: hidden; animation: kr-late 0s 1.5s forwards; } }
@keyframes kr-late { to { visibility: visible; } }
@media (pointer: coarse) {
  /* A finger finds a word: the press is the word and, as padding that its negative margin takes back, a little of the room to its neighbours;
     the narrow ones (All, TV, a year, a kind's picture) take more of it (the gaps are 10px at the least) and lie over the others'. */
  .kr-i { --kp: 3px; padding-inline: var(--kp); margin-inline: calc(var(--kp) * -1); }
  .kr-i[data-rail="all"], .kr-i[data-kind="tv"], .kr-year { --kp: 10px; z-index: 1; }
  .krow.pics .kr-i[data-kind] { --kp: 9px; z-index: 1; }
  .kr-group > .kr-i:last-child { padding-right: 0; margin-right: 0; }  /* (nothing past the end of a line: it would be something to scroll to) */
  .kr-group > .kr-i:last-child::after { right: 0; }  /* (so its bar ends where its word does, as the others' do: they take the room back with the margin) */
  .krow .sort select { padding-top: 2px; font-size: 16px; }  /* (under a finger a field's words are 16px, or the page is zoomed; a pixel low in its box: level with the places') */
}
@media (max-width: 599px) {
  .kr-years .kr-i { font-size: 14.5px; }
  /* (Its own word is there, unseen and clipped, as the old row's was: never pushed away with `text-indent`, which a browser hands on to the
     choices in its menu, so that they open empty; owner, 11-20: "the ordering on phone doesnt work at all".) */
  .krow .kr-places .sort select { width: 40px; padding: 0; color: transparent; background: var(--order) right 1px center / 19px no-repeat; white-space: nowrap; overflow: clip; }
  .krow .kr-places .sort option { color: var(--text); }
}
@media (max-width: 479px) {
  .kr-line:first-child .kr-group { flex-wrap: nowrap; justify-content: space-between; width: 100%; gap: 10px; }
  .kr-line:first-child .kr-i { font-size: 14.5px; }
}
@media (max-width: 680px) { .krow { top: 60px; padding-top: 10px; } .kr-places .kr-unit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .kr-places .kr-total { margin-right: 10px; } }
@media (max-width: 599px) { .kr-places .kr-total { margin-right: -10px; } }

/* ---- a phone's places (up to 680px): the same four words as the desk's, in the desk's order (owner, 11-21: "the order should be like on desktop, and
   either we use icons everywhere or nowhere") ----
   Saved, In progress, Done, Dropped stand from the left edge with equal gaps, the same on every kind and whichever is chosen (choosing one moves
   nothing: only the bar and the brightness change), the order's picture at the right end. The gap is by the window's width alone: 22px where the line
   has room for it, down to 10px on the narrowest. The number (how many the list holds) stands before the order's picture only where there is room for
   it beside 22px gaps. */
@media (max-width: 680px) {
  .krow .kr-places, .krow.two .kr-places { --g: clamp(10px, calc((100vw - 290px) / 4), 22px);  /* (the line's room, shared by the gaps: 22px from 378, 10 at the least; the last word never reaches under the order's 38px field) */
    display: block; position: relative; min-height: 43px; }
  .krow .kr-places .kr-group { position: relative; z-index: 2; gap: var(--g); flex-wrap: nowrap; width: max-content; max-width: 100%; }  /* (over the order's field, whose blank part reaches under the last word on a narrow phone) */
  .kr-places .kr-i { height: 43px; font-size: 14.5px; }
  .krow .kr-places .sort { position: absolute; right: 0; top: 0; margin: 0; }
  .krow .kr-places .sort select { width: 38px; padding: 2px 0 0; color: transparent; background: var(--order) right 1px center / 19px no-repeat; white-space: nowrap; overflow: clip; font-size: 16px; }
  .krow .kr-places .sort option { color: var(--text); }
  .krow .kr-places .kr-total { position: absolute; right: 30px; top: 0; margin: 0; line-height: 43px; }  /* (out of the flow: the number never moves what stands before it) */
  .krow.probe .kr-total { min-width: 4ch; }
  .krow .kr-order .sort { width: 100%; justify-content: space-between; align-items: center; }
  .krow .kr-order .kr-total { margin-right: 0; }
}
@media (min-width: 600px) and (max-width: 680px) { .kr-places .kr-i { font-size: 15px; } .krow .kr-places .kr-total { top: 1px; } }  /* (the number stands on the words' baseline) */
@media (max-width: 427px) { .krow .kr-places .kr-total { display: none; } }  /* (no room for a number of four digits 22px after the last word: found by measuring, tests/browser/checks/even.mjs) */
/* ---- the kinds in a round button over the dock on a phone (owner, 11-21: "much easier to click than the media types on the top of the phone"):
   only where the dock shows (up to 680px) and scripting is on (the button needs a script to open: without one the kinds' line stands at the top). ---- */
.kc { display: none; }
@media (scripting: enabled) and (max-width: 680px) {
  .kc { --dock: var(--dock-h, calc(60px + env(safe-area-inset-bottom, 0px))); display: block;  /* (--dock-h: the dock's own height, profile.js) */ position: fixed; z-index: 19; right: 16px; bottom: calc(var(--dock) + var(--get-app-room, 0px) + 14px); width: 52px; height: 52px; }
  .kc.open { z-index: 22; }
  .kc-btn {
    position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%;
    background: var(--surface); color: var(--text); box-shadow: 0 6px 20px light-dark(rgb(0 0 0 / .18), rgb(0 0 0 / .45)); cursor: pointer;
  }
  .kc-btn:focus-visible, .kc-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .kc svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .kc svg .full { fill: currentColor; stroke: none; }
  .kc-btn svg { grid-area: 1 / 1; width: 22px; height: 22px; }
  .kc-btn .kc-x { display: none; width: 18px; height: 18px; }
  .kc.open .kc-x { display: block; }
  .kc.open .kc-btn > :not(.kc-x) { display: none; }
  .kc-veil { display: none; position: fixed; inset: 0; background: rgb(0 0 0 / .5); touch-action: none; }
  .kc.open .kc-veil { display: block; }
  .kc-col {
    position: absolute; z-index: 1; right: 0; bottom: calc(100% + 8px); display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
    max-height: calc(100dvh - var(--dock) - var(--get-app-room, 0px) - 96px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity .12s, transform .12s, visibility 0s .12s;
  }
  .kc.open .kc-col { visibility: visible; opacity: 1; transform: none; transition: opacity .12s, transform .12s, visibility 0s; }
  .kc-pill {
    box-sizing: border-box; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 18px; border: 1px solid var(--line-2); border-radius: 999px;
    background: var(--surface); color: var(--text-2); font: 500 15px/1 var(--sans); white-space: nowrap;
  }
  .kc-pill[aria-current] { border-color: var(--text-2); color: var(--text); }
  .kc-pill.is-none { opacity: .45; }
  @media (hover: hover) { a.kc-pill:hover { color: var(--text); } }
  @media (prefers-reduced-motion: reduce) { .kc-col, .kc.open .kc-col { transition: none; transform: none; } }
  /* The page behind stays where it is while the column is open (as under a sheet). */
  html:has(.kc.open) { overflow: hidden; }
  /* The last row of a page can be scrolled clear of the button: its size and its gap more at the foot. */
  body:has(.kc) { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px) + var(--get-app-room, 0px) + 66px); }

  /* The kinds' line is not at the top; where that leaves the row with nothing (Lists, Reviews) it takes no room. */
  .krow .kr-line:first-child { display: none; }
  .krow:not(:has(.kr-line:not(:first-child))) { margin: 0; padding: 0; }
}


/* ---- the search of a member's shelf (owner, 11-21): a magnifier at the row's end; pressed, the row's line is a field ----
   At rest the magnifier (19px, 40px to press) stands at the row's end before the number and the order, a phone's before the order's picture. Pressed
   (profile.js adds `.finding`, or the page is made so: `?tab=shelf&q=`), the line of places is the field in its own place and height, on the same
   hairline: the magnifier at the left, the field, the number found and a ✕ at the right end; the kinds and the places are not shown (where the
   row has a line over it, that line keeps its room, blank, so that nothing under the row moves). */
.kr-find { display: none; }
.kr-mag { flex: none; display: inline-flex; align-items: center; justify-content: center; align-self: center; width: 40px; height: 40px; margin-right: -5px; color: var(--text-2); transition: color .15s; }
.kr-mag svg, .kr-find svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .kr-mag:hover, .kr-x:hover { color: var(--text); } }
.kr-mag:focus-visible, .kr-x:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 8px; }
.krow.finding .kr-places { display: flex; align-items: center; min-height: 0; }
.krow.finding .kr-places::before, .krow.finding .kr-places .kr-group, .krow.finding .kr-places .sort { display: none; }
.krow.finding .kr-line:first-child { display: none; }
@media (max-width: 1099px) { .krow.finding .kr-line:first-child { display: block; visibility: hidden; } }
.krow.finding.two .kr-line:first-child { display: block; visibility: hidden; }
@media (scripting: enabled) and (max-width: 680px) { .krow.finding .kr-line:first-child, .krow.finding.two .kr-line:first-child { display: none; } }
.krow.finding .kr-find { display: flex; flex: 1 1 auto; align-items: center; min-width: 0; height: 46px; position: relative; }
@media (max-width: 1099px) { .krow.finding .kr-find { height: 43px; } }
.krow.finding.two .kr-find { height: 43px; }
.kr-find-mark { margin-right: 10px; color: var(--text-2); }
.kr-q {
  flex: 1 1 auto; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none;
  color: var(--text); font: 500 15px/1 var(--sans); appearance: none;
}
.kr-q::placeholder { color: var(--text-3); opacity: 1; }
.kr-find::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--accent); opacity: 0; }  /* (the site's focus ring, on the row's hairline: where the bar of what is chosen stands) */
.kr-find:has(.kr-q:focus-visible)::after { opacity: 1; }
.kr-found { flex: none; margin: 0 4px 0 12px; color: var(--text-3); font: 400 13.5px/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kr-found[hidden] { display: none; }
.kr-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -11px; color: var(--text-2); transition: color .15s; }
@media (pointer: coarse) { .kr-q { font-size: 16px; } }
@media (min-width: 600px) and (max-width: 680px) { .kr-q { font-size: 16px; } }
/* On a phone the magnifier stands over the order's field, before its picture; the number (where it shows) before the magnifier. */
@media (max-width: 680px) {
  .krow .kr-mag { position: absolute; z-index: 1; top: 1.5px; right: clamp(21px, calc((100vw - 320px) * .2 + 21px), 30px); margin: 0; justify-content: flex-end; }  /* (10px from the order's picture from 365px of window, as far as from the last word on a 366px phone, closer only where the line is fullest; 40px to press, over the order's blank, under the places' words which keep their own: at 320 the last word's press reaches the box's left 25px, the icon's own 15px stay the magnifier's) */
  .krow .kr-total { right: 57px; }  /* (8px before the magnifier's picture) */
}
/* The narrowest phones (under 340px): the four words half a pixel smaller, so that the last one stands clear of the magnifier, which is put between it and the order's picture. */
@media (max-width: 339px) {
  .kr-places .kr-i { font-size: 14px; }
  .krow .kr-mag { width: 34px; justify-content: center; right: clamp(23px, calc((100vw - 320px) * .5 + 23px), 30px); }
}
.find-none { margin-top: 26px; }
.shelf-view:has(.krow.finding) :is(.kc, .kr-sub) { display: none; }

/* ---- your line, a PILL, and the sheet behind it (owner, 11-25): on a phone, where the dock shows and a script runs, a title of your shelf shows its
   status, grade and place as one pill (for looking: only its + changes anything), in the boxed panel's place; pressed, the one panel opens as a sheet
   from the bottom of the screen. Off the shelf: the four status choices alone as one bar. From 681px up, and without a script, nothing of this is
   drawn (the panel stands as it always did). A held cover's quick edit is the same sheet, shorter (cover-menu.js). ---- */
.yourline, .tool-word, .tool-value, .sheet-handle { display: none; }
/* THE ROWS, written once (owner, 11-26): the one panel (section.log[data-log]) as rows: the stars with the heart, the status bar, then a row each for the
   counter, Dates, Lists, the two switches, Remove. It serves two forms: the phone's sheet (the panel moved into `.mine-body`, below) and, from 681px, the
   panel lying open under the cover as a card (further down). `--row-x` is the rows' side padding of each. Scripts on; a title off the shelf has no rows. */
@media (scripting: enabled) {
  /* Off the shelf: the bar of four choices alone, the column's (or the screen's) full width; no hairlines or padding round it. */
  .title-side > .log[data-log][data-off] { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
  .title-side > .log[data-log][data-off] :is(.log-head, .log-mid, .times) { display: none; }
  .log[data-off] .seg { width: 100%; --seg-h: 46px; }

  [data-log]:not([data-off]) { --row-x: 22px; --menu-x: 30px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 0; border: 0; }
  [data-log]:not([data-off]) .log-head, [data-log]:not([data-off]) .log-mid, [data-log]:not([data-off]) .log-tools, [data-log]:not([data-off]) .log-more, [data-log]:not([data-off]) .log-more .pop-menu { display: contents !important; }
  [data-log]:not([data-off]) .log-head-label, [data-log]:not([data-off]) .log-more > [data-pop-toggle], [data-log]:not([data-off]) [data-covers] { display: none !important; }
  /* Top to bottom: the stars with the heart, the status bar (the site's own, as it is), a failed save's line, then the rows. */
  [data-log]:not([data-off]) .rate-row { order: 1; justify-self: center; justify-content: center; gap: 12px; margin: 0 0 18px; }
  [data-log]:not([data-off]) .status-row { order: 2; margin: 0 var(--row-x) 20px; }
  [data-log]:not([data-off]) .seg { width: 100%; --seg-h: 46px; }
  [data-log]:not([data-off]) .log-error { order: 3; margin: -8px var(--row-x) 12px; text-align: left; }
  [data-log]:not([data-off]) .count { order: 4; }
  [data-log]:not([data-off]) .log-times { order: 5; }
  [data-log]:not([data-off]) [data-open-sheet] { order: 6; }
  [data-log]:not([data-off]) [data-waiting] { order: 7; }
  [data-log]:not([data-off]) [data-private] { order: 8; }
  [data-log]:not([data-off]) [data-remove] { order: 9; }
  /* The rows: hairlines across the whole panel, 52px at the least, --row-x in from each side. */
  [data-log]:not([data-off]) :is(.count, .log-times, [data-open-sheet], [data-waiting], [data-private], [data-remove]) { border-top: 1px solid var(--line); }
  [data-log]:not([data-off]) :is([data-open-sheet], [data-waiting], [data-private], [data-remove]) {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: auto; height: auto; min-height: 52px; margin: 0; padding: 0 var(--row-x); border-radius: 0; background: none;
    color: var(--text); font: 400 15.5px/1.2 var(--sans); text-align: left; cursor: pointer;
  }
  [data-log]:not([data-off]) :is([data-open-sheet], [data-waiting], [data-private], [data-remove])[hidden] { display: none; }
  [data-log]:not([data-off]) :is([data-open-sheet], [data-waiting], [data-private], [data-remove]) svg { display: none; }
  /* A chevron where a row opens something (as drawn: 15px, its right edge on the switches' line). */
  [data-log]:not([data-off]) [data-open-sheet]::after, [data-log]:not([data-off]) .log-say::after {
    content: ""; flex: none; width: 15px; height: 15px; margin-right: -4px; background: var(--text-3);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  [data-log]:not([data-off]) .log-say:has([aria-expanded="true"])::after { transform: rotate(90deg); }
  [data-log]:not([data-off]) [data-open-sheet]::before { display: none; }  /* (the panel's own press reach out past the button: here the row is the button) */
  [data-log]:not([data-off]) [data-open-sheet] .tool-word { display: block; flex: 1 0 auto; white-space: nowrap; }
  [data-log]:not([data-off]) [data-open-sheet] .tool-value { display: block; flex: 0 1 auto; min-width: 0; margin-right: -3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 14.5px; }
  /* The switches (the site's .set-switch: 44 by 26) */
  [data-log]:not([data-off]) :is([data-waiting], [data-private])::after {
    content: ""; flex: none; width: 44px; height: 26px; border-radius: 999px;
    background: radial-gradient(circle 10px at 13px 13px, var(--surface) 99%, transparent), var(--line-2);
  }
  [data-log]:not([data-off]) :is([data-waiting], [data-private])[aria-pressed="true"]::after { background: radial-gradient(circle 10px at 31px 13px, var(--bg) 99%, transparent), var(--text); }
  /* The row always reads "Wait for more"; its switch says whether. (`.log-more` in both: the old menu's rule, which swaps the two wordings when it is
     on, is one class stronger than these would be without it, and left the row with no words at all: owner's phone, 11-26.) */
  [data-log]:not([data-off]) .log-more [data-waiting][aria-pressed] .wait-on { display: none; }
  [data-log]:not([data-off]) .log-more [data-waiting][aria-pressed] .wait-off { display: inline; }
  [data-log]:not([data-off]) [data-private][aria-pressed="true"] { color: var(--text); }
  /* Remove from shelf, in the accent: pressed once it asks (its words are the CSS's, so the row never changes width). */
  [data-log]:not([data-off]) [data-remove] { color: var(--accent); justify-content: flex-start; }
  [data-log]:not([data-off]) [data-remove] [data-remove-word] { font-size: 0; }
  [data-log]:not([data-off]) [data-remove] [data-remove-word]::before { content: "Remove from shelf"; font-size: 15.5px; }
  [data-log]:not([data-off]) [data-remove].asking [data-remove-word]::before { content: "Press again to remove"; }
  /* The episode row: the same words as the pill, in full; at the right one small control, the counter's own − and +. */
  [data-log]:not([data-off]) .count{
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: auto; height: auto; min-height: 52px; margin: 0; padding: 0 var(--row-x); border-radius: 0; background: none; box-shadow: none;
  }
  [data-log]:not([data-off]) .count:has(input:focus) { box-shadow: none; }
  [data-log]:not([data-off]) .count-say { order: 0; flex: 1; justify-content: flex-start; gap: 0; padding: 0; overflow: visible; color: var(--text); font-size: 15.5px; }
  [data-log]:not([data-off]) .count-unit { margin-right: 4px; }
  [data-log]:not([data-off]) [data-count-of] { margin-left: 4px; }
  [data-log]:not([data-off]) .count .count-unit { display: inline !important; }
  [data-log]:not([data-off]) .count-say input { font-weight: 600; text-align: center; }
  [data-log]:not([data-off]) .count-step { position: relative; order: 1; flex: none; width: 44px; height: 34px; border-radius: 999px 0 0 999px; background: var(--sunk); }
  [data-log]:not([data-off]) .count-step[data-count-step="1"] { order: 2; margin-left: -12px; border-radius: 0 999px 999px 0; }
  [data-log]:not([data-off]) .count-step[data-count-step="1"]::after { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 1px; background: var(--line-2); }
  [data-log]:not([data-off]) .count-step::before { content: ""; position: absolute; inset: -5px 0; }
  [data-log]:not([data-off]) .count-step svg { width: 15px; height: 15px; stroke-width: 2.1; }
  /* Dates: "Dates" at the left; at the right what the dates line says, "· 2×" where it has been finished more than once, a chevron; the row opens the watches. */
  [data-log]:not([data-off]) .times.log-times { margin: 0; padding: 0; }
  [data-log]:not([data-off]) .log-say { position: relative; display: flex; flex-wrap: nowrap; min-width: 0; align-items: center; justify-content: flex-start; gap: 9px; min-height: 52px; margin: 0; padding: 0 var(--row-x); }
  [data-log]:not([data-off]) .log-say::before { content: "Dates"; flex: 1; color: var(--text); font-size: 15.5px; }
  [data-log]:not([data-off]) .log-say .season-said { order: 1; flex: 0 1 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 14.5px; text-align: right; }
  [data-log]:not([data-off]) .log-say .season-acts { order: 2; margin-left: -3px; color: var(--text-3); font-size: 14.5px; }
  [data-log]:not([data-off]) .log-say::after { order: 3; }
  /* "· 2×" where it has been finished more than once (title.js sayCount sets data-n on the row's button and its box). */
  [data-log]:not([data-off]) .log-say .season-acts[data-n]:not([data-n="1"])::before { content: "\00b7\00a0" attr(data-n) "\00d7"; }
  /* The panel's own watches button is the whole row, unseen (its words are drawn above): a press anywhere on the row is a press of it. */
  [data-log]:not([data-off]) .log-say .season-count { position: absolute; inset: 0; z-index: 1; width: 100%; height: auto; min-width: 0; margin: 0; padding: 0; border-radius: 0; background: none; color: transparent; font-size: 0; opacity: 0; cursor: pointer; }
  [data-log]:not([data-off]) .log-say .season-count::before { display: none; }
  [data-log]:not([data-off]) .log-say .season-count svg { display: none; }
  [data-log]:not([data-off]) .log-say:has(.season-count:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
  [data-log]:not([data-off]) .log-also { margin: -4px 0 0; padding: 0 var(--row-x) 12px; text-align: left; }
  [data-log]:not([data-off]) .watches-menu { min-width: 0; padding: 0 var(--row-x) 14px; }
}
@media (scripting: enabled) and (max-width: 680px) {
  .title-side > .log[data-log]:not([data-off]) { display: none; }
  /* Off the shelf: the bar of four choices is already a pill (the rows block above); the page's own gaps over and under. */
  .title-side > .log[data-log][data-off] { grid-area: log; }

  /* The pill: no hairline, no arrow, no margin of its own (the page grid's gap is the 22px over and under). */
  .yourline { grid-area: log; display: block; min-width: 0; }
  .mine-pill { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; height: 54px; padding: 0 4px 0 24px; border-radius: 999px; background: var(--sunk); }
  .yourline.plain .mine-pill { padding: 0 24px; }
  .yourline[data-tint] .mine-pill { background: color-mix(in srgb, var(--tint) 13%, var(--sunk)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint) 40%, transparent); }
  .mine-pill:has(.mine-press:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
  /* ONE row: the status icon, one text (the place, else the date, else the status word: yourline.py `build`), the stars at the right (none beside the +).
     The press area is the pill's own shape: out to its left edge (and, with no +, to its right). */
  .mine-press {
    display: flex; align-items: center; min-width: 0; margin: 0 0 0 -24px; padding: 0 0 0 24px;
    border: 0; border-radius: 999px 0 0 999px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .mine-press:focus-visible { outline: none; }
  .yourline.plain .mine-press { grid-column: 1 / -1; margin: 0 -24px; padding-inline: 24px; border-radius: 999px; }
  .mine-status { flex: none; display: inline-flex; align-items: center; }
  .mine-status .status-icon { width: 19px; height: 19px; }
  .mine-status .status-icon.solid { fill: currentColor; stroke: none; }
  .mine-say { flex: 0 1 auto; min-width: 0; margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font: 600 18px/1.25 var(--sans); }
  .yourline.plain .mine-say { margin-right: 12px; }
  .yourline .stars { flex: none; --s: 22px; margin-left: auto; vertical-align: top; }
  .yourline:not(.plain) .stars { display: none; }
  /* The +, in a ring: the progress (a track, and over it the part seen from 12 o'clock). */
  .mine-plus {
    position: relative; display: grid; place-items: center; width: 46px; height: 46px; align-self: center; margin: 0 0 0 14px; padding: 0; border: 0; border-radius: 50%;
    background: none; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .mine-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 2.5; pointer-events: none; }
  .mine-ring .t { stroke: var(--line-2); }
  .mine-ring .p { stroke: var(--accent); stroke-linecap: round; }
  .mine-plus-mark { position: relative; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .mine-plus:disabled { color: var(--text-3); opacity: .45; cursor: default; }
  .mine-plus:active:not(:disabled) { background: color-mix(in srgb, var(--text) 8%, transparent); }
  .mine-plus::before { content: ""; position: absolute; inset: -4px; }
  /* "Also marked … · Undo" and a failed save: under the pill, outside its shape, 24px in. */
  .mine-also, .mine-error { margin: 8px 0 0 24px; padding: 0; text-align: left; }

  /* The sheet: from the bottom edge, the screen's full width, rounded at the top only; the one panel moved in while it is open (title.js). */
  .sheet.mine-sheet, dialog.sheet.qe {
    position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 88dvh; margin: 0; padding: 0; border: 0; border-radius: 24px 24px 0 0;
    overflow-x: hidden; animation: sheet-rise .2s ease-out;
  }
  @keyframes sheet-rise { from { transform: translateY(100%); } }
  @media (prefers-reduced-motion: reduce) { .sheet.mine-sheet, dialog.sheet.qe { animation: none; } }
  .sheet-top { touch-action: none; }
  .sheet-handle { display: block; width: 38px; height: 4px; margin: 6px auto 0; border-radius: 4px; background: var(--line-2); }
  .mine-head, dialog.sheet.qe .sheet-head { display: flex; align-items: center; gap: 18px; min-width: 0; padding: 16px 22px 0; }
  dialog.sheet.qe .sheet-head { position: static; border: 0; background: none; }
  .mine-cover { position: relative; flex: none; width: 52px; height: 78px; margin: 0; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .mine-cover .cover, dialog.sheet.qe .qe-who .cover { width: 52px; height: 78px; border-radius: 8px; }
  .mine-cover i { position: absolute; right: -8px; bottom: -8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--seg-on); box-shadow: 0 0 0 3px var(--surface); }
  .mine-cover i svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .mine-name { min-width: 0; }
  .mine-name b, dialog.sheet.qe .sheet-head .h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0; font: 400 27px/1.1 var(--serif); }
  .mine-shelfname { display: block; margin-top: 4px; color: var(--tint); font-size: 13px; font-weight: 550; }
  dialog.sheet.qe .qe-who { gap: 18px; }

  dialog.sheet.qe .qe-body { display: grid; gap: 18px; }
  dialog.sheet.qe .qe-body > .rate-row { order: -1; margin: 0 22px; --s: 40px; }
  dialog.sheet.qe .qe-body .rate { --s: 40px; }
  dialog.sheet.qe .qe-body .seg { --seg-h: 46px; }
  dialog.sheet.qe .qe-body > .status-row { margin: 0 22px 2px; }
  dialog.sheet.qe .qe-body > .count { margin-top: 0; }
  dialog.sheet.qe .qe-body > .log-error { margin: 0 22px; text-align: left; }
  dialog.sheet.qe .sheet-body { justify-items: stretch; }
  .mine-sheet .mine-body, dialog.sheet.qe .sheet-body { display: block; justify-items: stretch; padding: 18px 0 calc(30px + env(safe-area-inset-bottom, 0px)); }
  /* The sheet's panel: the sheet is its surface (no card), the season in full, the stars at 40px; the rows themselves are written once, above. */
  .mine-body > .log { grid-area: auto; border-radius: 0; background: none; }
  .mine-body > .log[data-tint] { background: none; }
  .mine-body .log-head .shelf-on { display: none !important; }
  .mine-body .rate, .mine-body .heart { --s: 40px; }
  .mine-body [data-count-season] { display: none; }
  .mine-body .count-say::before { content: attr(data-long); white-space: pre; }
  /* The held cover's quick edit (a sheet here): its counter row is the same row (written for it alone; the panel's is above). */
  .qe-body .count { border-top: 1px solid var(--line); }
  .qe-body .count {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: auto; height: auto; min-height: 52px; margin: 0; padding: 0 22px; border-radius: 0; background: none; box-shadow: none;
  }
  .qe-body .count:has(input:focus) { box-shadow: none; }
  .qe-body .count-say { order: 0; flex: 1; justify-content: flex-start; gap: 0; padding: 0; overflow: visible; color: var(--text); font-size: 15.5px; }
  .qe-body .count-unit { margin-right: 4px; }
  .qe-body [data-count-of] { margin-left: 4px; }
  .qe-body .count .count-unit { display: inline !important; }
  .qe-body [data-count-season] { display: none; }
  .qe-body .count-say::before { content: attr(data-long); white-space: pre; }
  .qe-body .count-say input { font-weight: 600; text-align: center; }
  .qe-body .count-step { position: relative; order: 1; flex: none; width: 44px; height: 34px; border-radius: 999px 0 0 999px; background: var(--sunk); }
  .qe-body .count-step[data-count-step="1"] { order: 2; margin-left: -12px; border-radius: 0 999px 999px 0; }
  .qe-body .count-step[data-count-step="1"]::after { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 1px; background: var(--line-2); }
  .qe-body .count-step::before { content: ""; position: absolute; inset: -5px 0; }
  .qe-body .count-step svg { width: 15px; height: 15px; stroke-width: 2.1; }
}
/* From 681px up, scripts on: the panel lies open under the cover as a card, the sheet's own surface, with the rows above (no label, tools, menu or chip);
   on another shelf of the person's it is tinted as the pill is, its name and lock one small line at the top. The cover carries the pencil. */
.cover-pencil { display: none; }
@media (scripting: enabled) and (min-width: 681px) {
  .title-side > [data-log]:not([data-off]) { --row-x: 18px; --menu-x: 18px; padding: 22px 0 4px; border-radius: 22px; background: var(--surface); }
  .title-side > .log[data-tint]:not([data-off]) { background: color-mix(in srgb, var(--tint) 13%, var(--sunk-0)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint) 40%, transparent); }
  [data-log]:not([data-off]) .shelf-on { order: 0; justify-content: flex-start; margin: 0 var(--row-x) 14px; font-size: 13px; }
  [data-log]:not([data-off]) :is(.rate-row, .rate, .heart) { --s: 34px; }
  /* The column is narrow (240px up to 900px of window): a long place ("S12 · Episode 103 of 124") wraps to a second line rather than push the − | + out. */
  [data-log]:not([data-off]) .count-say { flex-wrap: wrap; row-gap: 0; line-height: 1.25; }
  /* The place with the season short ("S1 · Episode 3 of 13"): the unit and the number follow it on the same line. */
  [data-log]:not([data-off]) [data-count-season] { display: inline; margin-right: 4px; }
  .cover-pencil {
    position: absolute; right: 12px; bottom: 12px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%;
    background: color-mix(in srgb, #14110f 78%, transparent); color: #f2efe9; backdrop-filter: blur(6px); cursor: pointer;
  }
  .cover-pencil[hidden] { display: none; }
  .cover-pencil svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .cover-pencil:focus-visible { outline: 2px solid #f2efe9; outline-offset: 0; box-shadow: 0 0 0 4px #14110f; }
}
@media (max-width: 350px) {
  [data-log]:not([data-off]) .count-say, .qe-body .count-say { font-size: 14px; }
  [data-log]:not([data-off]) .count, .qe-body .count { gap: 8px; }
}
@media (scripting: enabled) and (max-width: 350px) {
  /* A narrow phone: the icon, the text and the stars a little smaller, the sides 20px. */
  .mine-pill { padding-left: 20px; }
  .yourline.plain .mine-pill { padding-inline: 20px; }
  .mine-press { margin-left: -20px; padding-left: 20px; }
  .yourline.plain .mine-press { margin-inline: -20px; padding-inline: 20px; }
  .mine-status .status-icon { width: 17px; height: 17px; }
  .mine-say { font-size: 16.5px; }
  .yourline .stars { --s: 18px; }
  .mine-plus { margin-left: 8px; }
  .mine-also, .mine-error { margin-left: 20px; }
}

/* ---- a profile's look (owner, 11-26; app/looks.py) ----
   Six choices a person makes for their own profile, drawn by the server on its five tabs for everyone: it puts whitelisted keys on <html>
   (data-look-colour="gold", -ground, -tinted, -letters, -corners, -wallpaper) and every rule is here, so that nothing a person typed ever reaches
   CSS. With none of them a profile is as it was. The ground chosen is also data-theme (the attribute the site's own switch sets), so that every
   rule written for a scheme holds as it does there; the top bar's switch is not shown. */
/* The four faces (OFL, app/static/fonts/OFL-*.txt), each in its latin and latin-ext cut: a browser fetches a file only for a page that
   uses its face. size-adjust is each face's own size against the serif's (the name and the headings keep their boxes); font-display block, and
   the page asks for the face early (profile.html), so that nothing is laid out in another face and moved. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 800; font-display: block; size-adjust: 81%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-ext.woff2") format("woff2"); font-weight: 800; font-display: block; size-adjust: 81%; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Pixelify Sans"; src: url("fonts/pixelify-sans.woff2") format("woff2"); font-weight: 600; font-display: block; size-adjust: 78%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Pixelify Sans"; src: url("fonts/pixelify-sans-ext.woff2") format("woff2"); font-weight: 600; font-display: block; size-adjust: 78%; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat.woff2") format("woff2"); font-weight: 700; font-display: block; size-adjust: 105%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-ext.woff2") format("woff2"); font-weight: 700; font-display: block; size-adjust: 105%; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono.woff2") format("woff2"); font-weight: 500; font-display: block; size-adjust: 68%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-ext.woff2") format("woff2"); font-weight: 500; font-display: block; size-adjust: 68%; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.look-wall { display: none; }
@supports (color: light-dark(#000, #fff)) {
  /* Colour: the accent for each ground (3:1 against it, 4.5:1 under the words on it: tests/browser/checks/look.mjs measures all of them), what is
     mixed into the grounds where they are tinted (the dark ones' own: a mix; the light ones' kept at the light ground's lightness, since the
     words' --text-3 keeps 4.5:1 on a ground only so long as it is no darker than today's). */
  :root[data-look-colour="coral"] { --accent: light-dark(#d93a22, #ff6b4f); --on-accent: light-dark(#ffffff, #1c0a06); --look-src: #ff6b4f; }
  :root[data-look-colour="rose"] { --accent: light-dark(#c42a46, #e0465a); --on-accent: light-dark(#ffffff, #1c0a06); --look-src: #e0465a; }
  :root[data-look-colour="pink"] { --accent: light-dark(#c8307f, #ff7eb6); --on-accent: light-dark(#ffffff, #1c0a06); --look-src: #ff7eb6; }
  :root[data-look-colour="lilac"] { --accent: light-dark(#7440d6, #b58cff); --on-accent: light-dark(#ffffff, #1c0a06); --look-src: #b58cff; }
  :root[data-look-colour="indigo"] { --accent: light-dark(#4b49d6, #7d7bff); --on-accent: light-dark(#ffffff, #1c0a06); --look-src: #7d7bff; }
  :root[data-look-colour="sky"] { --accent: light-dark(#1565c0, #5aa9ff); --on-accent: light-dark(#ffffff, #1c0a06); --look-src: #5aa9ff; }
  :root[data-look-colour="teal"] { --accent: light-dark(#0b7a73, #3fb8af); --on-accent: light-dark(#ffffff, #1c0a06); --look-src: #3fb8af; }
  :root[data-look-colour="green"] { --accent: light-dark(#1b7a46, #58c98a); --on-accent: light-dark(#ffffff, #1c0a06); --look-src: #58c98a; }
  :root[data-look-colour="gold"] { --accent: light-dark(#8a5a00, #d9a441); --on-accent: light-dark(#ffffff, #1c0a06); --look-src: #d9a441; }
  :root[data-look-colour="bone"] { --accent: light-dark(#6e6657, #e8e2d6); --on-accent: light-dark(#ffffff, #1c0a06); --look-src: #e8e2d6; }
  :root[data-look-ground] :is(.theme-toggle, [data-theme-toggle]) { display: none; }
}
@supports (color: light-dark(#000, #fff)) and (color: color-mix(in oklab, red, blue)) {
  /* Tinted (owner, 11-27: as strong as the working model): the grounds mixed with the colour, 13% in the dark and 16% in the light. The muted words step toward
     the words' colour just enough to keep 4.5:1 on all ten colours over both the page's ground and its cards (the measures: tests/browser/checks/look.mjs). */
  :root[data-look-tinted][data-look-colour] {
    --bg: light-dark(color-mix(in oklab, var(--look-src) 16%, #f6f3ee), color-mix(in oklab, var(--look-src) 13%, #0f0e0d));
    --surface: light-dark(color-mix(in oklab, var(--look-src) 16%, #ffffff), color-mix(in oklab, var(--look-src) 13%, #191816));
    --sunk-0: light-dark(color-mix(in oklab, var(--look-src) 16%, #eae6de), color-mix(in oklab, var(--look-src) 13%, #1f1e1b));
    --text-3: light-dark(#655f57, #9d978e);
  }
}
/* Letters: the face replaces --serif on the page's own content (not the bar's mark); the name, the tabs, the headings and the counts' numerals follow. */
:root[data-look-letters="bold"] { --look-face: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif; --look-track: -.02em; --look-tabs: .82; --look-fit: .85; --look-hd: .86; }
:root[data-look-letters="pixel"] { --look-face: "Pixelify Sans", ui-monospace, monospace; --look-track: 0em; --look-tabs: .8; --look-fit: .85; --look-hd: .84; }
:root[data-look-letters="hand"] { --look-face: Caveat, "Segoe Print", cursive; --look-track: 0em; --look-tabs: .89; --look-fit: 1; --look-hd: .95; }
:root[data-look-letters="mono"] { --look-face: "DM Mono", ui-monospace, monospace; --look-track: -.03em; --look-tabs: .865; --look-fit: .95; --look-hd: .9; }
:root[data-look-letters]:not([data-look-letters="serif"]) #main { --serif: var(--look-face); }
/* Pixelify Sans draws "fi" as one mark that reads as an A ("ProAle", "Recently Anished": seen 11-27): no ligatures with it, on anything in the page
   (said on every element: a `font` shorthand puts the ligatures back). */
:root[data-look-letters="pixel"] #main * { font-variant-ligatures: none; }
:root[data-look-letters]:not([data-look-letters="serif"]) #main :is(.who-title > h1, .tabs a, .h2, .slot-h, .tally b) { letter-spacing: var(--look-track); }
:root[data-look-letters]:not([data-look-letters="serif"]) .who-head.editing h1[data-edit-field] { font-family: var(--look-face); }
/* (A face wider than the serif takes its tabs smaller, in a line as tall as theirs, and a long name steps down sooner: --look-tabs, --look-fit, measured.) */
:root[data-look-letters]:not([data-look-letters="serif"]) #main .tabs a { font-size: calc(38px * var(--look-tabs)); line-height: calc(1.05 / var(--look-tabs)); }
:root[data-look-letters]:not([data-look-letters="serif"]) #main .who-title > h1 {
  --look-nm0: clamp(var(--nm-min, 56px), calc((100cqw - var(--av) - 24px) / (var(--n, 8) * .42)), var(--nm));
  font-size: clamp(calc(var(--nm-min, 56px) * var(--look-fit)), calc((100cqw - var(--av) - 24px) / (var(--n, 8) * .42 / var(--look-fit))), var(--nm));
  height: var(--look-nm0); line-height: var(--look-nm0);  /* (the box as tall as the serif's name's, the letters in the middle of it) */
}
/* (The headings of the page's sections, the same: a face wider than the serif takes them smaller, in a line as tall: --look-hd.) */
:root[data-look-letters]:not([data-look-letters="serif"]) #main :is(.block-head .h2, .album.top-band .five-head .h2) { font-size: calc(32px * var(--look-hd)); line-height: calc(1.1 / var(--look-hd)); }
:root[data-look-letters]:not([data-look-letters="serif"]) #main .slot-h { font-size: calc(24px * var(--look-hd)); line-height: calc(1.1 / var(--look-hd)); }
@media (max-width: 680px) {
  :root[data-look-letters]:not([data-look-letters="serif"]) #main :is(.block-head .h2, .album.top-band .five-head .h2) { font-size: calc(27px * var(--look-hd)); }
}
@media (max-width: 680px) {
  :root[data-look-letters]:not([data-look-letters="serif"]) #main .tabs a { font-size: calc(clamp(23px, 7.6vw, 34px) * var(--look-tabs)); }
}

:root:is([data-look-letters="hand"], [data-look-letters="mono"], [data-look-letters="pixel"]) #main .krow :is(.kr-i, .kr-sw, .kr-label, .kr-total, .kr-found, .kr-q, .sort select) { font-family: var(--look-face); }  /* (the filter row in the template's own letters, as its tabs are) */
:root:is([data-look-letters="mono"], [data-look-letters="pixel"]) #main .krow :is(.kr-i, .sort select) { font-size: 13.5px; }
:root[data-look-letters="hand"] #main .krow :is(.kr-i, .sort select) { font-size: 17px; }

/* Corners: the covers and the cards on the profile (not the sheets over it): square 2px, round 18px; soft is as it was. */
:root[data-look-corners="square"] #main :is(.cover, .ghost-cover, .five-empty):not(dialog *, .pb *) { border-radius: 2px; }
:root[data-look-corners="round"] #main :is(.cover, .ghost-cover, .five-empty):not(dialog *, .pb *) { border-radius: 18px; }

/* Wallpaper: one of their favorites' cover art, a band across the top of the profile, over the tabs: the page's full width, fading into the
   ground at its foot. Up to 680px the art itself, 150px high; from 681px 190px high and soft (a cover is too small to be sharp that wide).
   The profile begins under it: no words stand on the art (as a wash behind the top, the muted words over it measured as low as 1.2:1). */
:root[data-look-wallpaper] { --wall-h: 150px; }
:root[data-look-wallpaper] .look-wall { display: block; }
:root[data-look-wallpaper] .look-wall ol.of-wall { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 100%; }
:root[data-look-wallpaper] .album-top:has(> .look-wall) { padding-top: calc(var(--wall-h) - 6px); }
:root[data-look-wallpaper] .album-top > .top-glow.look-wall {
  height: var(--wall-h); bottom: auto; mix-blend-mode: normal;
  -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent);
}
:root[data-look-wallpaper] .album-top > .top-glow.look-wall ol.of-wall { left: 0; right: 0; opacity: .92; filter: none; }
:root[data-look-wallpaper] .album-top > .top-glow.look-wall img { object-position: 50% var(--wall-at, 20%); }  /* (the person's: a whole number the server wrote, 0 to 100) */
@media (min-width: 681px) {
  :root[data-look-wallpaper] { --wall-h: 190px; }
  :root[data-look-wallpaper] .album-top > .top-glow.look-wall ol.of-wall { top: -14px; left: -14px; right: -14px; opacity: .85; filter: blur(6px); }
}

/* The Look sheet: the model's LOOK tab, in the site's own dark whatever the look (its controls read on any ground). It does not block the page:
   from the bottom on a phone (with its handle, as the title page's sheet), a card at the bottom right from 681px. */
.look-sheet {
  position: fixed; z-index: 45; left: 8px; right: 8px; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; max-height: min(46dvh, 440px);
  border-radius: 22px; background: #1b1a18; color: #f2efe9; box-shadow: 0 -12px 40px rgb(0 0 0 / .5), 0 0 0 1px rgb(255 248 236 / .08);
  font-family: var(--sans);
}
.look-sheet[hidden] { display: none; }
/* On a phone its top is dragged: up, the sheet is tall (every choice in sight); down, half again, then away (profile.js). */
.look-top { flex: none; }
@media (max-width: 680px) {
  .look-sheet { transition: max-height .2s ease-out; }
  .look-sheet[data-tall] { max-height: calc(100dvh - 142px); }
  .look-sheet.pulling { transition: none; }
  .look-top { touch-action: none; cursor: grab; }
  .look-handle { margin-top: 10px; }
  @media (prefers-reduced-motion: reduce) { .look-sheet { transition: none; } }
}
.look-handle { display: block; flex: none; width: 38px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: rgb(255 248 236 / .22); }
.look-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 4px 18px; }
.look-title { margin: 0; font: 600 16px/1.2 var(--sans); }
.look-x { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #2a2826; color: #f2efe9; cursor: pointer; }
.look-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.look-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 16px; }
.look-opt { padding: 12px 0; border-top: 1px solid rgb(255 248 236 / .09); }
.look-opt:first-child { border-top: 0; }
/* Saved layouts: a card each (a small picture of its look), the live one marked; New, Rename and Delete under them. */
.look-lcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
.look-lc { position: relative; min-width: 0; }
.look-lc > button { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.look-lc .look-mini { height: 78px; }
.look-lc[aria-pressed="true"] .look-mini { box-shadow: 0 0 0 2px #1b1a18, 0 0 0 4px #f2efe9; }
.look-lc-name { display: block; width: 100%; margin-top: 8px; overflow: hidden; color: #b9b2a7; font-size: 13px; font-weight: 500; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.look-lc[aria-pressed="true"] .look-lc-name { color: #f2efe9; }
input.look-lc-name { height: 26px; margin-top: 6px; padding: 0 6px; border: 0; border-radius: 6px; outline: 2px solid #ff6b4f; background: #2a2826; color: #f2efe9; font: 500 13px var(--sans); }
.look-lc-live { position: absolute; top: 6px; right: 6px; z-index: 2; padding: 2px 7px; border-radius: 999px; background: #f2efe9; color: #141210; font-size: 11px; font-weight: 600; line-height: 1.4; pointer-events: none; }
.look-lrow { margin-top: 12px; }
.look-lrow .look-chip:disabled { opacity: .35; cursor: default; }
.look-lrow .look-chip.asking { background: #e0465a; color: #fff; }
.look-label { display: block; margin-bottom: 10px; color: #a59f95; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.look-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.look-note { margin: 8px 0 0; color: #a59f95; font-size: 13px; }
.look-chip, .look-thumb, .look-sw { padding: 0; border: 0; color: #f2efe9; font: 500 14.5px/1 var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.look-chip { height: 36px; padding: 0 14px; border-radius: 999px; background: #2a2826; }
.look-chip[aria-pressed="true"] { background: #f2efe9; color: #141210; }
.look-sw { width: 36px; height: 36px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.look-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px #1b1a18, 0 0 0 4px #f2efe9; }
.look-face { height: 44px; border-radius: 14px; font-size: 24px; font-weight: 400; line-height: 1; }
.look-face span { display: block; max-width: 6.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-block: .1em; }
.look-face[data-face="serif"], .look-aa[data-face="serif"] { font-family: "Instrument Serif", Georgia, serif; }
.look-face[data-face="bold"] { font-family: "Bricolage Grotesque", ui-sans-serif, sans-serif; font-weight: 800; }
.look-face[data-face="pixel"] { font-family: "Pixelify Sans", ui-monospace, monospace; font-weight: 600; }
.look-face[data-face="hand"] { font-family: Caveat, cursive; font-weight: 700; }
.look-face[data-face="mono"] { font-family: "DM Mono", ui-monospace, monospace; font-weight: 500; }
.look-thumb { position: relative; flex: none; width: 52px; height: 70px; overflow: hidden; border-radius: 10px; background: #2a2826; color: #a59f95; font-size: 12.5px; }
.look-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.look-thumb[aria-pressed="true"] { box-shadow: 0 0 0 2px #1b1a18, 0 0 0 4px #f2efe9; }
.look-sheet button:focus-visible { outline: 2px solid #ff6b4f; outline-offset: 2px; }
@media (min-width: 681px) {
  .look-sheet { left: max(24px, env(safe-area-inset-left, 0px)); right: auto; bottom: 90px; width: 360px; max-height: min(640px, calc(100dvh - 130px)); border-radius: 20px; }
  .look-handle { display: none; }
  .look-head { padding-top: 12px; }
}

/* ---- the way in, and the bar (owner, 11-27: "on a corner and just a pencil") ----
   On their own Profile tab, at rest: a round pencil, 44px, quiet, fixed in the bottom LEFT corner (owner, 11-27: at the right a thumb pressed it by
   accident; 16px from the left, 12px over the dock on a phone; from 681px 24px from the left and the bottom). The page's foot ends above it, so that
   it never stands over the foot's last line. Pressed, the page's edit mode begins and the bar stands in its place: Discard, Look, Blocks, Save, a
   pill in the site's dark whatever the look (as the sheet). On a phone it is centred at the foot and the dock is not shown while editing; from 681px it
   stands in the bottom right corner. Look and Blocks open the one sheet over it (the Look sheet, below). */
.edit-pencil {
  position: fixed; z-index: 30; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(60px + env(safe-area-inset-bottom, 0px) + 12px); display: grid; place-items: center; width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 50%; background: var(--sunk); color: var(--text-2); box-shadow: 0 0 0 1px var(--line-2), 0 6px 18px -8px rgb(0 0 0 / .45); cursor: pointer;
}
.edit-pencil[hidden] { display: none; }
body:has([data-edit-pencil]) > .foot { padding-bottom: 68px; }  /* (at rest and editing alike: nothing moves as editing begins) */
.edit-pencil svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .edit-pencil:hover { color: var(--text); } }
.edit-bar {
  position: fixed; z-index: 46; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 4px;
  height: 56px; padding: 0 6px; border-radius: 999px; background: #1b1a18; color: #f2efe9; font-family: var(--sans);
  box-shadow: 0 8px 28px rgb(0 0 0 / .5), 0 0 0 1px rgb(255 248 236 / .1);
}
.edit-bar[hidden] { display: none; }
.edit-bar button { height: 44px; padding: 0 13px; border: 0; border-radius: 999px; background: none; color: inherit; font: 500 15px/1 var(--sans); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.edit-bar .eb-quiet { color: #b9b2a7; }
.edit-bar .eb-tab[aria-pressed="true"] { background: #45423e; }
.edit-bar .eb-save { padding: 0 17px; background: #f2efe9; color: #141210; font-weight: 600; }
.edit-bar i { width: 1px; height: 22px; background: rgb(255 248 236 / .14); }
.edit-bar button.asking { background: #c2361f; color: #fff; }
.edit-bar button:focus-visible { outline: 2px solid #ff6b4f; outline-offset: 2px; }
@media (min-width: 681px) {
  .edit-pencil { left: max(24px, env(safe-area-inset-left, 0px)); bottom: 24px; }
  .edit-bar { left: max(24px, env(safe-area-inset-left, 0px)); right: auto; bottom: 24px; transform: none; }
  .edit-bar button { padding: 0 15px; }
  .edit-bar .eb-save { padding: 0 19px; }
}
@media (max-width: 680px) { body.is-editing .dock { display: none; } }
/* While editing, the page ends as far above the bar as the bar is tall, so that nothing stays under it at its end. */
body.editing-room .foot { padding-bottom: 96px; }

/* The Look sheet's start from: seven whole starts, the model's rail of cards: the template's ground with its tint, its wallpaper's top, "Aa" in its face,
   a bar of its colour; its name under; the one in force ringed. Scrolls sideways. */
.look-tpls { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 6px; scrollbar-width: none; }
.look-tpls::-webkit-scrollbar { display: none; }
.look-tpl { flex: none; width: 84px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* With a mouse a sideways rail with no bar cannot be reached (owner, 11-27: "how am i supposed to reach the right here?"): there, and from 681px,
   the templates stand three across, all in sight. A finger keeps the rail. */
@media (min-width: 681px), (pointer: fine) {
  .look-tpls { flex-wrap: wrap; overflow: visible; margin: 0; padding: 4px 0 6px; }
  .look-tpl { width: calc((100% - 20px) / 3); }
}
.look-mini { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: end; height: 104px; padding: 9px; overflow: hidden; border-radius: 14px; background: var(--b); }
.look-mini b { position: absolute; left: 10px; top: 8px; color: var(--t); line-height: 1; }
.look-mini u { height: 20px; text-decoration: none; }
.look-mini u:last-child { grid-column: 1 / 3; }
.look-mini[data-m="none"] u { border-bottom: 2px solid color-mix(in srgb, var(--t) 26%, transparent); }
.look-mini[data-m="notes"] u { background: var(--s); box-shadow: 0 3px 5px -2px rgb(40 20 10 / .5); }
.look-mini[data-m="notes"] u:nth-of-type(odd) { rotate: -3deg; }
.look-mini[data-m="notes"] u:nth-of-type(even) { rotate: 2deg; }
.look-mini[data-m="notes"] u::before { content: ""; display: block; width: 16px; height: 6px; margin: -3px auto 0; background: var(--a); opacity: .7; }
.look-mini[data-m="frames"] u { border: 1px solid var(--a); outline: 1px solid color-mix(in srgb, var(--a) 35%, transparent); outline-offset: -4px; }
.look-mini[data-m="boxes"] u { border: 1px solid var(--a); }
.look-mini[data-m="windows"] u { background: var(--s); border: 1.5px solid var(--t); border-top: 7px solid var(--a); border-radius: 3px; box-shadow: 2px 2px 0 var(--t); }
.look-mini[data-m="rules"] u { border-top: 3px solid var(--t); }
.look-tpl[aria-pressed="true"] .look-mini { box-shadow: 0 0 0 2px #1b1a18, 0 0 0 4px #f2efe9; }
.look-tpl-name { display: block; margin-top: 8px; color: #b9b2a7; font-size: 13px; font-weight: 500; text-align: center; }
.look-tpl[aria-pressed="true"] .look-tpl-name { color: #f2efe9; }
.look-aa { font-size: 26px; font-weight: 400; }
.look-aa[data-face="bold"] { font: 800 21px/1 "Bricolage Grotesque", ui-sans-serif, sans-serif; }
.look-aa[data-face="pixel"] { font: 600 20px/1 "Pixelify Sans", ui-monospace, monospace; }
.look-aa[data-face="hand"] { font: 700 27px/1 Caveat, cursive; }
.look-aa[data-face="mono"] { font: 500 18px/1 "DM Mono", ui-monospace, monospace; }
/* The wallpaper's position: a slider under the thumbnails, while one is chosen. */
.look-at { display: flex; align-items: center; gap: 14px; margin-top: 10px; color: #a59f95; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.look-at[hidden] { display: none; }
.look-at input { flex: 1; min-width: 0; height: 44px; margin: 0; accent-color: #f2efe9; }
/* Blocks: the top's parts (a switch each) and the rows under it (a switch, up and down each). */
.look-brow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 44px; border-top: 1px solid rgb(255 248 236 / .09); }
.look-label + .look-brow { border-top: 0; }
.look-brow b { flex: 1; font-size: 15.5px; font-weight: 500; }
.look-brow.off b { color: #8a847a; }
.look-sw2 { position: relative; flex: none; width: 46px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: #45423e; cursor: pointer; }
.look-sw2::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #1b1a18; transition: transform .15s; }
.look-sw2[aria-pressed="true"] { background: #f2efe9; }
.look-sw2[aria-pressed="true"]::after { transform: translateX(18px); }

/* Favorite characters (owner, 11-27): a round portrait, 84px, a ring in the accent (the initial where there is no picture), the name and the title under it;
   one row on a computer (six at most), three across on a phone (two rows at most). */
.chars { display: grid; grid-template-columns: repeat(var(--cn, 6), minmax(0, 1fr)); gap: 24px 20px; max-width: calc(var(--cn, 6) * 230px); margin: 0 auto; padding: 0; list-style: none; }
.char { display: block; color: inherit; text-align: center; text-decoration: none; }
.char-pic { position: relative; display: grid; place-items: center; width: 84px; height: 84px; margin-inline: auto; overflow: hidden; border-radius: 50%; background: var(--sunk); color: var(--text-2); font: 400 34px/1 var(--serif); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
/* The picture fills the circle as the favorite's spotlight's does (`.show-pick-face img`: laid over the circle, `cover`, from 20% down): never a grid item, which took the picture's
   own height (an actor's 2:3 headshot, 126px in an 84px circle) and, centred, cut the top of the head and the foot as well (owner, 11-28: "the pic still looks wrong"). */
.char-pic img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.char-name { display: block; margin-top: 14px; font-size: 14.5px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.char-from { display: block; margin-top: 2px; color: var(--text-3); font-size: 12.5px; line-height: 1.3; overflow-wrap: anywhere; }
@media (max-width: 680px) { .chars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 10px; max-width: none; } }
/* On a computer the two rows that are new stand in ONE band when they are shown side by side in the order (owner, 11-28: "wtf is this": the left half of the page with
   the right half empty): Favorite characters left, Theme song right, their tops level; each of them alone is as wide as the page (the characters spread across it,
   the song card as it was). Whoever follows the pair stands under both. */
@media (min-width: 681px) {
  .album { display: flow-root; }
  :is(.chars-row, .song-row):not([data-off]):has(+ :is(.chars-row, .song-row):not([data-off])) { float: left; width: 55%; margin-bottom: 72px; }
  :is(.chars-row, .song-row):not([data-off]) + :is(.chars-row, .song-row):not([data-off]) { float: right; width: 40%; margin-bottom: 72px; }
  :is(.chars-row, .song-row):not([data-off]) + :is(.chars-row, .song-row):not([data-off]) + * { clear: both; }
  :is(.chars-row, .song-row):not([data-off]):has(+ :is(.chars-row, .song-row):not([data-off])) .chars,
  :is(.chars-row, .song-row):not([data-off]) + :is(.chars-row, .song-row):not([data-off]) .chars { grid-template-columns: repeat(var(--cp, 3), minmax(0, 1fr)); max-width: none; margin: 0; gap: 24px 12px; }
}
.row-none { margin: 0; }
/* Theme song: one of the songs they chose for their favorites, played as a spotlight's is (profile.js: the same player). */
.theme-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) 42px; align-items: center; gap: 0 14px; max-width: 560px; padding: 12px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.theme-card[hidden] { display: none; }
:root[data-look-corners="square"] .theme-card { border-radius: 4px; }
:root[data-look-corners="round"] .theme-card { border-radius: 26px; }
.theme-art { grid-area: 1 / 1; width: 56px; height: 56px; overflow: hidden; border-radius: 10px; background: var(--sunk); }
.theme-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.theme-what { grid-area: 1 / 2; display: grid; min-width: 0; }
.theme-what b, .theme-what small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-what b { font-size: 15px; font-weight: 600; line-height: 19px; }
.theme-what small { color: var(--text-3); font-size: 13px; line-height: 17px; }
.theme-what .show-line { margin-top: 7px; }
.theme-card .show-apple { grid-area: 2 / 2 / 3 / 4; justify-self: start; margin-top: 10px; }
.theme-card .show-apple[hidden] { display: none; }
.theme-card .show-apple img { height: 24px; }
.theme-play { grid-area: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.theme-play svg { grid-area: 1 / 1; width: 16px; height: 16px; fill: currentColor; }
.theme-play .when-playing, .theme-play .when-none, [data-playing] .theme-play .when-still { display: none; }
[data-playing] .theme-play .when-playing { display: block; }
.theme-play:disabled { background: var(--line); color: var(--text-3); cursor: default; }
.theme-play:disabled .when-still { display: none; }
.theme-play:disabled .when-none { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.theme-play .when-none circle { fill: currentColor; }
.theme-play:disabled ~ .theme-what .show-line, .theme-card:has(.theme-play:disabled) .show-line { display: none; }
/* Blocks: "Linked accounts", a quiet Change at its right (no switch): the links sheet opens over this one. */
.look-change { flex: none; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: #2a2826; color: #f2efe9; font: 500 14.5px/1 var(--sans); cursor: pointer; }
.look-brow:has(.look-change) { min-height: 56px; }
.look-change:focus-visible { outline: 2px solid #ff6b4f; outline-offset: 2px; }

/* ---- the profile as a board (owner, 11-27; app/boards.py, profile.js `fitBoard`) ----
   Under the tabs of a profile's Profile tab, in place of its top and rows: ONE GRID of twelve columns and rows of one height (84px) on which every block is a
   shape (columns wide `--pw`, rows tall `--ph`); the shapes of a template meet edge to edge. What a block holds is laid out to FILL its shape: `--pb-bh` is the
   room it has for what it holds (its rows less its own frame and heading: how much each way of drawing blocks takes is its `--pb-pad` / `--pb-chrome`), and the
   script (`fitBoard`) takes, in a row of covers, the fewest across whose height still fits it (the largest covers that fit, spread edge to edge; one that does
   not fit is not drawn). A cover keeps its own shape (2:3), whole, always (owner, 11-27: "squished covers"). Under 1100px a block is as tall as what it holds
   (below: one column on a phone, two in a small window). Colours are the site's own tokens (so dark, light and tinted come from the look); nothing is said in a colour that
   reads on one ground only. How blocks are drawn (`data-look-tiles` on <html>) and the background (`data-look-back`) are the look's. */
.pb-region { display: contents; }
.album.pb-on > .album-top, .album.pb-on > .block[data-row] { display: none; }
.pb {
  --pb-face-ring: 4px; --pb-face-gap: 18px; --pb-gap: 28px; --pb-r: 10px; --pb-soft: var(--look-src, #ff6b4f); --pb-photo: #ffffff;
  --pb-mute: color-mix(in srgb, var(--text-3) 70%, var(--text)); --pb-hs: 27px; --pb-hw: 400; --pb-hl: 1.05; --pb-ns: 60px; --pb-nw: 400; --pb-nl: 1; --pb-cw: .45; --pb-track: 0em; --pb-av: 108px;
  --pb-chip: rgb(255 255 255 / .7);
  position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 84px; grid-auto-flow: row dense; gap: var(--pb-gap); margin: 28px 0 44px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pb { --pb-photo: #ece5d9; --pb-chip: rgb(255 255 255 / .07); } }
:root[data-theme="dark"] .pb { --pb-photo: #ece5d9; --pb-chip: rgb(255 255 255 / .07); }
/* The letters (the face's own size against the serif's is in its @font-face: size-adjust; the sizes here are for that). */
:root[data-look-letters="hand"] .pb { --pb-hs: 31px; --pb-hw: 700; --pb-hl: 1; --pb-ns: 64px; --pb-nw: 700; --pb-nl: .95; --pb-cw: .4; }
:root[data-look-letters="pixel"] .pb { --pb-hs: 26px; --pb-hw: 600; --pb-hl: 1.1; --pb-ns: 54px; --pb-nw: 600; --pb-cw: .5; }
:root[data-look-letters="mono"] .pb { --pb-hs: 25px; --pb-hw: 500; --pb-hl: 1.2; --pb-ns: 52px; --pb-nw: 500; --pb-nl: 1.1; --pb-cw: .6; --pb-track: -.03em; font-family: "DM Mono", ui-monospace, monospace; }
:root[data-look-letters="bold"] .pb { --pb-hs: 25px; --pb-hw: 800; --pb-hl: 1.1; --pb-ns: 62px; --pb-nw: 800; --pb-cw: .55; --pb-track: -.02em; }
.pb-tile {
  --pb-rows: var(--ph); --pb-pad: 0px; --pb-chrome: calc(var(--pb-pad) + var(--pb-hs) * 1.08 + 12px);
  --pb-bh: calc(var(--pb-rows) * 84px + (var(--pb-rows) - 1) * var(--pb-gap) - var(--pb-chrome)); --pb-ch: calc(var(--pb-bh) - 2 * var(--pb-edge, 0px));
  position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; grid-column: span var(--pw); grid-row: span var(--ph); container-type: size;
}
/* (Its owner, not editing: a block beside one of theirs with nothing to show has its columns too, `--pv`, as everyone is drawn it.) */
@media (min-width: 1100px) { .pb:not(.editing) > .pb-tile { grid-column: span var(--pv, var(--pw)); } }
/* Under 1100px (the site's own step) the twelve columns are too narrow for what blocks hold (a small window of a computer: owner, 11-27), so a block is no longer
   a shape of the grid: it is as tall as what it holds, its rows (`--pp`) the MOST it may be ("nothing half-empty"): the script fits what it holds into that much
   (the covers of a row as large as it allows), and the block ends where its last line does. A phone (680px and under): one column. A small window: two columns,
   in the board's order, each block under the one over it with no hole (`data-lanes`, set by the script with each block's own height as a count of the grid's thin
   rows, `--pr`; before the script, a row of two is as tall as its taller one); a block made to be wide (`data-wide`: nine columns and more) stands across both. */
@media (max-width: 1099px) {
  .pb { grid-auto-rows: auto; }
  .pb-tile { --pb-rows: var(--pp); grid-column: auto; grid-row: auto; max-height: calc(var(--pp) * 84px + (var(--pp) - 1) * var(--pb-gap)); container-type: inline-size; }
}
/* (What is words and marks, not pictures, is there whole: all that is said in About, every tag, count and account. Nothing is cut where the page scrolls.) */
@media (max-width: 1099px) { .pb-tile:is([data-k="person"], [data-k="about"], [data-k="tags"], [data-k="counts"], [data-k="song"], [data-k="elsewhere"]) { max-height: none; } }
@media (max-width: 680px) { .pb { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 681px) and (max-width: 1099px) {
  .pb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pb-tile[data-wide] { grid-column: 1 / -1; }
  .pb[data-lanes] { grid-auto-rows: 2px; row-gap: 0; align-items: start; margin-bottom: 18px; }
  .pb[data-lanes] > .pb-tile { grid-row: span var(--pr, 90); }
}
.pb-tile > h2 { flex: none; margin: 0 0 12px; font-family: var(--serif); font-size: var(--pb-hs); font-weight: var(--pb-hw); line-height: var(--pb-hl); letter-spacing: var(--pb-track); font-variant-ligatures: none; white-space: nowrap; color: var(--text); }
.pb-tile[data-k="person"] > h2 { display: none; }
.pb-tile[data-k="person"] { --pb-chrome: var(--pb-pad); }  /* (no heading over Me but in a window or a box) */
.pb-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.pb-h-boxes { display: none; }
.pb-none { margin: 0; color: var(--pb-mute); font-size: 14px; line-height: 1.4; }
/* A block with nothing to show is not drawn, but for its owner while editing; one kept from everyone else is faint. */
.pb:not(.editing) .pb-tile[data-empty] { display: none; }
.pb-tile[data-off] { opacity: .55; }
.pb.editing .pb-tile { outline: 1.5px dashed color-mix(in srgb, var(--text) 38%, transparent); outline-offset: 5px; }

/* What the blocks hold. */
.pb-who { --pb-as: clamp(60px, var(--pb-bh), var(--pb-av)); display: flex; align-items: center; gap: 16px; min-width: 0; }
.pb .avatar { flex: none; width: var(--pb-as); height: var(--pb-as); border-radius: var(--pb-face-r, 50%); object-fit: cover; box-shadow: var(--pb-face-edge, none); font-size: calc(var(--pb-as) * .4); line-height: 1; overflow: hidden; }
:root[data-look-letters="hand"] .pb span.avatar { font-size: calc(var(--pb-as) * .34); }
.pb-pic { position: relative; flex: none; display: grid; padding: 0; border: 0; border-radius: var(--pb-face-r, 50%); background: none; color: inherit; cursor: default; }
.pb-pic:disabled { cursor: default; color: inherit; }
.pb-picwrap { position: relative; flex: none; display: block; }
.pb.editing .pb-pic { cursor: pointer; }
.pb-id { min-width: 0; flex: 1; }
.pb-name { margin: 0; font-family: var(--serif); font-weight: var(--pb-nw); line-height: var(--pb-nl); letter-spacing: var(--pb-track); font-variant-ligatures: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: clamp(28px, calc((100cqw - var(--pb-pad-x, 0px) - var(--pb-as, 80px) - 40px) / (var(--n, 8) * var(--pb-cw))), var(--pb-ns)); }
/* (A name too long for one line at its smallest size stands on two: profile.js.) */
.pb-name[data-long] { max-height: 2.2em; font-size: 28px; line-height: 1.1; white-space: normal; overflow-wrap: anywhere; text-wrap: balance; }
.pb-handle, .pb-line { margin: 4px 0 0; color: var(--pb-mute); font-size: 13.5px; line-height: 1.35; }
.pb-handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-handle i { font-style: normal; }
@container (max-width: 400px) { .pic-badge { width: 22px; height: 22px; } .pb-who { --pb-as: 56px; } .pb-who { gap: 10px; } .pb-line { font-size: 12px; gap: 2px 8px; } .pb-line .btn.small { height: 26px; padding: 0 10px; } .pb-line .person-more { width: 26px; height: 26px; } }
.pb-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 2px; }
.pb-line a { color: inherit; text-decoration: none; }
@media (hover: hover) { .pb-line a:hover { color: var(--text); } }
.pb-line b { color: var(--text-2); font-weight: 600; }
.pb-private { padding: 0 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12px; line-height: 20px; }
.pb-line .who-acts { margin-left: auto; }
.pb-line .btn.small { height: 30px; padding: 0 14px; font-size: 13px; }
.pb-line .person-more { width: 30px; height: 30px; }
.pb-bio { margin: 0; color: var(--text-2); font-size: calc(clamp(15px, 2.9cqw, 19px) * var(--bk, 1)); line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; overflow-wrap: anywhere; white-space: pre-line; }
.pb.editing [data-pb-field]:empty::before { content: attr(data-placeholder); color: var(--text-3); }
.pb.editing [data-pb-field][contenteditable] { outline: none; border-radius: 4px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--text) 10%, transparent); }
.pb-tags { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px; max-height: var(--pb-bh); overflow: hidden; }
/* (Where every one of them fits at a larger size, they are larger: profile.js.) */
.pb-tags[data-roomy] { gap: 9px; }
.pb-tags[data-roomy] .pb-tag { height: 36px; padding: 0 15px; font-size: 15px; line-height: 34px; }
/* (In a narrow block, a computer's three columns at a small window, the pills are smaller, so that more of them fit before one is left out.) */
@container (max-width: 250px) { .pb-tags { gap: 5px; } .pb-tags .pb-tag { height: 26px; padding-inline: 9px; font-size: 12px; line-height: 24px; } }
.pb-tag { height: 30px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); font-size: 13px; line-height: 28px; text-decoration: none; white-space: nowrap; }
.pb-tag.pb-first { border-color: var(--accent); color: var(--text); }
/* The counts stand from edge to edge of the block with the same room between them (`--cn` across: all of them; where they do not fit, smaller, then in two rows: profile.js). */
.pb-counts { display: grid; grid-template-columns: repeat(var(--cn, 6), max-content); justify-content: space-between; gap: 12px 6px; }
.pb-counts[data-roomy] { gap: 14px 10px; }
.pb-counts[data-roomy] a { gap: 4px; font-size: 13.5px; }
.pb-counts[data-roomy] b { font-size: calc(var(--pb-hs) * 1.3); }
.pb-counts[data-tight] { gap: 8px 4px; }
.pb-counts[data-tight] a { font-size: 11px; }
.pb-counts[data-tight] b { font-size: calc(var(--pb-hs) * .78); }
.pb-counts a { display: grid; gap: 2px; color: var(--pb-mute); font-size: 12.5px; line-height: 1.2; text-decoration: none; }
.pb-counts b { font-family: var(--serif); font-size: var(--pb-hs); font-weight: var(--pb-hw); line-height: var(--pb-hl); letter-spacing: var(--pb-track); color: var(--text); }
.pb .cover { width: 100%; border-radius: var(--pb-r); box-shadow: var(--pb-cover-edge, none); transition: none; }
@media (hover: hover) { .pb a:hover .cover { transform: none; } }
/* The favorites: so many across (the script's `--nrow`, the length of a row of them), each row centred, a last row of fewer too. */
.pb-nine { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: var(--pb-cover-gap, 10px); width: 100%; max-width: var(--nrow, 100%); height: var(--pb-ch); margin: var(--pb-edge, 0px) auto; }
.pb-nine > * { flex: none; width: var(--cw, 80px); }
/* The favorites in the edit mode (owner, 11-28: edited on the block itself): each cover has its × and is dragged into its place or pressed to be replaced; the empty place is a + the shape of a cover.
   A small search over the cover pressed (`.pb-pop`) picks the title. */
.pb-fe { position: relative; cursor: grab; user-select: none; -webkit-user-select: none; }
.pb-fe:focus-visible { outline: 2px solid #ff6b4f; outline-offset: 3px; }
.pb-fe .cover img { pointer-events: none; -webkit-user-drag: none; }
.pb-fheld { scale: 1.04; }
.pb-fx { position: absolute; top: 5px; right: 5px; z-index: 2; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #1b1a18; color: #f2efe9; box-shadow: 0 0 0 1.5px rgb(255 248 236 / .35); cursor: pointer; }
.pb-fx svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.pb-fx::after { content: ""; position: absolute; inset: -8px; }
.pb-fadd { display: grid; place-items: center; aspect-ratio: 2 / 3; padding: 0; border: 2px dashed color-mix(in srgb, var(--text) 45%, transparent); border-radius: var(--pb-r, 6px); background: none; color: color-mix(in srgb, var(--text) 65%, transparent); cursor: pointer; }
.pb-fadd svg { width: 28%; max-width: 30px; aspect-ratio: 1; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.pb-fadd:focus-visible { outline: 2px solid #ff6b4f; outline-offset: 3px; }
.pb-pop { position: fixed; z-index: 60; display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; padding: 12px 12px 8px; border-radius: 18px; background: #1b1a18; color: #f2efe9; box-shadow: 0 14px 40px rgb(0 0 0 / .5), 0 0 0 1px rgb(255 248 236 / .12); font-family: var(--sans); }
.pb-pop .bs-search { margin-bottom: 8px; box-shadow: none; }
.pb-pop .bs-search:focus-within { box-shadow: 0 0 0 2px #ff6b4f; }
.pb-pop .bs-fgrid { padding: 4px 2px; gap: 12px 10px; }
/* A row of covers: each its own shape; the script takes the fewest that fill the block's height without passing it, and the row spreads them edge to edge. */
.pb-covers { display: grid; grid-template-columns: repeat(var(--n, 4), var(--iw, 90px)); justify-content: space-between; align-content: center; column-gap: var(--pb-cover-gap, 12px); height: var(--pb-ch); margin: var(--pb-edge, 0px); }
.pb-covers[data-left] { justify-content: start; }
.pb-covers > *, .pb-nine > * { min-width: 0; display: block; color: inherit; text-decoration: none; }
@media (max-width: 1099px) { .pb-nine, .pb-covers { height: auto; max-height: var(--pb-ch); } }  /* (a block as tall as what it holds: as tall as its covers) */
.pb-done b { display: block; margin-top: 8px; overflow: hidden; font-size: 13.5px; font-weight: 500; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.pb-done .stars { --s: 12px; display: block; margin-top: 3px; }
.pb-fan { position: relative; display: block; aspect-ratio: 100 / 73.5; }
.pb-fi { position: absolute; top: 0; left: calc(var(--i) * 17%); width: 49%; }
.pb-fi .cover { border-radius: calc(var(--pb-r) * .8); }
.pb-list b { display: block; margin-top: 10px; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.pb-list small { display: block; color: var(--pb-mute); font-size: 13px; line-height: 1.3; }
/* The characters (owner, 11-27: "faces never cut; consistent size; photos and drawings look like they belong together"). Every one is a card of ONE shape and one size
   (3:4, `--fw` wide: the script takes the largest at which all of them fit the block, so many across, the rows the same length where it can, the last one centred). A
   character's picture is shown WHOLE on its card, never cut, standing on the card's foot (a drawing cut at the knees stands on the edge, as it was drawn to): what
   its own shape leaves of the card is the picture's own ground, its flat colour where it has one (a drawing on white: profile.js `groundFaces`), else the picture
   itself out of focus (`--art`, the same file), so a tall drawing, a wide one and an actor's photo are all whole cards side by side. Names under them: two lines
   at most, the title one. */
.pb-faces { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: var(--fgy, 14px) var(--fg, 12px); width: 100%; max-width: calc(var(--frow, 100%) + 2 * var(--pb-face-ring)); margin: 0 auto; padding: var(--pb-face-ring); list-style: none; text-align: center; }  /* (`--pb-face-ring`: how far a card's edge is drawn outside it, the look's) */
.pb-faces > li { flex: none; width: var(--fw, 84px); min-width: 0; }
.pb-face { display: block; color: inherit; text-decoration: none; }
.pb-fp { position: relative; isolation: isolate; display: grid; place-items: center; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--pb-face-r, var(--pb-r)); background: color-mix(in srgb, var(--text) 9%, var(--surface, var(--bg))); color: var(--text-2); font: 400 34px/1 var(--serif); box-shadow: var(--pb-face-edge, 0 0 0 2px var(--bg), 0 0 0 4px var(--accent)); }
.pb-fp:has(> img) { background: var(--pb-photo); }
.pb-fp:has(> img)::before { content: ""; position: absolute; z-index: -1; inset: -12%; background: var(--art, none) center / cover no-repeat; filter: blur(8px) saturate(1.1); }
.pb-fp img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.pb-face b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: 10px; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; text-wrap: balance; }
.pb-face small { display: block; margin-top: 2px; overflow: hidden; color: var(--pb-mute); font-size: 12.5px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.pb-face :is(b, small) { margin-inline: calc(0px - var(--fo, 0px)); }  /* (a name may use some of the room between two cards: `--fo`, profile.js) */
/* (Too many for the block with their names: the pictures alone, each name still its link's.) */
.pb-faces[data-bare] .pb-face :is(b, small) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pb-song { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; }
.pb-song[hidden] { display: none; }
.pb-art { display: block; width: 56px; aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--pb-r) * .7); background: var(--sunk); box-shadow: var(--pb-cover-edge, none); }
.pb-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pb-art img[hidden] { display: none; }
.pb-what { display: grid; min-width: 0; }
.pb-what b { display: block; overflow: hidden; font-size: 16px; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.pb-what small { display: block; overflow: hidden; color: var(--pb-mute); font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.pb-rule { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.pb-bar { flex: 1; min-width: 40px; height: 3px; overflow: hidden; border-radius: 3px; background: var(--line-2); }
.pb-bar i { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.pb-rule .show-apple { flex: none; }
.pb-rule .show-apple[hidden] { display: none; }
.pb-rule .show-apple img { display: block; height: 24px; width: auto; }  /* (the size the spotlight draws it on a phone: never smaller) */
.pb-play { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: var(--pb-play-r, 50%); background: var(--accent); color: var(--on-accent); box-shadow: var(--pb-play-edge, none); cursor: pointer; }
.pb-play svg { grid-area: 1 / 1; width: 16px; height: 16px; fill: currentColor; }
.pb-play .when-playing, [data-playing] .pb-play .when-still { display: none; }
[data-playing] .pb-play .when-playing { display: block; }
.pb-play:disabled { background: var(--line); color: var(--text-3); cursor: default; }
.pb-reviews { display: grid; gap: 14px; max-height: var(--pb-bh); overflow: hidden; align-content: start; }
@container (min-width: 700px) and (max-height: 330px) { .pb-reviews { grid-template-columns: 1fr 1fr; gap: 14px 36px; } }
.pb-review { min-width: 0; }
.pb-review h3 { margin: 0; overflow: hidden; font-family: var(--serif); font-size: calc(var(--pb-hs) * .74); font-weight: var(--pb-hw); line-height: 1.15; letter-spacing: var(--pb-track); font-variant-ligatures: none; text-overflow: ellipsis; white-space: nowrap; }
.pb-review h3 a { color: inherit; text-decoration: none; }
.pb-review h3 span { color: var(--text-3); font: 400 13px var(--sans); }
.pb-review .stars { --s: 12px; display: block; margin-top: 4px; }
.pb-review .rev-text { margin: 5px 0 0; color: var(--text-2); font-size: 14.5px; line-height: 1.45; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lines, 2); overflow: hidden; }
.pb-review .spoiler { margin-top: 5px; font-size: 14px; }
/* Elsewhere: the accounts as round marks, a group in the middle of the block; one or two of them (`data-few`), each a line of its own with the site's name and the
   person's name there, so that a block with one account is not one small mark in an empty box. */
.pb-elsewhere { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 10px; }
.pb-else { flex: none; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: var(--pb-play-r, 50%); background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); box-shadow: var(--pb-play-edge, none); font: inherit; text-decoration: none; cursor: pointer; }
.pb-else svg { width: 20px; height: 20px; fill: currentColor; }
/* (Where they do not all fit the block, smaller before any is left out: profile.js.) */
.pb-elsewhere[data-tight] { gap: 8px; }
.pb-elsewhere[data-tight] .pb-else { width: 38px; height: 38px; }
.pb-elsewhere[data-tight] .pb-else svg { width: 17px; height: 17px; }
.pb-ew { display: none; min-width: 0; }
.pb-ew b { font-weight: 600; }
.pb-elsewhere[data-few] { flex-direction: column; flex-wrap: nowrap; justify-content: center; align-items: flex-start; gap: 8px; }
.pb-elsewhere[data-few] .pb-else { grid-template-columns: 46px minmax(0, 1fr); width: auto; max-width: 100%; padding-right: 18px; border-radius: var(--pb-play-r, 999px); text-align: left; }
.pb-elsewhere[data-few] .pb-ew { display: grid; }
.pb-elsewhere[data-few] .pb-ew b { overflow: hidden; font-size: 14px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.pb-elsewhere[data-few] .pb-ew small { overflow: hidden; color: var(--pb-mute); font-size: 12.5px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }

/* EDITING A BOARD (owner, 11-27: each block is edited where it stands). Every block carries a small control row, over its top edge, in the site's own dark whatever the look:
   Move (its handle: dragged with a pointer, a mouse at once, a finger after a hold; the arrows move it with the keyboard), Edit (a sheet for that block alone), Size (its next
   shape; on a phone its next height), Remove (it comes back from Blocks). A block being moved is lifted and follows the pointer, a dashed slot stands where it will land,
   the others move aside; the block whose sheet is open is ringed. */
.pb-tools { display: none; position: absolute; top: -15px; right: 6px; z-index: 4; align-items: center; gap: 1px; height: 36px; padding: 0 3px; border-radius: 999px; background: #1b1a18; color: #f2efe9; box-shadow: 0 6px 18px rgb(0 0 0 / .45), 0 0 0 1px rgb(255 248 236 / .12); font-family: var(--sans); text-align: left; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.pb.editing .pb-tools { display: flex; }
/* The rows of today's page (no board) in the edit mode have the same control row, a little higher: over the row's heading, clear of its link at the right. */
body.is-editing .album:not(.pb-on) > .block[data-row] { position: relative; outline: 1.5px dashed color-mix(in srgb, var(--text) 38%, transparent); outline-offset: 8px; }
body.is-editing .album:not(.pb-on) > .block[data-row] > .pb-tools { display: flex; top: -34px; right: 0; }
body.is-editing .album:not(.pb-on) > .block[data-row].row-held { opacity: .92; }
/* (A tool with nothing to offer here is not drawn, nor a row of none: Size where a block comes in one height, on a phone.) */
.pb-tool:disabled { display: none; }
.pb.editing .pb-tools:not(:has(.pb-tool:not(:disabled))) { display: none; }
.pb-tools { pointer-events: none; }
.pb-tool { pointer-events: auto; position: relative; display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px; border: 0; border-radius: 999px; background: none; color: inherit; font: 500 12.5px/1 var(--sans); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* (An unseen press area of 44 by 44 about each tool: 14px above the 30-high button and none below (the Lists' New list, Diary and All stand 7px under the pill: their own reach is kept, so the pill itself takes no press, only its tools do), about 7px beside a 30-wide one; the pill is not drawn larger. Beside another tool the reach stops at the middle of the gap, the handle's drag begins on it all the same.) */
.pb-tool::before { content: ""; position: absolute; inset: -14px -3px 0; }
.pb-tool.pb-grip::before { inset: -14px -3px 0 -7px; }
.pb-tool.pb-rm::before { inset: -14px -7px 0 -3px; }
.pb-tool.pb-go { background: #f2efe9; color: #141210; font-weight: 600; }
.pb-tool svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pb-tool:focus-visible { outline: 2px solid #ff6b4f; outline-offset: 1px; }
.pb-tools i { width: 1px; height: 16px; margin: 0 2px; background: rgb(255 248 236 / .18); }
.pb-grip { padding: 0; cursor: grab; touch-action: none; }
.pb-grip svg { stroke-width: 3.2; }
.pb-rm svg { display: none; }
@container (max-width: 300px) { .pb-rm span { display: none; } .pb-rm svg { display: block; } .pb-rm { padding: 0; } }
.pb.editing .pb-tile:not([data-k="person"]) { cursor: grab; touch-action: pan-y; }
.pb.editing .pb-tile.open { outline: 2px solid var(--accent); outline-offset: 5px; }
.pb.editing a { cursor: inherit; }
.pb-tile.held { scale: 1.015; }
.pb-tile.flying { position: fixed !important; z-index: 60; margin: 0; grid-column: auto; grid-row: auto; pointer-events: none; scale: 1.02; cursor: grabbing; box-shadow: 0 22px 40px -12px rgb(0 0 0 / .6); outline: none !important; }
.pb .pb-tile.pb-slot { border: 2px dashed var(--accent); border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent) !important; box-shadow: none !important; outline: none !important; rotate: 0deg !important; padding: 0 !important; }
.pb-tile.pb-slot::before, .pb-tile.pb-slot::after, .pb-tile.pb-slot > * { display: none !important; }
body.pb-dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; }
@media (max-width: 680px) { body.pb-sheet-open .foot { padding-bottom: calc(58dvh + 90px); } }

/* A block's sheet (the Look sheet's third panel: the same handle, half / tall / away on a phone, a card at the bottom right from 681px). It has the block's own size and does
   not change with what is searched. */
.look-sheet[data-kind="block"] { height: min(52dvh, 480px); max-height: min(52dvh, 480px); }
.look-sheet[data-kind="block"][data-tall] { height: calc(100dvh - 142px); max-height: calc(100dvh - 142px); }
@media (max-width: 680px) { .look-sheet { transition: max-height .2s ease-out, height .2s ease-out; } .look-sheet.pulling { transition: none; } }
@media (min-width: 681px) { .look-sheet[data-kind="block"] { width: 420px; height: min(640px, calc(100dvh - 130px)); max-height: min(640px, calc(100dvh - 130px)); } }
.look-title small { margin-left: 8px; color: #a59f95; font-size: 13px; font-weight: 500; }
.bs { display: flex; flex-direction: column; }
.bs-chosen { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; margin-bottom: 12px; min-height: 8px; }
.bs-cs { position: relative; flex: none; width: calc((100% - 32px) / 5); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.bs-cs:focus-visible { outline: 2px solid #ff6b4f; outline-offset: 2px; border-radius: 8px; }
.bs-frame { display: grid; place-items: center; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 7px; background: #2a2826; }
.bs-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bs-cs .bs-frame { box-shadow: 0 0 0 1.5px #f2efe9; }
.bs-x { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #f2efe9; color: #141210; box-shadow: 0 0 0 2px #1b1a18; cursor: pointer; }
.bs-x svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.bs-x::after { content: ""; position: absolute; inset: -8px; }
.bs-search { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; height: 46px; margin: 0 0 10px; padding: 0 14px; border-radius: 999px; background: #2a2826; box-shadow: 0 0 0 6px #1b1a18; }
.bs-search svg { flex: none; width: 17px; height: 17px; fill: none; stroke: #a59f95; stroke-width: 2; stroke-linecap: round; }
.bs-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: #f2efe9; font: 400 16px var(--sans); }
.bs-search input::placeholder { color: #8a847a; }
.bs-search input::-webkit-search-cancel-button { display: none; }
.bs-search:focus-within { box-shadow: 0 0 0 6px #1b1a18, 0 0 0 8px #ff6b4f; }
.bs-trow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 6px 0; border: 0; border-top: 1px solid rgb(255 248 236 / .09); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bs-trow:first-child { border-top: 0; }
.bs-cov { display: block; flex: none; width: 36px; aspect-ratio: 2 / 3; object-fit: contain; border-radius: 5px; background: #2a2826; }
.bs-trow b, .bs-back b { display: block; font-size: 15px; font-weight: 500; line-height: 1.25; }
.bs-trow small { display: block; color: #a59f95; font-size: 12.5px; }
.bs-grow { flex: 1; min-width: 0; }
.bs-back { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bs-back button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #2a2826; color: #f2efe9; cursor: pointer; }
.bs-back button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bs-back .bs-cov { width: 30px; }
.bs-cgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 9px; }
.bs-ct { position: relative; display: block; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bs-ct b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: 6px; overflow: hidden; color: #d9d3c8; font-size: 12px; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.bs-tick { position: absolute; top: 5px; right: 5px; display: none; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #f2efe9; color: #141210; }
.bs-tick svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bs-ct[aria-pressed="true"] .bs-frame { box-shadow: 0 0 0 2px #f2efe9; }
.bs-ct[aria-pressed="true"] .bs-tick { display: grid; }
.bs-ct:disabled { opacity: .35; cursor: default; }
.bs-say { margin: 12px 0; color: #a59f95; font-size: 14px; }
.bs-srow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 66px; padding: 7px 0; border: 0; border-top: 1px solid rgb(255 248 236 / .09); background: none; color: inherit; font: inherit; text-align: left; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.bs-srow:first-child { border-top: 0; }
button.bs-srow { cursor: pointer; touch-action: auto; }
.bs-srow b { display: block; overflow: hidden; font-size: 15px; font-weight: 500; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.bs-srow small { display: block; overflow: hidden; color: #a59f95; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.bs-srow.off b { color: #8a847a; }
.bs-gr { flex: none; display: grid; place-items: center; width: 28px; height: 40px; padding: 0; border: 0; background: none; color: #77716a; cursor: grab; touch-action: none; }
.bs-gr svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; }
.bs-gr:focus-visible { outline: 2px solid #ff6b4f; outline-offset: 1px; border-radius: 8px; }
.bs-art { display: block; flex: none; width: 52px; aspect-ratio: 1; border-radius: 8px; background: #2a2826; object-fit: contain; }
.bs-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #2a2826; color: #f2efe9; }
.bs-ic svg { width: 19px; height: 19px; fill: currentColor; }
.bs-radio { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px #57534d; color: #141210; }
.bs-radio svg { display: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bs-srow[aria-pressed="true"] .bs-radio { background: #f2efe9; box-shadow: none; }
.bs-srow[aria-pressed="true"] .bs-radio svg { display: block; }
.bs-srow .look-sw2 { margin-left: auto; }
.bs-link { margin-top: 12px; }
.bs-lift { position: relative; z-index: 6; opacity: .94; box-shadow: 0 10px 24px rgb(0 0 0 / .6); background: #1b1a18; }
.bs-held { scale: 1.04; }
/* The pop-over that finds a favorite (`.pb-pop`): the covers it finds as they are (2:3, whole), three across, a press picks one. The Lists sheet: a cover, the name and the number, a switch. */
.bs-fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 14px; padding: 8px 6px 4px; }
.bs-fp .cover, .bs-lc .cover { display: block; border-radius: 6px; box-shadow: 0 0 0 1.5px rgb(242 239 233 / .5); }
.bs-fp .cover img { pointer-events: none; -webkit-user-drag: none; }

.bs-fp:focus-visible { outline: 2px solid #ff6b4f; outline-offset: 3px; }
.bs-fp { position: relative; display: block; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bs-fp b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: 6px; overflow: hidden; color: #d9d3c8; font-size: 12px; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.bs-fp[aria-pressed="true"] .cover { box-shadow: 0 0 0 2px #f2efe9; }
.bs-fp[aria-pressed="true"] .bs-tick { display: grid; }
.bs-fp:disabled { opacity: .35; cursor: default; }
.bs-lc { flex: none; display: block; width: 36px; }
.bs-lc .cover { border-radius: 5px; box-shadow: none; }
.bs-srow[data-bs-lrow] { cursor: grab; touch-action: pan-y; }
.bs-drop { outline: 2px dashed #ff6b4f; outline-offset: 3px; border-radius: 6px; }

/* BACKGROUNDS (the look's, on every tab of the person). */
:root[data-look-back="dots"] body { background-image: radial-gradient(circle, color-mix(in srgb, var(--text) 22%, transparent) 1px, transparent 1.7px); background-size: 22px 22px; }
:root[data-look-back="grid"] body { background-image: linear-gradient(color-mix(in srgb, var(--text) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--text) 7%, transparent) 1px, transparent 1px); background-size: 28px 28px; }
:root[data-look-back="stars"] body { background-image: radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--look-src, #ff6b4f) 75%, transparent) 0 1px, transparent 1.6px), radial-gradient(circle at 72% 64%, color-mix(in srgb, var(--look-src, #ff6b4f) 50%, transparent) 0 1px, transparent 1.6px), radial-gradient(circle at 44% 86%, color-mix(in srgb, var(--text) 40%, transparent) 0 .8px, transparent 1.4px); background-size: 190px 190px, 270px 270px, 150px 150px; }
:root[data-look-back="checks"] body { background-image: conic-gradient(color-mix(in srgb, var(--look-src, #ff6b4f) 16%, transparent) 25%, transparent 0 50%, color-mix(in srgb, var(--look-src, #ff6b4f) 16%, transparent) 0 75%, transparent 0); background-size: 28px 28px; }
:root[data-look-back="lines"] body { background-image: repeating-linear-gradient(0deg, color-mix(in srgb, var(--accent) 6%, transparent) 0 1px, transparent 1px 3px); }
/* (The two grounds that would be a busy pattern under dense content or leave the sticky filter row a band of its own, the checks and the scan lines, stay under the board and the Profile tab's own page; the Shelf, Lists, Reviews and Diary tabs stand on the plain ground: owner, 11-28.) */
:root:is([data-look-back="checks"], [data-look-back="lines"]) body:has(.tabs a[aria-current]:not([href$="tab=profile"])) { background-image: none; }

/* HOW BLOCKS ARE DRAWN. None: nothing round a block (the profile as it is today); a heading over the blocks that have one to say. */
:is(:root:not([data-look-tiles]), :root[data-look-tiles="none"]) .pb-tile:is([data-k="favorites"], [data-k="about"], [data-k="tags"], [data-k="counts"], [data-k="elsewhere"]) { --pb-chrome: 0px; }
:is(:root:not([data-look-tiles]), :root[data-look-tiles="none"]) .pb-tile:is([data-k="favorites"], [data-k="about"], [data-k="tags"], [data-k="counts"], [data-k="elsewhere"]) > h2 { display: none; }
/* Notes: paper taped to the page, each a little askew; a stroke of marker under a heading; pictures with a white edge; tape of three colours. */
:root[data-look-tiles="notes"] .pb { --pb-face-gap: 20px; --pb-gap: 26px; --pb-r: 2px; --pb-cover-edge: 0 0 0 4px var(--pb-photo), 0 8px 14px -8px rgb(40 20 10 / .6); --pb-cover-gap: 16px; --pb-edge: 4px; --pb-face-edge: 0 0 0 4px var(--pb-photo), 0 8px 14px -8px rgb(40 20 10 / .6); }
:root[data-look-tiles="notes"] .pb-tile { --pb-pad: 40px; --pb-pad-x: 36px; padding: 22px 18px 18px; border-radius: 3px; background: var(--surface); box-shadow: 0 14px 24px -18px rgb(40 20 10 / .7), 0 0 0 1px var(--line); }
:root[data-look-tiles="notes"] .pb-tile:nth-child(3n + 1) { rotate: -.6deg; }
:root[data-look-tiles="notes"] .pb-tile:nth-child(3n + 2) { rotate: .5deg; background: color-mix(in srgb, var(--pb-soft) 9%, var(--surface)); }
:root[data-look-tiles="notes"] .pb-tile:nth-child(3n) { rotate: -.2deg; background: color-mix(in srgb, #f3d98b 14%, var(--surface)); }
:root[data-look-tiles="notes"] .pb-tile::before { content: ""; position: absolute; top: -11px; left: 50%; width: 78px; height: 22px; translate: -50% 0; rotate: -3deg; background: color-mix(in srgb, var(--pb-soft) 50%, transparent); box-shadow: 0 1px 2px rgb(0 0 0 / .12); pointer-events: none; }
:root[data-look-tiles="notes"] .pb-tile:nth-child(3n + 2)::before { left: 26%; rotate: 4deg; background: rgb(134 205 180 / .62); }
:root[data-look-tiles="notes"] .pb-tile:nth-child(3n)::before { left: 74%; rotate: -5deg; background: rgb(240 205 110 / .68); }
:root[data-look-tiles="notes"] .pb-tile > h2 { width: fit-content; max-width: 100%; margin-left: -6px; padding: 0 6px; background: linear-gradient(transparent 58%, color-mix(in srgb, var(--pb-soft) 36%, transparent) 0); }
:root[data-look-tiles="notes"] .pb-tile[data-k="person"] { --pb-pad: 40px; }
:root[data-look-tiles="notes"] .pb-tag { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--pb-chip); }
:root[data-look-tiles="notes"] .pb-nine .pb-c:nth-child(odd) { rotate: -1deg; }
:root[data-look-tiles="notes"] .pb-nine .pb-c:nth-child(even) { rotate: .8deg; }
:root[data-look-tiles="notes"] .pb-faces > li:nth-child(odd) .pb-fp { rotate: -1.2deg; }
:root[data-look-tiles="notes"] .pb-faces > li:nth-child(even) .pb-fp { rotate: 1deg; }
/* Frames: a grimoire. Hairlines doubled, a star set in each frame, a heading between two fading rules, everything on its centre line. */
:root[data-look-tiles="frames"] .pb { --pb-face-ring: 8px; --pb-face-gap: 26px; --pb-gap: 22px; --pb-r: 2px; --pb-cover-edge: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); --pb-face-edge: 0 0 0 3px var(--bg), 0 0 0 4px var(--accent), 0 0 0 7px var(--bg), 0 0 0 8px color-mix(in srgb, var(--accent) 45%, transparent); }
:root[data-look-tiles="frames"] .pb-tile { --pb-pad: 50px; --pb-pad-x: 44px; padding: 26px 22px 22px; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); outline: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); outline-offset: -7px; border-radius: 2px; background: color-mix(in srgb, var(--bg) 90%, transparent); text-align: center; }
:root[data-look-tiles="frames"] .pb.editing .pb-tile { outline: 1.5px dashed color-mix(in srgb, var(--text) 38%, transparent); outline-offset: 5px; }
:root[data-look-tiles="frames"] .pb-tile::before, :root[data-look-tiles="frames"] .pb-tile::after { content: "✦"; position: absolute; left: 50%; translate: -50% 0; padding: 0 6px; background: var(--bg); color: var(--accent); font: 13px/14px serif; }
:root[data-look-tiles="frames"] .pb-tile::before { top: -8px; }
:root[data-look-tiles="frames"] .pb-tile::after { bottom: -8px; }
:root[data-look-tiles="frames"] .pb-tile > h2 { display: flex; align-items: center; gap: 12px; letter-spacing: .04em; }
:root[data-look-tiles="frames"] .pb-tile > h2::before, :root[data-look-tiles="frames"] .pb-tile > h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 70%, transparent)); }
:root[data-look-tiles="frames"] .pb-tile > h2::after { background: linear-gradient(270deg, transparent, color-mix(in srgb, var(--accent) 70%, transparent)); }
:root[data-look-tiles="frames"] .pb-tile[data-k="person"] > h2 { display: none; }
:root[data-look-tiles="frames"] .pb-who { justify-content: center; text-align: left; }
:root[data-look-tiles="frames"] .pb-id { flex: 0 1 auto; }
:root[data-look-tiles="frames"] .pb-bio { font: italic 400 19px/1.4 "Instrument Serif", Georgia, serif; color: var(--text); font-size: calc(clamp(17px, 2.9cqw, 21px) * var(--bk, 1)); }
:root[data-look-tiles="frames"] .pb-elsewhere[data-few] { align-items: center; }
:root[data-look-tiles="frames"] .pb-tags { justify-content: center; }
:root[data-look-tiles="frames"] .pb-counts a { justify-items: center; }
:root[data-look-tiles="frames"] :is(.pb-song, .pb-review, .pb-list, .pb-done) { text-align: left; }
:root[data-look-tiles="frames"] .pb-line { justify-content: flex-start; }
/* Windows: every block a little window, a bar with its name and three buttons, an ink outline and a hard shadow. */
:root[data-look-tiles="windows"] .pb { --pb-face-ring: 2px; --pb-face-gap: 16px; --pb-gap: 26px; --pb-r: 6px; --pb-ink: var(--text); --pb-cover-edge: 0 0 0 2px var(--pb-ink); --pb-cover-gap: 14px; --pb-edge: 2px; --pb-face-edge: 0 0 0 2px var(--pb-ink); --pb-play-edge: 0 0 0 2px var(--pb-ink), 3px 3px 0 var(--pb-ink); }
:root[data-look-tiles="windows"] .pb-tile { --pb-chrome: calc(48px + var(--pb-hs) * .96); background: var(--surface); border: 2px solid var(--pb-ink); border-radius: 10px; box-shadow: 5px 5px 0 var(--pb-ink); }
:root[data-look-tiles="windows"] .pb-tile > h2, :root[data-look-tiles="windows"] .pb-tile[data-k="person"] > h2 { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 7px 12px; border-bottom: 2px solid var(--pb-ink); border-radius: 8px 8px 0 0; background: color-mix(in srgb, var(--pb-soft) 55%, var(--surface)); font-size: calc(var(--pb-hs) * .8); line-height: 1.2; }
:root[data-look-tiles="windows"] .pb-tile > h2::after { content: ""; flex: none; width: 46px; height: 12px; background: linear-gradient(90deg, var(--pb-ink) 0 12px, transparent 12px 17px, var(--surface) 17px 29px, transparent 29px 34px, var(--surface) 34px 46px); box-shadow: inset 0 0 0 2px var(--pb-ink); border-radius: 2px; }
:root[data-look-tiles="windows"] .pb-body { padding: 14px; }
:root[data-look-tiles="windows"] .pb-tag { border: 2px solid var(--pb-ink); background: var(--surface); color: var(--text); box-shadow: 2px 2px 0 var(--pb-ink); line-height: 26px; }
:root[data-look-tiles="windows"] .pb-else { background: var(--surface); }
/* Boxes: a terminal. Hairline boxes named like folders; links are words in brackets, tags begin with a hash, the name is typed at a prompt. */
:root[data-look-tiles="boxes"] .pb { --pb-face-ring: 1px; --pb-face-gap: 14px; --pb-gap: 24px; --pb-r: 0px; --pb-cover-edge: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); --pb-face-r: 0; --pb-face-edge: 0 0 0 1px var(--accent); --pb-play-r: 0; }
:root[data-look-tiles="boxes"] .pb-tile { --pb-chrome: 40px; --pb-pad-x: 32px; padding: 22px 16px 16px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--bg) 92%, transparent); }
:root[data-look-tiles="boxes"] .pb-tile > h2, :root[data-look-tiles="boxes"] .pb-tile[data-k="person"] > h2 { display: block; position: absolute; top: -10px; left: 12px; margin: 0; padding: 0 8px; background: var(--bg); color: var(--accent); font: 500 13px/18px "DM Mono", ui-monospace, monospace; letter-spacing: 0; text-transform: lowercase; }
:root[data-look-tiles="boxes"] .pb-tile > h2::before { content: "~/"; }
:root[data-look-tiles="boxes"] .pb-h-me { display: none; }
:root[data-look-tiles="boxes"] .pb-h-boxes { display: inline; }
:root[data-look-tiles="boxes"] .pb-name::before { content: "> "; color: var(--accent); }
:root[data-look-tiles="boxes"] .pb-name::after { content: "_"; color: var(--accent); animation: pb-blink 1.1s steps(1) infinite; }
@keyframes pb-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { :root[data-look-tiles="boxes"] .pb-name::after { animation: none; } }
:root[data-look-tiles="boxes"] .pb-tag { border-radius: 0; border-style: dashed; border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
:root[data-look-tiles="boxes"] .pb-tag::before { content: "#"; }
:root[data-look-tiles="boxes"] .pb-elsewhere { justify-content: flex-start; gap: 4px 14px; }
:root[data-look-tiles="boxes"] .pb-elsewhere[data-few] { gap: 2px; }
:root[data-look-tiles="boxes"] .pb-elsewhere .pb-else { display: block; width: auto; height: auto; padding: 6px 0; border-radius: 0; background: none; color: var(--accent); text-align: left; }
:root[data-look-tiles="boxes"] .pb-else svg { display: none; }
:root[data-look-tiles="boxes"] .pb-elsewhere .pb-ew { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root[data-look-tiles="boxes"] .pb-elsewhere .pb-ew b { font-size: inherit; font-weight: 500; text-transform: lowercase; }
:root[data-look-tiles="boxes"] .pb-ew b::before { content: "["; }
:root[data-look-tiles="boxes"] .pb-ew b::after { content: "]"; }
:root[data-look-tiles="boxes"] .pb-ew small { display: none; }
:root[data-look-tiles="boxes"] .pb-elsewhere[data-few] .pb-ew small { display: inline; margin-left: 10px; font-size: 13px; }
/* Rules: a zine. A thick rule and a numbered, spaced heading over each block; the name very large; what is said, set as a pull quote. */
:root[data-look-tiles="rules"] .pb { --pb-face-ring: 0px; --pb-face-gap: 16px; --pb-face-edge: none; --pb-gap: 40px; --pb-r: 0px; --pb-face-r: 0; --pb-play-r: 0; counter-reset: pbblock; }
:root[data-look-tiles="rules"] .pb-tile { --pb-chrome: 41px; padding-top: 13px; border-top: 3px solid var(--text); counter-increment: pbblock; }
:root[data-look-tiles="rules"] .pb-tile[data-k="person"] { --pb-chrome: 0px; padding-top: 0; border-top: 0; counter-increment: none; }
:root[data-look-tiles="rules"] .pb-tile > h2 { display: flex; gap: 12px; margin-bottom: 12px; font: 800 13px/1 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
:root[data-look-tiles="rules"] .pb-tile > h2::before { content: counter(pbblock, decimal-leading-zero); color: var(--accent); }
:root[data-look-tiles="rules"] .pb-tile[data-k="person"] > h2 { display: none; }
:root[data-look-tiles="rules"] .pb-name { font-style: italic; line-height: .9; font-size: clamp(48px, calc((100cqw - var(--pb-as, 80px) - 40px) / (var(--n, 8) * var(--pb-cw))), clamp(56px, 8vw, 96px)); }
:root[data-look-tiles="rules"] .pb-handle { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
:root[data-look-tiles="rules"] .pb-bio { font: 400 clamp(21px, 2.4vw, 27px) / 1.3 "Instrument Serif", Georgia, serif; font-size: calc(clamp(21px, 2.4vw, 27px) * min(var(--bk, 1), 1.6)); color: var(--text); }
/* (A page of a magazine: what a block holds begins under its heading, flush left, and the paper is left white under it.) */
:root[data-look-tiles="rules"] .pb-tile:not([data-k="person"]) .pb-body { justify-content: flex-start; }
:root[data-look-tiles="rules"] :is(.pb-nine, .pb-covers) { align-content: start; }
:root[data-look-tiles="rules"] .pb-nine { justify-content: flex-start; margin-inline: 0; }
:root[data-look-tiles="rules"] .pb-faces { justify-content: flex-start; align-content: flex-start; margin-inline: 0; text-align: left; }
:root[data-look-tiles="rules"] .pb-face :is(b, small) { margin-inline: 0; }
:root[data-look-tiles="rules"] .pb-elsewhere:not([data-few]) { justify-content: flex-start; }
:root[data-look-tiles="rules"] .pb-tag { border-radius: 0; border-color: var(--text); color: var(--text); }
:root[data-look-tiles="rules"] .pb-else { background: none; box-shadow: inset 0 0 0 1.5px var(--text); }

/* The Look sheet with a board on (profile.js sets data-mode on it): how blocks are drawn and the background are offered, the wallpaper and the corners (today's page's:
   their kept values stay) are not; the choices stand in the order the model has them. */
.look-body[data-panel="look"] { display: flex; flex-direction: column; }
.look-body[data-panel="look"][hidden] { display: none; }
.look-body[data-panel="look"] > .look-opt { flex: none; }
.look-sheet:not([data-mode="board"]) [data-for="board"], .look-sheet[data-mode="board"] [data-for="plain"] { display: none; }
.look-sheet[data-mode="board"] .look-body[data-panel="look"] > .look-opt { order: 5; }
.look-sheet[data-mode="board"] .look-body[data-panel="look"] > .look-opt:has(.look-tpls) { order: 0; }
.look-sheet[data-mode="board"] .look-body[data-panel="look"] > [data-for="layouts"] { order: -1; }
.look-sheet[data-mode="board"] .look-body[data-panel="look"] > [data-for="board"] { order: 1; }
.look-sheet[data-mode="board"] .look-body[data-panel="look"] > .look-opt:has([data-look-set="letters"]) { order: 3; }
.look-sheet[data-mode="board"] .look-body[data-panel="look"] > .look-opt:has([data-look-set="colour"]) { order: 4; }
.look-sheet[data-mode="board"] .look-body[data-panel="look"] > .look-opt:has([data-look-set="ground"]) { order: 5; }
.pb-line .who-acts > form { display: contents; }
.pb:not(.editing) .pb-pron:has([data-pb-field]:empty) { display: none; }

/* ---- Detective (owner, 11-28: the corkboard template; app/boards.py "detective", app/static/js/corkboard.js): look.tiles "pinned" on look.back "cork" with the letters "type".
   The page is cork in a dark wooden frame; the blocks are pinned to it, each its own kind of paper: ruled index cards (About, Taste, Shelf, Reviews), a manila folder
   for the subject (Me), polaroids (the characters, every cover), a sticky note (Theme song), torn notepaper (Elsewhere). One line pitch (--lh) is both the rules'
   spacing and the text's line-height, so every line sits on a rule. The papers carry their own colours (the page's ground does not change them). Pins are the
   papers' own pseudo-elements; the red string between two blocks is the script's (corkboard.js), drawn in the gap and never over what a block holds. */
@font-face { font-family: "Special Elite"; src: url("fonts/special-elite.woff2") format("woff2"); font-weight: 400; font-display: block; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root { --cork-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.290  0 0 0 0 0.165  0 0 0 0 0.063  0 3.8 0 0 -1.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.980  0 0 0 0 0.871  0 0 0 0 0.667  0 3.6 0 0 -1.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.22' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.471  0 0 0 0 0.298  0 0 0 0 0.141  0 4.2 0 0 -2.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='380'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.3' numOctaves='3' seed='19' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.925  0 0 0 0 0.769  0 0 0 0 0.541  0 3.8 0 0 -1.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.045' numOctaves='3' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.804  0 0 0 0 0.627  0 0 0 0 0.392  0 1.8 0 0 -0.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='470'%3E%3Ccircle cx='37' cy='52' r='2.2' fill='rgb(60 32 12 / .45)'/%3E%3Ccircle cx='36.5' cy='52.7' r='2.9' fill='none' stroke='rgb(255 232 190 / .28)' stroke-width='.8'/%3E%3Ccircle cx='188' cy='121' r='2.2' fill='rgb(60 32 12 / .45)'/%3E%3Ccircle cx='187.5' cy='121.7' r='2.9' fill='none' stroke='rgb(255 232 190 / .28)' stroke-width='.8'/%3E%3Ccircle cx='402' cy='33' r='2.2' fill='rgb(60 32 12 / .45)'/%3E%3Ccircle cx='401.5' cy='33.7' r='2.9' fill='none' stroke='rgb(255 232 190 / .28)' stroke-width='.8'/%3E%3Ccircle cx='311' cy='247' r='2.2' fill='rgb(60 32 12 / .45)'/%3E%3Ccircle cx='310.5' cy='247.7' r='2.9' fill='none' stroke='rgb(255 232 190 / .28)' stroke-width='.8'/%3E%3Ccircle cx='96' cy='309' r='2.2' fill='rgb(60 32 12 / .45)'/%3E%3Ccircle cx='95.5' cy='309.7' r='2.9' fill='none' stroke='rgb(255 232 190 / .28)' stroke-width='.8'/%3E%3Ccircle cx='455' cy='376' r='2.2' fill='rgb(60 32 12 / .45)'/%3E%3Ccircle cx='454.5' cy='376.7' r='2.9' fill='none' stroke='rgb(255 232 190 / .28)' stroke-width='.8'/%3E%3Ccircle cx='236' cy='431' r='2.2' fill='rgb(60 32 12 / .45)'/%3E%3Ccircle cx='235.5' cy='431.7' r='2.9' fill='none' stroke='rgb(255 232 190 / .28)' stroke-width='.8'/%3E%3Ccircle cx='512' cy='214' r='2.2' fill='rgb(60 32 12 / .45)'/%3E%3Ccircle cx='511.5' cy='214.7' r='2.9' fill='none' stroke='rgb(255 232 190 / .28)' stroke-width='.8'/%3E%3Ccircle cx='21' cy='402' r='2.2' fill='rgb(60 32 12 / .45)'/%3E%3Ccircle cx='20.5' cy='402.7' r='2.9' fill='none' stroke='rgb(255 232 190 / .28)' stroke-width='.8'/%3E%3Ccircle cx='367' cy='148' r='2.2' fill='rgb(60 32 12 / .45)'/%3E%3Ccircle cx='366.5' cy='148.7' r='2.9' fill='none' stroke='rgb(255 232 190 / .28)' stroke-width='.8'/%3E%3C/svg%3E"); --cork-size: 300px 300px,260px 260px,340px 340px,380px 380px,600px 600px,560px 470px; }
:root[data-look-letters="type"] { --look-face: "Special Elite", "Courier New", monospace; --look-track: 0em; --look-tabs: .58; --look-fit: .8; --look-hd: .6; }
:root[data-look-letters="type"] .pb { --pb-hs: 22px; --pb-hw: 400; --pb-hl: 1.1; --pb-ns: 56px; --pb-nw: 400; --pb-nl: 1.05; --pb-cw: .62; --pb-track: 0em; }
.look-face[data-face="type"] { font-family: "Special Elite", "Courier New", monospace; font-weight: 400; }
.look-aa[data-face="type"] { font: 400 19px/1 "Special Elite", "Courier New", monospace; }

/* The ground. The Profile tab's BOARD is cork in a dark wooden frame round the whole page, the bar at the top as the frame's top rail. Every other tab of the person (Shelf, Lists,
   Reviews, Diary: dense, read for long) keeps the wooden bar, the frame's thin line and the taped tab labels, and stands on plain manila paper instead: the cork, its shade and the
   papers' own colours are the board's alone (owner, 11-28: "this looks so hideous": the cork ran behind the shelf's grid, a white filter bar on it, plain sans titles on the grain). */
:root[data-look-back="cork"] body { position: relative; }
:root[data-look-back="cork"] body:has(.pb-on) { background-color: #aa7b46; background-image: var(--cork-img), linear-gradient(135deg, #b78a54, #aa7b46 55%, #b4854e); background-size: var(--cork-size), auto; }
:root[data-look-back="cork"] body::after { content: ""; position: absolute; inset: 0; z-index: 19; pointer-events: none; border: 12px solid #5b3a22; box-shadow: inset 0 0 0 2px #2c190c; }
:root[data-look-back="cork"] body:has(.pb-on)::after { box-shadow: inset 0 0 0 2px #2c190c, inset 0 0 80px 8px rgb(45 22 6 / .5); }
:root[data-look-back="cork"] .top { --text: #f3e6d0; --text-2: #e3d2b6; --text-3: #cdb792; --line: rgb(255 232 190 / .22); --line-2: rgb(255 232 190 / .34); --surface: #4a2f1b; --sunk: #3d2616; border-bottom: 3px solid #2a170b; background: repeating-linear-gradient(180deg, #5f3d24 0 7px, #573720 7px 9px, #65432a 9px 15px, #4f301b 15px 16px); box-shadow: 0 6px 12px -4px rgb(0 0 0 / .5); -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-look-back="cork"] .top .mark { color: #f3e6d0; }  /* (the bar's mark in the bar's own light ink: it took the page's, dark on the wood) */
/* What stands on the bare cork (the page's own comments, its foot): dark brown ink. */
:root[data-look-back="cork"] body:has(.pb-on) :is(main, .foot) { --text: #2b2117; --text-2: #3b2c1a; --text-3: #44321d; --line: rgb(60 40 10 / .3); --line-2: rgb(60 40 10 / .45); }
/* The other tabs: one solid warm paper with a very faint grain, typewriter ink (all of it 4.5:1 or more on the paper), the template's red for the accent. */
:root { --paper-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.36  0 0 0 0 0.26  0 0 0 0 0.11  0.6 0 0 0 -0.22'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"); }
:root[data-look-back="cork"] body:not(:has(.pb-on)) {
  --bg: #f3ead2; --surface: #faf4e3; --sunk-0: #e6d9b6; --sunk: #e6d9b6; --text: #2b2117; --text-2: #4b3c2b; --text-3: #5a4a33; --line: rgb(60 40 10 / .24); --line-2: rgb(60 40 10 / .42);
  --accent: #a8281e; --on-accent: #ffffff; --seg-on: #d8c996;
  --order: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4.500v15m0 0-3.500-3.500M8 19.500l3.500-3.500M16 19.500v-15m0 0-3.500 3.500M16 4.500l3.500 3.500' fill='none' stroke='%234b3c2b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-color: #f3ead2; background-image: var(--paper-img); background-size: 260px 260px; color: var(--text);
}
/* Under the tabs: the filter row is part of the paper (a hairline, the chosen word underlined in red as a tab is), in the typewriter's letters. */
:root[data-look-back="cork"] body:not(:has(.pb-on)) .krow :is(.kr-i, .kr-sw, .kr-label, .kr-total, .kr-found, .kr-q, .sort select) { font-family: "Special Elite", "Courier New", monospace; font-weight: 400; letter-spacing: 0; }
:root[data-look-back="cork"] body:not(:has(.pb-on)) .krow .kr-i { font-size: 14px; }
:root[data-look-back="cork"] body:not(:has(.pb-on)) .krow :is(.kr-total, .kr-label, .kr-found) { font-size: 12.5px; }
:root[data-look-back="cork"] body:not(:has(.pb-on)) .krow .sort select { font-size: 14px; }
:root[data-look-back="cork"] body:not(:has(.pb-on)) .krow .kr-i[aria-current]::after { height: 3px; background: var(--accent); }
@media (max-width: 479px) { :root[data-look-back="cork"] body:not(:has(.pb-on)) .krow .kr-line:first-child .kr-i { font-size: 13px; } }
@media (pointer: coarse) { :root[data-look-back="cork"] body:not(:has(.pb-on)) .krow .sort select { font-size: 16px; } }
:root[data-look-back="cork"] body:not(:has(.pb-on)) .krow { background: #f3ead2 var(--paper-img) 0 0 / 260px 260px; }  /* (sticky, so opaque: the paper's own grain, to match what it covers) */
/* Covers whole (2:3) as on the board: a thin ink edge, the white ring gone, the shadow of a print laid on paper. */
:root[data-look-back="cork"] body:not(:has(.pb-on)) #main .cover { border-radius: 2px; box-shadow: 0 0 0 1px rgb(43 33 23 / .5), 0 7px 9px -6px rgb(30 12 0 / .5); }
:root[data-look-back="cork"] body:not(:has(.pb-on)) #main .cover::after { box-shadow: none; }
/* Names and what is said under them: the papers' own Courier. */
:root[data-look-back="cork"] body:not(:has(.pb-on)) #main :is(.card-name, .list-name) { --name: 13px; font-family: "Courier Prime", "Courier New", monospace; font-weight: 700; line-height: 1.25; }
:root[data-look-back="cork"] body:not(:has(.pb-on)) #main :is(.card-meta, .mc, .rev-by, .rev-flag, .month .h2 small, .kr-total) { font-family: "Courier Prime", "Courier New", monospace; }
:root[data-look-back="cork"] body:not(:has(.pb-on)) #main :is(.rev-text, .rev-title span, .spoiler, .empty, .find-none, .rev-talk) { font-family: "Courier Prime", "Courier New", monospace; }
:root[data-look-back="cork"] body:not(:has(.pb-on)) #main :is(.rev-text, .spoiler) { font-size: 14.5px; line-height: 1.55; }
:root[data-look-back="cork"] body:not(:has(.pb-on)) :is(#main .link, .foot) { font-family: "Courier Prime", "Courier New", monospace; }
/* Reviews: index cards (paper, a square corner, the print's shadow). */
:root[data-look-back="cork"] body:not(:has(.pb-on)) #main .revs-cards .rev { border: 0; border-radius: 2px; background: var(--surface); box-shadow: 0 10px 12px -9px rgb(30 12 0 / .6), 0 1px 1px rgb(0 0 0 / .25); }
/* The tabs' labels as taped on: a strip over the top edge. */
:root[data-look-back="cork"] body:not(:has(.pb-on)) #main .tabs a { position: relative; }
:root[data-look-back="cork"] body:not(:has(.pb-on)) #main .tabs a::before { content: ""; position: absolute; top: -5px; left: 50%; width: 26px; height: 9px; translate: -50% 0; background: rgb(255 253 240 / .62); box-shadow: 0 0 0 1px rgb(60 40 10 / .1); rotate: -3deg; pointer-events: none; }
/* The tabs: paper labels taped to the cork, dark ink on cream (readable on the cork), the page you are on darker with a red line under it. */
:root[data-look-tiles="pinned"] #main .tabs { gap: 10px 12px; }
:root[data-look-tiles="pinned"] #main .tabs a { padding: 6px 12px 5px; background: linear-gradient(180deg, #efe5bd, #e6d9a8); color: #6b5a40; font: 400 calc(38px * var(--look-tabs)) / 1.1 "Special Elite", "Courier New", monospace; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 5px 6px -4px rgb(30 12 0 / .6), 0 1px 1px rgb(0 0 0 / .3); clip-path: none; }
:root[data-look-tiles="pinned"] #main .tabs a:nth-child(odd) { rotate: -.8deg; }
:root[data-look-tiles="pinned"] #main .tabs a:nth-child(even) { rotate: .7deg; }
:root[data-look-tiles="pinned"] #main .tabs a[aria-current] { color: #2b2117; box-shadow: inset 0 -3px 0 #a8281e, 0 5px 6px -4px rgb(30 12 0 / .6), 0 1px 1px rgb(0 0 0 / .3); }
@media (hover: hover) { :root[data-look-tiles="pinned"] #main .tabs a:hover { color: #2b2117; } }
/* (The letters' own phone size for the tabs, `:root[data-look-letters]:not(…) #main .tabs a`, is more specific than the rules above: `:not(#_)` makes these as specific, and later.) */
@media (max-width: 680px) { :root[data-look-tiles="pinned"] #main .tabs { gap: 4px; } :root[data-look-tiles="pinned"]:not(#_) #main .tabs a { padding: 5px 5px 4px; font-size: clamp(10px, 3.5vw, 16px); letter-spacing: .02em; } }

/* The blocks. */
:root[data-look-tiles="pinned"] .pb { --pb-gap: 40px; --pb-r: 2px; --pb-face-r: 2px; --pb-face-ring: 6px; --pb-face-gap: 20px; --pb-face-edge: none; --pb-cover-gap: 22px; --pb-edge: 7px; --pb-play-r: 50%; margin-top: 46px;
  --pb-cover-edge: 0 0 0 5px #fbf8ee, 0 9px 0 5px #fbf8ee, 0 14px 10px -2px rgb(30 12 0 / .55);
  --pin: radial-gradient(circle at 35% 28%, rgb(255 255 255 / .75) 0 1.5px, transparent 2.8px), radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--pc, #c4291d) 60%, #fff), var(--pc, #c4291d) 55%, color-mix(in srgb, var(--pc, #c4291d) 50%, #000));
  --pin-shadow: 1px 3px 2px rgb(0 0 0 / .45), 3px 6px 5px rgb(0 0 0 / .22); }
:root[data-look-tiles="pinned"] .pb-tile { --pb-pad: 0px; --pb-chrome: 39px; --text: #2b2117; --text-2: #4b3c2b; --text-3: #5a4a33; --line: rgb(60 40 10 / .2); --line-2: rgb(60 40 10 / .36); --surface: #e8d4a4; --sunk: #d9c08a; --accent: #a8281e; --on-accent: #fff; --bg: #f1e1b6; --pb-mute: #5a4a33; --pb-chip: #fbf6e6; --pc: #c4291d; --lh: 24px; --rule: #9fbdd9; --ink: #2b2117; color: var(--text); font-family: "Courier Prime", "Courier New", ui-monospace, monospace; }
:root[data-look-tiles="pinned"] .pb-tile:nth-child(5n + 3) { --pc: #e0a92a; }
:root[data-look-tiles="pinned"] .pb-tile:nth-child(7n + 5) { --pc: #2f6fb3; }
:root[data-look-tiles="pinned"] .pb-tile:nth-child(9n + 7) { --pc: #3a8a4c; }
:root[data-look-tiles="pinned"] .pb-tile:nth-child(3n + 1) { --pinx: 34%; }
:root[data-look-tiles="pinned"] .pb-tile:nth-child(3n + 2) { --pinx: 64%; }
:root[data-look-tiles="pinned"] .pb-tile:nth-child(3n) { --pinx: 48%; }
:root[data-look-tiles="pinned"] .pb-tile:is([data-k="person"], [data-k="characters"], [data-k="favorites"], [data-k="now"], [data-k="next"], [data-k="lists"], [data-k="lately"]) { --pinx: 30px; }
:root[data-look-tiles="pinned"] .pb-tile:is([data-k="song"], [data-k="elsewhere"]) { --pinx: 90%; }
/* Every block's heading is the same typewriter line. */
:root[data-look-tiles="pinned"] .pb-tile > h2 { margin: 0; font: 400 16px / 30px "Special Elite", "Courier New", monospace; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
/* The pins (one drawing, the papers' own pseudo-elements). */
:root[data-look-tiles="pinned"] .pb-tile:is([data-k="about"], [data-k="tags"], [data-k="counts"], [data-k="reviews"], [data-k="song"])::after,
:root[data-look-tiles="pinned"] .pb-tile:is([data-k="characters"], [data-k="favorites"], [data-k="now"], [data-k="next"], [data-k="lists"], [data-k="lately"], [data-k="elsewhere"])::before,
:root[data-look-tiles="pinned"] .pb-tile[data-k="person"] .pb-body::before, :root[data-look-tiles="pinned"] .pb-tile[data-k="person"] .pb-body::after,
:root[data-look-tiles="pinned"] .pb-nine > .pb-c::before, :root[data-look-tiles="pinned"] .pb-covers > :is(.pb-c, .pb-list, .pb-done)::before, :root[data-look-tiles="pinned"] .pb-face::before { content: ""; position: absolute; z-index: 3; width: 15px; height: 15px; border-radius: 50%; background: var(--pin); box-shadow: var(--pin-shadow); pointer-events: none; }
:root[data-look-tiles="pinned"] .pb-tile:is([data-k="about"], [data-k="tags"], [data-k="counts"], [data-k="reviews"], [data-k="song"])::after { top: -8px; left: var(--pinx, 50%); translate: -50% 0; }
:root[data-look-tiles="pinned"] .pb-tile:is([data-k="characters"], [data-k="favorites"], [data-k="now"], [data-k="next"], [data-k="lists"], [data-k="lately"])::before { top: 7px; left: var(--pinx, 30px); translate: -50% 0; }
:root[data-look-tiles="pinned"] .pb-tile[data-k="elsewhere"]::before { top: -8px; left: var(--pinx, 90%); translate: -50% 0; }
:root[data-look-tiles="pinned"] .pb-tile[data-k="person"] .pb-body::before { top: -8px; left: 30px; translate: -50% 0; }
:root[data-look-tiles="pinned"] .pb-tile[data-k="person"] .pb-body::after { bottom: -9px; left: 30px; translate: -50% 0; }
:root[data-look-tiles="pinned"] :is(.pb-nine > .pb-c, .pb-covers > :is(.pb-c, .pb-list, .pb-done), .pb-face) { position: relative; }
:root[data-look-tiles="pinned"] :is(.pb-nine > .pb-c, .pb-covers > :is(.pb-c, .pb-list, .pb-done))::before { top: 0; left: 50%; translate: -50% -45%; }
:root[data-look-tiles="pinned"] .pb-face::before { top: -7px; left: 50%; translate: -50% 0; }
:root[data-look-tiles="pinned"] .pb-nine > .pb-c:nth-child(4n + 3)::before, :root[data-look-tiles="pinned"] .pb-covers > :nth-child(4n + 3)::before, :root[data-look-tiles="pinned"] .pb-faces > li:nth-child(4n + 3) .pb-face::before { --pc: #2f6fb3; }
:root[data-look-tiles="pinned"] .pb-nine > .pb-c:nth-child(5n + 4)::before, :root[data-look-tiles="pinned"] .pb-covers > :nth-child(5n + 4)::before, :root[data-look-tiles="pinned"] .pb-faces > li:nth-child(5n + 4) .pb-face::before { --pc: #e0a92a; }
/* Index cards: ruled. The rules are their own layer (::before) that fades out a couple of lines under what the card holds (`--used`, the script's), so a short card is not half empty. */
:root[data-look-tiles="pinned"] .pb-tile:is([data-k="about"], [data-k="tags"], [data-k="counts"], [data-k="reviews"]) { --pb-chrome: 32px; padding: 0; border-radius: 2px; background: #fbf6e6; font-size: 14.5px; line-height: var(--lh); letter-spacing: 0; box-shadow: 0 14px 16px -10px rgb(30 12 0 / .7), 0 1px 1px rgb(0 0 0 / .3); }
:root[data-look-tiles="pinned"] .pb-tile:is([data-k="about"], [data-k="tags"], [data-k="counts"], [data-k="reviews"])::before { content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: 32px; bottom: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 19.5px, var(--rule) 19.5px 20.5px, transparent 20.5px 24px);
  -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--used, 180px) + 24px), transparent calc(var(--used, 180px) + 96px)); mask-image: linear-gradient(180deg, #000 calc(var(--used, 180px) + 24px), transparent calc(var(--used, 180px) + 96px)); }
:root[data-look-tiles="pinned"] .pb-tile:is([data-k="about"], [data-k="tags"], [data-k="counts"], [data-k="reviews"]) > h2 { position: relative; z-index: 1; height: 32px; padding: 0 18px; border-bottom: 1.5px solid #d4605c; }
:root[data-look-tiles="pinned"] .pb-tile:is([data-k="about"], [data-k="tags"], [data-k="counts"], [data-k="reviews"]) .pb-body { position: relative; z-index: 1; padding: 0 18px; justify-content: flex-start; }
:root[data-look-tiles="pinned"] .pb-tile[data-k="about"] { rotate: -.5deg; }
:root[data-look-tiles="pinned"] .pb-tile[data-k="tags"] { rotate: .7deg; }
:root[data-look-tiles="pinned"] .pb-tile[data-k="counts"] { rotate: -.6deg; }
:root[data-look-tiles="pinned"] .pb-tile[data-k="reviews"] { rotate: .35deg; }
:root[data-look-tiles="pinned"] .pb-bio { display: block; margin: 0; overflow: visible; font: 400 14.5px / var(--lh) "Courier Prime", "Courier New", monospace; color: var(--ink); }
:root[data-look-tiles="pinned"] .pb-tags { display: block; }
:root[data-look-tiles="pinned"] .pb-tag, :root[data-look-tiles="pinned"] .pb-tags[data-roomy] .pb-tag { display: block; height: var(--lh); padding: 0; border: 0; border-radius: 0; background: none; font: 400 14.5px / var(--lh) "Courier Prime", "Courier New", monospace; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
:root[data-look-tiles="pinned"] .pb-tag::before { content: "\2013\00a0"; color: #a8281e; }
:root[data-look-tiles="pinned"] .pb-counts, :root[data-look-tiles="pinned"] .pb-counts[data-roomy], :root[data-look-tiles="pinned"] .pb-counts[data-tight] { display: block; max-height: var(--pb-bh); overflow: hidden; }
:root[data-look-tiles="pinned"] .pb-counts a, :root[data-look-tiles="pinned"] .pb-counts[data-roomy] a, :root[data-look-tiles="pinned"] .pb-counts[data-tight] a { display: flex; align-items: baseline; gap: 0; height: var(--lh); font: 400 14.5px / var(--lh) "Courier Prime", "Courier New", monospace; color: var(--ink); }
:root[data-look-tiles="pinned"] .pb-counts a::after { content: ""; order: 1; flex: 1; min-width: 12px; margin: 0 6px; height: 1px; border-bottom: 2px dotted rgb(43 33 23 / .45); translate: 0 -4px; }
:root[data-look-tiles="pinned"] .pb-counts b, :root[data-look-tiles="pinned"] .pb-counts[data-roomy] b, :root[data-look-tiles="pinned"] .pb-counts[data-tight] b { order: 2; font: 700 14.5px / var(--lh) "Courier Prime", "Courier New", monospace; letter-spacing: 0; color: var(--ink); }
:root[data-look-tiles="pinned"] .pb-reviews { display: block; align-content: normal; }
@container (min-width: 700px) and (max-height: 330px) { :root[data-look-tiles="pinned"] .pb-reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; } }
:root[data-look-tiles="pinned"] .pb-review { margin: 0 0 var(--lh); }
:root[data-look-tiles="pinned"] .pb-review h3 { font: 700 14.5px / var(--lh) "Courier Prime", "Courier New", monospace; letter-spacing: 0; color: var(--ink); }
:root[data-look-tiles="pinned"] .pb-review h3 span { font: 400 14.5px / var(--lh) "Courier Prime", "Courier New", monospace; color: var(--text-3); }
:root[data-look-tiles="pinned"] .pb-review .stars { --s: 13px; display: block; margin: 0; line-height: var(--lh); }
:root[data-look-tiles="pinned"] .pb-review .rev-text, :root[data-look-tiles="pinned"] .pb-review .spoiler { margin: 0; font: 400 14.5px / var(--lh) "Courier Prime", "Courier New", monospace; color: var(--ink); }
@media (min-width: 1100px) {
  :root[data-look-tiles="pinned"] .pb-tile { --pb-fit: calc(var(--pb-bh) - mod(var(--pb-bh), var(--lh))); }
  :root[data-look-tiles="pinned"] .pb-tags, :root[data-look-tiles="pinned"] .pb-reviews, :root[data-look-tiles="pinned"] .pb-about { max-height: var(--pb-fit); overflow: hidden; }
  :root[data-look-tiles="pinned"] .pb-counts { max-height: var(--pb-fit); }
}
/* Me: a manila folder with its tab and a red CASE stamp; the picture a tilted polaroid. */
:root[data-look-tiles="pinned"] .pb-tile[data-k="person"] { --pb-pad: 32px; --pb-chrome: var(--pb-pad); padding: 16px 18px; border-radius: 3px 10px 4px 4px; rotate: -.5deg; background: linear-gradient(180deg, #ecd69f, #dcbf80) #e4c98c; box-shadow: 0 16px 18px -12px rgb(30 12 0 / .75), inset 0 1px 0 rgb(255 255 255 / .5), inset 0 -2px 0 rgb(120 80 20 / .2); }
:root[data-look-tiles="pinned"] .pb-tile[data-k="person"]::before { content: "SUBJECT"; position: absolute; top: -21px; left: 60px; width: 128px; height: 22px; padding: 3px 0 0 14px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #f1dca8, #ecd69f); color: #6b4b25; font: 400 11.5px / 16px "Special Elite", monospace; letter-spacing: .22em; box-shadow: 0 -2px 3px -2px rgb(0 0 0 / .4); }
:root[data-look-tiles="pinned"] .pb-tile[data-k="person"]::after { content: "CASE No. 0417"; position: absolute; top: 12px; right: 14px; padding: 1px 8px; border: 2px solid #a8281e; border-radius: 3px; color: #a8281e; opacity: .8; font: 400 12px / 1.5 "Special Elite", monospace; letter-spacing: .1em; rotate: 4deg; pointer-events: none; mix-blend-mode: multiply; }
:root[data-look-tiles="pinned"] .pb .avatar { border-radius: 2px; box-shadow: 0 0 0 5px #fbf8ee, 0 8px 0 5px #fbf8ee, 0 13px 8px -2px rgb(30 12 0 / .5); rotate: -3deg; margin: 0 4px 8px 5px; }
:root[data-look-tiles="pinned"] .pb-pic { border-radius: 2px; }
:root[data-look-tiles="pinned"] .pb-name { color: #2b2117; }
:root[data-look-tiles="pinned"] :is(.pb-handle, .pb-line) { font-family: "Courier Prime", "Courier New", monospace; }
@container (max-width: 560px) { :root[data-look-tiles="pinned"] .pb-tile[data-k="person"]::after { top: -11px; right: 10px; } }
/* (Editing: the control row stands over the corner, the stamp beside it.) */
:root[data-look-tiles="pinned"] .pb.editing .pb-tile[data-k="person"]::after { top: 12px; right: 96px; }
@container (max-width: 560px) { :root[data-look-tiles="pinned"] .pb.editing .pb-tile[data-k="person"]::after { display: none; } }
@media (max-width: 680px) { :root[data-look-tiles="pinned"] .pb.editing .pb-tools { top: -32px; } }
/* Theme song: a yellow sticky note with a curled corner. Elsewhere: torn notepaper with its holes. */
:root[data-look-tiles="pinned"] .pb-tile:is([data-k="song"], [data-k="elsewhere"]) { --pb-chrome: 52px; padding: 0 0 8px; }
:root[data-look-tiles="pinned"] .pb-tile:is([data-k="song"], [data-k="elsewhere"]) > h2 { height: 44px; padding: 0 18px; line-height: 40px; }
:root[data-look-tiles="pinned"] .pb-tile:is([data-k="song"], [data-k="elsewhere"]) .pb-body { padding: 0 18px; }
:root[data-look-tiles="pinned"] .pb-what :is(b, small) { font-family: "Courier Prime", "Courier New", monospace; color: #3b2c0e; letter-spacing: 0; }
:root[data-look-tiles="pinned"] .pb-what b { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
:root[data-look-tiles="pinned"] .pb-what small { font-weight: 400; font-size: 13px; line-height: 1.3; color: #5a4616; }
:root[data-look-tiles="pinned"] .pb-bar { background: rgb(59 44 14 / .25); }
:root[data-look-tiles="pinned"] .pb-art { border-radius: 2px; box-shadow: 0 0 0 3px #fbf8ee, 0 5px 6px -1px rgb(30 12 0 / .5); }
:root[data-look-tiles="pinned"] .pb-tile[data-k="song"] { rotate: 1.3deg; background: linear-gradient(135deg, transparent calc(100% - 24px), #d9c24e calc(100% - 24px), #e7d366), linear-gradient(180deg, #f8e784, #f2d964) #f5df75; box-shadow: 0 14px 14px -10px rgb(30 12 0 / .65), 0 1px 1px rgb(0 0 0 / .25); }
:root[data-look-tiles="pinned"] .pb-tile[data-k="elsewhere"] { rotate: -1.2deg; background: radial-gradient(circle, rgb(70 40 15 / .6) 0 3px, transparent 3.6px) 0 -3px / 24px 12px repeat-x, repeating-linear-gradient(180deg, transparent 0 22px, #a9c3dc 22px 23px, transparent 23px 24px) 0 44px / 100% calc(100% - 44px) no-repeat, #fdfaf0; box-shadow: 0 14px 14px -10px rgb(30 12 0 / .65); }
:root[data-look-tiles="pinned"] .pb-tile[data-k="elsewhere"] > h2 { padding-left: 26px; }
:root[data-look-tiles="pinned"] .pb-tile[data-k="elsewhere"] .pb-body::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; background: linear-gradient(135deg, #fdfaf0 50%, transparent 50%) 0 0 / 11px 8px, linear-gradient(225deg, #fdfaf0 50%, transparent 50%) 0 0 / 11px 8px; filter: drop-shadow(0 3px 2px rgb(30 12 0 / .35)); pointer-events: none; }
:root[data-look-tiles="pinned"] .pb-elsewhere { align-content: flex-start; }
:root[data-look-tiles="pinned"] .pb-else { background: #fff; color: #2b2117; box-shadow: 0 0 0 2px #2b2117; }
:root[data-look-tiles="pinned"] .pb-play { box-shadow: 0 0 0 2px #2b2117; }
:root[data-look-tiles="pinned"] .pb-tile[data-k="elsewhere"] .pb-elsewhere[data-few] { align-content: normal; }
/* The polaroid groups: a taped label with a pin, the papers pinned under it, each a little askew. */
:root[data-look-tiles="pinned"] .pb-tile:is([data-k="characters"], [data-k="favorites"], [data-k="now"], [data-k="next"], [data-k="lists"], [data-k="lately"]) { --pb-chrome: 52px; padding-top: 8px; }
:root[data-look-tiles="pinned"] .pb-tile:is([data-k="characters"], [data-k="favorites"], [data-k="now"], [data-k="next"], [data-k="lists"], [data-k="lately"]) > h2 { position: relative; align-self: flex-start; height: 30px; margin: 0 0 14px 14px; padding: 0 18px 0 34px; text-transform: uppercase; letter-spacing: .07em; rotate: -1.2deg; background: linear-gradient(180deg, #efe5bd, #e6d9a8); clip-path: polygon(0 0, 100% 0, 98% 25%, 100% 50%, 98% 75%, 100% 100%, 0 100%, 2% 75%, 0 50%, 2% 25%); }
:root[data-look-tiles="pinned"] .pb-tile[data-k="lately"] > h2 { rotate: .8deg; }
:root[data-look-tiles="pinned"] .pb-tile[data-k="lists"] > h2 { rotate: -.6deg; }
:root[data-look-tiles="pinned"] .pb-tile[data-k="characters"]::after { content: "the usual suspects"; position: absolute; top: 96px; right: 14px; color: #8f1f17; font: 700 24px / 30px Caveat, cursive; rotate: 2.5deg; pointer-events: none; }
@container (max-width: 700px) { :root[data-look-tiles="pinned"] .pb-tile[data-k="characters"]::after { display: none; } }
:root[data-look-tiles="pinned"] .pb-nine .pb-c:nth-child(3n + 1), :root[data-look-tiles="pinned"] .pb-covers .pb-c:nth-child(3n + 1) { rotate: -1.7deg; }
:root[data-look-tiles="pinned"] .pb-nine .pb-c:nth-child(3n + 2), :root[data-look-tiles="pinned"] .pb-covers .pb-c:nth-child(3n + 2) { rotate: 1.2deg; }
:root[data-look-tiles="pinned"] .pb-nine .pb-c:nth-child(3n), :root[data-look-tiles="pinned"] .pb-covers .pb-c:nth-child(3n) { rotate: -.5deg; }
:root[data-look-tiles="pinned"] .pb-faces { overflow: visible; }
:root[data-look-tiles="pinned"] .pb-face { padding: 7px 7px 9px; border-radius: 2px; background: #fbf8ee; box-shadow: 0 13px 12px -7px rgb(30 12 0 / .6), 0 1px 2px rgb(0 0 0 / .3); }
:root[data-look-tiles="pinned"] .pb-faces > li:nth-child(3n + 1) .pb-face { rotate: -2.2deg; }
:root[data-look-tiles="pinned"] .pb-faces > li:nth-child(3n + 2) .pb-face { rotate: 1.6deg; }
:root[data-look-tiles="pinned"] .pb-faces > li:nth-child(3n) .pb-face { rotate: -.7deg; }
:root[data-look-tiles="pinned"] .pb-fp { border-radius: 1px; box-shadow: inset 0 0 0 1px rgb(60 40 10 / .25); }
:root[data-look-tiles="pinned"] .pb-face b { margin-top: 7px; font: 700 19px / 1.15 Caveat, cursive; color: #2b2117; }
:root[data-look-tiles="pinned"] .pb-face :is(b, small) { margin-inline: 0; }
@container (max-width: 340px) { :root[data-look-tiles="pinned"] .pb-face b { font-size: 16px; } }
:root[data-look-tiles="pinned"] .pb-face small { font: 400 11.5px / 1.3 "Courier Prime", "Courier New", monospace; color: #5a4a33; }
:root[data-look-tiles="pinned"] .pb-covers > :is(.pb-done, .pb-list) { padding: 6px 6px 8px; border-radius: 2px; background: #fbf8ee; box-shadow: 0 13px 12px -7px rgb(30 12 0 / .6), 0 1px 2px rgb(0 0 0 / .3); }
:root[data-look-tiles="pinned"] .pb-covers > :is(.pb-done, .pb-list):nth-child(3n + 1) { rotate: -1.3deg; }
:root[data-look-tiles="pinned"] .pb-covers > :is(.pb-done, .pb-list):nth-child(3n + 2) { rotate: 1deg; }
:root[data-look-tiles="pinned"] .pb-covers > :is(.pb-done, .pb-list):nth-child(3n) { rotate: -.4deg; }
:root[data-look-tiles="pinned"] .pb-done .cover { box-shadow: none; border-radius: 1px; }
:root[data-look-tiles="pinned"] :is(.pb-done, .pb-list) b { margin-top: 6px; font: 700 17px / 1.15 Caveat, cursive; color: #2b2117; }
:root[data-look-tiles="pinned"] .pb-list small { font: 400 11.5px / 1.3 "Courier Prime", "Courier New", monospace; color: #5a4a33; }
:root[data-look-tiles="pinned"] .pb-fi .cover { box-shadow: 0 0 0 2px #fbf8ee, 0 4px 6px -2px rgb(0 0 0 / .5); }
:root[data-look-tiles="pinned"] .pb-covers .pb-list { min-width: 0; }
/* The red string (corkboard.js): in the gaps, over the cork. */
.cb-strings { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.cb-strings .shade { fill: none; stroke: rgb(30 12 0 / .38); stroke-width: 3; stroke-linecap: round; }
.cb-strings .yarn { fill: none; stroke: #b3261e; stroke-width: 2.6; stroke-linecap: round; }
.cb-strings .fuzz { fill: none; stroke: #e2685c; stroke-width: .9; stroke-linecap: round; stroke-dasharray: 7 5; }
/* The Look sheet's small picture of it: cork, with its papers pinned. */
.look-mini[data-m="pinned"] { background-color: #b3834d; background-image: var(--cork-img); background-size: var(--cork-size); box-shadow: inset 0 0 0 3px #5b3a22; }
.look-mini[data-m="pinned"] b { color: #2b1a0c; }
.look-mini[data-m="pinned"] u { position: relative; border-radius: 1px; background: repeating-linear-gradient(180deg, transparent 0 4px, #a9c3dc 4px 5px), #fbf6e6; box-shadow: 0 2px 3px -1px rgb(0 0 0 / .6); }
.look-mini[data-m="pinned"] u:nth-of-type(2) { background: linear-gradient(135deg, #8c8f9a, #58606e); border: 3px solid #fbf8ee; border-bottom-width: 6px; rotate: 2deg; }
.look-mini[data-m="pinned"] u:nth-of-type(3) { background: #f3dc6c; }
.look-mini[data-m="pinned"] u:nth-of-type(odd) { rotate: -1.5deg; }
.look-mini[data-m="pinned"] u::before { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; translate: -50% 0; border-radius: 50%; background: #c4291d; box-shadow: 0 1px 1px rgb(0 0 0 / .5); }

/* ---- the profile picture, while editing: one small camera on its edge (no words), and a menu and an adjust sheet from it ---- */
.pic-badge {
  position: absolute; right: 2%; bottom: 2%; display: none; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #1b1a18; color: #f2efe9; box-shadow: 0 0 0 2px #f2efe9; pointer-events: none;
}
.pic-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.who-head.editing .pic-badge, .pb.editing .pic-badge { display: grid; }
.who-head.editing .who-pic, .pb.editing .pb-pic { cursor: pointer; }
dialog.pic-sheet { width: min(360px, calc(100vw - 32px)); }
.pic-menu { display: grid; gap: 4px; padding: 10px; }
.pic-menu[hidden], .pic-menu [hidden] { display: none; }
.pic-opt { display: block; width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: none; color: var(--text); font: 500 16px/1.2 var(--sans); text-align: left; cursor: pointer; }
.pic-opt.danger { color: #c2361f; }
.pic-ask { margin: 0; padding: 10px 14px 4px; font: 500 16px/1.3 var(--sans); }
.pic-asks { display: flex; gap: 8px; padding: 6px 4px 4px; }
.pic-asks .pic-opt { text-align: center; }
.pic-asks .pic-opt.danger { background: #c2361f; color: #fff; }
.pic-asks .pic-opt:not(.danger) { background: var(--sunk); }
@media (hover: hover) { .pic-menu > .pic-opt:hover { background: var(--sunk); } }
.pic-adjust .sheet-body { justify-items: stretch; }
.pic-stage { position: relative; overflow: hidden; width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto; border-radius: 12px; background: #111; touch-action: none; cursor: grab; user-select: none; }
.pic-stage:active { cursor: grabbing; }
.pic-stage canvas { position: absolute; left: 50%; top: 50%; max-width: none; pointer-events: none; }
.pic-ring { position: absolute; left: 50%; top: 50%; width: 80%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; box-shadow: 0 0 0 999px rgb(0 0 0 / .58); outline: 2px solid rgb(255 255 255 / .85); pointer-events: none; }
.pic-stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pic-zoom { width: min(100%, 340px); margin: 0 auto; accent-color: var(--accent); }
@media (max-width: 680px) {
  dialog.pic-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 88dvh; margin: 0; border: 0; border-radius: 24px 24px 0 0; overflow-x: hidden; animation: sheet-rise .2s ease-out; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .pic-adjust .sheet-foot { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { dialog.pic-sheet { animation: none; } }

/* What a card pictures of a tier list or a grid (owner, 11-29), in the box a fan takes: an unseen cover gives the box the
   fan's height (so cards line up), and the picture is laid over it. Covers keep their 2:3, whole, never cropped. */
.list-stack.list-thumb { position: relative; }
.list-stack.list-thumb .cover { flex: none; margin: 0; border: 0; }
.list-stack.list-thumb .cover.sizer { flex: 0 0 34%; visibility: hidden; border: 2px solid var(--bg); }
.thumb-box { position: absolute; inset: 0; container-type: size; min-width: 0; }
.list-thumb .cover { border-radius: 2px; box-shadow: none; transition: none; }
.list-thumb .cover::after { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }
.list-thumb .cover-ph, .list-thumb .kind-mark { display: none; }
.thumb-tiers {
  --rh: calc((100cqh - 2px - (var(--rows) - 1) * 2px) / var(--rows));
  display: flex; flex-direction: column; gap: 2px; width: 100%; height: 100%;
  box-sizing: border-box; overflow: hidden; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface);
}
.thumb-row { display: flex; align-items: stretch; gap: 2px; height: var(--rh); min-width: 0; overflow: hidden; }
.thumb-row .cover { height: var(--rh); width: calc(var(--rh) * 2 / 3); flex: none; }
.thumb-label {
  flex: 0 0 15%; display: grid; place-items: center; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: clip;
  font: 700 min(calc(var(--rh) * .55), 13px) / 1 var(--sans);
}
.thumb-grid {
  --ch: calc((100cqh - 2px - 8px - 3px) / 2);
  display: grid; grid-template-columns: repeat(var(--n), calc(var(--ch) * 2 / 3)); grid-auto-rows: var(--ch); gap: 3px; width: fit-content; max-width: 100%;
  box-sizing: border-box; padding: 4px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); justify-content: start;
}
.thumb-grid .cover { width: 100%; height: 100%; }
.list-stack.list-thumb .thumb-grid .thumb-empty { background: none; border: 1.5px dashed var(--line-2); box-sizing: border-box; }
.thumb-grid .thumb-empty::after { display: none; }
/* On the Album profile a fan's covers are sized by `.album .list-stack .cover`; a tier list's or grid's picture keeps its own sizes there. */
.album .list-stack.list-thumb .cover.sizer { flex: 0 0 var(--c); width: var(--c); margin: 0; }
.album .list-stack.list-thumb :is(.thumb-row, .thumb-grid) .cover { flex: none; margin: 0; border: 0; border-radius: 2px; box-shadow: none; }
.album .list-stack.list-thumb .thumb-row .cover { width: calc(var(--rh) * 2 / 3); height: var(--rh); }
.album .list-stack.list-thumb .thumb-grid .cover { width: 100%; height: 100%; }
.album .list-stack.list-thumb .thumb-grid .thumb-empty { border: 1.5px dashed var(--line-2); }

/* The shelf's top (owner, 11-29; the profile has no row of tabs): a heading, and ONE switch, Titles · Lists · Diary, as the segmented
   control the site has (`--sunk` track, `--seg-on` for the chosen). On someone else's shelf a back link over the heading. The row of kinds
   stands right under it, where the tabs stood (`#tabs`, profile.js `toStart`). */
.shelf-top { padding-top: 56px; }
.shelf-top-back { display: inline-block; margin-bottom: 8px; color: var(--text-2); font-size: 14px; font-weight: 500; }
@media (hover: hover) { .shelf-top-back:hover { color: var(--text); } }
.shelf-top-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.shelf-top-h { margin: 0; min-width: 0; font: 400 clamp(36px, 5vw, 56px)/1.05 var(--serif); letter-spacing: -.02em; overflow-wrap: anywhere; }
.shelf-top .shelf-choice { margin: 8px 0 0; }
.shelf-sw { display: flex; gap: 2px; margin: 16px 0 22px; padding: 3px; border-radius: 999px; background: var(--sunk); max-width: 420px; scroll-margin-top: 80px; }
.shelf-sw a { flex: 1 1 0; display: grid; place-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; color: var(--text-2); font-size: 14.5px; font-weight: 500; }
@media (hover: hover) { .shelf-sw a:hover { color: var(--text); } }
.shelf-sw a[aria-current] { background: var(--seg-on); color: var(--text); font-weight: 600; }
@media (max-width: 680px) {
  .shelf-top { padding-top: var(--page-top); }
  .shelf-sw { max-width: none; margin: 14px 0 16px; }
}
/* Logs · Reviews: the Diary's places; the year in review (Logs) at the row's right end. */
.kr-logs { position: relative; }
.kr-logs .kr-year { position: absolute; right: 0; top: 0; margin: 0; padding-inline: 0; }
/* The profile as a board: a block's way to its fuller view, at its heading's end. */
.pb-tile > .pb-more { position: absolute; top: 0; right: 0; z-index: 1; line-height: calc(var(--pb-hs) * var(--pb-hl)); }
.pb.editing .pb-more { display: none; }

/* Going from page to page (owner, 11-30: "the entire page refreshes in a very ugly way"): the browser keeps the top bar and the dock where they
   are and lets the page under them fade across, instead of blanking the screen between pages. (Browsers without it go as before.) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .dock { view-transition-name: dock; }
  @media (max-width: 680px) { header.top { view-transition-name: top-bar; } }  /* (from 681px the top bar is not drawn but on the search page, where the field goes with the page) */
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
  ::view-transition-group(top-bar), ::view-transition-group(dock) { animation-duration: 0s; }
  ::view-transition-old(dock), ::view-transition-new(dock), ::view-transition-old(top-bar), ::view-transition-new(top-bar) { animation-duration: .1s; }
}

/* ---- offscreen groups are not laid out or painted until they near the screen ----
   A long page (a shelf, a diary, reviews, a profile's rows) is hundreds of boxes; what is far
   below is skipped, with a size guessed (the real one kept once it has been seen). Not the
   board's tiles (profile.js fits them as the page loads), nor a list being edited (dragged), nor the profile's row of reviews (its
   words are measured as the page loads; the check reads them below the fold). */
.shelf-view .grid.far { content-visibility: auto; contain-intrinsic-size: auto 3000px; }
.diary .month { content-visibility: auto; contain-intrinsic-size: auto 280px; }
.revs-cards .rev { content-visibility: auto; contain-intrinsic-size: auto 240px; }
:is(.fin-row, .chars-row, .song-row, .wall, .alike):not(.pb-tile, .editing) { content-visibility: auto; contain-intrinsic-size: auto 500px; }
.lists-block:not(.editing) { content-visibility: auto; contain-intrinsic-size: auto 1000px; }

/* ---- the left rail (owner, 11-30): from 681px the phone's bar is a rail down the page's left, and the top bar is not drawn ----
   The one `nav.dock`: at the foot of a phone's screen as above; from 681px a column at the left (a 76px strip of pictures to 1099px, 236px with their
   words from 1100px): the mark, Home, Search, Shelf (and, on your own, its sections, Titles · Lists · Diary), Profile, Notifications, and More at its foot, which opens
   upward with what the account menu holds. A phone draws none of what is `data-rail-only` or the rail's own boxes (`.rail-*`). The top bar stays only on the search
   page, as its field. `--rail-w` is the room the rail takes from the page. */
:root { --rail-w: 0px; }
.rail-av, .rail-more, .rail-sub { display: none; }
.to-light { display: none; }
:root[data-theme="dark"] .to-light { display: block; }
:root[data-theme="dark"] .to-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .to-light { display: block; }
  :root:not([data-theme="light"]) .to-dark { display: none; }
}
@media (max-width: 680px) {
  .rail-scroll { display: contents; }
  .dock [data-rail-only] { display: none; }
}
@media (min-width: 681px) {
  :root { --rail-w: 76px; }
  body { padding-left: var(--rail-w); }
  header.top { display: none; }
  /* The search page keeps its field, where the top bar was: only the field. */
  body.searching header.top { display: block; }
  body.searching :is(.top-left, .top-nav) { display: none; }
  body.searching .top-in { grid-template-columns: minmax(0, 460px); justify-content: center; }

  .dock {
    position: fixed; inset: 0 auto 0 0; z-index: 47; width: var(--rail-w); box-sizing: border-box; display: flex; flex-direction: column; padding: 22px 8px 18px;
    background: var(--bg); border-right: 1px solid var(--line); font-family: var(--sans);
  }
  .rail-scroll { display: flex; flex: 1; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .rail-scroll::-webkit-scrollbar { display: none; }
  .dock .mark { display: grid; place-items: center; flex: none; padding: 0 0 22px; font-size: 0; color: var(--text); }
  .dock .mark-star { width: 26px; height: 26px; margin: 0; }
  .dock .mark-preview { display: none; }
  .dock a:not(.mark, .menu-item, .me-head), .rail-more-btn {
    position: relative; display: flex; align-items: center; justify-content: center; flex: none; gap: 14px; width: 100%; height: 46px; padding: 0; border: 0; border-radius: 12px;
    background: none; color: var(--text-2); font: 500 15.5px/1.2 var(--sans); text-align: left; cursor: pointer;
  }
  .dock a:not(.mark, .menu-item, .me-head):focus-visible, .rail-more-btn:focus-visible { outline-offset: -2px; }
  @media (hover: hover) { .dock a:not(.mark, .menu-item, .me-head):hover, .rail-more-btn:hover { color: var(--text); } }
  .dock a:not(.mark, .menu-item, .me-head)[aria-current], .rail-more-btn[aria-expanded="true"] { background: var(--sunk); color: var(--text); font-weight: 600; }
  .dock :is(a:not(.mark, .menu-item, .me-head), .rail-more-btn) > svg { flex: none; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
  /* Words are there for what reads the page, drawn only where the rail has room for them. */
  .dock .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rail-not { display: none; }
  .rail-av { display: block; flex: none; line-height: 0; }
  .rail-av .avatar { width: 24px; height: 24px; font-size: 12px; }
  .dock a[data-tint] .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--tint); }
  .dock a[data-tint][aria-current] .avatar { box-shadow: 0 0 0 2px var(--sunk), 0 0 0 4px var(--tint); }
  /* What is new: a dot on the bell, the number where there are words. */
  .rail-count {
    position: absolute; top: 7px; left: calc(50% + 4px); min-width: 0; width: 10px; height: 10px; padding: 0; border-radius: 999px; overflow: hidden; background: var(--accent); color: transparent;
    font-size: 0; box-shadow: 0 0 0 2px var(--bg);
  }
  .dock a[aria-current] .rail-count { box-shadow: 0 0 0 2px var(--sunk); }
  /* Under Shelf, on your own: the sections, small words in a column. */
  .rail-sub { display: flex; flex: none; flex-direction: column; gap: 2px; margin: 0 0 6px; }
  .dock .rail-sub a { height: 28px; border-radius: 8px; font-size: 12px; }
  /* More, at the foot. */
  .rail-more { position: relative; display: block; flex: none; margin-top: 8px; }
  .rail-menu { position: absolute; z-index: 2; left: 0; bottom: calc(100% + 8px); }
  .rail-menu .me-card { width: 250px; max-width: calc(100vw - var(--rail-w) - 24px); max-height: calc(100dvh - 120px); box-shadow: 0 18px 50px rgb(0 0 0 / .5); }
  .rail-menu .menu-item { padding: 0 12px; height: 40px; }
  .rail-menu .menu-item svg { stroke: var(--text-2); }
  .rail-menu .shelf-item svg { stroke: var(--text); }

  /* The page, nothing under the top bar now. */
  .krow { top: 0; }
  .rev[id] { scroll-margin-top: 0; }
  .tabs { scroll-margin-top: 28px; }
  .set-nav { top: 28px; }
  .set-layout [id] { scroll-margin-top: 24px; }
  .title-side { top: min(32px, calc(100dvh - var(--side-h, 0px) - 24px)); }
  .shelf-top { padding-top: 32px; }
  .shelf-top.own { padding-top: 16px; }
  nav.shelf-sw.own { height: 0; margin: 0; padding: 0; overflow: hidden; visibility: hidden; }  /* (kept in the page, as the place profile.js and land.js measure from: the rail has these sections) */
  .top-glow { width: calc(100vw - var(--rail-w)); margin-left: calc((var(--rail-w) - 100vw) / 2); }
  .tl-selbar { left: var(--rail-w); }
  .edit-pencil { left: calc(max(24px, env(safe-area-inset-left, 0px)) + var(--rail-w)); }
  .edit-bar { left: calc(max(24px, env(safe-area-inset-left, 0px)) + var(--rail-w)); }
  .look-sheet { left: calc(max(24px, env(safe-area-inset-left, 0px)) + var(--rail-w)); }
}
@media (min-width: 1100px) {
  :root { --rail-w: 236px; }
  .dock { padding: 26px 16px 22px; }
  .dock .mark { display: block; padding: 0 12px 26px; font-size: 31px; }
  .dock .mark-star { width: .5em; height: .5em; margin-left: .04em; }
  .dock .mark-preview { display: inline; }
  .dock a:not(.mark, .menu-item, .me-head), .rail-more-btn { justify-content: flex-start; padding: 0 12px; }
  .dock .lbl { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .rail-count {
    position: static; display: block; width: auto; min-width: 20px; height: 20px; margin-left: auto; padding: 0 6px; overflow: visible; color: var(--on-accent);
    font: 700 11.5px/20px var(--sans); text-align: center; box-shadow: none;
  }
  .dock a[aria-current] .rail-count { box-shadow: none; }
  .rail-sub { margin: 2px 0 6px 29px; border-left: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
  .dock .rail-sub a { justify-content: flex-start; height: 36px; margin-left: -1px; padding: 0 0 0 14px; border-radius: 0; border-left: 2px solid transparent; font-size: 14.5px; }
  .dock .rail-sub a[aria-current] { border-left-color: var(--text); background: none; }
}
