/* ==========================================================================
   Stay Frosty — Frost Glass · screens.css
   Screen compositions (SPEC §7, §9): the Meta hero card, squad shelf, balance
   watch, map entry and banner, export and invite rows, squad grid and tiles,
   top builders, forum rows, thread posts and composer, news logbook, tip jar,
   empty states, share sheet, level-up hero and patch review, sheet blocks,
   player card and setup sheet, legal line. Tokens only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Full-bleed rows (same rule as ledger.css): a row bleeds to the edge of what
   it sits in (the screen gutter, or a panel's padding) unless a .list already
   did. Rows pad by --row-x, so their text stays on the --g line.
   -------------------------------------------------------------------------- */
.trow,
.nrow,
.invite,
.export-row:not(.grow),
.watch > *,
.brow,
.xs-act { box-sizing: border-box; width: 100%; }
:not(:is(.list, .watch, .lu-prows, .xs-actions, .xs-list)) > :is(.trow, .nrow, .export-row:not(.grow), .brow, .xs-act, .xs-big, .xs-btn, button.xs-row) {
  width: calc(100% + var(--row-x) * 2);
  margin-inline: calc(var(--row-x) * -1);
}
/* containers that bleed as a whole; their rows carry the inset */
.watch:not(.list),
.lu-prows:not(.list) { margin-inline: calc(var(--row-x) * -1); }
.watch > *,
.lu-prows > * { padding-inline: var(--row-x); }

/* shared: a row pressed state, a frost tint (instant in, 200ms out) */
:is(.trow, .invite, .export-row, .watch > button, .brow:is(button), .irow:is(button), .xs-act, .xs-big, .xs-btn, .xs-row, .lu-prow, .nrow-chg > button) {
  transition: background-color var(--dur-state) var(--ease-out);
}
:is(.trow, .invite, .export-row:not(.grow), .watch > button, .brow:is(button), .irow:is(button), .xs-act, .xs-big, .xs-btn, .xs-row, .lu-prow, .nrow-chg > button):active {
  background-color: rgba(92, 200, 255, .08);
  transition: none;
}
/* a highlighted panel (the Meta hero, the player card identity): the hood's frost rim on the whole perimeter,
   brightest along the top (the level-up dialog scrolls, so it draws its brighter ring with a shadow instead) */
:is(.hero-sec, .pc-id)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background: var(--edge-frost-hi);
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
/* the first panel under a chip row or a segmented control: the row's own padding is most of the gap */
#view > :is(.chips, .seg) + :is(.sec, .list) { margin-top: 6px; }
#view > .seg + :is(.sec, .list) { margin-top: 8px; }

/* --------------------------------------------------------------------------
   9.6 Meta — the hero card (SPEC §9.6): a highlighted panel (radius 24, the
   hood's rim all round) whose plate runs full width along its top, then the
   name, rating, gauge and compact ledger. The whole card is one button.
   -------------------------------------------------------------------------- */
