:root {
  --bg: #08090c;
  --bg2: #0d0e12;
  --paper: #15171d;
  --paper2: #1b1e26;
  --hover: #232630;
  --ink: #f5f6f8;
  --mute: #8a909e;
  --faint: #5c6170;
  --line: #1e212a;
  --line2: #2b2f3a;
  --chrome: #0a0b0f;
  --accent: #3d8bfd;
  --accent2: #5b9dff;
  --accent-ink: #fff;
  --accent-soft: rgba(61, 139, 253, .16);
  --accent-line: rgba(61, 139, 253, .4);
  --win: #35d68f;
  --win-soft: rgba(53, 214, 143, .12);
  --red: #ff5f6e;
  --warn: #f5a524;
  --btn: #3d8bfd;
  --radius: 14px;
  --shadow: 0 18px 40px -28px #000;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 14px/1.45 "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 12% -10%, rgba(61, 139, 253, .14), transparent 55%),
    var(--bg);
}
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

.gate {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
body.in .gate { display: none; }

.gate-box {
  width: min(400px, calc(100% - 32px));
  display: grid;
  gap: 12px;
  padding: 28px 28px 24px;
  background: linear-gradient(180deg, #171a22 0%, #12141a 100%);
  border: 1px solid var(--line2);
  border-radius: 20px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.gate-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0 0 8px;
  text-align: center;
}
.gate-brand img {
  height: 40px;
  object-fit: contain;
}
.gate-brand strong {
  font-size: 18px;
  letter-spacing: .14em;
  font-weight: 700;
}
.gate-brand em {
  font-style: normal;
  color: var(--mute);
  font-size: 13px;
}
.gate-box input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: #0d0f14;
  color: var(--ink);
  outline: none;
}
.gate-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.gate-box button[type="submit"] {
  height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent2), var(--accent));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(61, 139, 253, .9);
}
.gate-box button[type="submit"]:hover { filter: brightness(1.08); }
.gate-box .err {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  text-align: center;
}
.gate-box .err.off { display: none; }

.dash { display: none; }
body.in { overflow: hidden; }
body.in .dash {
  --side-w: 76px;
  position: relative;
  display: grid;
  height: 100%;
  min-height: 100%;
  grid-template-columns: var(--side-w) 1fr;
  grid-template-rows: 64px minmax(0, 1fr);
  transition: grid-template-columns .2s ease;
  overflow: hidden;
  background: transparent;
}
body.in .dash.wide { --side-w: 248px; }

.side {
  grid-column: 1;
  grid-row: 1 / 3;
  z-index: 2;
  background: linear-gradient(180deg, #0c0d12 0%, #08090c 100%);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: #2b2f3a transparent;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin: 0 0 10px;
  padding: 4px 6px 12px;
  border-bottom: 1px solid var(--line);
}
.brand img {
  height: 32px;
  width: auto;
  max-width: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand span {
  display: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  white-space: nowrap;
}
.dash.wide .brand { justify-content: flex-start; padding-left: 8px; }
.dash.wide .brand span { display: block; }

.top {
  grid-column: 2;
  grid-row: 1;
  background: rgba(10, 11, 15, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px 0 36px;
}
.top h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  flex: 1;
}
.who {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px 0 6px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
  color: var(--ink);
}
.who:hover { border-color: var(--accent-line); background: var(--hover); }
.ava {
  width: 28px;
  height: 28px;
  border-radius: 99px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='3.2' fill='%235b9dff'/%3E%3Cpath d='M5 19c1.2-3.2 3.5-4.8 7-4.8s5.8 1.6 7 4.8' fill='%235b9dff'/%3E%3C/svg%3E") center/18px no-repeat;
}
.who em { font-style: normal; font-weight: 600; font-size: 13px; }
.who .out {
  color: var(--mute);
  font-size: 12px;
  font-weight: 600;
  padding-left: 8px;
  border-left: 1px solid var(--line2);
}

.fold {
  position: absolute;
  grid-column: 1;
  grid-row: 1;
  top: 16px;
  left: calc(var(--side-w) - 14px);
  z-index: 8;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line2);
  border-radius: 99px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 6px 16px -8px #000;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: left .2s ease;
}
.fold:hover { border-color: var(--accent); color: var(--accent2); }
.fold svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  transition: transform .2s ease;
}
.dash.wide .fold svg { transform: rotate(180deg); }

