@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  src: url("/fonts/geist-latin.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
  font-display: swap;
}

/* hcap.ai monochrome architectural design system */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --side-bg: rgba(3, 3, 3, 0.9);
  --surface-1: rgba(4, 4, 4, 0.94);
  --surface-2: #0d0d0d;
  --surface-3: #151515;
  --surface-hover: #101010;
  --code-bg: #050505;
  --border: #1f1f1f;
  --border-sub: #1a1a1a;
  --border-div: #1c1c1c;
  --border-input: #2c2c2c;
  --border-strong: #6a6a6a;
  --text-strong: #ffffff;
  --text: #dcdcdc;
  --muted: #8f8f8f;
  --disabled: #5c5c5c;
  --primary: #ffffff;
  --primary-hover: #e4e4e4;
  --primary-fg: #000000;
  --accent: #ffffff;
  --success: #46a758;
  --danger: #ff6b5e;
  --warning: #e5b84b;
  --mobile: #38bdf8;
  --desktop: #a78bfa;
  --tier-godly: #f26ca7;
  --tier-ancient: #b482f7;
  --tier-unique: #f2b21e;
  --scroll-thumb: #242428;
  --scroll-hover: #3f3f46;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.78);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fafafa;
  --side-bg: #ffffff;
  --surface-1: #ffffff;
  --surface-2: #f4f4f5;
  --surface-3: #ebebeb;
  --surface-hover: #f2f2f2;
  --code-bg: #f6f6f7;
  --border: #e4e4e7;
  --border-sub: #ececef;
  --border-div: #e4e4e7;
  --border-input: #d4d4d8;
  --border-strong: #a1a1aa;
  --text-strong: #000000;
  --text: #27272a;
  --muted: #52525b;
  --disabled: #a1a1aa;
  --primary: #000000;
  --primary-hover: #222222;
  --primary-fg: #ffffff;
  --accent: #000000;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --mobile: #0284c7;
  --desktop: #7c3aed;
  --tier-godly: #c00d78;
  --tier-ancient: #8433c9;
  --tier-unique: #b5800e;
  --scroll-thumb: #d4d4d8;
  --scroll-hover: #a1a1aa;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

:root {
  --r-xs: 2px;
  --r-sm: 3px;
  --r-md: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 120ms;
  --font: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-hover); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }
html { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; min-height: 100svh; overflow-x: clip; background: var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--primary); color: var(--primary-fg); }
:focus-visible { outline: 1px solid var(--text-strong); outline-offset: 2px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dim { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- hcap.ai Banner ASCII Field ---------- */
.dash-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 175px, rgba(0, 0, 0, 0.36) 320px, rgba(0, 0, 0, 0.30) 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 175px, rgba(0, 0, 0, 0.36) 320px, rgba(0, 0, 0, 0.30) 100%);
}
.auth-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 46% 52% at 50% 50%, rgba(0,0,0,.18) 0%, #000 100%);
  mask-image: radial-gradient(ellipse 46% 52% at 50% 50%, rgba(0,0,0,.18) 0%, #000 100%);
}
:root[data-theme="light"] .dash-bg,
:root[data-theme="light"] .auth-bg { opacity: 0.14; filter: invert(1); }

/* ---------- Dashboard Shell (hcap.ai 248px sidebar + fluid main) ---------- */
body.dash {
  position: relative;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100svh;
}
.side, .main, .login-wrap { position: relative; z-index: 1; }
.side, .main, .auth-wrap { position: relative; z-index: 1; }

.side {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 14px 18px;
  background: var(--side-bg);
  border-right: 1px solid var(--border-div);
  z-index: 40;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 8px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--primary);
  color: var(--primary-fg);
  flex: none;
}
.brand-mark svg { width: 14px; height: 14px; fill: currentColor; }
.word { font-size: 18px; font-weight: 600; letter-spacing: -0.025em; color: var(--text-strong); white-space: nowrap; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-xs);
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  line-height: 1;
}