#view > .sec.hero-sec {
  margin-top: 12px;   /* the 12pt panel rhythm: clear of the Balanced pill's glow */
  padding: 0;
  border-radius: var(--r-hero);
  overflow: hidden;
}
.hero {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0 var(--pad) 16px;
  border: 0;
  border-radius: inherit;
  background: none;
  box-shadow: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
/* the reticle corners clear the hero card's 24pt rounded rim */
.hero > .paper::after { inset: 10px; }
.hero > .paper {
  width: calc(100% + var(--pad) * 2);
  margin: 0 calc(var(--pad) * -1);
  border-radius: var(--r-hero) var(--r-hero) 14px 14px;
}
.hero:active { background: rgba(92, 200, 255, .04); }

/* catalogue line + tier */
:is(.hero-cat, .hero-row, .hero-meta) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  min-width: 0;
}
:is(.hero-cat, .hero-row, .hero-meta) > :first-child,
.hero :is(.serial, .catline) {
  min-width: 0;
  /* words in Archivo; only the catalogue code ("AR-01", .code) and digit runs read as data */
  font: 500 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  white-space: normal;          /* wraps at larger text: the pick rate is never cut, and never runs under the tag */
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
:is(.hero-cat, .hero-row, .hero-meta) > :first-child { flex: 1 1 auto; }
:is(.hero-cat, .hero-row, .hero-meta) > .tier { flex: none; align-self: flex-start; }

/* name + why on the left, the rating readout on the right */
:is(.hero-id, .hero-head) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: end;
  margin-top: 4px;
}
:is(.hero-id, .hero-head) > :not(:is(.hero-rt, .hero-rating, .readout)) { grid-column: 1; min-width: 0; }
:is(.hero-id, .hero-head) > :is(.hero-rt, .hero-rating, .readout) { grid-column: 2; grid-row: 1 / span 3; align-self: end; }
:is(.hero-name, .hero h2, .hero h1) {
  margin: 0;
  font: 800 var(--fs-hero)/var(--lh-hero) var(--font-ui);
  font-stretch: var(--wd-cond);
  letter-spacing: -0.4px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
:is(.hero-why, .hero-sub) {
  display: block;
  margin-top: 4px;
  font: 400 var(--fs-callout)/var(--lh-callout) var(--font-ui);
  color: var(--ink-2);
}
:is(.hero-why, .hero-sub) :is(svg, .tri) { width: 7px; height: 7px; }
:is(.hero-rt, .hero-rating, .sh-rt) {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
:is(.hero-rt, .hero-rating, .sh-rt) > :is(b, strong, .v, :first-child) {
  font: 700 var(--fs-dxl)/var(--lh-dxl) var(--font-data);
  font-stretch: var(--wd-cond);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-shadow: 0 0 18px rgba(92, 200, 255, .35);
}
:is(.hero-rt, .hero-rating, .sh-rt) > :is(small, span, .l):not(:first-child) {
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
  white-space: nowrap;
}
.hero .gauge { margin-top: 16px; }
.hero .bl { margin-top: 16px; }
.hero .bl-total { margin-top: 4px; }

/* key figures: two columns, dataM values with captions under them */
:is(.hero-figs, .figs, .kfig) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  margin-top: 12px;
}
:is(.hero-figs, .figs, .kfig).three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
:is(.hero-figs, .figs, .kfig) > * { display: flex; flex-direction: column; gap: 0; min-width: 0; }
:is(.hero-figs, .figs, .kfig) > * > :is(b, strong, .v, :first-child) {
  font: 500 var(--fs-dm)/var(--lh-dm) var(--font-data);
  font-stretch: var(--wd-semi);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
:is(.hero-figs, .figs, .kfig) > * > :is(span, small, .l):not(:first-child) {
  font: 500 var(--fs-caption)/var(--lh-caption) var(--font-ui);
  color: var(--ink-2);
}
/* the unit inside a figure ("296 ms"): a spaced, quieter dataS suffix */
.hero-figs b small { font: 500 var(--fs-ds)/1 var(--font-data); font-stretch: var(--wd-semi); color: var(--ink-3); }
:is(.hero-perks, .perkline) {
  display: block;               /* a span inside the hero button: block so the 12px gap above applies */
  margin-top: 12px;
  font: 400 var(--fs-subhead)/var(--lh-subhead) var(--font-ui);
  color: var(--ink);
}
:is(.hero-perks, .perkline) > :is(.cap, .l, small, span:first-child) {
  display: block;
  font: 500 var(--fs-caption)/var(--lh-caption) var(--font-ui);
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   6.1 Squad's top rated — .shelf (scroll-snap, bleeds to the edges)
   -------------------------------------------------------------------------- */
.shelf {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--row-x);
  margin: 12px calc(var(--row-x) * -1) 0;
  padding: 2px var(--row-x) 4px;
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf > * {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  scroll-snap-align: start;
  cursor: pointer;
}
.shelf > * > .paper { flex: none; }
.shelf > * > :is(b, strong, .shelf-t, .title):not(.paper *) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;   /* a third line keeps the gist at larger text sizes */
  margin-top: 8px;
  font: 600 var(--fs-headline)/var(--lh-headline) var(--font-ui);
  color: var(--ink);
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.shelf > * > :is(.shelf-r, .rate, .meta, span:not(.paper):not(.plate-no):not(.stars)) {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin-top: 2px;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shelf :is(.shelf-r, .rate) :is(b, .rate-v) {
  font: 500 var(--fs-ds)/var(--lh-ds) var(--font-data);
  font-stretch: var(--wd-semi);
  color: var(--ink);
}
/* Dynamic Type: the rating line wraps instead of cutting the author. The author's "· " (.54em) is pulled into
   the gap after the count and handed back as the count's margin, so on one line nothing moves; when the author
   wraps, the separator falls left of the line box and the row's overflow clips it (no line starts with "·"). */
.shelf > * > .shelf-r { flex-wrap: wrap; row-gap: 0; white-space: normal; text-overflow: clip; }
.shelf > * > .shelf-r > span:nth-last-child(2) { margin-right: .54em; }
.shelf > * > .shelf-r > span:last-child:not(:first-child) { margin-left: -.54em; }

/* --------------------------------------------------------------------------
   6.1 Balance watch — 56px ledger rows with a trailing sparkline
   -------------------------------------------------------------------------- */
.watch { margin-top: 0; }
.watch > :is(button, a, .watch-row, .wline):not([data-sx="patches"]):not(.watch-more) {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: center;
  min-height: 56px;
  margin: 0;
  padding-block: 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.watch > * + *::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--row-x);
  right: 0;
  height: var(--hair);
  background: rgba(150, 215, 255, .08);
  pointer-events: none;
}
.watch > :is(button, a, .watch-row, .wline) > :last-child:not(:first-child) { grid-column: 2; grid-row: 1 / span 2; }
.watch > :is(button, a, .watch-row, .wline) > :not(:last-child) { grid-column: 1; min-width: 0; }
.watch :is(.watch-n, .wl-n, b:first-child) {
  font: 600 var(--fs-headline)/var(--lh-headline) var(--font-ui);
  font-stretch: var(--wd-semi);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.watch :is(.watch-c, .wl-c, b:first-child + span) {
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* "All patch notes ›" */
:is(.watch-more, [data-sx="patches"]):not(.chip):not(.menu-item) {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin: 0;
  border: 0;
  background: none;
  font: 400 var(--fs-body)/var(--lh-headline) var(--font-ui);
  color: var(--blue);
  text-align: left;
  cursor: pointer;
  transition: opacity var(--dur-press) var(--ease-out);
}
:is(.watch-more, [data-sx="patches"]):not(.chip):not(.menu-item):active { opacity: .5; }
:is(.watch-more, [data-sx="patches"]) svg { width: 7px; height: 12px; }

/* --------------------------------------------------------------------------
   6.3 Arsenal › Maps — map entry, range card heading, guide picks
   -------------------------------------------------------------------------- */
/* "‹ Back to M4" (arrived from a weapon sheet's Best maps): its 44pt hit area clears the segment and the chips */
.map-back { display: flex; width: fit-content; margin: 12px 0 8px; }
.map-back > svg { margin-left: -2px; }
.mapentry { margin-top: 12px; }
/* the map's skyline banner (Art.mapThumb, banner): full panel width, a plate of its own */
.me-banner {
  display: block;
  margin: -2px calc(var(--pad) * -1 + 4px) 12px;
  border-radius: var(--r-plate);
  overflow: hidden;
  box-shadow: var(--sh-plate);
}
.me-banner > svg { display: block; width: 100%; height: auto; aspect-ratio: 640 / 180; }
.mapentry :is(h2, .me-name, .map-name) {
  margin: 0;
  font: 800 var(--fs-title1)/var(--lh-title1) var(--font-ui);
  font-stretch: var(--wd-cond);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.mapentry :is(.me-sub, .map-sub, h2 + p) {
  margin-top: 4px;
  font: 400 var(--fs-callout)/var(--lh-callout) var(--font-ui);
  color: var(--ink-2);
}
.mapentry :is(.me-desc, .map-desc, .maplayout) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  margin-top: 12px;
  font: 400 var(--fs-body)/var(--lh-body) var(--font-ui);
  color: var(--ink);
}
.mapentry:is(.open, .expanded) :is(.me-desc, .map-desc, .maplayout),
:is(.me-desc, .map-desc, .maplayout):is(.open, .expanded) {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.mapentry:is(.open, .expanded) :is(.me-more, .more) { display: none; }
.mapentry :is(h3, .me-h) {
  margin: 20px 0 8px;
  font: 600 var(--fs-headline)/var(--lh-headline) var(--font-ui);
  color: var(--ink);
}
/* guide picks: up to three 100×50 mini plates with a name under each */
:is(.picks, .guide-picks) {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(var(--row-x) * -1);
  padding: 2px var(--row-x);
}
:is(.picks, .guide-picks)::-webkit-scrollbar { display: none; }
:is(.picks, .guide-picks) > * {
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
:is(.picks, .guide-picks) .paper {
  width: 100px;
  height: 50px;
  aspect-ratio: auto;
  padding: 4px 6px;
  border-radius: var(--r-thumb);
  background:
    var(--a-spot),
    repeating-linear-gradient(0deg, transparent 0 11px, var(--a-rule) 11px 12px),
    repeating-linear-gradient(90deg, transparent 0 11px, var(--a-rule) 11px 12px),
    var(--a-grad);
}
:is(.picks, .guide-picks) .paper::after { display: none; }
:is(.picks, .guide-picks) .paper :is(.fig, .note) { display: none; }
:is(.picks, .guide-picks) > :active .paper { opacity: .85; }
:is(.picks, .guide-picks) > * > :not(.paper) {
  font: 600 var(--fs-subhead)/var(--lh-subhead) var(--font-ui);
  font-stretch: var(--wd-semi);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Export row (Arsenal end of list; Intel group row) and Invite row (Squad)
   leading glyph · two-line text · trailing glyph or action
   -------------------------------------------------------------------------- */
:is(.export-row:not(.grow), .invite) {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: center;
  min-height: 56px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 8px var(--row-x);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.export-row:not(.grow) { border-top: var(--hair) solid rgba(150, 215, 255, .08); }
.export-row:not(.grow):first-child { border-top: 0; }
/* the invite row is a frost panel of its own (mockup screen 1), the "Copy" capsule its visual end */
button.invite.invite {
  min-height: 64px;
  margin: 12px calc(var(--panel-x) - var(--g)) 0;
  width: calc(100% + (var(--g) - var(--panel-x)) * 2);
  padding: 10px var(--pad);
  border-radius: var(--r-panel);
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bot));
  box-shadow: var(--edge-frost);
}
.invite > svg:first-child { width: 26px; height: 26px; filter: var(--glow-glyph); }
:is(.export-row:not(.grow), .invite) > svg:first-child,
:is(.export-row:not(.grow), .invite) > .ico:first-child { grid-column: 1; grid-row: 1 / span 2; width: 24px; height: 24px; }
.export-row:not(.grow) > svg:first-child { color: var(--blue); }
.invite > svg:first-child { color: var(--blue); }
:is(.export-row:not(.grow), .invite) > :not(svg):not(:last-child),
:is(.export-row:not(.grow), .invite) > :not(:first-child):not(:last-child) { grid-column: 2; min-width: 0; }
:is(.export-row:not(.grow), .invite) > :last-child:not(:first-child) { grid-column: 3; grid-row: 1 / span 2; justify-self: end; }
.export-row:not(.grow) > svg:last-child:not(:first-child) { width: 22px; height: 22px; color: var(--blue); }
:is(.export-row:not(.grow), .invite) :is([data-export-label], .er-t, .inv-t, b, strong):not(:is(.er-s, .inv-s, small) *) {
  display: block;
  font: 600 var(--fs-headline)/var(--lh-headline) var(--font-ui);
  color: var(--ink);
}
:is(.export-row:not(.grow), .invite) :is(small, .er-s, .inv-s, .sub) {
  display: block;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}
.invite > :is(.link, .btn.plain, .inv-a):last-child {
  font: 600 var(--fs-headline)/var(--lh-headline) var(--font-ui);
  color: var(--blue);
}
.invite:active { background: linear-gradient(180deg, var(--panel-top), var(--panel-bot)); }
.invite:active > .btn.tint { background: rgba(92, 200, 255, .16); }
.export-row.busy svg:last-child { color: var(--ink-3); }

/* inside an inset group the export row is an ordinary act row with a trailing ".xlsx" */
.grow.export-row > svg:first-child { width: 22px; height: 22px; }
.grow.export-row > :is(.d-s, small, .er-x):last-child {
  margin-left: auto;
  font: 500 var(--fs-ds)/var(--lh-ds) var(--font-data);
  font-stretch: var(--wd-semi);
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   6.5 Squad — list toolbar, loadout grid, tiles, top builders
   -------------------------------------------------------------------------- */
:is(.toolbar, .ltool, .listbar) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-top: 8px;
}
:is(.toolbar, .ltool, .listbar) > :first-child:not(:only-child) {
  min-width: 0;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}
:is(.toolbar, .ltool, .listbar) > :last-child { margin-left: auto; margin-right: -8px; }
:is(.toolbar, .ltool, .listbar) .nav-pull { font-size: var(--fs-subhead); }
/* Squad: the sort pull-down sits in the nav bar, so the chips lead the list, their pills 12px under the
   invite row's hairline (the chip row carries 6px of padding). A filtered list states its count in one
   footnote line under the chips ("1 of 3 · Assault"), so the chip row never moves. */
.sq-list { margin-top: 8px; }
.sq-list > .toolbar { min-height: 0; margin-top: 6px; }
.sq-list > .toolbar > :only-child {
  min-width: 0;
  margin: 0;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}

/* tiles: a plate card with its text below, no outer panel (SPEC §7.22) */
.lgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 20px;
  margin-top: 10px;
}
@media (max-width: 340px) { .lgrid { column-gap: 10px; } }
@media (min-width: 428px) { .lgrid { column-gap: 14px; } }
.ltile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.ltile > .paper { flex: none; }
.ltile :is(.ltile-t, .lt-t, .title),
.ltile > :is(b, strong) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-top: 10px;
  font: 600 var(--fs-headline)/var(--lh-headline) var(--font-ui);
  color: var(--ink);
  overflow-wrap: anywhere;
}
/* every title reserves two lines (as App Store grids do), so a one-line title never knocks its neighbour's
   weapon line, stars and monogram out of line; only a title that really needs three lines grows */
.ltile .ltile-t { min-height: calc(2em * var(--lh-headline)); }
/* a tile alone in its row has no neighbour to line up with (the grid is fixed at two columns) */
.lgrid > .ltile:last-child:nth-child(odd) .ltile-t { min-height: 0; }
.ltile :is(.ltile-s, .lt-s, .sub) {
  display: block;                /* weapon on one line, "Long range · Lv 75" on the next: every tile the same height */
  margin-top: 2px;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Dynamic Type: at larger text the lines wrap rather than cut "Long ran…" ("Lv 75" is kept whole by an nbsp) */
.ltile .ltile-s { white-space: normal; overflow: visible; text-overflow: clip; }
.ltile .ltile-s + .ltile-s { margin-top: 0; }
/* Martian Mono gives the period a full cell: pull it in so star averages read "4.5", not "4 . 5" */
.dp { margin-inline: -.25em; }
.ltile :is(.ltile-r, .lt-r, .rate) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  min-width: 0;
  margin-top: 4px;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
  white-space: nowrap;
}
.ltile :is(.ltile-r, .lt-r, .rate) > .cmt { margin-left: auto; }   /* comment count sits apart from the review count */
.ltile :is(.ltile-r, .lt-r, .rate) > .cmt svg { margin-left: 0; }
.ltile :is(.ltile-r, .lt-r, .rate) :is(b, .rate-v) {
  font: 500 var(--fs-ds)/var(--lh-ds) var(--font-data);
  font-stretch: var(--wd-semi);
  color: var(--ink);
}
.ltile :is(.ltile-r, .lt-r, .rate) svg:not(.stars) { flex: none; width: max(13px, 1em); height: max(13px, 1em); margin-left: 6px; color: var(--ink-2); }
.ltile :is(.ltile-by, .lt-by, .by, .author) {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 6px;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}
.ltile :is(.ltile-by, .lt-by, .by, .author) > :not(.av) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(.unrated, .not-rated) {
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-3);
}
/* comment count glyph */
.cmt {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  font: 500 var(--fs-ds)/var(--lh-ds) var(--font-data);
  font-stretch: var(--wd-semi);
  color: var(--ink-2);
}
.cmt svg { flex: none; width: 13px; height: 13px; }

/* top builders */
.board { margin-top: 0; }
.board .colhead,
.colhead.builders {
  grid-template-columns: 24px 20px minmax(0, 1fr) 64px 56px;
  column-gap: 8px;
}
.board .colhead > :first-child,
.colhead.builders > :first-child { grid-column: 1 / 4; }
.brow {
  position: relative;
  display: grid;
  grid-template-columns: 24px 20px minmax(0, 1fr) 64px 56px;
  column-gap: 8px;
  align-items: center;
  min-height: 44px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 4px var(--row-x);
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.brow + .brow::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(var(--row-x) + 52px);
  right: 0;
  height: var(--hair);
  background: rgba(150, 215, 255, .08);
}
/* Top builders' column head sits in its section panel: not sticky (the panel is short), no glass */
.board .colhead { position: relative; top: auto; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brow > :first-child {
  font: 500 var(--fs-ds)/var(--lh-ds) var(--font-data);
  font-stretch: var(--wd-semi);
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  background: none;
  padding: 0;
}
.brow > :is(b, .brow-n) {
  min-width: 0;
  font: 600 var(--fs-headline)/var(--lh-headline) var(--font-ui);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brow > :is(:nth-child(n+4), em, .num) {
  font: 500 var(--fs-dm)/var(--lh-dm) var(--font-data);
  font-stretch: var(--wd-semi);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}
.brow > .stars { display: none; }

/* --------------------------------------------------------------------------
   6.8 Forum — thread rows
   -------------------------------------------------------------------------- */
.trow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 72px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 12px var(--row-x);
  border: 0;
  border-radius: 0;
  background-color: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.trow::after {
  content: '';
  position: absolute;
  left: var(--row-x);
  right: 0;
  bottom: 0;
  height: var(--hair);
  background: rgba(150, 215, 255, .08);
  pointer-events: none;
}
.list > .trow:first-child, .list > .nrow:first-child { border-radius: var(--r-panel) var(--r-panel) 0 0; }
.list > .trow:last-child, .list > .nrow:last-child { border-radius: 0 0 var(--r-panel) var(--r-panel); }
.list > .group-label:first-child { padding-top: 14px; }
.trow:last-child::after,
.trow:not(:has(+ .trow))::after { display: none; }
.trow > :is(.trow-h, .trow-cat):is(:first-child, .hit:first-child + *),
.trow > .tcat {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}
.trow :is(.trow-h, .trow-cat) svg { flex: none; width: 12px; height: 12px; color: var(--ink-2); }
.trow :is(.tcat) { font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--ink-2); text-transform: none; }
.trow :is(.tbadge) {
  padding: 0;
  border-radius: 0;
  background: none;
  font: 600 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}
.trow :is(.tbadge).bad { color: var(--red); }
.trow > :is(.trow-t, b, h3) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;   /* a third line keeps the gist at larger text sizes */
  overflow: hidden;
  margin: 0;
  font: 600 var(--fs-headline)/var(--lh-headline) var(--font-ui);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.trow.locked > :is(.trow-t, b, h3) { color: var(--ink-2); }
.trow > :is(.trow-f, .trow-by) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 4px;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}
.trow > :is(.trow-f, .trow-by) > :is(.who, span:not(.av):not(.mod-l):not(.modtag):not(.trow-n):not(.ago)) {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trow :is(.trow-n, .count-c) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  margin-left: auto;
  font: 500 var(--fs-ds)/var(--lh-ds) var(--font-data);
  font-stretch: var(--wd-semi);
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.trow :is(.trow-n, .count-c) svg { width: 14px; height: 14px; }
.trow .trow-n .lr { font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); font-stretch: normal; }
/* §5.22 author line (Social.authorLine): name footnote 600 --ink, plain "Mod", "· 4h" in dataS --ink-3 */
small.by { font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--ink-2); }
.trow-f > small.by { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.by > b { font-weight: 600; color: var(--ink); }
.by > .mod-l { color: var(--ink-2); }
.by > .d-s { color: var(--ink-2); }
/* posts keep the same author line as rows (the post header's own name rule is for older markup) */
:is(.post-h, .author-row) .by > b { font: 600 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); }
/* hidden by moderation (mods only) */
.trow.hidden-post,
.hidden-post.trow {
  background-image: var(--hatch-hidden);
  opacity: 1;
}
:is(.hid-note, .hidden-note) {
  margin-top: 4px;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--red);
  text-transform: none;
}
.forum-rules,
.rules { margin-top: 16px; font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--ink-3); text-align: left; }

/* --------------------------------------------------------------------------
   Thread sheet — posts, author row, replies, composer
   -------------------------------------------------------------------------- */
/* Thread (SPEC §7.23): the original post is a panel; the replies are rows in one panel with frost hairlines */
.post {
  position: relative;
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.post + .post { border-top: var(--hair) solid rgba(150, 215, 255, .08); }
#threadBody > .post.op {
  margin: 4px calc(var(--panel-x) - var(--g)) 0;
  padding: 14px var(--pad) 16px;
  border-radius: var(--r-panel);
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bot));
  box-shadow: var(--edge-frost);
}
.rep-list {
  margin: 0 calc(var(--panel-x) - var(--g));
  padding: 0 var(--pad);
  border-radius: var(--r-panel);
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bot));
  box-shadow: var(--edge-frost);
}
.post :is(.post-cat, .tcat) {
  display: flex;
  align-items: center;
  gap: 4px;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
  text-transform: none;
}
.post :is(.sh-h1, h1, h2) { margin: 4px 0 0; overflow-wrap: anywhere; }
.post h2:not(.sh-h1) { font: 700 var(--fs-title2)/var(--lh-title2) var(--font-ui); color: var(--ink); }
:is(.post-h, .author-row) {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 12px;
}
.post > :is(.post-h, .author-row):first-child { margin-top: 0; }
:is(.post-h, .author-row) .av { width: 28px; height: 28px; }
:is(.post-h, .author-row) > div:not(.post-acts),
:is(.post-h, .author-row) > .who-w {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
:is(.post-h, .author-row) :is(b, .who) {
  display: inline;
  min-width: 0;
  font: 600 var(--fs-subhead)/var(--lh-subhead) var(--font-ui);
  color: var(--ink);
  overflow-wrap: anywhere;
}
:is(.post-h, .author-row) :is(span:not(.av):not(.mod-l):not(.modtag), time, .ago) {
  font: 500 var(--fs-ds)/var(--lh-ds) var(--font-data);
  font-stretch: var(--wd-semi);
  color: var(--ink-2);
}
.post-acts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  margin-left: auto;
}
.post-acts :is(.link) { font-size: var(--fs-subhead); line-height: var(--lh-subhead); }
.post-acts .icon-btn { margin: -10px -11px -10px -6px; color: var(--ink-2); }
/* "Reported" is the lasting sign a report went through: a readable status, not a 40% ghost */
.post-acts .link:disabled { opacity: 1; color: var(--ink-3); }
/* compose sheet: a failed Post names the field under its group */
#csheet .group-f.err { color: var(--red); }
.post > p,
.post :is(.post-b, .body) {
  margin: 10px 0 0;
  font: 400 var(--fs-body)/var(--lh-body) var(--font-ui);
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.post.gone,
.post :is(.gone, .removed) {
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  font-style: normal;
  color: var(--ink-3);
}
.post.hidden-post { background-image: var(--hatch-hidden); opacity: 1; }
:is(.rep-h, .replies-h) {
  margin: 20px 0 0;
  padding-bottom: 6px;
  font: 600 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}

/* composer in the sticky sheet bar */
.composer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  column-gap: 8px;
  align-items: end;
  margin: 0;
  padding: 0;
  background: none;
}
.composer :is(textarea, .ta, #replyText) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;             /* the last control under 44pt */
  max-height: max(120px, 5.5em);  /* about four lines at any text size */
  margin: 0;
  padding: 11px 16px;
  border: 0;
  border-radius: 22px;
  background: var(--glass-faux);
  box-shadow: var(--spec), inset 0 0 0 1px rgba(120, 190, 255, .14);
  /* 17 × 1.294 = 22px at the default size (a 44pt field); the line height scales with Dynamic Type */
  font: 400 max(17px, 1rem)/var(--lh-headline) var(--font-ui);
  color: var(--ink);
  caret-color: var(--blue);
  resize: none;
  overflow-y: auto;
  -webkit-appearance: none;
  appearance: none;
}
/* the field is --surface-2, where --ink-3 falls to 4.35:1 in dark (§2) */
.composer :is(textarea, .ta, #replyText)::placeholder { color: var(--ink-2); opacity: 1; }
.composer > :is(button, .send):last-child {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 0 4px;              /* centred on a one-line 44px field */
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent-fill);
  color: var(--on-accent);
  box-shadow: var(--glow-accent);
  cursor: pointer;
  transition: color var(--dur-state) var(--ease-out);
}
.composer > :is(button, .send):last-child::after { content: ''; position: absolute; inset: -4px; }
.composer > :is(button, .send):last-child svg { width: 18px; height: 18px; }
.composer > :is(button, .send):last-child:active { opacity: .6; }
.composer:has(:is(textarea, .ta):placeholder-shown) > :is(button, .send):last-child,
.composer > :is(button, .send):last-child:is(:disabled, .empty, [aria-disabled="true"]) {
  background: var(--surface-3);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px rgba(150, 215, 255, .14);
}
.composer > :is(button, .send):last-child:disabled { pointer-events: none; }
:is(.composer.locked, .locked-note) {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);   /* on glass: never --ink-3 */
}
:is(.composer.locked, .locked-note) svg { flex: none; width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   6.9 News — dated logbook lines
   -------------------------------------------------------------------------- */
.nrow {
  position: relative;
  display: grid;
  /* the date column grows with Dynamic Type, so a large day numeral never overprints the kind line */
  grid-template-columns: minmax(48px, max-content) minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  margin-top: 0;
  margin-bottom: 0;
  padding: 16px var(--row-x);
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  text-align: left;
}
.nrow::after {
  content: '';
  position: absolute;
  left: var(--row-x);
  right: 0;
  bottom: 0;
  height: var(--hair);
  background: rgba(150, 215, 255, .08);
  pointer-events: none;
}
.nrow:last-child::after,
.nrow:not(:has(+ .nrow))::after { display: none; }
.nrow > :is(.nrow-d, time, .date):first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 2px;
}
.nrow > :is(.nrow-d, time, .date):first-child > :first-child {
  font: 700 var(--fs-dl)/var(--lh-dl) var(--font-data);
  font-stretch: var(--wd-cond);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.nrow > :is(.nrow-d, time, .date):first-child > :not(:first-child) {
  font: 500 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}
.nrow > :not(:first-child) { grid-column: 2; min-width: 0; }
:is(.nrow-k, .nrow-kind) {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}
:is(.nrow-k, .nrow-kind) svg { flex: none; width: 14px; height: 14px; color: var(--ink-2); }
:is(.nrow-k, .nrow-kind) :is(.live, .ev-live) { color: var(--red); font-weight: 600; }
:is(.nrow-k, .nrow-kind).live { color: var(--red); }
.nrow :is(h3, .nrow-t) {
  margin: 4px 0 0;
  font: 700 var(--fs-title3)/var(--lh-title3) var(--font-ui);
  font-size: max(var(--fs-title3), 20px);   /* 20/25 at the default size (mockup) */
  line-height: 1.25;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.nrow :is(p, .nrow-b):not(.nrow-f) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 6px 0 0;
  font: 400 var(--fs-callout)/var(--lh-callout) var(--font-ui);
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.nrow:is(.open, .expanded) :is(p, .nrow-b):not(.nrow-f),
.nrow :is(p, .nrow-b):is(.open, .expanded) { display: block; -webkit-line-clamp: unset; overflow: visible; }
.nrow:is(.open, .expanded) :is(.more, .nrow-more) { display: none; }
.nrow :is(.more, .nrow-more) { margin-top: 2px; }
:is(.nrow-f, .nrow-foot) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  row-gap: 0;
  margin-top: 8px;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}
:is(.nrow-f, .nrow-foot) > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
:is(.nrow-f, .nrow-foot) :is(.link, a) { font-size: var(--fs-footnote); line-height: var(--lh-footnote); }
:is(.nrow-f, .nrow-foot) :is(.link, a):first-of-type { margin-left: auto; }
/* patch entries list their changes as 32px lines */
:is(.nrow-chg, .pchg) {
  margin-top: 8px;
  border-top: var(--hair) solid rgba(150, 215, 255, .10);
}
:is(.nrow-chg, .pchg) > * {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  column-gap: 8px;
  align-items: baseline;
  box-sizing: border-box;
  width: 100%;
  min-height: 32px;
  padding: 6px 0;
  border: 0;
  border-bottom: var(--hair) solid rgba(150, 215, 255, .08);
  background: none;
  color: var(--ink);
  text-align: left;
}
:is(.nrow-chg, .pchg) > * > :first-child {
  font: 600 var(--fs-headline)/var(--lh-headline) var(--font-ui);
  font-stretch: var(--wd-semi);
  white-space: nowrap;
}
:is(.nrow-chg, .pchg) > * > :nth-child(2):not(:last-child) {
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:is(.nrow-chg, .pchg) > * > :last-child:not(:first-child) {
  font: 500 var(--fs-ds)/var(--lh-ds) var(--font-data);
  font-stretch: var(--wd-semi);
  white-space: nowrap;
  text-align: right;
}

/* --------------------------------------------------------------------------
   6.9 Tip jar — News's final section, a frost panel (mockup screen 2)
   -------------------------------------------------------------------------- */
.tip { margin-top: var(--sec-gap); }
/* the section's frost glyph (mockup screen 2): the drawer's cup, so the tip jar reads the same in both places */
.tip > .sec-h { display: flex; align-items: center; gap: 10px; }
.tip .tip-g {
  flex: none; width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; filter: var(--glow-glyph);
}
.tip :is(h2, h3, .tip-t, .tip-h b) {
  margin: 0;
  font: 700 var(--fs-title3)/var(--lh-title3) var(--font-ui);
  letter-spacing: 0;
  color: var(--ink);
}
.tip-h { display: block; }
.tip-h > svg { display: none; }
.tip p:not(.tip-note):not(.foot) {
  margin: 4px 0 0;
  font: 400 var(--fs-callout)/var(--lh-callout) var(--font-ui);
  color: var(--ink-2);
}
.tip > .sec-h + p:not(.tip-note) { margin-top: 12px; }   /* under a ruled section head, the usual 12px (§4.2) */
/* equal-width buttons: each grows from a zero basis, so "Ko-fi" and "Cash App" share the row evenly; a label too
   long for an equal share keeps its own width and the row wraps rather than squeezing it */
.tip-links,
.tip-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
:is(.tip-links, .tip-btns) > :is(.btn, .tip-btn, a) {
  flex: 1 1 0;
  width: auto;
  margin: 0;
  padding-inline: 14px;
  white-space: nowrap;
}
/* old tip anchors render as secondary buttons */
.tip-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  min-height: 52px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-control);
  background: var(--glass-faux);
  box-shadow: inset 0 0 0 1px rgba(92, 200, 255, .28), inset 0 1px 0 rgba(200, 235, 255, .12);
  font: 600 var(--fs-headline)/var(--lh-headline) var(--font-ui);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}
