:root {
  --bg: #09101b;
  --panel: #111b29;
  --panel2: #152131;
  --text: #f4f7fb;
  --muted: #8492a5;
  --line: #223044;
  --accent: #d4ae5a;
  --accent2: #f2d58d;
  --good: #49d09a;
  --bad: #ff7185;
  --flag1: #0b5ca8;
  --flag2: #e6c550;
  --glow: rgba(212, 174, 90, 0.15);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 0, var(--glow), transparent 28%), var(--bg);
  color: var(--text);
  font-family: Inter, "Noto Sans SC", "Segoe UI", sans-serif;
  font-size: 16px;
}
button,
input {
  font: inherit;
}
.shell {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: 100vh;
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  background: rgba(8, 15, 25, 0.74);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 32px;
}
.brand-mark,
.login-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: #101620;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  font-family: Georgia, serif;
  font-weight: 900;
  clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}
.brand strong {
  display: block;
  letter-spacing: 2px;
}
.brand small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.5px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.nav-item {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 13px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14px;
  cursor: pointer;
}
.nav-item span {
  font-size: 18px;
  width: 19px;
}
.nav-item i {
  font-style: normal;
  margin-left: auto;
  background: #243247;
  color: #cbd4df;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 11px;
}
.nav-item:hover,
.nav-item.active {
  background: linear-gradient(90deg, var(--glow), transparent);
  color: var(--accent2);
}
.nav-item.active {
  box-shadow: inset 2px 0 var(--accent);
}
.side-bottom {
  margin-top: auto;
}
.support {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.support > span {
  color: var(--accent);
  font-size: 23px;
}
.support b,
.support small {
  display: block;
}
.support b {
  font-size: 12px;
}
.support small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.support button {
  margin-left: auto;
  border: 0;
  color: var(--accent);
  background: transparent;
}
main {
  padding: 31px 38px 50px;
  min-width: 0;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 29px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 6px;
  text-transform: uppercase;
}
h1 {
  font:
    600 27px Georgia,
    "Noto Serif SC",
    serif;
  margin: 0;
}
.header-actions {
  display: flex;
  gap: 12px;
}
.icon-btn,
.profile {
  height: 48px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 12px;
}
.icon-btn {
  width: 48px;
  position: relative;
  font-size: 20px;
}
.icon-btn em {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--bad);
  border: 2px solid var(--panel);
  border-radius: 50%;
  right: 12px;
  top: 11px;
}
.profile {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  cursor: pointer;
}
.profile > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #735b29);
  font-size: 12px;
  font-weight: 700;
}
.profile b,
.profile small {
  display: block;
}
.profile b {
  font-size: 11px;
  letter-spacing: 0.5px;
}
.profile small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.profile i {
  color: var(--muted);
  font-style: normal;
  margin-left: 12px;
}
.country-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-bottom: 22px;
}
.country-tabs button {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(17, 27, 41, 0.7);
  border-radius: 13px;
  padding: 14px 16px;
  color: var(--text);
  cursor: pointer;
  transition: 0.2s;
}
.country-tabs button:hover {
  transform: translateY(-1px);
}
.country-tabs button.active {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 8px 30px var(--glow);
  background: linear-gradient(120deg, var(--glow), var(--panel));
}
.country-tabs b,
.country-tabs small {
  display: block;
}
.country-tabs b {
  font-size: 13px;
}
.country-tabs small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.flag {
  width: 34px;
  height: 24px;
  border-radius: 4px;
  box-shadow: 0 2px 8px #0008;
}
.flag.my {
  background: linear-gradient(
    #d81937 0 12.5%,
    #fff 12.5% 25%,
    #d81937 25% 37.5%,
    #fff 37.5% 50%,
    #d81937 50% 62.5%,
    #fff 62.5% 75%,
    #d81937 75% 87.5%,
    #fff 87.5%
  );
  border-left: 14px solid #083b84;
}
.flag.sg {
  background: linear-gradient(#e23845 0 50%, #fff 50%);
}
.flag.th {
  background: linear-gradient(
    #c5283d 0 20%,
    #fff 20% 35%,
    #203f8c 35% 65%,
    #fff 65% 80%,
    #c5283d 80%
  );
}
.summary-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.hero-card,
.metric {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
  background: linear-gradient(140deg, var(--panel2), var(--panel));
  position: relative;
  overflow: hidden;
}
.hero-card:after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(20px);
  right: -70px;
  top: -80px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  color: #b7c1ce;
  font-size: 13px;
}
.trend {
  color: var(--good);
  background: rgba(73, 208, 154, 0.1);
  border-radius: 12px;
  padding: 4px 8px;
}
.amount {
  margin: 18px 0 11px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.amount small {
  color: var(--accent2);
  font-weight: 600;
  margin-top: 5px;
}
.amount strong {
  font-size: 29px;
  letter-spacing: -0.5px;
}
.hero-card p,
.metric p {
  font-size: 11px;
  color: var(--muted);
  margin: 7px 0 0;
}
.hero-card p b {
  color: #b8c3d0;
}
.sparkline {
  position: absolute;
  right: 18px;
  bottom: 25px;
  height: 45px;
  display: flex;
  gap: 4px;
  align-items: flex-end;
}
.sparkline i {
  display: block;
  width: 5px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.55;
}
.sparkline i:nth-child(1) {
  height: 10px;
}
.sparkline i:nth-child(2) {
  height: 16px;
}
.sparkline i:nth-child(3) {
  height: 13px;
}
.sparkline i:nth-child(4) {
  height: 25px;
}
.sparkline i:nth-child(5) {
  height: 22px;
}
.sparkline i:nth-child(6) {
  height: 31px;
}
.sparkline i:nth-child(7) {
  height: 24px;
}
.sparkline i:nth-child(8) {
  height: 35px;
}
.sparkline i:nth-child(9) {
  height: 29px;
}
.sparkline i:nth-child(10) {
  height: 41px;
}
.sparkline i:nth-child(11) {
  height: 37px;
}
.sparkline i:nth-child(12) {
  height: 45px;
  opacity: 1;
}
.metric > span {
  color: var(--muted);
  font-size: 12px;
}
.metric strong {
  font-size: 18px;
  display: block;
  margin-top: 17px;
}
.metric strong small {
  font-size: 10px;
  color: var(--muted);
}
.metric-icon {
  float: right;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 800;
}
.metric-icon.in {
  color: var(--good);
  background: rgba(73, 208, 154, 0.1);
}
.metric-icon.out {
  color: var(--bad);
  background: rgba(255, 113, 133, 0.1);
}
.metric-icon.keep {
  color: var(--accent);
  background: var(--glow);
}
.work-card {
  border: 1px solid var(--line);
  background: rgba(17, 27, 41, 0.78);
  border-radius: 15px;
  overflow: hidden;
}
.section-head {
  padding: 21px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-head h2 {
  font-size: 17px;
  margin: 0 0 5px;
}
.section-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.actions {
  display: flex;
  gap: 8px;
}
.search,
.filter,
.primary,
.date {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0d1724;
  color: var(--muted);
}
.search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  width: 190px;
  font-size: 12px;
}
.filter,
.primary {
  padding: 0 13px;
  font-size: 12px;
  cursor: pointer;
}
.primary {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border: 0;
  color: #17202b;
  font-weight: 700;
}
.status-row {
  display: flex;
  padding: 0 23px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.status-row > button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 13px 14px;
  font-size: 12px;
  border-bottom: 2px solid transparent;
}
.status-row > button.active {
  color: var(--accent2);
  border-color: var(--accent);
}
.status-row b {
  font-size: 9px;
  background: #253348;
  padding: 2px 6px;
  border-radius: 9px;
  margin-left: 3px;
}
.status-row > span {
  flex: 1;
}
.status-row label {
  font-size: 11px;
  color: var(--muted);
}
.date {
  margin-left: 8px;
  height: 30px;
  padding: 0 10px;
  font-size: 11px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1180px;
}
th {
  text-align: left;
  color: #758499;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 13px 12px;
  background: #0e1825;
  white-space: nowrap;
}
td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: #c6cfda;
  vertical-align: middle;
}
td:first-child,
th:first-child {
  padding-left: 23px;
}
.account {
  display: flex;
  align-items: center;
  gap: 9px;
}
.account span,
.person span {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: linear-gradient(135deg, #30435c, #1d2939);
  color: var(--accent2);
  font-weight: 700;
}
.account b,
.account small,
.flow b,
.flow small {
  display: block;
}
.account b {
  font-size: 11px;
  color: var(--text);
}
.account small,
.flow small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 10px;
  font-size: 10px;
}
.badge:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.badge.active {
  background: rgba(73, 208, 154, 0.1);
  color: var(--good);
}
.badge.active:before {
  background: var(--good);
}
.badge.paused {
  background: rgba(255, 113, 133, 0.1);
  color: var(--bad);
}
.badge.paused:before {
  background: var(--bad);
}
.money {
  font-variant-numeric: tabular-nums;
  color: #e6ebf1;
}
.money.in {
  color: var(--good);
}
.money.profit {
  color: var(--accent2);
  font-weight: 700;
}
.person {
  display: flex;
  align-items: center;
  gap: 6px;
}
.person span {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  font-size: 9px;
}
.note {
  max-width: 130px;
  color: var(--muted);
}
.more {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 18px;
}
.table-footer {
  padding: 13px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
}
.table-footer button {
  border: 1px solid var(--line);
  background: #0e1825;
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 7px;
  margin-left: 4px;
}
.table-footer button.active {
  border-color: var(--accent);
  color: var(--accent2);
}
dialog {
  width: min(430px, calc(100% - 32px));
  border: 1px solid #3c4a5e;
  border-radius: 18px;
  background: linear-gradient(145deg, #162335, #0d1623);
  color: var(--text);
  padding: 36px;
  box-shadow: 0 25px 100px #000;
}
dialog::backdrop {
  background: rgba(3, 7, 12, 0.82);
  backdrop-filter: blur(6px);
}
dialog .close {
  position: absolute;
  right: 15px;
  top: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 25px;
}
.login-mark {
  margin: 0 auto 22px;
  width: 55px;
  height: 55px;
}
dialog {
  text-align: center;
}
dialog h2 {
  font:
    600 24px Georgia,
    "Noto Serif SC",
    serif;
  margin: 5px;
}
dialog > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 25px;
}
dialog form {
  text-align: left;
}
dialog form > label {
  display: block;
  color: #aab5c2;
  font-size: 12px;
  margin-top: 13px;
}
dialog form > label input {
  display: block;
  width: 100%;
  height: 45px;
  margin-top: 7px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #09121e;
  color: white;
  padding: 0 13px;
}
.login-options {
  display: flex;
  justify-content: space-between;
  margin: 13px 0 20px;
  font-size: 11px;
  color: var(--muted);
}
.login-options label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.login-options a {
  color: var(--accent2);
}
.login-submit {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  font-weight: 800;
  color: #121922;
}
.login-submit + * {
}
dialog > small {
  display: block;
  color: #66768b;
  font-size: 10px;
  margin-top: 20px;
}
body[data-country="my"] {
  --accent: #d4ae5a;
  --accent2: #f2d58d;
  --glow: rgba(212, 174, 90, 0.15);
}
body[data-country="sg"] {
  --accent: #e55363;
  --accent2: #ffb2ba;
  --glow: rgba(229, 83, 99, 0.14);
}
body[data-country="th"] {
  --accent: #5779d5;
  --accent2: #a9bcff;
  --glow: rgba(87, 121, 213, 0.17);
}
body[data-country="vn"] {
  --accent: #27a878;
  --accent2: #7ce4b7;
  --glow: rgba(39, 168, 120, 0.16);
}
body[data-country="id"] {
  --accent: #e88445;
  --accent2: #ffc08f;
  --glow: rgba(232, 132, 69, 0.16);
}
body[data-country="au"] {
  --accent: #22a9cc;
  --accent2: #82ddf2;
  --glow: rgba(34, 169, 204, 0.17);
}