.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 450;
  color: var(--muted);
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.side-nav a:hover { color: var(--text-strong); background: var(--surface-hover); }
.side-nav a[aria-current="page"] { color: var(--text-strong); background: var(--surface-3); font-weight: 500; }
.side-nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--text-strong);
  border-radius: 1px;
}

.side-foot { margin-top: auto; display: grid; gap: 10px; }
.side-box {
  padding: 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: grid;
  gap: 7px;
}
.side-box:empty { display: none; }
.side-box-label { font-size: 11px; font-family: var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.side-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--disabled); flex: none; }
.live.on .dot { background: var(--success); }
.live.on { color: var(--text-strong); }
.live.error .dot { background: var(--danger); }
.live.error { color: var(--danger); }
.side-rate { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.side-tools { display: flex; align-items: center; gap: 4px; }

.side-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 8px 0;
  border-top: 1px solid var(--border-div);
  font-size: 12.5px;
  color: var(--muted);
}
.side-link-btn { color: var(--muted); font-size: 12.5px; transition: color var(--fast) var(--ease); }
.side-link-btn:hover { color: var(--text-strong); }
.logout-form { display: contents; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-input);
  color: var(--muted);
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { border-color: var(--text-strong); color: var(--text-strong); background: var(--surface-3); }
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn.spin svg { animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Main Page & hcap.ai Wordmark Banner ---------- */
.main { min-width: 0; position: relative; z-index: 1; }
.banner { height: 184px; }
.page { max-width: 1240px; padding: 14px clamp(20px, 3.4vw, 44px) 72px; }
.view { animation: viewIn .45s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
.d-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.d-hello { color: var(--muted); font-size: 14.5px; }
.d-hello span { color: var(--text-strong); font-weight: 500; }
.head-status { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
h2 { font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: var(--text-strong); }

.panel {
  position: relative;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-1);
}

/* ---------- 4-Column Stats (exact hcap.ai .stats) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; }
.stat {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 20px 22px 22px;
  border-left: 1px solid var(--border-div);
  min-width: 0;
}
.stat:first-child { border-left: 0; }
.stat .lab { color: var(--muted); font-size: 13.5px; }
.stat .num {
  margin-top: 8px;
  font-size: clamp(1.55rem, 2.3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-sub { margin-top: 4px; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Overview Grid ---------- */
.ov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.card { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head .seg { margin-left: auto; margin-right: 6px; }

.kv { display: grid; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13.5px; }
.kv > div + div { border-top: 1px solid var(--border-sub); }
.kv dt { color: var(--muted); }
.kv dd { color: var(--text-strong); }

.jump-links { display: grid; }
.jump-link {
  display: grid;
  gap: 2px;
  padding: 10px 8px;
  margin: 0 -8px;
  border-radius: var(--r-sm);
  border-top: 1px solid var(--border-sub);
  transition: background-color var(--fast) var(--ease);
}
.jump-link:first-child { border-top: 0; }
.jump-link:hover { background: var(--surface-3); }
.jump-link b { font-size: 13.5px; font-weight: 500; color: var(--text-strong); }
.jump-link small { font-size: 12px; color: var(--muted); }

/* ---------- Tabs & Segmented Controls (hcap.ai sharp inverted tabs) ---------- */
.tabs, .seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 2px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  width: fit-content;
  max-width: 100%;
}
.tabs button, .seg button {
  padding: 5px 12px;
  border-radius: var(--r-xs);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.tabs button:hover, .seg button:hover { color: var(--text-strong); }
.tabs button[aria-pressed="true"], .seg button[aria-pressed="true"] {
  background: var(--primary);
  color: var(--primary-fg);
}
.game-switch { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.game-switch button { text-align: center; padding: 5px 8px; font-size: 12.5px; }

/* ---------- Buttons & Pills (hcap.ai bottom-up invert on primary) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-input);
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-strong);
  white-space: nowrap;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.btn:hover { background: var(--surface-3); border-color: var(--border-strong); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s var(--ease);
}
.btn.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
}
.btn.primary:hover { color: var(--primary); border-color: var(--primary); background: var(--primary); }
.btn.primary:hover::before { transform: none; }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.btn svg { width: 14px; height: 14px; flex: none; }
.btn.done { color: var(--success); border-color: var(--success); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border-input);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.pill.on, .pill.ok { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.pill.warn { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 55%, transparent); }
.pill.off, .pill.bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 55%, transparent); }

/* ---------- Split copy button & menu ---------- */
.split { position: relative; display: inline-flex; }
.split > .btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.split > .caret { width: 26px; padding: 0; border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.split > .caret svg { transition: transform var(--fast) var(--ease); }
.split > .caret[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu {
  position: absolute;
  z-index: 35;
  top: calc(100% + 4px);
  right: 0;
  min-width: 240px;
  padding: 4px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.menu button, .menu a { display: grid; gap: 1px; width: 100%; padding: 7px 10px; border-radius: var(--r-xs); text-align: left; font-size: 12.5px; color: var(--text-strong); }
.menu button:hover, .menu a:hover { background: var(--surface-3); }
.menu small { font-family: var(--mono); font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.menu hr { height: 1px; margin: 4px 6px; border: 0; background: var(--border); }
.menu .mark { margin-left: 6px; color: var(--success); }

/* ---------- List Panel, Toolbar, Inputs, Dropdowns ---------- */
.list-panel { padding: 18px 20px 20px; min-width: 0; container: list / inline-size; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.result-count { font-size: 12.5px; color: var(--muted); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-input);
  background: var(--bg);
  color: var(--muted);
  transition: border-color var(--fast) var(--ease);
}
.field:hover { border-color: var(--border-strong); }
.field:focus-within { border-color: var(--text-strong); box-shadow: 0 0 0 1px var(--text-strong); }
.field svg { width: 15px; height: 15px; flex: none; }
.field input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text-strong); font-size: 13.5px; }
.field input::placeholder { color: var(--disabled); }
.search { flex: 1 1 260px; }
.search input { flex: 1; }
.search kbd { padding: 1px 5px; border-radius: var(--r-xs); border: 1px solid var(--border-input); font-size: 11px; color: var(--muted); }
.money { width: 102px; }
.money input { width: 100%; -moz-appearance: textfield; }
.money input::-webkit-outer-spin-button, .money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.dd { position: relative; }
.dd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 178px;
  height: 34px;
  padding: 0 10px 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-input);
  background: var(--bg);
  font-size: 13px;
  color: var(--text-strong);
  transition: border-color var(--fast) var(--ease);
}
.dd-btn:hover, .dd-btn[aria-expanded="true"] { border-color: var(--text-strong); }
.dd-btn svg { width: 14px; height: 14px; color: var(--muted); transition: transform var(--fast) var(--ease); }
.dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-list {
  position: absolute;
  z-index: 35;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  width: max-content;
  padding: 4px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.dd-list button { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 7px 10px; border-radius: var(--r-xs); text-align: left; font-size: 13px; color: var(--text); }
.dd-list button:hover, .dd-list button.focus { background: var(--surface-3); color: var(--text-strong); }
.dd-list button[aria-selected="true"] { color: var(--text-strong); font-weight: 500; }
.dd-list button svg { width: 13px; height: 13px; color: var(--text-strong); }
.dd.compact .dd-btn { min-width: 126px; }

.filter-btn { display: inline-flex; align-items: center; gap: 7px; }
.filter-count { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--r-xs); background: var(--primary); color: var(--primary-fg); font-family: var(--mono); font-size: 10.5px; font-weight: 600; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.active-filters:empty { display: none; }
.chip {
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-input);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--muted);
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--text-strong); }
.chip[aria-pressed="true"], .chip.on { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }

.new-banner { display: flex; justify-content: center; margin: 12px 0 0; }
.new-banner button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 12.5px;
  font-weight: 500;
}
.new-banner button:hover { background: var(--primary-hover); }

.list { display: grid; margin-top: 14px; }
.empty { padding: 40px 16px; border-radius: var(--r-sm); border: 1px dashed var(--border); text-align: center; font-size: 13.5px; color: var(--muted); }
.empty .btn { margin-top: 12px; }
.more { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-sub); font-size: 12.5px; color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; width: 100%; }
.pager span { font-size: 12px; color: var(--muted); padding: 0 8px; }