.tip-btn small { display: none; }
.tip-btn [data-icon="external"] { color: var(--blue); }
/* fixed tip jar: the app name over the handle it pays, so the player sees who gets the tip before leaving the app */
.tip-btn:has(.tip-handle) { flex-direction: column; gap: 2px; min-height: 60px; padding-block: 9px; white-space: normal; }
.tip-btn .tip-l { display: inline-flex; align-items: center; gap: 6px; }
.tip-btn .tip-handle { font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--ink-2); overflow-wrap: anywhere; }
/* Intel › Tip jar sits on the ground, its buttons line up with the groups (the panel inset) */
.tip-intel > .tip-links { margin-inline: calc(var(--panel-x) - var(--g)); }
.tip-intel > .tip-links { margin-top: 0; }
.tip-intel .tip-btn svg { flex: none; width: 13px; height: 13px; }
.tip :is(.btn, .tip-btn) svg { flex: none; width: 13px; height: 13px; }
.tip :is(.tip-note, .foot),
.tip-note {
  margin: 12px 0 0;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui) !important;
  color: var(--ink-2) !important;
}
.tip.owner-hint { border: 0; background: none; }

/* --------------------------------------------------------------------------
   5.21 Empty states — left-aligned plate with a pencil drawing
   -------------------------------------------------------------------------- */