.nav {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--mute);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0;
  overflow: hidden;
  flex: 0 0 44px;
}
.dash.wide .side { align-items: stretch; padding: 14px 12px 18px; }
.dash.wide .nav {
  width: auto;
  flex: 0 0 44px;
  padding: 0 12px;
  justify-content: flex-start;
}
.nav svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.nav span {
  display: none;
  font-weight: 600;
  font-size: 13px;
}
.dash.wide .nav span { display: inline; }
.nav:hover { background: var(--hover); color: var(--ink); }
.nav.on {
  background: var(--accent-soft);
  color: var(--accent2);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.side-space {
  flex: 1 1 auto;
  min-height: 8px;
  width: 100%;
  pointer-events: none;
}
.nav.shield { margin-top: 0; }
#hubForm { display: none !important; }
.boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.sheet .boards .board + .board { margin-top: 0; }
.boards > .board:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sheet form + .board { margin-top: 14px; }
@media (max-width: 960px) {
  .boards { grid-template-columns: 1fr; }
  .boards > .board:last-child:nth-child(odd) { grid-column: auto; }
}

.main {
  grid-column: 2;
  grid-row: 2;
  background: transparent;
  min-height: 0;
  overflow: auto;
}
.page { display: none; }
.page.on { display: block; }
.page.wait {
  max-width: 540px;
  margin: 72px auto;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 28px;
}
.page.wait h2 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.page.wait p {
  margin: 0 0 14px;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.55;
}
.page.sheet { padding: 20px 24px 36px; }
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  margin: 0 0 16px;
}
.kpi {
  flex: none;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: left;
  padding: 14px 16px;
  cursor: pointer;
  color: inherit;
  box-shadow: var(--shadow);
}
.kpi:last-child { border-right: 1px solid var(--line); }
.kpi:hover {
  background: var(--paper2);
  border-color: var(--accent-line);
}
.kpi b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.kpi span {
  color: var(--mute);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.board h3 {
  margin: 0;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mute);
  border-bottom: 1px solid var(--line);
}
.tog {
  width: 36px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #3a4150;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
}
.tog::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  transition: left .15s ease;
}
.tog.yes { background: var(--win); }
.tog.yes::after { left: 18px; }
.tog.no { background: #3a4150; }
.tog:disabled { opacity: .55; cursor: wait; }
.bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.bar .save { height: 38px; margin: 0; }
.bar select, .bar input {
  height: 38px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}
.bar select:focus, .bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.bar select { min-width: 140px; }
.bar input { width: min(280px, 100%); }
.bar .tab {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--paper);
  color: var(--mute);
  font-weight: 600;
  cursor: pointer;
}
.bar .tab.on {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent2);
}
.tx-st {
  font-weight: 600;
  text-transform: lowercase;
}
.tx-st.auto-accepted, .tx-st.paid, .tx-st.sent { color: var(--win); }
.tx-st.confirming, .tx-st.queued { color: var(--warn); }
.tx-st.rejected { color: var(--red); }
.cash-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin: 0 0 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.cash-tabs .tab {
  height: 40px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--mute);
  font-weight: 600;
  cursor: pointer;
}
.cash-tabs .tab.on {
  background: var(--paper2);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line2);
}
.bar .go {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}
.bar .go:hover { background: var(--accent2); }
.bar .go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.board {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: auto;
  min-height: 0;
  box-shadow: var(--shadow);
}
.board .bar { padding: 0 16px 12px; margin: 0; }
.board #csLookupTable { border-top: 1px solid var(--line); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th, td {
  padding: 11px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
