/* ==========================================================================
   电商工作台 · 设计系统
   深色「余烬黑 + 品牌橙」，浅色「暖纸白」。数字等宽对齐，卡片可点击下钻。
   ========================================================================== */

[hidden] { display: none !important; }

:root {
  --brand: #ff6a2b;
  --brand-2: #ffa24b;
  --brand-soft: rgba(255, 106, 43, 0.12);
  --teal: #2fd9a8;
  --teal-soft: rgba(47, 217, 168, 0.12);
  --danger: #ff5c61;
  --danger-soft: rgba(255, 92, 97, 0.12);
  --warn: #ffb43d;
  --warn-soft: rgba(255, 180, 61, 0.13);
  --info: #5aa9ff;

  --bg: #07080b;
  --bg-2: #0a0c11;
  --panel: #101319;
  --panel-2: #151922;
  --panel-3: #1a1f2a;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.045);
  --text: #f1f3f8;
  --text-2: #b4bccb;
  --muted: #798292;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
}

html[data-theme="light"] {
  --bg: #f2efe9;
  --bg-2: #f8f5f0;
  --panel: #ffffff;
  --panel-2: #faf7f2;
  --panel-3: #f2ede6;
  --line: rgba(22, 24, 30, 0.1);
  --line-soft: rgba(22, 24, 30, 0.055);
  --text: #12141a;
  --text-2: #444b58;
  --muted: #6d7585;
  --shadow: 0 20px 44px -28px rgba(32, 28, 22, 0.4);
  --brand-soft: rgba(255, 106, 43, 0.1);
  --teal-soft: rgba(20, 160, 122, 0.1);
  --danger-soft: rgba(220, 60, 65, 0.09);
  --warn-soft: rgba(200, 130, 20, 0.1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
.hidden { display: none !important; }
::selection { background: rgba(255, 106, 43, 0.3); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); background-clip: padding-box; }

.eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ============================================================== 登录页 */
.login {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--bg);
  z-index: 60;
}
.login__art {
  position: relative;
  overflow: hidden;
  padding: 46px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 88% 8%, rgba(255, 106, 43, 0.18), transparent 55%),
    radial-gradient(90% 70% at 10% 100%, rgba(47, 217, 168, 0.1), transparent 60%),
    linear-gradient(160deg, #0b0e14 0%, #07080b 60%);
}
.login__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 40% 40%, #000 20%, transparent 100%);
}
.login__glow {
  position: absolute;
  width: 460px; height: 460px;
  right: -120px; top: -140px;
  background: radial-gradient(circle, rgba(255, 106, 43, 0.35), transparent 65%);
  filter: blur(30px);
  animation: float 12s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 28px) scale(1.08); }
}
.login__brand { position: relative; display: flex; align-items: baseline; gap: 12px; }
.mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  color: #1a0a02;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
}
.mark svg { width: 18px; height: 18px; }
.mark-sub { font-size: 13px; letter-spacing: 0.22em; color: var(--text-2); }
.login__copy { position: relative; max-width: 520px; }
.login__copy h1 {
  font-size: clamp(32px, 3.4vw, 50px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 650;
  margin: 14px 0 18px;
}
.login__copy h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand), var(--brand-2) 60%, #ffd7a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { color: var(--text-2); font-size: 15px; max-width: 430px; }
.login__meta { position: relative; display: grid; gap: 12px; max-width: 520px; }
.login__meta > div { display: flex; gap: 16px; align-items: baseline; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.login__meta .k { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); width: 44px; flex: none; }
.login__meta .v { font-size: 13px; color: var(--text-2); }

.login__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 8%;
  background: var(--bg-2);
}
.login__form { width: 100%; max-width: 372px; display: grid; gap: 18px; }
.login__form h2 { font-size: 26px; letter-spacing: -0.02em; margin: 6px 0 4px; font-weight: 650; }
.login__form .sub { color: var(--muted); font-size: 13px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 12px; color: var(--text-2); letter-spacing: 0.04em; }
.field input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus {
  border-color: rgba(255, 106, 43, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 106, 43, 0.12);
  background: var(--panel-2);
}
.field__row { position: relative; display: flex; }
.ghost-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--muted); font-size: 12px; padding: 6px 8px; border-radius: 6px;
}
.ghost-btn:hover { color: var(--text); background: var(--panel-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  padding: 11px 18px; border-radius: 11px; font-size: 13.5px; font-weight: 550;
  transition: transform 0.16s, background 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.btn:hover { border-color: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(100deg, var(--brand), #ff8a3d);
  color: #1a0a02; border: 0; font-weight: 650;
  box-shadow: 0 10px 26px -12px rgba(255, 106, 43, 0.85);
}
.btn--primary:hover { box-shadow: 0 14px 30px -12px rgba(255, 106, 43, 1); }
.btn--block { width: 100%; padding: 13px; }
.btn--sm { padding: 7px 12px; font-size: 12.5px; border-radius: 8px; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.login__error { color: var(--danger); font-size: 12.5px; min-height: 18px; }
.login__foot {
  position: absolute; bottom: 46px; left: 0; right: 0; text-align: center;
  font-size: 11px; color: var(--muted);
}

/* ============================================================== 应用骨架 */
.app { display: grid; grid-template-columns: 84px 1fr; min-height: 100vh; }

.rail {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 0 16px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 70%);
  z-index: 20;
}
.rail__brand {
  font-family: var(--mono); font-weight: 700; font-size: 13px; line-height: 1;
  color: var(--brand); display: grid; gap: 1px; letter-spacing: -0.03em;
  border: 1px solid rgba(255, 106, 43, 0.4); border-radius: 8px; padding: 6px 7px;
  background: var(--brand-soft);
}
.rail__nav { margin-top: 26px; display: grid; gap: 6px; width: 100%; padding: 0 10px; }
.rail__dot {
  position: absolute; top: 7px; right: 22px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 92, 97, 0.18);
}
.rail__user { margin-top: auto; background: none; border: 0; padding: 0; }

.avatar {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #2a3140, #161b24);
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 650; color: var(--text);
  font-family: var(--mono);
}
html[data-theme="light"] .avatar { background: linear-gradient(140deg, #ffe6d5, #ffd0b0); color: #7a2c06; }

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 18;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
}
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.store { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.store__badge {
  flex: none;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: -0.02em;
  background: var(--brand); color: #160800; padding: 2px 6px; border-radius: 5px;
}
.store__name {
  font-size: 13.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px;
}
.store__cat { font-size: 11px; color: var(--muted); white-space: nowrap; }
.window {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 99px; padding: 4px 11px;
  font-size: 11.5px; color: var(--text-2); font-family: var(--mono); white-space: nowrap;
}
.window .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

.persona-switch {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 11px;
}
.persona {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; border-radius: 8px; padding: 6px 11px 6px 7px;
  color: var(--muted); font-size: 12.5px; transition: 0.16s; white-space: nowrap;
}
.persona i {
  font-style: normal; width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 650;
  background: var(--panel-3); color: var(--text-2);
}
.persona:hover { color: var(--text); }
.persona.is-active { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.persona.is-active i { background: var(--brand); color: #170800; }
.persona[data-persona="steward"].is-active i { background: var(--teal); color: #002018; }

.status-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--panel); border-radius: 99px;
  padding: 6px 12px; font-size: 11.5px; color: var(--text-2); transition: 0.16s;
}
.status-chip:hover { border-color: rgba(47, 217, 168, 0.4); color: var(--text); }
.status-chip .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 rgba(47, 217, 168, 0.6); animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 217, 168, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(47, 217, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 217, 168, 0); }
}
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--panel); border-radius: 10px; color: var(--text-2);
  transition: 0.16s;
}
.icon-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.user-chip {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); background: var(--panel); border-radius: 99px;
  padding: 4px 12px 4px 4px; transition: 0.16s;
}
.user-chip:hover { border-color: rgba(255, 255, 255, 0.2); }
.user-chip .avatar { width: 26px; height: 26px; border-radius: 50%; font-size: 11px; }
.user-chip__meta { display: grid; line-height: 1.25; text-align: left; }
.user-chip__meta b { font-size: 12px; font-weight: 550; }
.user-chip__meta i { font-style: normal; font-size: 10px; color: var(--muted); }

.view { padding: 22px 26px 60px; max-width: 1640px; width: 100%; margin: 0 auto; }

