/* Pile (code name: shelf) — on top of kit/catalogue.css (the Chiktoverse house style, born here). Only Shelf's own parts. */

:root {
  --star: var(--ink);
  /* The four kinds: black, red, two greys. */
  --game: #111111;
  --book: #e5322d;
  --film: #7c7c7c;
  --series: #bcbcbc;
}
:root[data-scheme=dark] { --game: #f1f1f1; --book: #ff4b3e; --film: #8f8f8f; --series: #555555; }
@media (prefers-color-scheme: dark) {
  :root:not([data-scheme]) { --game: #f1f1f1; --book: #ff4b3e; --film: #8f8f8f; --series: #555555; }
}

/* Stars (display) */
.stars { position: relative; display: inline-block; line-height: 0; vertical-align: -0.1em; --size: .9em; white-space: nowrap; }
.stars .star { width: var(--size); height: var(--size); display: inline-block; margin-right: .06em; }
.stars-empty .star { fill: none; stroke: var(--muted); stroke-width: 1.3; opacity: .55; }
.stars-full { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; width: calc(var(--r) * 10%); }
.stars-full .star { fill: var(--star); stroke: var(--star); stroke-width: 1.3; }
.stars.big { --size: 2rem; }

/* Stars (input) */
.rating-input { display: inline-flex; align-items: center; gap: 1rem; }
.rating-stars { position: relative; display: inline-block; cursor: pointer; touch-action: manipulation; }
.rating-stars:focus-visible { outline-offset: 4px; }
.rating-hits { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(10, 1fr); }
.rating-hits button { border: 0; padding: 0; background: none; }
.rating-hits button:hover { background: none; }
.rating-value { font-size: .9rem; font-weight: 500; color: var(--muted); min-width: 7em; }

/* Heart toggle */
.heart { border: 0; padding: .25rem; background: none; color: var(--muted); font-size: 1.7rem; line-height: 0; }
.heart:hover { background: none; color: var(--accent); }
.heart .icon { width: 1em; height: 1em; transition: transform .15s; }
.heart[aria-pressed=true] { color: var(--accent); }
.heart[aria-pressed=true] .icon { fill: currentColor; }
.heart:active .icon { transform: scale(.85); }

/* Segmented status */
.status-bar { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--ink); }
.status-bar button { border: 0; border-right: 1px solid var(--ink); padding: .6rem .95rem; font-weight: 500; font-size: .9rem; gap: .45rem; }
.status-bar button:last-child { border-right: 0; }
.status-bar button:hover { background: var(--paper-2); color: var(--ink); }
.status-bar button[aria-pressed=true] { background: var(--ink); color: var(--paper); font-weight: 700; }
@media (max-width: 44rem) {
  .status-bar { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .status-bar button { border-bottom: 1px solid var(--ink); padding: .7rem .3rem; font-size: .85rem; }
  .status-bar button:nth-child(3) { border-right: 0; }
  .status-bar button:nth-child(n+4) { border-bottom: 0; }
}

/* Kind tabs */
.kind-tabs { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; border-bottom: 1px solid var(--ink); margin-bottom: 1.5rem; }
.kind-tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 0; text-decoration: none; color: var(--muted);
  font-weight: 600; border-bottom: 4px solid transparent; margin-bottom: -1px; }
.kind-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.kind-tabs a:hover { color: var(--ink); }

/* ---------- Covers ---------- */
.kind-game { --kind: var(--game); --kind-bg: #111111; --kind-fg: #ffffff; }
.kind-book { --kind: var(--book); --kind-bg: #e5322d; --kind-fg: #ffffff; }
.kind-film { --kind: var(--film); --kind-bg: #7c7c7c; --kind-fg: #ffffff; }
.kind-series { --kind: var(--series); --kind-bg: #d4d4d4; --kind-fg: #111111; }
/* black covers would vanish on the black page: invert them */
:root[data-scheme=dark] .kind-game { --kind-bg: #f1f1f1; --kind-fg: #111111; }
:root[data-scheme=dark] .kind-series { --kind-bg: #4a4a4a; --kind-fg: #f1f1f1; }
.cover { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--paper-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
/* hairline so white covers don't melt into the page */
.cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.cover-blank { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 10%;
  background: var(--kind-bg); color: var(--kind-fg); }
.cover-blank .t { font: 800 1.15em/1 var(--sans); letter-spacing: -.03em; font-stretch: 80%; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
.cover-blank .icon { width: 1.3em; height: 1.3em; }
.cover.thumb { width: 52px; flex: none; font-size: .55rem; }
.cover.thumb .cover-blank { padding: 8%; }

/* Rows of covers */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 136px; gap: 1.25rem; align-items: start;
  justify-content: start; overflow-x: auto; overflow-y: hidden; padding: 2px 0 6px;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.shelf.overflows { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 4rem), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 4rem), transparent); }
.shelf.at-end { -webkit-mask-image: none; mask-image: none; }
.shelf .book-title { min-height: 2.5em; }
.shelf .book { scroll-snap-align: start; }
@media (max-width: 44rem) { .shelf { grid-auto-columns: 104px; gap: .9rem; } }

/* Library grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(144px, 1fr)); gap: 2.4rem 1.25rem; }
@media (max-width: 44rem) { .grid { grid-template-columns: repeat(3, 1fr); gap: 1.6rem .8rem; } }

.book { display: grid; gap: .5rem; text-decoration: none; color: var(--ink); min-width: 0; }
.book:hover { color: var(--ink); }
.book-cover { position: relative; display: block; }
.book .cover { transition: outline-color .12s; outline: 3px solid transparent; outline-offset: -3px; }
.book:hover .cover { outline-color: var(--accent); }
.book:hover .book-title { color: var(--accent); }
.book-title { font: 700 .92rem/1.25 var(--sans); letter-spacing: -.01em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; }
.book-meta { font-size: .78rem; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: .4rem; margin-top: -.2rem; }
.book-meta .icon { width: 1em; height: 1em; }
.fav-mark { position: absolute; top: 0; right: 0; z-index: 1; background: var(--accent); color: #fff; padding: .25rem; line-height: 0; }
.fav-mark .icon { fill: currentColor; width: .8rem; height: .8rem; }
/* Status markers: small squares */
.status-dot { display: inline-block; width: .55rem; height: .55rem; background: var(--muted); flex: none; }
.status-dot.in_progress { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); background-image: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.status-dot.done { background: var(--ink); }
.status-dot.wishlist { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.status-dot.paused { background: var(--muted); }
.status-dot.dropped { background: var(--accent); }

/* ---------- Home ---------- */
.reading-now { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0 2.5rem; }
.now { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.now .cover { width: 80px; flex: none; }
.now-body { min-width: 0; display: grid; gap: .2rem; }
.now-title { font: 800 1.15rem/1.15 var(--sans); letter-spacing: -.02em; text-decoration: none; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.now-meta { font-size: .85rem; color: var(--muted); }
.now form { margin-top: .55rem; }
.welcome { max-width: 44rem; }
.welcome .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }

/* ---------- Library ---------- */
.fav-filter { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--muted);
  border: 1px solid var(--rule); width: 2.75rem; }
.fav-filter:hover { border-color: var(--accent); }
.fav-filter[aria-pressed=true] { color: #fff; background: var(--accent); border-color: var(--accent); }
.fav-filter[aria-pressed=true] .icon { fill: currentColor; }

/* ---------- Entry page ---------- */
.entry { display: grid; grid-template-columns: minmax(180px, 270px) 1fr; gap: 3.5rem; align-items: start; }
.entry-side { position: sticky; top: 1.5rem; display: grid; gap: .9rem; }
.entry-side .source { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--ink); margin-bottom: .9rem; }
.kicker::before { content: ""; width: .7rem; height: .7rem; background: var(--kind-bg); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }
.kicker .icon { display: none; }
.byline { font-size: 1.25rem; font-weight: 500; line-height: 1.3; color: var(--ink-2); margin: .4rem 0 .5rem; }
.facts { color: var(--muted); font-size: .9rem; font-weight: 500; margin-bottom: 1.75rem; }
.facts span + span::before { content: "/"; margin: 0 .55rem; color: var(--rule); }
.rate-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin: 1.75rem 0 2.5rem; }
.rule-section { border-top: 1px solid var(--ink); padding-top: .6rem; margin-top: 2.5rem; }
.rule-section > h2 { margin-bottom: 1.1rem; }
.summary-text { font-size: 1rem; line-height: 1.65; color: var(--ink-2); max-width: 44rem; }
.summary-text.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review-form { display: grid; gap: 1.1rem; max-width: 44rem; }
.review-form .actions { display: flex; align-items: center; gap: 1rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .88rem; font-weight: 600; }
.tag-list a { color: var(--ink-2); text-decoration: none; }
.tag-list a::before { content: "#"; color: var(--accent); }
.tag-list a:hover { color: var(--accent); }
@media (max-width: 44rem) {
  .entry { grid-template-columns: 1fr; gap: 1.5rem; }
  .entry-side { position: static; grid-template-columns: 120px 1fr; align-items: end; }
}

/* Runs as a ledger */
.ledger { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ledger th { text-align: left; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  padding: 0 1rem .45rem 0; border-bottom: 1px solid var(--rule); }
.ledger td { padding: .75rem 1rem .75rem 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.ledger td.dates { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger td.edit { text-align: right; padding-right: 0; }
.ledger .tag-dropped { color: var(--accent); font-size: .78rem; font-weight: 700; margin-left: .5rem; text-transform: uppercase;
  letter-spacing: .06em; }
@media (max-width: 44rem) {
  .ledger thead { display: none; }
  .ledger tr { display: grid; grid-template-columns: 1fr auto; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
  .ledger td { border: 0; padding: .1rem 0; }
  .ledger td.dates { grid-column: 1; }
  .ledger td.edit { grid-row: 1; grid-column: 2; }
  .ledger td.what { grid-column: 1 / -1; color: var(--muted); font-size: .88rem; }
}
.disclosure > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700;
  margin-top: 1.1rem; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary .icon { color: var(--accent); }
.disclosure > summary:hover { color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1.1rem 1.25rem; margin: 1.25rem 0;
  align-items: end; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid .switch-field { align-self: center; padding-top: 1.1rem; }
.danger-zone { margin-top: 4rem; font-size: .9rem; }

/* ---------- Add ---------- */
.searchbox { display: flex; gap: .6rem; margin-bottom: 2.25rem; max-width: 48rem; }
.searchbox .search { flex: 1; position: relative; }
.searchbox .search .icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted);
  width: 1.2rem; height: 1.2rem; }
.searchbox input { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; padding: .75rem .9rem .75rem 2.8rem;
  border-color: var(--ink); }
.results { list-style: none; padding: 0; margin: 0; max-width: 58rem; border-top: 1px solid var(--ink); }
.results li { display: flex; align-items: center; gap: 1.1rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.results .r-body { flex: 1; min-width: 0; }
.results .r-title { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.25; }
.results .r-title .year { font-weight: 500; color: var(--muted); }
.results .r-meta { font-size: .85rem; color: var(--muted); margin-top: .15rem; }
.results form { display: flex; gap: .4rem; flex: none; }
.results select { width: auto; font-size: .88rem; padding-block: .4rem; }
@media (max-width: 44rem) {
  .results li { flex-wrap: wrap; }
  .results form { width: 100%; padding-left: calc(52px + 1.1rem); }
  .results select { flex: 1; }
}
.manual { max-width: 48rem; margin-top: 3.5rem; border-top: 1px solid var(--ink); padding-top: .3rem; }
.notice { border-left: 4px solid var(--ink); padding: .2rem 0 .2rem .9rem; margin-bottom: 1.75rem; }

/* ---------- Stats ---------- */
.years { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; font-size: 1rem; font-weight: 600; }
.years a { text-decoration: none; color: var(--muted); }
.years a:hover { color: var(--ink); }
.years a[aria-current] { color: var(--accent); }
.headline { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink);
  margin-bottom: 1.4rem; }
.headline a { padding: .9rem 1.25rem 1.1rem 0; text-decoration: none; display: grid; gap: .3rem; border-right: 1px solid var(--rule); }
.headline a + a { padding-left: 1.25rem; }
.headline a:last-child { border-right: 0; }
.headline a:hover .n { color: var(--accent); }
.headline .n { font: 800 clamp(3rem, 9vw, 6rem)/.85 var(--sans); font-stretch: 72%; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums lining-nums; color: var(--ink); }
.headline .l { display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); }
.headline .l::before { content: ""; width: .6rem; height: .6rem; background: var(--kind-bg); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }
.headline .l .icon { display: none; }
@media (max-width: 44rem) {
  .headline { grid-template-columns: repeat(2, 1fr); }
  .headline a:nth-child(2) { border-right: 0; }
  .headline a:nth-child(3) { padding-left: 0; border-top: 1px solid var(--rule); }
  .headline a:nth-child(4) { border-top: 1px solid var(--rule); }
}
.facts-line { font-size: 1.15rem; line-height: 1.5; font-weight: 500; color: var(--ink-2); margin-bottom: 3.5rem; max-width: 52rem; }
.facts-line strong { color: var(--ink); font-weight: 800; }
.chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: .5rem; align-items: end; height: 12rem;
  border-bottom: 2px solid var(--ink); }
.chart .col { display: flex; flex-direction: column-reverse; height: 100%; position: relative; width: 100%; max-width: 2.6rem;
  justify-self: center; }
.chart .seg { display: block; background: var(--kind-bg); }
.chart .seg + .seg { box-shadow: inset 0 -2px 0 var(--paper); }
.chart .v { position: absolute; left: 0; right: 0; text-align: center; font-size: .85rem; font-weight: 800; color: var(--ink);
  bottom: calc(var(--h) * 1% + .2rem); }
.chart-labels { display: grid; grid-template-columns: repeat(12, 1fr); gap: .5rem; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: center; margin-top: .4rem; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font-size: .8rem; font-weight: 600; color: var(--muted); margin-top: 1rem; }
.legend i { display: inline-block; width: .7rem; height: .7rem; background: var(--kind-bg); margin-right: .4rem; vertical-align: -.05em;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }

/* ---------- Login ---------- */
.login { max-width: 34rem; margin: 12vh auto 0; }
.login .wordmark { font-size: clamp(4rem, 14vw, 7.5rem); display: block; margin-bottom: 1.25rem; border-bottom: 6px solid var(--ink);
  padding-bottom: .6rem; font-stretch: 80%; }
/* Confidentialité */
.privacy { max-width: 40rem; margin-top: 1.5rem; }
.privacy .choices { border: 0; padding: 0; margin: 0 0 1.75rem; }
.privacy .choice { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 0; border-bottom: 1px solid var(--rule);
  text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 400; color: var(--ink); cursor: pointer; margin: 0; }
.privacy .choice:first-of-type { border-top: 1px solid var(--ink); }
.privacy .choice input { flex: none; width: 1.05rem; height: 1.05rem; padding: 0; margin: .2rem 0 0; box-shadow: none; }
.privacy .choice .help { display: block; }
.login .lede { margin: 0 0 2.25rem; }
.login .btn-ink { padding: .95rem 1.4rem; font-size: 1rem; }
.login .fine { margin-top: 2rem; color: var(--muted); font-size: .88rem; }

/* ---------- Import ---------- */
.import-sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2.5rem 3rem; margin: 2.25rem 0 1rem; }
.import-source { border-top: 6px solid var(--kind-bg); padding-top: .9rem; }
.import-source h2 { display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; font-size: 1.3rem; text-transform: none;
  letter-spacing: -.02em; font-weight: 800; }
.steps { padding-left: 1.2rem; margin: 0 0 .9rem; color: var(--ink-2); }
.steps li { margin-bottom: .35rem; }
.steps li::marker { font-weight: 800; color: var(--ink); }
code { font: 500 .85em ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--paper-2); padding: .1em .35em; }
.upload { display: flex; flex-wrap: wrap; gap: .6rem; align-items: stretch; margin-top: 1rem; }
.file { position: relative; flex: 1 1 12rem; margin: 0; cursor: pointer; text-transform: none; letter-spacing: 0; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file span { display: block; padding: .6rem .8rem; border: 1px dashed var(--ink); color: var(--ink-2); font-size: .92rem; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file:hover span, .file input:focus-visible + span { border-style: solid; color: var(--ink); }
.file.chosen span { border-style: solid; color: var(--ink); font-weight: 700; }
.progress { height: 10px; border: 1px solid var(--ink); margin: 1rem 0 2.25rem; max-width: 40rem; }
.progress span { display: block; height: 100%; background: var(--ink); transition: width .4s; }
.import-numbers .n { color: var(--ink); }
.import-numbers .l::before { display: none; }

/* ---------- Journal ---------- */
.journal-filter { margin-left: auto; color: var(--muted); }
.journal-filter[aria-pressed=true] { color: var(--ink); border-bottom-color: var(--accent); }
.journal-month { margin-bottom: 3rem; }
.journal-month-title { position: sticky; top: 0; z-index: 2; background: var(--paper); padding: .7rem 0 .45rem;
  border-bottom: 3px solid var(--ink); margin-bottom: 0; font-size: 1.7rem; font-weight: 800; text-transform: none;
  letter-spacing: -.03em; font-stretch: 85%; }
.journal-item { display: grid; grid-template-columns: 3.6rem 64px minmax(0, 1fr); gap: 1.2rem; padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule); align-items: start; }
.journal-date { line-height: 1; }
.journal-date .d { display: block; font: 800 2.6rem/.85 var(--sans); font-stretch: 72%; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums lining-nums; }
.journal-date .w { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  margin-top: .35rem; }
.journal-cover .cover { width: 64px; }
.journal-body h3 { margin: 0 0 .3rem; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.journal-body h3 a { text-decoration: none; }
.journal-body h3 a:hover { color: var(--accent); }
.journal-body h3 .year { font-weight: 500; color: var(--muted); font-size: .95rem; letter-spacing: 0; }
.journal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .9rem; font-size: .82rem; font-weight: 500; color: var(--muted);
  margin: 0; }
.journal-meta .kind { display: inline-block; width: .6rem; height: .6rem; background: var(--kind-bg); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }
.journal-meta .kind .icon { display: none; }
.journal-meta .fav { color: var(--accent); }
.journal-meta .fav .icon { fill: currentColor; }
.journal-meta .again { color: var(--ink); font-weight: 800; text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; }
.journal-meta .dropped { color: var(--accent); font-weight: 800; text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; }
.journal-review { font-size: 1rem; line-height: 1.6; color: var(--ink-2); margin-top: .75rem; max-width: 46rem;
  border-left: 3px solid var(--ink); padding-left: 1rem; }
.journal-review p { margin: 0 0 .7rem; }
.journal-review p:last-child { margin-bottom: 0; }
@media (max-width: 44rem) {
  .journal-item { grid-template-columns: 2.6rem 48px minmax(0, 1fr); gap: .8rem; }
  .journal-cover .cover { width: 48px; }
  .journal-date .d { font-size: 2rem; }
  .journal-filter { margin-left: 0; }
}

/* ---------- Work page details ---------- */
.spec { margin: .4rem 0 0; display: grid; border-top: 1px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: .15rem; }
.spec dd { margin: 0; font-size: .9rem; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.spec a { text-decoration: none; font-weight: 700; }
.status-line { display: flex; align-items: center; gap: .55rem; font-weight: 600; margin: .3rem 0 1.4rem; }
.section-title { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.1rem; }
.section-title h2 { margin: 0; }
.section-title .link-btn { margin-left: auto; }
.prose { font-size: 1.05rem; line-height: 1.65; max-width: 44rem; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 .9rem; }
.prose ul, .prose ol { margin: 0 0 .9rem; padding-left: 1.3rem; }
.prose blockquote { margin: 0 0 .9rem; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--ink-2); }
.prose h3 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
.prose a { font-weight: 600; }
.prose code { font-size: .9em; }
.review { margin-bottom: 1rem; }
.spoiler { background: var(--ink); color: transparent; cursor: pointer; padding: 0 .15em; transition: color .15s, background .15s;
  -webkit-user-select: none; user-select: none; }
.spoiler.shown, .spoiler:focus { background: var(--paper-2); color: inherit; -webkit-user-select: text; user-select: text; outline: none; }
.md-help { margin-top: .45rem; display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: baseline; }
.journal-review.prose { font-size: 1rem; }
@media (max-width: 44rem) {
  .entry-side { grid-template-columns: 120px 1fr; align-items: start; }
  .spec { margin: 0; }
  .spec > div { grid-template-columns: 1fr; gap: .1rem; padding: .35rem 0; }
}

/* ---------- Members ---------- */
.avatar.big { width: 44px; height: 44px; }
.member-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; padding: 0 0 1rem; margin: -.5rem 0 2rem;
  border-bottom: 1px solid var(--ink); }
.member-id { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 800; font-size: 1.25rem;
  letter-spacing: -.02em; }
.member-nav { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font-weight: 600; }
.member-nav a { text-decoration: none; color: var(--muted); }
.member-nav a[aria-current] { color: var(--ink); border-bottom: 3px solid var(--accent); }
.who-badge { position: absolute; left: .35rem; bottom: .35rem; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--paper); z-index: 1; object-fit: cover; }
.others { list-style: none; padding: 0; margin: 0; }
.others li { padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.others li:first-child { padding-top: 0; }
.other-who { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.other-who .avatar { width: 26px; height: 26px; }
.other-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; font-size: .85rem; font-weight: 500;
  margin: .35rem 0 0 calc(26px + .55rem); }
.other-meta .fav { color: var(--accent); line-height: 0; }
.other-meta .fav .icon { fill: currentColor; }
.other-review { margin: .6rem 0 0 calc(26px + .55rem); font-size: .98rem; }
.mine-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin: 1.25rem 0 .5rem;
  padding: .75rem 1rem; border: 1px solid var(--ink); }
.mine-box > span { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.add-inline { display: flex; gap: .4rem; }
.add-inline select { width: auto; padding-block: .35rem; font-size: .88rem; }
.rate-row.readonly { margin: .5rem 0 1.25rem; }
.fav-big { color: var(--accent); font-size: 1.6rem; line-height: 0; }
.fav-big .icon { fill: currentColor; }
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 0 2.5rem; border-top: 1px solid var(--ink); }
.people > li { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: .6rem; }
.person-id { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.person-id > span { display: grid; gap: .1rem; }
.person-id strong { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.person-year { margin: 0; font-weight: 500; }
.person-now { display: flex; align-items: center; gap: .5rem; }
.person-now .label { margin: 0 .4rem 0 0; }
.person-now .cover.thumb { width: 40px; }
