:root {
  --pitch-900: #0e2a20;
  --pitch-800: #143a2c;
  --pitch-700: #1c4a38;
  --paper: #f1f3ef;
  --card: #ffffff;
  --ink: #12211b;
  --muted: #64756c;
  --line: #d9e1db;
  --line-strong: #b9c7be;
  --signal: #e4572e;
  --gold: #b98a24;
  --ok: #2f7d5b;
  --radius: 4px;
  --font-body: "Microsoft YaHei UI", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-num: "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

button, input, select { font: inherit; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 22px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 22px;
  height: 22px;
  display: inline-block;
  border-left: 2px solid var(--pitch-800);
  border-bottom: 2px solid var(--pitch-800);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 5px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--signal);
  border-radius: 50%;
}
.brand-mark-light {
  border-color: #e9f0ec;
}
.brand-mark-light::after { border-color: var(--signal); }

.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { font-size: 15px; letter-spacing: .01em; }

.topnav { display: flex; gap: 18px; margin-left: 8px; }
.topnav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}
.topnav a:hover { color: var(--ink); }
.topnav a.is-active { color: var(--ink); border-bottom-color: var(--signal); }

.userbox {
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.user-name { color: var(--ink); }
.remaining {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.remaining.expired { color: var(--signal); font-weight: 600; }

.sound-control {
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.sound-name { color: var(--ink); }

.sound-test {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  padding: 0; margin-left: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--pitch-700);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.sound-test svg { width: 12px; height: 12px; fill: currentColor; margin-left: 1px; }
.sound-test:hover { background: var(--pitch-700); color: #fff; border-color: var(--pitch-700); }
.sound-test.is-playing {
  background: var(--pitch-700);
  color: #fff;
  border-color: var(--pitch-700);
  animation: soundPulse 1s ease-in-out infinite;
}
@keyframes soundPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.plugin-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.plugin-tools .button {
  height: 28px;
  padding: 0 10px;
  font-size: 11.5px;
}
.auth-code code {
  font-family: var(--font-num);
  color: var(--ink);
  letter-spacing: .03em;
}

.switch { position: relative; display: inline-flex; cursor: pointer; }
.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch-track {
  width: 32px;
  height: 18px;
  border-radius: 9px;
  background: #cfd8d1;
  position: relative;
  transition: background .15s ease;
}
.switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s ease;
}
.switch input:checked + .switch-track { background: var(--pitch-700); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(14px); }
.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.link-button {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 0;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-button:hover { color: var(--signal); }

/* ---------- 布局 ---------- */
.shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px 22px 40px;
  flex: 1;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}
.layout > * { min-width: 0; }

/* ---------- 记分带 ---------- */
.board {
  background: var(--pitch-900);
  color: #eef4f0;
  border-radius: var(--radius);
  padding: 16px 22px 14px;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 46px,
    rgba(255, 255, 255, .035) 46px,
    rgba(255, 255, 255, .035) 47px
  );
  pointer-events: none;
}
.board > * { position: relative; }

.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #a9c0b3;
}
.live { display: inline-flex; align-items: center; gap: 7px; }
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(228, 87, 46, .18);
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe {
  50% { box-shadow: 0 0 0 6px rgba(228, 87, 46, .04); }
}
.board-time b { font-family: var(--font-num); font-weight: 600; color: #dfe9e3; }

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 10px;
}
.board .cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 22px 8px 0;
}
.board .cell + .cell {
  border-left: 1px solid rgba(255, 255, 255, .14);
  padding-left: 22px;
}
.board .num {
  font-family: var(--font-num);
  font-size: 56px;
  line-height: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #f6f2e7;
  transition: color .18s ease;
  -webkit-font-smoothing: antialiased;
}
.board .num.flash { color: var(--signal); }
.board .label { font-size: 12px; color: #a9c0b3; }

/* ---------- 面板 ---------- */.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.panel-head h2, .rail-card h2, .setting-block h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.count-note { font-size: 11px; color: var(--muted); }
.count-note b { font-family: var(--font-num); color: var(--ink); }

.rail { display: flex; flex-direction: column; gap: 14px; }
.rail-card h2 { margin-bottom: 10px; }

.chips { margin: 0 0 14px; }
.chips > div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.chips > div:first-child { border-top: 0; padding-top: 0; }
.chips dt { font-size: 11px; color: var(--muted); }
.chips dd {
  margin: 0;
  font-size: 12.5px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.55;
}

.muted { color: var(--muted); font-size: 12px; }

/* ---------- 工具栏与表格 ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.bet-amount {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.bet-amount input {
  width: 92px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 8px;
  background: #fbfcfa;
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 13px;
}
.bet-amount input:focus { border-color: var(--pitch-700); }
.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.check input { accent-color: var(--pitch-800); }

.button {
  height: 32px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--card);
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { border-color: var(--pitch-700); }
.button-primary {
  background: var(--pitch-800);
  border-color: var(--pitch-800);
  color: #f3f7f4;
}
.button-primary:hover { background: var(--pitch-700); border-color: var(--pitch-700); }
.button-wide { width: 100%; }

.table-wrap { position: relative; overflow-x: auto; }
.records {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 820px;
}
.records th {
  text-align: center;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
  background: #fafbf8;
  position: sticky;
  top: 0;
}
.records td {
  text-align: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
.records tbody tr:hover { background: #f7f9f5; }
.records td.num-cell { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.records td.teams { white-space: normal; min-width: 200px; }
.nav-button {
  height: 30px;
  padding: 0 12px;
  font-size: 12.5px;
  background: var(--pitch-800);
  border-color: var(--pitch-800);
  color: #f3f7f4;
}
.nav-button:hover {
  background: var(--pitch-700);
  border-color: var(--pitch-700);
  color: #f3f7f4;
}

.event-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
}
.event-tag::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--line-strong);
}
.event-corner::before { background: var(--gold); }
.event-dangerous::before { background: var(--signal); }
.event-freekick::before { background: var(--pitch-700); }

.empty {
  padding: 46px 20px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.empty-title { font-size: 15px; margin: 0 0 6px; }
.empty p { margin: 0; color: var(--muted); font-size: 12.5px; }
.empty a { color: var(--pitch-700); }

.noscript { color: var(--signal); font-size: 12px; }
.muted-inline { color: var(--muted); }

/* ---------- 设置页 ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.page-head h1 { margin: 0 0 2px; font-size: 22px; }
.link-quiet { font-size: 12px; color: var(--muted); }

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.settings-grid > * { min-width: 0; }
.setting-wide { grid-column: 1 / -1; }
.setting-block h2 { margin-bottom: 2px; }
.block-note { margin: 0 0 12px; font-size: 12px; color: var(--muted); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field > span { font-size: 11px; color: var(--muted); }
.field input, .field select {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 9px;
  background: #fbfcfa;
  color: var(--ink);
}
.field input:focus, .field select:focus { border-color: var(--pitch-700); }
.field small { font-size: 11px; color: var(--muted); }

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.event-tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 12px 12px 34px;
  cursor: pointer;
  background: #fbfcfa;
}
.event-tile input {
  position: absolute;
  left: 12px;
  top: 14px;
  accent-color: var(--pitch-800);
}
.event-tile .tile-main { display: block; font-size: 13px; font-weight: 600; }
.event-tile .tile-note { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.event-tile:has(input:checked) {
  border-color: var(--pitch-700);
  box-shadow: inset 3px 0 0 var(--signal);
  background: #f6faf7;
}

.savebar {
  position: sticky;
  bottom: 0;
  margin-top: 16px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(to top, var(--paper) 65%, rgba(241, 243, 239, 0));
}

/* ---------- 登录与注册 ---------- */
.auth-body { background: var(--paper); }
.auth-shell {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  width: 100%;
  padding: 0;
  min-height: calc(100vh - 52px);
}
.auth-side {
  background: var(--pitch-900);
  color: #eef4f0;
  padding: 46px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to bottom, transparent 0 47px, rgba(255,255,255,.035) 47px 48px);
  pointer-events: none;
}
.auth-side > * { position: relative; }
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #a9c0b3;
  margin-bottom: 34px;
}
.auth-side h1 {
  font-size: 34px;
  line-height: 1.3;
  margin: 0;
  letter-spacing: .01em;
}

