:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #1c302e;
  background: #f3f6f6;
  font-size: 16px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
[hidden] {
  display: none !important;
}
.topbar {
  height: 88px;
  background: #fff;
  border-bottom: 1px solid #e2e9e7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 24px);
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #087b6c;
  color: white;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 500;
}
.brand small {
  display: block;
  color: #748480;
  font-size: 12px;
  font-weight: 400;
  margin-top: 3px;
  letter-spacing: 1px;
}
.topbar nav {
  display: flex;
  gap: 36px;
  font-size: 15px;
}
.topbar nav a:hover,
.quiet-link:hover {
  color: #087b6c;
}
.quiet-link {
  font-size: 14px;
  color: #6b7b77;
}
.workspace {
  max-width: 1180px;
  margin: auto;
  padding: 42px 28px 20px;
}
.intro {
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #70847e;
}
.intro .eyebrow {
  color: #087b6c;
}
.intro h1 {
  font-size: 34px;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 12px 0;
}
.intro p {
  font-size: 15px;
  line-height: 1.7;
  color: #687b75;
  margin: 0;
}
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 24px;
  align-items: start;
}
.card {
  background: white;
  border: 1px solid #e1e8e5;
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px #16372c03;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
h2 {
  font-size: 21px;
  margin: 8px 0 0;
  font-weight: 650;
}
h3 {
  font-size: 17px;
  margin: 0;
  font-weight: 650;
}
.small-label {
  border: 1px solid #e2e9e5;
  border-radius: 6px;
  font-size: 12px;
  padding: 5px 9px;
  color: #72827c;
  white-space: nowrap;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.service-option {
  background: #fff;
  border: 1px solid #e0e7e3;
  border-radius: 12px;
  text-align: left;
  padding: 17px;
  position: relative;
  color: #314a43;
}
.service-option strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}
.service-option span {
  font-size: 13px;
  color: #75867f;
}
.service-option[aria-pressed="true"] {
  border-color: #087b6c;
  background: #eff8f5;
  box-shadow: inset 0 0 0 1px #087b6c;
}
.service-option[aria-pressed="true"]:after {
  content: "✓";
  position: absolute;
  right: 14px;
  top: 14px;
  font-size: 14px;
  color: #087b6c;
}
.service-option:hover {
  border-color: #77afa1;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.input-group {
  display: flex;
  gap: 10px;
}
input,
select,
textarea {
  padding: 13px 14px;
  border: 1px solid #d9e2dd;
  border-radius: 9px;
  background: #fff;
  min-width: 0;
  outline: none;
}
input:focus,
textarea:focus {
  border-color: #087b6c;
  box-shadow: 0 0 0 3px #087b6c15;
}
input {
  width: 100%;
  letter-spacing: 0.4px;
}
input::placeholder {
  font-size: 14px;
  color: #98a59f;
}
.primary {
  background: #087b6c;
  border: 1px solid #087b6c;
  color: #fff;
  border-radius: 9px;
  padding: 13px 22px;
  white-space: nowrap;
  font-weight: 600;
}
.primary:hover {
  background: #086455;
}
.secondary {
  background: #fff;
  border: 1px solid #dce5e0;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  color: #50685e;
}
.secondary:hover {
  background: #f4f8f6;
}
.input-hint {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #8a9991;
  margin-top: 12px;
  line-height: 1.6;
}
.input-hint span:last-child {
  color: #087b6c;
  white-space: nowrap;
}
.query-notice {
  margin-top: 26px;
  border-top: 1px solid #edf1ee;
  padding-top: 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.query-notice p {
  font-size: 13px;
  line-height: 1.8;
  color: #829188;
  margin: 0;
}
.notice-mark {
  margin-top: 3px;
  font-size: 12px;
  border: 1px solid #98aaa0;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.balance-card {
  background: #087b6c;
  border-radius: 18px;
  padding: 26px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.balance-card:after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid #ffffff15;
  border-radius: 50%;
  right: -80px;
  top: -38px;
  pointer-events: none;
}
.balance-card .eyebrow {
  color: #b2dcd1;
}
.balance-caption {
  font-size: 14px;
  margin: 25px 0 9px;
  color: #d1e9e2;
}
.balance-amount {
  font-size: 38px;
  letter-spacing: -1px;
  font-weight: 600;
}
.balance-footnote {
  font-size: 12px;
  color: #bbddd2;
  margin: 12px 0 20px;
  min-height: 18px;
}
.light-button {
  display: block;
  text-align: center;
  padding: 11px;
  background: #fff;
  border-radius: 8px;
  color: #087b6c;
  font-size: 14px;
  font-weight: 650;
}
.balance-divider {
  height: 1px;
  background: #ffffff25;
  margin: 24px 0 18px;
}
.balance-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #c1e0d6;
}
.balance-meta strong {
  font-weight: 500;
  color: #fff;
}
.help-card {
  padding: 24px;
}
.help-card ol {
  padding-left: 20px;
  margin: 18px 0;
  line-height: 2.1;
  font-size: 14px;
  color: #60776c;
}
.help-card p {
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
  color: #83948a;
}
.orders {
  min-height: 110px;
}
.empty-state {
  padding: 30px 10px;
  color: #8c9c93;
  text-align: center;
  font-size: 14px;
}
.order-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid #edf1ee;
  font-size: 14px;
}
.order-row strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.order-row small {
  display: block;
  font-size: 12px;
  color: #93a197;
  margin-top: 6px;
}
.mono {
  font-family: ui-monospace, Consolas, monospace;
}
.badge {
  border-radius: 5px;
  background: #eef6f2;
  color: #087b6c;
  padding: 5px 9px;
  font-size: 12px;
  white-space: nowrap;
}
.badge.pending {
  color: #91611f;
  background: #fcf4e5;
}
.badge.failed {
  color: #a44b4b;
  background: #fcf0ef;
}
.recharge-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.recharge-options {
  display: flex;
  gap: 12px;
}
.recharge-options button {
  background: #fff;
  border: 1px solid #dce5df;
  border-radius: 10px;
  padding: 18px 23px;
  color: #2c4b3d;
  font-weight: 650;
  font-size: 20px;
}
.recharge-options button:hover {
  background: #eff8f3;
  border-color: #087b6c;
}
.muted {
  color: #809187;
  font-size: 13px;
  line-height: 1.8;
}
.report {
  border-top: 1px solid #e4ece6;
  margin-top: 25px;
  padding-top: 24px;
}
.report .section-title {
  margin-bottom: 12px;
}
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.report-field {
  padding: 12px 0;
  border-bottom: 1px solid #edf1ed;
}
.report-field dt {
  font-size: 12px;
  color: #83958a;
  margin-bottom: 6px;
}
.report-field dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}
.report-text {
  font-family: inherit;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.9;
  word-break: break-word;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #9aa79f;
  font-size: 12px;
  padding: 10px 0 20px;
}
.environment {
  text-align: center;
  background: #fff4d7;
  color: #855f11;
  font-size: 13px;
  padding: 10px 20px;
  line-height: 1.6;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #173a30;
  color: #fff;
  padding: 13px 22px;
  border-radius: 10px;
  box-shadow: 0 5px 24px #0002;
  z-index: 100;
  max-width: 92vw;
  font-size: 14px;
  line-height: 1.6;
}
.admin-workspace {
  max-width: 1240px;
}
.admin-login {
  max-width: 420px;
  margin: 50px auto;
}
.admin-login .primary {
  width: 100%;
  margin-top: 16px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.admin-status {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid #e8efea;
  white-space: nowrap;
}
th {
  font-size: 12px;
  font-weight: 600;
  color: #83958a;
}
td input {
  width: 90px;
  padding: 8px;
  font-size: 14px;
}
.admin-form {
  display: grid;
  gap: 12px;
}
.admin-form label {
  margin-bottom: 0;
}
.admin-form textarea {
  width: 100%;
  min-height: 80px;
}
.admin-form select {
  width: 100%;
}
@media (max-width: 900px) {
  .topbar {
    padding: 0 22px;
  }
  .topbar nav {
    gap: 18px;
  }
  .main-grid {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 18px;
  }
  .card {
    padding: 22px;
  }
  .recharge-card {
    display: block;
  }
  .recharge-options {
    margin-top: 20px;
  }
  .recharge-options button {
    flex: 1;
  }
  .order-row {
    gap: 10px;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .topbar {
    height: 74px;
    padding: 0 18px;
  }
  .topbar nav {
    display: none;
  }
  .brand {
    font-size: 18px;
  }
  .brand-icon {
    width: 38px;
    height: 38px;
  }
  .workspace {
    padding: 28px 16px 16px;
  }
  .intro h1 {
    font-size: 28px;
  }
  .intro p {
    font-size: 14px;
  }
  .main-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .query-card {
    width: 100%;
    order: 1;
  }
  .sidebar {
    width: 100%;
    order: 0;
  }
  .balance-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  .balance-caption {
    margin: 15px 0 5px;
  }
  .balance-amount {
    font-size: 32px;
  }
  .balance-footnote {
    margin: 8px 0 14px;
  }
  .balance-divider,
  .balance-meta,
  .help-card {
    display: none;
  }
  .light-button {
    position: absolute;
    right: 20px;
    top: 65px;
    min-width: 100px;
  }
  .card {
    padding: 21px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
  }
  .section-title {
    margin-bottom: 20px;
  }
  h2 {
    font-size: 19px;
  }
  .service-option {
    padding: 15px 13px;
  }
  .service-option strong {
    font-size: 15px;
  }
  .input-group {
    flex-direction: column;
  }
  .input-group .primary {
    width: 100%;
  }
  .input-hint {
    font-size: 12px;
    flex-direction: column;
    gap: 4px;
  }
  .order-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .order-row .mono {
    grid-row: 2;
  }
  .order-row .secondary {
    grid-row: 2;
    grid-column: 2;
  }
  .recharge-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .recharge-options button {
    font-size: 19px;
    padding: 14px;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  footer {
    display: block;
    line-height: 1.9;
  }
  footer span {
    display: block;
  }
  .admin-status {
    gap: 8px;
  }
  .environment {
    font-size: 12px;
  }
}