/* Subscription-aware country switcher */
.country-switcher {
  position: relative;
}
.country-trigger {
  height: 48px;
  min-width: 154px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  cursor: pointer;
  text-align: left;
}
.country-trigger:hover,
.country-trigger[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.country-trigger b,
.country-trigger small {
  display: block;
}
.country-trigger b {
  font-size: 12px;
}
.country-trigger small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.country-trigger i {
  font-style: normal;
  margin-left: auto;
  color: var(--muted);
  transition: 0.2s;
}
.country-trigger[aria-expanded="true"] i {
  transform: rotate(180deg);
}
.country-menu {
  display: none;
  position: absolute;
  z-index: 10;
  top: 56px;
  right: 0;
  width: 250px;
  padding: 7px;
  border: 1px solid #314057;
  border-radius: 13px;
  background: #101a28;
  box-shadow: 0 18px 50px #0009;
}
.country-menu.open {
  display: block;
}
.country-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 10px;
  border-radius: 9px;
  cursor: pointer;
}
.country-option:hover,
.country-option.active {
  background: var(--glow);
}
.country-option b,
.country-option small {
  display: block;
}
.country-option b {
  font-size: 12px;
}
.country-option small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.country-option .check {
  margin-left: auto;
  color: var(--accent);
  font-weight: 800;
}
.country-trigger .flag,
.country-option .flag {
  flex: 0 0 auto;
}
@media (max-width: 1100px) {
  .summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-card {
    grid-column: 1/-1;
  }
  .sparkline {
    right: 30px;
  }
  .section-head {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }
  .actions {
    width: 100%;
  }
  .search {
    flex: 1;
  }
  .search input {
    width: 100%;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 4;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 66px;
    padding: 8px 10px;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .brand,
  .side-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    justify-content: space-around;
  }
  .nav-item {
    font-size: 0;
    padding: 10px 14px;
  }
  .nav-item span {
    font-size: 20px;
  }
  .nav-item i {
    position: absolute;
    margin: -25px 0 0 14px;
  }
  .sidebar nav .nav-item:nth-child(5) {
    display: none;
  }
  main {
    padding: 20px 15px 90px;
  }
  h1 {
    font-size: 22px;
  }
  .profile div,
  .profile i {
    display: none;
  }
  .country-tabs {
    gap: 8px;
  }
  .country-tabs button {
    padding: 10px;
  }
  .country-tabs small {
    display: none;
  }
  .flag {
    width: 28px;
    height: 20px;
  }
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-card {
    grid-column: 1/-1;
  }
  .metric {
    padding: 15px;
  }
  .metric:last-child {
    grid-column: 1/-1;
  }
  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .search {
    grid-column: 1/-1;
  }
  .status-row {
    overflow-x: auto;
  }
  .status-row > span,
  .status-row label {
    display: none;
  }
}
@media (max-width: 760px) {
  .country-trigger {
    min-width: 48px;
    width: 48px;
    padding: 7px;
  }
  .country-trigger div,
  .country-trigger i {
    display: none;
  }
  .country-menu {
    right: -104px;
  }
}

