/* Home's progress parts, Skills, the seal book, Your progress and the weekly report. Colors come only from the
   bead.css tokens (light and dark). Vermilion (--accent, --seal) marks only the step you're on and seals. */

/* ================================================================ Home */

.home-strand { filter: drop-shadow(0 1.6px 1.4px var(--bead-drop)); }
.home-n { font-size: 34px; }

.home-focus {
  width: 100%; margin-top: 16px; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 11px 14px 11px 14px; border-radius: 20px; text-align: left; color: var(--ink); font: inherit; min-height: 44px;
}
.home-focus:active { transform: scale(0.99); }
.hf-bead { display: flex; }
.hf-bead svg { display: block; }
.hf-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.hf-n { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 7px; }
.hf-n b { font-size: 42px; line-height: 1; font-weight: 400; }
.hf-name { font-size: 14px; white-space: nowrap; }
.hf-bands { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.hf-minis { display: flex; gap: 5px; align-items: center; }
.hf-mini { display: inline-flex; flex: none; }
.hf-mini svg { display: block; }
.hf-next { font-size: 11px; color: var(--ink-2); white-space: nowrap; }

.home-proof { width: 100%; margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.hp-head { display: flex; justify-content: space-between; align-items: center; }
.hp-cells { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.hp-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 8px; }
.hp-cell + .hp-cell { padding-left: 11px; border-left: 1px solid var(--line); }
.hp-t { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink); min-width: 0; }
.hp-t > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hp-icon { display: inline-flex; flex: none; color: var(--ink-2); }
.hp-icon svg { display: block; }
.hp-v { display: block; margin-top: 2px; font-size: 27px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-v small { font-size: 14px; color: var(--ink-2); font-family: var(--serif); }
.kind-difficulty .hp-v { display: flex; font-size: 22px; gap: 5px; align-items: center; }
.hp-mat { display: inline-flex; flex: none; }
.hp-mat svg { display: block; filter: drop-shadow(0 1px 1px var(--bead-drop)); }
.hp-f { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-n { font-size: 10.5px; line-height: 1.3; color: var(--ink-2); }
.hp-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: -2px; }
.hp-link { border: none; background: transparent; color: var(--ink); font-size: 13.5px; min-height: 44px; padding: 0 10px 0 0; display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; }
.hp-link svg { display: block; color: var(--ink-3); }
.hp-week { padding: 0 2px 0 10px; margin-right: -2px; font-size: 13px; color: var(--ink-2); }
.hp-wait { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }

/* Locked (no Bead Plus after bead 1): the middle of the strand is the way to Plus, in the drop's place and size. */
.home-unlock {
  position: relative; z-index: 1; width: 116px; height: 116px; border-radius: 50%; border: none; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: var(--ink); color: var(--paper); font: inherit; font-size: 14px; line-height: 1.2;
  box-shadow: 0 2px 3px var(--bead-drop), 0 14px 28px -16px rgba(28, 27, 26, 0.55);
}
.home-unlock .serif { font-size: 21px; line-height: 1.1; }
.home-unlock:active { transform: scale(0.97); }
.home-unlock:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.home-lock { font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 290px; }
.home.is-locked .home-alt { margin: 0 0 -10px; }

/* A yearly plan about to renew, or a monthly plan's yearly reminder: date and price, and Manage. Plain, never alarming. */
.home-banner {
  width: 100%; margin-top: 10px; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px;
  border-radius: 16px; background: var(--card); border: 1px solid var(--card-edge);
}
.home-banner p { margin: 0; flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.4; color: var(--ink); }
.hb-manage {
  flex: none; min-height: 44px; min-width: 44px; padding: 0 12px; border: none; background: transparent; color: var(--ink);
  font: inherit; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px;
}

@media (max-height: 700px) {
  .home-unlock { width: 104px; height: 104px; font-size: 13px; }
  .home-unlock .serif { font-size: 19px; }
  .home-banner { margin-top: 6px; }
}

.nav-seals .seal-icon { display: block; flex: none; }
.nav-count { min-width: 20px; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--paper-3); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; gap: 3px; }
.nav-count small { font-size: 11px; color: var(--ink-2); }

@media (max-height: 700px) {
  .home-focus { margin-top: 14px; }
  .hf-n b { font-size: 36px; }
}
@media (max-width: 380px) {
  .home-focus { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .hf-bead svg { width: 40px; height: 40px; }
  .hf-name { font-size: 13px; }
  .hf-minis { gap: 4px; }
  .hf-mini svg { width: 13px; height: 13px; }
  .hp-v { font-size: 25px; }
  .kind-difficulty .hp-v { font-size: 20px; }
  .hp-t { font-size: 11.5px; gap: 4px; }
  .hp-icon svg { width: 14px; height: 14px; }
  .hp-cell + .hp-cell { padding-left: 9px; }
}

/* ================================================================ Skills */

.skills .page { gap: 0; }
.sk-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 2px; }
.sk-focus { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.sk-focus .v { display: flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
.sk-focus .v b { font-size: 24px; line-height: 1; font-weight: 400; }
.sk-focus svg { display: block; }
.sk-hero { margin-top: 14px; display: flex; align-items: center; gap: 14px; padding: 10px 18px 12px; }
.sk-gain { font-size: 86px; line-height: 0.9; letter-spacing: -2px; display: flex; align-items: baseline; flex: none; }
.sk-gain .plus { color: var(--accent); margin-right: 1px; }
.sk-gain-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sk-gain-t b { font-size: 23px; line-height: 1; font-weight: 400; }
.sk-gain-t span { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }

.sk-board { --gut: 64px; --lad: 300px; display: grid; grid-template-columns: var(--gut) repeat(3, minmax(0, 1fr)); margin-top: 12px; max-width: 100%; }
.sk-lad { grid-column: 1 / -1; grid-row: 1; pointer-events: none; }
.sk-lad .k-ladder { max-width: 100%; }
.sk-gutter { grid-column: 1; grid-row: 1; padding-top: var(--lad); display: flex; flex-direction: column; font-size: 11px; color: var(--ink-3); }
.sk-gutter > span { line-height: 16.5px; white-space: nowrap; }
.sk-gutter .sk-name { line-height: 18px; margin-top: 6px; }
.sk-gutter .sk-g-level { height: 44px; line-height: 44px; margin-top: 1px; }
.sk-col { grid-row: 1; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; border: none; background: transparent; padding: var(--lad) 0 4px; color: var(--ink); font: inherit; min-width: 0; border-radius: 14px; }
.sk-col:active { background: rgba(127, 120, 110, 0.08); }
.sk-name { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; line-height: 18px; margin-top: 6px; white-space: nowrap; }
.new-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--seal); box-shadow: 0 0 6px rgba(194, 64, 44, 0.5); }
/* The dot takes no width: "Stamina" alone already fills a 54px column at 320px. */
.sk-name { position: relative; }
.sk-name .new-dot { position: absolute; right: -9px; top: 6px; }
.sk-wk { font-size: 12px; line-height: 16.5px; color: var(--ink-3); white-space: nowrap; }
.sk-wk.up { color: var(--ink); font-weight: 600; }
.sk-n { font-size: 44px; line-height: 44px; height: 44px; margin-top: 1px; }
.sk-col.fresh .sk-n { color: var(--seal); }
.sk-chip { font-size: 11.5px; line-height: 16.5px; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; letter-spacing: -0.1px; }
.sk-chip svg { display: block; flex: none; }
.sk-from, .sk-nx { font-size: 11px; line-height: 16.5px; color: var(--ink-2); white-space: nowrap; letter-spacing: -0.1px; }
.sk-nx { color: var(--ink-3); }
/* narrow phones: "Bronze at 12" is wider than a 54px column, so it wraps instead of running into the next one */
@media (max-width: 380px) { .sk-nx { white-space: normal; line-height: 13px; } }
.sk-board.no-from .sk-from-word { display: none; }
.sk-nextcard { margin-top: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; }
.sk-next-viz { display: flex; align-items: center; gap: 4px; flex: none; color: var(--ink-3); }
.sk-next-viz svg { display: block; }
.sk-next-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sk-next-txt .t { font-size: 15px; line-height: 1.3; }
.sk-next-txt .m { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.sk-foot { margin-top: 14px; text-align: center; font-size: 13px; }
@media (max-width: 380px) {
  .sk-from-word { display: none; }
  .sk-gain { font-size: 74px; }
  .sk-chip { font-size: 11px; }
}

/* ================================================================ one skill (the ladder at the top) */

.sk1-band { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sk1-band svg { display: block; }
.sk1-what { margin: 10px 0 0; font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.sk1-sci { margin: 4px 0 2px; font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.sk1-climb { display: flex; flex-direction: column; gap: 8px; }
.sk1-climb-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sk1-lv { font-size: 44px; line-height: 1; display: inline-flex; align-items: baseline; gap: 6px; }
.sk1-lv small { font-family: var(--sans); font-size: 13px; color: var(--ink-2); }
.sk1-since { font-size: 13px; color: var(--ink-2); }
.sk1-lad { overflow: visible; }
.sk1-lad > * { max-width: 100%; }
.ci-label-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ex-meta { display: inline-flex; align-items: center; gap: 5px; }
.ex-meta svg { display: block; flex: none; }

/* ================================================================ the seal book */

.seals .page { gap: 0; }
.sb-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.sb-title .title { font-size: 44px; }
.sb-lede { margin-top: 8px; font-size: 14px; }
.sb-next { margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper-2); }
.sb-next-seal { display: flex; flex: none; }
.sb-next-seal svg { display: block; overflow: visible; }
.sb-next-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.35; }
.sb-fam { margin-top: 24px; }
.sb-fam-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sb-fam-h .nm { font-size: 26px; line-height: 1; }
.sb-fam-h .ct { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.sb-fam-sub { margin: 4px 0 12px; font-size: 13px; line-height: 1.35; color: var(--ink-2); text-wrap: pretty; }
.sb-cell { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.sb-sw { position: relative; display: flex; align-items: center; justify-content: center; }
.sb-sw > svg { display: block; overflow: visible; }
.sb-how { font-size: 11px; line-height: 1.25; color: var(--ink-2); text-wrap: balance; max-width: 100%; }
.sb-cell.is-earned .sb-how { color: var(--ink); }
.sb-cell.is-near .sb-how { color: var(--ink); font-weight: 600; }
.sb-new { position: absolute; top: -6px; right: -10px; height: 15px; padding: 0 5px; border-radius: 8px; background: var(--seal); color: #fff; font-size: 9px; font-weight: 600; letter-spacing: 0.6px; line-height: 15px; text-transform: uppercase; }
.sb-missing { display: block; border-radius: 6px; border: 1px dashed var(--slot); }

/* levels: one row per skill, Easy … Master across, what the next one takes under it */
.sb-levels { display: flex; flex-direction: column; gap: 16px; }
.sb-lv-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 7px; }
.sb-lv-h b { font-weight: 500; font-size: 15px; }
.sb-lv-h span { font-size: 12px; color: var(--ink-2); }
.sb-lv-row { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 2px; }
.sb-lv-row .sb-how { white-space: nowrap; letter-spacing: -0.1px; }
.sb-lv-foot { margin: 7px 0 0; font-size: 13px; line-height: 1.35; color: var(--ink); }

.sb-grid { display: grid; gap: 16px 8px; align-items: end; }

/* the big kinds: strands (six, three to a row), streaks (four in a row: 7 days medium, 30 and up big) */
.sb-strand { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
.sb-streak { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 6px; }
.sb-cell.is-big .sb-how { font-size: 12px; line-height: 1.3; }
.sb-cell.is-big.is-earned .sb-how { font-weight: 500; }

/* the everyday ones start below a hairline: your ink, days trained, rounds, challenges */
.sb-fam.fam-ink { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.sb-ink { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
.sb-days { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 6px; }
.sb-rounds, .sb-explore { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }

.sb-progress { margin-top: 26px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; min-height: 56px; text-align: left; color: var(--ink); font: inherit; }
.sb-progress:active { transform: scale(0.99); }
.sb-progress svg { display: block; flex: none; color: var(--ink-3); }
.sb-progress-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sb-progress-t b { font-weight: 500; font-size: 16px; }
.sb-progress-t span { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }

/* ================================================================ your progress (one row per exercise; the weekly
   report draws the same rows) */

.progress .page { gap: 0; }
.pg-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pg-count { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.pg-intro { margin-top: 8px; font-size: 14px; line-height: 1.45; }
.pg-rows { display: flex; flex-direction: column; margin-top: 14px; border-top: 1px solid var(--line); }
.pg-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 11px 0 12px; border-bottom: 1px solid var(--line); align-items: start; }
.pg-icon { width: 36px; height: 36px; border-radius: 11px; background: var(--paper-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.pg-icon svg { display: block; }
.pg-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 1px; }
.pg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pg-name { font-weight: 500; font-size: 15px; line-height: 1.3; }
.pg-steps { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.pg-steps.up { color: var(--ink); font-weight: 600; }
.pg-diff { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 6px; font-size: 13.5px; line-height: 1.35; }
.pg-step { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pg-step svg { display: block; flex: none; filter: drop-shadow(0 1px 1px var(--bead-drop)); }
.pg-arrow { display: block; color: var(--ink-3); flex: none; }
.pg-note { font-size: 12.5px; line-height: 1.35; color: var(--ink-2); }
.pg-same { font-size: 12.5px; line-height: 1.35; color: var(--ink); }
.pg-row.is-new .pg-icon { color: var(--ink-2); }
.pg-row.is-locked .pg-icon { color: var(--ink-3); background: transparent; border-style: dashed; }
.pg-row.is-locked .pg-icon svg { opacity: 0.45; }
.pg-row.is-locked .pg-name { color: var(--ink-3); font-weight: 400; }
.pg-row.is-locked .pg-note { color: var(--ink-3); }
.pg-noicon { display: block; }
.pg-foot { margin-top: 18px; }
/* the rows under the three skills (v3 phase 2.3) */
.pg-group { margin-top: 18px; }
.pg-group-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pg-group-h .serif { font-size: 24px; line-height: 1; }
.pg-group-n { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.pg-group .pg-rows { margin-top: 8px; }

/* the skill page's exercise rows carry the same icons */
.skill .ex-name { display: inline-flex; align-items: center; gap: 8px; }
.ex-icon { display: inline-flex; flex: none; color: var(--ink); }
.ex-icon svg { display: block; }
.ex-row.locked .ex-icon { color: var(--ink-3); }
.ex-row.locked .ex-icon svg { opacity: 0.5; }

/* ================================================================ the weekly report */

.report .page { gap: 0; }
.report .eb { margin-top: 2px; }
.rp-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 4px; }
.rp-title .title { font-size: 46px; }
.rp-beads { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.rp-stats { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 10px; margin-top: 10px; padding: 10px 0 11px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rp-stats > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rp-stats > div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.rp-stats .v { font-size: 38px; line-height: 0.95; }
.rp-stats .k { font-size: 11.5px; line-height: 1.3; color: var(--ink-2); }
.rp-sec { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.rp-sec .serif { font-size: 24px; line-height: 1; }
.rp-sec.small .serif { font-size: 20px; }
.rp-count { font-size: 13px; color: var(--ink-2); }
.rp-wait { margin-top: 8px; font-size: 14px; }
/* the three skills this week: name with its band's bead, the level, what it gained */
.rp-skills { display: flex; flex-direction: column; margin-top: 4px; }
.rp-skill { display: grid; grid-template-columns: minmax(0, 1fr) auto 118px; gap: 12px; align-items: center; min-height: 48px; padding: 4px 0; border: none; border-bottom: 1px solid var(--line); background: transparent; text-align: left; color: var(--ink); font: inherit; }
.rp-skill:active { background: var(--paper-3); }
.rp-sk-n { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.rp-sk-n svg { display: block; flex: none; }
.rp-sk-v { font-size: 26px; line-height: 1; }
.rp-sk-g { font-size: 12.5px; color: var(--ink-2); text-align: right; white-space: nowrap; }
.rp-sk-g.up { color: var(--ink); font-weight: 600; }
.rp-moved { display: flex; flex-direction: column; }
.rp-moved .pg-rows { margin-top: 10px; }
.rp-link { align-self: flex-start; border: none; background: transparent; color: var(--ink); font-size: 13.5px; min-height: 44px; padding: 0; display: inline-flex; align-items: center; gap: 6px; }
.rp-link svg { display: block; color: var(--ink-3); }
.rp-seals { display: flex; flex-direction: column; gap: 8px; }
.rp-seal-row { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rp-seal { display: inline-flex; align-items: center; gap: 8px; border: none; background: transparent; padding: 0; min-height: 44px; font-size: 13px; color: var(--ink); text-align: left; }
.rp-seal svg { display: block; flex: none; }
.rp-seal > span { display: flex; flex-direction: column; line-height: 1.3; }
.rp-seal b { font-weight: 500; }
.rp-seal.is-big { flex-basis: 100%; }
.rp-seal.is-big b { font-size: 14.5px; }
/* the journal's day drawer: a big seal's line is a little heavier */
.day-seal.is-big > span { font-weight: 500; }
.rp-seal small { font-size: 11px; color: var(--ink-2); }
.rp-ahead { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.rp-ahead p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.rp-ahead b { font-weight: 500; color: var(--ink); font-size: 14px; }
.rp-ahead-who { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.rp-ahead-who svg { display: block; }
.rp-lad > * { max-width: 100%; }
.rp-foot { margin-top: 14px; }
@media (max-width: 380px) {
  .rp-stats .v { font-size: 34px; }
  .sb-days, .sb-streak { gap: 14px 4px; }
}

/* ================================================================ All exercises (screens/library.js) */
/* Scoped to .page.lib; the preview itself (.ex-preview) is styled in library.css. */

.page.lib { gap: 0; padding-top: calc(var(--safe-top) + 8px); }
.page.lib .lib-title { margin-top: 6px; }
.page.lib .lib-sub { margin-top: 8px; font-size: 14px; }
.lib-group { margin-top: 26px; }
.lib-gh { display: flex; align-items: baseline; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.lib-list { list-style: none; margin: 0; padding: 0; }
.lib-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; }
.lib-row + .lib-row { border-top: 1px solid var(--line); }
.lib-prev { display: flex; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.lib-prev > * { flex: none; }
.lib-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 1px; }
.lib-nm { font-size: 21px; line-height: 1.1; }
.lib-t p { margin: 0; }
.lib-what { font-size: 14px; line-height: 1.4; color: var(--ink); }
.lib-src { font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.lib-unlock { margin-top: 3px !important; font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.lib-unlock.on { color: var(--ink); }
.lib-unlock.on::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--ink); vertical-align: middle; }
.page.lib .lib-foot { margin-top: 22px; }
@media (max-width: 380px) {
  .lib-row { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .lib-prev { width: 56px; height: 56px; }
  .lib-prev > * { transform: scale(0.875); transform-origin: 0 0; }
  .lib-nm { font-size: 19px; }
}