/* ============================================================== 页面通用 */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.pagehead h1 { font-size: 24px; letter-spacing: -0.028em; font-weight: 650; margin-top: 6px; }
.pagehead .sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.pagehead__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; grid-auto-flow: row dense; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 18px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  animation: rise 0.5s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.05), transparent 55%);
}
.card.is-clickable { cursor: pointer; }
.card.is-clickable:hover { border-color: rgba(255, 106, 43, 0.34); transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.9); }
.card.is-clickable:hover .card__more { color: var(--brand); }
.card--flat { background: var(--panel); }
.card--accent { border-color: rgba(255, 106, 43, 0.24); }

.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card__title { display: flex; align-items: center; gap: 9px; }
.card__title h3 { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.card__title .ico {
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: var(--panel-3); color: var(--text-2); flex: none;
}
.card__title .ico svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__sub { font-size: 11px; color: var(--muted); margin-top: 2px; letter-spacing: 0.01em; }
.card__more { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; transition: color 0.16s; }
.card__more::after { content: "›"; font-size: 14px; line-height: 1; }

/* ============================================================== 专家简报 */
.banner {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255, 106, 43, 0.26);
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 16px;
  display: grid; grid-template-columns: 1.18fr 0.82fr; gap: 26px;
  background:
    radial-gradient(90% 140% at 96% -10%, rgba(255, 106, 43, 0.2), transparent 55%),
    linear-gradient(140deg, #12151d 0%, #0b0d12 70%);
  animation: rise 0.5s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}
html[data-theme="light"] .banner {
  background:
    radial-gradient(90% 140% at 96% -10%, rgba(255, 106, 43, 0.16), transparent 55%),
    linear-gradient(140deg, #fff 0%, #fdf7f1 70%);
}
.banner[data-persona="steward"] {
  border-color: rgba(47, 217, 168, 0.26);
  background:
    radial-gradient(90% 140% at 96% -10%, rgba(47, 217, 168, 0.16), transparent 55%),
    linear-gradient(140deg, #101619 0%, #0a0d11 70%);
}
html[data-theme="light"] .banner[data-persona="steward"] {
  background:
    radial-gradient(90% 140% at 96% -10%, rgba(20, 170, 130, 0.14), transparent 55%),
    linear-gradient(140deg, #fff 0%, #f2fbf7 70%);
}
.banner__who { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.banner__badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid rgba(255, 106, 43, 0.3); border-radius: 99px; padding: 4px 11px 4px 5px;
}
.banner[data-persona="steward"] .banner__badge { background: var(--teal-soft); color: var(--teal); border-color: rgba(47, 217, 168, 0.3); }
.banner__badge b {
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #1a0a02; font-size: 10px;
}
.banner[data-persona="steward"] .banner__badge b { background: var(--teal); color: #002018; }
.banner__tag { font-size: 11.5px; color: var(--muted); }
.banner h2 {
  font-size: clamp(20px, 1.7vw, 27px); line-height: 1.32; letter-spacing: -0.026em; font-weight: 600;
  max-width: 46ch;
}
.banner__points { margin-top: 14px; display: grid; gap: 7px; }
.banner__points p { font-size: 12.5px; color: var(--text-2); padding-left: 14px; position: relative; }
.banner__points p::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand); opacity: 0.7;
}
.banner[data-persona="steward"] .banner__points p::before { background: var(--teal); }
.banner__side { border-left: 1px solid var(--line); padding-left: 22px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.banner__side h4 { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.todo {
  display: flex; gap: 9px; font-size: 12.5px; color: var(--text-2); cursor: pointer;
  padding: 7px 9px; margin: 0 -9px; border-radius: 8px; transition: background 0.16s;
}
.todo:hover { background: rgba(255, 255, 255, 0.04); }
.todo i {
  font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--brand);
  border: 1px solid rgba(255, 106, 43, 0.35); border-radius: 5px; height: 18px; min-width: 18px;
  display: grid; place-items: center; flex: none; margin-top: 1px;
}
.banner[data-persona="steward"] .todo i { color: var(--teal); border-color: rgba(47, 217, 168, 0.35); }

/* ============================================================== KPI */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px 12px; cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  animation: rise 0.5s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}
.kpi:hover { border-color: rgba(255, 106, 43, 0.32); transform: translateY(-2px); box-shadow: 0 16px 34px -26px #000; }
.kpi__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi__label { font-size: 11.5px; color: var(--muted); letter-spacing: 0.03em; }
.kpi__spark { width: 66px; height: 26px; flex: none; opacity: 0.95; }
.kpi__value {
  font-size: clamp(26px, 2.3vw, 33px); font-weight: 650; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums; margin-top: 6px; line-height: 1.1;
  display: flex; align-items: baseline; gap: 4px;
}
.kpi__value small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.kpi__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.kpi__note { font-size: 11px; color: var(--muted); }

.delta {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  padding: 1px 6px; border-radius: 5px; background: var(--panel-3); color: var(--text-2);
}
.delta::before { content: "▲"; font-size: 8px; }
.delta.is-down::before { content: "▼"; }
.delta.is-good { color: var(--teal); background: var(--teal-soft); }
.delta.is-bad { color: var(--danger); background: var(--danger-soft); }
.delta.is-flat { color: var(--muted); }
.delta.is-flat::before { content: "—"; font-size: 9px; }

/* ============================================================== 图表 */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart svg { height: auto; }
.chart--mini svg { max-height: 150px; }
.chart__legend { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.legend-item i { width: 8px; height: 8px; border-radius: 2px; }
.grid-line { stroke: var(--line-soft); stroke-width: 1; }
.axis-label { fill: var(--muted); font-size: 10.5px; font-family: var(--font); }
.chart-dot { fill: var(--panel); stroke: var(--brand); stroke-width: 2; }
.chart-hit { fill: transparent; cursor: pointer; }
.chart-hit:hover + .chart-dot, .chart-dot.is-hover { fill: var(--brand); }

.tip {
  position: fixed; z-index: 200; pointer-events: none; opacity: 0;
  background: #0b0e14; color: #eef1f6; border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px; padding: 8px 10px; font-size: 11.5px; line-height: 1.5;
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.9); transform: translate(-50%, -120%);
  transition: opacity 0.12s; max-width: 260px;
}
.tip b { display: block; font-size: 11px; color: #9aa4b4; font-weight: 500; margin-bottom: 3px; letter-spacing: 0.04em; }
.tip span { font-variant-numeric: tabular-nums; }
.tip.is-on { opacity: 1; }
.na { color: var(--muted); border-bottom: 1px dotted var(--muted); cursor: help; }

/* 横向条形 */
.hbars { display: grid; gap: 9px; }
.hbar { display: grid; grid-template-columns: 52px 1fr 46px; align-items: center; gap: 9px; cursor: pointer; }
.hbar:hover .hbar__name { color: var(--text); }
.hbar__name { font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar__track { height: 6px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.hbar__fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, rgba(255, 106, 43, 0.55), var(--brand)); transition: width 0.6s cubic-bezier(0.22, 0.8, 0.24, 1); }
.hbar__val { text-align: right; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 列表 */
.list { display: grid; gap: 1px; margin: -4px -8px; }
.list__row {
  display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px;
  padding: 8px; border-radius: 8px; cursor: pointer; transition: background 0.14s;
}
.list__row:hover { background: var(--panel-2); }
.list__idx { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.list__main { min-width: 0; }
.list__title { display: block; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list__meta { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list__val { font-size: 12px; font-family: var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }

/* 迷你统计 */
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
.mini-stat { cursor: pointer; padding: 6px 8px; margin: -6px -8px; border-radius: 8px; transition: background 0.14s; }
.mini-stat:hover { background: var(--panel-2); }
.mini-stat .k { font-size: 10.5px; color: var(--muted); }
.mini-stat .v { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin-top: 1px; }

/* 漏斗 */
.funnel { display: grid; gap: 7px; }
.funnel__row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-radius: 9px; cursor: pointer;
  background: linear-gradient(90deg, rgba(255, 106, 43, 0.16), rgba(255, 106, 43, 0.03));
  border: 1px solid rgba(255, 106, 43, 0.12);
  transition: 0.16s;
}
.funnel__row:hover { border-color: rgba(255, 106, 43, 0.4); transform: translateX(2px); }
.funnel__row:nth-child(2) { background: linear-gradient(90deg, rgba(255, 162, 75, 0.14), rgba(255, 162, 75, 0.02)); }
.funnel__row:nth-child(3) { background: linear-gradient(90deg, rgba(47, 217, 168, 0.14), rgba(47, 217, 168, 0.02)); border-color: rgba(47, 217, 168, 0.16); }
.funnel__k { font-size: 11.5px; color: var(--text-2); }
.funnel__v { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.funnel__rate { font-size: 10.5px; color: var(--muted); font-family: var(--mono); }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th {
  text-align: left; font-weight: 500; color: var(--muted); font-size: 10.5px; letter-spacing: 0.06em;
  padding: 7px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0;
  background: var(--panel); white-space: nowrap;
}
.table td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); color: var(--text-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { cursor: pointer; transition: background 0.14s; }
.table tbody tr:hover { background: var(--panel-2); }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 11.5px; color: var(--text); }
.table .ell { max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 预警 */
.alert-list { display: grid; gap: 10px; }
.alert {
  display: grid; grid-template-columns: 3px 1fr auto; gap: 14px; align-items: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px 13px 0; cursor: pointer; transition: 0.16s; overflow: hidden;
}
.alert:hover { border-color: rgba(255, 255, 255, 0.18); transform: translateX(2px); }
.alert__bar { align-self: stretch; border-radius: 0 3px 3px 0; background: var(--muted); }
.alert[data-level="danger"] .alert__bar { background: var(--danger); box-shadow: 0 0 16px rgba(255, 92, 97, 0.6); }
.alert[data-level="warn"] .alert__bar { background: var(--warn); }
.alert[data-level="opp"] .alert__bar { background: var(--teal); }
.alert[data-level="info"] .alert__bar { background: var(--info); }
.alert__title { font-size: 13px; font-weight: 550; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.alert__metric { font-family: var(--mono); font-size: 12px; color: var(--text); }
.alert__hook { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.alert__right { display: flex; align-items: center; gap: 8px; }
.alert.is-acked { opacity: 0.5; }
.badge {
  font-size: 10px; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 5px;
  background: var(--panel-3); color: var(--text-2); white-space: nowrap;
}
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--opp { background: var(--teal-soft); color: var(--teal); }
.badge--info { background: rgba(90, 169, 255, 0.13); color: var(--info); }
.badge--ok { background: var(--teal-soft); color: var(--teal); }
.ack-btn {
  border: 1px solid var(--line); background: var(--panel-2); border-radius: 7px;
  font-size: 11px; padding: 4px 9px; color: var(--muted); white-space: nowrap;
}
.ack-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }
.filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.filter {
  border: 1px solid var(--line); background: var(--panel); border-radius: 99px;
  padding: 5px 12px; font-size: 12px; color: var(--text-2); transition: 0.16s;
}
.filter b { font-family: var(--mono); font-size: 11px; margin-left: 5px; color: var(--muted); }
.filter:hover { border-color: rgba(255, 255, 255, 0.2); }
.filter.is-active { background: var(--brand-soft); border-color: rgba(255, 106, 43, 0.4); color: var(--brand); }
.filter.is-active b { color: var(--brand); }

/* 模块选择 / 权限 */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mod {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; cursor: pointer; transition: 0.16s;
}
.mod:hover { border-color: rgba(255, 255, 255, 0.18); }
.mod.is-on { border-color: rgba(255, 106, 43, 0.35); background: linear-gradient(180deg, var(--brand-soft), var(--panel)); }
.mod.is-locked { opacity: 0.45; cursor: not-allowed; }
.mod h4 { font-size: 13px; font-weight: 550; display: flex; align-items: center; gap: 7px; }
.mod p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.switch {
  width: 34px; height: 19px; border-radius: 99px; background: var(--panel-3); position: relative;
  border: 1px solid var(--line); flex: none; transition: 0.18s;
}
.switch::after {
  content: ""; position: absolute; width: 13px; height: 13px; border-radius: 50%;
  background: var(--muted); top: 2px; left: 2px; transition: 0.18s;
}
.mod.is-on .switch { background: rgba(255, 106, 43, 0.28); border-color: rgba(255, 106, 43, 0.5); }
.mod.is-on .switch::after { left: 17px; background: var(--brand); }

.perm { display: grid; gap: 14px; }
.perm__account {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.perm__head { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.perm__head .avatar { width: 32px; height: 32px; border-radius: 9px; }
.perm__head b { font-size: 13px; }
.perm__head span { font-size: 11.5px; color: var(--muted); display: block; }
.perm__mods { display: flex; flex-wrap: wrap; gap: 7px; }
.pmod {
  border: 1px solid var(--line); background: var(--panel-2); border-radius: 8px;
  padding: 5px 10px; font-size: 11.5px; color: var(--muted); transition: 0.14s;
  display: inline-flex; align-items: center; gap: 6px;
}
.pmod::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.pmod.is-on { color: var(--brand); border-color: rgba(255, 106, 43, 0.38); background: var(--brand-soft); }
.pmod.is-on::before { opacity: 1; }
.perm__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; gap: 12px; }
.perm__note { font-size: 11px; color: var(--muted); }

/* 数据源 */
.src-left { display: grid; gap: 1px; min-width: 0; }
.src-left > span:first-child { font-size: 12px; color: var(--text-2); }
.src-row { display: grid; grid-template-columns: 1fr 92px 64px 132px; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line-soft); font-size: 11.5px; }
.src-row:last-child { border-bottom: 0; }
.src-row .f { font-family: var(--mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-row .n { color: var(--muted); font-family: var(--mono); font-size: 10.5px; text-align: right; }
.src-row .t { color: var(--muted); font-family: var(--mono); font-size: 10.5px; text-align: right; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; }
.status i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.status.ok i { background: var(--teal); }
.status.warn i { background: var(--warn); }
.status.error i { background: var(--danger); }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kv__item { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 13px; }
.kv__item .k { font-size: 10.5px; color: var(--muted); }
.kv__item .v { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; letter-spacing: -0.02em; }

/* ============================================================== 抽屉 */
.scrim {
  position: fixed; inset: 0; background: rgba(3, 4, 7, 0.6); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity 0.24s; z-index: 40;
}
.scrim.is-on { opacity: 1; pointer-events: auto; }



.dsec { display: grid; gap: 10px; }
.dsec__title { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.dsec__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.dmetrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 9px; }
.dmetric { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.dmetric .k { font-size: 10.5px; color: var(--muted); }
.dmetric .v { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin-top: 2px; }
.dmetric .n { font-size: 10.5px; color: var(--muted); margin-top: 1px; }

.dbullet { display: grid; gap: 8px; }
.dbullet li {
  list-style: none; font-size: 12.8px; line-height: 1.62; color: var(--text-2);
  padding-left: 18px; position: relative;
}
.dbullet li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--brand); opacity: 0.75;
}
.dbullet b { color: var(--text); font-weight: 600; }
.dcause { display: grid; gap: 9px; }
.dcause__item { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px; }
.dcause__item b { font-size: 12.5px; color: var(--text); display: block; margin-bottom: 3px; }
.dcause__item p { font-size: 12.3px; color: var(--text-2); line-height: 1.62; }
.dactions { display: grid; gap: 9px; }
.daction {
  display: grid; grid-template-columns: 22px 1fr; gap: 11px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px;
}
.daction i {
  font-style: normal; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 700; font-family: var(--mono);
}
.daction b { font-size: 12.5px; display: block; margin-bottom: 2px; }
.daction p { font-size: 12.2px; color: var(--text-2); line-height: 1.6; }
.daction .who { font-size: 10.5px; color: var(--muted); margin-top: 5px; display: flex; gap: 10px; }

/* ============================================================== 悬浮菜单 */
.menu {
  position: fixed; z-index: 70; min-width: 190px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; box-shadow: 0 22px 50px -22px #000;
  animation: pop 0.16s ease both;
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.menu__head { padding: 9px 11px 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 5px; }
.menu__head b { display: block; font-size: 12.5px; }
.menu__head span { font-size: 11px; color: var(--muted); }
.menu button {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 8px 11px; border-radius: 7px; font-size: 12.5px; color: var(--text-2);
}
.menu button:hover { background: var(--panel-2); color: var(--text); }
.menu button.danger { color: var(--danger); }

/* ============================================================== 其他 */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: #0d1017; color: #eef1f6; border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px; padding: 10px 16px; font-size: 12.5px; z-index: 300;
  opacity: 0; pointer-events: none; transition: 0.22s; box-shadow: 0 18px 40px -18px #000;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(255, 92, 97, 0.5); }

.boot {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; gap: 14px;
  background: var(--bg); transition: opacity 0.3s;
}
.boot p { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.boot.is-off { opacity: 0; pointer-events: none; }
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid rgba(255, 106, 43, 0.2); border-top-color: var(--brand);
  animation: spin 0.8s linear infinite; display: block; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 12.5px; }
.empty b { display: block; color: var(--text-2); font-size: 13px; margin-bottom: 5px; }

.note {
  font-size: 11px; color: var(--muted); line-height: 1.6;
  border-left: 2px solid var(--line); padding-left: 10px;
}
.section-title { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; text-transform: uppercase; margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ============================================================== 响应式 */
@media (max-width: 1400px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .store__cat { display: none; }
}
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(6, 1fr); }
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 6; }
  .col-12 { grid-column: span 6; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .banner { grid-template-columns: 1fr; }
  .banner__side { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 16px; }
  .persona span { display: none; }
  .persona { padding: 6px; }
  .status-chip #refreshText { display: none; }
}
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login__art { display: none; }
  .login__panel { padding: 28px 22px; }
  .login__foot { position: static; margin-top: 26px; margin-bottom: 34px; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .rail {
    position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: 62px;
    flex-direction: row; justify-content: space-around; padding: 6px 8px;
    border-right: 0; border-top: 1px solid var(--line); z-index: 30;
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px);
  }
  .rail__brand, .rail__user { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ==========================================================================
   2.0 · 视角 / 区间 / 详情页 / 子账号
   ========================================================================== */

.mono { font-family: var(--mono); }
.is-hidden { display: none !important; }
.btn--danger { background: var(--danger); color: #fff; border: 0; font-weight: 600; }
.btn--danger:hover { background: #ff4a50; }

/* ---- 顶栏店铺信息（可编辑） ---- */
.store__meta { display: grid; gap: 1px; min-width: 0; }
.store__name {
  min-width: 0;
  background: none; border: 0; padding: 0; text-align: left;
  font-size: 13.5px; font-weight: 600; color: var(--text); letter-spacing: -0.01em;
  max-width: min(34vw, 360px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-bottom: 1px dashed transparent; transition: border-color 0.16s;
}
.store__name:hover { border-bottom-color: rgba(255, 255, 255, 0.28); }
.store__cat {
  background: none; border: 0; padding: 0; text-align: left;
  font-size: 11px; color: var(--muted); max-width: min(30vw, 320px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-bottom: 1px dashed transparent;
}
.store__cat:hover { border-bottom-color: rgba(255, 255, 255, 0.2); color: var(--text-2); }
.store__input {
  background: var(--panel-2); border: 1px solid rgba(255, 106, 43, 0.45); border-radius: 7px;
  color: var(--text); font-size: 13px; padding: 3px 8px; outline: none; width: 260px; max-width: 46vw;
}
.icon-btn--xs { width: 28px; height: 28px; border-radius: 8px; }
.icon-btn--xs svg { width: 14px; height: 14px; }

.coverage-chip {
  font-size: 11px; color: var(--muted); font-family: var(--mono);
  border: 1px solid var(--line); border-radius: 99px; padding: 5px 10px; white-space: nowrap;
}

/* ---- 工具栏 ---- */
.toolbar {
  position: sticky; top: 61px; z-index: 17;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 26px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
}
.toolbar__divider { width: 1px; height: 22px; background: var(--line); }
.toolbar__info {
  margin-left: auto; display: flex; align-items: center; gap: 8px; justify-content: flex-end;
  font-size: 11.5px; color: var(--muted); font-family: var(--mono); flex-wrap: wrap;
  min-width: 0; max-width: 100%;
}
.toolbar__info b { color: var(--text-2); font-weight: 600; }
.toolbar__info span { color: var(--text-2); }
.toolbar__info i { font-style: normal; border-left: 1px solid var(--line); padding-left: 8px; white-space: normal; }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.seg__btn {
  border: 0; background: none; border-radius: 9px; padding: 7px 12px;
  font-size: 12.5px; color: var(--muted); text-align: left; display: grid; gap: 0;
  transition: 0.16s; white-space: nowrap;
}
.seg__btn i { font-style: normal; font-size: 10px; color: var(--muted); opacity: 0.85; margin-top: 1px; }
.seg__btn:hover { color: var(--text); }
.seg__btn.is-active { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.seg__btn.is-active i { color: var(--text-2); }
.seg--quiet .seg__btn { padding: 6px 11px; font-size: 12px; display: block; }
/* 公司切换：激活态用品牌色描边，区别于时间区间选中态 */
#shopSwitch .seg__btn[data-shop] { font-weight: 600; }
#shopSwitch .seg__btn.is-active { box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand); }


.notice-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--warn); background: var(--warn-soft);
  border: 1px solid rgba(255, 180, 61, 0.28); border-radius: 99px; padding: 5px 11px; cursor: help;
}
.notice-chip::before { content: "!"; font-weight: 700; font-size: 10px; }

/* ---- KPI（改为链接） ---- */
a.kpi { display: block; text-decoration: none; color: inherit; }
a.kpi:hover { border-color: rgba(255, 106, 43, 0.32); }

/* ---- 卡片内的紧凑信息 ---- */
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.metric-strip > div { display: grid; gap: 2px; }
.metric-strip i { font-style: normal; font-size: 10.5px; color: var(--muted); }
.metric-strip b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.card__line { margin-top: 11px; font-size: 12px; color: var(--text-2); line-height: 1.5; border-left: 2px solid rgba(255, 106, 43, 0.5); padding-left: 9px; }
.meter { margin-top: 12px; height: 6px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, rgba(255, 106, 43, 0.5), var(--brand)); }

.mini-list { display: grid; gap: 2px; }
.mini-list__row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 5px 0; font-size: 12px; }
.mini-list__row .idx { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.mini-list__row .t { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list__row b { font-size: 12px; font-variant-numeric: tabular-nums; }
.mini-list__row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.mini-list__row .dot[data-level="danger"] { background: var(--danger); }
.mini-list__row .dot[data-level="warn"] { background: var(--warn); }
.mini-list__row .dot[data-level="opp"] { background: var(--teal); }
.mini-list__row .tag { font-size: 9.5px; white-space: nowrap; padding: 1px 6px; border-radius: 4px; background: var(--panel-3); color: var(--muted); text-align: center; }
.mini-list__row .tag.warn { background: var(--warn-soft); color: var(--warn); }

.stat-list { display: grid; gap: 1px; }
.stat-row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft);
}
.stat-row:last-child { border-bottom: 0; }
.stat-row span { font-size: 11.5px; color: var(--muted); }
.stat-row b { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.stat-row i { grid-column: 1 / -1; font-style: normal; font-size: 10.5px; color: var(--muted); margin-top: -4px; }

.donut-wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center b { font-size: 19px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.donut-center span { font-size: 10px; color: var(--muted); }
.donut-legend { display: grid; gap: 4px; flex: 1; min-width: 120px; }

/* ---- 详情页 ---- */
/* 返回入口：工具栏常驻按钮 + 内容区面包屑 */
.navback {
  display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto;
  height: 30px; padding: 0 10px 0 6px; margin-right: 2px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2);
  color: var(--text-2); font: inherit; font-size: 12px; cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.navback:hover { color: var(--text); background: var(--panel); transform: translateX(-1px); }
.navback:active { transform: translateX(0) scale(0.98); }
.navback:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }
.navback[hidden] { display: none; }
.navback svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 12px; color: var(--muted); }
.crumbs .crumb { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); text-decoration: none; }
.crumbs .crumb--link { color: var(--text-2); padding: 3px 7px 3px 3px; border-radius: 7px; transition: background 160ms ease, color 160ms ease; }
.crumbs .crumb--link:hover { color: var(--text); background: var(--panel-2); }
.crumbs svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.crumbs i { font-style: normal; color: var(--line); }
.detail-head { max-width: 980px; margin-bottom: 20px; }
.detail-head h1 { font-size: clamp(21px, 2vw, 27px); letter-spacing: -0.028em; font-weight: 650; margin-top: 6px; line-height: 1.3; }
.detail-lead {
  margin-top: 12px; font-size: 14px; line-height: 1.66; color: var(--text-2);
  border-left: 2px solid var(--brand); padding-left: 13px;
}
.detail-lead[data-level="danger"] { border-color: var(--danger); }
.detail-lead[data-level="warn"] { border-color: var(--warn); }
.detail-lead[data-level="ok"], .detail-lead[data-level="opp"] { border-color: var(--teal); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.detail-main, .detail-side { display: grid; gap: 16px; min-width: 0; }
.detail-grid .card { animation: none; }

.dmetrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 9px; }
.dmetric { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; }
.dmetric .k { font-size: 10.5px; color: var(--muted); }
.dmetric .v { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin-top: 2px; }
.dmetric .n { font-size: 10.5px; color: var(--muted); margin-top: 1px; }

.dcause { display: grid; gap: 8px; }
.dcause__item { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 13px; }
.dcause__item b { font-size: 12.5px; display: block; margin-bottom: 3px; }
.dcause__item p { font-size: 12.2px; color: var(--text-2); line-height: 1.62; }

.dactions { display: grid; gap: 8px; }
.daction { display: grid; grid-template-columns: 20px 1fr; gap: 10px; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 13px; }
.daction i { font-style: normal; width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 10px; font-weight: 700; font-family: var(--mono); }
.daction b { font-size: 12.5px; display: block; margin-bottom: 2px; }
.daction p { font-size: 12.2px; color: var(--text-2); line-height: 1.6; }
.daction .who { font-size: 10.5px; color: var(--muted); margin-top: 5px; display: flex; gap: 12px; }

.dbullet { display: grid; gap: 8px; padding: 0; margin: 0; }
.dbullet li { list-style: none; font-size: 12.8px; line-height: 1.66; color: var(--text-2); padding-left: 16px; position: relative; }
.dbullet li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: 0.75; }
.dbullet b { color: var(--text); }

.table-wrap { overflow: auto; max-height: 420px; border-radius: 8px; }

/* ---- 设置 / 标签页 ---- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 14px;
  font-size: 12.5px; color: var(--muted); margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

.settings-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.settings-head .note { max-width: 620px; }

.account-list { display: grid; gap: 12px; }
.account-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.account-card__head { display: flex; align-items: center; gap: 11px; }
.account-card__id { display: grid; gap: 2px; min-width: 0; }
.account-card__id b { font-size: 13px; display: flex; align-items: baseline; gap: 7px; }
.account-card__id b .mono { font-size: 11px; color: var(--muted); font-weight: 400; }
.account-card__id > span { font-size: 11.5px; color: var(--muted); }
.account-card__head .badge, .account-card__head .link-btn { margin-left: auto; }
.account-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.perm-mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.link-btn { background: none; border: 0; padding: 0; font-size: 11.5px; color: var(--text-2); }
.link-btn:hover { color: var(--text); text-decoration: underline; }
.link-btn.danger { color: var(--danger); }
.pmod:disabled { opacity: 0.6; cursor: default; }

.field__label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 7px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal__text { font-size: 13px; color: var(--text-2); line-height: 1.65; }

/* ---- 弹层 ---- */
.modal {
  position: fixed; z-index: 80; left: 50%; top: 50%;
  width: min(560px, 92vw); max-height: 86vh; overflow: auto;
  transform: translate(-50%, -46%) scale(0.98); opacity: 0; pointer-events: none;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 40px 90px -40px #000; transition: 0.22s cubic-bezier(0.22, 0.8, 0.24, 1);
}
.modal.is-on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal__head h3 { font-size: 15px; font-weight: 600; }
.modal__body { padding: 18px 20px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--panel); border-radius: 0 0 16px 16px; }

/* ---- 响应式补充 ---- */
@media (max-width: 1180px) {
  .toolbar { top: 61px; padding: 9px 18px; }
  .toolbar__info { width: 100%; margin-left: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .seg__btn i { display: none; }
}
@media (max-width: 900px) {
  .store__name { max-width: 46vw; }
  .coverage-chip { display: none; }
}
@media (max-width: 760px) {
  .toolbar { position: static; padding: 9px 14px; gap: 8px; }
  .toolbar__divider { display: none; }
  .seg { flex: 1 1 100%; justify-content: space-between; }
  .seg__btn { flex: 1; text-align: center; padding: 7px 6px; }
  .seg__btn i { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .detail-head h1 { font-size: 20px; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); gap: 10px 8px; }
  .store__name { max-width: 100%; font-size: 12.5px; }
  .store__cat { max-width: 100%; }
  .store__meta { flex: 1 1 auto; }
  .toolbar__info i { display: none; }
  .toolbar__info { font-size: 11px; }
  .detail-grid { gap: 12px; }
}

/* ==========================================================================
   3.0 · 数据 / 运营 / CRM / ERP · 视觉与动效规约
   ========================================================================== */

/* 卡片质感：1px 顶光 + 分层阴影（只用 transform / opacity 做动效） */
.card {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 40px -32px rgba(0, 0, 0, 0.9);
}
.card::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  pointer-events: none;
}
.card.is-clickable { transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease, box-shadow 200ms ease; }
.card.is-clickable:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -34px rgba(0, 0, 0, 1), 0 0 0 1px rgba(255, 106, 43, 0.12); }
.card.is-clickable:active { transform: translateY(-1px); }

/* 四宫格指标条 */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.tile {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 15px; display: grid; gap: 1px;
  animation: rise 400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.tile span { font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }
.tile b { font-size: 25px; font-weight: 650; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.tile i { font-style: normal; font-size: 10.5px; color: var(--muted); }

/* 待处理清单 */
.todo-list { display: grid; gap: 1px; }
.todo-row {
  display: grid; grid-template-columns: 8px minmax(0, 1fr) minmax(0, 0.9fr) auto auto;
  gap: 12px; align-items: center; padding: 11px 8px; border-radius: 8px; cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
  transition: background 160ms ease;
}
.todo-row:last-child { border-bottom: 0; }
.todo-row:hover { background: var(--panel-2); }
.todo-row__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.todo-row__dot[data-level="danger"] { background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 92, 97, 0.14); }
.todo-row__dot[data-level="warn"] { background: var(--warn); }
.todo-row__dot[data-level="opp"] { background: var(--teal); }
.todo-row__dot[data-level="info"] { background: var(--info); }
.todo-row__title { font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-row__meta { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-row__val { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); white-space: nowrap; }

/* 指标条里的迷你涨跌 */
.metric-strip .micro { display: block; margin-top: 2px; }
.metric-strip .micro .delta { font-size: 10px; padding: 0 4px; }

/* ERP 主链路 */
.code {
  font-family: var(--mono); font-size: 10px; color: var(--brand);
  border: 1px solid rgba(255, 106, 43, 0.35); border-radius: 5px; padding: 1px 5px;
}
.erp-meta { display: flex; gap: 18px; margin-top: 10px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.erp-meta b { color: var(--text); font-weight: 600; }

.tier-list { display: grid; gap: 8px; }
.tier {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 15px;
}
.tier__badge {
  font-family: var(--mono); font-size: 11px; color: var(--brand); text-align: center;
  border: 1px solid rgba(255, 106, 43, 0.35); border-radius: 6px; padding: 3px 0;
}
.tier__main b { font-size: 12.5px; display: block; }
.tier__main span { font-size: 11px; color: var(--muted); }
.tier__note { font-size: 10.5px; color: var(--muted); white-space: nowrap; }

/* 会话气泡 */
.chat { display: grid; gap: 10px; max-height: 560px; overflow: auto; padding-right: 4px; }
.bubble {
  max-width: 80%; background: var(--panel-2); border: 1px solid var(--line-soft);
  border-radius: 12px 12px 12px 4px; padding: 8px 12px;
  animation: rise 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.bubble.is-mine {
  margin-left: auto; background: var(--brand-soft);
  border-color: rgba(255, 106, 43, 0.22); border-radius: 12px 12px 4px 12px;
}
.bubble__meta { font-size: 9.5px; color: var(--muted); display: block; margin-bottom: 2px; }
.bubble p { font-size: 12.5px; line-height: 1.6; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }

@media (prefers-reduced-motion: reduce) {
  .card, .tile, .bubble, .todo-row, .kpi { animation: none !important; transition: none !important; }
}

@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .todo-row { grid-template-columns: 8px minmax(0, 1fr) auto; }
  .todo-row__meta { display: none; }
}
@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile b { font-size: 21px; }
  .tier { grid-template-columns: 40px minmax(0, 1fr); }
  .tier__note { display: none; }
  .bubble { max-width: 92%; }
}

/* ==========================================================================
   4.0 · 科技感底纹 / CRM 与 ERP 组件
   ========================================================================== */

/* ---- 侧栏：宽栏 + 可展开分组 ---- */
.app { grid-template-columns: 212px 1fr; }
.rail { width: 212px; align-items: stretch; padding: 16px 12px 14px; }
.rail__brand { display: flex; align-items: center; gap: 9px; padding: 0 4px 4px; }
.rail__logo {
  width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); border: 1px solid rgba(255, 106, 43, 0.3);
}
.rail__logo svg { width: 15px; height: 15px; }
.rail__brand-text { font-size: 11.5px; letter-spacing: 0.14em; color: var(--text-2); }
.rail__nav { margin-top: 16px; display: grid; gap: 3px; width: 100%; padding: 0; flex: 1; overflow-y: auto; }
.nav-group { display: grid; }
.nav-head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 10px; border: 0; background: none;
  color: var(--text-2); font-size: 13px; text-align: left;
  transition: background 160ms ease, color 160ms ease;
}
.nav-head svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.nav-head:hover { background: var(--panel-2); color: var(--text); }
.nav-head.is-active { background: var(--brand-soft); color: var(--brand); }
.nav-head .caret { margin-left: auto; font-size: 9px; color: var(--muted); transition: transform 160ms ease; }
.nav-group.is-open .nav-head .caret { transform: rotate(90deg); }
.nav-sub { display: none; gap: 2px; padding: 2px 0 6px 34px; }
.nav-group.is-open .nav-sub { display: grid; }
.nav-item {
  border: 0; background: none; text-align: left; font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 6px 8px; border-radius: 7px; position: relative;
  transition: background 140ms ease, color 140ms ease;
}
.nav-item:hover { color: var(--text); background: var(--panel-2); }
.nav-item.is-active { color: var(--brand); background: var(--brand-soft); }
.nav-item.is-planned { opacity: .5; cursor: not-allowed; }
.nav-item.is-planned:hover { color: var(--muted); background: none; }
.nav-item .nav-plan { float: right; font-size: 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-left: 6px; }
.nav-item .badge-mini {
  float: right; font-size: 9.5px; font-family: var(--mono); color: var(--danger);
  background: var(--danger-soft); border-radius: 4px; padding: 0 4px; margin-left: 6px;
}
.rail__user {
  margin-top: 10px; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); background: var(--panel); border-radius: 12px;
  padding: 8px 10px; width: 100%; text-align: left;
}
.rail__user-meta { display: grid; line-height: 1.3; min-width: 0; }
.rail__user-meta b { font-size: 12px; font-weight: 550; }
.rail__user-meta i { font-style: normal; font-size: 10.5px; color: var(--muted); }

/* ---- 科技感底纹 ---- */
.main { position: relative; }
.main::before {
  content: ""; position: fixed; inset: 0 0 0 212px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(58% 36% at 82% -8%, rgba(255, 106, 43, 0.09), transparent 62%),
    radial-gradient(42% 32% at 4% 104%, rgba(47, 217, 168, 0.06), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 72px 72px;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
html[data-theme="light"] .main::before {
  background:
    radial-gradient(58% 36% at 82% -8%, rgba(255, 106, 43, 0.08), transparent 62%),
    linear-gradient(rgba(20, 22, 28, 0.03) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(90deg, rgba(20, 22, 28, 0.03) 1px, transparent 1px) 0 0 / 72px 72px;
}
.topbar { position: relative; z-index: 3; }
.toolbar { z-index: 17; }
.view { position: relative; z-index: 0; }

/* ---- 份额环 ---- */
.gauges { display: flex; gap: 18px; flex-wrap: wrap; }
.gauge { display: grid; justify-items: center; gap: 6px; }
.gauge__ring {
  width: 86px; height: 86px; border-radius: 50%; position: relative;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--panel-3) 0);
  display: grid; place-content: center;
}
.gauge__ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--panel); }
.gauge__ring b { position: relative; z-index: 1; font-size: 15px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gauge__label { font-size: 11px; color: var(--muted); }
.gauge--teal .gauge__ring { background: conic-gradient(var(--teal) calc(var(--p) * 1%), var(--panel-3) 0); }

/* ---- 筛选 chips ---- */
.pill-row { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.pill {
  border: 1px solid var(--line); background: var(--panel); border-radius: 99px;
  padding: 5px 12px; font-size: 11.5px; color: var(--text-2); transition: 160ms ease;
}
.pill:hover { border-color: rgba(255, 255, 255, 0.22); }
.pill.is-on { background: var(--brand-soft); border-color: rgba(255, 106, 43, 0.4); color: var(--brand); }
.pill b { font-family: var(--mono); font-size: 10.5px; margin-left: 5px; color: var(--muted); }
.pill.is-on b { color: var(--brand); }

/* ---- CRM 客户卡 ---- */
.cust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cust-card {
  border: 1px solid var(--line); background: var(--panel); border-radius: 12px;
  padding: 11px 13px; display: grid; gap: 6px; transition: 160ms ease; cursor: pointer;
}
.cust-card:hover { border-color: rgba(255, 106, 43, 0.32); transform: translateY(-2px); }
.cust-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cust-card__top b { font-size: 12.5px; }
.cust-card__top span { font-size: 10.5px; color: var(--muted); font-family: var(--mono); }
.cust-card__tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag-mini { font-size: 9.5px; padding: 1px 6px; border-radius: 4px; background: var(--panel-3); color: var(--text-2); }
.tag-mini.hot { background: var(--brand-soft); color: var(--brand); }

/* ---- ERP 产品化 ---- */
.erp-field { display: grid; gap: 4px; }
.erp-field span { font-size: 10.5px; color: var(--muted); }
.erp-field input, .erp-field select {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font-size: 12.5px; padding: 7px 9px; outline: none; font-variant-numeric: tabular-nums;
}
.erp-field input:focus, .erp-field select:focus { border-color: rgba(255, 106, 43, 0.5); }
.erp-out {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  background: linear-gradient(120deg, var(--brand-soft), transparent 70%);
  border: 1px solid rgba(255, 106, 43, 0.22); border-radius: 10px; padding: 11px 13px;
}
.erp-out div { display: grid; gap: 1px; }
.erp-out i { font-style: normal; font-size: 10px; color: var(--muted); }
.erp-out b { font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.erp-note { font-size: 10.5px; color: var(--muted); }
/* ---- 响应式：窄屏折叠为图标栏 ---- */
@media (max-width: 1180px) {
  .app { grid-template-columns: 64px 1fr; }
  .rail { width: 64px; padding: 14px 8px; align-items: center; }
  .rail__brand-text, .nav-head span, .nav-head .caret, .nav-sub, .rail__user-meta { display: none; }
  .rail__brand { justify-content: center; padding: 0; }
  .nav-head { justify-content: center; padding: 10px 0; }
  .rail__nav { justify-items: center; }
  .rail__user { justify-content: center; padding: 6px; width: auto; }
  .main::before { inset: 0 0 0 64px; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .rail {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%; height: 60px;
    flex-direction: row; align-items: center; padding: 6px 10px; gap: 4px;
    border-right: 0; border-top: 1px solid var(--line); z-index: 30;
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px);
  }
  .rail__brand { display: none; }
  .rail__nav { display: flex; flex: 1; margin: 0; gap: 2px; justify-content: space-around; overflow: visible; }
  .nav-group { flex: 1; }
  .nav-head { flex-direction: column; gap: 3px; padding: 6px 0; }
  .nav-sub { display: none !important; }
  .rail__user { display: none; }
  .main::before { inset: 0; }
  .view { padding-bottom: 84px; }
  .erp-out { grid-template-columns: 1fr 1fr; }
}

/* 新老客结构条 */
.splitbar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--panel-3); margin-top: 13px; }
.splitbar span { display: block; height: 100%; background: linear-gradient(90deg, rgba(255, 106, 43, .45), var(--brand)); }
.split-legend { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; font-size: 10.5px; color: var(--muted); flex-wrap: wrap; }
.split-legend i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; margin-right: 5px; }
.split-legend .dot-old { background: var(--brand); }
.split-legend .dot-new { background: var(--panel-3); border: 1px solid var(--line); }

/* 行业景气条 */
.spark-strip { display: grid; gap: 5px; margin-top: 14px; }
.spark-strip__item { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: center; font-size: 10.5px; color: var(--muted); }
.spark-strip__item em { display: block; height: 5px; border-radius: 99px; background: linear-gradient(90deg, rgba(47, 217, 168, .5), var(--teal)); }

/* 移动端：底部导航固定可见 */
@media (max-width: 760px) {
  .rail__nav { display: flex !important; }
  .nav-group { display: block; }
  .nav-head { display: flex; flex-direction: column; gap: 3px; padding: 6px 0; }
  .nav-head svg { width: 19px; height: 19px; }
  .nav-head span { display: block !important; font-size: 9px; color: var(--muted); }
  .nav-head.is-active span { color: var(--brand); }
}

.nav-head.has-alert::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--danger);
  margin-left: 6px; box-shadow: 0 0 0 3px rgba(255, 92, 97, 0.16);
}

/* ==========================================================================
   5.0 · 弹层定位 / 预警实体 / 客户分层
   ========================================================================== */

/* 自定义时间弹层：独立于 sticky 工具栏，避免被遮挡 */
.popover {
  position: fixed; z-index: 96; width: 268px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  display: grid; gap: 10px;
  max-height: min(70vh, 420px); overflow: auto; overscroll-behavior: contain;
  animation: pop 160ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.popover[hidden] { display: none; }
.popover__head { font-size: 12px; font-weight: 600; color: var(--text); }
.popover .field span { font-size: 11px; }
.popover .field input {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; color: var(--text); font-family: var(--mono); font-size: 12px; padding: 7px 9px;
}
.popover__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }

/* 两列指标条 */
.metric-strip--2 { grid-template-columns: repeat(2, 1fr); }

/* 预警关联对象 */
.entity-block { margin-top: 14px; display: grid; gap: 6px; }
.entity-block > b { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.entity-row {
  display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px 10px;
  align-items: baseline; padding: 7px 9px; border-radius: 8px;
  background: var(--panel-2); border: 1px solid var(--line-soft);
  text-decoration: none; color: var(--text-2);
}
.entity-row:hover { border-color: rgba(255, 106, 43, 0.35); color: var(--text); }
.entity-row__type { font-size: 9.5px; color: var(--muted); }
.entity-row__id { font-family: var(--mono); font-size: 10.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entity-row__label { grid-column: 2; font-size: 11px; color: var(--muted); }

/* 客户分层卡 */
.layer-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cust-panels { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.cust-panel {
  border: 1px solid var(--line); background: var(--panel); border-radius: 14px;
  padding: 14px 16px; display: grid; gap: 10px;
  border-top: 2px solid var(--line);
}
.cust-panel[data-level="danger"] { border-top-color: var(--danger); }
.cust-panel[data-level="ok"] { border-top-color: var(--teal); }
.cust-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cust-panel__head b { font-size: 13.5px; display: block; }
.cust-panel__head .mono { font-size: 10px; color: var(--muted); display: block; margin-top: 2px; }
.cust-panel__score { font-family: var(--mono); font-size: 20px; font-weight: 650; color: var(--text); }
.cust-panel__score i { font-style: normal; font-size: 10px; color: var(--muted); margin-left: 2px; }
.cust-profile { margin: 0; padding: 0; display: grid; gap: 4px; }
.cust-profile li { list-style: none; font-size: 11.5px; color: var(--text-2); line-height: 1.55; }
.cust-flags { display: flex; flex-wrap: wrap; gap: 5px; }
.flag { font-size: 10px; padding: 2px 7px; border-radius: 5px; }
.flag--danger { background: var(--danger-soft); color: var(--danger); }
.flag--ok { background: var(--teal-soft); color: var(--teal); }
.flag--muted { background: rgba(255, 255, 255, 0.05); color: var(--muted); border: 1px solid var(--line-soft); }
.cust-script { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; }
.cust-script__title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.cust-script p { font-size: 12px; line-height: 1.6; color: var(--text-2); }

/* 5.1 · 客户画像 / 处理建议 / 明细入口 */
.fact-grid { margin-top: 10px; display: grid; gap: 6px; }
.fact { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.fact i { font-style: normal; font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; }
.fact span { font-size: 11.5px; color: var(--text-2); line-height: 1.55; }

.advice-block {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px; display: grid; gap: 8px;
  background: linear-gradient(180deg, rgba(90, 169, 255, 0.09), rgba(90, 169, 255, 0.02));
  border: 1px solid rgba(90, 169, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.advice-block > b { font-size: 11px; color: var(--info); letter-spacing: 0.08em; }
.advice-row { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: start; }
.advice-row__tag {
  font-size: 10px; padding: 2px 6px; border-radius: 6px; text-align: center;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-soft); color: var(--text-2);
}
.advice-row em { font-style: normal; font-size: 11.5px; color: var(--text); display: block; }
.advice-row p { font-size: 11.5px; color: var(--text-2); line-height: 1.6; margin: 2px 0 0; }

.todo-row__more {
  font-size: 10.5px; color: var(--muted); white-space: nowrap; opacity: 0;
  transform: translateX(-4px); transition: opacity 160ms cubic-bezier(0.16, 1, 0.3, 1), transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.todo-row:hover .todo-row__more, .todo-row:focus-visible .todo-row__more { opacity: 1; transform: translateX(0); }

.mini-list__row--act { cursor: pointer; transition: background 160ms ease; }
.mini-list__row--act:hover { background: var(--panel-2); }
.mini-list__more { margin-left: auto; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.cust-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .todo-row__more { transition: none; transform: none; }
}

/* 5.2 · 客户画像分布条 */
.dist { display: grid; gap: 7px; }
.dist-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 84px; gap: 10px; align-items: center; }
.dist-k { font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dist-track { height: 6px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.dist-track i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, rgba(90, 169, 255, 0.85), rgba(46, 196, 182, 0.75));
  transition: width 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.dist-v { font-family: var(--mono); font-size: 11px; color: var(--text); text-align: right; white-space: nowrap; }
.dist-v em { font-style: normal; color: var(--muted); margin-left: 5px; font-size: 10px; }
@media (prefers-reduced-motion: reduce) { .dist-track i { transition: none; } }

/* 5.3 · ERP 细分模块：入口卡片 / 报价内嵌 / 占位 */
.mod-grid--erp { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
.mod-tile {
  display: grid; gap: 5px; padding: 13px 14px; text-align: left; font: inherit; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease, background 180ms ease;
}
.mod-tile:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.2); background: var(--panel); }
.mod-tile--ready { border-color: rgba(47, 217, 168, 0.32); background: linear-gradient(180deg, rgba(47, 217, 168, 0.07), var(--panel-2)); }
.mod-tile__state { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }
.mod-tile--ready .mod-tile__state { color: var(--ok); }
.mod-tile b { font-size: 13px; color: var(--text); font-weight: 550; }
.mod-tile em { font-style: normal; font-size: 11px; color: var(--muted); line-height: 1.5; }

.quote-frame { padding: 0; overflow: hidden; }
.quote-frame iframe {
  display: block; width: 100%; border: 0; background: #f7f6f3;
  height: calc(100vh - 232px); min-height: 620px;
}

.placeholder { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 44px 24px 40px; }
.placeholder__icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--panel-2);
}
.placeholder__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linejoin: round; }
.placeholder h3 { font-size: 16px; font-weight: 550; }
.placeholder p { max-width: 560px; font-size: 12.5px; line-height: 1.75; color: var(--text-2); }
.placeholder__facts { width: 100%; max-width: 620px; display: grid; gap: 8px; margin-top: 6px; text-align: left; }
.placeholder__facts div {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px;
  padding: 10px 12px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line-soft);
}
.placeholder__facts i { font-style: normal; font-size: 11px; color: var(--muted); }
.placeholder__facts span { font-size: 11.5px; color: var(--text-2); line-height: 1.6; }

/* 5.4 · 客户分层筛选栏 */
.filterbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel-2);
}
.filterbar__q {
  flex: 0 0 240px; height: 30px; padding: 0 10px; font: inherit; font-size: 12px;
  color: var(--text); background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; outline: none;
}
.filterbar__q:focus { border-color: rgba(90, 169, 255, 0.5); }
.filterbar__q::placeholder { color: var(--muted); }
.filterbar__chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1 1 auto; }
.chip {
  height: 26px; padding: 0 10px; border-radius: 99px; font: inherit; font-size: 11px;
  color: var(--text-2); background: transparent; border: 1px solid var(--line); cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.chip:hover { color: var(--text); background: var(--panel); }
.chip.is-on { color: var(--text); background: rgba(90, 169, 255, 0.16); border-color: rgba(90, 169, 255, 0.42); }
.filterbar__sort {
  height: 30px; padding: 0 8px; font: inherit; font-size: 11.5px; color: var(--text-2);
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; outline: none; cursor: pointer;
}

/* 5.5 · 口径提示 */
.caliber {
  margin: 2px 0 0; padding: 8px 12px; border-radius: 9px; font-size: 11.5px; line-height: 1.6;
  color: var(--text-2); background: rgba(90, 169, 255, 0.08);
  border: 1px solid rgba(90, 169, 255, 0.18); border-left: 2px solid var(--info);
}

.filterbar__label {
  font-size: 10px; color: var(--muted); letter-spacing: 0.06em;
  align-self: center; margin-right: -2px;
}
.card__more {
  display: inline-block; margin-top: 10px; font-size: 11px; color: var(--muted);
  text-decoration: none; transition: color 160ms ease;
}
.card__more:hover { color: var(--text); }

/* 5.6 · 研发署名 */
.signature {
  position: fixed; right: 16px; bottom: 40px; z-index: 4;
  font-size: 10.5px; letter-spacing: 0.02em; color: var(--muted);
  opacity: 0.55; pointer-events: none; user-select: none;
  padding: 3px 8px; border-radius: 7px;
  background: rgba(10, 13, 17, 0.4); backdrop-filter: blur(6px);
}
.settings-sign {
  margin-top: 18px; padding: 14px 16px; border-radius: 12px; display: grid; gap: 4px;
  border: 1px solid var(--line); background: var(--panel-2);
}
.settings-sign span { font-size: 10px; color: var(--muted); letter-spacing: 0.08em; }
.settings-sign b { font-size: 13px; color: var(--text); font-weight: 550; letter-spacing: 0.01em; }
.settings-sign em { font-style: normal; font-size: 11px; color: var(--muted); line-height: 1.6; }
@media (max-width: 860px) { .signature { display: none; } }

/* 6.0 · 待办事项 */
.nav-badge {
  margin-left: auto; min-width: 18px; height: 16px; padding: 0 5px; border-radius: 99px;
  font-style: normal; font-size: 10px; line-height: 16px; text-align: center;
  color: #0b0f14; background: var(--teal); font-weight: 600;
}
.nav-head--todo { position: relative; }

.todo-snapshot {
  font-size: 11.5px; color: var(--muted); margin: -4px 0 10px;
  border-bottom: 1px dotted var(--muted); display: inline-block; cursor: help;
}
.todo-hero {
  display: grid; grid-template-columns: 108px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 16px 18px; margin-bottom: 14px; border-radius: 14px;
  border: 1px solid var(--line); background:
    radial-gradient(120% 160% at 0% 0%, rgba(46, 196, 182, 0.10), transparent 55%),
    var(--panel);
}
.todo-hero__ring { position: relative; width: 88px; height: 88px; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; width: 88px; height: 88px; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 5; }
.ring__fill {
  fill: none; stroke: var(--teal); stroke-width: 5; stroke-linecap: round;
  transition: stroke-dashoffset 720ms cubic-bezier(0.16, 1, 0.3, 1);
}
.todo-hero__pct { text-align: center; line-height: 1.1; }
.todo-hero__pct b { font-size: 20px; font-family: var(--mono); color: var(--text); }
.todo-hero__pct i { font-style: normal; font-size: 10px; color: var(--muted); }
.todo-hero__pct span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; letter-spacing: 0.06em; }

.todo-hero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.todo-kpi {
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--panel-2);
  display: grid; gap: 3px;
}
.todo-kpi i { font-style: normal; font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; }
.todo-kpi b { font-size: 19px; font-family: var(--mono); color: var(--text); }
.todo-kpi--overdue b { color: var(--danger); }
.todo-kpi--done b { color: var(--teal); }
.todo-hero__act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.todo-cards { display: grid; gap: 10px; }
.todo-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  animation: todoIn 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease, box-shadow 180ms ease;
}
.todo-card:hover {
  transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.8);
}
.todo-card.is-done { opacity: 0.62; }
.todo-card.is-over { border-left: 2px solid var(--danger); }
@keyframes todoIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.todo-card__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.todo-card__title b { font-size: 13px; font-weight: 550; }
.todo-card__dot { width: 7px; height: 7px; border-radius: 99px; flex: 0 0 auto; }
.todo-card__dot--pending { background: var(--warn); }
.todo-card__dot--doing { background: var(--info); animation: pulse 1.8s ease-in-out infinite; }
.todo-card__dot--done { background: var(--teal); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(90, 169, 255, 0.5); } 50% { box-shadow: 0 0 0 5px rgba(90, 169, 255, 0); } }
.todo-card__note { font-size: 11.5px; color: var(--text-2); line-height: 1.6; margin: 6px 0 0; }
.todo-card__meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 10.5px; color: var(--muted); }
.todo-card__meta b { color: var(--text-2); font-weight: 500; }
.todo-card__meta .is-over { color: var(--danger); }
.todo-card__side { display: flex; gap: 8px; align-items: center; }
.todo-status-select {
  height: 28px; padding: 0 8px; font: inherit; font-size: 11px; color: var(--text-2);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.pri-high { color: var(--danger); border-color: rgba(226, 92, 92, 0.35); }
.pri-low { color: var(--muted); }

.ch-list { display: grid; gap: 8px; }
.ch-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-size: 12px;
}
.ch-item input { accent-color: var(--teal); }