/* Demo workspaces */
.flag-emoji {
  width: 34px;
  height: 25px;
  display: grid;
  place-items: center;
  font-size: 25px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px #0008);
}
.view-panel {
  display: none;
}
.view-panel.active {
  display: block;
}
.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 4px 0 22px;
}
.page-title h2 {
  font:
    600 27px Georgia,
    "Noto Serif SC",
    serif;
  margin: 0 0 7px;
}
.page-title > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.demo-toolbar {
  display: flex;
  gap: 9px;
  margin-bottom: 16px;
}
.demo-toolbar .search {
  margin-left: auto;
}
.report-summary {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 16px 20px;
  background: var(--panel);
  margin-bottom: 16px;
}
.report-summary article {
  flex: 1;
}
.report-summary article span,
.report-summary article b {
  display: block;
}
.report-summary article span {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 7px;
}
.report-summary article b {
  font-size: 18px;
}
.report-summary article .positive {
  color: var(--good);
}
.report-summary > i {
  font-style: normal;
  color: #59677a;
}
.report-summary .highlight {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.report-summary .highlight b {
  color: var(--accent2);
}
.demo-tag {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--accent2);
  border: 1px solid var(--accent);
  padding: 5px 8px;
  border-radius: 8px;
}
.verify {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 9px;
}
.verify.ok {
  color: var(--good);
  background: rgba(73, 208, 154, 0.1);
}
.verify.wait {
  color: var(--accent2);
  background: var(--glow);
}
.notice-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 17px;
  background: var(--glow);
  border: 1px solid var(--accent);
  border-radius: 12px;
  margin-bottom: 16px;
}
.notice-strip > span {
  color: var(--accent2);
  font-size: 20px;
}
.notice-strip b,
.notice-strip small {
  display: block;
}
.notice-strip b {
  font-size: 12px;
}
.notice-strip small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.connect-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 15px;
}
.request-list,
.connection-detail,
.settings-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  overflow: hidden;
}
.list-head {
  display: flex;
  justify-content: space-between;
  padding: 17px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.list-head span {
  color: var(--muted);
}
.request {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 15px;
  cursor: pointer;
}
.request.active {
  background: var(--glow);
  box-shadow: inset 2px 0 var(--accent);
}
.request div {
  flex: 1;
}
.request b,
.request small {
  display: block;
}
.request b {
  font-size: 12px;
}
.request small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.request em {
  font-style: normal;
  font-size: 9px;
  color: var(--accent2);
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #26364b;
  color: #c9d3df;
  font-size: 10px;
  font-weight: 700;
}
.avatar.large {
  width: 43px;
  height: 43px;
}
.avatar.gold {
  background: linear-gradient(135deg, var(--accent), #715925);
  color: #111;
}
.connection-detail {
  padding: 20px;
}
.connect-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.connect-head > div {
  display: flex;
  gap: 11px;
  align-items: center;
}
.connect-head b,
.connect-head small {
  display: block;
}
.connect-head b {
  font-size: 13px;
}
.connect-head small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.verified {
  font-size: 9px;
  color: var(--good);
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 110px 1fr;
  align-items: center;
  text-align: center;
  margin: 25px 0;
  padding: 20px;
  background: #0c1622;
  border-radius: 13px;
}
.compare-grid div > span,
.compare-grid div > strong,
.compare-grid div > small {
  display: block;
}
.compare-grid div > span,
.compare-grid div > small {
  font-size: 10px;
  color: var(--muted);
}
.compare-grid strong {
  font-size: 20px;
  margin: 9px;
}
.match {
  color: var(--good);
}
.match b,
.match small {
  display: block;
  font-size: 9px;
}
.timeline {
  display: grid;
  gap: 15px;
  margin: 10px 5px;
}
.timeline > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
}
.timeline i {
  grid-row: 1/3;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #3a485c;
  color: var(--muted);
  font-style: normal;
  font-size: 10px;
}
.timeline b {
  font-size: 11px;
}
.timeline small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.timeline .done i {
  border-color: var(--good);
  color: var(--good);
}
.detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.partner-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.partner-stats article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.partner-stats span,
.partner-stats b,
.partner-stats small {
  display: block;
}
.partner-stats span {
  font-size: 11px;
  color: var(--muted);
}
.partner-stats b {
  font-size: 25px;
  margin: 9px 0 3px;
}
.partner-stats small {
  font-size: 9px;
  color: #738196;
}
.partner-row {
  display: grid;
  grid-template-columns: 38px 1.4fr 100px 100px 130px 30px;
  gap: 10px;
  align-items: center;
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.partner-row > div b,
.partner-row > div small,
.partner-row > span small,
.partner-row > span b {
  display: block;
}
.partner-row small {
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 3px;
}
.plan-pill,
.invite-pill {
  width: max-content;
  font-size: 9px;
  padding: 5px 8px;
  border-radius: 9px;
}
.plan-pill {
  color: var(--good);
  background: rgba(73, 208, 154, 0.1);
}
.invite-pill {
  color: var(--accent2);
  background: var(--glow);
}
.settings-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 15px;
}
.settings-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}
.settings-nav button {
  border: 0;
  text-align: left;
  padding: 12px 14px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.settings-nav button.active {
  background: var(--glow);
  color: var(--accent2);
  box-shadow: inset 2px 0 var(--accent);
}
.settings-card {
  padding: 22px;
}
.settings-title {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.settings-title h3 {
  font-size: 15px;
  margin: 0 0 5px;
}
.settings-title p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.subscription-row {
  display: grid;
  grid-template-columns: 42px 1fr 90px 120px 70px;
  align-items: center;
  gap: 10px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.subscription-row b,
.subscription-row small {
  display: block;
}
.subscription-row > div b {
  font-size: 12px;
}
.subscription-row > div small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.subscription-row > strong {
  text-align: right;
  font-size: 14px;
}
.subscription-row > strong small {
  display: inline;
  color: var(--muted);
  font-size: 9px;
}
.sub-status {
  font-size: 9px;
  color: var(--good);
}
.billing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5px;
}
.billing b,
.billing small {
  display: block;
}
.billing b {
  font-size: 11px;
}
.billing small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.billing strong {
  color: var(--accent2);
  font-size: 17px;
}
.permission-note {
  border: 1px solid var(--line);
  background: #0d1724;
  padding: 14px;
  border-radius: 10px;
}
.permission-note b {
  font-size: 11px;
}
.permission-note p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin: 5px 0 0;
}
@media (max-width: 900px) {
  .connect-layout,
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-nav {
    flex-direction: row;
    overflow: auto;
  }
  .partner-row {
    grid-template-columns: 38px 1fr 90px;
  }
  .partner-row > span:nth-of-type(n + 3) {
    display: none;
  }
  .demo-toolbar {
    flex-wrap: wrap;
  }
  .demo-toolbar .search {
    margin-left: 0;
  }
  .subscription-row {
    grid-template-columns: 40px 1fr 75px;
  }
  .subscription-row > strong {
    display: none;
  }
  .subscription-row .filter {
    display: none;
  }
}
@media (max-width: 600px) {
  .page-title {
    align-items: flex-start;
  }
  .page-title .primary {
    font-size: 0;
    width: 38px;
  }
  .page-title .primary:first-letter {
    font-size: 16px;
  }
  .report-summary {
    gap: 8px;
    padding: 13px;
  }
  .report-summary article b {
    font-size: 13px;
  }
  .report-summary > i {
    display: none;
  }
  .connect-layout {
    grid-template-columns: 1fr;
  }
  .connection-detail {
    padding: 14px;
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .match {
    padding: 12px;
  }
  .partner-stats {
    grid-template-columns: 1fr;
  }
  .partner-row {
    padding: 13px;
  }
  .settings-card {
    padding: 14px;
  }
  .subscription-row {
    grid-template-columns: 35px 1fr 65px;
  }
}
.flag-image {
  width: 34px;
  height: 23px;
  display: block;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 7px #0008;
  flex: 0 0 auto;
}
.formula-summary article span {
  font-size: 13px;
  font-weight: 700;
  color: #9aa8ba;
}
.formula-summary article b {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.formula-summary > i {
  font-size: 20px;
  font-weight: 800;
}
.formula-summary .highlight b {
  font-size: 26px;
}
.badge.processing {
  background: rgba(212, 174, 90, 0.12);
  color: var(--accent2);
}
.badge.processing:before {
  background: var(--accent);
}
.badge.closed {
  background: rgba(132, 146, 165, 0.13);
  color: #9aa8ba;
}
.badge.closed:before {
  background: #8492a5;
}
.category-pill {
  display: inline-block;
  min-width: 38px;
  text-align: center;
  padding: 5px 8px;
  border: 1px solid #35445a;
  border-radius: 8px;
  color: var(--accent2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.record-dialog {
  width: min(760px, calc(100% - 28px));
  text-align: left;
}
.form-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.form-heading h2 {
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid label {
  font-size: 11px;
  color: #aab5c2;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  display: block;
  width: 100%;
  height: 43px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #09121e;
  color: var(--text);
  outline: 0;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--accent);
}
.form-grid textarea {
  height: 75px;
  padding-top: 11px;
  resize: vertical;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.form-actions button {
  height: 40px;
  padding: 0 18px;
}
@media (max-width: 600px) {
  .formula-summary article span {
    font-size: 11px;
  }
  .formula-summary article b,
  .formula-summary .highlight b {
    font-size: 15px;
  }
}
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .record-dialog {
    padding: 25px 18px;
  }
}
.work-card table th,
.work-card table td {
  text-align: center;
}
.work-card table td:first-child,
.work-card table th:first-child {
  padding-left: 12px;
}
.account-name {
  color: var(--text);
  white-space: nowrap;
}
.badge.closed {
  background: rgba(255, 73, 94, 0.15);
  color: #ff6578;
}
.badge.closed:before {
  background: #ff5268;
}
.flow {
  text-align: left;
  display: inline-block;
}
.flow em {
  font-style: normal;
  font-weight: 800;
  margin-right: 6px;
}
.flow-in {
  color: #43d4c5;
}
.flow-out {
  color: #ff6578;
}
.person.centered {
  justify-content: center;
}
.rent-check {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  border: 1px solid #40516a;
  background: #0b1521;
  color: #0b1521;
  cursor: pointer;
  font-weight: 900;
}
.rent-check:hover {
  border-color: var(--accent);
}
.rent-check.checked {
  background: var(--good);
  border-color: var(--good);
  color: #07140f;
}
.rent-done {
  opacity: 0.65;
}
.all-accounts {
  justify-content: center;
  color: #8492a5;
  padding: 16px;
}
.all-accounts span:before {
  content: "↓";
  color: var(--accent);
  margin-right: 7px;
}
.rent-check.automatic {
  cursor: default;
  box-shadow: 0 0 0 2px rgba(73, 208, 154, 0.12);
}
.closing-date {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text);
  white-space: nowrap;
}
.closing-date small {
  font-size: 9px;
  color: var(--good);
}
.closing-date.late {
  color: var(--bad);
  font-weight: 700;
}
.closing-date.late small {
  color: var(--bad);
}
.country-clock {
  height: 48px;
  min-width: 126px;
  padding-right: 15px;
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto auto;
  align-content: center;
  justify-content: end;
  column-gap: 8px;
  text-align: right;
}
.country-clock span,
.country-clock strong {
  font-size: 12px;
  line-height: 1.2;
}
.country-clock strong {
  color: var(--accent2);
}
.country-clock small {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}
.demo-toolbar .toolbar-select {
  width: 118px;
  min-width: 118px;
  height: 38px;
  margin-left: 0;
  padding: 0 12px;
  font: inherit;
  color: var(--muted);
  background: #0d1724;
}
.demo-toolbar #reportStatusFilter {
  width: 146px;
  min-width: 146px;
  text-align: center;
  text-align-last: center;
}
@media (max-width: 760px) {
  .country-clock {
    display: none;
  }
}
.nav-users-icon {
  display: block;
  width: 19px;
  height: 19px;
}
.setting-panel {
  display: none;
}
.setting-panel.active {
  display: block;
}
.profile-form {
  max-width: 480px;
  padding: 22px 4px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
.profile-form label {
  font-size: 11px;
  color: var(--muted);
}
.profile-form input {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0a1420;
  color: var(--text);
  padding: 0 13px;
}
.profile-help {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.profile-form .primary {
  width: max-content;
  height: 40px;
  padding: 0 18px;
}
.security-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px 5px;
  border-bottom: 1px solid var(--line);
}
.security-list b,
.security-list small {
  display: block;
}
.security-list b {
  font-size: 12px;
}
.security-list small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 5px;
}
.security-list strong {
  font-size: 12px;
  color: #d9e0e9;
}
.security-list .primary {
  height: 38px;
  padding: 0 15px;
}
@media (max-width: 600px) {
  .profile-form {
    grid-template-columns: 1fr;
  }
  .profile-help {
    grid-column: auto;
  }
  .security-list > div {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
}
.profile-form select {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0a1420;
  color: var(--text);
  padding: 0 13px;
}
.contact-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.contact-tabs {
  display: flex;
  gap: 8px;
}
.contact-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 13px 14px;
  font-size: 12px;
}
.contact-tabs button.active {
  color: var(--accent2);
  border-color: var(--accent);
}
.contact-tabs b {
  font-size: 9px;
  background: #26354a;
  padding: 2px 6px;
  border-radius: 9px;
}
.request-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.request-switch span b,
.request-switch span small {
  display: block;
  text-align: right;
}
.request-switch span b {
  font-size: 10px;
}
.request-switch span small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 3px;
}
.request-switch input {
  display: none;
}
.request-switch i {
  width: 35px;
  height: 20px;
  border-radius: 12px;
  background: #334257;
  position: relative;
}
.request-switch i:after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: 0.2s;
}
.request-switch input:checked + i {
  background: var(--good);
}
.request-switch input:checked + i:after {
  left: 18px;
}
.contact-panel {
  display: none;
}
.contact-panel.active {
  display: block;
}
.id-binding-note {
  margin: 0 22px 8px;
  padding: 10px 12px;
  background: var(--glow);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: #b8c4d2;
  font-size: 9px;
}
.contact-row {
  display: grid;
  grid-template-columns: 38px 1.3fr 1fr 90px 95px 45px;
  gap: 12px;
  align-items: center;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.contact-row b,
.contact-row small {
  display: block;
}
.contact-row small {
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 4px;
}
.danger-link {
  border: 0;
  background: transparent;
  color: #ff7185;
  font-size: 10px;
}
.application-row {
  display: grid;
  grid-template-columns: 38px 1fr 1.4fr 75px 75px;
  gap: 12px;
  align-items: center;
  padding: 17px 22px;
  border-top: 1px solid var(--line);
}
.application-row b,
.application-row small {
  display: block;
}
.application-row b {
  font-size: 11px;
}
.application-row small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.request-message {
  font-size: 10px;
  color: #aab5c2;
}
.application-row .primary,
.application-row .filter {
  height: 35px;
}
.application-row .cancel-request {
  grid-column: 4/6;
}
.invite-pill {
  justify-self: start;
}
@media (max-width: 760px) {
  .contact-controls {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .request-switch {
    padding: 0 12px 12px;
  }
  .contact-row {
    grid-template-columns: 38px 1fr 80px;
  }
  .contact-row > span:nth-of-type(n + 2) {
    display: none;
  }
  .contact-row .filter {
    display: none;
  }
  .application-row {
    grid-template-columns: 38px 1fr 65px 65px;
  }
  .request-message {
    display: none;
  }
}
.confirmation-tracks {
  display: grid;
  gap: 10px;
}
.track {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0d1724;
}
.track-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
}
.track span b,
.track span small {
  display: block;
}
.track span b {
  font-size: 11px;
}
.track span small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.track > strong {
  font-size: 9px;
}
.track.complete .track-icon {
  background: rgba(73, 208, 154, 0.15);
  color: var(--good);
}
.track.complete > strong {
  color: var(--good);
}
.track.pending .track-icon {
  background: var(--glow);
  color: var(--accent2);
}
.track.pending > strong {
  color: var(--accent2);
}
.completion-rule {
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}
.formula-note {
  padding: 11px 13px;
  margin-top: 15px;
  border-radius: 9px;
  background: var(--glow);
  color: var(--accent2);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.two-confirm-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.two-confirm-note span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0d1724;
}
.two-confirm-note b,
.two-confirm-note small {
  display: block;
}
.two-confirm-note b {
  font-size: 10px;
  color: var(--text);
}
.two-confirm-note small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 600px) {
  .two-confirm-note {
    grid-template-columns: 1fr;
  }
  .track {
    grid-template-columns: 32px 1fr;
  }
  .track > strong {
    grid-column: 2;
  }
}
.settlement-layout {
  grid-template-columns: 270px minmax(0, 1fr);
}
.settlement-summary {
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1.35fr;
  align-items: stretch;
  gap: 8px;
  margin: 16px 0;
}
.settlement-summary article {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d1724;
}
.settlement-summary article span {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
}
.settlement-summary article b {
  font-size: 17px;
}
.settlement-summary > i {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-style: normal;
  font-size: 17px;
}
.settlement-summary .pay-out {
  color: var(--bad);
}
.settlement-summary .pay-in {
  color: #43d4c5;
}
.settlement-summary .net-result {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--glow), #0d1724);
}
.settlement-summary .net-result b {
  color: var(--accent2);
}
.transaction-section {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.transaction-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #0d1724;
}
.transaction-title span b,
.transaction-title span small {
  display: block;
}
.transaction-title span b {
  font-size: 11px;
}
.transaction-title span small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}
.transaction-title > strong {
  font-size: 10px;
  color: var(--accent2);
}
.settlement-table {
  overflow-x: auto;
}
.settlement-row {
  display: grid;
  grid-template-columns: 72px 1.2fr 1fr 1fr 1fr;
  align-items: center;
  gap: 10px;
  min-width: 620px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}
