:root {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  color: #eef2f2;
  background: #0d1011;
}

.generation-control-panel { max-width: 880px; }
.generation-control-head,
.generation-control-actions,
.admin-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.generation-control-head h3 { margin: 0 0 8px; }
.generation-control-status {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.generation-control-status.is-enabled {
  color: #9cf5c9;
  border-color: rgba(81, 220, 152, 0.28);
  background: rgba(81, 220, 152, 0.1);
}
.generation-control-status.is-paused {
  color: #ffd0ca;
  border-color: rgba(255, 123, 114, 0.3);
  background: rgba(255, 123, 114, 0.1);
}
.generation-control-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.admin-switch-row {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}
.admin-switch-row span { display: grid; gap: 5px; }
.admin-switch-row small,
.generation-message-field small {
  color: #8f9a9c;
  font-size: 12px;
}
.admin-switch-row input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}
.admin-switch-row i {
  position: relative;
  flex: 0 0 auto;
  inline-size: 52px;
  block-size: 28px;
  border-radius: 999px;
  background: #3b4244;
  transition: background 160ms ease-out;
}
.admin-switch-row i::after {
  content: "";
  position: absolute;
  inset: 4px auto 4px 4px;
  inline-size: 20px;
  border-radius: 50%;
  background: #f6f8f8;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.26);
  transition: translate 160ms ease-out;
}
.admin-switch-row input:checked + i { background: #2b9f68; }
.admin-switch-row input:checked + i::after { translate: 24px 0; }
.admin-switch-row input:focus-visible + i {
  outline: 2px solid #83e9bd;
  outline-offset: 3px;
}
.generation-message-field {
  display: grid;
  gap: 8px;
  color: #dce3e4;
  font-size: 13px;
  font-weight: 650;
}
.generation-message-field input { width: 100%; box-sizing: border-box; }
.generation-control-actions { min-height: 40px; }
.generation-control-actions span { color: #aeb9ba; font-size: 12px; }
@media (max-width: 680px) {
  .generation-control-head,
  .generation-control-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .generation-control-status { align-self: flex-start; }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #0d1011;
}
.login {
  width: min(380px, calc(100% - 32px));
  margin: 15vh auto;
  padding: 32px;
  background: #171b1c;
  border: 1px solid #303738;
  border-radius: 12px;
}
.eyebrow {
  color: #18c4e6;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
}
h1 {
  margin: 10px 0 24px;
  font-size: 28px;
}
input,
select {
  display: block;
  width: 100%;
  height: 44px;
  margin: 10px 0;
  padding: 0 12px;
  border: 1px solid #3b4446;
  border-radius: 9px;
  background: #101313;
  color: #fff;
}
input[type="file"] {
  height: auto;
  padding: 11px;
}
button {
  width: 100%;
  height: 44px;
  margin-top: 12px;
  border: 0;
  border-radius: 9px;
  background: #18c4e6;
  color: #061113;
  font-weight: 800;
  cursor: pointer;
}
small {
  display: block;
  margin-top: 16px;
  color: #899294;
  line-height: 1.6;
}
.shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.side {
  padding: 24px 16px;
  border-right: 1px solid #293031;
  background: #121516;
}
.side h2 {
  margin: 0 8px 28px;
}
.side button {
  margin: 3px 0;
  background: transparent;
  color: #b8c1c2;
  text-align: left;
  padding: 0 12px;
}
.side button.active,
.side button:hover {
  background: #273335;
  color: #fff;
}
.main {
  padding: 28px;
  max-width: 1200px;
  width: 100%;
}
.head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.head button {
  width: auto;
  padding: 0 18px;
  background: #222a2b;
  color: #fff;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 22px 0;
}
.card,
.panel {
  padding: 18px;
  background: #171b1c;
  border: 1px solid #303839;
  border-radius: 12px;
}
.panel {
  margin-top: 16px;
}
.card small {
  margin: 0;
}
.metric {
  font-size: 28px;
  font-weight: 800;
  margin-top: 8px;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid #2c3435;
  text-align: left;
  font-size: 12px;
}
.toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.toolbar button {
  width: auto;
  padding: 0 14px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.form-row button {
  margin: 10px 0 0;
}
.notice {
  color: #9da7a8;
  font-size: 12px;
  line-height: 1.7;
}
.price-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
  align-items: end;
  margin-top: 20px;
}
.price-form label {
  color: #aeb7b8;
  font-size: 12px;
}
.price-form input,
.price-form select {
  margin-bottom: 0;
}
.price-form button {
  margin: 0;
}
.price-preview {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.price-preview span {
  min-width: 180px;
  padding: 14px;
  border: 1px solid #303839;
  border-radius: 10px;
  background: #101313;
  color: #9da7a8;
  font-size: 12px;
}
.price-preview b {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 18px;
}
.empty-state {
  padding: 28px 0;
  color: #899294;
  text-align: center;
}
.loading {
  padding: 60px;
  color: #899294;
  text-align: center;
}
.error {
  color: #ff9898;
}
.table-wrap {
  overflow: auto;
}
.empty-cell {
  text-align: center !important;
  color: #899294;
}
.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.panel-title-row h3 {
  margin: 0 0 5px;
}
.panel-title-row .notice {
  margin: 0;
}
#recordCount {
  flex: none;
  padding: 6px 9px;
  border-radius: 999px;
  background: #242a2b;
  color: #9da7a8;
  font-size: 11px;
}
.record-filters {
  display: flex;
  gap: 7px;
  margin: 18px 0 8px;
}
.record-filters button {
  width: auto;
  height: 32px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #333c3e;
  border-radius: 7px;
  background: #111415;
  color: #8f999b;
  font-size: 11px;
}
.record-filters button.active,
.record-filters button:hover {
  border-color: #18c4e6;
  background: #16282c;
  color: #76e5f7;
}
.consumption-table {
  min-width: 880px;
}
.consumption-table td {
  vertical-align: middle;
}
.table-sub {
  margin: 4px 0 0;
  color: #778183;
  font-size: 10px;
}
.customer-name {
  color: #f2f6f6;
}
.record-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.record-status.completed {
  background: #163126;
  color: #61daa3;
}
.record-status.running {
  background: #332b18;
  color: #e8c36a;
}
.record-status.failed {
  background: #351f21;
  color: #ff9a9f;
}
.refund-text {
  color: #d8969a;
}
.rebate-value {
  color: #aab3b5;
}
.rebate-value.positive {
  color: #63deaa;
}
.direct-user {
  color: #7d898b;
}

/* Agent hierarchy workspace */
.agent-shell {
  grid-template-columns: 236px minmax(0, 1fr);
}
.agent-side {
  display: flex;
  flex-direction: column;
}
.agent-brand,
.agent-page-head,
.agent-account,
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.agent-brand h2 {
  margin: 0;
  font-size: 20px;
}
.agent-brand > span,
.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(126, 240, 255, 0.24);
  border-radius: 8px;
  background: #102126;
  color: #7ef0ff;
  font-size: 11px;
  font-weight: 800;
}
.level-badge.compact {
  min-width: 32px;
  height: 25px;
  padding: 0 7px;
}
.agent-account {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
  margin: 24px 0 18px;
  padding: 15px;
  border: 1px solid #2d3638;
  border-radius: 10px;
  background: #0e1112;
}
.agent-account small {
  margin: 0;
  color: #7ef0ff;
  font-size: 10px;
}
.agent-side nav {
  display: grid;
  gap: 4px;
}
.agent-side nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.agent-side nav button span {
  min-width: 23px;
  padding: 3px 6px;
  border-radius: 6px;
  background: #0d1112;
  color: #8e9a9d;
  text-align: center;
  font-size: 10px;
}
.agent-logout {
  margin-top: auto !important;
}
.agent-main {
  max-width: 1540px;
}
.agent-page-head {
  min-height: 78px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.agent-page-head h1 {
  margin: 0 0 7px;
  font-size: 32px;
  letter-spacing: -0.04em;
}
.agent-page-head p {
  margin: 0;
  color: #8b989b;
  font-size: 12px;
}
.agent-price-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.agent-price-strip span {
  display: flex;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid #303a3c;
  border-radius: 8px;
  background: #0f1213;
  color: #a8b2b4;
  font-size: 11px;
  white-space: nowrap;
}
.agent-price-strip b {
  color: #fff;
}
.money-metric {
  font-size: 28px;
}
.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}
.copy-row input,
.copy-row button {
  margin: 0;
}
.copy-row button,
.small-action,
.row-actions button {
  width: auto;
  padding: 0 16px;
}
.form-result {
  min-height: 18px;
  margin: 9px 0 0;
  color: #ff9aa0;
  font-size: 11px;
}
.site-state {
  padding: 7px 11px;
  border: 1px solid #384448;
  border-radius: 8px;
  color: #98a6a9;
  font-size: 11px;
  font-weight: 800;
}
.site-state.active {
  border-color: rgba(99, 222, 170, 0.35);
  color: #63deaa;
}
.site-settings {
  max-width: 1180px;
}
.site-identity {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(300px, 1.3fr);
  gap: 12px;
  margin-top: 20px;
}
.site-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #dce7e8;
  font-size: 12px;
  font-weight: 800;
}
.site-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #63deaa;
}
.site-retail-prices {
  margin-top: 20px;
}
.subagent-form {
  margin-top: 20px;
}
.subagent-identity,
.subagent-prices {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}
.subagent-prices {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  margin-top: 12px;
}
.fixed-price-note {
  margin-top: 18px;
  color: #819093;
  font-size: 11px;
}
.fixed-price-field {
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid #2e3e40;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(32, 198, 232, 0.1), rgba(200, 255, 80, 0.04));
}
.fixed-price-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #dce7e8;
  font-size: 11px;
}
.fixed-price-value {
  margin-top: 8px;
  color: #c8ff50;
  font-size: 18px;
  font-weight: 900;
}
.fixed-price-value small {
  margin-left: 5px;
  color: #879698;
  font-size: 10px;
  font-weight: 700;
}
.editable-price-field {
  min-width: 0;
  margin: 0;
  padding: 10px 12px 12px;
  border: 1px solid #2e3e40;
  border-radius: 8px;
  background: #111718;
}
.editable-price-field legend {
  padding: 0 5px;
  color: #dce7e8;
  font-size: 11px;
  font-weight: 800;
}
.duration-price-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}
.duration-price-input {
  min-width: 0;
}
.duration-price-input > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  color: #aeb8ba;
  font-size: 11px;
}
.duration-price-input > span small {
  color: #718084;
  font-size: 9px;
  white-space: nowrap;
}
.duration-price-input input {
  width: 100%;
  height: 38px;
  margin: 5px 0 0;
  padding: 0 10px;
  color: #f4f8f8;
  font-variant-numeric: tabular-nums;
  border-color: #3a4a4c;
  background: #0b1011;
}
.duration-price-input input:focus-visible {
  border-color: #20c6e8;
  outline: 2px solid rgba(32, 198, 232, 0.28);
  outline-offset: 1px;
}
.inline-price-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
}
.inline-price-actions button {
  min-height: 36px;
  padding: 0 13px;
}
.inline-price-actions small {
  max-width: 220px;
  color: #9cadb0;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.subagent-form label,
.inline-prices label {
  color: #aeb8ba;
  font-size: 11px;
}
.price-range {
  float: right;
  color: #718084;
  font-size: 9px;
}
.subagent-form input {
  margin-bottom: 0;
}
.form-actions {
  align-items: flex-end;
  margin-top: 12px;
}
.form-actions .form-result {
  margin: 0;
}
.form-actions button {
  width: auto;
  min-width: 180px;
  margin: 0;
  padding: 0 18px;
}
.hierarchy-table {
  min-width: 1180px;
}
.hierarchy-table td {
  vertical-align: middle;
}
.inline-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 7px;
}
.inline-prices label {
  line-height: 1.25;
}
.inline-prices .price-range {
  display: none;
}
.inline-prices .fixed-price-field {
  min-height: 48px;
  padding: 8px 9px;
  border-radius: 8px;
}
.inline-prices .fixed-price-head {
  display: block;
  font-size: 10px;
}
.inline-prices .fixed-price-head .price-range {
  display: block;
  float: none;
  margin-top: 3px;
  font-size: 8px;
}
.inline-prices .fixed-price-value {
  margin-top: 4px;
  font-size: 13px;
}
.inline-prices .fixed-price-value small {
  font-size: 8px;
}
.inline-prices input {
  height: 34px;
  margin: 4px 0 0;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 11px;
}
.inline-prices .editable-price-field {
  padding: 8px 9px 9px;
}
.inline-prices .duration-price-inputs {
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 6px;
}
.inline-prices .duration-price-input input {
  height: 34px;
  padding-inline: 8px;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 190px;
}
.row-actions button {
  height: 30px;
  margin: 0;
  padding: 0 9px;
  border: 1px solid #344044;
  border-radius: 7px;
  background: #111516;
  color: #dbe2e3;
  font-size: 10px;
}
.row-actions button:hover {
  border-color: #20c6e8;
}
.row-actions .danger-action {
  border-color: #573136;
  color: #ff9aa0;
}
.row-actions button:disabled,
.form-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.limit-panel {
  border-color: #4b4228;
  background: #19170f;
}
.agent-main code {
  color: #82e8f6;
  font-family: Consolas, monospace;
  font-size: 11px;
}
@media (max-width: 1040px) {
  .agent-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .agent-metrics {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
  .subagent-identity {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}
@media (max-width: 760px) {
  .site-identity {
    grid-template-columns: 1fr;
  }
  .agent-shell {
    display: block;
  }
  .agent-side {
    position: relative;
    height: auto;
    padding: 14px;
  }
  .agent-brand {
    margin-bottom: 10px;
  }
  .agent-account {
    display: none;
  }
  .agent-side nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .agent-side nav button {
    flex: none;
    width: auto;
    min-width: 88px;
    margin: 0;
  }
  .agent-side nav button span {
    margin-left: 8px;
  }
  .agent-logout {
    position: absolute;
    top: 8px;
    right: 62px;
    width: auto !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 10px !important;
  }
  .agent-main {
    padding: 18px 14px 40px;
  }
  .agent-page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .agent-price-strip {
    justify-content: flex-start;
  }
  .subagent-identity,
  .subagent-prices {
    grid-template-columns: 1fr;
  }
  .inline-prices {
    grid-template-columns: 1fr;
  }
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .form-actions button {
    width: 100%;
  }
  .panel-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .record-filters {
    max-width: 100%;
    overflow-x: auto;
  }
}

.payment-channel-panel,
.redeem-import-panel {
  margin-top: 18px;
}
.payment-channel-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.redeem-csv-input {
  width: 100%;
  min-height: 190px;
  margin-top: 12px;
  padding: 14px;
  resize: vertical;
  border: 1px solid #334143;
  border-radius: 12px;
  background: #11191a;
  color: #dff0ec;
  font: 12px/1.55 Consolas, monospace;
  outline: none;
}
.redeem-csv-input:focus {
  border-color: #9fe870;
  box-shadow: 0 0 0 3px rgba(159, 232, 112, .12);
}
.redeem-code-table code {
  white-space: nowrap;
  color: #c8f5ab;
}

.admin-agent-tree {
  min-width: 1380px;
}
.admin-agent-tree td {
  vertical-align: middle;
}
.agent-tree-name {
  display: inline-block;
  padding-left: calc(var(--agent-level, 0) * 16px);
  color: #f4f8f8;
}
.tree-price {
  display: block;
  color: #aab4b6;
  white-space: nowrap;
}
.tree-price + .tree-price {
  margin-top: 5px;
}
.tree-price b {
  display: inline-block;
  min-width: 92px;
  color: #eef3f3;
  font-size: 10px;
}
.agent-profit {
  display: block;
  color: #b8ff45;
  white-space: nowrap;
}
.table-inline-action {
  display: block;
  margin-top: 7px;
  padding: 4px 8px;
  border: 1px solid rgba(126, 240, 255, 0.3);
  border-radius: 6px;
  background: #102126;
  color: #7ef0ff;
  font-size: 10px;
  cursor: pointer;
}
.table-inline-action:hover {
  border-color: #7ef0ff;
  background: #17343a;
}
.table-inline-action:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
.settlement-action {
  border-color: rgba(184, 255, 69, 0.3);
  background: rgba(184, 255, 69, 0.08);
  color: #c9ff70;
}
.profit-deduction-action {
  border-color: rgba(233, 191, 114, 0.36);
  background: rgba(233, 191, 114, 0.08);
  color: #f2cf8d;
}
.profit-deduction-action:hover {
  border-color: #e9bf72;
  background: rgba(233, 191, 114, 0.14);
}
.deduction-pending {
  color: #f2cf8d;
}
.agent-price-dialog {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid #334044;
  border-radius: 14px;
  background: #15191a;
  color: #f4f8f8;
}
.agent-price-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}
.agent-price-dialog form {
  padding: 24px;
}
.agent-price-fields {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.agent-price-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: #0d1011;
}
.agent-price-field span {
  font-weight: 800;
}
.agent-price-field small {
  display: block;
  margin-top: 4px;
  color: #889497;
  font-size: 10px;
  font-weight: 500;
}
.agent-price-field input {
  width: 100%;
  margin: 0;
}
@media (max-width: 760px) {
  .agent-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .agent-side nav button {
    display: flex;
    margin: 0;
  }
}
@media (max-width: 480px) {
  .agent-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .agent-metrics .card {
    min-height: 98px;
    padding: 15px;
  }
  .agent-metrics .metric {
    font-size: 26px;
  }
  .copy-row {
    grid-template-columns: 1fr;
  }
  .copy-row button {
    width: 100%;
  }
}
@media (max-width: 980px) {
  .price-form {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .side {
    border-right: 0;
    border-bottom: 1px solid #293031;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row,
  .price-form {
    grid-template-columns: 1fr 1fr;
  }
  .main {
    padding: 18px;
  }
}
@media (max-width: 520px) {
  .form-row,
  .price-form {
    grid-template-columns: 1fr;
  }
  .price-preview {
    flex-direction: column;
  }
  .price-preview span {
    min-width: 0;
  }
}

/* Final admin polish */
:root {
  --admin-bg: #090b0c;
  --admin-panel: #15191a;
  --admin-panel-2: #101314;
  --admin-line: #2d3638;
  --admin-text: #f4f7f7;
  --admin-muted: #8b989b;
  --admin-cyan: #20c6e8;
  --admin-cyan-2: #7ef0ff;
  --admin-green: #6be1a6;
  --admin-red: #ff8e95;
}
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% -10%, rgba(32, 198, 232, 0.13), transparent 34%),
    linear-gradient(180deg, #0b0e0f 0%, #080909 100%);
  color: var(--admin-text);
}
.login {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--admin-panel);
  border-color: rgba(126, 240, 255, 0.18);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}
.login input {
  border-radius: 14px;
  background: #0d1011;
}
.login button {
  border-radius: 14px;
}
.shell {
  grid-template-columns: 248px minmax(0, 1fr);
}
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 18px;
  background: rgba(17, 20, 21, 0.96);
  backdrop-filter: blur(18px);
}
.side h2 {
  letter-spacing: -0.04em;
  font-size: 24px;
}
.side button {
  height: 42px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.side button.active,
.side button:hover {
  background: #252b2c;
  border-color: #344044;
}
.side button.active {
  color: #fff;
  box-shadow: inset 3px 0 0 var(--admin-cyan);
}
.side #logout {
  margin-top: 22px;
  color: #99a4a7;
}
.main {
  max-width: 1440px;
  padding: 36px clamp(22px, 4vw, 54px);
}
.head {
  min-height: 86px;
  margin-bottom: 8px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.head h1 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.08em;
}
.eyebrow {
  color: var(--admin-cyan-2);
  letter-spacing: 0.24em;
}
.cards {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
}
.card,
.panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--admin-panel);
  border: 1px solid rgba(126, 240, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
}
.card {
  min-height: 126px;
  padding: 22px;
}
.card small {
  color: var(--admin-muted);
  font-size: 12px;
}
.metric {
  color: #fff;
  font-size: 36px;
  letter-spacing: -0.06em;
}
.metric.small {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.panel {
  padding: 22px;
}
.panel h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.04em;
}
input,
select {
  border-radius: 13px;
  background: #0d1011;
  border-color: #344044;
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--admin-cyan);
  box-shadow: 0 0 0 3px rgba(32, 198, 232, 0.14);
}
button {
  border-radius: 13px;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}