@media (max-width: 1100px) {
  .todo-hero { grid-template-columns: 88px minmax(0, 1fr); }
  .todo-hero__act { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .todo-card { animation: none; transition: none; }
  .todo-card__dot--doing { animation: none; }
  .ring__fill { transition: none; }
}

/* 6.1 · 首次运行引导 */
.setup { display: grid; gap: 18px; padding: 22px 24px; }
.setup__head { display: grid; gap: 8px; }
.setup__badge {
  justify-self: start; font-size: 10.5px; letter-spacing: 0.08em; padding: 3px 9px; border-radius: 99px;
  color: var(--warn); background: rgba(232, 176, 75, 0.12); border: 1px solid rgba(232, 176, 75, 0.3);
}
.setup__head p { font-size: 12.5px; color: var(--text-2); line-height: 1.75; max-width: 760px; }
.setup__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.setup__steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.setup__steps i {
  font-style: normal; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  font-size: 11px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
}
.setup__steps b { font-size: 12.5px; }
.setup__steps p { font-size: 11.5px; color: var(--text-2); line-height: 1.7; margin-top: 3px; }
.setup__steps code, .setup__path code {
  font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.06); color: var(--text);
}
.setup__path {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--line); background: var(--panel-2);
}
.setup__path span { font-size: 10.5px; color: var(--muted); letter-spacing: 0.05em; }
.setup__act { display: flex; gap: 10px; flex-wrap: wrap; }

/* 明细表分页条 */
.pager {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 10px 14px 14px; font-size: 11.5px; color: var(--text-2);
}
.pager span { margin-right: auto; }
.pager button:disabled { opacity: 0.42; cursor: not-allowed; }

/* ICP 备案号：全站底部常驻，链接工信部 */
.icp-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
  padding: 6px 12px; text-align: center;
  font-size: 11px; color: var(--muted);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
}
.icp-bar a { color: inherit; text-decoration: none; }
.icp-bar a:hover, .icp-bar a:focus-visible { color: var(--text); text-decoration: underline; }
@media (max-width: 760px) { .icp-bar { bottom: 62px; } }