.settlement-row.head {
  color: var(--muted);
  background: #0a1420;
  font-size: 9px;
}
.settlement-row span b,
.settlement-row span small {
  display: block;
}
.settlement-row span small {
  color: var(--muted);
  font-size: 8px;
  margin-top: 3px;
}
.direction {
  font-weight: 700;
}
.direction.out {
  color: var(--bad);
}
.direction.in {
  color: #43d4c5;
}
.row-status.ok {
  color: var(--good);
}
.delayed {
  border-color: rgba(255, 113, 133, 0.35);
}
.delayed .transaction-title {
  background: rgba(255, 113, 133, 0.07);
}
.delayed-status {
  color: var(--bad);
  font-weight: 700;
}
.delay-reason {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted);
  line-height: 1.55;
}
.delay-reason b {
  color: var(--bad);
}
.completion-rule {
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(73, 208, 154, 0.07);
}
@media (max-width: 1000px) {
  .settlement-layout {
    grid-template-columns: 1fr;
  }
  .settlement-summary {
    grid-template-columns: 1fr 18px 1fr;
  }
  .settlement-summary .net-result {
    grid-column: 1/-1;
  }
  .settlement-summary > i:nth-of-type(2) {
    display: none;
  }
}
@media (max-width: 600px) {
  .settlement-summary {
    grid-template-columns: 1fr;
  }
  .settlement-summary > i {
    display: none;
  }
  .settlement-summary .net-result {
    grid-column: auto;
  }
  .settlement-row {
    min-width: 580px;
  }
  .transaction-section {
    overflow: hidden;
  }
}
.dividend-summary,
.commission-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.dividend-summary article,
.commission-summary article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(140deg, var(--panel2), var(--panel));
}
.dividend-summary span,
.commission-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.dividend-summary b,
.commission-summary b {
  display: block;
  margin: 12px 0 5px;
  font-size: 22px;
}
.dividend-summary small,
.commission-summary small {
  color: var(--muted);
  font-size: 9px;
}
.gold-text,
.commission-total b {
  color: var(--accent2);
}
.good-text {
  color: var(--good);
}
.bad-text {
  color: var(--bad);
}
.dividend-card {
  max-width: 980px;
}
.profit-pool {
  margin: 0 22px 14px;
  padding: 16px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--glow);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px;
}
.profit-pool span,
.profit-pool small {
  color: var(--muted);
  font-size: 10px;
}
.profit-pool strong {
  grid-row: 1/3;
  grid-column: 2;
  font-size: 22px;
  color: var(--accent2);
}
.shareholder-row {
  display: grid;
  grid-template-columns: 38px 1fr 110px 150px;
  gap: 12px;
  align-items: center;
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.shareholder-row b,
.shareholder-row small {
  display: block;
}
.shareholder-row small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.shareholder-row > strong {
  text-align: right;
  color: var(--accent2);
  font-size: 14px;
}
.distribution-note {
  display: flex;
  gap: 14px;
  margin: 14px 22px 20px;
  padding: 12px;
  border-radius: 9px;
  background: #0d1724;
  font-size: 10px;
}
.distribution-note b {
  white-space: nowrap;
  color: var(--accent2);
}
.distribution-note span {
  color: var(--muted);
  line-height: 1.6;
}
.ratio-error {
  color: var(--bad);
  border: 1px solid var(--bad);
  background: rgba(255, 113, 133, 0.08);
}
.commission-summary {
  grid-template-columns: repeat(4, 1fr);
}
.commission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 16px;
}
.commission-table {
  overflow-x: auto;
}
.commission-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.8fr 0.8fr 0.9fr 0.8fr;
  gap: 10px;
  align-items: center;
  min-width: 720px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}
.commission-row.head {
  background: #0d1724;
  color: var(--muted);
  font-size: 9px;
}
.commission-row b,
.commission-row small {
  display: block;
}
.commission-row small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 3px;
}
.commission-row strong {
  color: var(--accent2);
}
.muted-row {
  opacity: 0.62;
}
.withdraw-card {
  padding: 22px;
  border: 1px solid var(--accent);
  border-radius: 15px;
  background: linear-gradient(145deg, var(--glow), var(--panel));
  align-self: start;
}
.withdraw-card h3 {
  margin: 0 0 14px;
  font-size: 17px;
}
.withdraw-card > strong {
  display: block;
  font-size: 28px;
  color: var(--accent2);
}
.withdraw-card > small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}
.withdraw-window {
  margin: 20px 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1724;
}
.withdraw-window b,
.withdraw-window span {
  display: block;
}
.withdraw-window b {
  font-size: 11px;
}
.withdraw-window span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}
.withdraw-card .primary {
  width: 100%;
  height: 42px;
}
.withdraw-card > p:last-child {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  margin: 13px 0 0;
}
.withdraw-dialog-info {
  display: grid;
  gap: 7px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1724;
  text-align: left;
}
.withdraw-dialog-info b {
  color: var(--accent2);
}
.withdraw-dialog-info span {
  font-size: 10px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .dividend-summary,
  .commission-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .commission-layout {
    grid-template-columns: 1fr;
  }
  .withdraw-card {
    max-width: none;
  }
  .shareholder-row {
    grid-template-columns: 38px 1fr 90px;
  }
  .shareholder-row > strong {
    grid-column: 2/4;
    text-align: left;
  }
}
@media (max-width: 600px) {
  .dividend-summary,
  .commission-summary {
    grid-template-columns: 1fr;
  }
  .profit-pool {
    grid-template-columns: 1fr;
  }
  .profit-pool strong {
    grid-row: auto;
    grid-column: auto;
  }
  .shareholder-row {
    grid-template-columns: 38px 1fr;
  }
  .shareholder-row > span:nth-of-type(2),
  .shareholder-row > strong {
    grid-column: 2;
    text-align: left;
  }
  .distribution-note {
    flex-direction: column;
  }
}
.team-handle {
  display: inline-block;
  margin-left: 7px;
  color: var(--accent2);
  font-size: 11px;
  font-family: Inter, sans-serif;
}
.team-rule-strip,
.immutable-note {
  display: flex;
  gap: 12px;
  margin: 0 22px 14px;
  padding: 11px 13px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--glow);
  font-size: 10px;
  line-height: 1.5;
}
.team-rule-strip b,
.immutable-note b {
  color: var(--accent2);
  white-space: nowrap;
}
.team-rule-strip span,
.immutable-note span {
  color: #b8c4d2;
}
.immutable-note {
  margin: 0 0 12px;
}
.handle-status {
  display: block;
  margin-top: 6px;
  font-size: 9px;
}
.handle-status.available {
  color: var(--good);
}
.handle-status.unavailable {
  color: var(--bad);
}
.other-teams {
  max-width: 980px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(17, 27, 41, 0.78);
  overflow: hidden;
}
.team-row {
  width: 100%;
  display: grid;
  grid-template-columns: 38px 1fr 140px 190px 20px;
  gap: 12px;
  align-items: center;
  padding: 15px 22px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.team-row:hover {
  background: var(--glow);
}
.team-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--glow);
  color: var(--accent2);
  font-weight: 800;
}
.team-row b,
.team-row small {
  display: block;
}
.team-row small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}
.team-row > strong {
  color: var(--accent2);
  font-size: 11px;
}
.team-row i {
  font-style: normal;
  color: var(--muted);
  font-size: 20px;
}
.reminder-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 17px;
}
.reminder-summary article {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(140deg, var(--panel2), var(--panel));
}
.reminder-summary span,
.reminder-summary small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.reminder-summary b {
  display: block;
  margin: 9px 0 4px;
  font-size: 23px;
}
.reminder-tabs {
  display: flex;
  gap: 5px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
.reminder-tabs button {
  padding: 14px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}
.reminder-tabs button.active {
  color: var(--accent2);
  border-color: var(--accent);
}
.reminder-tabs b {
  font-size: 8px;
  padding: 2px 5px;
  border-radius: 8px;
  background: #27364a;
}
.reminder-item {
  display: grid;
  grid-template-columns: 38px 1fr 90px 105px;
  gap: 13px;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.reminder-item[hidden] {
  display: none;
}
.reminder-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--glow);
  color: var(--accent2);
  font-weight: 800;
}
.reminder-item.urgent .reminder-icon {
  background: rgba(255, 113, 133, 0.12);
  color: var(--bad);
}
.reminder-item.upcoming .reminder-icon {
  background: rgba(73, 208, 154, 0.1);
  color: var(--good);
}
.reminder-item b,
.reminder-item small {
  display: block;
}
.reminder-item b {
  font-size: 11px;
}
.reminder-item small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.reminder-time {
  font-size: 9px;
  color: var(--muted);
  text-align: right;
}
.reminder-functions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 10px;
}
.reminder-functions b {
  color: var(--text);
  margin-right: 4px;
}
.reminder-functions span {
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
@media (max-width: 760px) {
  .team-row {
    grid-template-columns: 38px 1fr;
  }
  .team-row > span:nth-of-type(2),
  .team-row > strong {
    grid-column: 2;
  }
  .team-row i {
    display: none;
  }
  .reminder-summary {
    grid-template-columns: 1fr;
  }
  .reminder-tabs {
    overflow-x: auto;
  }
  .reminder-item {
    grid-template-columns: 38px 1fr;
  }
  .reminder-time,
  .reminder-item button {
    grid-column: 2;
    text-align: left;
    justify-self: start;
  }
}
.form-intro {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.progress-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.progress-grid article {
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(140deg, var(--panel2), var(--panel));
}
.progress-grid span,
.progress-grid small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.progress-grid b {
  display: block;
  margin: 9px 0 4px;
  font-size: 23px;
}
.table-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}
.overview-progress-table {
  table-layout: fixed;
}
.overview-progress-table th:nth-child(1),
.overview-progress-table td:nth-child(1) {
  width: 24%;
  padding-left: 12px;
  text-align: center;
}
.overview-progress-table th:nth-child(2),
.overview-progress-table td:nth-child(2) {
  width: 15%;
}
.overview-progress-table th:nth-child(3),
.overview-progress-table td:nth-child(3) {
  width: 17%;
}
.overview-progress-table th:nth-child(4),
.overview-progress-table td:nth-child(4) {
  width: 16%;
}
.overview-progress-table th:nth-child(5),
.overview-progress-table td:nth-child(5) {
  width: 17%;
}
.overview-progress-table th:nth-child(6),
.overview-progress-table td:nth-child(6) {
  width: 11%;
}
.overview-progress-table .progress-action {
  width: auto;
  min-width: 88px;
  height: 32px;
  padding: 0 12px;
  font-size: 10px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .progress-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .progress-grid {
    grid-template-columns: 1fr 1fr;
  }
  .progress-grid article {
    padding: 14px;
  }
}
.country-menu {
  max-height: min(430px, calc(100vh - 90px));
  overflow-y: auto;
}
.shareholder-fields {
  display: grid;
  gap: 12px;
}
.shareholder-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0d1724;
}
.member-status,
.system-profit-note {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  line-height: 1.4;
}
.member-status.platform {
  color: var(--good);
}
.member-status.external,
.system-profit-note {
  color: var(--muted);
}
.member-status.invalid {
  color: var(--bad);
}
#dividendProfit[readonly] {
  color: var(--accent2);
  cursor: not-allowed;
  background: #101b29;
}
@media (max-width: 600px) {
  .shareholder-entry {
    grid-template-columns: 1fr;
  }
}
/* Referral commission entities and tier distribution */
.commission-tier-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0d1724;
}
.owner-commission-tier-strip[hidden] {
  display: none;
}
.commission-tier-strip span {
  min-width: 125px;
}
.commission-tier-strip b,
.commission-tier-strip strong,
.commission-tier-strip small {
  display: block;
}
.commission-tier-strip b {
  font-size: 10px;
}
.commission-tier-strip strong {
  margin: 4px 0;
  color: var(--accent2);
  font-size: 18px;
}
.commission-tier-strip small {
  color: var(--muted);
  font-size: 8px;
}
.commission-tier-strip i {
  color: var(--muted);
  font-style: normal;
}
.commission-tier-strip em {
  margin-left: auto;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--glow);
  color: var(--accent2);
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}
.referral-entities {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  margin-bottom: 16px;
}
.referral-entity {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.referral-entity.selected {
  border-color: var(--accent);
}
.entity-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #8f6c24);
  color: #08111d;
  font-weight: 900;
}
.entity-icon.team {
  background: var(--glow);
  color: var(--accent2);
}
.referral-entity b,
.referral-entity small {
  display: block;
}
.referral-entity b {
  font-size: 10px;
}
.referral-entity small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}
.referral-entity > strong {
  color: var(--accent2);
  font-size: 10px;
  text-align: right;
}
.promotion-team-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 130px 170px auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(140deg, var(--panel2), var(--panel));
}
.promotion-team-card > div {
  display: flex;
  gap: 11px;
  align-items: center;
}
.promotion-team-card b,
.promotion-team-card small {
  display: block;
}
.promotion-team-card small {
  color: var(--muted);
  font-size: 8px;
  margin-top: 4px;
}
.promotion-team-card > p {
  grid-column: 1/-1;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}