button:hover {
  transform: translateY(-1px);
}
.small-action {
  width: auto;
  min-width: 98px;
  height: 36px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #354245;
  background: #0f1314;
  color: #d9faff;
}
.table {
  min-width: 760px;
}
.table th {
  color: #aebbbd;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.table td {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}
.table code {
  padding: 4px 7px;
  border-radius: 9px;
  background: #0b0f10;
  color: #b7eef7;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}
.api-summary-cards .card:nth-child(2) {
  border-color: rgba(32, 198, 232, 0.38);
  background:
    radial-gradient(circle at 85% 20%, rgba(32, 198, 232, 0.18), transparent 38%),
    var(--admin-panel);
}
.api-credit-table {
  min-width: 1080px;
}
.api-status {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}
.api-status.ready {
  background: rgba(107, 225, 166, 0.14);
  color: var(--admin-green);
}
.api-status.unknown {
  background: rgba(32, 198, 232, 0.14);
  color: var(--admin-cyan-2);
}
.api-status.pending {
  background: rgba(234, 184, 76, 0.14);
  color: #e8c36a;
}
.api-status.failed {
  background: rgba(255, 142, 149, 0.14);
  color: var(--admin-red);
}
.agent-price-grid {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  gap: 12px;
}
.agent-price-grid h4 {
  margin: 0 0 6px;
  font-size: 16px;
}
.agent-price-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(150px, 220px) minmax(120px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #0d1011;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.agent-price-row span {
  display: grid;
  gap: 4px;
  font-weight: 900;
}
.agent-price-row small,
.table-sub {
  display: block;
  margin-top: 4px;
  color: #889498;
  font-size: 11px;
}
.agent-price-row input {
  width: 100%;
  margin: 0;
}
.agent-price-row em {
  color: var(--admin-cyan-2);
  font-style: normal;
  font-weight: 900;
  text-align: right;
}
.compact-details summary {
  cursor: pointer;
  font-weight: 900;
  color: #f7fbfb;
  list-style: none;
}
.compact-details summary::-webkit-details-marker {
  display: none;
}
.compact-details summary::after {
  content: "展开";
  margin-left: 12px;
  color: var(--admin-cyan-2);
  font-size: 12px;
}
.compact-details[open] summary::after {
  content: "收起";
}
.profit-table th,
.profit-table td {
  white-space: nowrap;
}
.rejection-table {
  min-width: 980px;
}
.rejection-table td {
  vertical-align: top;
}
.rejection-reason {
  display: block;
  max-width: 420px;
  color: #ffb4b8;
  line-height: 1.55;
  white-space: normal;
}
.user-balance-table {
  min-width: 1100px;
}
.user-search-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 18px 0 12px;
}
.user-search-field {
  display: block;
  width: min(620px, 100%);
}
.user-search-field > span {
  display: block;
  margin-bottom: 6px;
  color: #aeb9bb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.user-search-field input {
  height: 42px;
  margin: 0;
}
.user-search-clear {
  width: auto;
  height: 42px;
  margin: 0;
  padding: 0 16px;
  border-color: #394649;
  background: #121718;
  color: #b9c4c6;
  white-space: nowrap;
}
.user-search-clear:hover,
.user-search-clear:focus-visible {
  border-color: var(--admin-cyan);
  color: #f2fcfd;
}
.user-search-clear[hidden] {
  display: none;
}
.table-wrap {
  scrollbar-color: #3c494c #0c0f10;
  scrollbar-width: thin;
}
.table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.table-wrap::-webkit-scrollbar-track {
  background: #0c0f10;
}
.table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid #0c0f10;
  border-radius: 8px;
  background: #3c494c;
}
.user-balance-table th:last-child,
.user-balance-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  min-width: 164px;
  background: #171b1c;
  box-shadow: -16px 0 24px rgba(8, 10, 10, 0.72);
}
.user-balance-table th:last-child {
  z-index: 3;
}
.user-balance-table tr:hover td:last-child {
  background: #1b2021;
}
.balance-value {
  color: var(--admin-cyan-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.balance-actions {
  display: flex;
  gap: 7px;
}
.balance-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto;
  min-width: 68px;
  height: 34px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid;
  background: transparent;
  font-size: 15px;
}
.balance-action span {
  font-size: 11px;
}
.balance-action.add {
  border-color: rgba(107, 225, 166, 0.3);
  color: var(--admin-green);
}
.balance-action.add:hover {
  background: rgba(107, 225, 166, 0.1);
}
.balance-action.subtract {
  border-color: rgba(255, 142, 149, 0.28);
  color: var(--admin-red);
}
.balance-action.subtract:hover {
  background: rgba(255, 142, 149, 0.09);
}
.user-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}
.user-status.active {
  background: rgba(107, 225, 166, 0.12);
  color: var(--admin-green);
}
.user-status.inactive {
  background: rgba(255, 142, 149, 0.12);
  color: var(--admin-red);
}
.balance-notice {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(107, 225, 166, 0.28);
  border-radius: 14px;
  background: rgba(107, 225, 166, 0.08);
  color: var(--admin-green);
}
.balance-notice span {
  color: #c3d8d0;
  font-size: 12px;
}
.balance-dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid rgba(126, 240, 255, 0.2);
  border-radius: 18px;
  background: #15191a;
  color: var(--admin-text);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.62);
}
.balance-dialog::backdrop {
  background: rgba(3, 5, 5, 0.76);
  backdrop-filter: blur(6px);
}
.balance-dialog form {
  padding: 24px;
}
.balance-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.balance-dialog-head span {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 800;
}
.balance-dialog-head h3 {
  margin: 5px 0 0;
  font-size: 24px;
}
.dialog-close {
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid #354043;
  background: #0e1112;
  color: #d8e0e1;
  font-size: 22px;
}
.balance-user-summary,
.balance-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: #0d1011;
  color: var(--admin-muted);
  font-size: 12px;
}
.balance-user-summary strong,
.balance-preview strong {
  color: #fff;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.balance-preview strong.negative {
  color: var(--admin-red);
}
.balance-field {
  display: block;
  margin-top: 16px;
  color: #bac5c7;
  font-size: 12px;
  font-weight: 700;
}
.balance-field input {
  margin: 7px 0 0;
}
.balance-field small {
  display: block;
  margin-top: 6px;
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 500;
}
.balance-preview {
  margin-top: 16px;
}
.balance-error {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--admin-red);
  font-size: 12px;
}
.balance-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 8px;
}
.balance-dialog-actions button {
  margin: 0;
}
.dialog-cancel {
  border: 1px solid #354043;
  background: #0e1112;
  color: #d8e0e1;
}
.confirm-add {
  background: var(--admin-green);
  color: #07130e;
}
.confirm-subtract {
  background: var(--admin-red);
  color: #1c0708;
}
.confirm-deduction {
  background: #e9bf72;
  color: #201507;
}
.deduction-dialog-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.deduction-dialog-summary span {
  padding: 12px 13px;
  border: 1px solid rgba(233, 191, 114, 0.16);
  border-radius: 10px;
  background: rgba(233, 191, 114, 0.05);
  color: var(--admin-muted);
  font-size: 11px;
}
.deduction-dialog-summary strong {
  display: block;
  margin-top: 5px;
  color: #f2cf8d;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.deduction-history {
  display: grid;
  gap: 7px;
  max-height: 190px;
  margin-top: 16px;
  overflow: auto;
}
.deduction-history > strong {
  color: #dbe3e4;
  font-size: 11px;
}
.deduction-history span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  background: #0d1011;
}
.deduction-history b {
  grid-row: span 2;
  color: #f2cf8d;
  font-variant-numeric: tabular-nums;
}
.deduction-history em {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #e9eeee;
  font-size: 11px;
  font-style: normal;
}
.deduction-history small {
  color: var(--admin-muted);
  font-size: 9px;
}
.balance-dialog button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}
@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .side {
    position: relative;
    height: auto;
    padding: 20px 14px;
  }
  .side h2 {
    margin-bottom: 18px;
  }
  .side button {
    display: inline-flex;
    width: auto;
    min-width: 96px;
    margin: 4px;
    align-items: center;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .head h1 {
    font-size: 34px;
  }
  .main {
    padding: 20px 14px 32px;
  }
  .agent-price-row {
    grid-template-columns: 1fr;
  }
  .agent-price-row em {
    text-align: left;
  }
  .agent-price-field {
    grid-template-columns: 1fr;
  }
  .balance-dialog form {
    padding: 20px;
  }
}