.auth-panel {
  background: var(--card);
  padding: 52px clamp(24px, 6vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.auth-tabs a {
  text-decoration: none;
  color: var(--muted);
  padding: 0 0 9px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
}
.auth-tabs a.is-active { color: var(--ink); border-bottom-color: var(--signal); }

.stack-form { display: flex; flex-direction: column; }
.auth-switch { margin: 16px 0 0; font-size: 12px; color: var(--muted); }
.auth-switch a { color: var(--pitch-700); }

/* ---------- 提示与错误 ---------- */
.flash-stack {
  position: fixed;
  top: 62px;
  right: 20px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}
.flash {
  margin: 0;
  padding: 10px 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pitch-700);
  border-radius: 3px;
  font-size: 12.5px;
  box-shadow: 0 6px 20px rgba(18, 33, 27, .08);
}
.flash-error { border-left-color: var(--signal); }
.flash-ok { border-left-color: var(--ok); }

.error-page { padding: 60px 0; max-width: 480px; }
.error-code { font-family: var(--font-num); font-size: 64px; margin: 0; color: var(--line-strong); line-height: 1; }
.error-page h1 { margin: 6px 0 8px; font-size: 22px; }

.install-dialog {
  width: min(520px, 92vw);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 24px;
  background: var(--card);
  color: var(--ink);
}
.install-dialog::backdrop { background: rgba(14, 42, 32, .5); backdrop-filter: blur(2px); }
.install-dialog h2 { margin: 0 0 12px; font-size: 18px; }
.install-dialog ol {
  margin: 0 0 12px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
}
.install-dialog code {
  font-family: var(--font-num);
  background: #f2f5f0;
  padding: 1px 4px;
  border-radius: 3px;
}
.dialog-note {
  margin: 0 0 14px;
  padding: 8px 10px;
  border-left: 3px solid var(--signal);
  background: #fdf3ef;
  font-size: 12px;
  color: var(--ink);
}
.install-dialog form { display: flex; justify-content: flex-end; margin: 0; }

.message-dialog {
  width: min(380px, 92vw);
  border: 0;
  border-radius: 10px;
  padding: 24px 24px 20px;
  text-align: center;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(14, 42, 32, .28);
}
.message-dialog::backdrop { background: rgba(14, 42, 32, .5); backdrop-filter: blur(2px); }
.message-mark {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fdf0ea;
  color: var(--signal);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 20px var(--font-num);
}
.message-dialog h2 { margin: 0 0 8px; font-size: 17px; }
.message-dialog p {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.message-actions { display: flex; justify-content: center; gap: 8px; }
.message-actions .button { min-width: 96px; }

dialog[open] { animation: dialog-in .18s ease-out; }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .rail { order: 2; }
  .settings-grid { grid-template-columns: 1fr; }
  .setting-wide { grid-column: auto; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { padding: 34px 26px; }
  .auth-side h1 { font-size: 27px; }
  .auth-panel { padding: 34px 26px 48px; }
}

@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; gap: 10px 18px; padding: 10px 14px; }
  .topnav { order: 5; width: 100%; }
  .plugin-tools { order: 4; width: 100%; margin-left: 0; flex-wrap: wrap; }
  .sound-control { order: 2; margin-left: auto; }
  .userbox { order: 3; }
  .shell { padding: 16px 14px 32px; }
  .board { padding: 14px 16px; }
  .board-grid { grid-template-columns: repeat(2, 1fr); row-gap: 10px; }
  .board .cell { padding-right: 14px; }
  .board .cell + .cell { padding-left: 14px; }
  .board .cell:nth-child(odd) { border-left: 0; padding-left: 0; }
  .board .cell:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .14); }
  .board .cell:nth-child(3),
  .board .cell:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 10px;
  }
  .board .num { font-size: 42px; }
  .event-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .flash-stack { left: 14px; right: 14px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .board .num { transition: none; }
  dialog[open] { animation: none; }
  .sound-test.is-playing { animation: none; }
}