.team-dialog-rule {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1724;
}
.team-dialog-rule b {
  color: var(--accent2);
}
.team-dialog-rule span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .commission-tier-strip {
    flex-wrap: wrap;
  }
  .commission-tier-strip em {
    width: 100%;
    margin: 0;
  }
  .referral-entities {
    grid-template-columns: 1fr;
  }
  .promotion-team-card {
    grid-template-columns: 1fr 1fr;
  }
  .promotion-team-card > p {
    grid-column: 1/-1;
  }
}
@media (max-width: 600px) {
  .promotion-team-card {
    grid-template-columns: 1fr;
  }
  .promotion-team-card > p {
    grid-column: 1;
  }
  .commission-tier-strip span {
    min-width: 105px;
  }
}
.offset-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr 1.25fr;
  gap: 10px;
  align-items: center;
  margin: 0 0 16px;
}
.offset-summary article {
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.offset-summary span,
.offset-summary small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.offset-summary b {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}
.offset-summary > i {
  color: var(--accent2);
  font-size: 18px;
  font-style: normal;
}
.offset-summary .offset-withdrawable {
  border-color: var(--accent);
  background: var(--glow);
}
.offset-summary .offset-withdrawable b {
  color: var(--accent2);
}
.partner-terms {
  margin-top: 16px;
}
.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 20px 20px;
}
.terms-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0d1724;
}
.terms-grid b,
.terms-grid span {
  display: block;
}
.terms-grid b {
  font-size: 10px;
  color: var(--accent2);
}
.terms-grid span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}
@media (max-width: 900px) {
  .offset-summary {
    grid-template-columns: 1fr auto 1fr auto 1fr;
  }
  .offset-summary .offset-withdrawable {
    grid-column: 1/-1;
  }
  .terms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .offset-summary {
    grid-template-columns: 1fr;
  }
  .offset-summary > i {
    display: none;
  }
  .terms-grid {
    grid-template-columns: 1fr;
  }
}
.subscription-offer {
  display: grid;
  grid-template-columns: 1fr 35px 1fr;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
}
.subscription-offer article {
  position: relative;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d1724;
}
.subscription-offer article.best {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--glow), var(--panel));
}
.subscription-offer > i {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}
.subscription-offer span,
.subscription-offer b,
.subscription-offer p {
  display: block;
}
.subscription-offer span {
  color: var(--muted);
  font-size: 10px;
}
.subscription-offer b {
  margin-top: 7px;
  color: var(--accent2);
  font-size: 19px;
}
.subscription-offer b small {
  font-size: 9px;
}
.subscription-offer p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
}
.subscription-offer em {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 3px 7px;
  border-radius: 7px;
  background: var(--accent);
  color: #101820;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}
.manual-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 17px 0;
  text-align: left;
}
.manual-flow span {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0d1724;
}
.manual-flow b,
.manual-flow small {
  display: block;
}
.manual-flow b {
  font-size: 10px;
  color: var(--accent2);
}
.manual-flow small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}
.telegram-pending {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
}
@media (max-width: 600px) {
  .subscription-offer {
    grid-template-columns: 1fr;
  }
  .subscription-offer > i {
    display: none;
  }
  .manual-flow {
    grid-template-columns: 1fr;
  }
}
.support {
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: 0.2s;
}
.support:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px var(--glow);
}
.support > span:first-child {
  color: var(--accent);
  font-size: 23px;
}
.support i {
  margin-left: auto;
  color: var(--accent);
  font-style: normal;
}
.support-dialog {
  width: min(520px, calc(100% - 28px));
  text-align: left;
}
.support-dialog h2,
.support-dialog > p {
  text-align: left;
}
.support-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  margin: 18px 0;
  border: 1px solid rgba(73, 208, 154, 0.2);
  border-radius: 10px;
  background: rgba(73, 208, 154, 0.07);
}
.support-status b {
  font-size: 11px;
  color: var(--good);
}
.support-status small {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
}
.support-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 5px rgba(73, 208, 154, 0.09);
}
.support-options {
  display: grid;
  gap: 8px;
}
.support-options button {
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0b1522;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.support-options button:hover,
.support-options button.active {
  border-color: var(--accent);
  background: linear-gradient(90deg, var(--glow), #0b1522);
}
.support-options button > span {
  grid-row: 1/3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--glow);
  color: var(--accent2);
}
.support-options b {
  font-size: 11px;
}
.support-options small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}
.support-options i {
  grid-column: 3;
  grid-row: 1/3;
  color: var(--accent);
  font-size: 20px;
  font-style: normal;
}
.support-context {
  margin: 14px 0;
  padding: 11px 13px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}