/* SPEC §7.21: a frost panel with the plate at 60% width, left-aligned, the line in --ink-2 and one plain action */
.empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 12px calc(var(--panel-x) - var(--g)) 0;
  padding: 14px var(--pad) 12px;
  border: 0;
  border-radius: var(--r-panel);
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bot));
  box-shadow: var(--edge-frost);
  color: var(--ink-2);
  text-align: left;
}
.empty > .btn.secondary { width: auto; margin-top: 12px; }
.empty > .paper {
  width: 60%;
  max-width: 280px;
  aspect-ratio: 2 / 1;
  padding: 16px 8px 22px;
}
.empty > :is(p, b, .empty-t) {
  margin: 12px 0 0;
  font: 400 var(--fs-body)/var(--lh-body) var(--font-ui);
  color: var(--ink-2);
}
.empty > :is(.link, .btn.plain) { margin-top: 4px; }
/* filter-empty: text only */
.empty:is(.filter, .sm, .text), .empty-filter {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}
:is(.empty:is(.filter, .sm, .text), .empty-filter) > :is(p, span, b) {
  margin: 0;
  font: inherit;
  color: inherit;
}
:is(.empty:is(.filter, .sm, .text), .empty-filter) > :is(.link, .btn.plain) {
  margin-top: 0;
  font-size: var(--fs-footnote);
  line-height: var(--lh-footnote);
}
.sq-empty { text-align: left; align-items: flex-start; border: 0; }

/* --------------------------------------------------------------------------
   7.16 Share sheet (#xsheet content; the frame and its brand header are
   chrome.css): a sentence-case title, the card preview with its two
   footnotes, one panel of 60pt action rows, the footnote under it.
   -------------------------------------------------------------------------- */
.xs-h {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 6px 0 16px;
}
.xs-h > :first-child {
  margin: 0;
  /* "Share M4 build" (mockup screen 3); a unitless line height follows Dynamic Type, so two lines never overprint */
  font: 700 max(28px, var(--fs-title1))/1.214 var(--font-ui);
  letter-spacing: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}
/* the subtitle is a phrase ("Balanced · weapon level 30", "M4", "1080 × 1350"): Archivo with tabular figures,
   never Martian Mono (mono is for numbers alone) */
.xs-h > :not(:first-child):not(p) {
  font: 500 var(--fs-callout)/var(--lh-callout) var(--font-ui);
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.xs-h > p {
  margin: 2px 0 0;
  font: 400 var(--fs-callout)/var(--lh-callout) var(--font-ui);
  color: var(--ink-2);
}

/* preview: the real 1080×1350 card at 132px wide, its two footnotes beside it */
#xsPreview,
.xs-preview {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 165px;
  margin: 0 0 16px;
  border-radius: 0;
  background: none;
  overflow: visible;
}
:is(#xsPreview, .xs-preview) img,
:is(#xsPreview, .xs-preview) canvas {
  flex: none;
  display: block;
  width: 132px;
  height: auto;
  max-height: none;
  aspect-ratio: 1080 / 1350;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--sh-plate);
}
:is(#xsPreview, .xs-preview) > :is(div, p):not(.xs-pv-ph) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  margin: 0;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}
:is(#xsPreview, .xs-preview) > :is(div, p) > :first-child { font-weight: 600; color: var(--ink); }
.xs-pv-ph,
:is(#xsPreview, .xs-preview) > .spinner,
:is(#xsPreview, .xs-preview) > svg:only-child {
  flex: none;
  display: grid;
  place-items: center;
  width: 132px;
  height: 165px;
  border-radius: 10px;
  background: var(--a-grad);
  box-shadow: var(--sh-plate);
  color: var(--ink-2);
}
:is(#xsPreview, .xs-preview) :is(svg[class*="spin"], [data-icon="spinner"], [data-i="spinner"], .spinner svg) { animation: e2s-spin 800ms steps(8) infinite; }
:is(#xsPreview, .xs-preview):empty { display: none; }

/* action list: one frost panel of 60pt rows — 24px glyph, headline, footnote, trailing chevron */
:is(.xs-actions, .xs-list) {
  --row-x: var(--pad);
  display: block;
  margin: 0 calc(var(--panel-x) - var(--g));
  padding: 0;
  border-radius: var(--r-panel);
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bot));
  box-shadow: var(--edge-frost);
}
:is(.xs-act, .xs-big, .xs-btn, .xs-row:is(button, a)) {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 9px var(--row-x);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.xs-actions > :first-child { border-radius: var(--r-panel) var(--r-panel) 0 0; }
.xs-actions > :last-child { border-radius: 0 0 var(--r-panel) var(--r-panel); }
.xs-actions > :only-child { border-radius: var(--r-panel); }
:is(.xs-act, .xs-big, .xs-btn, .xs-row:is(button, a)) + :is(.xs-act, .xs-big, .xs-btn, .xs-row:is(button, a))::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(var(--row-x) + 40px);
  right: 0;
  height: var(--hair);
  background: rgba(150, 215, 255, .08);
  pointer-events: none;
}
:is(.xs-act, .xs-big, .xs-btn, .xs-row:is(button, a)) > :is(svg, .xs-g):first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  color: var(--ink-2);
}
:is(.xs-act, .xs-big, .xs-btn, .xs-row:is(button, a)) > :not(:first-child):not(:last-child),
:is(.xs-act, .xs-big, .xs-btn, .xs-row:is(button, a)) > :not(svg):not(:last-child) { grid-column: 2; min-width: 0; }
:is(.xs-act, .xs-big, .xs-btn, .xs-row:is(button, a)) > :last-child:not(:first-child) {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
}
:is(.xs-act, .xs-big, .xs-btn, .xs-row:is(button, a)) > svg:last-child:not(:first-child),
.xs-go {
  width: 16px;
  height: 16px;
  color: var(--ink-2);
  stroke: currentColor;
  fill: none;
}
:is(.xs-act, .xs-big, .xs-btn, .xs-row) :is(b, strong, .xs-t, [data-export-label]):not(small *) {
  display: block;
  font: 600 var(--fs-headline)/var(--lh-headline) var(--font-ui);
  letter-spacing: 0;
  color: var(--ink);
}
:is(.xs-act, .xs-big, .xs-btn, .xs-row) :is(small, .xs-s) {
  display: block;
  margin-top: 1px;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}
:is(.xs-act, .xs-big, .xs-btn, .xs-row).busy { opacity: 1; }
:is(.xs-act, .xs-big, .xs-btn, .xs-row).busy :is(svg[class*="spin"], [data-icon="spinner"], [data-i="spinner"], .spinner svg) { animation: e2s-spin 800ms steps(8) infinite; }
:is(.xs-act, .xs-big, .xs-btn, .xs-row).busy > svg:last-child:not(:first-child) { color: var(--ink-2); }
.xs-big:first-child { background: transparent; }
.xs-ico { display: contents; }
/* a plain .xs-row that wraps several buttons (older markup) stacks them as rows */
div.xs-row { display: block; margin: 0; }

.xs-note,
.xsheet .foot {
  margin: 12px 0 0;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
  text-align: left;
}
.xs-panel > .btn,
.xs-panel > :is(.xs-acts, .xs-foot) { margin-top: 16px; }
.xs-panel .group-h:first-of-type { margin-top: 0; }
/* "Back to sharing" under the image card */
.xs-panel > .link { margin-top: 12px; }

/* trailing glyph says what the row does: chevron = opens something, share = system sheet, none = only copies */
:is(.xs-act, .xs-big, .xs-btn, .xs-row:is(button, a)) > span:last-child:not(:first-child) { grid-column: 2; grid-row: auto; justify-self: stretch; }
:is(.xs-act, .xs-big, .xs-btn, .xs-row:is(button, a)) > svg:is(.chev, .ico-chevron-right):last-child:not(:first-child) {
  width: 8px;
  height: 14px;
  margin-right: 2px;
  color: var(--ink-2);
  opacity: .6;
}

/* sheet title row with a plain button beside the title (older markup; openSheet moves Done / Cancel to the header) */
.xs-h.with-btn {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: start;
}
.xs-h.with-btn > :not(.btn) { grid-column: 1; }
.xs-h.with-btn > .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 44px;
  margin: -8px -8px 0 0;
  padding: 0 8px;
  font: 600 var(--fs-nav)/var(--lh-headline) var(--font-ui);   /* Done / Cancel are chrome: fixed size, like the nav bar's */
  font-stretch: normal;
  color: var(--blue);
}
.xs-h.with-btn > .btn.cancel { font-weight: 400; }
/* the report form's fields read as a group against the sheet */
.xs-panel .group { --eyelet: var(--surface); }

/* image card shown in the sheet when this viewer can't save files: press and hold to save */
.xs-card {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 1350;
  border-radius: 12px;
  box-shadow: var(--sh-plate);
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
}

/* --------------------------------------------------------------------------
   7.14 Level-up — "struck and stamped" on a hero (mockup screen 4; the scrim
   layer is chrome.css). The dialog is a highlighted panel; its top is a
   dramatic plate: the weapon's schematic in its new build on a deep-blue
   spotlight, the giant new level, the old one struck in red. The DESIGN.md
   timeline is kept: strike 500ms, stamp 760ms, ruler 900ms, parts 1300ms,
   total 2000ms; a tap skips to the end state.
   -------------------------------------------------------------------------- */
.lu {
  --eyelet: var(--surface);
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0;   /* the sticky action row carries the bottom padding */
  border-radius: 28px;
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bot));
  box-shadow: 0 0 0 1px rgba(150, 215, 255, .26), inset 0 1px 0 rgba(200, 235, 255, .2), 0 0 32px -10px rgba(40, 140, 255, .45), 0 24px 60px rgba(0, 0, 0, .6);
  color: var(--ink);
  text-align: left;
  animation: e2s-rise var(--dur-present) var(--spring-sheet) both;
}
.lu-body { padding: 14px 16px 0; }