/* ---------- 新赛事提示（右上角卡片） ---------- */
.toast-stack {
  position: fixed;
  top: 74px;
  right: 18px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(368px, calc(100vw - 28px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 42px 1fr 20px;
  gap: 10px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--pitch-700);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(18, 33, 27, .16);
  padding: 12px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-in { opacity: 1; transform: translateY(0); }
.toast-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: #e8f0eb; display: grid; place-items: center; color: var(--pitch-700);
}
.toast-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.toast-title {
  display: flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13.5px; color: var(--ink); line-height: 1.35;
}
.toast-sound { display: inline-flex; color: var(--ok); }
.toast-sound svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.toast-sub {
  font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toast-line {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--ink);
  margin-top: 5px;
  letter-spacing: .2px;
}
.toast-line b { color: var(--signal); font-weight: 700; }
.toast-actions { display: flex; gap: 8px; margin-top: 9px; }
.toast-actions .button { padding: 4px 12px; font-size: 12.5px; }
.toast-close {
  background: transparent; border: 0; cursor: pointer;
  color: #9aa8a0; font-size: 17px; line-height: 1; padding: 0;
  justify-self: end;
}
.toast-close:hover { color: var(--ink); }
@media (max-width: 640px) {
  .toast-stack { top: auto; bottom: 14px; left: 14px; right: 14px; width: auto; }
}

/* ---------- 通知条 ---------- */
.notice {
  padding: 12px 16px;
  font-size: 13px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--pitch-700);
  border-radius: var(--radius);
  background: #fff;
  margin: 0 0 14px;
}
.notice-warn {
  border-left-color: var(--signal);
  background: #fdf3ef;
  color: #7a2d17;
}

/* ---------- 过期导航 / 随机金额 ---------- */
.nav-button.is-expired {
  background: var(--line-strong);
  border-color: var(--line-strong);
  color: #fff;
  cursor: not-allowed;
}
.nav-button.is-expired:hover {
  background: var(--line-strong);
  border-color: var(--line-strong);
}
.rand-range { gap: 6px; }
.rand-range input { width: 76px; }
.rand-range select {
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

/* ---------- 隐藏属性兜底 & 金额分组 ---------- */
[hidden] { display: none !important; }
.amount-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- 补单标签 ---------- */
.records td.teams { position: relative; }
.records td.teams .teams-text { display: inline; }
.hedge-tag {
  display: inline-block;
  margin-left: 6px;
  vertical-align: top;
  padding: 0 5px;
  font-size: 10.5px;
  line-height: 15px;
  color: #fff;
  background: var(--ok);
  border-radius: 3px;
  pointer-events: none;
}