/* ---------- Avatars, Items, Badges ---------- */
.avatar { position: relative; display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-3); border: 1px solid var(--border); font-size: 11px; font-weight: 600; color: var(--muted); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 52px; height: 52px; font-size: 14px; }
.av-wrap { position: relative; display: inline-flex; flex: none; }
.block-chip { position: absolute; right: -4px; bottom: -4px; z-index: 2; display: grid; place-items: center; width: 16px; height: 16px; border-radius: var(--r-xs); border: 1px solid var(--danger); background: var(--bg); color: var(--danger); opacity: 0; transition: opacity var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.pv-row:hover .block-chip, .prow:hover .block-chip, .block-chip:focus-visible { opacity: 0.92; }
.block-chip svg { width: 10px; height: 10px; }
.block-chip:hover { opacity: 1; background: var(--danger); color: #000; }

.item-art { position: relative; display: inline-block; flex: none; width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-2); }
.item-art img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: contain; }
.item-art.lg { width: 42px; height: 42px; }
.item-art.xl { width: 48px; height: 48px; }
.items-row { display: flex; gap: 14px; align-items: center; justify-content: center; min-width: 0; }
.tier-ancient { color: var(--tier-ancient); }
.tier-godly { color: var(--tier-godly); }
.tier-unique { color: var(--tier-unique); }
.tier-chroma { background: linear-gradient(90deg, #ff6a6a, #ffab46, #4bd04b, #5b9dff, #b56cf0, #e0409a); -webkit-background-clip: text; background-clip: text; color: transparent; }

.device-badge { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; margin-left: 6px; padding: 0; border: 0; background: none; font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1; white-space: nowrap; }
.device-badge svg { width: 14px; height: 14px; flex: none; }
.device-badge.mobile { color: var(--mobile); }
.device-badge.desktop { color: var(--desktop); }
.who b:has(.device-badge) { display: flex; align-items: center; min-width: 0; }

.am-badges { display: inline-flex; gap: 2px; vertical-align: middle; }
.am-b { display: grid; place-items: center; width: 15px; height: 15px; border-radius: var(--r-xs); color: #fff; font-weight: 700; font-size: 9px; line-height: 1; user-select: none; }
.am-b.n { background: #3aa818; }
.am-b.m { background: #7e10d4; }
.am-b.f { background: #108ed5; }
.am-b.r { background: #d51057; }
.item-art .am-badges { position: absolute; left: 50%; transform: translateX(-50%); bottom: -5px; pointer-events: none; white-space: nowrap; }
.item-art .am-b { width: 12px; height: 12px; font-size: 8px; }

/* ---------- Player & Server Rows (hcap.ai hairline table aesthetic) ---------- */
.pv-list { display: grid; }
.pv-row {
  position: relative;
  display: grid;
  grid-template-columns: 92px auto minmax(0, 1.15fr) minmax(0, 0.9fr) 96px auto;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-top: 1px solid var(--border-sub);
  cursor: pointer;
  transition: background-color var(--fast) var(--ease);
}
.pv-row:first-child { border-top: 0; }
.pv-row:hover { background: var(--surface-hover); }
.pv-when { display: grid; gap: 1px; min-width: 0; }
.pv-when b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--text); }
.pv-when small { font-family: var(--mono); font-size: 11px; color: var(--disabled); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-row.fresh .pv-when b, .srv.fresh .srv-when b { color: var(--text-strong); }
.pv-row.recent .pv-when b, .srv.recent .srv-when b { color: var(--muted); }
.pv-row.old .pv-when b, .srv.old .srv-when b { color: var(--disabled); }
.pv-row .who, .prow .who, .srv-top .who { display: grid; gap: 1px; min-width: 0; }
.pv-row .who b, .prow .who b, .srv-top .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 500; color: var(--text-strong); letter-spacing: -0.01em; }
.pv-row .who small, .prow .who small, .srv-top .who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.pv-row .worth, .prow .worth, .srv-top .worth { text-align: right; font-family: var(--mono); font-size: 13.5px; font-weight: 500; color: var(--text-strong); letter-spacing: -0.02em; }
.worth.hi, .worth.whale { color: var(--text-strong) !important; }
.pv-row .row-actions, .prow .row-actions { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }

.srv { position: relative; border-top: 1px solid var(--border-sub); background: transparent; }
.srv:first-child { border-top: 0; }
.srv-row { display: grid; grid-template-columns: 106px 124px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 8px; cursor: pointer; transition: background-color var(--fast) var(--ease); }
.srv-row:hover { background: var(--surface-hover); }
.srv-when { display: grid; gap: 1px; min-width: 0; }
.srv-when b { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--text-strong); }
.srv-when small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.srv-id { display: grid; gap: 1px; min-width: 0; }
.srv-id b { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--text-strong); }
.srv-id small { font-size: 11.5px; color: var(--muted); }
.srv-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.srv-top .who { flex: 0 1 220px; }
.srv-top .srv-items { flex: 1 1 auto; }
.srv-actions { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.expand { width: 28px; padding: 0; }
.srv.open .expand svg { transform: rotate(180deg); }
.srv-players { border-top: 1px solid var(--border-sub); background: var(--surface-2); padding: 6px 10px 8px; }
.srv-players .note-line { padding: 4px 6px 6px; font-size: 11.5px; color: var(--muted); }
.prow { display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 0.9fr) 88px auto; align-items: center; gap: 12px; padding: 7px 6px; border-radius: var(--r-xs); cursor: pointer; }
.prow:hover { background: var(--surface-3); }

@keyframes arrive { from { background-color: rgba(255, 255, 255, 0.14); } to { background-color: transparent; } }
.srv.is-new, .pv-row.is-new { animation: arrive 1.2s var(--ease) 1; }

/* ---------- Tables, Health, Capacity, Accounts ---------- */
table.board { width: 100%; border-collapse: collapse; font-size: 13px; }
.board th { padding: 9px 10px; text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--border); }
.board td { padding: 9px 10px; border-top: 1px solid var(--border-sub); white-space: nowrap; }
.board .acts { text-align: right; }

.health-list { display: grid; gap: 12px; }
.health-row { display: flex; gap: 10px; align-items: flex-start; }
.health-row div { display: grid; gap: 2px; }
.health-row b { font-size: 13.5px; font-weight: 500; color: var(--text-strong); }
.health-row small { font-size: 12px; color: var(--muted); line-height: 1.45; }
.health-dot { flex: none; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--disabled); }
.health-dot.d-ok { background: var(--success); }
.health-dot.d-warn { background: var(--warning); }
.health-dot.d-bad { background: var(--danger); }

.ctl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ctl-span { grid-column: 1 / -1; }
.ctl-card { display: grid; gap: 14px; padding: 18px 20px; }
.ctl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ctl-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ctl-buttons .btn { height: 36px; padding: 0 18px; }
.ctl-buttons .btn.armed { border-color: var(--danger); color: var(--danger); }
.ctl-help { color: var(--muted); font-size: 13px; line-height: 1.5; }
.ctl-help li { margin: 3px 0; }
.ctl-help code { padding: 1px 5px; border-radius: var(--r-xs); background: var(--surface-3); border: 1px solid var(--border); font-family: var(--mono); font-size: 12px; color: var(--text-strong); }
.ctl-label { margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.ctl-log { margin: 0; padding: 10px 12px; max-height: 200px; overflow: auto; white-space: pre-wrap; font-size: 12px; color: var(--muted); background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--r-sm); }

.cap-rows { display: grid; gap: 14px; }
.cap-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-strong); }
.cap-bar { height: 4px; margin: 6px 0; border-radius: 1px; background: var(--surface-3); overflow: hidden; }
.cap-bar i { display: block; height: 100%; background: var(--text-strong); }
.cap-row.warn .cap-bar i { background: var(--warning); }
.cap-row.bad .cap-bar i { background: var(--danger); }
.cap-row p { font-size: 12px; color: var(--muted); }