/* the hero plate */
.lu-plate {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 190px;   /* the numeral and the caption never meet, whatever the width */
  overflow: hidden;
  border-radius: 28px 28px 18px 18px;
  background:
    radial-gradient(55% 60% at 50% 38%, rgba(70, 160, 255, .55), rgba(30, 90, 200, .18) 55%, transparent 75%),
    radial-gradient(120% 80% at 50% 120%, #03060C 30%, transparent 70%),
    repeating-linear-gradient(115deg, rgba(140, 200, 255, .05) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, #0B1E3A, var(--bg));
  box-shadow: inset 0 0 0 1px rgba(150, 215, 255, .16), inset 0 -30px 40px -20px rgba(0, 0, 0, .55);
  color: var(--ink);
  animation: e2s-drop 240ms var(--ease-out) 240ms both;
}
/* player rank: no weapon, a wider glow */
.lu:not(.has-art) .lu-plate {
  background:
    radial-gradient(66% 72% at 50% 42%, rgba(70, 160, 255, .55), rgba(30, 90, 200, .18) 55%, transparent 75%),
    radial-gradient(120% 80% at 50% 120%, #03060C 30%, transparent 70%),
    repeating-linear-gradient(115deg, rgba(140, 200, 255, .05) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, #0B1E3A, var(--bg));
}
/* rime: the frost speckle, faint and only toward the hero's edges, so the numeral never sits on noise */
.lu-plate::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--frost-noise) 0 0 / 180px 180px;
  opacity: .4;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 40%, transparent 45%, #000 100%);
          mask-image: radial-gradient(120% 100% at 50% 40%, transparent 45%, #000 100%);
}
.lu-art {
  position: absolute;
  z-index: 0;
  left: 7%;
  width: 86%;
  top: 9%;
  pointer-events: none;
}
.lu-art > .sketch { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .6)) drop-shadow(0 0 10px rgba(92, 200, 255, .28)); }
/* the parts this level added wash in as the ruler reaches them */
.lu-art .sketch .hl .wipe { animation-delay: 1050ms; }
.lu-plate > .lu-cap {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 16px;
  right: 16px;
  margin: 0;
  font: 700 15px/20px var(--font-ui);
  color: var(--ink);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.lu-plate > .lu-nums {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 12px;
  bottom: 8%;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
}
.lu-from {
  position: relative;
  font: 600 28px/1 var(--font-data);
  font-stretch: var(--wd-cond);
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.lu-from > svg,
.lu-strike {
  position: absolute;
  left: -4px;
  right: -4px;
  top: 50%;
  width: calc(100% + 8px);
  height: 12px;
  margin-top: -6px;
  overflow: visible;
  transform: rotate(-6deg);
}
:is(.lu-from > svg, .lu-strike) :is(path, line) {
  fill: none;
  stroke: var(--red);
  stroke-width: 3;
  stroke-linecap: round;
}
:is(.lu-from > svg, .lu-strike) :is(path, line)[pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: e2s-ink 260ms var(--ease-out) 500ms forwards;
}
/* no SVG in the markup: draw the red-pencil strike here */
.lu-from:not(:has(svg))::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: var(--red);
  transform: rotate(-6deg);
  transform-origin: 0 50%;
  animation: e2s-strike 260ms var(--ease-out) 500ms both;
}
.lu-to {
  display: inline-block;
  font: 700 76px/1 var(--font-data);
  font-stretch: var(--wd-cond);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-shadow: 0 0 24px rgba(92, 200, 255, .45), 0 2px 10px rgba(0, 0, 0, .5);
  transform-origin: 30% 70%;
  animation: e2s-stamp 180ms var(--ease-stamp) 760ms both, e2s-settle 120ms linear 940ms;
}
:is(.lu-of, .lu-plate small) {
  /* "of 72" / "Max level" are words: Archivo, tabular figures (as on the level plate) */
  font: 600 17px/22px var(--font-ui);
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  white-space: nowrap;
}
/* "of 72" arrives with the stamp, so the plate never shows "11 … of 72" with a hole between */
.lu-of { animation: e2s-in 180ms var(--ease-out) 760ms both; }
.lu-plate > svg:not(.lu-strike) { display: none; }

/* level ruler: amber sweeps from the old level to the new one; unlock ticks flip to amber */
.lu-ruler {
  --from: 0%;
  --to: 100%;
  position: relative;
  height: 6px;
  margin: 4px 0 14px;
  border-radius: 3px;
  background: var(--rule-strong);
}
.lu-ruler > :is(.lu-fill, .fill, b:first-child) {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--to);
  border-radius: 3px;
  background: var(--brass-fill);
  box-shadow: 0 0 10px rgba(246, 177, 42, .45);
  animation: e2s-ruler 600ms var(--ease-out) 900ms both;
}
.lu-ruler > :not(.lu-fill):not(.fill):not(b:first-child) {
  position: absolute;
  top: -4px;
  left: var(--x, 0%);
  width: 1px;
  height: 14px;
  margin-left: -.5px;
  background: var(--ink-3);
  font-style: normal;
}
.lu-ruler > :is(.on, .reached):not(.lu-fill):not(.fill) {
  background: var(--brass-text);   /* reached ticks at graphic contrast, as on the unlock ruler */
  animation: e2s-tick 1ms linear var(--d, 1200ms) both;
}

/* new parts: lines that write in 80ms apart with a frost underline */
:is(.lu-parts, .lu-unlocks) {
  display: flex;
  flex-direction: column;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
:is(.lu-parts, .lu-unlocks) > :is(.lu-h, .lu-uh, h3) {
  margin: 0 0 4px;
  font: 600 var(--fs-subhead)/var(--lh-subhead) var(--font-ui);
  color: var(--ink-2);
  /* the header writes in with its first line, so it never hangs over an empty block */
  animation: e2s-in 200ms var(--ease-out) 1300ms both;
}
:is(.lu-parts, .lu-unlocks) > :not(.lu-h):not(.lu-uh):not(h3):not(.lu-more) {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 38px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: none;
  font: 400 var(--fs-headline)/var(--lh-headline) var(--font-ui);
  color: var(--ink);
  animation: e2s-in 200ms var(--ease-out) 1300ms both;
}
:is(.lu-parts, .lu-unlocks) > :not(.lu-h):not(.lu-uh):not(h3):not(.lu-more)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: rgba(92, 200, 255, .55);
  box-shadow: 0 0 6px rgba(92, 200, 255, .35);
  transform-origin: 0 50%;
  animation: e2s-grow 300ms var(--ease-out) 1380ms both;
}
:is(.lu-parts, .lu-unlocks) > :nth-child(2) { animation-delay: 1380ms; }
:is(.lu-parts, .lu-unlocks) > :nth-child(2)::after { animation-delay: 1460ms; }
:is(.lu-parts, .lu-unlocks) > :nth-child(3) { animation-delay: 1460ms; }
:is(.lu-parts, .lu-unlocks) > :nth-child(3)::after { animation-delay: 1540ms; }
:is(.lu-parts, .lu-unlocks) > :nth-child(4) { animation-delay: 1540ms; }
:is(.lu-parts, .lu-unlocks) > :nth-child(4)::after { animation-delay: 1620ms; }
:is(.lu-parts, .lu-unlocks) > :nth-child(5) { animation-delay: 1620ms; }
:is(.lu-parts, .lu-unlocks) > :nth-child(5)::after { animation-delay: 1700ms; }
:is(.lu-parts, .lu-unlocks) > :nth-child(n+6) { animation-delay: 1700ms; }
:is(.lu-parts, .lu-unlocks) > :nth-child(n+6)::after { animation-delay: 1780ms; }
:is(.lu-parts, .lu-unlocks) > * > :is(.lu-slot, .bl-slot, small, span:first-child:not(:only-child)) {
  flex: 0 0 auto;
  min-width: 84px;
  font: 400 var(--fs-subhead)/var(--lh-subhead) var(--font-ui);
  color: var(--ink-2);
}
:is(.lu-parts, .lu-unlocks) > * > :is(.lu-name, .bl-name, b) {
  flex: 1 1 auto;
  min-width: 0;
  font: 500 var(--fs-headline)/var(--lh-headline) var(--font-ui);
  color: var(--ink);
  white-space: normal;
  overflow-wrap: anywhere;
}
:is(.lu-parts, .lu-unlocks) > * > :is(.lu-lv, .bl-lv, em, span:last-child:not(:first-child)) {
  flex: none;
  margin-left: auto;
  font: 500 var(--fs-dm)/var(--lh-dm) var(--font-data);
  font-stretch: var(--wd-semi);
  font-style: normal;
  color: var(--ink-2);
  white-space: nowrap;
}
.lu-more {
  margin-top: 4px;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
  animation: e2s-in 200ms var(--ease-out) 1800ms both;
}
/* unlocks that did not join the build: no frost underline (frost = this build), quieter */
:is(.lu-parts, .lu-unlocks) > .lu-h.lu-also {
  margin: 12px 0 2px;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}
:is(.lu-parts, .lu-unlocks) > .lu-h.lu-also:first-child { margin-top: 0; }
:is(.lu-parts, .lu-unlocks) > .lu-other:not(.lu-h):not(.lu-uh):not(h3):not(.lu-more) { min-height: 32px; padding: 5px 0; }
:is(.lu-parts, .lu-unlocks) > .lu-other:not(.lu-h):not(.lu-uh):not(h3):not(.lu-more)::after { content: none; }
:is(.lu-parts, .lu-unlocks) > .lu-other > :is(.lu-name, .lu-slot, .lu-lv) { color: var(--ink-2); }
.lu .bl-total {
  margin-top: 12px;
  border-top-color: rgba(150, 215, 255, .18);
  animation: e2s-in 300ms var(--ease-out) 2000ms both;
}
.lu .bl-total > :first-child { font: 700 var(--fs-title3)/var(--lh-title3) var(--font-ui); }
.lu .bl-total :is(b, strong) { font-size: var(--fs-title3); line-height: var(--lh-title3); }
/* the actions stay pinned to the dialog's bottom edge while the hero and the parts scroll under them (short phones,
   Safari with its bars, landscape): a fade from the panel colour keeps the primary's glow off the content */
.lu-acts,
.lu-actions {
  position: sticky; bottom: 0; z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  margin: 16px -16px 0;
  padding: 12px 16px 14px;
  background: linear-gradient(180deg, rgba(11, 22, 38, 0), var(--panel-bot) 14px);
}
:is(.lu-acts, .lu-actions) .btn { margin-top: 0; }
:is(.lu-acts, .lu-actions) .btn.plain { width: 100%; justify-content: center; font-size: var(--fs-nav); }
/* short screens: one row, the primary trailing, so both actions fit under the hero */
@media (max-height: 720px) {
  :is(.lu-acts, .lu-actions) { flex-direction: row-reverse; gap: 8px; }
  :is(.lu-acts, .lu-actions) > .btn { flex: 1 1 auto; }
  :is(.lu-acts, .lu-actions) > .btn.plain { flex: 0 0 auto; width: auto; padding-inline: 18px; }
}
.lu > .btn { margin-top: 20px; }
/* skip to the end state on tap */
.lu:is(.skip, .end, .static, .instant, .done),
.lu:is(.skip, .end, .static, .instant, .done) *,
.lu:is(.skip, .end, .static, .instant, .done) *::after { animation: none !important; }
.lu:is(.skip, .end, .static, .instant, .done) :is(.lu-from > svg, .lu-strike) :is(path, line) { stroke-dashoffset: 0; }
.lu:is(.skip, .end, .static, .instant, .done) .sketch .hl .wipe { -webkit-clip-path: none; clip-path: none; }
@media (max-height: 700px) { .lu-plate { aspect-ratio: 16 / 9; } }

/* patch review: the level-up container as a bottom medium-detent panel */
/* (SPEC §7.14): a thick-glass bottom panel, inset from the sides, floating over the dimmed page */
.lu.as-sheet {
  align-self: end;
  width: auto;
  max-width: none;
  max-height: 88%;
  min-height: min(60vh, 520px);
  margin: 0 var(--panel-x) max(8px, var(--safe-b));
  padding: 6px var(--g) 16px;
  border-radius: 30px;
  background: var(--glass-thick);
  -webkit-backdrop-filter: var(--blur-thick);
  backdrop-filter: var(--blur-thick);
  box-shadow: var(--spec), var(--sh-float);
  animation: e2s-up var(--dur-present) var(--spring-sheet) both;
}
.lu.as-sheet .foot { color: var(--ink-2); }   /* on glass: never --ink-3 */
.lu.as-sheet::before {
  content: '';
  display: block;
  width: 36px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 3px;
  background: var(--ink-3);
  opacity: .45;
}
.lu.as-sheet:has(> .xs-grab)::before { display: none; }
.lu.as-sheet :is(.lu-title, .lu-h2, h2) {
  margin: 0 0 8px;
  font: 700 var(--fs-title2)/var(--lh-title2) var(--font-ui);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  animation: none;
}
:is(.lu-prows, .lu-patch) {
  display: block;
  max-height: none;
  margin-top: 0;
  overflow: visible;
}
:is(.lu-prow, .lu-prows > button, .lu-patch > button) {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  column-gap: 12px;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  animation: none;
  cursor: pointer;
}
.lu-prows > button { padding-inline: var(--g); }
:is(.lu-prow, .lu-prows > button, .lu-patch > button) + :is(.lu-prow, .lu-prows > button, .lu-patch > button) { border-top: var(--hair) solid rgba(150, 215, 255, .10); }
:is(.lu-prow, .lu-prows > button, .lu-patch > button) :is(.lu-prow-n, b:first-child) {
  font: 600 var(--fs-headline)/var(--lh-headline) var(--font-ui);
  font-stretch: var(--wd-semi);
  letter-spacing: 0;
  color: var(--ink);
}
:is(.lu-prow, .lu-prows > button, .lu-patch > button) :is(.lu-prow-c, small) {
  display: block;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}
:is(.lu-prow, .lu-prows > button, .lu-patch > button) :is(.lu-ba, .ba) {
  font: 500 var(--fs-dm)/var(--lh-dm) var(--font-data);
  font-stretch: var(--wd-semi);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.lu-prow-h { display: contents; }

/* level-up keyframes (own names so this file stands alone) */
@keyframes e2s-rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes e2s-drop { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes e2s-ink { to { stroke-dashoffset: 0; } }
@keyframes e2s-strike { from { transform: rotate(-6deg) scaleX(0); } to { transform: rotate(-6deg) scaleX(1); } }
@keyframes e2s-stamp { from { transform: scale(1.18); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes e2s-settle { 0%, 100% { translate: 0 0; } 50% { translate: 0 1px; } }
@keyframes e2s-ruler { from { width: var(--from); } to { width: var(--to); } }
@keyframes e2s-tick { from { background: var(--ink-3); } to { background: var(--brass); } }
@keyframes e2s-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes e2s-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes e2s-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes e2s-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Sheet blocks (weapon, loadout and editor sheets)
   -------------------------------------------------------------------------- */
/* the plate sits just under the sheet header and reaches the panel inset, like the sections under it */
.sheet-inner > .paper { margin: 4px calc(var(--panel-x) - var(--g)) 0; width: auto; align-self: stretch; }
/* weapon sheet opened from another weapon's Secondary row: "‹ M4" back, in the share glyph's place */
.sh-top .sh-back { justify-self: start; gap: 2px; max-width: 40%; padding-left: 2px; font-weight: 400; }
.sh-top .sh-back > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-top .sh-back > svg { flex: none; }
/* the Secondary row opens that weapon's sheet: a disclosure chevron says so */
.irow:is(button) > svg.chev:last-child { flex: none; width: 7px; height: 12px; margin-left: auto; color: var(--ink-2); opacity: .6; }
/* identity: catalogue line, title, tag row */
:is(.sh-id, .ident) { margin-top: 16px; }
:is(.sh-id, .ident) > :is(.serial, .sh-cat):first-child { display: block; margin-bottom: 2px; }
:is(.sh-id, .ident) .sh-h1 { margin-top: 0; }
/* the max-potential readout sits right of the catalogue line and title, as on the Meta hero; the tag row keeps
   the full width under both */
.sh-id:has(> .sh-rt) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
.sh-id > :not(.sh-rt) { grid-column: 1; min-width: 0; }
.sh-id > .sh-rt { grid-column: 2; grid-row: 1 / span 2; align-self: end; text-align: right; }
.sh-id > .tagrow { grid-column: 1 / -1; }
:is(.tagrow, .sh-tags, .badges) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
  margin-top: 8px;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}
:is(.tagrow, .sh-tags, .badges) > :is(.d-s, .pick, .num) {
  font: 500 var(--fs-ds)/var(--lh-ds) var(--font-data);
  font-stretch: var(--wd-semi);
  color: var(--ink-2);
}
:is(.tagrow, .sh-tags, .badges) > :is(.locked, .lock) { color: var(--brass-text); }
:is(.tagrow, .sh-tags, .badges) > :is(.trend, .buff, .up) { color: var(--green); }
:is(.tagrow, .sh-tags, .badges) > :is(.nerf, .down) { color: var(--red); }
.badge {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  letter-spacing: 0;
  color: var(--ink-2);
}
.badge.lock { color: var(--brass-text); }
/* weapon description (about.js About.desc): a short body paragraph under the identity block. Prose, so its
   numbers stay in Archivo with tabular figures, like the map layout description. Clamped to 3 lines so the
   weapon level stays in the first screen; "More" (.sh-desc-more, shown only while text is hidden) opens it */
.sh-desc {
  max-width: 38em;
  margin: 12px 0 0;
  font: 400 var(--fs-body)/var(--lh-body) var(--font-ui);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  overflow-wrap: break-word;
}
.sh-desc:focus:not(:focus-visible) { outline: none; }
.sh-desc.clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.sh-desc-more { display: inline-flex; min-height: 44px; margin: 0 0 -11px; }
.sh-desc-more[hidden] { display: none; }
/* sections inside sheets keep the 32px rhythm; the build-view control sits 24px under the level block */
.sheet-inner > .sec,
.sheet-inner > section { margin-top: var(--sec-gap); }
.sheet-inner > .sec + .sec { margin-top: var(--sec-gap); }
.sheet-inner > .seg { margin-top: 24px; }
.sec-h + :is(.gauge, .lvl, .bl, .sbar, .chart, .deftable, .lgrid, .prov, .irow, .perks, .streaks, .equip, .rev, .lsum, .shelf, .watch, .mapentry, .rangecard, .lnotes, .notes) { margin-top: 12px; }
.sec-h + .mfit { margin-top: 8px; }
.sec > .bl-total { margin-top: 0; }
/* provenance / maxed / plain sheet notes */
:is(.prov, .maxnote) {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}
.maxnote { display: flex; align-items: center; gap: 6px; }
.maxnote svg { flex: none; width: 12px; height: 12px; color: var(--green); }
:is(.prov, .maxnote) b { color: var(--ink); font-weight: 600; }
/* while the weapon-level slider is dragged the provenance still describes the old level: it waits for release */
#sheet.lv-drag .prov { visibility: hidden; }

/* item rows: perks, killstreaks, equipment, secondary, patch history */
.irow,
:is(.perks, .streaks, .equip, .eqlist) > :is(div, li, button) {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  text-align: left;
}
:is(.irow, :is(.perks, .streaks, .equip, .eqlist) > :is(div, li, button)) + :is(.irow, :is(.perks, .streaks, .equip, .eqlist) > :is(div, li, button))::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hair);
  background: rgba(150, 215, 255, .08);
  pointer-events: none;
}
/* rows that lead with a glyph or thumb inset the hairline to the text column */
:is(.irow, :is(.perks, .streaks, .equip, .eqlist) > *):has(> svg:first-child) + :is(.irow, :is(.perks, .streaks, .equip, .eqlist) > *)::before { left: 36px; }
.irow:has(> .thumb:first-child) + .irow::before { left: 84px; }
.irow > svg:first-child,
:is(.perks, .streaks, .equip, .eqlist) > * > svg:first-child { flex: none; width: 24px; height: 24px; color: var(--ink-2); }
.irow > .thumb:first-child { flex: none; }
:is(.irow-m, .irow-main) { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
:is(.irow-l, .irow-k) {
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}
:is(.irow-n, .irow-t) {
  font: 600 var(--fs-headline)/var(--lh-headline) var(--font-ui);
  color: var(--ink);
  overflow-wrap: anywhere;
}
:is(.irow-d, .irow-s) {
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}
.irow.eq :is(.irow-d, .irow-s) { color: var(--ink-3); }
:is(.irow-v, .irow-r) {
  flex: none;
  margin-left: auto;
  /* "Rank 12" is a phrase: Archivo with tabular figures */
  font: 500 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  text-align: right;
  white-space: nowrap;
}
/* killstreak cost: "4" with the original "5" struck when Hardline applies */
:is(.ks-cost, .irow-cost) {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font: 500 var(--fs-dm)/var(--lh-dm) var(--font-data);
  font-stretch: var(--wd-semi);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
:is(.ks-cost, .irow-cost) s {
  font: 500 var(--fs-ds)/var(--lh-ds) var(--font-data);
  color: var(--ink-3);
  text-decoration: line-through;
}
/* the word after the cost ("4 kills") is Archivo; only the digits are Martian Mono */
:is(.ks-cost, .irow-cost) small {
  font: 500 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-3);
}
.irow:is(button):active { background: rgba(92, 200, 255, .08); }

/* patch history: 56px dated lines */
.phist { display: block; margin: 0; padding: 0; list-style: none; }
.phist > * {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.phist > * + * { border-top: var(--hair) solid rgba(150, 215, 255, .08); }
.phist :is(.phist-h, .ph-h) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  font: 600 var(--fs-headline)/var(--lh-headline) var(--font-ui);
  letter-spacing: 0;
  color: var(--ink);
}
.phist :is(.phist-h, .ph-h) :is(time, .date, .d-s) {
  font: 500 var(--fs-ds)/var(--lh-ds) var(--font-data);
  font-stretch: var(--wd-semi);
  color: var(--ink-3);
}
.phist p {
  margin: 0;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}
.phist a { font: 600 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--blue); align-self: flex-start; }

/* loadout sheet: summary row */
.lsum {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: end;
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.lsum > .gauge { grid-column: 1 / -1; margin-top: 12px; }
:is(.lsum-l, .lsum-big) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-2);
}
:is(.lsum-l, .lsum-big) > :is(b, strong):first-child {
  font: 600 var(--fs-dl)/var(--lh-dl) var(--font-data);
  font-stretch: var(--wd-semi);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
:is(.lsum-l, .lsum-big) > span:last-child {
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  letter-spacing: 0;
  color: var(--ink-2);
}
.lsum-r {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-3);
}
.lsum-r > :is(b, strong) {
  font: 600 var(--fs-dl)/var(--lh-dl) var(--font-data);
  font-stretch: var(--wd-semi);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
/* builder's notes */
:is(.lnotes, .notes, .card.quote) p,
.lnotes > :first-child {
  margin: 0;
  font: 400 var(--fs-body)/var(--lh-body) var(--font-ui);
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* reviews */
.rev {
  padding: 12px 0;
  border-top: var(--hair) solid rgba(150, 215, 255, .08);
}
.rev:first-child { border-top: 0; }
.rev-h {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
}
.rev-h > div { display: flex; align-items: baseline; gap: 6px; min-width: 0; flex: 1 1 auto; }
.rev-h :is(b, .who) {
  font: 600 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rev-h :is(span:not(.av):not(.stars), time, .ago) {
  font: 500 var(--fs-ds)/var(--lh-ds) var(--font-data);
  font-stretch: var(--wd-semi);
  color: var(--ink-3);
}
.rev p {
  margin: 6px 0 0;
  font: 400 var(--fs-callout)/var(--lh-callout) var(--font-ui);
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rev .link { margin-top: 6px; }
.rform { margin: 0; padding: 0; border: 0; }
.rform-l { margin-bottom: 4px; font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--ink-2); }
.starpick + :is(.ta, .group) { margin-top: 8px; }   /* #revText is a white field in a .group, like every sheet textarea */
.rform > :is(.ta, .group) + .link { margin-top: 12px; }   /* "Delete my review" sits under the field, away from the bar's primary */

/* editor: live plate caption + rating footer */
#edLvlOut,
.lvl-out {
  font: 500 var(--fs-dm)/var(--lh-dm) var(--font-data);
  font-stretch: var(--wd-semi);
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
/* "30 of 72": only the number is Martian Mono; its taller face must not grow the 44pt row */
.grow-v > #edLvlOut { line-height: 1; }
#editor .group-f :is(b, .d-m, .d-s) {   /* a number in a 13px footnote stays footnote size (dataS) */
  font: 500 var(--fs-ds)/var(--lh-ds) var(--font-data);
  font-stretch: var(--wd-semi);
  color: var(--ink);
}
/* the sheet's scroll-padding already clears the Save bar; this is the 16px clearance above it (§6.7) */
#editor .grow { scroll-margin-bottom: 16px; }
#editor :is(input, textarea, select) { scroll-margin-bottom: 16px; }

/* sheet bar secondary action (e.g. "Delete my review") */
.sh-bar > .btn.plain,
.sh-bar > .btn.danger { display: flex; width: 100%; justify-content: center; margin-top: 4px; }
.sh-bar > .btn + .btn:is(.plain, .danger) { margin-top: 4px; }

/* --------------------------------------------------------------------------
   Intel — owner admin bits that live inside groups
   -------------------------------------------------------------------------- */
:is(.fixrow, .corr) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: start;
  padding: 12px var(--pad);
  border-top: 0;
}
.group > * + :is(.fixrow, .corr) {
  background-image: linear-gradient(rgba(150, 215, 255, .08), rgba(150, 215, 255, .08));
  background-repeat: no-repeat;
  background-position: var(--pad) 0;
  background-size: calc(100% - var(--pad)) var(--hair);
}
:is(.fixrow, .corr) :is(b, .fx-w) { font: 600 var(--fs-headline)/var(--lh-headline) var(--font-ui); color: var(--ink); }
:is(.fixrow, .corr) :is(small, .fx-t) { display: block; font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--ink-2); }
:is(.fixrow, .corr) p { margin: 4px 0; font: 400 var(--fs-callout)/var(--lh-callout) var(--font-ui); color: var(--ink); }
:is(.fixrow, .corr) a { font: 600 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--blue); }
:is(.fixrow, .corr):is(.done, .resolved) { opacity: 1; }
:is(.fixrow, .corr):is(.done, .resolved) :is(b, p, small) { color: var(--ink-3); }
.modrow { display: flex; align-items: center; gap: 12px; padding: 0; border: 0; }

/* --------------------------------------------------------------------------
   Legal line (Intel footer) — no group, left-aligned
   -------------------------------------------------------------------------- */
.legal {
  margin: 24px 0 0;
  padding: 0;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui);
  color: var(--ink-3);
  text-align: left;
}

