* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(238, 184, 157, 0.55) rgba(255, 255, 255, 0.06);
}

body {
  margin: 0;
  min-width: 1180px;
  color: #eef4ff;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
  scrollbar-width: thin;
  scrollbar-color: rgba(238, 184, 157, 0.65) rgba(255, 255, 255, 0.08);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

*::-webkit-scrollbar-thumb {
  border: 2px solid rgba(15, 23, 42, 0.4);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 244, 214, 0.9), rgba(238, 184, 157, 0.82));
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fff4d6, #eeb89d);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
}

.login-view {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.login-card {
  width: 430px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #172033;
  font-weight: 900;
  background: linear-gradient(135deg, #fff4d6, #eeb89d);
}

.brand-row strong,
.brand-row small,
label span {
  display: block;
}

.brand-row strong {
  font-size: 20px;
}

.brand-row small,
.eyebrow,
label span {
  color: rgba(239, 248, 255, 0.58);
}

h1 {
  margin: 28px 0 8px;
  font-size: 28px;
}

h2 {
  margin: 0 0 18px;
  font-size: 20px;
}

p {
  margin: 0 0 24px;
  color: rgba(239, 248, 255, 0.68);
}

label {
  display: block;
  margin-top: 18px;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

select {
  color-scheme: dark;
}

select option {
  color: #0f172a;
  background: #fff;
}

input:disabled {
  color: rgba(239, 248, 255, 0.58);
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.04);
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 12px;
  align-items: end;
}

.captcha-row input {
  min-width: 0;
}

.captcha-code {
  display: grid;
  width: 132px;
  height: 46px;
  margin-top: 8px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #26233a;
  font-weight: 900;
  background: linear-gradient(135deg, #fff4d6, #eeb89d);
  overflow: hidden;
}

.captcha-code img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

textarea {
  resize: vertical;
}

.field-tip {
  display: block;
  margin-top: 8px;
  color: rgba(239, 248, 255, 0.52);
  font-size: 12px;
  line-height: 1.45;
}

.muted-cell {
  max-width: 220px;
  color: rgba(239, 248, 255, 0.66);
  white-space: normal;
}

.primary,
.ghost,
.refresh,
.link,
.logout,
nav button {
  border: 0;
}

.primary {
  width: 100%;
  margin-top: 24px;
  padding: 13px 18px;
  border-radius: 999px;
  color: #26233a;
  font-weight: 900;
  background: linear-gradient(135deg, #fff4d6, #eeb89d);
}

.primary.fit {
  width: auto;
}

.ghost {
  width: 100%;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #eef4ff;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 160px;
  padding: 16px 10px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 12, 22, 0.98);
}

.sidebar .brand-row {
  gap: 10px;
  padding: 0 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar .brand-mark {
  width: 32px;
  height: 32px;
  font-size: 12px;
  border-radius: 8px;
}

.sidebar .brand-row strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.sidebar .brand-row small {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-height: 0;
  margin-top: 10px;
  padding: 4px;
  overflow: auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.sidebar nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.sidebar nav button {
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  padding: 15px 0 15px 20px;
  border-radius: 6px;
  color: rgba(239, 248, 255, 0.62);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar nav button:hover {
  color: rgba(239, 248, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar nav button.active {
  color: #fff4d6;
  font-weight: 700;
  background: rgba(255, 244, 214, 0.1);
  box-shadow: inset 2px 0 0 #eeb89d;
}

.sidebar .logout {
  margin-top: auto;
  padding: 10px 10px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  color: rgba(239, 248, 255, 0.48);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  background: transparent;
  transition: color 0.15s ease;
}

.sidebar .logout:hover {
  color: rgba(239, 248, 255, 0.82);
}

.content {
  margin-left: 160px;
  padding: 24px 32px 48px;
}

.topbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.topbar-main {
  flex: 1 1 auto;
  min-width: 0;
}

.topbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  margin-left: auto;
  padding-top: 2px;
}

.topbar-actions .refresh {
  flex-shrink: 0;
  white-space: nowrap;
}

.eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.topbar h1 {
  margin: 8px 0 0;
}

.topbar-subtitle {
  display: block;
  margin-top: 8px;
  color: rgba(239, 248, 255, 0.6);
}

.refresh {
  padding: 11px 18px;
  border-radius: 999px;
  color: #d9efff;
  background: rgba(116, 180, 215, 0.14);
}

.refresh.primary-action {
  color: #26233a;
  font-weight: 900;
  background: linear-gradient(135deg, #fff4d6, #eeb89d);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.stats article,
.panel,
.token-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.stats article {
  padding: 20px;
}

.stats strong {
  display: block;
  color: #fff1d1;
  font-size: 28px;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: rgba(239, 248, 255, 0.58);
}

.panel {
  margin-top: 24px;
  padding: 24px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.metric-list,
.api-breakdown {
  display: grid;
  gap: 12px;
}

.metric-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-list article,
.api-breakdown article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.metric-list span,
.api-breakdown span {
  display: block;
  color: rgba(239, 248, 255, 0.55);
  font-size: 13px;
}

.metric-list strong,
.api-breakdown b {
  color: #fff1d1;
  font-size: 24px;
}

.api-breakdown strong {
  display: block;
  margin-bottom: 4px;
}

.queue-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.queue-status-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.queue-status-grid span,
.queue-status-grid small {
  display: block;
  color: rgba(239, 248, 255, 0.58);
  font-size: 12px;
  line-height: 1.4;
}

.queue-status-grid strong {
  display: block;
  margin: 6px 0;
  color: #fff1d1;
  font-size: 22px;
}

.config-shell {
  margin-top: 24px;
}

.config-nav {
  display: inline-grid;
  grid-template-columns: repeat(4, auto);
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.config-nav button {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  color: rgba(239, 248, 255, 0.7);
  font-weight: 800;
  background: transparent;
}

.config-nav button.active {
  color: #26233a;
  background: linear-gradient(135deg, #fff4d6, #eeb89d);
}

.finance-page {
  display: grid;
  gap: 24px;
  margin-top: 16px;
}

.config-panel {
  max-width: 920px;
}

.rule-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.rule-tabs button {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(239, 248, 255, 0.72);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.06);
}

.rule-tabs button.active {
  color: #26233a;
  background: linear-gradient(135deg, #fff4d6, #eeb89d);
}

.rule-tabs small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.72;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.banner-config {
  display: grid;
  gap: 14px;
  margin: 8px 0 18px;
}

.banner-config-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.8fr;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tutorial-config-row {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr 2fr;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 0;
}

.check-row span {
  color: #eef4ff;
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

th {
  color: rgba(239, 248, 255, 0.52);
  font-size: 13px;
}

td {
  color: rgba(247, 251, 255, 0.88);
}

.long-cell {
  max-width: 420px;
  white-space: normal;
  line-height: 1.55;
}

.status {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.status.done {
  color: #2fbf63;
  background: rgba(47, 191, 99, 0.12);
}

.status.running {
  color: #8ab4ff;
  background: rgba(138, 180, 255, 0.12);
}

.status.failed {
  color: #ff6b5f;
  background: rgba(255, 107, 95, 0.12);
}

.status.muted {
  color: rgba(239, 248, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
}

.member-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.member-layout.single {
  display: block;
}

.member-create {
  max-width: 520px;
}

.member-form {
  margin-top: 24px;
}

.member-page {
  display: grid;
  gap: 24px;
}

.customer-ledger-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

.customer-ledger-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.customer-ledger-card strong,
.customer-ledger-card span,
.customer-ledger-card small {
  display: block;
}

.customer-ledger-card span,
.customer-ledger-card small {
  color: rgba(239, 248, 255, 0.6);
}

.customer-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.customer-ledger-card .refresh {
  width: 100%;
}

.customer-ledger-card .refresh.accent {
  color: #26233a;
  background: linear-gradient(135deg, #fff4d6, #eeb89d);
}

.ledger-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ledger-card-metrics small {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(116, 180, 215, 0.12);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.panel-head.compact {
  margin-bottom: 18px;
}

.panel-head h2 {
  margin-bottom: 8px;
}

.panel-head p {
  max-width: 620px;
  margin-bottom: 0;
}

.plan-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 20px;
}

.order-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 0.8fr 1.2fr auto;
  gap: 16px;
  align-items: end;
  margin-top: 22px;
}

.order-form label {
  margin-top: 0;
}

.recharge-dialog {
  width: min(560px, calc(100vw - 64px));
}

.trash-unlock-dialog {
  width: min(430px, calc(100vw - 64px));
}

.plan-dialog {
  width: min(720px, calc(100vw - 64px));
}

.member-dialog {
  width: min(720px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.member-dialog-head {
  flex-shrink: 0;
  padding: 16px 20px 0;
}

.member-dialog-head h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.member-dialog-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(238, 184, 157, 0.65) rgba(255, 255, 255, 0.08);
}

.member-dialog-body::-webkit-scrollbar {
  width: 8px;
}

.member-dialog-body::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.member-dialog-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 244, 214, 0.9), rgba(238, 184, 157, 0.85));
}

.member-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.member-form-grid label {
  margin-top: 0;
}

.member-form-grid label span {
  font-size: 11px;
  line-height: 1.35;
}

.member-form-grid input,
.member-form-grid select {
  margin-top: 4px;
  padding: 8px 10px;
  font-size: 13px;
}

.member-form-grid .span-2 {
  grid-column: 1 / -1;
}

.member-form-options {
  display: grid;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.member-form-options .check-row {
  margin-top: 0;
}

.member-form-options .check-row span {
  font-size: 12px;
}

.member-dialog-foot {
  flex-shrink: 0;
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #10182a;
}

.member-dialog-foot .primary {
  width: 100%;
  margin-top: 0;
  padding: 10px 14px;
}

.recharge-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.recharge-summary article {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.recharge-summary span,
.recharge-summary small,
.form-hint {
  color: rgba(239, 248, 255, 0.62);
}

.recharge-summary span,
.recharge-summary small {
  display: block;
}

.recharge-summary strong {
  display: block;
  margin: 7px 0 3px;
  font-size: 24px;
}

.form-hint {
  margin: 12px 0 18px;
  line-height: 1.7;
}

.good-text {
  color: #5ee38d;
  font-weight: 900;
}

.bad-text {
  color: #ff7b70;
  font-weight: 900;
}

.warn-text {
  color: #ffd38a;
  font-weight: 900;
}

.plan-form label {
  margin-top: 0;
}

.plan-total-summary {
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid rgba(94, 227, 141, 0.26);
  border-radius: 8px;
  background: rgba(94, 227, 141, 0.09);
}

.plan-form small,
.plan-total-summary span,
.plan-total-summary small,
.plan-table th small,
.cell-sub,
.quota-note {
  display: block;
  margin-top: 5px;
  color: rgba(239, 248, 255, 0.5);
  font-size: 12px;
  font-weight: 700;
}

.plan-total-summary strong {
  display: block;
  margin-top: 7px;
  color: #5ee38d;
  font-size: 28px;
  font-weight: 900;
}

.quota-main {
  display: block;
  color: #fff4d6;
  font-size: 16px;
  font-weight: 900;
}

.quota-main.bonus {
  color: #b9dcff;
}

.quota-main.total {
  color: #5ee38d;
}

.model-config {
  max-width: 1080px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.settings-grid label {
  margin-top: 0;
}

.plan-table {
  margin-top: 22px;
}

.plan-table tr.editing-row td {
  background: rgba(94, 227, 141, 0.08);
}

.plan-table tr.editing-row td:first-child {
  color: #dcffe8;
  font-weight: 900;
}

.token-page {
  display: grid;
  gap: 24px;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.token-grid.secondary {
  margin-top: 0;
}

.token-grid.priority {
  margin-top: 18px;
}

.token-card {
  padding: 22px;
}

.token-card.highlight {
  border-color: rgba(255, 221, 169, 0.34);
  background: linear-gradient(135deg, rgba(255, 244, 214, 0.16), rgba(116, 180, 215, 0.09));
}

.token-card span,
.token-card small {
  display: block;
  color: rgba(239, 248, 255, 0.58);
  font-size: 14px;
}

.token-card strong {
  display: block;
  margin-top: 10px;
  color: #fff1d1;
  font-size: 32px;
}

.token-card small {
  margin-top: 8px;
}

.api-balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.api-balance-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-height: 128px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.api-balance-card.highlight {
  border-color: rgba(255, 221, 169, 0.28);
  background: linear-gradient(135deg, rgba(255, 244, 214, 0.14), rgba(116, 180, 215, 0.08));
}

.api-balance-card span,
.api-balance-card small {
  display: block;
  color: rgba(239, 248, 255, 0.6);
  font-size: 13px;
}

.api-balance-card strong {
  display: block;
  margin-top: 8px;
  color: #fff1d1;
  font-size: 26px;
  line-height: 1.15;
}

.api-balance-card b {
  white-space: nowrap;
  font-size: 13px;
}

.api-balance-table {
  margin-top: 18px;
}

.api-interface-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.api-interface-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.api-interface-card.total {
  border-color: rgba(255, 221, 169, 0.28);
  background: linear-gradient(135deg, rgba(255, 244, 214, 0.12), rgba(116, 180, 215, 0.08));
}

.api-interface-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.api-interface-head > div:first-child > span,
.api-interface-head > div:first-child > small,
.api-interface-card p,
.api-interface-metrics span {
  color: rgba(239, 248, 255, 0.58);
  font-size: 13px;
}

.api-interface-head > div:first-child > span,
.api-interface-head > div:first-child > small {
  display: block;
}

.api-interface-head strong {
  display: block;
  margin-top: 6px;
  color: #fff1d1;
  font-size: 20px;
}

.api-interface-head b {
  white-space: nowrap;
  font-size: 13px;
}

.model-balance-badge {
  flex: 0 0 auto;
  min-width: 118px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 221, 169, 0.28);
  border-radius: 8px;
  text-align: right;
  background: rgba(255, 244, 214, 0.1);
}

.model-balance-badge span,
.model-balance-badge strong {
  display: block;
}

.model-balance-badge span {
  color: rgba(239, 248, 255, 0.58);
  font-size: 12px;
  line-height: 1.2;
}

.model-balance-badge strong {
  margin-top: 4px;
  color: #fff1d1;
  font-size: 18px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.api-interface-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.api-interface-metrics article {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.api-interface-metrics strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #fff1d1;
  font-size: 18px;
}

.api-interface-card p {
  margin: 14px 0 0;
}

.resource-instance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.resource-instance-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.11);
}

.resource-instance-card span,
.resource-instance-card small,
.resource-instance-card dt {
  color: rgba(239, 248, 255, 0.58);
  font-size: 12px;
}

.resource-instance-card span,
.resource-instance-card strong,
.resource-instance-card small {
  display: block;
}

.resource-instance-card strong {
  margin-top: 4px;
  color: #fff1d1;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.resource-instance-card small {
  margin-top: 3px;
}

.resource-instance-card > b {
  align-self: start;
  white-space: nowrap;
  font-size: 13px;
}

.resource-instance-card dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.resource-instance-card dl div {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.resource-instance-card dd {
  margin: 4px 0 0;
  color: #fff1d1;
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.resource-package-page .panel h2 {
  overflow-wrap: anywhere;
}

.resource-package-page .billing-table {
  min-width: 1420px;
}

.api-balance-table small {
  display: block;
  margin-top: 4px;
  max-width: 280px;
  color: rgba(239, 248, 255, 0.48);
}

.billing-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) auto;
  gap: 12px;
  align-items: stretch;
  margin-top: 18px;
}

.billing-summary-row article {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.billing-summary-row span {
  display: block;
  color: rgba(239, 248, 255, 0.58);
  font-size: 13px;
}

.billing-summary-row strong {
  display: block;
  margin-top: 8px;
  color: #fff1d1;
  font-size: 28px;
}

.billing-detail-btn {
  align-self: center;
  min-width: 148px;
}

.icon-eye-btn {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff1d1;
  background: rgba(255, 255, 255, 0.08);
}

.endpoint-dialog {
  width: min(720px, calc(100vw - 64px));
}

.billing-dialog {
  width: min(1180px, calc(100vw - 64px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.billing-dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.billing-dialog-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(239, 248, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.billing-filter-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.billing-filter-tabs button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  color: rgba(239, 248, 255, 0.72);
  font-weight: 900;
  background: transparent;
}

.billing-filter-tabs button.active {
  color: #26233a;
  background: linear-gradient(135deg, #fff4d6, #eeb89d);
}

.billing-filter-tabs b {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.api-model-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.billing-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 18px;
  padding-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  scrollbar-color: #f1c9ad rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.billing-table-wrap::-webkit-scrollbar {
  height: 12px;
  width: 12px;
}

.billing-table-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.billing-table-wrap::-webkit-scrollbar-thumb {
  border: 3px solid rgba(16, 24, 42, 0.95);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff4d6, #eeb89d);
}

.billing-scroll-hint {
  position: sticky;
  left: 0;
  z-index: 2;
  display: inline-flex;
  margin: 10px 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(239, 248, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  background: rgba(16, 24, 42, 0.86);
}

.billing-table {
  min-width: 1480px;
  margin-top: 8px;
}

.billing-table th:last-child,
.billing-table td:last-child {
  padding-right: 22px;
}

.endpoint-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.endpoint-fields article {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.endpoint-fields span {
  display: block;
  color: rgba(239, 248, 255, 0.56);
  font-size: 13px;
}

.endpoint-fields strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 6px;
  color: #fff1d1;
}

.estimate-pill {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: #b9dcff;
  font-size: 13px;
  font-weight: 800;
  background: rgba(116, 180, 215, 0.14);
}

.token-table strong {
  color: #fff1d1;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
  color: rgba(239, 248, 255, 0.62);
  font-size: 13px;
}

.pagination .link:disabled,
.table-actions .link:disabled {
  color: rgba(239, 248, 255, 0.32);
  cursor: not-allowed;
}

.empty-cell {
  padding: 22px 12px;
  color: rgba(239, 248, 255, 0.48);
  text-align: center;
}

.link {
  color: #b9dcff;
  background: transparent;
}

.link.danger {
  color: #ff9f97;
}

.detail-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow-y: auto;
  background: rgba(2, 6, 16, 0.72);
}

.detail-panel {
  width: min(1040px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
  overflow: auto;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: #10182a;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.ledger-panel {
  width: min(1180px, calc(100vw - 64px));
}

.ledger-summary {
  margin-top: 16px;
}

.ledger-tabs {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
}

.ledger-tabs button {
  border: 0;
  border-radius: 6px;
  padding: 6px 12px;
  color: rgba(239, 248, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  background: transparent;
}

.ledger-tabs button.active {
  color: #26233a;
  background: linear-gradient(135deg, #fff4d6, #eeb89d);
}

.ledger-table {
  overflow: auto;
}

.ledger-table table {
  min-width: 860px;
}

.empty-text {
  margin: 8px 0 0;
  color: rgba(239, 248, 255, 0.58);
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.detail-head h2 {
  margin-top: 6px;
}

.close-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #eef4ff;
  font-size: 26px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.12);
}

.add-icon-btn {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #26233a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #fff4d6, #eeb89d);
}

.admin-dialog {
  width: min(460px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
  overflow: auto; 
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: #10182a;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.detail-grid article,
.detail-section {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.detail-grid article {
  padding: 16px;
}

.detail-grid span {
  display: block;
  color: rgba(239, 248, 255, 0.56);
  font-size: 13px;
}

.detail-grid strong {
  display: block;
  margin-top: 8px;
}

.detail-section {
  margin-top: 16px;
  padding: 18px;
}

.detail-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.detail-section p {
  margin-bottom: 8px;
}

.error-text {
  color: #ffb0a9;
  white-space: pre-wrap;
  word-break: break-word;
}

.detail-cover {
  display: block;
  width: 240px;
  max-width: 100%;
  border-radius: 8px;
}

.detail-images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.detail-images figure {
  margin: 0;
}

.detail-images img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.detail-images figcaption {
  margin-top: 8px;
  color: rgba(239, 248, 255, 0.64);
  font-size: 13px;
}

.video-link {
  display: inline-flex;
  padding: 11px 18px;
  border-radius: 999px;
  color: #26233a;
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(135deg, #fff4d6, #eeb89d);
}

@media (max-width: 1280px) {
  body {
    min-width: 0;
  }

  .sidebar {
    position: sticky;
    inset: auto;
    top: 0;
    z-index: 20;
    display: block;
    width: 100%;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .sidebar .brand-row {
    max-width: 100%;
    align-items: center;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .sidebar nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    flex: none;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
    padding: 0 0 4px;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 0;
    background: transparent;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar nav button {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap; 
  }

  .sidebar nav button.active {
    color: #26233a;
    background: linear-gradient(135deg, #fff4d6, #eeb89d);
    box-shadow: none;
    padding: 7px 10px;
  }

  .sidebar .logout {
    flex: 0 0 auto;
    width: auto;
    margin-top: 10px;
    padding-top: 0;
    border-top: 0;
    white-space: nowrap;
  }

  .content {
    margin-left: 0;
    padding: 22px 18px 42px;
  }

  .topbar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 12px;
  }

  .topbar-actions {
    padding-top: 0;
  }

  h1 {
    font-size: 28px;
  }

  .stats,
  .dashboard-grid,
  .metric-list,
  .queue-status-grid,
  .detail-grid,
  .settings-grid,
  .form-grid,
  .billing-summary-row,
  .rule-tabs,
  .token-grid,
  .plan-form,
  .order-form {
    grid-template-columns: 1fr;
  }

  .config-nav,
  .ledger-tabs,
  .billing-filter-tabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
  }

  .config-nav button,
  .ledger-tabs button,
  .billing-filter-tabs button {
    flex: 0 0 auto;
  }

  .panel,
  .detail-section {
    padding: 16px;
    overflow-x: auto;
  }

  .customer-ledger-list {
    grid-template-columns: 1fr;
  }

  .customer-ledger-card .refresh {
    width: 100%;
    text-align: center;
  }

  .detail-mask {
    padding: 14px;
  }

  .detail-panel,
  .admin-dialog {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
  }

  .member-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .sidebar {
    padding: 8px 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-row strong {
    font-size: 15px;
  }

  .brand-row small {
    display: none;
  }

  .sidebar nav {
    margin-top: 8px;
    gap: 4px;
  }

  .sidebar nav button {
    padding: 7px 10px;
    font-size: 12px;
  }

  .sidebar .logout {
    display: none;
  }

  .content {
    padding: 12px 10px 36px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .topbar h1 {
    margin-top: 3px;
    font-size: 24px;
  }

  .topbar-subtitle {
    display: none;
  }

  .token-grid,
  .token-grid.priority {
    gap: 10px;
    margin-top: 10px;
  }

  .token-card {
    padding: 14px;
  }

  .token-card strong {
    margin-top: 6px;
    font-size: 24px;
  }

  .api-interface-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .api-interface-card {
    padding: 14px;
  }

  .api-interface-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.promotion-layout {
  display: grid;
  gap: 18px;
}

.promotion-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.promotion-toolbar-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
}

.promotion-toolbar .ledger-tabs.promotion-month-tabs {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  margin-top: 0;
}

.promotion-month-tabs {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
}

.promotion-toolbar-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.promotion-action-btn {
  width: auto;
  margin-top: 0;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.promotion-action-btn.primary {
  width: auto;
  margin-top: 0;
  color: #26233a;
  background: linear-gradient(135deg, #fff4d6, #eeb89d);
}

.promotion-action-btn.ghost {
  color: #d9efff;
  background: rgba(116, 180, 215, 0.14);
  border: 1px solid rgba(185, 220, 255, 0.16);
}

.promotion-toolbar .primary,
.promotion-toolbar .refresh {
  width: auto;
  margin-top: 0;
  flex: 0 0 auto;
}

.promotion-toolbar.compact {
  margin-bottom: 8px;
  align-items: center;
}

.promotion-month-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.promotion-filter {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.promotion-filter span {
  color: var(--muted);
  font-size: 12px;
}

.promotion-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.promotion-summary article,
.promotion-panel {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.promotion-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.promotion-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.promotion-panel table {
  width: 100%;
}

.promotion-stats-panel {
  max-width: 980px;
}

.member-form-options .promotion-ratio-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  align-items: center;
  gap: 12px;
}

.member-form-options .promotion-ratio-row input {
  width: 100%;
}

.bar-chart {
  margin-top: 10px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bar-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.bar-chart-head strong {
  display: block;
  font-size: 16px;
}

.bar-chart-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.bar-chart-legend {
  display: flex;
  gap: 14px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.bar-chart-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 220px;
}

.bar-group {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.bar-stack {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 180px;
}

.bar {
  width: 18px;
  min-height: 8px;
  border-radius: 8px 8px 4px 4px;
  transition: height 0.2s ease;
}

.bar-label {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 960px) {
  .promotion-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rp-page[data-v-27b4af4b] {
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}
.rp-summary[data-v-27b4af4b] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.rp-summary article[data-v-27b4af4b] {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.rp-summary article.highlight[data-v-27b4af4b] {
  border-color: rgba(255, 221, 169, 0.28);
  background: linear-gradient(135deg, rgba(255, 244, 214, 0.12), rgba(116, 180, 215, 0.06));
}
.rp-summary span[data-v-27b4af4b] {
  display: block;
  color: rgba(239, 248, 255, 0.52);
  font-size: 11px;
}
.rp-summary strong[data-v-27b4af4b] {
  display: block;
  margin-top: 6px;
  color: #fff4d6;
  font-size: 18px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rp-summary small[data-v-27b4af4b] {
  display: block;
  margin-top: 4px;
  color: rgba(239, 248, 255, 0.45);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rp-badge[data-v-27b4af4b] {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  color: rgba(239, 248, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}
.rp-table-wrap[data-v-27b4af4b] {
  overflow: auto;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  scrollbar-width: thin;
  scrollbar-color: rgba(238, 184, 157, 0.65) rgba(255, 255, 255, 0.08);
}
.rp-table-wrap-full[data-v-27b4af4b] {
  width: 100%;
}
.rp-table[data-v-27b4af4b] {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}
.rp-table-full[data-v-27b4af4b] {
  width: 100%;
  min-width: 100%;
  table-layout: fixed;
}
.rp-table th[data-v-27b4af4b],
.rp-table td[data-v-27b4af4b] {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.35;
}
.rp-table thead th[data-v-27b4af4b] {
  position: sticky;
  top: 0;
  z-index: 2;
  color: rgba(239, 248, 255, 0.55);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  background: rgba(16, 24, 42, 0.96);
}
.rp-table .col-index[data-v-27b4af4b] {
  width: 42px;
  text-align: center;
  color: rgba(239, 248, 255, 0.45);
  font-variant-numeric: tabular-nums;
}
.rp-table .col-product[data-v-27b4af4b],
.rp-table .col-product-spec[data-v-27b4af4b],
.rp-table .col-instance[data-v-27b4af4b],
.rp-table .col-instance-spec[data-v-27b4af4b] {
  min-width: 220px;
  width: max-content;
}
.rp-table-full .col-index[data-v-27b4af4b] {
  width: 42px;
}
.rp-table-full .col-product[data-v-27b4af4b],
.rp-table-full .col-instance-spec[data-v-27b4af4b] {
  min-width: 0;
  width: auto;
}
.rp-table .col-num[data-v-27b4af4b] {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.rp-table .quota[data-v-27b4af4b] {
  color: #fff4d6;
  font-weight: 900;
}
.rp-table .muted[data-v-27b4af4b],
.rp-table .stack-cell small[data-v-27b4af4b] {
  color: rgba(239, 248, 255, 0.5);
}
.rp-table .stack-cell strong[data-v-27b4af4b] {
  display: block;
  color: #eef4ff;
}
.rp-table .stack-cell small[data-v-27b4af4b] {
  display: block;
  margin-top: 2px;
  font-size: 11px;
}
.rp-table .stack-cell-full strong[data-v-27b4af4b],
.rp-table .stack-cell-full small[data-v-27b4af4b] {
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.rp-table .stack-cell:not(.stack-cell-full) strong[data-v-27b4af4b] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rp-table .stack-cell:not(.stack-cell-full) small[data-v-27b4af4b] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rp-table .sticky-col[data-v-27b4af4b] {
  position: sticky;
  left: 0;
  z-index: 1;
  background: rgba(16, 24, 42, 0.98);
}
.rp-table .col-product[data-v-27b4af4b] {
  left: 42px;
}
.rp-table thead .sticky-col[data-v-27b4af4b] {
  z-index: 3;
}
.rp-table thead .col-index[data-v-27b4af4b] {
  left: 0;
}
.rp-table thead .col-product[data-v-27b4af4b] {
  left: 42px;
}
.status.compact[data-v-27b4af4b] {
  padding: 2px 6px;
  font-size: 11px;
  white-space: nowrap;
}
.rp-empty[data-v-27b4af4b] {
  padding: 32px 12px;
  color: rgba(239, 248, 255, 0.45);
  text-align: center;
}
@media (max-width: 1100px) {
.rp-summary[data-v-27b4af4b] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 700px) {
.rp-summary[data-v-27b4af4b] {
    grid-template-columns: 1fr;
}
}

.user-log-page[data-v-881fb4d1] {
  gap: 16px;
  margin-top: 16px;
}
.panel[data-v-881fb4d1]{
  margin-top: 0;
}
.user-log-stats[data-v-881fb4d1] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.user-log-stats article[data-v-881fb4d1] {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.user-log-stats article.highlight[data-v-881fb4d1] {
  border-color: rgba(255, 221, 169, 0.28);
  background: linear-gradient(135deg, rgba(255, 244, 214, 0.1), rgba(116, 180, 215, 0.05));
}
.user-log-stats span[data-v-881fb4d1] {
  display: block;
  color: rgba(239, 248, 255, 0.52);
  font-size: 11px;
  font-weight: 700;
}
.user-log-stats strong[data-v-881fb4d1] {
  display: block;
  margin-top: 6px;
  color: #fff4d6;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}
.user-log-stats small[data-v-881fb4d1] {
  display: block;
  margin-top: 4px;
  color: rgba(239, 248, 255, 0.45);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1100px) {
.user-log-stats[data-v-881fb4d1] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 700px) {
.user-log-stats[data-v-881fb4d1] {
    grid-template-columns: 1fr;
}
.user-log-stats small[data-v-881fb4d1] {
    white-space: normal;
}
}

.member-panel-head[data-v-9e9f4181] {
  align-items: flex-end;
  gap: 12px;
}
.member-filters[data-v-9e9f4181] {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.member-filter[data-v-9e9f4181] {
  display: grid;
  gap: 4px;
  margin-top: 0;
  min-width: 0;
}
.member-filter span[data-v-9e9f4181] {
  color: rgba(239, 248, 255, 0.52);
  font-size: 11px;
  font-weight: 800;
}
.member-filter select[data-v-9e9f4181],
.member-filter input[data-v-9e9f4181] {
  width: 140px;
  min-width: 0;
  margin-top: 0;
  padding: 7px 10px;
  font-size: 12px;
}
.member-filter-search input[data-v-9e9f4181] {
  width: 220px;
}
.member-panel[data-v-9e9f4181] {
  padding-top: 16px;
}
.member-panel-tools[data-v-9e9f4181] {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.member-view-tabs[data-v-9e9f4181] {
  margin-top: 0;
}
.member-empty[data-v-9e9f4181] {
  padding: 48px 16px;
  color: rgba(239, 248, 255, 0.45);
  text-align: center;
  font-size: 14px;
}

/* card */
.member-card-grid[data-v-9e9f4181] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}
.member-card[data-v-9e9f4181] {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}
.member-card-head[data-v-9e9f4181] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.member-card-title[data-v-9e9f4181] {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.member-card-idline[data-v-9e9f4181] {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.member-card-title strong[data-v-9e9f4181] {
  color: #f7fbff;
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-card-title small[data-v-9e9f4181] {
  color: rgba(239, 248, 255, 0.45);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-code[data-v-9e9f4181] {
  display: inline-flex;
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 5px;
  color: #fff4d6;
  font-size: 11px;
  font-weight: 900;
  background: rgba(255, 244, 214, 0.1);
}
.member-card-stats[data-v-9e9f4181] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.member-stat[data-v-9e9f4181] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  height: 40px;
  padding: 4px 6px;
  border-radius: 8px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
}
.member-stat-main[data-v-9e9f4181] {
  background: rgba(116, 180, 215, 0.12);
}
.member-stat span[data-v-9e9f4181] {
  color: rgba(239, 248, 255, 0.45);
  font-size: 10px;
  line-height: 1;
}
.member-stat strong[data-v-9e9f4181] {
  color: #eef4ff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-stat-main strong[data-v-9e9f4181] {
  color: #fff4d6;
}
.member-card-foot[data-v-9e9f4181] {
  display: grid;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.member-card-foot-meta[data-v-9e9f4181] {
  color: rgba(239, 248, 255, 0.45);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-card-actions[data-v-9e9f4181] {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  align-items: stretch;
}
.member-btn[data-v-9e9f4181] {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  width: auto;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 7px;
  box-sizing: border-box;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.member-btn.soft[data-v-9e9f4181] {
  color: #b9dcff;
  background: rgba(138, 180, 255, 0.12);
}
.member-btn.accent[data-v-9e9f4181] {
  color: #26233a;
  background: linear-gradient(135deg, #fff4d6, #eeb89d);
}
.member-btn.danger[data-v-9e9f4181] {
  color: #ff9f97;
  background: rgba(255, 107, 95, 0.12);
}

/* table */
.member-table-wrap[data-v-9e9f4181] {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  scrollbar-color: #f1c9ad rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}
.member-table[data-v-9e9f4181] {
  width: 100%;
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.member-table th[data-v-9e9f4181],
.member-table td[data-v-9e9f4181] {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.35;
}
.member-table thead th[data-v-9e9f4181] {
  position: sticky;
  top: 0;
  z-index: 2;
  color: rgba(239, 248, 255, 0.55);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  background: rgba(16, 24, 42, 0.96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.member-table .col-index[data-v-9e9f4181] {
  width: 42px;
  text-align: center;
  color: rgba(239, 248, 255, 0.45);
  font-variant-numeric: tabular-nums;
}
.member-table .col-customer[data-v-9e9f4181] { width: 124px;
}
.member-table .col-contact[data-v-9e9f4181] { width: 110px;
}
.member-table .col-plan[data-v-9e9f4181] { width: 120px;
}
.member-table .col-status[data-v-9e9f4181] { width: 72px;
}
.member-table .col-time[data-v-9e9f4181] { width: 88px;
}
.member-table .col-quota[data-v-9e9f4181] { width: 72px;
}
.member-table .col-gen[data-v-9e9f4181] { width: 64px;
}
.member-table .col-promo[data-v-9e9f4181] { width: 92px;
}
.member-table .col-commission[data-v-9e9f4181] { width: 48px;
}
.member-table .col-actions[data-v-9e9f4181] { width: 216px;
}
.member-table tbody tr:hover td[data-v-9e9f4181] {
  background: rgba(255, 255, 255, 0.025);
}
.member-table tbody tr:hover td.sticky-col[data-v-9e9f4181],
.member-table tbody tr:hover td.sticky-col-right[data-v-9e9f4181],
.member-table tbody tr:hover td.customer-cell[data-v-9e9f4181] {
  background: rgba(16, 24, 42, 0.98);
}
.member-table .col-num[data-v-9e9f4181] {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.member-table .quota[data-v-9e9f4181] {
  color: #fff4d6;
  font-weight: 900;
}
.member-table .muted[data-v-9e9f4181],
.member-table .muted-line[data-v-9e9f4181] {
  color: rgba(239, 248, 255, 0.5);
}
.member-table .customer-cell strong[data-v-9e9f4181],
.member-table .contact-cell strong[data-v-9e9f4181],
.member-table .plan-cell strong[data-v-9e9f4181],
.member-table .quota-cell strong[data-v-9e9f4181],
.member-table .gen-cell strong[data-v-9e9f4181] {
  display: block;
  color: #eef4ff;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-table .customer-cell .cell-sub[data-v-9e9f4181],
.member-table .contact-cell .cell-sub[data-v-9e9f4181],
.member-table .plan-cell .cell-sub[data-v-9e9f4181],
.member-table .quota-cell .cell-sub[data-v-9e9f4181],
.member-table .gen-cell .cell-sub[data-v-9e9f4181] {
  margin-top: 2px;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-table .status-cell .status[data-v-9e9f4181] {
  display: inline-flex;
}
.member-table .status-cell .status + .status[data-v-9e9f4181] {
  margin-top: 4px;
}
.member-table .col-time[data-v-9e9f4181] {
  white-space: nowrap;
}
.member-table .sticky-col[data-v-9e9f4181] {
  position: sticky;
  left: 0;
  z-index: 1;
  background: rgba(16, 24, 42, 0.98);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.06);
}
.member-table .col-customer[data-v-9e9f4181],
.member-table .customer-cell[data-v-9e9f4181] {
  left: 42px;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.06);
}
.member-table thead .col-index[data-v-9e9f4181] {
  left: 0;
}
.member-table thead .col-customer[data-v-9e9f4181],
.member-table thead .customer-cell[data-v-9e9f4181] {
  left: 42px;
}
.member-table thead .sticky-col[data-v-9e9f4181] {
  z-index: 3;
}
.member-table .sticky-col-right[data-v-9e9f4181] {
  position: sticky;
  right: 0;
  z-index: 1;
  background: rgba(16, 24, 42, 0.98);
  box-shadow: -1px 0 0 rgba(255, 255, 255, 0.06);
}
.member-table thead .sticky-col-right[data-v-9e9f4181] {
  z-index: 3;
}
.member-table .col-actions[data-v-9e9f4181] {
  min-width: 216px;
  text-align: right;
}
.member-table .col-promo[data-v-9e9f4181] {
  overflow: hidden;
}
.member-table .col-promo .status[data-v-9e9f4181] {
  display: inline-flex;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-table .col-commission[data-v-9e9f4181] {
  text-align: center;
  white-space: nowrap;
}
.member-row-actions[data-v-9e9f4181] {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  align-items: center;
  justify-content: flex-end;
}
.member-row-actions .link[data-v-9e9f4181] {
  padding: 2px 0;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.status.compact[data-v-9e9f4181] {
  padding: 2px 6px;
  font-size: 11px;
  white-space: nowrap;
}

/* pagination */
.member-pagination[data-v-9e9f4181] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(239, 248, 255, 0.62);
  font-size: 13px;
}
.member-pagination-actions[data-v-9e9f4181] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.member-page-size[data-v-9e9f4181] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.member-page-size span[data-v-9e9f4181] {
  color: rgba(239, 248, 255, 0.52);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.member-page-size select[data-v-9e9f4181] {
  width: 72px;
  min-width: 72px;
  margin: 0;
  padding: 6px 8px;
  font-size: 12px;
}
.member-pagination-btns[data-v-9e9f4181] {
  display: flex;
  gap: 8px;
}
.member-page-btn[data-v-9e9f4181] {
  min-width: 72px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #b9dcff;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.member-page-btn[data-v-9e9f4181]:disabled {
  color: rgba(239, 248, 255, 0.28);
  cursor: not-allowed;
}
@media (max-width: 900px) {
.member-panel-head[data-v-9e9f4181] {
    flex-direction: column;
    align-items: stretch;
}
.member-filter select[data-v-9e9f4181],
  .member-filter input[data-v-9e9f4181],
  .member-filter-search input[data-v-9e9f4181] {
    width: 100%;
}
.member-card-stats[data-v-9e9f4181] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.member-card-foot-meta[data-v-9e9f4181] {
    white-space: normal;
}
}