.support-context span,
.support-context b {
  display: block;
}
.support-context span {
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 4px;
}
.support-context b {
  font-size: 10px;
  color: #cbd4df;
}
.support-dialog .login-submit {
  margin-top: 16px;
  text-align: center;
}
.support-dialog .telegram-pending {
  text-align: center;
}
.auth-locked .shell,
.subscription-locked .shell {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}
.auth-dialog::backdrop {
  background: rgba(2, 8, 18, 0.88);
  backdrop-filter: blur(4px);
}
.auth-dialog[open] {
  z-index: 10001;
}
.auth-dialog.auth-required .close {
  display: none;
}
.login-error {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--bad);
  font-size: 10px;
}
.login-submit[disabled] {
  opacity: 0.55;
  cursor: wait;
}
.expired-subscription-dialog {
  width: min(560px, calc(100% - 28px));
  text-align: left;
}
.expired-subscription-dialog h2,
.expired-subscription-dialog > p {
  text-align: left;
}
.expired-balance {
  display: grid;
  gap: 5px;
  margin: 20px 0 12px;
  padding: 18px;
  border: 1px solid var(--accent);
  border-radius: 13px;
  background: linear-gradient(135deg, var(--glow), #0d1724);
}
.expired-balance span,
.expired-balance small {
  color: var(--muted);
  font-size: 10px;
}
.expired-balance strong {
  color: var(--accent2);
  font-size: 25px;
}
.expired-country-choice {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}
.expired-country-choice select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b1522;
  color: var(--text);
}
.expired-subscription-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.25fr 1.35fr;
  gap: 10px;
  margin-top: 12px;
}
.expired-subscription-actions button {
  min-height: 46px;
}
.expired-subscription-actions button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 620px) {
  .expired-subscription-actions {
    grid-template-columns: 1fr;
  }
  .expired-subscription-dialog {
    padding: 24px 20px;
  }
}
.empty-test-state {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 32px;
  text-align: center;
  color: var(--muted);
}
.empty-test-state b {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
}
.empty-test-state small {
  font-size: 10px;
  line-height: 1.6;
}
.cumulative-profit {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}
.cumulative-profit strong {
  color: #cbd5e1;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.cumulative-profit small {
  color: var(--accent2);
  font-size: 9px;
  margin-right: 2px;
}
.row-actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}
.row-actions .filter {
  height: 30px;
  padding: 0 10px;
}
.danger-action {
  color: var(--bad);
  border-color: rgba(255, 113, 133, 0.3);
}
.danger-action:hover {
  background: rgba(255, 113, 133, 0.1);
}
.summary-grid .metric {
  min-height: 190px;
}
.summary-grid .metric p {
  position: absolute;
  left: 20px;
  bottom: 18px;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.summary-grid .metric p span {
  color: var(--muted);
}
.summary-grid .metric p b {
  color: #cbd5e1;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.summary-grid .metric p small {
  color: var(--muted);
  font-size: 9px;
  margin-right: 2px;
}
.shared-readonly {
  display: inline-block;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.transaction-editor {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1522;
}
.transaction-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.transaction-editor-head span b,
.transaction-editor-head span small {
  display: block;
}
.transaction-editor-head span small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.transaction-entry {
  display: grid;
  grid-template-columns: 110px minmax(150px, 1fr) 140px 34px;
  gap: 8px;
  margin-top: 8px;
}
.transaction-entry select,
.transaction-entry input {
  min-width: 0;
}
.remove-transaction {
  border: 1px solid rgba(255, 113, 133, 0.3);
  border-radius: 9px;
  background: rgba(255, 113, 133, 0.08);
  color: var(--bad);
  cursor: pointer;
}
.confirm-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.confirm-actions > span,
.pending-owner {
  color: var(--accent2);
  font-size: 10px;
}
.row-actions {
  align-items: center;
}
.row-actions .pending-owner:empty {
  display: none;
}
@media (max-width: 700px) {
  .transaction-editor-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .transaction-entry {
    grid-template-columns: 1fr 1fr 34px;
  }
  .transaction-entry select {
    grid-column: 1;
  }
  .transaction-entry [data-tx-counterparty] {
    grid-column: 1/3;
  }
  .transaction-entry [data-tx-amount] {
    grid-column: 1/3;
  }
  .transaction-entry .remove-transaction {
    grid-column: 3;
    grid-row: 1/3;
  }
}
.boss-mode .sidebar .side-bottom {
  display: none;
}
.boss-mode header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.boss-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.boss-summary article,
.boss-tier-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.boss-summary span,
.boss-summary b,
.boss-summary small {
  display: block;
}
.boss-summary span {
  color: var(--muted);
  font-size: 13px;
}
.boss-summary b {
  margin: 10px 0 5px;
  font-size: 30px;
}
.boss-summary small {
  color: var(--muted);
  font-size: 11px;
}
.boss-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.boss-tier-grid article {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.boss-tier-grid span {
  color: var(--muted);
}
.boss-tier-grid b {
  font-size: 22px;
  color: var(--accent2);
}
.boss-user-list {
  display: grid;
}
.boss-user-row {
  display: grid;
  grid-template-columns:
    42px minmax(130px, 1fr) 110px minmax(280px, 2fr)
    155px 72px;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.boss-user-row:last-child {
  border-bottom: 0;
}
.boss-user-name b,
.boss-user-name small {
  display: block;
}
.boss-user-name small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.boss-user-row select,
.boss-user-row input {
  width: 100%;
  min-height: 38px;
}
.boss-countries {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.boss-country {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
}
.boss-country input {
  width: auto;
  min-height: auto;
}
.boss-expiry {
  color: var(--muted);
  font-size: 10px;
}
.boss-expiry input {
  margin-top: 4px;
}
.tier-row {
  grid-template-columns: 42px minmax(140px, 1fr) 150px 130px 145px 72px;
}
.tier-row > label {
  color: var(--muted);
  font-size: 10px;
}
.tier-row > label select,
.tier-row > label input {
  margin-top: 4px;
}
.boss-audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.boss-audit-row b,
.boss-audit-row small {
  display: block;
}
.boss-audit-row small,
.boss-audit-row > span:last-child {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.boss-audit-row .audit-detail {
  margin-top: 7px;
  color: #c8d6e7;
  line-height: 1.5;
}
.boss-audit-row > span:last-child {
  flex: 0 0 auto;
  text-align: right;
}
.boss-empty {
  padding: 36px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .boss-summary,
  .boss-tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .boss-user-row,
  .tier-row {
    grid-template-columns: 42px 1fr 1fr;
  }
  .boss-countries {
    grid-column: 2/4;
  }
  .boss-user-row .primary {
    grid-column: 3;
  }
}
@media (max-width: 700px) {
  .boss-summary,
  .boss-tier-grid {
    grid-template-columns: 1fr 1fr;
  }
  .boss-user-row,
  .tier-row {
    grid-template-columns: 42px 1fr;
  }
  .boss-user-row > *:not(.avatar):not(.boss-user-name) {
    grid-column: 1/3;
  }
  .boss-countries {
    grid-column: 1/3;
  }
  .boss-user-row .primary {
    grid-column: 1/3;
  }
  .boss-audit-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .boss-audit-row > span:last-child {
    text-align: left;
  }
}
.boss-subscription-row {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.boss-subscription-row:last-child {
  border-bottom: 0;
}
.boss-subscription-head {
  display: flex;
  align-items: center;
  gap: 13px;
}
.boss-subscription-head .boss-user-name {
  flex: 1;
}
.all-country-renew {
  padding: 10px 15px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--glow);
  color: var(--accent2);
  font-weight: 800;
  cursor: pointer;
}
.all-country-renew small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.boss-country-subscriptions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 16px 0;
}
.boss-country-sub {
  display: grid;
  grid-template-columns: 18px 28px 1fr;
  gap: 8px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1724;
  cursor: pointer;
}
.boss-country-sub.active {
  border-color: rgba(73, 208, 154, 0.25);
}
.boss-country-sub input {
  width: 16px;
  height: 16px;
}
.boss-country-sub img {
  width: 28px;
  height: 19px;
  border-radius: 3px;
}
.boss-country-sub b,
.boss-country-sub small {
  display: block;
}
.boss-country-sub b {
  font-size: 11px;
}
.boss-country-sub small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.boss-country-sub.active small {
  color: var(--good);
}
.boss-renew-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.boss-renew-actions span {
  color: var(--muted);
  font-size: 10px;
}
.boss-register-card {
  display: grid;
  grid-template-columns: minmax(300px, 580px) 1fr;
  gap: 26px;
  padding: 24px;
}
.boss-member-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.member-count-card,
.record-count-card {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 11px;
  color: var(--accent2);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}
.create-user-dialog p {
  line-height: 1.7;
}
.password-rule {
  display: block;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.boss-register-card form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.boss-register-card label {
  color: var(--muted);
  font-size: 11px;
}
.boss-register-card input {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.boss-register-card .login-error {
  grid-column: 1/-1;
}
.registration-rule {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d1724;
}
.registration-rule b,
.registration-rule span {
  display: block;
}
.registration-rule b {
  color: var(--accent2);
}
.registration-rule span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.subscription-row strong small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}
.onboarding-dialog {
  text-align: left;
}
.onboarding-dialog h2,
.onboarding-dialog > p {
  text-align: left;
}
@media (max-width: 1000px) {
  .boss-country-subscriptions {
    grid-template-columns: repeat(2, 1fr);
  }
  .boss-register-card {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .boss-country-subscriptions {
    grid-template-columns: 1fr;
  }
  .boss-subscription-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .all-country-renew {
    width: 100%;
  }
  .boss-renew-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .boss-register-card form {
    grid-template-columns: 1fr;
  }
  .boss-register-card .primary {
    width: 100%;
  }
  .boss-member-actions {
    width: 100%;
    justify-content: space-between;
  }
}
.register-entry {
  width: 100%;
  height: 44px;
  margin-top: 10px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: transparent;
  color: var(--accent2);
  font-weight: 800;
  cursor: pointer;
}
.register-entry:hover {
  background: var(--glow);
}
.public-register-dialog {
  text-align: left;
}
.public-register-dialog h2,
.public-register-dialog > p {
  text-align: left;
}
.tier-upgrade-card {
  padding-bottom: 24px;
}
.tier-upgrade-card form {
  display: grid;
  grid-template-columns: minmax(160px, 1.25fr) 140px 130px 150px auto;
  gap: 12px;
  align-items: end;
  padding: 0 20px;
}
.tier-upgrade-card label {
  color: var(--muted);
  font-size: 11px;
}
.tier-upgrade-card input,
.tier-upgrade-card select {
  display: block;
  width: 100%;
  margin-top: 6px;
  min-height: 42px;
}
.tier-upgrade-card .login-error {
  grid-column: 1/-1;
}
.tier-upgrade-result {
  margin: 14px 20px 0;
  padding: 0;
}
.tier-upgrade-result:not(:empty) {
  padding: 13px 15px;
  border: 1px solid rgba(73, 208, 154, 0.25);
  border-radius: 10px;
  background: rgba(73, 208, 154, 0.07);
}
.tier-upgrade-result b,
.tier-upgrade-result span {
  display: block;
}
.tier-upgrade-result b {
  color: var(--good);
}
.tier-upgrade-result span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.renew-confirm-dialog {
  width: min(610px, calc(100% - 28px));
}
.renew-confirm-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 18px 0;
}
.renew-confirm-summary div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1724;
}
.renew-confirm-summary span,
.renew-confirm-summary b {
  display: block;
}
.renew-confirm-summary span {
  color: var(--muted);
  font-size: 10px;
}
.renew-confirm-summary b {
  margin-top: 5px;
  font-size: 12px;
}
.renew-confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--glow);
  color: var(--text);
  line-height: 1.5;
}
.renew-confirm-check input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
.confirmRenewSubmit:disabled,
.renew-confirm-dialog .primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (max-width: 950px) {
  .tier-upgrade-card form {
    grid-template-columns: 1fr 1fr;
  }
  .tier-upgrade-card form .primary {
    grid-column: 1/-1;
  }
}
@media (max-width: 600px) {
  .tier-upgrade-card form,
  .renew-confirm-summary {
    grid-template-columns: 1fr;
  }
  .tier-upgrade-card form .primary {
    grid-column: 1;
  }
}
.subscription-query-head {
  align-items: end;
}
.subscription-query-head form {
  display: flex;
  align-items: center;
  gap: 9px;
}
.subscription-query-head .search {
  min-width: 310px;
}
.subscription-query-head .primary {
  height: 42px;
  white-space: nowrap;
}
.subscription-query-error {
  padding: 0 20px;
}
.boss-user-list > #bossSubscriptionList:empty {
  display: none;
}
@media (max-width: 700px) {
  .subscription-query-head {
    align-items: stretch;
    flex-direction: column;
  }
  .subscription-query-head form {
    align-items: stretch;
    flex-direction: column;
  }
  .subscription-query-head .search {
    min-width: 0;
  }
  .subscription-query-head .primary {
    width: 100%;
  }
}
.commission-balance-card {
  min-width: 145px;
  padding: 9px 13px;
  border: 1px solid rgba(224, 177, 67, 0.45);
  border-radius: 10px;
  background: var(--glow);
}
.commission-balance-card small,
.commission-balance-card b {
  display: block;
}
.commission-balance-card small {
  color: var(--muted);
  font-size: 9px;
}
.commission-balance-card b {
  margin-top: 3px;
  color: var(--accent2);
  font-size: 13px;
}
.renew-fee {
  display: block;
  margin: 12px 0;
  text-align: left;
  color: var(--muted);
  font-size: 11px;
}
.renew-fee input {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #09121e;
  color: var(--text);
}
.commission-offset-check {
  margin-bottom: 9px;
}
.audit-filters {
  display: flex;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.audit-filters button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0d1724;
  color: var(--muted);
  cursor: pointer;
}
.audit-filters button.active {
  border-color: var(--accent);
  background: var(--glow);
  color: var(--accent2);
}
@media (max-width: 650px) {
  .commission-balance-card {
    order: 3;
    width: 100%;
  }
  .boss-subscription-head .all-country-renew {
    order: 4;
  }
  .audit-filters {
    padding: 10px;
  }
  .audit-filters button {
    font-size: 11px;
  }
}
.language-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.language-choice {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  padding: 16px;
  text-align: left;
  color: var(--text);
  background: #0b1725;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}
.language-choice > span {
  grid-row: 1/3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #1b3048;
  color: var(--accent);
  font-weight: 800;
}
.language-choice > b {
  align-self: end;
}
.language-choice > small {
  align-self: start;
  color: var(--muted);
}
.language-choice > i {
  grid-column: 3;
  grid-row: 1/3;
  color: var(--accent);
  font-style: normal;
  font-size: 20px;
}
.language-choice.active {
  border-color: var(--accent);
  background: var(--glow);
}
@media (max-width: 600px) {
  .language-options {
    grid-template-columns: 1fr;
  }
}
.team-accounts {
  margin: 0 22px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #0d1724;
}
.team-accounts-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  color: var(--accent2);
}
.team-accounts-title span {
  font-size: 10px;
  color: var(--muted);
}
.team-account-row {
  display: grid;
  grid-template-columns: 135px 1fr 80px 150px;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.team-account-row b,
.team-account-row small {
  display: block;
}
.team-account-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.team-account-row > strong {
  text-align: right;
  color: var(--accent2);
}
.team-account-country {
  display: flex;
  align-items: center;
  gap: 8px;
}
.team-account-country img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
}
.other-teams .team-detail + .team-detail {
  border-top: 1px solid var(--line);
}
.register-help {
  margin: 8px 0 0 !important;
  color: var(--muted) !important;
  text-align: left;
  line-height: 1.5;
}
@media (max-width: 700px) {
  .team-account-row {
    grid-template-columns: 1fr auto;
  }
  .team-account-country,
  .team-account-row > span:nth-child(2) {
    grid-column: 1;
  }
  .team-account-row > .badge,
  .team-account-row > strong {
    grid-column: 2;
  }
  .team-account-row > strong {
    grid-row: 2;
  }
  .team-accounts {
    margin-inline: 14px;
  }
}

/* Owner mobile console: keep the test banner from stretching the bottom navigation
   over the entire viewport, and expose the management labels for quick actions. */
@media (max-width: 760px) {
  .boss-mode main {
    padding: 16px 12px 92px;
  }
  .boss-mode .sidebar nav {
    height: 100%;
    align-items: stretch;
    gap: 2px;
  }
  .boss-mode .nav-item {
    min-width: 0;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 5px 3px;
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
  }
  .boss-mode .nav-item span {
    width: auto;
    font-size: 17px;
    line-height: 1;
  }
  .boss-mode header {
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }
  .boss-mode header h1 {
    font-size: 20px;
  }
  .boss-mode .header-actions {
    margin-left: auto;
  }
  .boss-mode .profile {
    height: 44px;
    padding-right: 8px;
  }
  .boss-mode .page-title {
    margin-bottom: 16px;
  }
  .boss-mode .page-title h2 {
    font-size: 22px;
  }
  .boss-mode .section-head {
    padding: 16px;
  }
  .boss-mode .boss-subscription-row {
    padding: 16px;
  }
}

/* Money direction: outgoing is red, incoming is cyan. */
.request em.net-pay,
.net-result b.net-pay {
  color: var(--bad);
  font-weight: 800;
}
.request em.net-receive,
.net-result b.net-receive {
  color: #43d4c5;
  font-weight: 800;
}
.net-result b.net-zero {
  color: var(--muted);
  font-weight: 700;
}
.settlement-row.progress-head,
.settlement-row.progress-row {
  grid-template-columns: 110px minmax(150px, 1.1fr) 110px 120px 110px minmax(
      150px,
      1fr
    );
}
.progress-head > span:last-child {
  text-align: center;
}
.progress-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.progress-action {
  width: 34px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1724;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.progress-action.done {
  color: var(--good);
  border-color: rgba(73, 208, 154, 0.35);
}
.progress-action.issue {
  color: var(--bad);
  border-color: rgba(255, 113, 133, 0.35);
}
.progress-note {
  display: block;
  margin-top: 4px;
  color: var(--accent2);
  font-size: 9px;
  line-height: 1.4;
}
.progress-dialog form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.progress-dialog label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}
.progress-dialog select,
.progress-dialog textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #09131f;
  color: var(--text);
}
.progress-dialog textarea {
  min-height: 96px;
  resize: vertical;
}
.progress-record-dialog {
  width: min(520px, calc(100% - 28px));
  text-align: left;
}
.progress-record-dialog h2,
.progress-record-dialog > p {
  text-align: left;
}
.progress-record-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  max-height: 390px;
  overflow: auto;
}
.progress-record-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0b1522;
}
.progress-record-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 900;
}
.progress-record-mark.done {
  color: var(--good);
  background: rgba(73, 208, 154, 0.1);
}
.progress-record-mark.issue {
  color: var(--bad);
  background: rgba(255, 113, 133, 0.1);
}
.progress-record-copy {
  min-width: 0;
}
.progress-record-copy b,
.progress-record-copy span,
.progress-record-copy small {
  display: block;
}
.progress-record-copy b {
  font-size: 11px;
}
.progress-record-copy span {
  margin-top: 5px;
  color: #cbd5e1;
  font-size: 10px;
  line-height: 1.55;
}
.progress-record-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}
.progress-record-empty {
  padding: 30px 16px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}