tbody tr:hover td { background: rgba(255,255,255,.02); }
.auth-cell {
  display: inline-block;
  line-height: 1.4;
  white-space: normal;
  max-width: 280px;
}
th {
  color: var(--faint);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #12141a;
  position: sticky;
  top: 0;
}
.empty {
  margin: 0;
  padding: 64px 16px;
  text-align: center;
  color: var(--mute);
}
.empty.off { display: none; }
a.u {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}
a.u:hover { color: #fff; }
a.u:hover .u-ava { filter: brightness(1.08); }
.u-ava {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  background: #1b1e26;
  box-shadow: inset 0 0 0 1px #323746;
}
.u-txt {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}
.u-txt b { font-weight: 600; }
.u-txt em {
  color: var(--mute);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}
a.uid {
  color: var(--mute);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  font-family: "IBM Plex Mono", "IBM Plex Sans", monospace;
  font-size: 12px;
  font-weight: 500;
}
a.uid:hover { color: var(--ink); }
td.num {
  font-variant-numeric: tabular-nums;
  font-family: "IBM Plex Mono", "IBM Plex Sans", monospace;
  font-size: 12px;
}
a.tx {
  color: var(--win);
  text-decoration: none;
  font-weight: 600;
}
a.tx:hover { text-decoration: underline; }
.tag { font-weight: 600; }
.tag.yes { color: var(--red); }
.tag.no { color: var(--mute); }
.drop {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: var(--hover);
  color: var(--ink);
  font: 600 12px/1 inherit;
  cursor: pointer;
}
.lvl { font-weight: 700; }
.lvl.ok { color: var(--win); }
.lvl.warn { color: var(--warn); }
.lvl.bad { color: var(--red); }
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--mute);
  font-size: 13px;
}
.crumb a {
  color: var(--mute);
  text-decoration: none;
  font-weight: 600;
}
.crumb a:hover { color: var(--ink); }
.crumb b { color: var(--ink); font-weight: 700; }
.facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.fact {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact:nth-child(5n) { border-right: 0; }
.fact em {
  display: block;
  margin: 0 0 4px;
  color: var(--mute);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.fact b { font-weight: 600; }
.fact select {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 0 8px;
  background: #0d0f14;
  color: var(--ink);
}
.vip-ranks { padding: 8px 16px 16px; display: grid; gap: 10px; }
.vip-rank {
  display: grid;
  grid-template-columns: 88px 1fr 1fr 1fr 1fr 1.4fr;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101218;
}
.vip-rank b { font-size: 12px; padding-bottom: 10px; color: var(--mute); }
.vip-rank label {
  display: grid;
  gap: 4px;
  color: var(--mute);
  font-size: 11px;
  font-weight: 600;
}
.vip-rank input {
  height: 36px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 0 8px;
  background: #0d0f14;
  color: var(--ink);
}
.player-miss { padding: 48px 16px; text-align: center; color: var(--mute); }
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  padding: 14px 16px 18px;
}
.hint {
  margin: 0;
  padding: 0 16px 4px;
  color: var(--mute);
  font-size: 13px;
}
.rain-live {
  margin: 0 16px 4px;
  padding: 10px 12px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: #101218;
  font-weight: 600;
  font-size: 13px;
}
.rain-live.on { border-color: rgba(53, 214, 143, .45); background: var(--win-soft); color: var(--win); }
.rain-live.off { color: var(--mute); font-weight: 500; }
.form label {
  display: grid;
  gap: 6px;
  color: var(--mute);
  font-size: 12px;
  font-weight: 600;
}
.form input, .form select {
  height: 38px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: #0d0f14;
  color: var(--ink);
  padding: 0 10px;
  outline: none;
}
.form input:focus, .form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 0;
}
.board .form-actions {
  padding: 4px 16px 16px;
}
.board.chat-bots {
  box-shadow: inset 3px 0 0 var(--accent), var(--shadow);
}
.sheet form + form,
.sheet form + .board { margin-top: 14px; }
.save {
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent2), var(--accent));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px -12px rgba(61, 139, 253, .95);
}
.save:hover { filter: brightness(1.08); }
.ghost {
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: 600 14px/1 inherit;
  cursor: pointer;
}
.ghost:hover { background: var(--hover); }
.form.dense {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
}
.presets button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: #101218;
  color: var(--ink);
  font: 600 13px/1 inherit;
  cursor: pointer;
}
.presets button:hover, .presets button.on {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent2);
}
.nick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 16px;
}
.nick-chip {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--hover);
  color: var(--mute);
  font-size: 12px;
  font-weight: 600;
  line-height: 26px;
}
.gname {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.gname img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--line);
}
@media (max-width: 1100px) {
  .form.dense { grid-template-columns: 1fr 1fr; }
}
.saved { color: var(--win); font-weight: 600; font-size: 13px; }
.saved.off { display: none; }
.form-actions .err {
  margin: 0;
  color: var(--red);
  font-weight: 600;
  font-size: 13px;
}
.form-actions .err.off { display: none; }
td.clip {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 720px) {
  .form { grid-template-columns: 1fr; }
  .vip-rank { grid-template-columns: 1fr 1fr; }
  .page.sheet { padding: 14px 12px 28px; }
  .top { padding: 0 16px 0 28px; }
  .who em, .who .out { display: none; }
}

