* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; background: #0d1016; color: #e8edf4; }
.bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: #141925; border-bottom: 1px solid #232c3d; }
.title { display: flex; flex-direction: column; line-height: 1.3; }
.title strong { font-size: 16px; }
.title span { font-size: 11.5px; color: #8b97a8; }
.dot { font-size: 12.5px; padding: 4px 12px; border-radius: 20px; border: 1px solid #2c3850; color: #c4cee0; }
.dot.ok { color: #6ee7a8; border-color: #2a5a42; background: rgba(40,90,66,.2); }
.dot.off { color: #f4a542; border-color: #5a4424; background: rgba(90,68,36,.2); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; max-width: 1100px; margin: 0 auto; }
.card { background: #141925; border: 1px solid #232c3d; border-radius: 12px; padding: 16px; }
.card.wide { grid-column: 1 / -1; }
.card h2 { margin: 0 0 12px; font-size: 14px; color: #9fb0c8; }

dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
dt { color: #8b97a8; } dd { margin: 0; }

.row { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.row.gap { justify-content: flex-start; gap: 16px; }
.row label { font-size: 12.5px; color: #c4cee0; }
input[type="text"], input[type="password"], textarea {
  background: #0f141d; color: #e8edf4; border: 1px solid #2c3850; border-radius: 8px; padding: 8px 10px; font-size: 13px; font-family: inherit;
}
.row input[type="text"], .row input[type="password"] { flex: 1; min-width: 140px; }
textarea { width: 100%; resize: vertical; line-height: 1.6; }
.ck { display: inline-flex; align-items: center; gap: 6px; }
button { background: #3b6ef0; color: #fff; border: none; padding: 8px 18px; border-radius: 8px; cursor: pointer; font-size: 13px; }
button.ghost { background: #1d2536; color: #c4cee0; border: 1px solid #2c3850; }
button:hover { filter: brightness(1.1); }
.muted { font-size: 11.5px; color: #6b7686; }
.hint { margin: 12px 0 0; font-size: 11.5px; color: #6b7686; line-height: 1.6; }

.totals { font-size: 13px; color: #c4cee0; margin-bottom: 10px; }
.usage { width: 100%; border-collapse: collapse; font-size: 12px; }
.usage th, .usage td { text-align: left; padding: 5px 8px; border-bottom: 1px solid #1d2433; }
.usage th { color: #7f8ca0; font-weight: 500; }
.usage .err { color: #f4a542; }
.usage .ok { color: #6ee7a8; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #9fb0c8; }
.form input { width: 100%; }
.form .inline { display: flex; gap: 8px; }
.form .inline input { width: 50%; }
.row label.grow { flex: 1; display: flex; align-items: center; gap: 8px; }
.row label.grow input { flex: 1; }
button.small { font-size: 11px; padding: 3px 10px; margin-left: 8px; }
code { background: #0f141d; border: 1px solid #2c3850; border-radius: 4px; padding: 1px 5px; font-size: 11.5px; }
input:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 760px) { .form { grid-template-columns: 1fr; } }
.out { margin-top: 12px; background: #0f141d; border: 1px solid #2c3850; border-radius: 8px; padding: 12px; font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; min-height: 60px; max-height: 360px; overflow: auto; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }

/* 登录 chip 在本页下移，避开顶部状态胶囊 */
.au-chip { top: 60px !important; right: 18px !important; }