/* --------------------------------------------------------------------------
   Narrow phones
   -------------------------------------------------------------------------- */
@media (max-width: 389px) {
  .shelf > * { flex-basis: 184px; }
  .lu-to { font-size: 64px; line-height: 64px; }
  .brow,
  .board .colhead,
  .colhead.builders { grid-template-columns: 22px 20px minmax(0, 1fr) 56px 48px; }
}

/* --------------------------------------------------------------------------
   Reduced motion: level-up and patch views appear at their end state with a
   200ms fade; no slides, stamps or sweeps.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .lu *,
  .lu *::after { animation: none !important; }
  .lu :is(.lu-from > svg, .lu-strike) :is(path, line) { stroke-dashoffset: 0; }
  .lu,
  .lu.as-sheet { animation: e2s-in 200ms linear both; }
  :is(#xsPreview, .xs-preview, .xs-act, .xs-big, .xs-btn, .xs-row) svg { animation-duration: 1600ms; }
}
:root[data-motion="reduce"] .lu *,
:root[data-motion="reduce"] .lu *::after { animation: none !important; }
:root[data-motion="reduce"] .lu :is(.lu-from > svg, .lu-strike) :is(path, line) { stroke-dashoffset: 0; }
:root[data-motion="reduce"] .lu,
:root[data-motion="reduce"] .lu.as-sheet { animation: e2s-in 200ms linear both; }

/* --------------------------------------------------------------------------
   6.15 Player names (§5.22) — the name (frost) and the monogram open the
   player card. In rows that are one tap target (thread rows, loadout tiles,
   the Meta shelf) a transparent .hit button covers the row and the name sits
   on top of it, so there is never a button inside a button.
   -------------------------------------------------------------------------- */