.acct-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.acct-sum b { font-family: var(--mono); font-size: 24px; font-weight: 500; letter-spacing: -0.03em; color: var(--text-strong); }
.acct-sum span { font-size: 13px; color: var(--muted); }
.acct-bar { display: flex; height: 4px; gap: 2px; margin-bottom: 14px; overflow: hidden; border-radius: 1px; background: var(--surface-3); }
.acct-bar i { display: block; height: 100%; background: var(--c); }
.acct-states { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px; margin-bottom: 14px; }
.acct-state { display: grid; grid-template-columns: 7px 1fr auto; align-items: baseline; gap: 2px 8px; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--bg); text-align: left; }
.acct-state:hover, .acct-state[aria-pressed="true"] { border-color: var(--text-strong); background: var(--surface-3); }
.acct-state i { width: 7px; height: 7px; align-self: center; border-radius: 50%; background: var(--c); }
.acct-state b { font-size: 13px; font-weight: 500; color: var(--text-strong); }
.acct-state .n { font-family: var(--mono); font-size: 12.5px; color: var(--text-strong); }
.acct-state small { grid-column: 2 / -1; font-size: 11.5px; color: var(--muted); }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.acct { display: grid; gap: 2px; padding: 7px 8px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--bg); text-align: left; }
.acct:hover { border-color: var(--text-strong); background: var(--surface-3); }
.acct b { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--text-strong); }
.acct b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.acct small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.s-scanning { --c: var(--success); }
.s-joining { --c: var(--text-strong); }
.s-cooldown { --c: var(--muted); }
.s-retrying { --c: var(--warning); }
.s-idle, .s-waiting, .s-waiting_slot, .s-starting, .s-unknown, .s-parked { --c: var(--border-strong); }
.s-stopped { --c: var(--danger); }
.acct-attention { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-sub); font-size: 12.5px; color: var(--muted); }
.acct-attention b { color: var(--danger); font-weight: 500; }

