:root {
  color-scheme: light;
  --ink: #14253a; --navy: #101f32; --muted: #526477; --soft: #627386;
  --paper: #f4f6f8; --white: #fff; --line: #dce3eb; --blue: #234f7e;
  --gold: #ac753d; --green: #176449; --shadow: 0 10px 30px #12283e09;
  font-family: "Inter", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #64a2dd; outline-offset: 3px;
}
a { color: inherit; text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 780; letter-spacing: -.04em; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #19314d; color: #f4d7a2; font-size: 24px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: .15em; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 5px 9px; font-size: 12px; font-weight: 660; white-space: nowrap; }
.pill.neutral { background: #edf1f5; color: #4a5c70; }
.pill.good { background: #e5f3ec; color: #176449; }
.pill.wait { background: #fff1d9; color: #855312; }
.pill.bad { background: #fff0ef; color: #99382b; }
.btn { border: 1px solid var(--line); border-radius: 10px; min-height: 40px; padding: 9px 14px; background: white; color: var(--ink); font-weight: 660; font-size: 13px; }
.btn:hover { border-color: #8ba7c4; background: #f4f8fc; }
.btn.primary { background: #173b60; color: white; border-color: #173b60; }
.btn.primary:hover { background: #225481; }
.btn.text { border-color: transparent; background: transparent; color: var(--blue); }
.btn.text:hover { background: #edf4fb; }
.surface { background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.field { width: 100%; min-width: 0; border: 1px solid #cbd7e3; background: #fff; border-radius: 10px; color: var(--ink); min-height: 43px; padding: 10px 12px; }
.field::placeholder { color: #62758a; }
.field[aria-invalid="true"] { border-color: #ba5948; }
.error { font-size: 13px; color: #99382b; line-height: 1.55; }
.empty { color: var(--muted); font-size: 14px; padding: 18px 0; line-height: 1.6; }
dialog { color: var(--ink); padding: 0; border: 1px solid var(--line); border-radius: 20px; width: min(470px, calc(100% - 30px)); box-shadow: 0 30px 100px #08182938; }
dialog::backdrop { background: #0c1e35a0; }
.dialog-body { padding: 24px; display: grid; gap: 17px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-head h2 { font-size: 22px; }
.dialog-body p { line-height: 1.6; font-size: 14px; }
.close { background: #edf2f7; color: var(--ink); border: 0; border-radius: 10px; width: 38px; height: 38px; font-size: 22px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.toast { position: fixed; z-index: 50; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--navy); color: white; border-radius: 12px; padding: 12px 18px; box-shadow: 0 8px 28px #0003; width: max-content; max-width: calc(100vw - 28px); font-size: 14px; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: 0s !important; } }