@media (max-width: 760px) {
  .settlement-row.progress-head,
  .settlement-row.progress-row {
    min-width: 820px;
  }
}
.progress-record-mark.done {
  color: #43d4c5;
  background: rgba(67, 212, 197, 0.1);
}
.progress-record-mark.closed {
  color: var(--bad);
  background: rgba(255, 113, 133, 0.1);
}
.progress-record-mark.processing {
  color: var(--accent2);
  background: var(--glow);
}
.progress-record-copy b {
  font-size: 16px;
  font-weight: 900;
}
.progress-record-copy b.done {
  color: #43d4c5;
}
.progress-record-copy b.closed {
  color: var(--bad);
}
.progress-record-copy b.processing {
  color: var(--accent2);
}
.summary-grid {
  grid-template-columns: 1.45fr repeat(2, 1fr);
}
.ledger-create-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.billing-mode-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0b1522;
  min-width: 260px;
}
.billing-mode-switch button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.45px;
  cursor: pointer;
  white-space: nowrap;
}
.billing-mode-switch button.active {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #111a25;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
}
.billing-mode-field {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1522;
}
.billing-mode-field > span {
  display: block;
  margin-bottom: 9px;
  color: #aab5c2;
  font-size: 12px;
}
.billing-mode-field .billing-mode-switch {
  width: 100%;
}
.billing-mode-field > small,
.form-grid label > small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.profit-shareholders {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1522;
}
.profit-shareholders[hidden] {
  display: none;
}
.profit-shareholders-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}
.profit-shareholders-head b {
  font-size: 13px;
}
.profit-shareholders-head small {
  color: var(--muted);
  font-size: 10px;
}
.profit-shareholders #profitShareholderFields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.profit-shareholders label {
  display: grid;
  gap: 7px;
  color: #aab5c2;
  font-size: 12px;
}
.profit-shareholders input {
  width: 100%;
  height: 45px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #09121e;
  color: var(--text);
  padding: 0 13px;
}
.theme-toggle {
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.theme-toggle .theme-moon {
  font-size: 24px;
  color: var(--muted);
  transform: rotate(-15deg);
}
.theme-toggle b {
  font-size: 13px;
}
.theme-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.theme-toggle i {
  position: relative;
  width: 42px;
  height: 24px;
  margin-left: auto;
  border-radius: 999px;
  background: #344156;
  transition: 0.2s;
}
.theme-toggle i:after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px #0005;
  transition: 0.2s;
}
.theme-toggle input:checked + i {
  background: #7257d7;
}
.theme-toggle input:checked + i:after {
  transform: translateX(18px);
}
.theme-toggle:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
body.light-mode {
  --bg: #f3f6fa;
  --panel: #ffffff;
  --panel2: #edf2f8;
  --text: #142033;
  --muted: #526278;
  --line: #c7d3e2;
  --good: #07845f;
  --bad: #d93a55;
  --glow: rgba(117, 91, 40, 0.1);
}
body.light-mode .sidebar {
  background: rgba(248, 250, 253, 0.92);
}
body.light-mode .work-card {
  background: rgba(255, 255, 255, 0.92);
}
body.light-mode .search,
body.light-mode .filter,
body.light-mode .date,
body.light-mode th,
body.light-mode .billing-mode-switch,
body.light-mode .billing-mode-field,
body.light-mode .transaction-editor,
body.light-mode .transaction-entry input,
body.light-mode .transaction-entry select,
body.light-mode .profit-shareholders,
body.light-mode .profit-shareholders input,
body.light-mode dialog form input,
body.light-mode dialog form select,
body.light-mode dialog form textarea {
  background: #f8fafc;
  color: var(--text);
}
body.light-mode dialog {
  background: linear-gradient(145deg, #fff, #edf2f8);
}
body.light-mode .country-menu {
  background: #fff;
  box-shadow: 0 18px 50px #26364a26;
}
body.light-mode td {
  color: #344257;
}
body.light-mode .account b {
  color: #172235;
}
body.light-mode[data-country="my"] {
  --accent: #986b08;
  --accent2: #ad7500;
  background: linear-gradient(135deg, #fff7d7 0%, #e1efff 42%, #ffe0e5 100%);
}
body.light-mode[data-country="sg"] {
  --accent: #b7283e;
  --accent2: #c83b50;
  background: linear-gradient(135deg, #fff 0%, #fff0f2 38%, #ffd5db 100%);
}
body.light-mode[data-country="th"] {
  --accent: #3559ad;
  --accent2: #4669bd;
  background: linear-gradient(135deg, #ffecef 0%, #f5f7ff 38%, #d4dfff 100%);
}
body.light-mode[data-country="vn"] {
  --accent: #a76d00;
  --accent2: #b87900;
  background: linear-gradient(135deg, #fff5c8 0%, #ffedda 38%, #ffd4da 100%);
}
body.light-mode[data-country="id"] {
  --accent: #b42c40;
  --accent2: #c63a4d;
  background: linear-gradient(135deg, #fff 0%, #fff0f1 42%, #ffd2d8 100%);
}
body.light-mode[data-country="au"] {
  --accent: #176f9a;
  --accent2: #0e7da7;
  background: linear-gradient(135deg, #e5f5ff 0%, #e2eaff 46%, #cbdfff 100%);
}
body.light-mode .sidebar {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 10px 0 36px rgba(38, 54, 74, 0.06);
}
body.light-mode .hero-card,
body.light-mode .metric,
body.light-mode .work-card,
body.light-mode .progress-grid article,
body.light-mode .reminder-summary article,
body.light-mode .commission-summary article,
body.light-mode .settings-layout,
body.light-mode .theme-toggle,
body.light-mode .support,
body.light-mode .country-trigger,
body.light-mode .profile {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(38, 54, 74, 0.08);
}
body.light-mode .hero-card p b,
body.light-mode .metric p b,
body.light-mode .cumulative-profit strong,
body.light-mode .cumulative-profit strong small,
body.light-mode .metric strong small,
body.light-mode .table-footer,
body.light-mode .section-head p,
body.light-mode .progress-grid small,
body.light-mode .status-row > button,
body.light-mode .country-clock small,
body.light-mode .profile small,
body.light-mode .account small,
body.light-mode .flow small {
  color: #526278;
}
body.light-mode .cumulative-profit strong,
body.light-mode .metric p b {
  font-weight: 750;
  color: #33445c;
}
body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
  color: #718096;
  opacity: 1;
}
body.light-mode th {
  color: #41536b;
}
body.light-mode .nav-item {
  color: #53657d;
}
body.light-mode .nav-item:hover,
body.light-mode .nav-item.active {
  color: var(--accent);
}
body.light-mode .nav-item i,
body.light-mode .status-row b {
  background: #dfe7f1;
  color: #23334a;
}
body.light-mode .eyebrow,
body.light-mode .amount small,
body.light-mode .currency {
  font-weight: 800;
}
.transaction-entry.income select {
  color: #43d4c5;
  border-color: rgba(67, 212, 197, 0.72);
  background: rgba(67, 212, 197, 0.12);
  font-weight: 800;
}
.transaction-entry.outcome select {
  color: #ff7185;
  border-color: rgba(255, 113, 133, 0.72);
  background: rgba(255, 113, 133, 0.12);
  font-weight: 800;
}
body.light-mode .transaction-entry.income select {
  color: #087e75;
  border-color: #49bdb3;
  background: #dff8f5;
}
body.light-mode .transaction-entry.outcome select {
  color: #c9364d;
  border-color: #e58695;
  background: #ffebee;
}
.transaction-record-dialog {
  width: min(650px, calc(100% - 28px));
  text-align: left;
}
.transaction-record-dialog h2,
.transaction-record-dialog > p {
  text-align: left;
}
.transaction-record-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  max-height: 360px;
  overflow: auto;
}
.transaction-record-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 96px;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1522;
}
.transaction-record-item b,
.transaction-record-item small {
  display: block;
}
.transaction-record-item b {
  font-size: 13px;
}
.transaction-record-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.transaction-record-item strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.transaction-record-item.income strong {
  color: #43d4c5;
}
.transaction-record-item.outcome strong {
  color: #ff7185;
}
.transaction-result-buttons {
  display: flex;
  gap: 7px;
}
.transaction-result-buttons button {
  width: 40px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}
.transaction-result-buttons button:first-child {
  color: #43d4c5;
}
.transaction-result-buttons button:last-child {
  color: #ff5f73;
}
.transaction-result-buttons button.active:first-child {
  border-color: #43d4c5;
  background: rgba(67, 212, 197, 0.12);
}
.transaction-result-buttons button.active:last-child {
  border-color: #ff5f73;
  background: rgba(255, 95, 115, 0.12);
}
.transaction-record-remark {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1522;
}
.transaction-record-remark span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.transaction-record-remark p {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.light-mode .transaction-record-item,
.light-mode .transaction-record-remark {
  background: #f8fafc;
}
.light-mode .transaction-record-item.income strong {
  color: #087e75;
}
.light-mode .transaction-record-item.outcome strong {
  color: #c9364d;
}
@media (max-width: 520px) {
  .transaction-record-item {
    grid-template-columns: 1fr auto;
  }
  .transaction-result-buttons {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
}
@media (max-width: 760px) {
  .ledger-create-actions {
    width: 100%;
    justify-content: stretch;
  }
  .ledger-create-actions .billing-mode-switch,
  .ledger-create-actions .add-record {
    width: 100%;
  }
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .profit-shareholders-head {
    display: grid;
    gap: 5px;
  }
  .profit-shareholders #profitShareholderFields {
    grid-template-columns: 1fr;
  }
}

/* Owner workspace: keep theme control visible and visually join subscriptions to the overview. */
.boss-mode .sidebar .side-bottom {
  display: grid;
}
.boss-mode .sidebar .support {
  display: none;
}
.boss-mode .boss-summary {
  margin-bottom: 26px;
}
.boss-subscriptions-heading {
  padding: 0 0 14px;
}
.boss-mode .boss-summary {
  grid-template-columns: repeat(3, 1fr);
}
.forgot-password-link {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--accent2);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.telegram-link {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 20px;
}
@media (max-width: 1100px) {
  .boss-mode .boss-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .boss-mode .boss-summary {
    grid-template-columns: 1fr;
  }
}

/* Compact monthly workflow and six-row pagination. */
.overview-progress-table {
  min-width: 900px;
  table-layout: fixed;
}
.overview-progress-table th:nth-child(1),
.overview-progress-table td:nth-child(1) {
  width: 125px;
}
.overview-progress-table th:nth-child(2),
.overview-progress-table td:nth-child(2) {
  width: 190px;
}
.overview-progress-table th:nth-child(3),
.overview-progress-table td:nth-child(3) {
  width: 130px;
}
.overview-progress-table th:nth-child(4),
.overview-progress-table td:nth-child(4) {
  width: 120px;
}
.overview-progress-table th:nth-child(5),
.overview-progress-table td:nth-child(5) {
  width: 125px;
}
.overview-progress-table th:nth-child(6),
.overview-progress-table td:nth-child(6) {
  width: 170px;
}
.overview-progress-table th:nth-child(n + 3),
.overview-progress-table td:nth-child(n + 3) {
  text-align: center;
}
.progress-cell.empty {
  justify-content: center;
  text-align: center;
}
.progress-pagination {
  display: flex;
  align-items: center;
  gap: 5px;
}
.progress-pagination:empty {
  display: none;
}
.progress-pagination button {
  min-width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e1825;
  color: var(--muted);
  cursor: pointer;
}
.progress-pagination button.active {
  border-color: var(--accent);
  color: var(--accent2);
  font-weight: 800;
}
.progress-pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}
.light-mode .progress-pagination button {
  background: #f8fafc;
}
.transaction-record-item {
  grid-template-columns: minmax(100px, max-content) max-content 1fr;
  column-gap: 16px;
}
.transaction-record-item .transaction-party {
  white-space: nowrap;
}
.transaction-record-item > strong {
  justify-self: start;
}
.transaction-result-buttons {
  justify-self: end;
}
@media (max-width: 520px) {
  .transaction-record-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .transaction-result-buttons {
    grid-column: 1/-1;
    justify-self: end;
  }
}
.overview-progress-table {
  table-layout: fixed;
}
.overview-progress-table th,
.overview-progress-table td {
  padding-left: 14px;
  padding-right: 10px;
}
.overview-progress-table th:nth-child(1),
.overview-progress-table td:nth-child(1) {
  width: 135px;
}
.overview-progress-table th:nth-child(2),
.overview-progress-table td:nth-child(2) {
  width: 210px;
}
.overview-progress-table th:nth-child(3),
.overview-progress-table td:nth-child(3) {
  width: 130px;
}
.overview-progress-table th:nth-child(4),
.overview-progress-table td:nth-child(4) {
  width: 330px;
}
.overview-progress-table th:nth-child(5),
.overview-progress-table td:nth-child(5) {
  width: 105px;
}
.overview-progress-table th:nth-child(6),
.overview-progress-table td:nth-child(6) {
  width: 130px;
}
.overview-tx {
  grid-template-columns: minmax(100px, 1fr) auto !important;
}
.overview-tx em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ledger-form-actions {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
}
.overview-progress-table th,
.overview-progress-table td {
  text-align: left;
}
.compact-view {
  color: var(--text);
  min-width: 68px;
}
.progress-buttons {
  display: flex;
  gap: 8px;
}
.progress-buttons button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}
.progress-buttons button:first-child {
  color: #43d4c5;
}
.progress-buttons button:last-child {
  color: #ff7185;
}
.progress-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 150px;
}
.progress-cell > span {
  display: grid;
  gap: 5px;
}
.edit-progress {
  height: 30px;
  padding: 0 10px;
}
.progress-text {
  display: block;
  font-size: 15px;
  font-weight: 900;
}
.progress-text.completed {
  color: #43d4c5;
}
.progress-text.processing {
  color: #e5b94f;
}
.progress-text.closed {
  color: #ff5f73;
}
.progress-choice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.progress-choice button {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0b1522;
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
}
.progress-choice button[data-progress-choice="completed"].active {
  border-color: #43d4c5;
  color: #43d4c5;
}
.progress-choice button[data-progress-choice="processing"].active {
  border-color: #e5b94f;
  color: #e5b94f;
}
.progress-choice button[data-progress-choice="closed"].active {
  border-color: #ff5f73;
  color: #ff5f73;
}
.progress-action-dialog > label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}
.progress-action-dialog textarea {
  min-height: 100px;
}
.light-mode .progress-choice button {
  background: #f8fafc;
}
@media (max-width: 760px) {
  .ledger-form-actions {
    grid-template-columns: 1fr;
  }
  .ledger-form-actions span {
    display: none;
  }
}
.overview-progress-table {
  min-width: 900px;
}
.overview-progress-table th:nth-child(1),
.overview-progress-table td:nth-child(1) {
  width: 125px;
}
.overview-progress-table th:nth-child(2),
.overview-progress-table td:nth-child(2) {
  width: 190px;
}
.overview-progress-table th:nth-child(3),
.overview-progress-table td:nth-child(3) {
  width: 130px;
}
.overview-progress-table th:nth-child(4),
.overview-progress-table td:nth-child(4) {
  width: 120px;
}
.overview-progress-table th:nth-child(5),
.overview-progress-table td:nth-child(5) {
  width: 125px;
}
.overview-progress-table th:nth-child(6),
.overview-progress-table td:nth-child(6) {
  width: 170px;
}
.overview-progress-table th:nth-child(n + 3),
.overview-progress-table td:nth-child(n + 3) {
  text-align: center;
}
.overview-progress-table td:nth-child(5) .progress-buttons {
  justify-content: center;
}
.transaction-record-item .transaction-party {
  text-align: center;
}
.progress-cell.actioned {
  justify-content: center;
}
.cumulative-profit {
  position: absolute;
  left: 20px;
  bottom: 22px;
  margin: 0;
}
.brand-mark,
.login-mark {
  font-size: 11px;
  letter-spacing: -0.4px;
}
.flow .flow-in {
  color: #43d4c5;
}
.flow .flow-out {
  color: #ff6578;
}
.flow {
  display: block;
  text-align: center;
}
.flow .flow-in,
.flow .flow-out {
  text-align: center;
  font-weight: 800;
}
body.light-mode {
  --muted: #43536a;
  --line: #b8c7da;
  --bad: #b4233b;
}
body.light-mode .flow .flow-in {
  color: #00766d;
}
body.light-mode .flow .flow-out,
body.light-mode .bad-text,
body.light-mode .progress-text.closed,
body.light-mode .badge.closed,
body.light-mode .danger-link,
body.light-mode .danger-action,
body.light-mode .login-error,
body.light-mode .transaction-record-item.outcome strong {
  color: #b4233b;
}
body.light-mode .badge.closed {
  background: #ffe1e6;
  border: 1px solid #e9a5b0;
}
body.light-mode .badge.closed:before {
  background: #b4233b;
}
body.light-mode .progress-buttons button:last-child,
body.light-mode .transaction-result-buttons button:last-child {
  color: #b4233b;
  border-color: #d79aa5;
}
body.light-mode .metric-icon.out {
  color: #b4233b;
  background: #ffe5e9;
}
body.light-mode .transaction-entry.outcome select {
  color: #a61f36;
  border-color: #cf7181;
  background: #ffe2e7;
}
body.light-mode .transaction-record-item.outcome {
  border-color: #e2a3ae;
}
body.light-mode .transaction-record-item.outcome strong {
  font-weight: 850;
}
.boss-members-card {
  margin-bottom: 26px;
}
.boss-member-table {
  overflow-x: auto;
}
.boss-member-row {
  display: grid;
  grid-template-columns:
    minmax(190px, 1.25fr) minmax(150px, 1fr)
    120px 140px minmax(180px, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 850px;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.boss-member-row.head {
  background: #0d1724;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.boss-member-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.boss-member-identity > span b,
.boss-member-identity > span small {
  display: block;
}
.boss-member-identity > span small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.member-account-status {
  font-weight: 700;
}
.member-account-status.ready {
  color: var(--good);
}
.member-account-status.pending {
  color: var(--accent2);
}
.sub-status.expired {
  color: var(--bad);
}
body.light-mode .boss-member-row.head {
  background: #eaf0f7;
  color: #34465e;
}
body.light-mode .boss-members-card {
  background: rgba(255, 255, 255, 0.9);
}
.member-number {
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}
.boss-member-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 16px;
  border-top: 1px solid var(--line);
}
.boss-member-pagination:empty {
  display: none;
}
.boss-member-pagination button {
  min-width: 34px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0e1825;
  color: var(--muted);
  cursor: pointer;
}
.boss-member-pagination button.active {
  border-color: var(--accent);
  color: var(--accent2);
  font-weight: 850;
}
.boss-member-pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}
.renew-plan-field {
  margin: 18px 0;
  padding: 0;
  border: 0;
}
.renew-plan-field legend {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
}
.renew-plan-choice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.renew-plan-choice button {
  display: grid;
  gap: 5px;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1522;
  color: var(--text);
  cursor: pointer;
}
.renew-plan-choice button b {
  font-size: 15px;
}
.renew-plan-choice button small {
  color: var(--muted);
  font-size: 10px;
}
.renew-plan-choice button.active {
  border-color: var(--accent);
  background: rgba(226, 181, 83, 0.12);
  color: var(--accent2);
}
body.light-mode .boss-member-pagination button,
body.light-mode .renew-plan-choice button {
  background: #f8fafc;
}
@media (max-width: 620px) {
  .renew-plan-choice {
    grid-template-columns: 1fr;
  }
}
.overview-progress-table {
  min-width: 1050px;
}
.overview-progress-table th:nth-child(6),
.overview-progress-table td:nth-child(6) {
  width: 140px;
  text-align: center;
}
.overview-progress-table th:nth-child(7),
.overview-progress-table td:nth-child(7) {
  width: 170px;
  text-align: center;
}
.personal-profit-cell {
  white-space: nowrap;
}
.personal-profit-amount {
  font-size: 14px;
  color: var(--accent2);
  font-variant-numeric: tabular-nums;
}
.profit-currency-button {
  margin-left: 4px;
  padding: 3px 6px;
  border: 0;
  border-bottom: 1px dashed currentColor;
  background: transparent;
  color: var(--accent2);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.profit-source-card,
.profit-converted-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0b1522;
  text-align: left;
}
.profit-source-card span,
.profit-converted-card span {
  color: var(--muted);
  font-size: 11px;
}
.profit-source-card strong,
.profit-converted-card strong {
  color: var(--accent2);
  font-size: 18px;
}
.profit-target-label {
  display: grid;
  gap: 7px;
  text-align: left;
  color: var(--muted);
  font-size: 11px;
}
.profit-target-label select {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #09121e;
  color: var(--text);
}
.profit-rate-row {
  display: grid;
  grid-template-columns: 42px 62px 20px 1fr 54px;
  gap: 7px;
  align-items: center;
  margin: 14px 0;
}
.profit-rate-row span,
.profit-rate-row b,
.profit-rate-row i {
  font-style: normal;
  text-align: center;
}
.profit-rate-row input {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #09121e;
  color: var(--text);
}
body.light-mode .profit-source-card,
body.light-mode .profit-converted-card,
body.light-mode .profit-target-label select,
body.light-mode .profit-rate-row input {
  background: #f8fafc;
  color: var(--text);
}
.profit-display-card {
  min-width: 102px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--accent2);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.profit-display-card:hover,
.transaction-amount-button:hover {
  border-color: var(--accent);
}
.profit-rate-row[hidden] {
  display: none;
}
.transaction-amount-button {
  justify-self: start;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
}
.transaction-record-item.income .transaction-amount-button {
  color: #43d4c5;
}
.transaction-record-item.outcome .transaction-amount-button {
  color: #ff7185;
}