/* ---------- Forms, Keys, Alerts, Autojoin Code Box ---------- */
.key-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.key-form input[type="text"], .key-form input[type="number"], .split-custom input[type="number"], .notify-field input {
  height: 34px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-input);
  background: var(--bg);
  color: var(--text-strong);
  padding: 0 10px;
  font-size: 13px;
}
.key-form input[type="text"] { flex: 1 1 160px; min-width: 0; }
.key-form input:focus, .notify-field input:focus, .aj-template:focus { outline: none; border-color: var(--text-strong); box-shadow: 0 0 0 1px var(--text-strong); }
.key-form .field.money.wide { flex: 1 1 160px; min-width: 140px; }
.key-form .field.money.wide input { border: 0; box-shadow: none; padding: 0; height: auto; }
.key-box { display: block; padding: 10px 12px; border-radius: var(--r-sm); background: var(--code-bg); border: 1px solid var(--border); word-break: break-all; font-size: 12.5px; }
.key-new { display: grid; gap: 6px; }
.split-custom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--muted); }
.split-custom input[type="number"] { width: 72px; text-align: center; }

.notify-form { display: grid; gap: 12px; }
.notify-master { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-strong); cursor: pointer; }
.notify-games { display: grid; gap: 10px; }
.notify-game { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px; display: grid; gap: 10px; background: var(--bg); }
.notify-game-head { display: flex; align-items: center; justify-content: space-between; }
.notify-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.notify-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.notify-field { display: grid; gap: 4px; font-size: 12px; color: var(--muted); flex: 1 1 180px; }
.notify-field.short { flex: 0 0 110px; }
.notify-foot { display: flex; justify-content: flex-end; }