.home-head {
  margin: 0 0 16px;
}
.home-head b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.home-head span {
  color: var(--mute);
  font-size: 13px;
  font-weight: 600;
}
.cash-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 10px;
}
.desk-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.home .kpi {
  display: grid;
  gap: 6px;
  cursor: pointer;
}
.home .kpi span {
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11px;
  color: var(--mute);
  font-weight: 600;
}
.home .kpi b {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.home .kpi em {
  font-style: normal;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
}
.home .kpi i {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
}
.home .kpi.up b { color: var(--win); }
.home .kpi.down b { color: var(--red); }
.cash-kpis .kpi b { font-size: 26px; }
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr);
  gap: 14px;
  align-items: start;
}
.home .bets-board td { padding-top: 8px; padding-bottom: 8px; }
.pager {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--line);
}
.pager[hidden] { display: none; }
.pager button {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: transparent;
  color: var(--mute);
  font: 600 13px/1 inherit;
  cursor: pointer;
}
.pager button:hover { color: var(--ink); border-color: var(--line2); background: var(--hover); }
.pager button.on {
  color: var(--ink);
  background: var(--paper2);
  border-color: var(--accent-line);
}
.home-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.home-side .board { margin-top: 0; }
.home .bets-board { margin-top: 0; }
.home td.num {
  font-variant-numeric: tabular-nums;
  font-family: "IBM Plex Mono", "IBM Plex Sans", monospace;
  font-size: 12px;
}
.home td.mute { color: var(--mute); }
.cash td.addr {
  white-space: normal;
  word-break: break-all;
  font-family: "IBM Plex Mono", "IBM Plex Sans", monospace;
  font-size: 12px;
  max-width: 360px;
}
.cash td.addr .copy-addr {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  word-break: break-all;
}
.cash td.addr .copy-addr:hover { color: var(--accent, #6ea8ff); }
.cash td.num .unit {
  margin-left: 4px;
  color: var(--mute);
  font-weight: 500;
}
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 80;
  transform: translateX(-50%);
  padding: 8px 14px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: var(--paper2, #1a1f24);
  color: var(--ink);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.copy-toast.on { opacity: 1; }
.home .up-text { color: var(--win); font-weight: 600; }
.mult {
  display: inline-block;
  min-width: 52px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: "IBM Plex Mono", "IBM Plex Sans", monospace;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 8px;
}
.mult.up { color: var(--win); background: var(--win-soft); }
.mult.down { color: var(--red); background: rgba(255, 95, 110, .12); }
@media (max-width: 1100px) {
  .cash-kpis, .desk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid { grid-template-columns: 1fr; }
}

.acts { display: flex; gap: 6px; white-space: nowrap; }
.act {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: var(--hover);
  color: var(--ink);
  font: 600 12px/1 inherit;
  cursor: pointer;
}
.act.ok { color: var(--win); border-color: rgba(53, 214, 143, .35); }
.act.no { color: var(--red); border-color: rgba(255, 95, 110, .35); }
.act:hover { filter: brightness(1.12); }
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 9, 12, .72);
}
.modal.off, .modal[hidden] { display: none; }
.modal-box {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  padding: 22px 22px 18px;
  background: var(--paper);
  border: 1px solid var(--line2);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.modal-box > b { font-size: 16px; letter-spacing: -0.02em; }
.modal-box .hint { margin: 0; color: var(--mute); font-size: 13px; }
.modal-box .pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  cursor: pointer;
}
.modal-box .pick:has(input:checked) {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.modal-box label input[type="text"] {
  width: 100%;
  margin-top: 6px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--bg);
  color: inherit;
}
.modal-box .form-actions { margin: 4px 0 0; justify-content: flex-end; }
.modal-box .form-actions button:not(.act) {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: transparent;
  color: var(--mute);
  cursor: pointer;
}

th.chk, td.chk {
  width: 36px;
  text-align: center;
  padding-right: 4px;
}
td.chk input, th.chk input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.pick-acts {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.pick-acts em {
  font-style: normal;
  color: var(--mute);
  font-size: 13px;
  font-weight: 600;
}
.player-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
}
.player-ava {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: #1b1e26;
  box-shadow: inset 0 0 0 1px #323746;
}
.player-who { min-width: 0; flex: 1; display: grid; gap: 4px; }
.player-who b { font-size: 20px; letter-spacing: -0.03em; }
.player-who em {
  color: var(--mute);
  font-style: normal;
  font-size: 13px;
}
.player-acts { display: flex; gap: 8px; }
.player-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.player-kpis .fact:nth-child(5n) { border-right: 0; }
.modal-box .presets { padding: 0; }
