:root {
  color-scheme: dark;
  font: 15px/1.6 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --background: #081322;
  --card: #102239;
  --line: #28405c;
  --text: #f0f6fd;
  --muted: #a5b9d1;
  --accent: #70d5fb;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(ellipse at 25% 0%, #123252, var(--background) 56%); }
a { color: var(--accent); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px max(20px, calc((100vw - 1160px)/2)); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 19px; font-weight: 720; text-decoration: none; color: var(--text); white-space: nowrap; }
.brand small { border-left: 1px solid var(--line); padding-left: 10px; font-weight: 500; color: var(--muted); font-size: 13px; }
.brand-mark { width: 13px; height: 13px; border: 2px solid var(--accent); transform: rotate(45deg); border-radius: 3px; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 54px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: .02em; overflow-wrap: anywhere; }
h2 { font-size: 19px; margin-bottom: 10px; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.heading p, .muted, small, dt { color: var(--muted); }
.auth { display: grid; grid-template-columns: 1fr minmax(300px, 420px); gap: clamp(28px, 8vw, 110px); align-items: center; min-height: 67vh; }
.auth-intro p { color: var(--muted); }
.price { margin: 24px 0 8px; color: var(--accent); font-size: 38px; font-weight: 760; }
.price span { font-size: 16px; font-weight: 540; }
.card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg,#142b45,var(--card) 62%); }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; color: var(--muted); }
.form.inline { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
td .form.inline { margin: 0; }
input, button { max-width: 100%; font: inherit; border: 1px solid #3b6389; border-radius: 8px; min-height: 38px; padding: 5px 11px; }
input { background: #091829; color: var(--text); }
button { background: #1665a1; color: white; font-weight: 650; cursor: pointer; }
button:hover { background: #2078ba; }
button.secondary { background: #142d48; }
button.text-button { background: transparent; color: var(--muted); min-height: 30px; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.notice { padding: 10px 14px; border: 1px solid #3a7097; border-radius: 10px; background: #13314c; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.orders, .profile { margin-top: 16px; }
.heading + .orders { margin-top: 0; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 12px 0; }
dd { margin: 0; }
.digits { font-variant-numeric: tabular-nums; }
.status { display: inline-block; white-space: nowrap; border-radius: 6px; padding: 3px 7px; color: #c6daef; background: #243751; font-size: 13px; }
.status.paid { color: #a0ffe0; background: #144339; }
.status.submitted { color: #ffe099; background: #493b27; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: 10px; vertical-align: top; }
th { white-space: nowrap; color: var(--muted); font-size: 13px; }
@media(max-width: 700px) {
  .auth, .grid { grid-template-columns: 1fr; }
  .container { width: calc(100% - 24px); padding-top: 20px; }
  .card { padding: 15px; }
  .auth { min-height: auto; }
}
.setup-form { width: min(100%, 430px); margin: 20px auto; }