.aj-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.aj-form { display: grid; gap: 12px; }
.aj-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.aj-col { display: grid; gap: 6px; min-width: 0; }
.aj-col .ctl-label { margin: 0; font-size: 12px; color: var(--muted); }
.aj-col .dd, .aj-col .dd-btn, .aj-col .seg { width: 100%; }
.aj-col .seg { display: grid; grid-template-columns: repeat(3, 1fr); }
.aj-col .seg button { text-align: center; padding: 5px 6px; }
.aj-actions { display: flex; justify-content: flex-end; margin-top: 2px; }

.code { margin: 2px 0; border: 1px solid #222; border-radius: var(--r-md); background: var(--code-bg); overflow: hidden; }
.code-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--border-div); font: 12.5px var(--mono); color: var(--muted); min-height: 44px; }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 12.5px/1.75 var(--mono); color: #e4e4e4; white-space: pre; scrollbar-width: thin; scrollbar-color: #2c2c2c transparent; }
.code .lc { color: var(--muted); font-style: italic; }
.code .ls { color: #b5e890; }
.code .ln { color: var(--warning); }
.code .lk { color: var(--text-strong); font-weight: 500; }
.code .lf { color: var(--text-strong); }
.code .secret { cursor: pointer; filter: blur(6px); user-select: none; }
.code .secret.show { filter: none; user-select: text; }

.aj-field { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 2px; }
.aj-field > span:first-child { font-size: 12px; color: var(--muted); }
.aj-range-row { display: flex; align-items: center; gap: 10px; }
.aj-range-row input[type="range"] { flex: 1 1 auto; accent-color: var(--primary); }
.aj-range-val { font-family: var(--mono); font-size: 12.5px; color: var(--text-strong); }
.aj-template { width: 100%; min-height: 84px; border-radius: var(--r-sm); border: 1px solid var(--border-input); background: var(--bg); color: var(--text-strong); padding: 10px 12px; font-size: 13px; font-family: var(--mono); resize: vertical; }

.flat-list { display: grid; }
.flat-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-top: 1px solid var(--border-sub); }
.flat-row:first-child { border-top: 0; }
.flat-row:hover { background: var(--surface-hover); }
.flat-row .who { display: grid; min-width: 0; flex: 1 1 auto; }
.flat-row .who b { font-size: 13.5px; font-weight: 500; color: var(--text-strong); }
.flat-row .who small { font-size: 12px; color: var(--muted); }
.left-ring .avatar { border-color: var(--danger); box-shadow: 0 0 0 2px var(--danger); }

