/* secweb: black and white brutalism. The pixel ring is the only color. */

@font-face { font-family: 'Archivo'; src: url('/fonts/Archivo-wdth-latin.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; src: url('/fonts/Archivo-wdth-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Minecraft Seven'; src: url('/fonts/MinecraftSeven.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Departure Mono'; src: url('/fonts/DepartureMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --bg: #ffffff;
  --ink: #000000;
  --mute: #595959;
  --hair: #d4d4d4;
  --hover: #f0f0f0;
  --f1: #000000; --f2: #4d4d4d; --f3: #8c8c8c; --f4: #bfbfbf; --f5: #e3e3e3;
  --on-f1: #ffffff; --on-f2: #ffffff; --on-f3: #000000; --on-f4: #000000; --on-f5: #000000;
  --gold: #f7c948;
  --money: #007a32;
  --up: #00a33c; --down: #d42a1f; --vol: #d9d9d9;

  --f-display: 'Archivo', 'Arial Narrow', sans-serif;
  --f-ui: 'Geist', system-ui, sans-serif;
  --f-data: 'Geist Mono', ui-monospace, monospace;
  --f-pixel: 'Departure Mono', ui-monospace, monospace;

  --rule: 2px solid var(--ink);
  --hairline: 1px solid var(--hair);
  --gap: 28px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --ink: #ffffff;
  --mute: #9e9e9e;
  --hair: #2e2e2e;
  --hover: #141414;
  --f1: #ffffff; --f2: #b3b3b3; --f3: #737373; --f4: #404040; --f5: #1f1f1f;
  --on-f1: #000000; --on-f2: #000000; --on-f3: #000000; --on-f4: #ffffff; --on-f5: #ffffff;
  --money: #39e27a;
  --up: #39e27a; --down: #ff5a4a; --vol: #333333;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.45 var(--f-ui);
  font-feature-settings: 'ss01';
}
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; }
button, input, select { font: inherit; color: inherit; }
* { scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 9px; top: 9px; background: var(--ink); color: var(--bg); padding: 9px 14px; z-index: 50; }
.num, td.r, th.r { font-family: var(--f-data); font-variant-numeric: tabular-nums; }
.mute { color: var(--mute); }
.m { color: var(--money); }
.m.out, .out .m, .out .rk-val, .out .chip-v, .out .ir-val b, .out .t .big { color: var(--down); }
.t .big.out { color: var(--down); }
.t .big.flat { color: inherit; }
.nowrap { white-space: nowrap; }

