/* 熹合里礼 GEO · Pureblue 风格暗紫界面 */
:root {
  --bg: #07070c;
  --bg-soft: #0b0b15;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --panel-solid: #10101b;
  --line: rgba(191, 201, 255, 0.14);
  --line-soft: rgba(191, 201, 255, 0.08);
  --text: #eef0ff;
  --text-soft: #c3c7e6;
  --muted: #858bb0;
  --violet: #7a5dff;
  --violet-2: #a78bfa;
  --violet-dim: rgba(122, 93, 255, 0.18);
  --cyan: #4cd6ff;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #fb7185;
  --radius: 20px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  background:
    radial-gradient(900px 620px at 8% -8%, rgba(122, 93, 255, 0.28), transparent 62%),
    radial-gradient(760px 520px at 92% 2%, rgba(76, 214, 255, 0.12), transparent 58%),
    radial-gradient(1000px 800px at 50% 120%, rgba(122, 93, 255, 0.1), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(122, 93, 255, 0.45); color: #fff; }

a { color: var(--violet-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
  padding: 0 28px;
  background: rgba(7, 7, 12, 0.72);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #7a5dff 10%, #4cd6ff 100%);
  box-shadow: 0 8px 26px rgba(122, 93, 255, 0.4);
}

.brand-text h1 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 0.04em; }
.brand-text p { margin: 0; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }

.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.tabs::-webkit-scrollbar { display: none; }

.tabs button {
  position: relative;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.tabs button:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.tabs button.active {
  color: #fff;
  background: var(--violet-dim);
  border-color: rgba(122, 93, 255, 0.4);
  box-shadow: 0 0 22px rgba(122, 93, 255, 0.22) inset;
}

.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 999px;
  font-size: 10.5px;
  background: rgba(251, 113, 133, 0.18);
  color: #ffb3c0;
}

.status { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.stage-badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #d9d2ff;
  background: rgba(122, 93, 255, 0.16);
  border: 1px solid rgba(122, 93, 255, 0.35);
  white-space: nowrap;
}

/* ---------- layout ---------- */

.view { max-width: 1340px; margin: 0 auto; padding: 34px 28px 90px; }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 12px; }

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 36px 0 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.section-title:first-child { margin-top: 0; }
.section-title .aside { font-size: 12px; font-weight: 400; color: var(--muted); }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.help { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.empty-state { color: var(--muted); font-size: 13px; margin: 12px 0; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 44px 38px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(680px 320px at 12% 0%, rgba(122, 93, 255, 0.32), transparent 62%),
    radial-gradient(480px 260px at 88% 18%, rgba(76, 214, 255, 0.14), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.28;
  mask-image: linear-gradient(120deg, #000 10%, transparent 62%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: #cfc6ff;
  background: rgba(122, 93, 255, 0.14);
  border: 1px solid rgba(122, 93, 255, 0.32);
}
.hero .eyebrow i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.hero h2 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 600;
  background: linear-gradient(100deg, #ffffff 12%, #c8bbff 48%, #8fe7ff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { max-width: 760px; margin: 0; color: var(--text-soft); font-size: 15px; }
.hero .hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.hero-pill b { color: #fff; font-weight: 600; }

/* ---------- metric cards ---------- */

.metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.metrics.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metrics.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.metric {
  position: relative;
  padding: 20px 20px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018));
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.metric:hover { transform: translateY(-2px); border-color: rgba(122, 93, 255, 0.4); }
.metric.highlight {
  border-color: rgba(122, 93, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(122, 93, 255, 0.18), 0 20px 50px rgba(122, 93, 255, 0.14);
  background: linear-gradient(170deg, rgba(122, 93, 255, 0.2), rgba(255, 255, 255, 0.02));
}
.metric .label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.metric .value {
  margin: 8px 0 4px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #ffffff, #b9adff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric .value small { font-size: 13px; font-weight: 400; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.metric .sub { font-size: 11.5px; color: var(--muted); }

/* ---------- pipeline ---------- */

.pipeline { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.pipe-step {
  flex: 1;
  min-width: 120px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  position: relative;
}
.pipe-step:first-child { border-radius: 16px 0 0 16px; }
.pipe-step:last-child { border-radius: 0 16px 16px 0; }
.pipe-step + .pipe-step { border-left: none; }
.pipe-step .k { font-size: 11.5px; color: var(--muted); }
.pipe-step .v { font-size: 24px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pipe-step.accent .v { color: var(--violet-2); }

/* ---------- cards ---------- */

.card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
}
.card-head h3 { margin: 0; font-size: 14.5px; font-weight: 600; }
.card-head p { margin: 2px 0 0; }
.card-body { padding: 20px 22px; }
.card-body.tight { padding: 12px 16px; }

/* ---------- buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.12s, box-shadow 0.18s;
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(191, 201, 255, 0.28); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.42; cursor: not-allowed; transform: none; }

.btn.primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(120deg, #7a5dff, #9d7bff 60%, #6fb6ff);
  box-shadow: 0 10px 30px rgba(122, 93, 255, 0.35);
}
.btn.primary:hover { background: linear-gradient(120deg, #8a70ff, #ac8dff 60%, #82c2ff); box-shadow: 0 12px 36px rgba(122, 93, 255, 0.48); }

.btn.ghost { background: transparent; }
.btn.small { padding: 6px 12px; font-size: 12px; }
.btn.gold { border-color: rgba(76, 214, 255, 0.4); color: #a9ecff; background: rgba(76, 214, 255, 0.08); }
.btn.gold:hover { background: rgba(76, 214, 255, 0.16); }
.btn.danger { border-color: rgba(251, 113, 133, 0.35); color: #ffb3c0; }
.btn.danger:hover { background: rgba(251, 113, 133, 0.12); }

/* ---------- forms ---------- */

.field { margin-bottom: 16px; }
.field > label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

input, select, textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 5, 12, 0.62);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
input::placeholder, textarea::placeholder { color: #5d617f; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(122, 93, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(122, 93, 255, 0.16);
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8b91b5 50%), linear-gradient(135deg, #8b91b5 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea { resize: vertical; line-height: 1.7; }

.check-list { display: flex; flex-direction: column; gap: 7px; }
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  cursor: pointer;
}
.check-item:hover { border-color: var(--line); background: rgba(255, 255, 255, 0.04); }
.check-item input { width: auto; accent-color: var(--violet); }

/* switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track {
  width: 42px; height: 24px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
  position: relative;
  transition: background 0.2s;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #cfd3ee; transition: transform 0.2s, background 0.2s;
}
.switch input:checked + .track { background: linear-gradient(120deg, #7a5dff, #6fb6ff); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(18px); background: #fff; }
.switch .sw-label { font-size: 12.5px; color: var(--text-soft); }

/* ---------- tags & chips ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1.5;
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}
.tag.green { color: #8ff0c4; background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.32); }
.tag.amber, .tag.orange { color: #ffd98a; background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.32); }
.tag.red { color: #ffb3c0; background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.32); }
.tag.blue { color: #a9ecff; background: rgba(76, 214, 255, 0.1); border-color: rgba(76, 214, 255, 0.3); }
.tag.violet { color: #cdc0ff; background: rgba(122, 93, 255, 0.14); border-color: rgba(122, 93, 255, 0.36); }
.tag.gray { color: var(--muted); }
.tag.owned { color: #8ff0c4; background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.3); }
.tag.earned { color: #a9ecff; background: rgba(76, 214, 255, 0.1); border-color: rgba(76, 214, 255, 0.28); }
.tag.social { color: #cdc0ff; background: rgba(122, 93, 255, 0.14); border-color: rgba(122, 93, 255, 0.34); }
.tag.competitor { color: #ffb3c0; background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.3); }
.tag.unknown { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-soft);
}
.chip.src { border-color: rgba(122, 93, 255, 0.35); background: rgba(122, 93, 255, 0.1); }
.chip-action {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  color: #c9c1ff;
  background: rgba(122, 93, 255, 0.22);
  border-radius: 999px;
  padding: 2px 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.chip-action:hover { background: rgba(122, 93, 255, 0.42); color: #fff; }

/* ---------- tables ---------- */

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: rgba(255, 255, 255, 0.028); }
tbody tr:last-child td { border-bottom: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-soft); }

/* ---------- bars / charts ---------- */

.bars { display: flex; flex-direction: column; gap: 11px; }
.bar-row { display: grid; grid-template-columns: 88px 1fr 42px; align-items: center; gap: 12px; }
.bar-label { font-size: 12px; color: var(--text-soft); }
.bar-track { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7a5dff, #a78bfa); }
.bar-fill.gold { background: linear-gradient(90deg, #4cd6ff, #7ae0ff); }
.bar-fill.olive { background: linear-gradient(90deg, #34d399, #6ee7b7); }
.bar-fill.clay { background: linear-gradient(90deg, #fb7185, #fda4af); }
.bar-fill.brown { background: linear-gradient(90deg, #7a5dff, #4cd6ff); }
.bar-value { text-align: right; font-size: 12px; color: var(--text-soft); font-variant-numeric: tabular-nums; }

.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* ---------- funnel ---------- */

.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 120px 1fr 70px; align-items: center; gap: 14px; }
.funnel-row .fl { font-size: 12.5px; color: var(--text-soft); }
.funnel-row .ft { height: 30px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.funnel-row .ff {
  height: 100%;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(122, 93, 255, 0.85), rgba(76, 214, 255, 0.55));
  min-width: 3px;
  transition: width 0.5s ease;
}
.funnel-row .fv { text-align: right; font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- insight ---------- */

.insight {
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  gap: 22px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(122, 93, 255, 0.3);
  background:
    radial-gradient(420px 160px at 10% 0%, rgba(122, 93, 255, 0.2), transparent 65%),
    rgba(255, 255, 255, 0.03);
}
.insight .kicker { font-size: 10.5px; letter-spacing: 0.18em; color: var(--violet-2); }
.insight h3 { margin: 8px 0 4px; font-size: 22px; font-weight: 600; }
.insight .targets { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* ---------- matrix ---------- */

.matrix-wrap { overflow-x: auto; padding: 8px 14px 16px; }
.matrix th, .matrix td { padding: 8px 8px; }
.matrix .qcol { min-width: 260px; }
.matrix .qcell { font-size: 12.5px; color: var(--text-soft); max-width: 300px; }
.matrix td { text-align: center; }

.cell-btn {
  width: 100%;
  min-width: 86px;
  padding: 9px 8px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, transform 0.12s;
}
.cell-btn:hover { border-color: rgba(122, 93, 255, 0.45); background: rgba(122, 93, 255, 0.09); transform: translateY(-1px); }
.cell-btn.selected { border-color: rgba(122, 93, 255, 0.7); background: rgba(122, 93, 255, 0.16); box-shadow: 0 0 22px rgba(122, 93, 255, 0.2); }
.cell-btn.empty { opacity: 0.45; cursor: default; }
.cell-btn .cell-main { display: block; font-size: 12px; }
.cell-btn .cell-sub { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }

/* ---------- detail ---------- */

.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 10px; }
.answer-box {
  max-height: 420px;
  overflow: auto;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(4, 4, 10, 0.65);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}

.source-list { display: flex; flex-direction: column; gap: 8px; }
.source-item {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}
.source-rank {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  font-size: 11px;
  color: var(--violet-2);
  background: rgba(122, 93, 255, 0.14);
  border: 1px solid rgba(122, 93, 255, 0.28);
}
.source-title { font-size: 12.5px; color: var(--text-soft); }
.source-url { display: block; font-size: 11px; color: #6f90c9; word-break: break-all; text-decoration: none; }
.source-url:hover { color: var(--cyan); }
.source-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- gap / action cards ---------- */

.gap-card, .action-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s, background 0.18s;
}
.gap-card:hover, .action-card:hover { border-color: rgba(122, 93, 255, 0.35); background: rgba(255, 255, 255, 0.045); }
.gap-sev { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 2px; }
.gap-sev b { font-size: 22px; color: var(--violet-2); line-height: 1; }
.gap-sev span { font-size: 10px; color: var(--muted); letter-spacing: 0.1em; }
.gap-main h4, .action-card h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.gap-main .meta, .action-card .meta { font-size: 11.5px; color: var(--muted); }
.gap-main p { margin: 8px 0; font-size: 12.5px; color: var(--text-soft); }
.gap-main .chips, .action-card .chips { margin-top: 8px; }
.gap-actions { display: flex; flex-direction: column; gap: 8px; }
.action-card { grid-template-columns: 1fr auto; }
.action-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

/* ---------- console ---------- */

.console {
  min-height: 300px;
  max-height: 460px;
  overflow: auto;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: #05050b;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  line-height: 1.75;
  color: #9aa3c7;
  white-space: pre-wrap;
  word-break: break-all;
}
.console .ok { color: #6ee7b7; }
.console .error { color: #fda4af; }
.console .info { color: #a9c6ff; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 90;
  max-width: min(620px, 90vw);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(122, 93, 255, 0.4);
  background: rgba(18, 17, 33, 0.94);
  color: var(--text);
  font-size: 13px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}
.toast.error { border-color: rgba(251, 113, 133, 0.5); color: #ffd2d9; }

/* ---------- footer ---------- */

.colophon {
  max-width: 1340px;
  margin: 0 auto;
  padding: 24px 28px 42px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: #4c5070;
  text-align: center;
  border-top: 1px solid var(--line-soft);
}

/* ---------- static banner ---------- */

.static-banner {
  max-width: 1340px;
  margin: 18px auto 0;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 12.5px;
  color: #cdc0ff;
  background: rgba(122, 93, 255, 0.12);
  border: 1px solid rgba(122, 93, 255, 0.32);
}

/* ---------- screenshot / drafts ---------- */

.shot {
  margin-top: 14px;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.draft-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
}
.draft-card h4 { margin: 0 0 6px; font-size: 14px; }
.draft-card .excerpt {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 1120px) {
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insight { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .topbar { padding: 0 16px; gap: 16px; height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .status { margin-left: auto; }
  .view { padding: 22px 16px 70px; }
  .metrics, .metrics.four, .metrics.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .hero { padding: 28px 22px; }
  .pipeline { flex-wrap: wrap; }
  .pipe-step { min-width: 45%; }
  .pipe-step:nth-child(1) { border-radius: 14px 0 0 0; }
  .pipe-step:nth-child(2) { border-radius: 0 14px 0 0; }
  .pipe-step:nth-child(3) { border-radius: 0 0 0 14px; border-left: 1px solid var(--line); border-top: none; }
  .pipe-step:nth-child(4) { border-radius: 0 0 14px 0; border-top: none; }
  .funnel-row { grid-template-columns: 84px 1fr 56px; }
}