.has-hit { position: relative; }
.hit {
  position: absolute; inset: 0; z-index: 1;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.hit:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.ltile.has-hit, .shelf > .has-hit { cursor: default; }
.has-hit :is(.pname, .pav) { z-index: 2; }
/* pressing the name never presses the row under it */
.trow:has(:is(.pname, .pav):active) { background-color: transparent; }
:is(.ltile, .shelf > *):has(:is(.pname, .pav):active) > .paper { filter: none; }

button.pname {
  position: relative;
  display: inline-block;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: none;
  font: inherit;
  color: var(--blue);
  text-align: inherit;
  vertical-align: baseline;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--dur-press) var(--ease-out);
}
button.pname :is(b, span) { color: var(--blue); }
button.pname b { font-weight: 600; }
/* 44pt hit area without changing the line (as .link) */
button.pname::after {
  content: '';
  position: absolute;
  left: min(-4px, calc(50% - 22px));
  right: min(-4px, calc(50% - 22px));
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}
button.pav {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--dur-press) var(--ease-out);
}
button.pav::after { content: ''; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
:is(button.pname, button.pav):active { opacity: .5; }
/* rows that lead with a monogram keep their 56px hairline inset */
.grow + .grow:has(> .pav:first-child)::before,
.grow:has(> .pav:first-child) + .grow::before { left: 56px; }
/* thread rows: the author line flows as before, the name is the frost part */
.trow-f > small.by > .pname { overflow-wrap: anywhere; }
/* tiles and the shelf: one line, the name ellipsizes inside its own button (which keeps its 44pt area) */
.ltile .ltile-by > :is(.pname, .pav) { overflow: visible; }
.ltile .ltile-by > .pname > span { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* specific enough to beat line 236's overflow: hidden (0,4,1), or the name's 44pt hit area is clipped to the line */
.shelf > * > span.shelf-r:not(.paper):not(.plate-no):not(.stars) { overflow-x: clip; overflow-y: visible; }
.shelf > * > .shelf-r .pname { max-width: 100%; }
.shelf > * > .shelf-r .pname > span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.shelf .shelf-st { display: inline-flex; align-items: center; }
/* posts and reviews: the name wraps in its line rather than overprinting the actions */
:is(.post-h, .rev-h) .pname { overflow-wrap: anywhere; }
.rev-h .pname b { white-space: normal; }
/* Top builders: the name column is the button */
.brow > .pname { align-self: stretch; display: flex; align-items: center; overflow: visible; }
.brow > .pname > b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: inherit; }
/* news footer and the moderators list */
:is(.nrow-f, .nrow-foot) .pname { font-weight: 600; }
.grow-l > .pname { font: inherit; }
/* the loadout sheet names its builder under the title */
.ls-by { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 8px; }
.ls-by > small.by { min-width: 0; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   6.16 Player card and setup sheet — #psheet (profiles.js). An operator
   dossier: tracked frost kicker, condensed caps name and section heads, IDs
   in Martian Mono, frost actions, one amber primary only for a real primary
   (a confirmed platform link, or Save).
   -------------------------------------------------------------------------- */
#psheet { z-index: 29; }   /* over every page sheet (20–28), under the PDF viewer (30) and #xsheet (40) */
/* a sheet over a sheet is full height too (SPEC §4.6); the sheet under it recedes (card stack) */
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="reduce"]) #app:has(#psheet.open) .sheet.open:not(#psheet):not(#pdfview) { transform: scale(.94); }
}
.pc-kick {
  margin: 0;
  font: 700 12px/16px var(--font-ui); font-stretch: var(--wd-cond); letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
}
/* identity: a highlighted panel with the hood's rim (SPEC §7.15) */
.pc-id {
  position: relative;
  margin: 8px calc(var(--panel-x) - var(--g)) 0;
  padding: 14px var(--pad) 16px;
  border-radius: var(--r-panel);
  background:
    radial-gradient(80% 120% at 0 0, rgba(46, 132, 255, .16), transparent 70%),
    linear-gradient(180deg, var(--panel-top), var(--panel-bot));
  box-shadow: var(--edge-frost);
}
.pc-who { display: flex; align-items: center; gap: 14px; min-width: 0; margin-top: 10px; }
.pc-who-t { min-width: 0; flex: 1 1 auto; }
.av.xl {
  width: 64px; height: 64px;
  background: var(--surface-3); box-shadow: 0 0 0 2px rgba(92, 200, 255, .55), 0 0 18px rgba(40, 140, 255, .35);
  font: 800 26px/1 var(--font-ui); font-stretch: var(--wd-cond); color: var(--ink);
}
.pc-name {
  font: 800 var(--fs-title1)/var(--lh-title1) var(--font-ui); font-stretch: var(--wd-cond);
  letter-spacing: .01em; text-transform: uppercase; overflow-wrap: anywhere;
}
.pc-plat { margin: 2px 0 0; font: 400 var(--fs-callout)/var(--lh-callout) var(--font-ui); color: var(--ink-2); }
.pc-sec { margin-top: 20px; }
.pc-h {
  margin: 0; padding: 0 0 8px;
  font: 700 12px/16px var(--font-ui); font-stretch: var(--wd-cond); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2);
}
.pc-box + .pc-box { margin-top: 12px; }
.pc-row { align-items: center; }
.pc-k { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.pc-l { font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--ink-2); }
.pc-v {
  font: 500 var(--fs-dm)/var(--lh-dm) var(--font-data); font-stretch: var(--wd-semi);
  color: var(--ink); overflow-wrap: anywhere;
  -webkit-user-select: text; user-select: text;
}
.pc-row > .pc-copy { flex: none; align-self: center; margin-left: 4px; }
.pc-go { padding: 4px var(--pad) 12px; }
.pc-go .btn { gap: 6px; }
.pc-go.sm { padding: 0 var(--pad) 10px; }
.pc-steps {
  margin: 0 0 0 var(--pad); padding: 10px var(--pad) 12px 0;
  list-style: none; counter-reset: pcs;
  border-top: var(--hair) solid rgba(150, 215, 255, .08);
}
.pc-steps > li {
  counter-increment: pcs;
  display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 6px;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--ink-2);
}
.pc-steps > li + li { margin-top: 4px; }
.pc-steps > li::before {
  content: counter(pcs);
  font: 500 var(--fs-ds)/var(--lh-ds) var(--font-data); font-stretch: var(--wd-semi); color: var(--blue);
}
.pc-stepnote { margin: -4px var(--pad) 0 calc(var(--pad) + 24px); padding-bottom: 12px; font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--ink-2); }
.pc-how { margin: 0 0 0 var(--pad); border-top: var(--hair) solid rgba(150, 215, 255, .08); }
.pc-how > summary {
  display: flex; align-items: center; min-height: 44px; padding-right: var(--pad);
  font: 600 var(--fs-subhead)/var(--lh-subhead) var(--font-ui); color: var(--blue);
  list-style: none; cursor: pointer;
}
.pc-how > summary::-webkit-details-marker { display: none; }
.pc-how > summary::after {
  content: ''; width: 7px; height: 7px; margin-left: 8px;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-state) var(--ease-out);
}
.pc-how[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.pc-how > .pc-steps { margin-left: 0; padding-top: 0; border-top: 0; }
.pc-how > summary:focus-visible { outline-offset: -2px; }
.pc-foot { margin: 20px 0 0; font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--ink-2); }
.pc-foot + .pc-foot { margin-top: 8px; }
.pc-reports { color: var(--red); }
.pc-report { margin-top: 16px; align-self: flex-start; }
.pc-report:disabled { opacity: 1; color: var(--ink-3); }
.pc-none {
  margin: 12px calc(var(--panel-x) - var(--g)) 0;
  padding: 14px var(--pad) 16px;
  border-radius: var(--r-panel);
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bot));
  box-shadow: var(--edge-frost);
}
.pc-none > h2 { margin: 0; font: 700 var(--fs-title3)/var(--lh-title3) var(--font-ui); color: var(--ink); }
.pc-none > p { margin: 6px 0 0; font: 400 var(--fs-callout)/var(--lh-callout) var(--font-ui); color: var(--ink-2); }
.pc-mono { font: 500 var(--fs-ds)/var(--lh-ds) var(--font-data); font-stretch: var(--wd-semi); overflow-wrap: anywhere; }

/* setup sheet */
.pc-intro { margin-top: 12px; }
.pc-intro > .sh-h1 { margin-top: 6px; }
.pc-intro > p:not(.pc-kick) { margin: 8px 0 0; font: 400 var(--fs-callout)/var(--lh-callout) var(--font-ui); color: var(--ink-2); }
#psheet .group-f.err { color: var(--red); }
#psheet .group-f { overflow-wrap: anywhere; }
#psheet .pc-field input { text-align: left; }
#psheet .pc-field input[aria-invalid="true"] { color: var(--red); }
.pc-field > .grow-l { flex: 0 0 auto; max-width: 48%; }
.pc-opt { cursor: pointer; }
.pc-opt > input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.pc-opt > .grow-l { flex: 1 1 auto; max-width: none; }
/* the chosen platform: the row lights with the frost rim and a vivid check disc (SPEC §7.15) */
.pc-opt > .pc-check {
  flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: auto;
  border-radius: 50%; background: var(--accent-fill); box-shadow: 0 0 10px rgba(40, 140, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
  color: var(--on-accent); visibility: hidden;
}
.pc-opt > .pc-check svg { width: 14px; height: 14px; stroke-width: 3; }
.pc-opt:has(> input:checked) > .pc-check { visibility: visible; }
.pc-opt:has(> input:checked) { background: linear-gradient(90deg, rgba(46, 132, 255, .14), rgba(46, 132, 255, .04)); }
.pc-opt:has(> input:checked)::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--edge-frost-hi);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.pc-plats > .pc-opt:first-child { border-radius: var(--r-group) var(--r-group) 0 0; }
.pc-plats > .pc-opt:last-child { border-radius: 0 0 var(--r-group) var(--r-group); }
/* the lit row's rim replaces the hairlines around it */
.pc-opt:has(> input:checked)::before, .pc-opt:has(> input:checked) + .pc-opt::before { opacity: 0; }
.pc-opt:has(> input:focus-visible) { outline: 2px solid var(--blue); outline-offset: -2px; }
.pc-opt:active { background: rgba(92, 200, 255, .08); transition: none; }
.pc-plats[aria-invalid="true"] { box-shadow: var(--edge-frost), inset 0 0 0 1px var(--red); }
.pc-more { min-height: 44px; margin-top: 12px; padding-inline: 0; align-self: flex-start; }
.pc-more svg { width: 10px; height: 6px; transition: transform var(--dur-state) var(--ease-out); }
.pc-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.pc-morebox .group-h { margin-top: 8px; }
.pc-morebox .group-f + .group { margin-top: 12px; }
.pc-setup-row > .grow-l { flex: 1 1 auto; max-width: none; color: var(--blue); }
.pc-setup-row > .grow-l small { -webkit-line-clamp: 3; color: var(--ink-2); }
.pc-mine > .grow-l { flex: 1 1 auto; max-width: none; color: var(--ink); }
.pc-mine > .grow-l small { display: block; -webkit-line-clamp: unset; overflow: visible; color: var(--ink-2); }
.grow.pc-mine { cursor: pointer; }

/* --------------------------------------------------------------------------
   Data honesty: unconfirmed unlocks, weapons without stats yet, map formats, modes
   -------------------------------------------------------------------------- */
