:root {
  color-scheme: light;
  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --ink: #152438;
  --ink-2: #3c526b;
  --muted: #74869c;
  --line: #e4ebf5;
  --line-strong: #cfdaea;
  --brand: #5a6bf0;
  --brand-ink: #3a45b8;
  --brand-soft: #eef0ff;
  --sky: #1ea3d4;
  --sky-soft: #e6f6fc;
  --green: #12996c;
  --green-soft: #e5f6ef;
  --orange: #e47340;
  --orange-soft: #fdefe6;
  --red: #d94f46;
  --red-soft: #fdecea;
  --amber: #c98a12;
  --amber-soft: #fdf4e2;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(21, 36, 56, .04), 0 8px 24px -18px rgba(21, 36, 56, .35);
  font-family: "PingFang SC", "Microsoft YaHei", Inter, system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.hidden { display: none !important; }
a { color: var(--brand); text-decoration: none; }

/* ---------- 登录 ---------- */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: var(--bg);
}
.login-art {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 12% 10%, #e9f4ff 0%, rgba(233, 244, 255, 0) 62%),
    radial-gradient(800px 500px at 80% 90%, #eef0ff 0%, rgba(238, 240, 255, 0) 60%),
    #eef4fb;
  border-right: 1px solid var(--line);
}
.login-art::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: linear-gradient(rgba(90,107,240,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(90,107,240,.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(closest-side at 45% 45%, #000 20%, transparent 100%);
}
.art-block {
  position: absolute;
  display: grid;
  place-items: center;
  width: 150px;
  height: 58px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 18px 40px -26px rgba(21, 36, 56, .7);
}
.art-a { left: 12%; top: 28%; background: linear-gradient(180deg, #7d8cf5, #5a63d8); }
.art-b { left: 42%; top: 44%; transform: rotate(-3deg); background: linear-gradient(180deg, #38c093, #128a63); }
.art-c { left: 24%; top: 62%; transform: rotate(2deg); background: linear-gradient(180deg, #ff9b73, #e06a3d); }
.art-chip {
  position: absolute;
  left: 16%;
  top: 15%;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-2);
  box-shadow: var(--shadow);
}
.login-card {
  align-self: center;
  justify-self: center;
  width: min(400px, 88%);
  padding: 38px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(160deg, #6f7df6, #4b57d6);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
}
.login-brand strong { display: block; font-size: 15px; }
.login-brand small { color: var(--muted); font-size: 10px; letter-spacing: .16em; }
.login-card h1 { font-size: 25px; letter-spacing: -.01em; }
.login-copy { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.field-label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.password-field { display: flex; gap: 8px; margin-top: 20px; }
.password-field input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.password-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(90,107,240,.13); background: #fff; }
.ghost-button {
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
}
.ghost-button:hover { border-color: var(--brand); color: var(--brand); }
.form-error { min-height: 18px; margin: 10px 0 2px; color: var(--red); font-size: 12px; }
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: background .16s, transform .16s;
}
.primary-button:hover { background: var(--brand-ink); }
.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { opacity: .6; cursor: not-allowed; }
.primary-button.block { width: 100%; margin-top: 6px; }
.primary-button.small { height: 34px; padding: 0 14px; font-size: 12px; }
.secure-tip { display: flex; align-items: center; gap: 7px; margin-top: 22px; color: var(--muted); font-size: 11px; }
.secure-tip i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---------- 框架 ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: 226px;
  height: 100vh;
  padding: 22px 16px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 22px; }
.sidebar-brand strong { display: block; font-size: 14px; }
.sidebar-brand small { color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  text-align: left;
}
.nav-item:hover { background: var(--surface-2); }
.nav-item.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.nav-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.nav-item.active .nav-icon { background: #fff; color: var(--brand); }
.nav-count { margin-left: auto; font-size: 10px; color: var(--muted); }
.sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px 6px 0; border-top: 1px solid var(--line); }
.api-status { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.api-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.api-status.offline i { background: var(--red); }
.logout-button { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 7px; font-size: 12px; color: var(--muted); }
.logout-button:hover { color: var(--red); border-color: #f3c6c2; }

.main { flex: 1; min-width: 0; padding: 26px 30px 60px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.eyebrow { color: var(--brand); font-size: 10px; font-weight: 600; letter-spacing: .14em; }
.topbar-title h1 { margin-top: 5px; font-size: 24px; letter-spacing: -.01em; }
.page-sub { margin-top: 6px; color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.alert-bar {
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px solid #f6d3cf;
  border-radius: var(--radius-sm);
  background: var(--red-soft);
  color: #97382f;
  font-size: 12px;
}
.view { display: flex; flex-direction: column; gap: 16px; }

/* ---------- 通用块 ---------- */
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-2-wide { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.card {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.card-head h2 { font-size: 15px; }
.card-head p { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.card-actions { display: flex; align-items: center; gap: 8px; }
.kpi { display: flex; gap: 12px; align-items: flex-start; }
.kpi-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.kpi-label { color: var(--muted); font-size: 11px; }
.kpi-value { margin-top: 3px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-foot { margin-top: 4px; color: var(--muted); font-size: 11px; }
.tint-brand { background: var(--brand-soft); color: var(--brand-ink); }
.tint-green { background: var(--green-soft); color: var(--green); }
.tint-orange { background: var(--orange-soft); color: var(--orange); }
.tint-sky { background: var(--sky-soft); color: var(--sky); }
.tint-amber { background: var(--amber-soft); color: var(--amber); }

/* ---------- 表格 ---------- */
.table-wrap { overflow: auto; margin: 0 -20px -18px; padding: 0 20px 8px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th {
  position: sticky;
  top: 0;
  padding: 9px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
td { padding: 10px; border-bottom: 1px solid #f1f5fa; vertical-align: middle; white-space: nowrap; }
tbody tr:hover td { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
.num { font-variant-numeric: tabular-nums; }
.empty { padding: 26px 10px; color: var(--muted); font-size: 12px; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; }
.badge-brand { background: var(--brand-soft); color: var(--brand-ink); }
.badge-ok { background: var(--green-soft); color: var(--green); }
.badge-warn { background: var(--amber-soft); color: var(--amber); }
.badge-err { background: var(--red-soft); color: var(--red); }
.badge-muted { background: var(--surface-2); color: var(--muted); }
.user-cell { display: flex; align-items: center; gap: 9px; }
.avatar-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
}
.avatar-dot img { width: 100%; height: 100%; object-fit: cover; }
.rank-medal { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.rank-medal.top1 { background: #fdf3d8; color: #a67c10; }
.rank-medal.top2 { background: #eef1f6; color: #63708a; }
.rank-medal.top3 { background: #fbeee4; color: #a5653a; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 11px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 11px; }
.input, .select, textarea.input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  outline: none;
  font-size: 12px;
  transition: border-color .16s, box-shadow .16s;
}
textarea.input { height: auto; min-height: 66px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, textarea.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(90,107,240,.12); background: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #d6deea;
  transition: background .18s;
  flex: none;
}
.switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(21,36,56,.28);
  transition: transform .18s;
}
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f1f5fa; }
.switch-row:last-child { border-bottom: 0; }
.switch-row strong { display: block; font-size: 12px; font-weight: 600; }
.switch-row small { color: var(--muted); font-size: 11px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 999px; font-size: 11px; color: var(--muted); }
.seg button.active { background: #fff; color: var(--brand-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(21,36,56,.1); }
.btn-secondary {
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 12px;
  color: var(--ink-2);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-secondary:disabled { opacity: .55; cursor: not-allowed; }
.actions-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-text { font-size: 11px; color: var(--muted); }
.status-text.ok { color: var(--green); }
.status-text.err { color: var(--red); }

/* ---------- 图表与列表 ---------- */
.chart-wrap { position: relative; height: 236px; }
.chart-wrap canvas { display: block; width: 100%; height: 100%; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.legend i { width: 7px; height: 7px; border-radius: 50%; }
.ring {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--progress, 0deg), #eef2f8 0);
  position: relative;
}
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.ring strong { position: relative; font-size: 22px; font-variant-numeric: tabular-nums; grid-area: 1 / 1; }
.ring small { position: relative; color: var(--muted); font-size: 10px; grid-area: 1 / 1; transform: translateY(20px); }
.metric-list { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.metric-list div { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.metric-list span { color: var(--muted); }
.metric-list strong { font-variant-numeric: tabular-nums; }
.list { display: flex; flex-direction: column; gap: 2px; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f1f5fa; }
.list-row:last-child { border-bottom: 0; }
.list-main { min-width: 0; flex: 1; }
.list-main strong { display: block; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-main small { color: var(--muted); font-size: 11px; }
.list-value { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.list-value small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; }
.star-bars { display: flex; flex-direction: column; gap: 8px; }
.star-bar { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.star-bar > span:first-child { width: 34px; color: var(--muted); }
.star-bar .track { flex: 1; height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.star-bar .track i { display: block; height: 100%; border-radius: 999px; background: var(--amber); }
.star-bar b { width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.pager-info { color: var(--muted); font-size: 11px; }
.pager-buttons { display: flex; gap: 6px; }
.map-row { display: grid; grid-template-columns: 1.2fr 1.4fr 32px; gap: 8px; margin-bottom: 8px; }
.icon-button { width: 32px; height: 38px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--muted); font-size: 14px; }
.icon-button:hover { border-color: var(--red); color: var(--red); }
.template-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface-2); }
.template-card + .template-card { margin-top: 14px; }
.template-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.template-head strong { font-size: 13px; }
.template-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.inline-note { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--amber-soft); color: #8a6110; font-size: 11px; line-height: 1.6; }
.job-list { display: flex; flex-direction: column; gap: 10px; }

/* ---------- 提示条 ---------- */
.toast-host { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast {
  min-width: 180px;
  max-width: 340px;
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  background: #16243a;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 12px 30px -14px rgba(21,36,56,.8);
  animation: toast-in .18s ease-out;
}
.toast.ok { background: #10684c; }
.toast.err { background: #a33a32; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2-wide, .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .shell { flex-direction: column; }
  .sidebar { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 12px; overflow-x: auto; }
  .sidebar-brand { padding: 0; flex: 0 0 auto; }
  .sidebar-brand strong { display: inline; white-space: nowrap; }
  .sidebar-brand small { display: none; }
  .nav { flex-direction: row; }
  .nav-item { white-space: nowrap; }
  .nav-count { display: none; }
  .sidebar-footer { margin: 0 0 0 auto; flex-direction: row; align-items: center; border: 0; padding: 0; }
  .main { padding: 18px 14px 40px; }
  .topbar { flex-direction: column; align-items: stretch; }
  .topbar-actions { justify-content: flex-start; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .table-wrap { margin: 0 -14px; padding: 0 14px 8px; }
}

/* ---------- 首页公告编辑器 ---------- */
.announce-meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}
.announce-preview-wrap {
  margin-top: 16px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--sky-soft), var(--surface-2));
}
.announce-preview-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.announce-preview-label strong { font-size: 12px; color: var(--ink); }
.announce-preview-label small { font-size: 11px; color: var(--muted); }
.announce-preview { display: flex; flex-direction: column; gap: 8px; }
.announce-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(21, 36, 56, .09);
  box-shadow: 0 1px 2px rgba(21, 36, 56, .04);
}
.announce-icon { flex: 0 0 auto; font-size: 12px; line-height: 1; }
.announce-text {
  flex: 1 1 auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.announce-more { flex: 0 0 auto; font-size: 14px; font-weight: 700; color: var(--line-strong); }
.announce-index { margin: -4px 0 0 14px; font-size: 10px; color: var(--muted); }

/* KPI 口径提示小问号（悬停显示 title） */
.kpi-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  cursor: help;
  vertical-align: 1px;
}

/* 玩家档案 */
.tint-rose { background: rgba(224,64,106,.12); color: #c31f4c; }

.profile-card {
  border: 1px solid var(--line, rgba(15,32,53,.08));
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: var(--card, #fff);
}

.profile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.profile-rank { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.profile-block {
  background: var(--soft, rgba(15,32,53,.03));
  border-radius: 10px;
  padding: 10px 12px;
}

.profile-block h4 { margin: 0 0 8px; font-size: 12px; color: var(--ink, #17304e); }

.chip-list { display: flex; flex-wrap: wrap; gap: 5px; }

.mode-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.mode-stat {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  background: rgba(255,255,255,.6);
  border-radius: 8px;
  padding: 5px 8px;
}

.mode-name { font-weight: 700; color: var(--ink, #17304e); }
.mode-value { color: var(--muted, #7c90a2); }

.btn-secondary.active { border-color: var(--brand, #5a6bf0); color: var(--brand, #5a6bf0); font-weight: 700; }