@media (max-width: 760px) {
  .agent-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.margin-rule {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 13px 15px;
  color: #dce7e8;
  border: 1px solid #2e3e40;
  border-radius: 9px;
  background: #0d1314;
}
.margin-rule b { color: #c8ff50; font-size: 12px; }
.margin-rule span { color: #91a0a2; font-size: 11px; }
.price-margin {
  display: block;
  min-height: 16px;
  margin-top: 6px;
  color: #63deaa;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.price-margin.direct { color: #c8ff50; }
.price-margin.invalid { color: #ff7b72; }
@media (max-width: 640px) {
  .margin-rule { align-items: flex-start; flex-direction: column; gap: 5px; }
}

.agent-customer-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.agent-customer-cards .metric {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.settlement-guide {
  overflow: hidden;
}
.settlement-guide .small-action {
  flex: 0 0 auto;
}
.settlement-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: settlement-step;
}
.settlement-flow li {
  counter-increment: settlement-step;
  min-width: 0;
  padding: 4px 20px 4px 0;
}
.settlement-flow li + li {
  padding-left: 20px;
  border-left: 1px solid #2c383a;
}
.settlement-flow b,
.settlement-flow span {
  display: block;
}
.settlement-flow b {
  color: #f4f8f8;
  font-size: 13px;
}
.settlement-flow b::before {
  content: counter(settlement-step, decimal-leading-zero) " ";
  color: var(--admin-green);
  font-variant-numeric: tabular-nums;
}
.settlement-flow span {
  max-width: 27ch;
  margin-top: 7px;
  color: var(--admin-muted);
  font-size: 11px;
  line-height: 1.65;
}
.agent-customer-head {
  align-items: flex-end;
}
.agent-customer-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(220px, 1fr);
  gap: 10px;
  max-width: 660px;
  margin: 18px 0 12px;
}
.agent-customer-filters label > span {
  display: block;
  margin-bottom: 6px;
  color: #aeb9bb;
  font-size: 11px;
  font-weight: 700;
}
.agent-customer-filters input,
.agent-customer-filters select {
  height: 40px;
  margin: 0;
}
.agent-customer-table {
  min-width: 1180px;
}
.agent-customer-table td {
  vertical-align: top;
}
.agent-customer-table td:first-child {
  min-width: 170px;
}
.agent-customer-table td:nth-child(5) {
  min-width: 190px;
}
.agent-path {
  max-width: 28ch;
  white-space: normal;
}
.profit-distribution {
  display: grid;
  gap: 6px;
}
.profit-recipient {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #dce5e6;
  font-variant-numeric: tabular-nums;
}
.profit-recipient:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.profit-recipient b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profit-recipient small {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--admin-muted);
  font-size: 10px;
}
.agent-customer-empty {
  padding: 28px 16px 12px;
  color: var(--admin-muted);
  text-align: center;
}
.non-commission-balance,
.non-commission-note {
  color: #e9bf72;
}
.non-commission-note {
  margin: -8px 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(233, 191, 114, 0.22);
  border-radius: 9px;
  background: rgba(233, 191, 114, 0.06);
}
.agent-credit-action {
  white-space: nowrap;
}
.agent-profit-cards {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.agent-profit-cards .metric {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.agent-profit-cards .ok-card {
  border-color: rgba(99, 222, 170, 0.34);
}
.agent-profit-cards .ok-card .metric {
  color: #63deaa;
}
.agent-profit-cards .deduction-card {
  border-color: rgba(233, 191, 114, 0.32);
}
.agent-profit-cards .deduction-card .metric {
  color: #f2cf8d;
}
.agent-profit-cards .warning-card,
.pricing-alert {
  border-color: rgba(255, 123, 114, 0.38);
}
.agent-profit-cards .warning-card .metric,
.pricing-alert strong,
.price-warning {
  color: #ff8d84;
}
.pricing-ledger-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 18px;
}
.pricing-ledger-note > strong {
  color: #c8ff50;
  white-space: nowrap;
}
.pricing-ledger-note .notice {
  margin: 0;
}
.current-pricing-table {
  min-width: 820px;
}
.pricing-issue-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.pricing-issue-list span {
  padding: 11px 13px;
  border: 1px solid rgba(255, 123, 114, 0.2);
  border-radius: 9px;
  background: rgba(255, 123, 114, 0.05);
  color: #bac4c5;
  font-size: 11px;
}
.pricing-issue-list b {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}
.agent-price-dialog {
  width: min(920px, calc(100% - 28px));
  max-height: min(880px, calc(100vh - 28px));
}
.agent-price-dialog form {
  max-height: calc(100vh - 28px);
  overflow: auto;
}
.agent-price-history {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.agent-price-history span {
  padding: 10px 12px;
  border: 1px solid #2e3a3c;
  border-radius: 9px;
  background: #0d1213;
}
.agent-price-history small {
  margin: 0 0 4px;
  font-size: 10px;
}
.agent-price-history b {
  color: #f4f8f8;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.agent-price-fields {
  display: grid;
  gap: 12px;
}
.agent-price-model {
  padding: 14px;
  border: 1px solid #2d383a;
  border-radius: 11px;
  background: #0d1112;
}
.agent-price-model-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.agent-price-model-head h4 {
  margin: 0;
  color: #f2f6f6;
  font-size: 13px;
}
.agent-price-model-head small {
  margin: 3px 0 0;
  font-size: 10px;
}
.agent-price-model-head > span {
  color: #7ef0ff;
  font-size: 10px;
  font-weight: 800;
}
.agent-price-duration {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px minmax(180px, 0.8fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.agent-price-duration > span b,
.agent-price-duration > span small {
  display: block;
}
.agent-price-duration > span b {
  color: #eef4f4;
  font-size: 12px;
}
.agent-price-duration > span small {
  margin: 3px 0 0;
  font-size: 10px;
}
.agent-price-duration input {
  height: 38px;
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.agent-price-duration em {
  color: #63deaa;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}
.agent-price-duration em.invalid {
  color: #ff7b72;
}
@media (max-width: 1180px) {
  .agent-profit-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .agent-customer-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settlement-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 0;
  }
  .settlement-flow li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}
@media (max-width: 760px) {
  .user-search-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .user-search-field {
    width: 100%;
  }
  .user-search-clear {
    width: 100%;
  }
  .agent-profit-cards,
  .agent-price-history,
  .pricing-issue-list,
  .deduction-dialog-summary {
    grid-template-columns: 1fr;
  }
  .pricing-ledger-note,
  .agent-price-duration {
    grid-template-columns: 1fr;
  }
  .pricing-ledger-note {
    gap: 6px;
  }
  .agent-price-duration em {
    text-align: left;
  }
  .agent-customer-cards,
  .settlement-flow,
  .agent-customer-filters {
    grid-template-columns: 1fr;
  }
  .settlement-guide .panel-title-row {
    align-items: stretch;
  }
  .settlement-guide .small-action {
    width: 100%;
  }
  .settlement-flow li,
  .settlement-flow li + li,
  .settlement-flow li:nth-child(3) {
    padding: 0 0 16px;
    border: 0;
    border-bottom: 1px solid #2c383a;
  }
  .settlement-flow li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
}