/* "Unconfirmed" in a weapon's tag row: official pages disagree on its unlock rank; the details under it say both */
:is(.tagrow, .sh-tags) > .unconf { color: var(--brass-text); font-weight: 600; }
.unconf-d, .sh-id > .unconf-d { grid-column: 1 / -1; margin: 2px 0 0; }
.unconf-d > summary {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--blue);
  list-style: none; cursor: pointer;
}
.unconf-d > summary::-webkit-details-marker { display: none; }
.unconf-d > summary:focus-visible { outline-offset: -2px; }
.unconf-d > p { margin: 0 0 4px; font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--ink-2); }
/* a weapon listed before its numbers are published */
.sh-desc.pending-note { color: var(--ink-2); }
.wrow.pending .wrow-l3 { font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--ink-2); }
/* Maps: the format switch above the chips, and the modes list */
.seg.map-fmt { margin: 0 0 12px; }
/* four formats in one track: "Ground War" fits a quarter of a 375pt row at 13px with 2px insets */
.seg.map-fmt > button { padding: 0 2px; font-size: 13px; letter-spacing: -.01em; }
.modes + .me-h, .sec[data-modes] .me-h { margin: 16px 0 0; font: 600 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); letter-spacing: .02em; color: var(--ink-2); }
.mapentry[data-unscored] > .foot + .foot { margin-top: 6px; }

/* --------------------------------------------------------------------------
   Welcome, sign-in and the members-only gate (the website only: gate.js marks
   <html data-mode="hosted" data-gate>, welcome.js runs the screens). The
   claude.ai artifact never shows #auth. iPhone-first: one column, safe areas,
   the actions in the thumb zone; Frost Glass ground and fields; one amber
   primary per screen.
   -------------------------------------------------------------------------- */
/* the gate: until a confirmed member is signed in, the app shell is hidden (welcome.js also makes #app inert) */
html[data-gate]:not([data-gate="open"]) #app { visibility: hidden; }
html[data-gate]:not([data-gate="open"]) #auth[hidden] { display: flex !important; }
/* before welcome.js runs: Welcome for a visitor, "Signing you in…" for a member coming back (gate.js sets the hint) */
html[data-gate="checking"]:not([data-gate-hint]) #auth .au-page:not([data-au-page="welcome"]),
html[data-gate="checking"][data-gate-hint] #auth .au-page:not([data-au-page="checking"]) { display: none !important; }

.auth {
  position: fixed; inset: 0; z-index: 70;
  display: flex; justify-content: center;
  color: var(--ink); background: var(--bg);
}
/* the frost ground of #stage: the blue aura under the brand, rime in the bottom corners */
.auth::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--aura), var(--frost-corners), linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 38%, var(--bg) 100%);
}
.au-scroll {
  position: relative; z-index: 1; width: 100%; max-width: 560px; height: 100%;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: calc(var(--safe-t) + 8px) calc(var(--g) + var(--safe-r)) calc(max(var(--safe-b), 12px) + 12px) calc(var(--g) + var(--safe-l));
  scroll-padding: 24px 0 120px;
}
.au-col { display: flex; flex-direction: column; width: 100%; max-width: 440px; min-height: 100%; margin: 0 auto; }
.au-page { display: flex; flex-direction: column; flex: 1 0 auto; }

/* Welcome: the lockup and the line about the app up top, the choices at the bottom */
.au-welcome { justify-content: space-between; gap: 28px; }
.au-hero { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 24px; }
.au-title { margin: 0; }
.au-brand {
  --brand-m: clamp(60px, 19vw, 82px); --brand-w: clamp(62px, 19.6vw, 85px);
  justify-content: center; height: auto;
}
.au-brand.sm { --brand-m: 52px; --brand-w: 54px; }
.au-brand.fb .brand-fb b { font-size: 34px; }
.au-brand.fb .brand-fb svg { width: 44px; height: 15px; }
.au-kicker {
  margin-top: 14px;
  font: 700 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); font-stretch: var(--wd-semi);
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
.au-lede { margin-top: 12px; max-width: 30em; font: 400 var(--fs-callout)/var(--lh-callout) var(--font-ui); color: var(--ink-2); }
.au-foot { display: flex; flex-direction: column; }
.au-actions { display: flex; flex-direction: column; }
.au-actions > .btn + .btn { margin-top: 12px; }
.au-or {
  display: flex; align-items: center; gap: 12px; margin: 16px 0;
  font: 500 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--ink-2);
}
.au-or::before, .au-or::after { content: ''; flex: 1 1 0; height: 1px; background: rgba(150, 215, 255, .14); }
.au-fine { margin-top: 16px; text-align: center; font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--ink-2); }
.au-fine.left { text-align: left; }

/* the other screens: ‹ Back, a large title, one line, the form */
.au-back {
  position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; margin: 0 0 4px -8px; padding: 0 14px 0 8px; border-radius: 12px;
  font: 400 var(--fs-nav)/22px var(--font-ui); color: var(--blue);
  transition: opacity var(--dur-press) var(--ease-out);
}
.au-back > svg { width: 9px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.au-back:active { opacity: .5; }
.au-h1 { margin-top: 8px; font: 800 var(--fs-title1)/var(--lh-title1) var(--font-ui); font-stretch: var(--wd-cond); color: var(--ink); }
/* a screen with no ‹ Back (the new password) starts its title where the others do */
.au-page > .au-h1:first-child { margin-top: 52px; }
.au-p { margin-top: 8px; font: 400 var(--fs-callout)/var(--lh-callout) var(--font-ui); color: var(--ink-2); overflow-wrap: anywhere; }
.au-p b { font-weight: 600; color: var(--ink); }
:is(.au-h1, .au-p).center { text-align: center; }
.au-form { display: flex; flex-direction: column; margin-top: 20px; }
.au-form > .btn { margin-top: 24px; }
.au-field + .au-field { margin-top: 16px; }
.au-label { display: block; margin: 0 0 6px; font: 600 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--ink-2); }
/* fields: a solid frost well with an inset ring (as .ta), 52 tall, 17px so iOS never zooms */
.au-input {
  display: block; box-sizing: border-box; width: 100%; min-height: 52px; margin: 0; padding: 13px 16px;
  border: 0; border-radius: var(--r-control); background: var(--surface-2); color: var(--ink); caret-color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(92, 200, 255, .22), inset 0 1px 0 rgba(200, 235, 255, .06);
  font: 400 max(17px, 1rem)/22px var(--font-ui);
  -webkit-appearance: none; appearance: none;
  transition: box-shadow var(--dur-state) var(--ease-out);
}
.au-input:focus { box-shadow: inset 0 0 0 1px rgba(92, 200, 255, .70), 0 0 0 4px rgba(46, 132, 255, .20); }
.au-input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.au-input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--red); }
.au-input:-webkit-autofill,
.au-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink); caret-color: var(--blue);
  box-shadow: inset 0 0 0 100px var(--surface-2), inset 0 0 0 1px rgba(92, 200, 255, .40);
}
.au-note { margin-top: 6px; font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--ink-2); overflow-wrap: anywhere; }
.au-note.err { color: var(--red); }
.au-note.ok { color: var(--green); }
/* password: Show / Hide sits inside the field's right end, a 44pt target */
.au-pw { position: relative; }
.au-pw > .au-input { padding-right: 80px; }
.au-eye {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  min-width: 64px; min-height: 44px; padding: 0 12px; border-radius: 10px; text-align: center;
  font: 600 var(--fs-subhead)/20px var(--font-ui); color: var(--blue);
  transition: opacity var(--dur-press) var(--ease-out);
}
.au-eye:active { opacity: .5; }
.au-eye:focus-visible { outline-offset: -2px; }
/* the 6-digit code: one numeric field (paste and iOS "From Messages/Mail" autofill fill it whole) */
.au-code {
  text-align: center; padding-left: calc(16px + .42em);
  font: 600 28px/34px var(--font-data); font-stretch: var(--wd-semi); font-variant-numeric: tabular-nums; letter-spacing: .42em;
}
.au-forgot { align-self: flex-end; margin-top: 12px; }
.au-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 18px; }
.au-links > .link { min-height: 44px; }
.au-links > .link:disabled, .au-links > .link[aria-disabled="true"] { color: var(--ink-2); cursor: default; opacity: 1; }
.au-switch { margin-top: 20px; text-align: center; font: 400 var(--fs-subhead)/var(--lh-subhead) var(--font-ui); color: var(--ink-2); }
.au-switch > .link { vertical-align: baseline; }
.au-page > .au-or { margin-top: 24px; }
/* a problem the server reported, above the form (the field notes carry the field-level ones) */
.au-alert {
  margin: 0 0 16px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 122, 107, .10); box-shadow: inset 0 0 0 1px rgba(255, 122, 107, .45);
  font: 500 var(--fs-subhead)/var(--lh-subhead) var(--font-ui); color: var(--ink); overflow-wrap: anywhere;
}
.au-alert.info { background: rgba(92, 200, 255, .08); box-shadow: inset 0 0 0 1px rgba(92, 200, 255, .35); }
.au-alert > .link { margin-left: 4px; }
/* waiting: "Signing you in…" and "You're in" */
.au-wait { align-items: center; justify-content: center; gap: 18px; text-align: center; }
.au-wait-h { font: 600 var(--fs-headline)/var(--lh-headline) var(--font-ui); color: var(--ink-2); }
.au-spin { display: block; width: 28px; height: 28px; color: var(--blue); }
.au-spin > svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; animation: au-spin 800ms steps(8) infinite; }
@keyframes au-spin { to { transform: rotate(360deg); } }
:root[data-motion="reduce"] .au-spin > svg { animation: none; }
@media (prefers-reduced-motion: reduce) { .au-spin > svg { animation: none; } }
/* short screens (SE, landscape): less air above the lockup */
@media (max-height: 700px) { .au-hero { padding-top: 12px; } .au-welcome { gap: 20px; } }

/* the menu's account rows (welcome.js adds them on the website): Sign out, confirmed in place */
.dr-acct { margin: 8px -2px 0; padding-top: 8px; box-shadow: inset 0 1px 0 rgba(150, 215, 255, .10); }
.dr-row.dr-out .dr-g { stroke: var(--red); }
.dr-row.dr-out b { color: var(--red); }
.dr-confirm { padding: 2px 12px 12px 50px; }
.dr-confirm > p { margin: 0 0 12px; font: 400 var(--fs-subhead)/var(--lh-subhead) var(--font-ui); color: var(--ink-2); }
.dr-confirm-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-confirm-acts > .btn { flex: 1 1 100px; width: auto; min-height: 48px; margin: 0; }
.dr-confirm-acts > .btn + .btn { margin-top: 0; }
/* the shared .danger rule drops the secondary's ring: the confirm's Sign out keeps a red-tinted one */
.dr-confirm-acts > .btn.secondary.danger { background: rgba(255, 122, 107, .10); box-shadow: inset 0 0 0 1px rgba(255, 122, 107, .45); }
.dr-confirm-acts > .btn.secondary.danger:active { background: rgba(255, 122, 107, .18); opacity: 1; }

/* =============================================================================================
   Loadout slots sheet — #slots (community.js openSlots). Both of a member's two slots are in use:
   replace one, or delete one to make room. Over the editor (24), under the thread sheet (26).
   ============================================================================================= */
#slots { z-index: 25; }
.sl-body { padding-top: 8px; }
.sl-h { font: 700 var(--fs-title3)/var(--lh-title3) var(--font-ui); color: var(--ink); }
.sl-count { margin-top: 2px; font: 600 var(--fs-footnote)/var(--lh-footnote) var(--font-data); color: var(--blue); }
.sl-lead { margin-top: 10px; font: 400 var(--fs-body)/var(--lh-body) var(--font-ui); color: var(--ink); }
.sl-new { margin-top: 8px; font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--ink-2); overflow-wrap: anywhere; }
.sl-new b { color: var(--ink); font-weight: 600; }
.sl-list { margin-top: 16px; border-radius: var(--r-group, 18px); background: var(--glass-faux); box-shadow: inset 0 0 0 1px rgba(150, 215, 255, .10); }
.sl-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "art meta" "acts acts"; align-items: center; column-gap: 12px; row-gap: 6px; padding: 12px 14px; }
.sl-row + .sl-row { box-shadow: inset 0 1px 0 rgba(150, 215, 255, .08); }
.sl-row > .thumb { grid-area: art; }
.sl-m { grid-area: meta; min-width: 0; }
.sl-m b { display: block; font: 600 var(--fs-headline)/var(--lh-headline) var(--font-ui); overflow-wrap: anywhere; }
.sl-m small { display: block; font: 400 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--ink-2); }
.sl-acts { grid-area: acts; display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.sl-acts .btn + .btn { margin-top: 0; }
.sl-hint { margin: 16px 4px 8px; font: 500 var(--fs-footnote)/var(--lh-footnote) var(--font-ui); color: var(--ink-2); }
.sl-hint::before { content: '✦ '; color: var(--blue); }
#editor .group-f.ed-slots { margin-top: 14px; color: var(--ink-2); }
