:root {
  color-scheme: light;
  --canvas: #f7f6fb;
  --surface: #fff;
  --surface-soft: #fbf9ff;
  --surface-accent: #f3edff;
  --ink: #241c34;
  --secondary: #484052;
  --muted: #655d73;
  --border: #e7e1ef;
  --border-strong: #d7cce4;
  --accent: #6342bf;
  --accent-hover: #5132a6;
  --accent-outline: #a88bdd;
  --danger: #9d263b;
  --positive: #176543;
  --radius: 15px;
  --layout-width: 1024px;
  --font: Inter, "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: var(--layout-width);
  color: var(--ink);
  background: var(--canvas);
  font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--accent-hover); }
h2, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface);
}

.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header-inner, .main { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 28px; }
.site-header-inner { display: flex; min-height: 66px; justify-content: space-between; align-items: center; gap: 12px; padding-block: 9px; }
.customer-support { color: var(--muted); font-size: 13px; white-space: nowrap; }
.top-nav { display: flex; align-items: center; gap: 6px; }
.top-nav-link { padding: 9px 12px; border-radius: 8px; color: var(--secondary); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.top-nav-link:hover { color: var(--accent-hover); background: var(--surface-soft); }
.top-nav-link.active { color: var(--accent-hover); background: var(--surface-accent); }
.top-nav-link.disabled { color: #a7a2af; background: transparent; cursor: not-allowed; user-select: none; }
.product-page { min-height: 420px; }
.main { height: calc(100dvh - 67px); padding-block: 16px 58px; }
#page-sms { display: flex; height: 100%; min-height: 0; flex-direction: column; gap: 12px; }

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 15px; font-weight: 720; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand strong { color: var(--accent); }
.brand-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding-bottom: 8px;
  border-radius: 9px;
  background: var(--accent);
}
.brand-mark i { width: 3px; height: 7px; border-radius: 1px; background: #fff; }
.brand-mark i:nth-child(2) { height: 11px; }
.brand-mark i:nth-child(3) { height: 15px; }


.button, .copy-button, .cancel-button, .replace-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.button-primary { color: #fff; background: var(--accent); }
.button-primary:not(:disabled):hover { background: var(--accent-hover); }
.button-secondary, .copy-button { border-color: var(--border-strong); color: var(--secondary); background: var(--surface); }
.button-secondary:not(:disabled):hover, .copy-button:not(:disabled):hover { border-color: var(--accent-outline); color: var(--accent-hover); }
.button:disabled, .copy-button:disabled, .cancel-button:disabled, .replace-button:disabled { border-color: var(--border); color: #675e73; background: #ede9f2; }

.notice { margin-bottom: 16px; padding: 11px 14px; border: 1px solid; border-radius: 11px; font-size: 13px; overflow-wrap: anywhere; }
.notice-error { border-color: #eed0d7; color: #861c32; background: #fff2f5; }

.overview-grid { display: grid; flex-shrink: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
.stats-grid { display: grid; gap: 8px; }
.stats-panel { display: grid; align-content: start; gap: 10px; }
.stat-card { min-width: 0; }
.stat-primary { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 5px 12px; }
.quota-actions { display: flex; gap: 8px; margin-left: auto; }
#recharge-feedback { grid-column: 1 / -1; justify-self: start; }
.stat-summary { display: grid; gap: 9px; padding-top: 4px; }
.stat-metrics { display: grid; flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.stat-metric { display: flex; min-width: 0; align-items: baseline; gap: 9px; }
.stat-metric + .stat-metric { padding-left: 16px; border-left: 1px solid var(--border); }
.stat-metric dt { color: var(--muted); font-size: 12px; white-space: nowrap; }
.stat-metric dd { margin: 0; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-label { display: flex; min-height: 28px; align-items: center; color: var(--muted); font-size: 12px; }
.text-button {
  min-height: 28px;
  padding: 2px 7px;
  border: 1px solid #d5c4f4;
  border-radius: 7px;
  color: var(--accent-hover);
  background: var(--surface);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.text-button:not(:disabled):hover { border-color: var(--accent-outline); background: #faf7ff; }
.text-button:disabled { opacity: .65; }
.text-button.cdk-purchase { display: inline-flex; align-items: center; border-color: #c2410c; color: #fff; background: #c2410c; text-decoration: none; }
.text-button.cdk-purchase:hover { border-color: #9a3412; background: #9a3412; }
.text-button.cdk-purchase:active { border-color: #7c2d12; background: #7c2d12; }
.text-button.cdk-purchase:focus-visible { outline-color: #c2410c; }
.stat-value { display: block; margin-top: 4px; font-size: 24px; font-variant-numeric: tabular-nums; font-weight: 720; letter-spacing: -.025em; line-height: 1.15; overflow-wrap: anywhere; }
.stat-primary .stat-value { margin-top: 0; color: var(--accent-hover); }

.panel { min-width: 0; padding: 19px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px #21153109; }
.stats-panel, .usage-panel, .history-panel { padding: 16px; }
.history-panel { display: flex; min-height: 230px; flex: 1; flex-direction: column; }
.history-panel > .panel-heading, .history-panel > .order-pagination { flex-shrink: 0; }
.history-panel > .order-pagination { margin-top: 10px; }
.panel h2, .recharge-dialog h2 { font-size: 17px; font-weight: 730; line-height: 1.35; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.number-panel { display: grid; gap: 9px; padding-top: 10px; border-top: 1px solid var(--border); }
.usage-panel .order-notes { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.order-hint, .redeem-note { margin-top: 5px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.order-hint.error, .form-error { color: var(--danger); }
.order-button { min-width: 100px; min-height: 36px; align-self: center; justify-self: start; font-size: 13px; }
.order-request-controls { display: flex; flex-wrap: wrap; align-items: center; align-self: center; gap: 10px; }
.reception-results { min-width: 0; padding: 2px 12px; border: 1px solid #ded3f1; border-radius: 10px; background: #faf8ff; }
.allocated-phone-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; min-height: 46px; align-items: center; column-gap: 9px; }
.allocated-code-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); min-height: 46px; align-items: center; column-gap: 9px; border-top: 1px solid var(--border); }
.allocated-label { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.allocated-phone { min-width: 0; color: var(--ink); font: 700 26px/1.2 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.045em; white-space: nowrap; }
.allocated-code { min-width: 0; color: var(--accent-hover); font: 750 30px/1.2 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .08em; overflow-wrap: anywhere; }
.allocated-phone-row .copy-button { min-height: 30px; padding-inline: 8px; border-color: #d2c2ee; color: var(--accent-hover); background: var(--surface); }
.allocated-phone-row .copy-button:disabled { border-color: var(--border); color: #80778e; background: #f0ecf7; }
.allocated-phone-row .copy-feedback { grid-column: 2 / -1; justify-self: start; margin-bottom: 5px; }
.active-order-controls { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.active-order-controls .order-controls { flex-wrap: wrap; }
.active-order-controls .order-action-feedback { max-width: 100%; }
.usage-steps { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 22px; color: var(--secondary); font-size: 13px; line-height: 1.7; }
.usage-steps li { padding-left: 4px; }
.usage-steps li::marker { color: var(--accent); font-weight: 650; }
.maintenance-notice { color: var(--danger); font-size: 13px; font-weight: 650; white-space: nowrap; }
.inline-feedback {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  font: 650 12px/1.4 var(--font);
  overflow-wrap: anywhere;
}
.feedback-success { border-color: #cce8d8; color: var(--positive); background: #e9f7ef; }
.feedback-error { border-color: #f0ccd3; color: var(--danger); background: #fff1f3; }
.feedback-info { border-color: var(--border-strong); color: var(--accent-hover); background: var(--surface-accent); }
#request-feedback { justify-self: start; }

.recharge-dialog {
  width: 432px;
  max-width: none;
  max-height: none;
  padding: 19px;
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 13px 42px #241c3433;
}
.recharge-dialog::backdrop { background: #241c3473; }
.recharge-close { min-height: 33px; padding-inline: 8px; }
.redeem-form { margin-top: 13px; }
.redeem-label { display: block; margin-bottom: 5px; color: var(--secondary); font-size: 13px; font-weight: 650; }
.redeem-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.redeem-controls input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 16px;
}
.redeem-controls input::placeholder { color: var(--muted); }
.redeem-controls input[aria-invalid="true"] { border-color: #c9586a; }
.form-error { margin-top: 6px; font-size: 12px; overflow-wrap: anywhere; }
.form-error:empty { display: none; }
.recharge-details-dialog { width: 720px; }
.recharge-details-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 15px; }
.recharge-details-summary { margin: 0; color: var(--muted); font-size: 13px; }
.recharge-details-status { min-height: 20px; margin-block: 5px; color: var(--muted); font-size: 12px; }
.recharge-details-status.error { color: var(--danger); }
.recharge-details-scroll { height: 340px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; }
.recharge-details-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.recharge-details-table th, .recharge-details-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.recharge-details-table th { position: sticky; top: 0; color: var(--muted); background: var(--surface-soft); font-weight: 650; }
.recharge-details-table th:nth-child(2) { width: 96px; }
.recharge-details-table th:last-child { width: 164px; }
.recharge-details-table .code-text { font: 12px/1.6 var(--mono); overflow-wrap: anywhere; }
.recharge-details-table .recharge-uses { color: var(--accent-hover); font-weight: 700; }
.recharge-details-table .empty-state { padding-top: 30px; border-bottom: 0; text-align: center; }
.recharge-details-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.recharge-details-pagination .button { min-height: 32px; font-size: 12px; }

.history-table {
  display: flex;
  min-height: 120px;
  flex: 1;
  flex-direction: column;
  margin-top: 10px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.order-head, .order-row {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
}
.order-head { position: sticky; z-index: 1; top: 0; flex-shrink: 0; border-bottom: 1px solid var(--border); color: var(--muted); background: var(--surface-soft); font-size: 12px; font-weight: 650; }
.order-list { min-width: 0; flex: 1 0 auto; }
.order-list:has(> .empty-state) { display: grid; place-items: center; }
.order-row { border-bottom: 1px solid var(--border); }
.order-row:last-child { border-bottom: 0; }
.order-row > * { min-width: 0; overflow-wrap: anywhere; }
.order-time, .order-usage { color: var(--secondary); font-size: 13px; }
.order-id { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--secondary); font: 12px/1.55 var(--mono); }
.order-id > span[title] { display: block; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.order-id .copy-button { flex-shrink: 0; font-family: var(--font); }
.order-time time, .recharge-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-phone, .order-sms { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; }
.order-phone > *, .order-sms > * { min-width: 0; }
.order-row .copy-feedback { flex-basis: 100%; }
.phone-number, .sms-code { font: 700 14px/1.35 var(--mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sms-code { color: var(--accent-hover); letter-spacing: .035em; }
.sms-placeholder { color: var(--muted); font-size: 12px; }
.sms-text { flex-basis: 100%; color: var(--muted); font-size: 12px; white-space: pre-wrap; }
.order-state { display: grid; justify-items: start; gap: 3px; }
.status-badge { display: inline-flex; min-height: 23px; align-items: center; gap: 5px; padding: 2px 7px; border: 1px solid var(--border); border-radius: 999px; color: var(--secondary); background: var(--surface-soft); font-size: 11px; font-weight: 650; white-space: nowrap; }
.is-loading::before { content: ''; display: inline-block; flex-shrink: 0; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: waiting-spin .8s linear infinite; }
@keyframes waiting-spin { to { transform: rotate(360deg); } }
.status-badge.waiting { border-color: #eadbbb; color: #744719; background: #fff3de; }
.status-badge.completed { border-color: #cce8d8; color: var(--positive); background: #e9f7ef; }
.status-badge.expired, .status-badge.cancelled, .status-badge.failed { border-color: #f0ccd3; color: #9a2238; background: #fff1f3; }
.countdown, .retry-note { min-width: 0; color: var(--muted); font-size: 12px; }
.countdown:empty { display: none; }
.countdown[data-status="WAITING_SMS"] { color: #754d1b; }
.copy-button, .cancel-button, .replace-button { min-height: 29px; padding: 2px 6px; font-size: 12px; }
.order-controls { display: flex; align-items: center; gap: 6px; }
.replace-button { border-color: var(--accent-outline); color: var(--accent-hover); background: var(--surface); }
.replace-button:not(:disabled):hover { background: var(--surface-accent); }
.cancel-button { border-color: #eac9d0; color: var(--danger); background: var(--surface); }
.cancel-button:not(:disabled):hover { border-color: #d398a3; background: #fff5f7; }
.empty-state { padding: 21px 10px; color: var(--muted); font-size: 13px; text-align: center; }
.order-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.pagination-summary, .page-info { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.pagination-actions { display: flex; align-items: center; gap: 12px; }
.pagination-actions .button { min-height: 32px; padding-inline: 10px; font-size: 12px; }
.page-info { min-width: 76px; text-align: center; }
.service-intro { flex-shrink: 0; padding: 0 4px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.service-intro h2 { margin-bottom: 4px; color: var(--secondary); font-size: 14px; font-weight: 650; }
.service-intro p + p { margin-top: 3px; }
.service-intro a { text-underline-offset: 3px; }
.service-intro strong { color: var(--secondary); font-weight: 600; }
.copyright {
  position: fixed;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  min-width: var(--layout-width);
  padding: 14px 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: var(--canvas);
  font-size: 12px;
  text-align: center;
}

.toast-region { position: fixed; z-index: 20; right: 20px; bottom: 68px; display: grid; width: 370px; gap: 7px; pointer-events: none; }
.toast { min-width: 150px; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 9px; color: var(--ink); background: var(--surface); box-shadow: 0 6px 22px #221b3a1c; overflow-wrap: anywhere; }
.toast.success { border-color: #c2dfd0; color: var(--positive); }
.toast.error { border-color: #ecc5ce; color: var(--danger); }

.admin-page { min-height: 100vh; }
.admin-container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 28px;
}
.admin-header-inner {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.admin-brand { margin: 0; }
.admin-brand-label { margin-left: 6px; color: var(--secondary); font-weight: 650; }
.admin-back { color: var(--accent-hover); font-size: 13px; font-weight: 650; text-decoration: none; }
.admin-back:hover { text-decoration: underline; }
.admin-header-actions { display: flex; align-items: center; gap: 20px; }
.admin-login-panel { width: 400px; margin: 100px auto 40px; padding: 30px; }
.admin-login-panel h2 { margin-bottom: 24px; }
#admin-login-form { display: grid; gap: 18px; }
#admin-login-form .admin-error { margin: 0; }
#admin-login-button { width: 100%; min-height: 40px; margin-top: 4px; }
.admin-main { padding-block: 24px 32px; }
.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 17px 22px;
}
.admin-summary > div + div { padding-left: 20px; border-left: 1px solid var(--border); }
.admin-summary dt { color: var(--muted); font-size: 13px; }
.admin-summary dd { margin: 1px 0 0; font-size: 25px; font-weight: 720; font-variant-numeric: tabular-nums; }
.admin-workspace { margin-top: 16px; padding: 0; }
.admin-tabs { display: flex; gap: 4px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.admin-tabs button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  padding: 11px 14px 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--secondary);
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.admin-tabs button:hover { color: var(--accent-hover); background: var(--surface-soft); }
.admin-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--accent-hover); }
.admin-panel { padding: 20px 22px; }
.maintenance-form { display: grid; width: 520px; gap: 18px; }
.maintenance-option { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-soft); }
.maintenance-option span { color: var(--secondary); font-weight: 650; }
.maintenance-option input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.maintenance-form .button { justify-self: start; }
.maintenance-save-status { color: var(--positive); font-size: 13px; }
.admin-panel .admin-note { margin-top: 9px; color: var(--muted); font-size: 13px; }
.admin-error { margin-top: 11px; color: var(--danger); font-size: 13px; overflow-wrap: anywhere; }
.admin-error:empty { display: none; }
.admin-page #generate-form, .admin-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.admin-page #generate-form .admin-field { width: 158px; }
.admin-filter .admin-field:first-child { width: 146px; }
.admin-filter .admin-field:nth-child(2) { width: 312px; }
.admin-field {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 650;
}
.admin-field input, .admin-field select, .admin-page #generated-codes {
  width: 100%;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface-soft);
}
.admin-field input, .admin-field select {
  min-height: 38px;
  font: 14px/1.5 var(--font);
  font-variant-numeric: tabular-nums;
}
.admin-page #generate-error { flex-basis: 100%; margin-top: 0; }
.admin-page #generated-result { margin-top: 19px; padding-top: 17px; border-top: 1px solid var(--border); }
.admin-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-page #generated-codes {
  display: block;
  margin-top: 9px;
  resize: vertical;
  font: 13px/1.6 var(--mono);
  overflow-wrap: anywhere;
}
.admin-table-scroll {
  height: 395px;
  margin-top: 13px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.admin-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.admin-table th, .admin-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.admin-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  color: var(--muted);
  background: var(--surface-soft);
  font-weight: 680;
  white-space: nowrap;
}
.admin-table td { height: 47px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: var(--surface-soft); }
.admin-table .admin-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.admin-table :is(.empty-state, .admin-empty) { padding: 25px 10px; color: var(--muted); text-align: center; }
.admin-table .admin-cell-text { display: block; width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.admin-table .admin-mono { font-family: var(--mono); }
.admin-table .admin-card-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.admin-cards-table th:nth-child(1) { width: 24%; }
.admin-cards-table th:nth-child(2) { width: 7%; }
.admin-cards-table th:nth-child(3) { width: 8%; }
.admin-cards-table th:nth-child(4) { width: 9%; }
.admin-cards-table th:nth-child(5), .admin-cards-table th:nth-child(6) { width: 16%; }
.admin-cards-table th:nth-child(7), .admin-cards-table th:nth-child(8) { width: 10%; }
.admin-orders-table { min-width: 1640px; }
.admin-orders-table th:nth-child(1), .admin-orders-table th:nth-child(4) { width: 7.5%; }
.admin-orders-table th:nth-child(2) { width: 5.5%; }
.admin-orders-table th:nth-child(3) { width: 5.2%; }
.admin-orders-table th:nth-child(5) { width: 6.3%; }
.admin-orders-table th:nth-child(6), .admin-orders-table th:nth-child(7) { width: 8%; }
.admin-orders-table th:nth-child(8) { width: 4.8%; }
.admin-orders-table th:nth-child(9) { width: 9%; }
.admin-orders-table th:nth-child(10) { width: 7%; }
.admin-orders-table th:nth-child(n+11) { width: 10.4%; }
.admin-table .admin-action { min-height: 28px; margin: 2px 0; padding: 2px 6px; font-size: 11px; white-space: nowrap; }
.admin-status {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--secondary);
  background: var(--surface-soft);
  font-weight: 650;
  white-space: nowrap;
}
.admin-status-unused { border-color: #ded3f3; color: var(--accent-hover); background: var(--surface-accent); }
.admin-status-active, .admin-status-waiting, .admin-status-unknown { border-color: #eadbbb; color: #744719; background: #fff3de; }
.admin-status-used, .admin-status-completed { border-color: #cce8d8; color: var(--positive); background: #e9f7ef; }
.admin-status-cancelled, .admin-status-expired, .admin-status-failed { border-color: #f0ccd3; color: var(--danger); background: #fff1f3; }
.admin-page .toast-region { bottom: 20px; }
.admin-table .admin-resolution-note { display: block; overflow: hidden; color: var(--muted); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.admin-order-actions { display: flex; flex-wrap: wrap; gap: 3px 5px; margin-top: 5px; }
.admin-table .admin-order-actions .admin-action { margin: 0; }
