:root {
  font-family: Inter, system-ui, sans-serif;
  color: #1f2937;
  background: #fafbfc;
  font-synthesis: none;
  --bg: #fafbfc;
  --panel: #fff;
  --panel2: #f8fafc;
  --line: #e4e7ec;
  --muted: #667085;
  --text: #1f2937;
  --brand: #01a96b;
  --brand2: #01945e;
  --green: #01a96b;
  --red: #e5484d;
  --amber: #d97706;
  --cyan: #0891b2;
  --radius: 8.4px;
}

/* Update modal exact reference sizing override. */
.update-reference-page .update-modal>section{width:min(636px,calc(100vw - 28px));max-height:min(890px,calc(100vh - 28px))}.update-reference-page .update-modal header{padding:28px 32px 16px}.update-reference-page .update-modal-search{height:58px;margin:0 32px 18px;padding:0 16px;font-size:16px}.update-reference-page .update-user-list{padding:0 32px}.update-reference-page .update-user-list>button{min-height:82px;padding:12px 18px;font-size:14px}.update-reference-page .update-user-list>button:first-child{border:1px solid #98dfc7;border-radius:9px;background:#e9f8f2;color:#00a268}.update-reference-page .update-user-list strong{font-size:15px}.update-reference-page .update-user-list small{font-size:12px}.update-reference-page .update-modal footer{padding:16px 32px}.update-reference-page .update-modal footer button{height:48px;padding:0 24px;font-size:15px}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.hidden {
  display: none !important;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fafbfc;
}
.login-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 4px 24px #0000000d;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 18px #01a96b30;
}
.login-card h1 {
  margin: 34px 0 6px;
  font-size: 26px;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.field {
  display: grid;
  gap: 7px;
  margin: 18px 0;
}
.field label {
  font-size: 13px;
  font-weight: 500;
}
.input,
.select {
  width: 100%;
  height: 40px;
  border-radius: 8.4px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 4px 16px;
  outline: none;
  box-shadow: 0 4px 24px #00000008;
  font-size: 14px;
}
.input:focus,
.select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px #01a96b1f;
}
.primary {
  height: 36px;
  border: 1px solid var(--brand);
  border-radius: 6.4px;
  background: var(--brand);
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 0 16px;
  box-shadow: 0 4px 24px #00000008;
}
.primary:hover {
  background: var(--brand2);
}
.login-error {
  min-height: 20px;
  color: #dc2626;
  font-size: 13px;
  margin-top: 12px;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  z-index: 20;
  transition: 0.22s;
  box-shadow: 0 4px 24px #0000000d;
}
.sidebar .brand {
  padding: 0 4px 20px;
}
.nav {
  display: grid;
  gap: 8px;
  padding-top: 12px;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 40px;
  padding: 8px 12px 8px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #667085;
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  outline: none;
}
.nav-btn:hover {
  background: #f2f4f7;
  color: #1f2937;
}
.nav-btn.active {
  background: #e8f8f1;
  color: #008f5a;
  border: 0;
  font-weight: 500;
}
.nav-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: grid;
  place-items: center;
}
.nav-svg {
  width: 19px;
  height: 19px;
  display: block;
}
.nav-btn:focus-visible {
  box-shadow: inset 0 0 0 2px #01a96b66;
}
.side-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: grid;
  gap: 8px;
}
.main {
  margin-left: 224px;
  min-height: 100vh;
}
.topbar {
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: #ffffffed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.top-left,
.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn,
.ghost,
.tab {
  border: 1px solid var(--line);
  background: #fff;
  color: #344054;
  border-radius: 6.4px;
  height: 32px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 4px 24px #00000008;
}
.icon-btn {
  width: 32px;
  padding: 0;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.clock {
  font-size: 12px;
  color: #475467;
}
.content {
  padding: 24px;
  max-width: none;
  margin: 0;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.page-head h1 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  margin: 0 0 4px;
}
.page-head p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.grid {
  display: grid;
  gap: 12px;
}
.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 4px 24px #00000008;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.stat-value {
  font-size: 24px;
  font-weight: 600;
}
.stat-foot {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.green {
  color: #009b62;
}
.red {
  color: #dc2626;
}
.amber {
  color: #b45309;
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow: auto;
}
.tab {
  white-space: nowrap;
}
.tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.table-card {
  padding: 0;
  overflow: hidden;
}
.table-toolbar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.search {
  position: relative;
  min-width: 448px;
}
.search .input {
  padding-left: 36px;
}
.search:before {
  content: "⌕";
  position: absolute;
  left: 13px;
  top: 9px;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}
.data-table th {
  height: 60px;
  text-align: left;
  padding: 14px 12px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  height: 61px;
  padding: 12px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table tr:hover td {
  background: #f8fafc;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  background: #f2f4f7;
  color: #475467;
}
.badge.buy,
.badge.approved,
.badge.active {
  background: #e7f8f0;
  color: #008c58;
}
.badge.sell,
.badge.rejected,
.badge.banned {
  background: #feecec;
  color: #c62828;
}
.badge.pending,
.badge.limit {
  background: #fff4df;
  color: #a15c00;
}
.actions {
  display: flex;
  gap: 6px;
}
.small {
  height: 32px;
  padding: 0 10px;
  border-radius: 6.4px;
  border: 1px solid var(--line);
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 500;
}
.small.danger {
  border-color: #f3b5b5;
  color: #c62828;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}
.skeleton {
  animation: pulse 1.2s infinite;
  background: #eef1f4;
  border-radius: 5px;
  height: 16px;
}
@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}
.filters {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 10px;
}
.section-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 14px;
}
.split {
  grid-template-columns: 2fr 1fr;
}
.notice {
  border: 1px solid #a6e3ca;
  background: #eefbf6;
  border-radius: 8px;
  padding: 13px;
  color: #08724b;
  font-size: 12px;
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 12px 32px #0002;
  z-index: 50;
  font-size: 13px;
}
.mobile-overlay {
  display: none;
}
.sidebar.collapsed {
  width: 64px;
}
.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-label {
  display: none;
}
.sidebar.collapsed + .main {
  margin-left: 64px;
}
.sidebar.collapsed .nav-btn {
  justify-content: center;
}
.label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.metric-list {
  display: grid;
  gap: 12px;
}
.metric-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  font-size: 12px;
}
.chart-placeholder {
  height: 245px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #01a96b14, transparent),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 48px,
      #e4e7ec 49px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      #e4e7ec 81px
    );
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #008f5a;
  font-size: 12px;
}
.toggle {
  width: 38px;
  height: 21px;
  border-radius: 20px;
  background: #d0d5dd;
  position: relative;
  border: 0;
}
.toggle.on {
  background: var(--brand);
}
.toggle:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: white;
  transition: 0.2s;
  box-shadow: 0 1px 3px #0003;
}
.toggle.on:after {
  left: 20px;
}
@media (max-width: 1100px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .search {
    min-width: 300px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    width: 256px;
  }
  .sidebar.open {
    transform: none;
  }
  .sidebar.collapsed {
    width: 256px;
  }
  .sidebar.collapsed .brand-text,
  .sidebar.collapsed .nav-label {
    display: inline;
  }
  .sidebar.collapsed .nav-btn {
    justify-content: flex-start;
  }
  .main,
  .sidebar.collapsed + .main {
    margin-left: 0;
  }
  .content {
    padding: 16px;
  }
  .topbar {
    padding: 0 16px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .page-head {
    display: block;
  }
  .page-head h1 {
    font-size: 18px;
  }
  .page-head .toolbar {
    margin-top: 14px;
  }
  .search {
    min-width: 100%;
    width: 100%;
  }
  .mobile-overlay.show {
    display: block;
    position: fixed;
    inset: 0;
    background: #0006;
    z-index: 15;
  }
  .filters {
    grid-template-columns: 1fr;
  }
  .login-card {
    padding: 27px;
  }
  .data-table th {
    height: 52px;
  }
  .data-table td {
    height: 56px;
  }
}

/* Accounts — isolated mirror of the broker Accounts Dashboard. */
.main:has(.accounts-reference-page) .topbar{display:none}.content:has(.accounts-reference-page){padding:0}.accounts-reference-page{min-height:100vh;background:#f8fafc;color:#111827}.accounts-reference-page svg{width:16px;height:16px}.accounts-reference-head{position:relative;min-height:80px;padding:12px 72px 12px 24px;background:#fff;border-bottom:1px solid var(--line)}.accounts-title-row{display:flex;align-items:center;gap:9px}.accounts-title-row h1{margin:0;font-size:24px;line-height:32px;font-weight:600}.accounts-title-row span,.accounts-title-row time{color:#8b95a7;font-size:12px}.accounts-reference-head>p{margin:1px 0 0;color:#6b7280;font-size:14px}.accounts-refresh{position:absolute;right:24px;top:24px;width:38px;height:32px;display:grid;place-items:center;border:1px solid #e1e6ed;border-radius:8px;background:#fff}.accounts-reference-body{padding:24px}.accounts-search-card,.accounts-filter-card,.accounts-entities,.account-detail{border:1px solid #e1e6ed;border-radius:10px;background:#fff;box-shadow:0 6px 20px rgba(16,24,40,.035)}.accounts-search-card{padding:20px 24px 16px}.accounts-search-card label,.accounts-filter-card label{display:block;color:#344054;font-size:12px;font-weight:600}.accounts-search-input{height:36px;margin-top:8px;display:flex;align-items:center;gap:9px;padding:0 12px;border:1px solid #dfe4eb;border-radius:8px}.accounts-search-input svg{color:#667085}.accounts-search-input input{width:100%;height:100%;border:0;outline:0;background:transparent;font:inherit;color:#111827}.accounts-type-tabs{display:flex;gap:8px;margin-top:16px}.accounts-type-tabs button,.accounts-fetch,.accounts-clear{height:32px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 16px;border:1px solid #dfe4eb;border-radius:7px;background:#fff;color:#1f2937;font-size:12px;font-weight:600}.accounts-type-tabs button.active,.accounts-fetch{border-color:#01a96b;background:#01a96b;color:#fff}.accounts-filter-card{display:grid;grid-template-columns:180px 180px 180px auto auto;align-items:end;gap:12px;margin-top:16px;padding:20px 24px}.accounts-filter-card label>div,.accounts-filter-card select{width:100%;height:36px;margin-top:8px;border:1px solid #dfe4eb;border-radius:8px;background:#fff}.accounts-filter-card label>div{display:flex;align-items:center;padding:0 10px}.accounts-filter-card input,.accounts-filter-card select{border:0;outline:0;color:#344054;font-size:12px}.accounts-filter-card input{width:100%;height:100%;padding-left:8px;background:transparent}.accounts-filter-card select{padding:0 10px}.accounts-fetch,.accounts-clear{height:36px;white-space:nowrap}.accounts-clear{padding-inline:14px}.accounts-entities{margin-top:16px;overflow:hidden}.account-entity{width:100%;height:78px;padding:0 20px;display:flex;align-items:center;gap:12px;border:0;background:#fff;text-align:left}.account-entity:hover{background:#f9fbfc}.account-entity>span:nth-child(2){display:flex;flex-direction:column;gap:3px}.account-entity small,.account-detail small{color:#667085;font-size:11px}.account-entity strong,.account-detail strong{font-size:14px}.account-entity>svg{margin-left:auto;color:#667085}.account-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;background:#e8f8f2;color:#01a96b}.entity-pagination,.users-pagination{min-height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;color:#667085;font-size:12px}.entity-pagination button,.users-pagination button,.account-detail-actions button,.account-row-actions button,.accounts-users-toolbar button{height:32px;padding:0 12px;border:1px solid #dfe4eb;border-radius:7px;background:#fff;color:#1f2937;font-size:12px;font-weight:600}.entity-pagination button+button,.users-pagination button+button{margin-left:8px}.entity-pagination button:disabled,.users-pagination button:disabled{opacity:.45}.account-detail{margin-top:16px;overflow:hidden}.account-detail-head{min-height:72px;display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid #e5e9ef}.account-detail-head>div:first-child{display:flex;align-items:center;gap:11px}.account-detail-head p{display:flex;flex-direction:column;margin:0}.account-detail-actions{display:flex;gap:8px}.account-detail-actions button{display:inline-flex;align-items:center;gap:6px}.fetch-account-totals{width:calc(100% - 40px);height:54px;margin:20px;border:1px dashed #9fdcc6;border-radius:8px;background:#f4fcf9;color:#008f5b;display:flex;align-items:center;justify-content:center;gap:9px;font-size:13px;font-weight:600}.load-account-users{padding:22px 20px 24px;border-top:1px solid #e5e9ef;text-align:center;color:#667085;font-size:13px}.load-account-users button,.account-modal-actions button:last-child{height:36px;margin-top:10px;padding:0 18px;border:0;border-radius:7px;background:#01a96b;color:#fff;font-weight:600}.account-pnl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 32px;padding:20px}.account-pnl div{display:flex;justify-content:space-between;font-size:12px}.account-pnl hr{grid-column:1/-1;width:100%;margin:0;border:0;border-top:1px solid #e5e9ef}.profit{color:#00a86b!important}.loss{color:#ef4444!important}.blue{color:#2563eb}.amber{color:#d97706}.account-pnl .actual{font-size:14px;font-weight:700}.accounts-users-panel{border-top:1px solid #e5e9ef}.accounts-users-toolbar{padding:12px 16px;text-align:right}.accounts-users-toolbar button{display:inline-flex;align-items:center;gap:6px}.accounts-table-wrap{overflow:auto;border-top:1px solid #e5e9ef;border-bottom:1px solid #e5e9ef}.accounts-table-wrap table{width:100%;min-width:900px;border-collapse:collapse}.accounts-table-wrap th,.accounts-table-wrap td{height:52px;padding:8px 14px;border-bottom:1px solid #e5e9ef;text-align:left;white-space:nowrap;font-size:12px}.accounts-table-wrap th{color:#344054;font-weight:600}.account-row-actions{display:flex;gap:6px}.account-row-actions button:first-child{border-color:#01a96b;color:#008f5b}.accounts-empty{padding:40px;color:#667085;text-align:center}.account-modal[hidden]{display:none}.account-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center}.account-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.5)}.account-modal>section{position:relative;width:min(480px,calc(100vw - 32px));padding:24px;border-radius:12px;background:#fff;box-shadow:0 20px 50px rgba(0,0,0,.2)}.account-modal h2{margin:0 0 18px;font-size:20px}.account-modal-x{position:absolute;right:16px;top:12px;border:0;background:none;font-size:26px}.account-modal #settle-body{padding:14px;border-radius:8px;background:#f8fafc;color:#475467;font-size:13px}.account-modal #settle-body p{margin:7px 0}.account-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.account-modal-actions button{height:36px;padding:0 16px;border:1px solid #dfe4eb;border-radius:7px;background:#fff}.account-modal-actions button:last-child{margin:0;border:0}
@media(max-width:760px){.main:has(.accounts-reference-page) .topbar{display:flex}.accounts-reference-head{min-height:76px;padding:12px 58px 12px 16px}.accounts-title-row h1{font-size:21px}.accounts-refresh{right:12px;top:20px}.accounts-reference-body{padding:16px}.accounts-search-card{padding:16px}.accounts-type-tabs{display:grid;grid-template-columns:1fr}.accounts-filter-card{grid-template-columns:1fr;padding:16px}.accounts-filter-card label>div,.accounts-filter-card select{height:40px}.accounts-fetch,.accounts-clear{width:100%;height:40px}.account-detail-head{align-items:flex-start;gap:10px}.account-detail-actions{flex-wrap:wrap;justify-content:flex-end}.account-detail-actions button{padding:0 8px}.account-detail-actions button:last-child{width:32px;padding:0;justify-content:center}.account-pnl{grid-template-columns:1fr}.account-pnl hr{grid-column:1}.entity-pagination,.users-pagination{align-items:flex-start;gap:10px;flex-direction:column;padding:12px 16px}.accounts-users-toolbar{text-align:left}.account-modal>section{padding:20px}.account-entity{height:72px}}

/* Accounts reference fidelity corrections. */
.accounts-filter-card{grid-template-columns:repeat(3,minmax(180px,1fr)) 150px 160px}.accounts-entities{display:flex;flex-direction:column;gap:16px;border:0;background:transparent;box-shadow:none;overflow:visible}.account-entity{min-height:72px;border:1px solid #dfe4eb;border-radius:9px;box-shadow:0 5px 16px rgba(16,24,40,.025)}.account-entity:hover{border-color:#62d7ad;background:#fff}.account-avatar{width:38px;height:38px;flex:0 0 38px;border-radius:7px;background:#00b274;color:#fff}.account-avatar svg{width:21px;height:21px;stroke-width:2}.account-entity>span:nth-child(2){gap:1px}.account-entity small{font-size:12px}.account-entity strong{font-size:16px;line-height:19px}.account-entity>svg{width:18px;height:18px}.account-detail{margin-top:0;border-color:#62d7ad;box-shadow:none}.account-detail-head{min-height:72px}.account-detail-actions button{height:36px;font-size:12px}.fetch-account-totals{width:40%;min-width:390px;height:52px;margin:20px;background:#fff;border:1px solid #dfe4eb;color:#667085;justify-content:flex-start;padding:0 16px;font-size:15px}.load-account-users{margin-top:16px;padding:24px;border:1px solid #dfe4eb;border-radius:9px;background:#fff}.load-account-users button{display:inline-flex;align-items:center;gap:7px}.accounts-users-panel{margin-top:16px;border:1px solid #dfe4eb;border-radius:9px;background:#fff;overflow:hidden}.accounts-users-toolbar{padding:14px 16px;border-bottom:1px solid #e5e9ef}.accounts-table-wrap th,.accounts-table-wrap td{height:58px;font-size:13px}.accounts-table-wrap th:nth-child(7),.accounts-table-wrap td:nth-child(7){background:#f0eafe;border-left:1px solid #d6c5fa;border-right:1px solid #d6c5fa}.accounts-table-wrap td:nth-child(n+3):nth-child(-n+7){font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.account-pnl{padding:18px 20px;gap:0 36px}.account-pnl div{min-height:42px;align-items:center;border-bottom:1px solid #e5e9ef}.account-pnl hr{display:none}.account-pnl div:nth-last-child(-n+3){border-bottom:0}.entity-pagination{padding-inline:0}.accounts-type-tabs button svg{width:18px;height:18px}
@media(max-width:760px){.accounts-filter-card{grid-template-columns:1fr}.accounts-entities{gap:12px}.account-detail-head{flex-direction:column}.account-detail-actions{width:100%;justify-content:flex-start}.fetch-account-totals{width:calc(100% - 32px);min-width:0;margin:16px}.account-pnl{grid-template-columns:1fr}.load-account-users{margin-top:12px}.account-avatar{width:36px;height:36px;flex-basis:36px}}
.accounts-user-search{height:42px;margin:14px 16px;display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid #dfe4eb;border-radius:7px;color:#667085}.accounts-user-search input{width:100%;border:0;outline:0;background:transparent;color:#344054;font:inherit}

/* Update / My Info reference page */
.main:has(.update-reference-page) .topbar{display:none}.content:has(.update-reference-page){padding:0}.update-reference-page{min-height:100vh;background:#f8fafc;color:#111827}.update-reference-page svg{width:17px;height:17px}.update-head{height:80px;display:flex;align-items:flex-start;justify-content:space-between;padding:12px 24px;background:#fff;border-bottom:1px solid #e1e6ed}.update-head>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.update-head h1{margin:0;font-size:24px;line-height:32px}.update-head span,.update-head time{color:#8b95a7;font-size:12px}.update-head p{flex-basis:100%;margin:-4px 0 0;color:#667085;font-size:14px}.update-head>button{width:38px;height:32px;margin-top:12px;border:1px solid #dfe4eb;border-radius:8px;background:#fff}.update-tabs{height:66px;display:flex;align-items:flex-end;gap:3px;padding:0 24px;border-bottom:1px solid #e1e6ed;background:#fff;overflow-x:auto}.update-tabs button{height:42px;display:flex;align-items:center;gap:8px;padding:0 14px;border:0;border-radius:8px 8px 0 0;background:transparent;color:#111827;white-space:nowrap;font-size:13px;font-weight:600}.update-tabs button.active{background:#00b274;color:#fff}.update-body{padding:16px 24px 28px}.update-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.update-card{border:1px solid #dfe4eb;border-radius:10px;background:#fff;box-shadow:0 7px 22px rgba(16,24,40,.035);overflow:hidden}.update-card>header{min-height:88px;display:flex;align-items:center;gap:10px;padding:18px 22px;border-bottom:1px solid #e5e9ef}.update-card>header i{width:34px;height:34px;display:grid;place-items:center;border-radius:7px;background:#e8f3ff;color:#2878f0}.update-card>header h2{margin:0;font-size:16px}.update-card>header p{margin:3px 0 0;color:#667085;font-size:12px}.profile-values{min-height:258px;padding:22px}.profile-values label{display:block;margin-bottom:14px;color:#667085;font-size:11px}.profile-values strong{display:block;margin-top:3px;color:#111827;font-size:13px}.update-form{padding:22px}.update-form label,.workspace-form label{display:block;margin-bottom:14px;font-size:12px;font-weight:600}.update-form input,.workspace-form input{width:100%;height:38px;margin-top:7px;padding:0 11px;border:1px solid #dfe4eb;border-radius:7px;outline:0}.update-form>p{color:#667085;font-size:11px}.update-primary{height:38px;padding:0 18px;border:0;border-radius:7px;background:#00b274;color:#fff;font-weight:600}.password-card .update-primary{width:100%}.support-card{grid-column:1}.sessions-card{grid-column:1/-1}.update-table{overflow:auto}.update-table table{width:100%;min-width:800px;border-collapse:collapse}.update-table th,.update-table td{height:48px;padding:8px 14px;border-bottom:1px solid #e5e9ef;text-align:left;font-size:12px}.update-table td[colspan]{height:110px;text-align:center;color:#667085}.update-workspace{max-width:1100px}.workspace-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;padding:22px}.workspace-form .update-primary{align-self:end;margin-bottom:14px}.update-workspace>header i{background:#e7f8f1;color:#00a268}
@media(max-width:760px){.main:has(.update-reference-page) .topbar{display:flex}.update-head{height:76px;padding:10px 16px}.update-head h1{font-size:21px}.update-tabs{height:58px;padding:0 12px}.update-tabs button{height:39px;padding:0 11px}.update-body{padding:14px}.update-grid{grid-template-columns:1fr}.support-card,.sessions-card{grid-column:1}.workspace-form{grid-template-columns:1fr}.update-card>header{min-height:76px;padding:14px 16px}.update-form,.profile-values,.workspace-form{padding:16px}}
.update-modal[hidden]{display:none}.update-modal{position:fixed;inset:0;z-index:1200;display:grid;place-items:center}.update-modal-bg{position:absolute;inset:0;background:rgba(15,23,42,.55)}.update-modal>section{position:relative;width:min(540px,calc(100vw - 28px));max-height:min(680px,calc(100vh - 28px));display:flex;flex-direction:column;border-radius:12px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.24);overflow:hidden}.update-modal header{display:flex;justify-content:space-between;padding:20px 22px 14px}.update-modal h2{margin:0;font-size:20px}.update-modal header p{margin:4px 0 0;color:#667085;font-size:12px}.update-modal header button{border:0;background:none;font-size:25px}.update-modal-search{height:42px;margin:0 20px 12px;display:flex;align-items:center;gap:9px;padding:0 11px;border:1px solid #dfe4eb;border-radius:7px}.update-modal-search input{width:100%;border:0;outline:0}.update-user-list{padding:0 20px;overflow:auto}.update-user-list>button{width:100%;min-height:58px;display:flex;align-items:center;justify-content:space-between;padding:9px 12px;border:0;border-bottom:1px solid #eef1f4;background:#fff;text-align:left}.update-user-list>button:hover{background:#f3fbf8}.update-user-list span{display:flex;flex-direction:column}.update-user-list small{margin-top:3px;color:#667085}.update-user-list em{padding:4px 8px;border-radius:6px;background:#e7f8f1;color:#008f5b;font-size:11px;font-style:normal}.update-no-users{padding:40px;text-align:center;color:#667085}.update-modal footer{padding:14px 20px;text-align:right;border-top:1px solid #e5e9ef}.update-modal footer button{height:36px;padding:0 18px;border:1px solid #dfe4eb;border-radius:7px;background:#fff}
@media (max-width: 450px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .top-right .clock {
    display: none;
  }
}

/* Liquicore-matched Orders page. Kept page-scoped so each screen can be
   matched independently without coupling its layout to other admin pages. */
.sidebar .brand {
  height: 80px;
  margin: -16px -8px 16px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 600;
}
.nav-btn {
  height: 40px;
  border-radius: 0;
  padding: 8px 12px 8px 24px;
  font-size: 14px;
}
.nav-btn.active {
  border-left: 4px solid var(--brand);
  padding-left: 20px;
  background: #e8f8f1;
}
@media (min-width: 761px) {
  .topbar {
    display: none;
  }
}
.main:has(.orders-page) .topbar {
  display: none;
}
.main:has(.ledger-page) .topbar {
  display: none;
}
.content:has(.ledger-page) {
  padding: 0;
}

/* Payin-Out / Ledger Requests. Page-scoped to keep this mirror independent. */
.ledger-page {
  min-height: 100vh;
  background: #f8fafc;
  color: #182230;
  font-size: 14px;
}
.ledger-head {
  position: relative;
  min-height: 80px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.ledger-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ledger-title-row h1 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}
.ledger-clock-dot,
.ledger-clock {
  color: #8a94a6;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.ledger-head > p {
  margin: 0;
  color: #667085;
  line-height: 20px;
}
.ledger-head-actions {
  position: absolute;
  top: 22px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.auto-refresh,
.ledger-icon-button,
.columns-button,
.ledger-pager button,
.ledger-pager select {
  border: 1px solid var(--line);
  background: #fff;
  color: #182230;
  border-radius: 6.4px;
  box-shadow: 0 4px 24px #00000008;
}
.auto-refresh {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-weight: 500;
}
.switch-control {
  width: 32px;
  height: 19px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d0d5dd;
  position: relative;
  flex: 0 0 auto;
}
.switch-control span {
  position: absolute;
  width: 15px;
  height: 15px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: white;
  transition: transform 0.18s;
  box-shadow: 0 1px 3px #0003;
}
.switch-control.on { background: var(--brand); }
.switch-control.on span { transform: translateX(13px); }
.ledger-icon-button {
  width: 36px;
  height: 36px;
  padding: 9px;
}
.ledger-icon-button svg,
.columns-button svg,
.ledger-row-button svg {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}
.ledger-tabs-scroll {
  margin: 25px 24px 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.ledger-tabs-scroll::-webkit-scrollbar { display: none; }
.ledger-tabs {
  display: flex;
  gap: 8px;
  width: max-content;
}
.ledger-tab {
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8.4px 8.4px 0 0;
  background: transparent;
  color: #182230;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.ledger-tab svg { width: 16px; height: 16px; flex: 0 0 16px; }
.ledger-tab.active {
  color: white;
  background: var(--brand);
  border: 1px solid var(--brand);
}
.ledger-page-body { padding: 16px 24px 0; }
.ledger-table-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 24px #0000000a;
}
.ledger-table-scroll { overflow: auto; }
.ledger-table {
  width: 100%;
  min-width: 1590px;
  border-collapse: collapse;
  font-size: 14px;
}
.ledger-table th,
.ledger-table td {
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.ledger-table th { height: 45px; font-weight: 600; background: #fff; }
.ledger-table td { height: 63px; }
.ledger-table tbody tr:hover { background: #f9fafb; }
.ledger-table .ledger-empty { text-align: center; color: #667085; height: 180px; }
.ledger-time,
.ledger-amount {
  display: grid;
  gap: 3px;
}
.ledger-time span,
.ledger-amount span { color: #667085; font-size: 12px; }
.ledger-user-id {
  display: inline-flex;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.ledger-status {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
  background: #f59e0b;
  font-size: 12px;
  font-weight: 600;
}
.ledger-status.approved,
.ledger-status.accepted,
.ledger-status.success { background: #12b76a; }
.ledger-status.rejected,
.ledger-status.failed { background: #f04438; }
.ledger-row-button {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #182230;
  font-size: 12px;
  font-weight: 500;
}
.ledger-row-button.success { color: #039855; border-color: #a6f4c5; }
.ledger-row-button.danger { color: #d92d20; border-color: #fecdca; }
.ledger-action-complete { color: #98a2b3; display: inline-block; min-width: 56px; text-align: center; }
.ledger-table-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
  padding: 12px 24px;
}
.columns-button {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  font-weight: 500;
  margin-left: 40px;
}
.columns-button span,
.ledger-pager span { color: #667085; font-weight: 400; }
.ledger-pager { display: flex; align-items: center; gap: 12px; }
.ledger-pager label { display: flex; align-items: center; gap: 6px; color: #667085; }
.ledger-pager button,
.ledger-pager select { height: 36px; padding: 0 12px; }
.ledger-pager button:disabled { opacity: 0.45; }
.columns-popover {
  position: fixed;
  left: 248px;
  bottom: 76px;
  z-index: 60;
  width: 230px;
  max-height: 380px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 35px #10182824;
}
.columns-popover label { display: flex; gap: 9px; padding: 7px; }
.ledger-settings-card {
  max-width: 880px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 24px #0000000a;
  overflow: hidden;
}
.settings-card-head { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.settings-card-head h2 { margin: 0; font-size: 18px; }
.settings-card-head p,
.rule-line p { margin: 4px 0 0; color: #667085; }
.ledger-form,
.rules-body { padding: 22px 24px; display: grid; gap: 18px; }
.ledger-form label,
.rules-body label { display: grid; gap: 7px; font-weight: 500; }
.ledger-form input,
.ledger-form select,
.rules-body input,
.rules-body textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font: inherit;
}
.rules-body textarea { min-height: 82px; resize: vertical; }
.ledger-form small,
.rules-body small { color: #667085; font-weight: 400; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; }
.ledger-save,
.ledger-delete {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 7px;
  font-weight: 600;
}
.ledger-save { border: 1px solid var(--brand); background: var(--brand); color: #fff; }
.ledger-delete { border: 1px solid #fda29b; background: #fff; color: #d92d20; }
.ledger-save.full { width: 100%; }
.rules-layout { max-width: 980px; margin: 0 auto; }
.rule-line { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.days-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.days-picker button { width: 46px; height: 36px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.days-picker button.active { background: #e8f8f1; border-color: var(--brand); color: #008f5a; }
.payment-modal[hidden],
.columns-popover[hidden] { display: none; }
.payment-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.payment-modal-backdrop { position: absolute; inset: 0; background: #10182899; }
.payment-modal-card { position: relative; z-index: 1; width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 24px; border-radius: 12px; background: #fff; box-shadow: 0 24px 48px #1018283d; }
.payment-modal-card h2 { margin: 0 36px 18px 0; font-size: 18px; }
.modal-close { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; border: 0; background: transparent; font-size: 24px; }
.payment-proof { display: block; width: 100%; max-height: 56vh; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; }
.proof-empty { min-height: 220px; display: grid; place-items: center; color: #667085; background: #f9fafb; border-radius: 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.payment-decision-complete { margin-top: 18px; padding: 12px 14px; border-radius: 7px; background: #f2f4f7; color: #667085; text-align: center; font-weight: 500; }

@media (max-width: 760px) {
  .ledger-head { min-height: 93px; padding: 12px 16px; }
  .ledger-title-row h1 { font-size: 18px; line-height: 24px; }
  .ledger-head > p { display: none; }
  .ledger-clock-dot { display: none; }
  .ledger-clock { margin-left: auto; }
  .ledger-head-actions { position: static; margin-top: 8px; justify-content: flex-start; }
  .ledger-head-actions::before { content: "◫"; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6.4px; background: #fff; }
  .auto-refresh { padding: 0 10px; }
  .ledger-tabs-scroll { margin: 14px 16px 0; }
  .ledger-page-body { padding: 16px 16px 0; }
  .ledger-table { min-width: 1590px; font-size: 12px; }
  .ledger-table th,
  .ledger-table td { padding: 10px 12px; }
  .ledger-table-card { max-width: 100%; }
  .ledger-table-footer { align-items: flex-start; gap: 16px; padding: 16px 0; flex-direction: column; }
  .ledger-pager { width: 100%; flex-wrap: wrap; }
  .columns-popover { left: 16px; bottom: 84px; }
  .columns-button { margin-left: auto; }
  .form-two { grid-template-columns: 1fr; }
  .settings-card-head,
  .ledger-form,
  .rules-body { padding: 18px 16px; }
}
.content:has(.orders-page) {
  padding: 0;
}
.orders-page {
  min-height: 100vh;
  background: #fafbfc;
}
.reference-page-header {
  min-height: 80px;
  padding: 14px 24px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.reference-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.reference-title-row h1 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}
.title-dot,
.page-clock {
  color: #98a2b3;
  font-size: 13px;
  font-weight: 500;
}
.reference-page-header p {
  margin: 3px 0 0;
  color: #667085;
  font-size: 13px;
}
.reference-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.square-action,
.select-user-button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 4px 24px #00000008;
  font-size: 13px;
  font-weight: 500;
}
.square-action {
  width: 36px;
}
.select-user-button {
  padding: 0 14px;
}
.orders-body {
  padding: 24px;
}
.order-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.order-summary {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 24px #00000008;
}
.summary-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}
.summary-icon.selected {
  background: #2f80ed;
}
.summary-icon.buy {
  background: #01a96b;
}
.summary-icon.sell {
  background: #f0444d;
}
.order-summary div {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.order-summary div > span {
  color: #667085;
  font-size: 12px;
}
.order-summary strong {
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
}
.selected-name {
  overflow: hidden;
  color: #2f80ed;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.buy-count {
  color: #01a96b;
}
.sell-count {
  color: #f0444d;
}
.order-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.order-tab {
  min-width: 88px;
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #1f2937;
  font-size: 12px;
  font-weight: 500;
}
.order-tab.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.orders-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.order-search {
  width: min(456px, calc(100% - 82px));
  height: 40px;
  position: relative;
}
.order-search span {
  position: absolute;
  left: 14px;
  top: 9px;
  color: #98a2b3;
}
.order-search input {
  width: 100%;
  height: 100%;
  padding: 4px 16px 4px 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  outline: none;
  font-size: 14px;
}
.view-switch {
  height: 40px;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.view-switch button {
  width: 40px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: #344054;
}
.view-switch button:last-child {
  border-right: 0;
}
.view-switch button.active {
  background: #f2f4f7;
}
.orders-table-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 24px #00000008;
}
.orders-table {
  width: 100%;
  min-width: 950px;
  border-collapse: collapse;
}
.orders-table th {
  height: 60px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  color: #1f2937;
  text-align: left;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.orders-table th span {
  margin-left: 8px;
  color: #98a2b3;
}
.orders-table td {
  height: 61px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: #1f2937;
  white-space: nowrap;
  font-size: 14px;
}
.orders-table tbody tr:last-child td {
  border-bottom: 0;
}
.order-user,
.order-number {
  font-weight: 600;
}
.order-time,
.order-ip {
  color: #667085 !important;
}
.order-info {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f2f4f7;
  font-size: 10px;
  font-weight: 600;
}
.order-side {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
}
.order-side.buy {
  background: #01a96b;
  color: #fff;
}
.order-side.sell {
  background: #f0444d;
  color: #fff;
}
.order-script {
  display: block;
  font-weight: 600;
}
.orders-table td small {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 11px;
}
.orders-empty {
  height: 160px !important;
  color: #667085 !important;
  text-align: center;
}
@media (max-width: 760px) {
  .main:has(.orders-page) .topbar {
    display: flex;
  }
  .content:has(.orders-page) {
    padding: 0;
  }
  .reference-page-header {
    padding: 12px 16px;
  }
  .reference-header-actions {
    display: none;
  }
  .orders-body {
    padding: 16px;
  }
  .order-summary-grid {
    grid-template-columns: 1fr;
  }
  .order-search {
    width: calc(100% - 82px);
  }
}