/* ─── Shell ───────────────────────────────────── */
.shell { display: grid; grid-template-columns: 267px minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  border-right: var(--rule); display: flex; flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 14px; padding: 23px 23px 21px; text-decoration: none; border-bottom: var(--rule); }
.ring { width: 46px; height: 46px; image-rendering: pixelated; }
.brand-name { font: 800 25px/1 var(--f-display); font-stretch: 125%; letter-spacing: -0.02em; text-transform: uppercase; }
.menu-btn { display: none; }
.nav { display: flex; flex-direction: column; padding: 9px 0; flex: 1; }
.nav-group { display: flex; flex-direction: column; padding: 12px 0; }
.nav-group + .nav-group { border-top: var(--hairline); }
.nav-label { font: 400 13px/1 var(--f-pixel); text-transform: uppercase; color: var(--mute); padding: 5px 23px 9px; }
.nav a {
  display: block; padding: 8px 23px; text-decoration: none;
  font: 500 15px/1.2 var(--f-data); text-transform: uppercase; letter-spacing: 0.03em;
}
.nav a:hover { background: var(--hover); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nav a[hidden] { display: none; }
.rail-foot { border-top: var(--rule); padding: 16px 23px; display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.who { font: 400 13px/1.2 var(--f-pixel); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-btn { background: none; border: var(--rule); padding: 5px 9px; font: 500 13px/1 var(--f-data); text-transform: uppercase; cursor: pointer; }
.theme-btn:hover { background: var(--ink); color: var(--bg); }

.work { min-width: 0; display: flex; flex-direction: column; }
.bar {
  position: sticky; top: 0; z-index: 10; background: var(--bg);
  display: flex; align-items: stretch; gap: 18px; padding: 14px var(--gap); border-bottom: var(--rule);
}
.search-btn {
  flex: 1; max-width: 598px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: none; border: var(--rule); padding: 9px 14px; cursor: pointer; text-align: left;
  font: 400 15px/1 var(--f-data); color: var(--mute);
}
.search-btn:hover { color: var(--ink); }
kbd { font: 400 13px/1 var(--f-pixel); border: 1px solid currentColor; padding: 3px 6px; }
.range { display: flex; border: var(--rule); }
.range button {
  background: none; border: 0; padding: 9px 14px; cursor: pointer;
  font: 600 14px/1 var(--f-data); letter-spacing: 0.04em;
}
.range button + button { border-left: var(--rule); }
.range button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.range button:hover:not([aria-pressed="true"]) { background: var(--hover); }
.range.off { opacity: 0.35; pointer-events: none; }
.sync { margin-left: auto; align-self: center; font: 400 13px/1.2 var(--f-pixel); color: var(--mute); text-transform: uppercase; text-align: right; }

main { padding: 32px var(--gap) 74px; outline: none; }

/* ─── Page heading ───────────────────────────── */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-bottom: var(--rule); padding-bottom: 16px; margin-bottom: 32px; }
.ph h1 {
  margin: 0; font: 800 clamp(34px, 4.6vw, 74px)/0.92 var(--f-display); font-stretch: 125%;
  letter-spacing: -0.03em; text-transform: uppercase; overflow-wrap: anywhere;
}
.ph .sub { font: 400 15px/1.4 var(--f-data); color: var(--mute); margin-top: 12px; }
.ph-who { display: flex; align-items: center; gap: 21px; }
.ph-who .face { width: 83px; height: 83px; }
.ph-tools { display: flex; gap: 9px; flex-wrap: wrap; }

h2 {
  margin: 0; font: 800 17px/1.1 var(--f-display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.005em;
}
.sec { margin-top: 46px; }
.sec:first-child { margin-top: 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; border-bottom: var(--rule); padding-bottom: 9px; margin-bottom: 0; }
.sec-h .more { font: 500 14px/1 var(--f-data); text-transform: uppercase; }
.cols { display: grid; gap: 37px; grid-template-columns: repeat(auto-fit, minmax(345px, 1fr)); }
.stack > * + * { margin-top: 46px; }
.cols2 { display: grid; gap: 37px; grid-template-columns: repeat(auto-fit, minmax(483px, 1fr)); }

/* ─── Ledger strip (key figures) ─────────────── */
.ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); border: var(--rule); }
.ledger > div { padding: 16px 18px 18px; border-right: var(--rule); margin-right: -2px; min-width: 0; }
.ledger dt { font: 500 14px/1.2 var(--f-data); text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.ledger dd { margin: 0; font: 800 clamp(28px, 2.6vw, 41px)/1 var(--f-display); font-stretch: 112%; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.ledger dd small { display: block; font: 400 14px/1.3 var(--f-data); color: var(--mute); margin-top: 7px; letter-spacing: 0; }

/* ─── Tables ─────────────────────────────────── */
.tw { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th {
  font: 500 13px/1.2 var(--f-data); text-transform: uppercase; letter-spacing: 0.04em; color: var(--mute);
  text-align: left; padding: 12px 12px 9px; border-bottom: var(--rule); white-space: nowrap;
}
.t td { padding: 9px 12px; border-bottom: var(--hairline); vertical-align: middle; }
.t td.r, .t th.r { text-align: right; white-space: nowrap; }
.t tbody tr:hover { background: var(--hover); }
.t tr[data-href] { cursor: pointer; }
.t .rank { width: 1%; color: var(--mute); padding-right: 6px; }
.t tr:nth-child(-n+3) .rank { color: var(--ink); }
.t .big { font: 700 17px/1 var(--f-data); font-variant-numeric: tabular-nums; color: var(--money); }
.t .big.n { color: inherit; }
.cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell a { text-decoration: none; }
.cell a:hover { text-decoration: underline; }
.empty { padding: 32px 12px; font: 400 15px/1.4 var(--f-data); color: var(--mute); border-bottom: var(--hairline); }
.share { display: flex; align-items: center; gap: 9px; justify-content: flex-end; }
.share i { display: block; height: 9px; background: var(--ink); min-width: 1px; }
.share b { font-weight: 400; min-width: 53px; text-align: right; }

.tw.clip tbody tr:nth-child(n+16) { display: none; }
.more-btn { margin-top: 14px; }

/* ─── Pixel things ───────────────────────────── */
.face { width: 28px; height: 28px; image-rendering: pixelated; flex: none; background: var(--f4); }
/* Item icons are pre-trimmed to their visible pixels, so every item fills the same box. */
.it { position: relative; width: 40px; height: 40px; flex: none; }
.it img { width: 100%; height: 100%; }
.it b {
  position: absolute; right: -3px; bottom: -4px; font: 400 13px/1 var(--f-pixel); color: #fff;
  text-shadow: 1px 1px 0 #3f3f3f; pointer-events: none;
}
.it.s20 { width: 34px; height: 34px; }
.it.s48 { width: 72px; height: 72px; }
.it.none { border: 1px dashed var(--mute); }
.tag { font: 400 13px/1 var(--f-pixel); text-transform: uppercase; border: 1px solid currentColor; padding: 3px 6px; white-space: nowrap; }
.tag.inv { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Pixel rank numbers (Minecraft Five digits, drawn as SVG so every block stays sharp) */
.rnum { display: block; height: 20px; width: auto; fill: currentColor; shape-rendering: crispEdges; }
.t .rank .rnum { margin-left: auto; }

/* ranked rows (leaderboards, items): one column, read top to bottom */
.split .t .hide-m { display: none; }
.rk { border-bottom: var(--hairline); }
.rk-head {
  display: grid; grid-template-columns: 56px 44px minmax(180px, 300px) 150px minmax(0, 1fr);
  gap: 0 18px; align-items: center; padding: 14px 0;
}
.rk-n { color: var(--mute); justify-self: end; }
.rl > :nth-child(-n+3) .rk-n { color: var(--ink); }
.rk-head .face { width: 44px; height: 44px; }
.rk-name { min-width: 0; }
.rk-name a { display: block; font: 700 18px/1.2 var(--f-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.rk-name a:hover { text-decoration: underline; }
.rk-name small, .ir-sub { display: block; font: 400 13px/1.3 var(--f-data); color: var(--mute); margin-top: 4px; }
.rk-val { font: 700 22px/1 var(--f-data); font-variant-numeric: tabular-nums; text-align: right; color: var(--money); white-space: nowrap; }
.rk-items { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; padding-left: 14px; }
.chip {
  display: grid; grid-template-columns: 40px auto; gap: 0 10px; align-items: center;
  padding: 6px 12px 6px 6px; border: 1px solid var(--hair); text-decoration: none; background: var(--bg); min-width: 0;
}
a.chip:hover, button.chip:hover { border-color: var(--ink); }
.chip-v { display: block; font: 700 15px/1.15 var(--f-data); font-variant-numeric: tabular-nums; color: var(--money); white-space: nowrap; }
.chip-p { display: block; font: 400 12px/1.2 var(--f-data); color: var(--mute); white-space: nowrap; margin-top: 2px; }
button.chip { cursor: pointer; text-align: left; font: inherit; color: inherit; }
button.chip[aria-expanded="true"] { border-color: var(--ink); background: var(--hover); }
.chip-rest { display: grid; place-items: center; width: 40px; height: 40px; font: 700 14px/1 var(--f-data); border: 1px dashed var(--mute); }
.rk-more { margin: 0 0 20px 118px; }
.rk-more[hidden] { display: none; }
.rk-more p { margin: 14px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 10px; }

.ir {
  display: grid; grid-template-columns: 56px 44px minmax(200px, 360px) 150px 72px minmax(0, 1fr);
  gap: 0 18px; align-items: center; padding: 10px 0; border-bottom: var(--hairline); text-decoration: none;
}
a.ir:hover { background: var(--hover); }
.ir .it { width: 44px; height: 44px; }
.ir-main { min-width: 0; }
.ir-name { display: block; font: 600 17px/1.2 var(--f-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ir-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ir-val b { display: block; text-align: right; font: 700 18px/1 var(--f-data); font-variant-numeric: tabular-nums; color: var(--money); white-space: nowrap; }
.ir-pct { font: 400 13px/1 var(--f-data); color: var(--mute); text-align: right; }
.ir-bar { height: 10px; background: var(--hover); }
.ir-bar i { display: block; height: 100%; background: var(--ink); min-width: 2px; }
.rl.clip > :nth-child(n+31) { display: none; }
.rest-line { padding: 16px 0 0; font: 400 14px/1.4 var(--f-data); color: var(--mute); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ─── Controls ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: none; border: var(--rule);
  min-height: 41px; padding: 9px 14px; cursor: pointer; text-decoration: none;
  font: 600 14px/1 var(--f-data); text-transform: uppercase; letter-spacing: 0.04em;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: var(--bg); color: var(--ink); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.seg-ctl { display: inline-flex; border: var(--rule); }
.seg-ctl button { background: none; border: 0; padding: 8px 13px; cursor: pointer; font: 600 14px/1 var(--f-data); text-transform: uppercase; }
.seg-ctl button + button { border-left: var(--rule); }
.seg-ctl button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font: 500 13px/1 var(--f-data); text-transform: uppercase; color: var(--mute); }
.field input, .field select {
  background: var(--bg); border: var(--rule); min-height: 41px; padding: 9px 12px; min-width: 0;
  font: 400 15px/1.2 var(--f-data); border-radius: 0;
}
.field input { min-width: 276px; }
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 21px; }
.sec .filters { margin: 28px 0 0; }
.sec .note { margin: 14px 0 0; font: 400 14px/1.5 var(--f-data); color: var(--mute); max-width: 90ch; }
.sec-h .btn { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.sec-h:has(.btn) { align-items: center; }
.sec > .err { margin-top: 18px; }
.tag.after { margin-left: 12px; vertical-align: 1px; }

/* ─── Charts ─────────────────────────────────── */
.chart { border: var(--rule); border-top: 0; padding: 14px 9px 5px; min-height: 276px; }
.chart.sm { min-height: 207px; }
.legend { display: flex; flex-wrap: wrap; gap: 9px 21px; padding: 12px 2px 0; font: 500 14px/1 var(--f-data); text-transform: uppercase; }
.legend .up, .legend .down, .legend .vol { display: inline-block; width: 12px; height: 16px; vertical-align: -2px; margin-right: 7px; }
.legend .up { background: var(--up); }
.legend .down { background: var(--down); }
.legend .vol { background: var(--vol); height: 9px; vertical-align: 0; }
.legend .note { text-transform: none; color: var(--mute); font-weight: 400; }
.legend i { display: inline-block; width: 25px; height: 0; border-top: 2px solid var(--ink); vertical-align: middle; margin-right: 7px; }
.legend i.dash { border-top-style: dashed; }
.legend i.dot { border-top-style: dotted; border-top-width: 3px; }
.uplot { font-family: var(--f-data); }
.u-legend { display: none; }
.u-cursor-x, .u-cursor-y { border-color: var(--ink) !important; }
.u-select { background: var(--hover); }

/* ─── Overlays ───────────────────────────────── */
/* Shulker box preview: vanilla tooltip sprites at GUI scale 2 */
.mct { position: fixed; z-index: 80; pointer-events: none; padding: 24px; width: max-content; }
.mct::before, .mct::after { content: ''; position: absolute; inset: 0; image-rendering: pixelated; }
.mct::before { border: 18px solid transparent; border-image: url('/assets/mc/tooltip_background.png') 9 fill / 18px stretch; }
.mct::after { border: 20px solid transparent; border-image: url('/assets/mc/tooltip_frame.png') 10 / 20px stretch; }
.mct > * { position: relative; z-index: 1; }
.mct-name { font: 400 20px/20px 'Minecraft Seven', var(--f-pixel); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; white-space: nowrap; }
.mct-name em { font-style: italic; }
.mct-note { margin-top: 6px; font: 400 20px/20px 'Minecraft Seven', var(--f-pixel); color: #aaa; text-shadow: 2px 2px 0 #2a2a2a; white-space: nowrap; }
.mct-box { position: relative; width: 352px; height: 136px; margin-top: 6px; }
.mct-box canvas { position: absolute; inset: 0; width: 352px; height: 136px; image-rendering: pixelated; }
.mct-box img, .mct-box i { position: absolute; width: 32px; height: 32px; }
.mct-box i { border: 2px dashed rgba(255, 255, 255, 0.4); }
.mct-box span { position: absolute; line-height: 0; }
.mct-box svg { display: block; shape-rendering: crispEdges; }
.has-box { cursor: help; }
.has-box > .it::after { content: ''; position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; background: var(--ink); border: 2px solid var(--bg); }

.tip {
  position: fixed; z-index: 60; pointer-events: none; max-width: 345px;
  background: var(--ink); color: var(--bg); padding: 9px 12px; font: 500 14px/1.4 var(--f-data);
}
.tip strong { font-family: var(--f-ui); font-weight: 700; }
.toast {
  position: fixed; right: 23px; bottom: 23px; z-index: 70; max-width: 437px;
  background: var(--bg); border: var(--rule); padding: 14px 16px; font: 500 15px/1.4 var(--f-data);
}
.palette {
  width: min(713px, calc(100vw - 37px)); margin-top: 12vh; padding: 0; border: var(--rule);
  background: var(--bg); color: var(--ink);
}
.palette::backdrop { background: rgba(0, 0, 0, 0.55); }
.palette input { width: 100%; border: 0; border-bottom: var(--rule); padding: 18px; font: 500 21px/1.2 var(--f-data); background: none; outline: none; }
.palette ul { list-style: none; margin: 0; padding: 7px 0; max-height: 52vh; overflow-y: auto; }
.palette li { display: flex; align-items: center; gap: 14px; padding: 9px 18px; cursor: pointer; }
.palette li[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.palette li .tag { margin-left: auto; }
.palette .hint { padding: 12px 18px; font: 400 14px/1.4 var(--f-data); color: var(--mute); }
dialog.modal { border: var(--rule); background: var(--bg); color: var(--ink); padding: 0; width: min(644px, calc(100vw - 37px)); }
dialog.modal::backdrop { background: rgba(0, 0, 0, 0.55); }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 21px; border-bottom: var(--rule); }
.modal-b { padding: 21px; display: grid; gap: 16px; }
.modal-f { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 21px; border-top: var(--rule); }

/* inventory grid (backups) */
.invgrid { display: grid; grid-template-columns: repeat(9, 51px); gap: 2px; background: var(--hair); padding: 2px; width: max-content; }
.invgrid div { width: 51px; height: 51px; background: var(--bg); display: grid; place-items: center; }

.loading { padding: 46px 0; font: 400 25px/1 var(--f-pixel); color: var(--mute); }
.loading::after { content: '▮'; animation: blink 1s steps(2) infinite; margin-left: 7px; }
@keyframes blink { 50% { opacity: 0; } }
.err { border: var(--rule); padding: 18px; font: 500 15px/1.4 var(--f-data); }
.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: var(--ink); color: var(--bg); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .flash, .loading::after { animation: none; } }

/* ─── Mobile ─────────────────────────────────── */
@media (max-width: 900px) {
  :root { --gap: 18px; }
  .shell { grid-template-columns: 1fr; }
  .rail { position: sticky; top: 0; z-index: 20; height: auto; border-right: 0; border-bottom: var(--rule); background: var(--bg); flex-direction: row; flex-wrap: wrap; align-items: center; overflow: visible; }
  .brand { border-bottom: 0; padding: 12px 18px; }
  .ring { width: 37px; height: 37px; }
  .brand-name { font-size: 21px; }
  .menu-btn { display: block; margin-left: auto; margin-right: 18px; background: none; border: var(--rule); padding: 9px 14px; font: 600 14px/1 var(--f-data); text-transform: uppercase; cursor: pointer; }
  .nav { display: none; width: 100%; border-top: var(--rule); max-height: 70vh; overflow-y: auto; }
  .nav.open { display: flex; }
  .rail-foot { display: none; }
  .nav.open + .rail-foot { display: flex; width: 100%; }
  .bar { position: static; flex-wrap: wrap; gap: 12px; }
  .search-btn { max-width: none; flex-basis: 100%; }
  .range { flex: 1; }
  .range button { flex: 1; padding: 10px 5px; }
  .sync { display: none; }
  main { padding-top: 23px; }
  .ledger { grid-template-columns: 1fr 1fr; }
  .cols2 { grid-template-columns: 1fr; }
  .rk-head { grid-template-columns: 36px 36px minmax(0, 1fr) auto; gap: 8px 10px; }
  .rk-head .face { width: 36px; height: 36px; }
  .rk-val { font-size: 18px; }
  .rk-items { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .rk-more { margin-left: 0; }
  .rnum { height: 15px; }
  .ir { grid-template-columns: 36px 40px minmax(0, 1fr) auto; gap: 6px 10px; }
  .ir .it { width: 40px; height: 40px; }
  .ir-pct { display: none; }
  .ir-bar { grid-column: 3 / -1; height: 6px; }
  .field input { min-width: 0; width: 100%; }
  .filters .field { flex: 1 1 253px; }
  .t .hide-m { display: none; }
  .invgrid { grid-template-columns: repeat(9, 39px); }
  .invgrid div { width: 39px; height: 39px; }
}
