:root {
  color-scheme: dark;
  --bg: #09090b;
  --card: #121214;
  --raised: #1c1c20;
  --border: #303035;
  --text: #f4f4f5;
  --muted: #a6a6af;
  --accent: #c5b7ef;
  --group: #25212f;
  --green: #62dab3;
  --red: #ff9292;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
}
.personal-accounts #app {
  background: #020617;
  min-height: calc(100dvh - 56px);
}
.account-register {
  --border: #263043;
  --raised: #1e293b;
  --muted: #94a3b8;
  color: #e2e8f0;
}
.account-register .toolbar button,
.account-register .toolbar input {
  background: #0f172a;
  border-color: #263043;
  color: #e2e8f0;
}
.account-register .status-cards {
  max-width: 1174px;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}
.account-register .status-card {
  min-height: 51px;
  padding: 5px 8px;
  border-radius: 6px;
}
.account-register .status-card span {
  font-size: 9px;
  line-height: 1.2;
}
.account-register .status-card strong {
  font-size: 14px;
  margin-top: 3px;
}
.account-register .status-card[aria-pressed="true"] {
  outline: 2px solid currentColor;
  outline-offset: 0;
}
.account-register .status-not_opened {
  color: #94a3b8;
  background: #1e293b;
  border-color: #334155;
}
.account-register .status-active {
  color: #6ee7b7;
  background: #10312e;
  border-color: #16634e;
}
.account-register .status-active_no_horses {
  color: #5eead4;
  background: #103237;
  border-color: #175e59;
}
.account-register .status-kyc {
  color: #7dd3fc;
  background: #0c2b43;
  border-color: #175575;
}
.account-register .status-partial_limit {
  color: #fdba74;
  background: #34231d;
  border-color: #77402a;
}
.account-register .status-horses_only {
  color: #fcd34d;
  background: #332b18;
  border-color: #71551e;
}
.account-register .status-restricted {
  color: #fca5a5;
  background: #351e2b;
  border-color: #75404b;
}
.account-register .status-closed,
.account-register .status-do_not_use {
  color: #fda4af;
  background: #351629;
  border-color: #76253e;
}
.account-register .status-group_banned {
  color: #fca5a5;
  background: #2d1121;
  border-color: #632434;
}
.account-register .account-table {
  background: #0f172a;
  max-height: max(16rem, calc(100dvh - 18rem));
  overflow: auto;
  border: 1px solid #263043;
  border-radius: 8px;
}
.account-table table {
  min-width: 1900px;
  width: 100%;
}
.account-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1e293b;
  color: #94a3b8;
  font-size: 12px;
}
.account-table th,
.account-table td {
  border-right: 1px solid #263043;
  border-bottom: 1px solid #263043;
  padding: 6px 10px;
}
.account-table .account-book-name {
  color: #60a5fa;
  min-width: 235px;
  font-weight: 500;
}
.account-table td[data-field="login"] {
  min-width: 160px;
}
.account-table td[data-field="email"] {
  min-width: 210px;
}
.account-table td[data-field="address"] {
  min-width: 200px;
}
.account-table td[data-field="phone"],
.account-table td[data-field="bank"] {
  min-width: 145px;
}
.account-table td[data-field="note"] {
  min-width: 210px;
}
.account-table .account-heading td {
  padding: 0;
}
.account-table .heading-section {
  background: #1e293b;
}
.account-table .heading-group {
  background: #293248;
}
.account-table .heading-subgroup,
.account-table .heading-subgroup.heading-group {
  background: #242130;
}
.account-table .group-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  color: #e2e8f0;
  min-height: 38px;
}
.account-table .group-arrow {
  color: #94a3b8;
  width: 18px;
}
.account-table .group-kind {
  color: #94a3b8;
  font-size: 10px;
  width: 92px;
  letter-spacing: 0.04em;
}
.account-table .group-name {
  background: #384156;
  border: 1px solid #44506a;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.account-table .heading-subgroup .group-name {
  color: #f8fafc;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  font-weight: 700;
  font-size: 14px;
}
.account-table .heading-subgroup .group-toggle {
  min-height: 42px;
  padding: 9px 14px;
  gap: 8px;
}
.account-table .heading-subgroup .group-arrow {
  color: #f8fafc;
  width: 12px;
  font-size: 12px;
}
.account-table .heading-subgroup .group-kind,
.account-table .heading-subgroup .group-count {
  display: none;
}
.account-table .heading-section .group-kind {
  display: none;
}
.account-table .heading-section .group-name {
  background: transparent;
  border: none;
  padding: 0;
  text-transform: uppercase;
  font-size: 12px;
  color: #94a3b8;
}
.account-table .group-count {
  color: #94a3b8;
  margin-left: 16px;
}
.account-table td.account-status {
  background: transparent;
  min-width: 150px;
  border-color: #263043;
}
.account-table td.account-status > button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  border: 0;
  padding: 0;
  background: transparent;
  min-height: 28px;
}
.account-table .status-pill {
  display: inline-block;
  border-width: 1px;
  border-style: solid;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  white-space: nowrap;
}
.account-table .status-pill.status-restricted {
  background: #302636;
  border-color: #69404b;
}
.account-table .status-pill.status-group_banned {
  background: #2c1b22;
  border-color: #5f252c;
}
.account-table .status-chevron {
  color: #b4bdcc;
  font-size: 19px;
  line-height: 1;
}
.book-account-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account-address-label {
  color: #94a3b8;
  font-weight: 400;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-table .add-book-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  min-height: 25px;
  padding: 0;
  border: 1px solid #39445b;
  border-radius: 5px;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 19px;
}
.account-table .add-book-account:hover {
  background: #334155;
  color: #fff;
}
.archive-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  min-height: 25px;
  padding: 0;
  color: #fca5a5;
  background: transparent;
  border: 1px solid transparent;
  opacity: 0;
}
.account-table tr:hover .archive-book,
.account-table tr:focus-within .archive-book,
.book-row:hover .archive-book,
.book-row:focus-within .archive-book,
.archive-book:focus-visible {
  opacity: 1;
}
.archive-book:hover {
  background: #7f1d1d44;
  border-color: #7f1d1d;
}
@media (hover: none) {
  .archive-book {
    opacity: 1;
  }
}
.account-register .toolbar button[aria-pressed="true"] {
  background: #7f1d1d;
}
.account-directory {
  min-width: 0;
}
.directory-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.directory-list {
  height: calc(100dvh - 185px);
  overflow: auto;
  padding: 12px;
  position: sticky;
  top: 72px;
}
.directory-list h2 {
  font-size: 17px;
}
.directory-kind {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 6px 5px;
}
.directory-detail {
  min-width: 0;
}
.directory-detail > h2 {
  margin: 0 0 12px;
}
.directory-detail .account-register .status-cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.preview-banner {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
  margin-bottom: 14px;
  background: #302740;
  border: 1px solid #76638f;
  border-radius: 8px;
}
.preview-banner span {
  flex: 1;
  font-size: 12px;
}
@media (max-width: 1100px) {
  .account-register .status-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 584px;
  }
}
@media (max-width: 800px) {
  .directory-layout {
    grid-template-columns: 1fr;
  }
  .directory-list {
    position: static;
    height: auto;
    max-height: 40vh;
  }
}
@media (max-width: 550px) {
  .account-register .status-cards,
  .directory-detail .account-register .status-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 230px;
  }
}
.sports-layout {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.sports-books {
  min-height: 65vh;
  height: calc(100vh - 310px);
  overflow: auto;
  padding: 14px;
  position: sticky;
  top: 12px;
}
.sports-detail {
  min-width: 0;
}
.tree-group,
.tree-subgroup {
  margin: 5px 0;
}
.tree-group > summary,
.tree-subgroup > summary {
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 5px;
  background: var(--group);
  border: 1px solid #494052;
}
.tree-subgroup > summary {
  background: var(--raised);
  border-color: var(--border);
}
summary small {
  font-size: 10px;
  color: var(--muted);
  margin: 0 8px;
}
summary strong {
  font-size: 13px;
}
.tree-group > .tree-subgroup,
.tree-subgroup > .tree-subgroup,
.tree-group > .tree-books,
.tree-subgroup > .tree-books {
  margin-left: 10px;
  padding-left: 8px;
  border-left: 2px solid var(--border);
}
.book-row {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 8px;
  margin: 3px 0;
  background: transparent;
  border: 0;
  text-align: left;
  color: var(--text);
}
.book-title {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.initials {
  color: var(--text);
  font-size: 11px;
  max-width: 85px;
}
.count {
  font-size: 13px;
  border-radius: 7px;
  background: #e2e8f0;
  color: #141416;
  min-width: 27px;
  text-align: center;
  padding: 3px;
}
.league-chip {
  font-size: 10px;
  border: 1px solid #416958;
  border-radius: 4px;
  color: #b9e8d2;
  padding: 2px 5px;
}
.provider-title {
  width: 100%;
  text-align: left;
  color: white;
  margin-top: 10px;
}
.standalone {
  color: var(--muted);
  font-size: 11px;
  padding: 6px;
  background: var(--raised);
}
.tiny {
  padding: 3px 7px;
  min-height: 26px;
  font-size: 11px;
  margin-left: auto;
}
.group-toggle {
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 24px;
  width: 100%;
  text-align: left;
}
.cell-selected {
  background: #3e3565 !important;
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}
.account-table [role="gridcell"] {
  cursor: cell;
  user-select: none;
}
.account-table .cell-selected {
  background: #26394f !important;
  outline-color: #5486b6;
}
.account-table .cell-focused {
  outline: 2px solid #78b6ec;
  outline-offset: -2px;
}
.account-table:focus {
  outline: none;
}
.account-table input,
.account-table select {
  min-height: 28px;
  padding: 2px 5px;
  border-radius: 0;
  user-select: text;
}
.account-table td input[aria-invalid="true"] {
  outline: 2px solid #fb7185;
}
.account-table .row-selector {
  float: left;
  padding: 0;
  width: 20px;
  min-height: 25px;
  margin-right: 5px;
  background: transparent;
  border: 0;
  opacity: 0;
}
.account-table tr:hover .row-selector,
.account-table .row-selector:focus {
  opacity: 1;
}
.row-selector {
  width: 35px;
  color: var(--muted);
  cursor: pointer;
}
.cash-table table {
  table-layout: fixed;
  min-width: 0;
  width: 100%;
}
.cash-table td,
.cash-table th {
  padding: 9px 8px;
  overflow-wrap: anywhere;
}
.cash-table td:first-child {
  white-space: nowrap;
}
.cash-table td:first-child > button.cell {
  display: inline-block;
  width: auto;
}
.cash-table td:first-child > .hint {
  display: inline-block;
  margin-left: 8px;
  white-space: nowrap;
}
.cash-table .cell {
  padding: 5px;
  min-width: 0;
}
.client-settings > .toolbar {
  margin-bottom: 10px;
}
.client-settings th {
  padding: 8px 10px;
}
.client-settings td {
  padding: 4px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.client-settings td:last-child {
  width: 1%;
  max-width: none;
  overflow: visible;
}
.client-settings .client-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}
.client-settings button {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 18px;
  border-radius: 5px;
  white-space: nowrap;
}
.bookmaker-settings-table {
  background: #0f172a;
  max-height: calc(100dvh - 180px);
  overflow: auto;
}
.bookmaker-settings-table table {
  min-width: 620px;
  table-layout: fixed;
}
.bookmaker-settings-table th:first-child {
  width: 32%;
}
.bookmaker-settings-table th:last-child {
  width: 100px;
}
.bookmaker-settings-table td:not([colspan]) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-group-heading,
.settings-book-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.settings-group-heading > .group-toggle {
  min-width: 0;
  flex: 1;
}
.settings-group-heading > .tiny {
  margin-right: 10px;
}
.settings-book-actions .tiny {
  margin-left: 0;
}
@media (max-width: 850px) {
  .sports-layout {
    grid-template-columns: 1fr;
  }
  .sports-books {
    position: static;
    height: 50vh;
    min-height: 300px;
  }
  .cash-table table {
    font-size: 12px;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 13px;
  background: linear-gradient(180deg, #252529, var(--raised));
  color: var(--text);
  transition:
    border-color 120ms ease,
    background-color 120ms ease;
}
button:hover {
  border-color: #6c6c76;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.primary {
  background: linear-gradient(180deg, #fafafa, #dedee2);
  border-color: #fafafa;
  color: #141416;
  font-weight: 650;
}
.ghost {
  background: transparent;
}
.danger {
  color: var(--red);
}
input,
select,
textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #161618;
  color: var(--text);
  padding: 10px 12px;
  min-height: 42px;
}
input::placeholder,
textarea::placeholder {
  color: #81818b;
  opacity: 1;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
input[type="checkbox"] {
  width: 17px;
  min-height: 17px;
  accent-color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 6px;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
  margin: 8px 0 12px;
}
h2 {
  font-size: 19px;
  margin: 0 0 16px;
}
h3 {
  font-size: 15px;
  margin: 14px 0;
}
p {
  line-height: 1.6;
  color: var(--muted);
}
.topbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  gap: 20px;
  background: #101012;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
}
.brand span {
  color: var(--text);
  font-size: 16px;
  letter-spacing: -0.4px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 36px;
  border: 1px solid #414146;
  border-radius: 10px;
  background: linear-gradient(145deg, #323235, #121214 70%);
  color: #ededf0;
  font-size: 23px;
  font-weight: 750;
  font-style: italic;
  box-shadow: inset 0 1px 0 #ffffff12;
}
#identity {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
#app {
  max-width: 1600px;
  margin: auto;
  padding: 28px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 28px 12px;
  text-align: center;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 650;
  margin: 0;
}
.auth-card .primary {
  width: 100%;
  margin-top: 22px;
  min-height: 48px;
  border-radius: 12px;
}
.auth-card .ghost {
  width: 100%;
  margin-top: 10px;
  border-color: transparent;
  font-size: 13px;
}
.auth-card form {
  margin-top: 30px;
  text-align: left;
}
.auth-card label {
  margin-top: 20px;
  color: #c7c7cd;
}
.auth-card input,
.auth-card select {
  min-height: 50px;
  border-radius: 12px;
  background: linear-gradient(120deg, #242426d9, #171719e6);
  box-shadow:
    inset 0 1px 0 #ffffff08,
    0 2px 6px #0002;
  padding: 13px 15px;
}
.auth-card h1 {
  font-size: 34px;
  letter-spacing: -1.2px;
  margin: 12px 0;
  line-height: 1.15;
}
.auth-card > p:not(.eyebrow) {
  font-size: 14px;
}
.auth-card > .hint {
  border-top: 1px solid #ffffff12;
  margin-top: 24px;
  padding-top: 20px;
  font-size: 12px !important;
}
.auth-mark {
  width: 54px;
  height: 58px;
  font-size: 37px;
  border-radius: 16px;
  margin: 0 auto 25px;
}
.auth-card .eyebrow {
  color: #b5b5bf;
  font-size: 10px;
  letter-spacing: 2.4px;
}
.auth-backdrop {
  display: none;
}
.auth-view {
  min-height: 100svh;
  background: #09090b;
}
.auth-view .topbar {
  position: relative;
  z-index: 1;
  background: transparent;
  border-bottom: 0;
}
.auth-view #app {
  position: relative;
  min-height: calc(100svh - 70px);
  display: grid;
  align-items: center;
  padding: 25px 24px 65px;
}
.auth-view .auth-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, #24242644, transparent 60%);
}
.auth-backdrop i {
  position: absolute;
  display: block;
  border-radius: 50%;
  transform: rotate(-24deg);
}
.auth-backdrop i:first-child {
  width: 60vw;
  min-width: 500px;
  height: 140vh;
  right: -40vw;
  top: -43vh;
  border: 1px solid #ffffff1a;
  background: linear-gradient(
    105deg,
    #343438 3%,
    #76767c 11%,
    #29292d 20%,
    #101012 30%,
    #08080a 60%
  );
  box-shadow:
    -25px 0 80px #ffffff04,
    inset 12px 0 24px #ffffff12;
}
.auth-backdrop i:last-child {
  width: 70vw;
  height: 80vh;
  left: -49vw;
  bottom: -55vh;
  border: 1px solid #ffffff1a;
  background: linear-gradient(
    150deg,
    #0d0d0f 35%,
    #2b2b30 65%,
    #77777e 76%,
    #19191c 82%
  );
}
.hint {
  font-size: 12px;
}
.error {
  color: var(--red);
  white-space: pre-wrap;
}
.error:empty {
  display: none;
}
.qr {
  display: block;
  width: 220px;
  height: 220px;
  max-width: 100%;
  margin: 24px auto;
  background: white;
  padding: 12px;
  border-radius: 10px;
}
.secret {
  overflow-wrap: anywhere;
  font-family: monospace;
  user-select: all;
}
.code {
  text-align: center;
  font-size: 24px;
  letter-spacing: 8px;
}
.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.workspace-head h1 {
  margin-bottom: 0;
}
.workspace-head p {
  margin-top: 6px;
}
.toolbar,
.tabs {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.tabs {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin-bottom: 24px;
}
.tabs button {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.tabs button.selected {
  color: var(--text);
  background: #27272c;
  border-color: #51515b;
}
button.selected:not(.tabs button) {
  background: #302a3c;
  border-color: #77658e;
}
.toolbar {
  margin: 0 0 18px;
}
.toolbar label {
  margin: 0;
}
.toolbar select {
  width: auto;
  min-width: 180px;
}
.toolbar input {
  max-width: 320px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 22px;
  margin-bottom: 18px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 20px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
th {
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--raised);
  color: var(--muted);
  padding: 12px;
  white-space: nowrap;
}
td {
  border-top: 1px solid #ffffff0d;
  padding: 10px 12px;
  vertical-align: middle;
  max-width: 270px;
  overflow-wrap: anywhere;
}
tbody tr:hover td {
  background-color: #ffffff03;
}
td.numeric,
th.numeric,
.stat strong {
  font-variant-numeric: tabular-nums;
}
td button.cell {
  padding: 4px 0;
  min-height: 28px;
  background: transparent;
  border: 0;
  text-align: left;
  width: 100%;
  color: inherit;
}
td button.cell:hover {
  color: var(--accent);
}
td.numeric,
th.numeric {
  text-align: right;
  white-space: nowrap;
}
.positive {
  color: var(--green);
}
.negative {
  color: var(--red);
}
.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 20px;
  background: #29292e;
  color: #d6d6df;
  white-space: nowrap;
  font-size: 11px;
}
.badge.active {
  color: var(--green);
  background: #15372f;
}
.badge.pending {
  color: var(--red);
  background: #3a2029;
}
.badge.received_more {
  color: #f6ce73;
  background: #3d321b;
}
.badge.received {
  color: var(--green);
  background: #15372f;
}
.empty {
  text-align: center;
  padding: 52px 20px;
}
.empty h2 {
  margin-bottom: 6px;
}
.empty p {
  max-width: 580px;
  margin: 0 auto 12px;
}
.group-title td {
  background: var(--group);
  padding: 8px 12px;
  font-weight: 650;
}
.subgroup-title td {
  background: #1c1c22;
  padding: 6px 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 16px;
}
.form-grid label {
  margin-top: 0;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.stat {
  min-width: 160px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.stat span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.stat strong {
  font-size: 23px;
  display: block;
  margin-top: 6px;
}
dialog {
  width: min(760px, 94vw);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  padding: 26px;
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #0009;
}
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-height: 220px;
  overflow: auto;
  gap: 8px;
  padding: 10px 0;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.permission-grid {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 8px;
  align-items: center;
}
.permission-grid label {
  margin: 0;
}
.info {
  padding: 12px 15px;
  border-radius: 8px;
  background: #24212b;
  color: #d5cfe4;
  font-size: 13px;
}
#notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: min(480px, 90vw);
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #29292e;
  box-shadow: 0 8px 30px #0006;
  z-index: 10;
}
.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.muted {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
/* Familiar local-tracker shell, with the online charcoal theme. */
body:not(.auth-view) {
  --sidebar-width: 224px;
}
body.sidebar-collapsed:not(.auth-view) {
  --sidebar-width: 64px;
}
body:not(.auth-view) .topbar {
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 0 20px 0 0;
  gap: 18px;
}
body:not(.auth-view) .topbar .brand {
  width: var(--sidebar-width);
  flex-shrink: 0;
  padding: 0 16px;
  height: 56px;
  border-right: 1px solid var(--border);
  gap: 8px;
}
body:not(.auth-view) .brand span {
  font-size: 14px;
  white-space: nowrap;
}
body:not(.auth-view) .brand-mark {
  width: 28px;
  height: 30px;
  font-size: 21px;
  flex-shrink: 0;
}
#page-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
#page-heading h1 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 0;
  white-space: nowrap;
}
.sidebar-toggle {
  padding: 4px 8px;
  font-size: 19px;
  min-height: 32px;
}
#identity {
  margin-left: auto;
}
#sidebar {
  position: fixed;
  top: 56px;
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  background: #101012;
  border-right: 1px solid var(--border);
  overflow: auto;
  padding: 16px 10px;
  z-index: 4;
}
.nav-section {
  margin-bottom: 24px;
}
.nav-label {
  font-size: 11px;
  color: var(--muted);
  margin: 0 10px 7px;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  font-size: 13px;
  min-height: 37px;
  margin: 3px 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #b6b6bf;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 8px;
}
.side-nav a.selected {
  color: var(--text);
  background: #29272f;
  border-color: #46404f;
}
.side-nav a:hover {
  background: #202024;
  color: white;
}
.nav-icon {
  font-size: 17px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-collapsed:not(.auth-view) .brand span,
.sidebar-collapsed .nav-name,
.sidebar-collapsed .nav-label {
  display: none;
}
.sidebar-collapsed .nav-section {
  margin-bottom: 16px;
}
body:not(.auth-view) #app {
  max-width: none;
  margin: 0 0 0 var(--sidebar-width);
  padding: 24px;
}
.workspace-head:empty {
  display: none;
}
.workspace-head {
  justify-content: flex-end;
}
body.sport-workspace:not(.auth-view) #app {
  height: calc(100dvh - 56px);
  display: flex;
  flex-direction: column;
}
.sport-workspace .page-content {
  flex: 1;
  min-height: 0;
}
.sports-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sports-page .toolbar {
  flex-shrink: 0;
  margin-bottom: 12px;
}
.sports-page .sports-layout {
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}
.sports-page .sports-books {
  position: static;
  min-height: 0;
  height: auto;
  margin: 0;
}
.sports-page .sports-detail {
  overflow: auto;
}
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.coverage-card {
  padding: 16px;
  min-width: 0;
}
.coverage-heading {
  margin-bottom: 12px;
}
.coverage-league,
.coverage-provider {
  background: transparent;
  border: 0;
  padding: 3px 0;
  text-align: left;
  min-height: 28px;
  font-weight: 650;
}
.coverage-league {
  font-size: 18px;
}
.league-gt .coverage-league {
  color: #83c9f6;
}
.league-battle .coverage-league {
  color: var(--green);
}
.league-battle_volta .coverage-league {
  color: #e9c26d;
}
.league-gg_h2h .coverage-league {
  color: #dfa4e9;
}
.coverage-provider {
  color: white;
  font-size: 15px;
  margin: 8px 0;
  width: 100%;
}
.coverage-card .tree-group > summary,
.coverage-card .tree-subgroup > summary {
  background: transparent;
  border: 0;
  color: var(--accent);
  padding: 5px 0;
}
.coverage-active .tree-group > summary,
.coverage-active .tree-subgroup > summary {
  color: var(--green);
}
.coverage-none .tree-group > summary,
.coverage-none .tree-subgroup > summary {
  color: var(--red);
}
.coverage-card summary small {
  display: none;
}
.coverage-card .tree-books {
  border-left-width: 1px;
}
.coverage-book {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text);
}
.coverage-book-name {
  margin-right: 3px;
}
.client-chip {
  border: 1px solid #3a4943;
  border-radius: 7px;
  padding: 3px 7px;
  font-size: 11px;
  color: white;
  background: #192520;
}
.status-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 7px;
  margin-bottom: 18px;
}
.status-card {
  text-align: left;
  padding: 8px 10px;
  min-height: 53px;
  background: #1c1c20;
}
.status-card span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
}
.status-card strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}
.status-active,
.status-active_no_horses {
  color: var(--green);
  border-color: #325046;
}
.status-restricted,
.status-closed,
.status-do_not_use,
.status-group_banned {
  color: var(--red);
  border-color: #57383e;
}
.status-partial_limit,
.status-kyc {
  color: #e9c26d;
  border-color: #54472f;
}
.quick-cash {
  padding: 18px;
}
.quick-cash h2 {
  font-size: 16px;
}
.quick-cash-fields {
  display: grid;
  grid-template-columns:
    145px minmax(150px, 1.3fr) minmax(110px, 0.7fr) minmax(110px, 0.7fr)
    minmax(140px, 1.4fr) auto;
  gap: 12px;
  align-items: end;
}
.quick-cash-fields > div {
  min-width: 0;
}
.quick-cash-fields label {
  margin-top: 0;
}
.quick-cash-fields button {
  min-height: 42px;
}
@media (max-width: 1200px) {
  .quick-cash-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 550px) {
  .quick-cash-fields {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1200px) {
  .coverage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 850px) {
  body:not(.auth-view) {
    --sidebar-width: 64px;
  }
  body:not(.auth-view) .brand span,
  .nav-name,
  .nav-label {
    display: none;
  }
  body:not(.auth-view) .topbar {
    gap: 8px;
    padding-right: 12px;
  }
  body:not(.auth-view) #app {
    padding: 16px;
  }
  body.sport-workspace:not(.auth-view) #app {
    height: auto;
    min-height: calc(100dvh - 56px);
  }
  .sports-page .sports-layout {
    grid-template-columns: 1fr;
  }
  .sports-page .sports-books {
    max-height: 55vh;
  }
  body.sidebar-collapsed:not(.auth-view) {
    --sidebar-width: 0px;
  }
  .sidebar-collapsed:not(.auth-view) #sidebar,
  .sidebar-collapsed:not(.auth-view) .topbar .brand {
    display: none;
  }
}
@media (max-width: 550px) {
  .coverage-grid {
    grid-template-columns: 1fr;
  }
  #page-heading h1 {
    font-size: 14px;
    white-space: normal;
  }
  #page-heading {
    gap: 3px;
  }
}
@media (max-width: 700px) {
  .topbar {
    padding: 0 16px;
    height: 62px;
  }
  .brand span {
    font-size: 15px;
  }
  #identity > span {
    display: none;
  }
  #app {
    padding: 16px;
  }
  .auth-card {
    padding: 24px 4px;
    margin: 0 auto;
  }
  .auth-view #app {
    min-height: calc(100svh - 62px);
    padding: 20px 24px 44px;
  }
  .auth-card h1 {
    font-size: 30px;
  }
  .auth-backdrop i:first-child {
    right: -460px;
    opacity: 0.55;
  }
  .workspace-head h1 {
    font-size: 25px;
  }
  .tabs {
    gap: 3px;
  }
  .tabs button {
    font-size: 12px;
    padding: 8px;
  }
  .stat {
    flex: 1;
    min-width: 130px;
  }
  .card {
    padding: 16px;
  }
  td,
  th {
    padding: 9px;
  }
  .toolbar select {
    width: 100%;
  }
}