/* ---------- Settings Popover, Drawers, Toasts ---------- */
.pop {
  position: fixed;
  z-index: 60;
  bottom: 72px;
  left: 14px;
  width: 300px;
  max-height: calc(100dvh - 96px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.pop-label { margin-bottom: 6px; font-size: 11.5px; font-family: var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.pop-foot { display: flex; justify-content: flex-end; padding-top: 10px; border-top: 1px solid var(--border-div); }

.toasts { position: fixed; z-index: 90; right: 20px; bottom: 20px; display: grid; gap: 8px; pointer-events: none; }
.toast { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--bg); box-shadow: var(--shadow); font-size: 13px; color: var(--text-strong); pointer-events: auto; }
.toast.bad { border-color: var(--danger); color: var(--danger); }
.toast svg { width: 14px; height: 14px; color: var(--success); }
.toast-action { margin-left: 6px; padding: 2px 8px; border-radius: var(--r-xs); background: var(--primary); color: var(--primary-fg); font-size: 12px; font-weight: 500; }

.drawer, .fdrawer { position: fixed; inset: 0; z-index: 70; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); }
.drawer-panel, .fdrawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  overflow: auto;
  padding: 22px;
  border-left: 1px solid var(--border-strong);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.fdrawer-panel { width: min(360px, 100vw); display: flex; flex-direction: column; gap: 20px; }
.fdrawer-head { display: flex; align-items: center; justify-content: space-between; }
.fgroup { display: grid; gap: 8px; }
.fgroup-label { font-size: 12px; font-family: var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.fgroup-help { font-size: 12px; color: var(--muted); }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.fdrawer-foot { margin-top: auto; display: flex; gap: 8px; }
.fdrawer-foot .btn { flex: 1; }

.drawer-close { position: absolute; top: 16px; right: 16px; }
.d-hero { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.d-hero-text { min-width: 0; flex: 1; }
.d-hero h3 { font-size: 18px; font-weight: 600; color: var(--text-strong); }
.d-hero p { font-size: 12.5px; color: var(--muted); }
.block-btn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--danger); color: var(--danger); font-size: 12.5px; }
.block-btn:hover { background: var(--danger); color: #000; }
.block-btn svg { width: 13px; height: 13px; }
.d-value { margin: 18px 0 4px; }
.d-value strong { display: block; font-family: var(--mono); font-size: 28px; font-weight: 500; letter-spacing: -0.04em; color: var(--text-strong); }
.d-value span { font-size: 12.5px; color: var(--muted); }
.d-section { margin-top: 18px; }
.d-label { margin-bottom: 8px; font-size: 11.5px; font-family: var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.d-items { display: grid; gap: 6px; }
.d-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-2); }
.d-item .who { display: grid; flex: 1; min-width: 0; }
.d-item .who b { font-size: 13.5px; font-weight: 500; color: var(--text-strong); }
.d-item .who small { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.d-item .worth { font-family: var(--mono); font-size: 13px; color: var(--text-strong); }
.d-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.d-stat { padding: 10px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-2); }
.d-stat span { display: block; font-size: 11.5px; color: var(--muted); }
.d-stat strong { font-family: var(--mono); font-size: 13.5px; font-weight: 500; color: var(--text-strong); }
.d-join { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.d-join .menu { right: auto; left: 0; }
.d-job { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-2); font-size: 12px; }
.d-job span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-state { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; font-weight: 500; color: var(--text-strong); }
.d-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.d-note { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.link { color: var(--text-strong); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }

/* ---------- Auth / Login Page ---------- */
body.auth { display: grid; place-items: center; min-height: 100dvh; padding: 24px; }
.login-wrap { width: 100%; max-width: 360px; }
.login-card { display: grid; gap: 14px; padding: 26px 24px; }
.login-card .brand { padding: 0; }
.login-lede { font-size: 13.5px; color: var(--muted); }
.login-input {
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-strong);
  padding: 0 12px;
  font-size: 13.5px;
}
.login-input:focus { outline: none; border-color: var(--text-strong); box-shadow: 0 0 0 1px var(--text-strong); }
.login-card .btn { height: 40px; }
.login-error { color: var(--danger); font-size: 12.5px; }

/* ---------- Responsive (<= 860px collapses sidebar into top bar) ---------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border-div); }
  .ov-grid, .ctl-grid, .aj-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  body.dash { grid-template-columns: minmax(0, 1fr); }
  .banner { height: 132px; }
  .dash-bg { -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 125px, rgba(0, 0, 0, 0.34) 240px, rgba(0, 0, 0, 0.28) 100%); mask-image: linear-gradient(to bottom, #000 0, #000 125px, rgba(0, 0, 0, 0.34) 240px, rgba(0, 0, 0, 0.28) 100%); }
  .side {
    position: sticky;
    top: 0;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border-div);
  }
  .side-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 2px; order: 3; width: 100%; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { white-space: nowrap; padding: 6px 10px; font-size: 13.5px; }
  .side-nav a[aria-current="page"]::before { left: 8px; right: 8px; top: auto; bottom: 0; width: auto; height: 2px; }
  .side-foot { margin-top: 0; margin-left: auto; display: flex; align-items: center; gap: 8px; }
  .side-box { padding: 2px; border: 0; background: transparent; }
  .side-box-label, .side-rate, .side-links { display: none; }
  .page { padding: 14px 16px 48px; }
  .d-bar { flex-direction: column; align-items: flex-start; gap: 4px; }
  .aj-row-2 { grid-template-columns: 1fr; }
  .pop { bottom: auto; top: 60px; left: auto; right: 16px; }
}

@container list (max-width: 760px) {
  .pv-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .pv-when { grid-column: 1 / -1; display: flex; gap: 8px; }
  .pv-row .items-row { display: none; }
  .pv-row .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .srv-row { grid-template-columns: 1fr auto; }
  .srv-id, .srv-items { display: none; }
  .srv-top { grid-column: 1 / -1; }
  .prow { grid-template-columns: auto minmax(0, 1fr) auto; }
  .prow .items-row { display: none; }
}
