*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: light;
  --bg: #e8e9ea;
  --card: #fff;
  --card-soft: #f5f6f6;
  --card-softer: #fafbfb;
  --primary: #0f7c4d;
  --primary-2: #0a6640;
  --hero-dark: #0a4027;
  --hero-dark2: #0d5a36;
  --accent: #4ba373;
  --ink: #111827;
  --ink2: #374151;
  --ink3: #6b7280;
  --ink4: #64748b;
  --border: #e5e7eb;
  --border2: #eef0f1;
  --good: #0f7c4d;
  --good-bg: #dcf0e5;
  --good-bd: #b7dfc6;
  --warn: #b47318;
  --warn-bg: #fbefd7;
  --warn-bd: #ecd89d;
  --review: #2563eb;
  --review-bg: #dbeafe;
  --review-bd: #bfdbfe;
  --test: #7c3aed;
  --test-bg: #ede9fe;
  --test-bd: #ddd6fe;
  --moderate: #c2410c;
  --moderate-bg: #ffedd5;
  --moderate-bd: #fed7aa;
  --bad: #b42f2f;
  --bad-bg: #fadada;
  --bad-bd: #eeb3b3;
  --info: #1e70b8;
  --info-bg: #dfecf9;
  --neutral-bg: #eceeef;
  --neutral-bd: #d7dadd;
  --focus: #2563eb;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 22px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-focus: 0 0 0 5px rgba(37, 99, 235, 0.14);
}

body {
  min-height: 100vh;
  padding: 20px;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" on, "lnum" on;
}

.dashboard {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card,
.notice {
  background: var(--card);
  border-radius: 24px;
  padding: 28px 32px;
}

.header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 0;
  padding: 24px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-main {
  min-width: 0;
  flex: 1;
}

.brand-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.logo-mark {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-mark::before {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  top: 14px;
  left: 14px;
  border: 2.5px solid #fff;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-45deg);
}

.logo-mark::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: 13px;
  right: 13px;
  background: #fff;
  border-radius: 50%;
}

.brand-eyebrow {
  margin-bottom: 2px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  color: var(--ink);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.05;
}

h2 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 750;
}

h3 {
  margin-bottom: 14px;
  color: var(--ink3);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-lede {
  margin-bottom: 22px;
  color: var(--ink3);
}

.meta {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  min-width: 148px;
  min-height: 76px;
  flex-direction: column;
  justify-content: center;
  padding: 10px 14px;
  background: var(--card-soft);
  border-radius: 14px;
  text-align: center;
}

.meta-item dt {
  margin-bottom: 5px;
  color: var(--ink4);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meta-item dd {
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.18;
}

.status-pill,
.verdict,
.grade-tag,
.risk-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 9px;
  border: 1px solid;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-pill {
  gap: 6px;
  color: var(--good);
  background: var(--good-bg);
  border-color: var(--good-bd);
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

.summary {
  color: #fff;
  background: linear-gradient(155deg, var(--hero-dark) 0%, var(--hero-dark2) 65%, #1a7a4c 115%);
  padding: 30px 32px;
  border-radius: 22px;
}

.summary h2 {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.summary-lede {
  max-width: 860px;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 750;
  line-height: 1.22;
}

.loading-summary .summary-lede {
  max-width: 720px;
  font-size: 22px;
}

.verdict-groups {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.vgroup {
  min-height: 116px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
}

.vgroup-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vgroup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.vgroup-dot.rec { background: #4ade80; }
.vgroup-dot.alt { background: #fbbf24; }
.vgroup-dot.avo { background: #f87171; }
.vgroup-dot.rev { background: #60a5fa; }
.vgroup-dot.tst { background: #c084fc; }

.vgroup-val {
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.32;
}

.vgroup-channel-line {
  display: block;
  overflow-wrap: anywhere;
}

.vgroup-channel-line + .vgroup-channel-line {
  margin-top: 5px;
}

.summary-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.note {
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.22);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.notice {
  color: #8a4b00;
  background: var(--warn-bg);
  border: 1px solid var(--warn-bd);
}

.notice-toast {
  position: fixed;
  z-index: 50;
  top: 18px;
  right: 18px;
  max-width: min(430px, calc(100vw - 36px));
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.16);
}

.notice-close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: #8a4b00;
  background: rgba(138, 75, 0, 0.12);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.notice-inline {
  margin-bottom: 16px;
  color: var(--warn);
  font-weight: 700;
}

.goal-options {
  display: inline-flex;
  gap: 5px;
}

.goal-option {
  padding: 7px 13px;
  color: var(--ink2);
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-transform: capitalize;
}

.goal-option.active {
  color: #fff;
  background: var(--primary);
}

.goal-option:focus-visible,
.post-distribution-tab:focus-visible,
.jump-btn:focus-visible,
.detail-back-overview:focus-visible,
.ch-card:focus-visible,
.channel-input:focus-visible,
.remove-btn:focus-visible,
.add-btn:focus-visible,
.start-btn:focus-visible,
.start-dashboard-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: var(--shadow-focus);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.glance-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.glance-head h2 {
  margin-bottom: 6px;
}

.glance-head .section-lede {
  margin-bottom: 0;
}

.glance-goal {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

.glance-goal .brand-eyebrow {
  margin: 0;
}

.ch-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 17px;
  background: var(--card-soft);
  border: 1.5px solid transparent;
  border-radius: 18px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ch-card:hover,
.ch-card:focus-visible {
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
}

.ch-card.is-top {
  border-color: var(--good-bd);
}

.ch-card.is-alt {
  border-color: var(--warn-bd);
}

.ch-card.is-avoid {
  border-color: var(--bad-bd);
}

.ch-card-head,
.fit-score-top,
.conf-row,
.ch-head,
.panel-head,
.evidence-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.ch-card-head {
  align-items: flex-start;
  gap: 10px;
}

.ch-card-head-right,
.ch-head-tags {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ch-rank {
  color: var(--primary);
  font-size: 31px;
  font-weight: 850;
  line-height: 1;
}

.ch-name {
  display: -webkit-box;
  min-height: 48px;
  margin-top: 4px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ch-handle,
.sub {
  color: var(--ink3);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.verdict--recommended,
.verdict--best-option,
.grade--good,
.risk-low {
  color: var(--good);
  background: var(--good-bg);
  border-color: var(--good-bd);
}

.verdict--alternative,
.verdict--close-alternative,
.grade--acceptable {
  color: var(--warn);
  background: var(--warn-bg);
  border-color: var(--warn-bd);
}

.verdict--manual-review,
.grade--weak,
.grade--insufficient-evidence {
  color: var(--review);
  background: var(--review-bg);
  border-color: var(--review-bd);
}

.verdict--test-buy {
  color: var(--test);
  background: var(--test-bg);
  border-color: var(--test-bd);
}

.risk-moderate {
  color: var(--moderate);
  background: var(--moderate-bg);
  border-color: var(--moderate-bd);
}

.verdict--avoid,
.grade--avoid,
.risk-high {
  color: var(--bad);
  background: var(--bad-bg);
  border-color: var(--bad-bd);
}

.risk-unknown {
  color: var(--ink3);
  background: var(--neutral-bg);
  border-color: var(--neutral-bd);
}

.fit-label,
.conf-label,
.qstat-label,
.stat-cell-label,
.score-tile-label {
  color: var(--ink4);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fit-num,
.conf-pct,
.qstat-val,
.stat-cell-val,
.score-tile-val {
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.overview-grid .fit-num,
.overview-grid .conf-pct {
  font-size: 24px;
}

.overview-grid .conf-pct {
  color: var(--focus);
}

.is-top .fit-num,
.is-top .ch-rank {
  color: var(--good);
}

.is-alt .fit-num,
.is-alt .ch-rank {
  color: var(--warn);
}

.is-avoid .fit-num,
.is-avoid .ch-rank {
  color: var(--bad);
}

.bar {
  height: 9px;
  margin-top: 8px;
  overflow: hidden;
  background: #e5e7eb;
  border-radius: 100px;
}

.bar-fill {
  height: 100%;
  min-width: 2px;
  max-width: 100%;
  background: var(--primary);
  border-radius: inherit;
}

.is-alt .bar-fill {
  background: var(--warn);
}

.is-avoid .bar-fill {
  background: var(--bad);
}

.score-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--ink4);
  font-size: 11px;
  font-weight: 750;
}

.confidence-dots,
.score-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.confidence-dots i,
.score-dot {
  width: 9px;
  height: 9px;
  background: #e5e7eb;
  border-radius: 50%;
}

.confidence-dots i.filled {
  background: var(--info);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  min-height: 108px;
  padding: 12px 10px;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
}

.qstat {
  min-width: 0;
  display: grid;
  grid-template-rows: 30px 30px 24px;
  align-items: start;
  padding: 0 8px;
  background: #fff;
}

.qstat + .qstat {
  border-left: 1px solid var(--border2);
}

.qstat-label {
  min-height: 30px;
  display: flex;
  align-items: flex-start;
  font-size: 9.5px;
  line-height: 1.18;
  letter-spacing: 0.1em;
}

.qstat-val {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: normal;
}

.qstat-sub,
.stat-cell-sub {
  margin-top: 2px;
  color: var(--ink4);
  font-size: 11px;
  line-height: 1.15;
}

.reason-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.overview-grid .reason-block {
  display: none;
}

.reason-line {
  display: flex;
  gap: 8px;
  color: var(--ink2);
  line-height: 1.45;
}

.why-line::before,
.risk-line::before {
  flex-shrink: 0;
  width: 18px;
  color: var(--good);
  font-weight: 900;
  text-align: center;
}

.why-line::before {
  content: "✓";
}

.risk-line::before {
  content: "!";
  color: var(--warn);
}

.h2h-wrap {
  overflow-x: auto;
  border: 1px solid var(--border2);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 920px;
}

thead tr {
  background: var(--card-soft);
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

th {
  padding: 14px;
  color: var(--ink3);
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

th:first-child {
  border-radius: 12px 0 0 12px;
}

th:last-child {
  border-radius: 0 12px 12px 0;
}

.th-mobile {
  display: none;
}

td {
  padding: 16px 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--border2);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: var(--card-softer);
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.metric-cell {
  min-width: 112px;
}

.metric-value {
  display: block;
  line-height: 1.1;
}

.metric-bar,
.delta-bar {
  display: block;
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  background: var(--border2);
  border-radius: 999px;
}

.metric-bar i,
.delta-bar i {
  display: block;
  height: 100%;
  min-width: 2px;
  max-width: 100%;
  background: var(--primary);
  border-radius: inherit;
}

.metric-bar--warn i {
  background: var(--warn);
}

.delta-bar {
  position: relative;
}

.delta-bar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #cbd5e1;
}

.delta-bar.is-negative i {
  margin-left: 50%;
  background: var(--bad);
  transform: translateX(-100%);
}

.delta-bar.is-positive i {
  margin-left: 50%;
  background: var(--good);
}

.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.detail-overview-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 10px;
}

.detail-overview-head h2 {
  margin-bottom: 6px;
}

.detail-intro {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--ink3);
  font-size: 14px;
  line-height: 1.45;
}

.jump-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--ink2);
  text-decoration: none;
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-weight: 750;
}

.detail-back-overview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 42px;
  padding: 10px 18px;
  color: var(--primary);
  background: #fff;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(16, 129, 74, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.jrank {
  color: var(--primary);
}

.ch-section {
  padding-top: 10px;
  scroll-margin-top: 20px;
}

.ch-section + .ch-section {
  margin-top: 34px;
  border-top: 1px solid var(--border2);
}

.ch-head {
  align-items: flex-start;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border2);
}

.ch-head-left {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.ch-big-rank {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  color: var(--ink2);
  background: var(--card-soft);
  border-radius: 16px;
  font-size: 22px;
  font-weight: 850;
}

.is-top .ch-big-rank {
  color: var(--good);
  background: var(--good-bg);
}

.is-alt .ch-big-rank {
  color: var(--warn);
  background: var(--warn-bg);
}

.is-avoid .ch-big-rank {
  color: var(--bad);
  background: var(--bad-bg);
}

.ch-head-title h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
  font-weight: 850;
}

.ch-head-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

.score-tile {
  min-width: 126px;
  padding: 12px 14px;
  background: var(--card-soft);
  border-radius: 14px;
}

.score-tile-val {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 800;
}

.bento {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.panel,
.evidence {
  padding: 22px;
  background: var(--card-soft);
  border-radius: 18px;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.score-evidence-panel {
  width: 100%;
}

.panel-title {
  color: var(--ink2);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.explain-block {
  padding: 14px 16px;
  color: var(--ink2);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.limitations-panel {
  background: #fffaf0;
  border: 1px solid rgba(194, 125, 18, 0.18);
}

.limitation-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.limitation {
  display: flex;
  gap: 8px;
  color: var(--ink3);
  font-size: 12px;
  line-height: 1.35;
}

.limitation::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  background: var(--warn-bg);
  border: 1.5px solid var(--warn-bd);
  border-radius: 3px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border2);
  border-radius: 12px;
}

.data-panel .stat-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stat-cell {
  min-width: 0;
  padding: 10px 12px;
  background: #fff;
}

.stat-cell-label {
  min-height: 24px;
  display: flex;
  align-items: flex-start;
  color: var(--ink3);
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: 0.12em;
}

.stat-cell-val {
  margin-top: 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.stat-cell-sub {
  margin-top: 5px;
  color: var(--ink3);
  font-size: 12px;
  line-height: 1.25;
}

.evidence {
  margin-top: 14px;
}

.post-distribution {
  width: 100%;
  padding: 18px 20px;
  background: var(--card-soft);
  border-radius: 16px;
}

.post-distribution-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.post-distribution-kicker {
  margin-bottom: 6px;
  color: var(--ink3);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.post-distribution-title {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}

.post-distribution-sub {
  margin-top: 4px;
  color: var(--ink3);
  font-size: 13px;
}

.post-distribution-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.post-distribution-tab {
  padding: 7px 12px;
  color: var(--ink2);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.post-distribution-tab.active {
  color: #fff;
  background: var(--good);
  border-color: var(--good);
}

.post-distribution-plot-wrap {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
}

.post-distribution-axis {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  height: 310px;
  padding: 2px 0 30px;
  color: var(--ink4);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.post-distribution-plot {
  position: relative;
  height: 310px;
  padding: 0 8px 30px;
  background: linear-gradient(to bottom, var(--border2) 1px, transparent 1px) 0 0 / 100% 20%;
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.post-distribution-bars {
  position: absolute;
  inset: 0 8px 30px;
  display: grid;
  grid-template-columns: repeat(100, minmax(2px, 1fr));
  gap: 2px;
  align-items: end;
}

.post-distribution-bar {
  min-height: 3px;
  background: #d7dadd;
  border-radius: 4px 4px 0 0;
  opacity: 0.96;
}

.post-distribution-bar.high {
  background: var(--good);
}

.post-distribution-bar.ad {
  background: var(--warn);
}

.post-distribution-bar.low {
  opacity: 0.48;
}

.post-distribution-x {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  display: flex;
  justify-content: space-between;
  color: var(--ink4);
  font-size: 12px;
  font-weight: 800;
}

.post-distribution-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0 0 68px;
  color: var(--ink3);
  font-size: 12px;
  font-weight: 750;
}

.post-distribution-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  background: #d7dadd;
  border-radius: 100px;
}

.legend-dot.high {
  background: var(--good);
}

.legend-dot.ad {
  background: var(--warn);
}

.post-distribution-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.post-distribution-insight {
  padding: 9px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.post-distribution-insight span {
  color: var(--ink4);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-distribution-insight strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.1;
  font-weight: 750;
}

.evidence-head {
  align-items: center;
  margin-bottom: 18px;
}

.evidence-head h3 {
  margin: 0;
}

.evidence-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.evidence-lines p {
  margin: 0;
  color: var(--ink3);
  font-size: 13px;
  line-height: 1.5;
}

.evidence-lines strong {
  color: var(--ink);
}

.score-evidence-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.score-evidence-group {
  min-width: 0;
}

.score-evidence-group-title {
  margin: 0 0 10px;
  color: var(--ink3);
}

.score-evidence-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.score-evidence-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.score-evidence-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-transform: capitalize;
}

.score-evidence-sub {
  margin-top: 4px;
  color: var(--ink3);
  font-size: 12px;
  line-height: 1.35;
}

.score-evidence-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: var(--ink3);
  font-size: 12px;
  white-space: nowrap;
}

.score-evidence-value strong {
  color: var(--ink);
  font-size: 18px;
}

.score-evidence-meter {
  display: block;
  width: 80px;
  height: 6px;
  overflow: hidden;
  background: var(--border2);
  border-radius: 999px;
}

.score-evidence-meter i {
  display: block;
  height: 100%;
  min-width: 2px;
  max-width: 100%;
  border-radius: inherit;
}

.score-evidence-row--quality .score-evidence-meter i {
  background: var(--good);
}

.score-evidence-row--confidence .score-evidence-meter i {
  background: var(--info);
}

.score-evidence-row--risk .score-evidence-meter i {
  background: var(--warn);
}

.start-page {
  max-width: 860px;
}

.start-header {
  grid-template-columns: 1fr;
}

.start-subtitle {
  max-width: 600px;
  margin-top: 8px;
  color: var(--ink3);
  font-size: 14px;
  line-height: 1.5;
}

.start-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.start-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.channel-count-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 3px 9px;
  color: var(--ink3);
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.channel-count-badge.at-max {
  color: var(--good);
  background: var(--good-bg);
  border-color: var(--good-bd);
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel-row-index {
  flex-shrink: 0;
  width: 22px;
  color: var(--ink4);
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-align: right;
  user-select: none;
}

.channel-input-wrap {
  flex: 1;
  position: relative;
}

.channel-input {
  display: block;
  width: 100%;
  padding: 11px 14px 11px 38px;
  color: var(--ink);
  background: var(--card-softer);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.channel-input:hover {
  border-color: #d0d5db;
  background: #fff;
}

.channel-input:focus {
  background: #fff;
  border-color: var(--focus);
  box-shadow: var(--shadow-focus);
}

.channel-input.has-error {
  background: var(--bad-bg);
  border-color: var(--bad-bd);
}

.channel-input.has-error:focus {
  border-color: var(--bad);
  box-shadow: 0 0 0 5px rgba(180, 47, 47, 0.12);
}

.channel-input-icon {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--ink4);
  font-size: 15px;
  font-weight: 750;
  transform: translateY(-50%);
  user-select: none;
}

.channel-input-wrap:focus-within .channel-input-icon {
  color: var(--focus);
}

.channel-error-msg {
  display: none;
  margin-top: 5px;
  padding-left: 38px;
  color: var(--bad);
  font-size: 12px;
  font-weight: 600;
}

.channel-input.has-error ~ .channel-error-msg {
  display: block;
}

.remove-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink4);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  line-height: 1;
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
}

.remove-btn:hover {
  color: var(--bad);
  background: var(--bad-bg);
  border-color: var(--bad-bd);
}

.remove-btn[hidden] {
  display: none;
}

.add-btn,
.start-dashboard-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--primary);
  background: #fff;
  border: 1.5px solid var(--good-bd);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.add-btn {
  padding: 9px 16px;
}

.start-dashboard-link {
  margin-left: auto;
  padding: 10px 18px;
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 850;
}

.add-btn:hover:not(:disabled) {
  background: var(--good-bg);
  border-color: var(--primary);
}

.add-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.add-btn-icon {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.list-footer,
.form-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border2);
}

.form-footer {
  gap: 18px;
  padding-top: 22px;
}

.helper-text,
.footer-note {
  color: var(--ink4);
  font-size: 12px;
  line-height: 1.4;
}

.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 4px 16px rgba(15, 124, 77, 0.22);
  transition: background 120ms ease, box-shadow 120ms ease, transform 100ms ease;
}

.start-btn:hover:not(:disabled) {
  background: var(--primary-2);
  box-shadow: 0 6px 22px rgba(15, 124, 77, 0.3);
  transform: translateY(-1px);
}

.start-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.error-banner,
.collection-panel,
.dashboard-ready-panel {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
}

.error-banner.visible,
.collection-panel.visible,
.dashboard-ready-panel.visible {
  display: flex;
}

.error-banner {
  color: var(--bad);
  background: var(--bad-bg);
  border: 1px solid var(--bad-bd);
  font-size: 13px;
  font-weight: 600;
}

.error-banner-icon {
  flex-shrink: 0;
  font-weight: 800;
}

.collection-panel {
  color: var(--ink2);
  background: var(--card-soft);
  border: 1px solid var(--border);
}

.dashboard-ready-panel {
  align-items: center;
  color: var(--good);
  background: var(--good-bg);
  border: 1.5px solid var(--good-bd);
}

.collection-title,
.success-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.collection-note,
.success-note {
  margin-top: 2px;
  color: var(--ink3);
  font-size: 13px;
}

.spinner {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.success-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hu-h2h-enhanced {
  overflow: hidden;
}

.hu-h2h-enhanced > h2 {
  margin-bottom: 8px;
}

.hu-h2h-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 18px;
}

.hu-h2h-insight {
  min-height: 134px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(246, 249, 247, 0.96));
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(16, 24, 39, 0.045);
}

.hu-h2h-insight-kicker {
  margin: 0 0 14px;
  color: var(--ink4);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hu-h2h-insight-value {
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.hu-h2h-insight-note {
  margin-top: 10px;
  color: var(--ink4);
  font-size: 13px;
  line-height: 1.35;
}

.hu-h2h-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.hu-h2h-lane {
  padding: 18px;
  background: #f7faf8;
  border: 1px solid var(--border);
  border-radius: 22px;
}

.hu-h2h-lane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.hu-h2h-lane h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.hu-h2h-lane p {
  margin: 4px 0 0;
  color: var(--ink4);
  font-size: 12.5px;
  line-height: 1.35;
}

.hu-h2h-chip {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--ink4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hu-h2h-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) minmax(110px, 1fr) 74px;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.72);
}

.hu-h2h-row:last-child {
  border-bottom: 0;
}

.hu-h2h-name {
  min-width: 0;
}

.hu-h2h-name strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hu-h2h-name span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--ink4);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hu-h2h-track {
  position: relative;
  overflow: hidden;
  height: 10px;
  background: var(--border2);
  border-radius: 999px;
}

.hu-h2h-fill {
  display: block;
  width: var(--w, 0%);
  height: 100%;
  background: var(--c, var(--good));
  border-radius: inherit;
}

.hu-h2h-value {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}

.hu-h2h-value.is-na {
  color: var(--ink4);
  font-size: 11px;
  font-weight: 750;
  white-space: normal;
}

.hu-risk-low {
  --c: var(--good);
}

.hu-risk-moderate,
.hu-risk-unknown {
  --c: var(--warn);
}

.hu-risk-high {
  --c: var(--bad);
}

.hu-h2h-full-table {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
}

.hu-h2h-full-table[open] {
  padding-bottom: 14px;
}

.hu-h2h-full-table > summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  list-style-position: inside;
}

.hu-h2h-full-table .h2h-wrap {
  margin: 0 14px;
}

.hu-h2h-enhanced .h2h {
  min-width: 1080px;
}

@media (min-width: 1440px) {
  .dashboard {
    max-width: 1500px;
  }
}

@media (max-width: 1180px) {
  .hu-h2h-insights,
  .hu-h2h-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .verdict-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meta-item {
    min-width: 128px;
  }

  .data-panel .stat-grid,
  .score-evidence-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body {
    padding: 12px;
  }

  .header {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .card,
  .notice {
    padding: 22px 20px;
    border-radius: 20px;
  }

  h1 {
    font-size: 25px;
  }

  .summary-lede {
    font-size: 21px;
  }

  .meta,
  .meta-item {
    width: 100%;
  }

  .meta {
    justify-content: flex-start;
  }

  .meta-item {
    min-height: 66px;
    align-items: flex-start;
    text-align: left;
  }

  .brand-topline {
    flex-direction: column;
    gap: 10px;
  }

  .glance-head {
    flex-direction: column;
    align-items: stretch;
  }

  .glance-goal {
    justify-content: center;
  }

  .verdict-groups {
    grid-template-columns: 1fr;
  }

  .post-distribution-insights {
    grid-template-columns: 1fr;
  }

  .data-panel .stat-grid,
  .stat-grid,
  .score-evidence-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-distribution-head {
    flex-direction: column;
  }

  .post-distribution-tabs {
    justify-content: flex-start;
  }

  .post-distribution-plot-wrap {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px;
  }

  .post-distribution-plot {
    min-width: 0;
    overflow: hidden;
    padding-right: 4px;
    padding-left: 4px;
  }

  .post-distribution-bars {
    inset: 0 4px 30px;
    grid-template-columns: repeat(100, minmax(1px, 1fr));
    gap: 1px;
  }

  .post-distribution-x {
    right: 4px;
    left: 4px;
  }

  .post-distribution-legend {
    margin-left: 0;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .ch-head-left,
  .ch-head,
  .ch-head-right {
    width: 100%;
  }

  .score-tile {
    flex: 1;
    min-width: 130px;
  }

  .start-section-head,
  .dashboard-ready-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .start-dashboard-link {
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .hu-h2h-insights,
  .hu-h2h-lanes {
    grid-template-columns: 1fr;
  }

  .hu-h2h-insight {
    min-height: 0;
    padding: 15px;
  }

  .hu-h2h-lane {
    padding: 14px;
    border-radius: 18px;
  }

  .hu-h2h-lane-head {
    display: block;
  }

  .hu-h2h-chip {
    display: inline-flex;
    margin-top: 10px;
  }

  .hu-h2h-row {
    grid-template-columns: minmax(0, 1fr) 66px;
    gap: 8px;
    min-height: 68px;
    padding: 10px 0;
  }

  .hu-h2h-name {
    grid-column: 1 / -1;
  }

  .hu-h2h-name strong {
    white-space: normal;
  }

  .hu-h2h-track {
    height: 9px;
  }

  .hu-h2h-value {
    font-size: 12px;
  }

  .hu-h2h-full-table .h2h-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .h2h-wrap {
    overflow: hidden;
    border: 1px solid var(--border2);
    border-radius: 12px;
  }

  .h2h {
    min-width: 0;
    table-layout: fixed;
    font-size: 7.8px;
  }

  .h2h thead {
    display: table-header-group;
  }

  .h2h tbody {
    display: table-row-group;
  }

  .h2h tr {
    display: table-row;
  }

  .h2h td,
  .h2h th {
    padding: 5px 2px;
    overflow: hidden;
    border-bottom: 0;
    letter-spacing: 0;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .h2h th {
    text-align: center;
    font-size: 6.3px;
    vertical-align: middle;
    overflow-wrap: normal;
    word-break: normal;
  }

  .h2h td {
    font-size: 7.8px;
  }

  .h2h .name strong {
    display: block;
    font-size: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .h2h .sub {
    display: none;
  }

  .h2h .metric-cell {
    min-width: 0;
  }

  .h2h .metric-bar,
  .h2h .delta-bar {
    display: none;
  }

  .h2h .metric-value {
    line-height: 1.1;
  }

  .h2h .verdict,
  .h2h .risk-chip {
    max-width: 100%;
    padding: 1px 2px;
    font-size: 5.7px;
    line-height: 1;
    white-space: nowrap;
  }

  .h2h .th-full {
    display: none;
  }

  .h2h .th-mobile {
    display: inline;
  }
}

@media (max-width: 520px) {
  body {
    padding: 8px;
    font-size: 13px;
  }

  .header {
    gap: 14px;
  }

  .card,
  .notice {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    order: 1;
  }

  .brand-main {
    width: 100%;
  }

  .brand-topline {
    align-items: center;
  }

  .goal-options {
    width: min(100%, 320px);
    justify-content: center;
  }

  .goal-option {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 10px;
  }

  .channel-row-index {
    display: none;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .start-btn {
    justify-content: center;
    width: 100%;
  }

  h1 {
    font-size: 22px;
    text-align: center;
  }

  .summary-lede {
    font-size: 18px;
  }

  .ch-card,
  .panel,
  .evidence,
  .post-distribution {
    padding: 16px;
  }

  .overview-grid .quick-stats,
  .overview-grid .reason-block {
    display: none;
  }

  .fit-score,
  .conf-row {
    margin-top: 2px;
  }

  .ch-card-head {
    flex-direction: column;
  }

  .ch-card-head-right {
    justify-content: flex-start;
  }

  .detail-overview-head {
    flex-direction: column;
  }

  .detail-back-overview {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .detail-intro {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .ch-head {
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 14px;
  }

  .ch-head-left {
    gap: 12px;
  }

  .ch-big-rank {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 19px;
  }

  .ch-head-title h2 {
    font-size: 21px;
  }

  .ch-head-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: 0;
  }

  .score-tile {
    min-width: 0;
  }

  .stat-cell-val {
    font-size: 17px;
  }

  .score-tile-val {
    font-size: 21px;
  }
}

@media (max-width: 430px) {
  .data-panel .stat-grid,
  .stat-grid,
  .score-evidence-groups,
  .ch-head-right {
    grid-template-columns: 1fr;
  }

  .stat-cell-label {
    min-height: 0;
  }
}

/* Deep Dive Huashu alignment: visual-only overrides for channel detail pages. */
.channel-details .panel,
.channel-details .post-distribution,
.channel-details .score-evidence-panel {
  background: #fff;
  border: 1px solid rgba(15, 124, 77, 0.14);
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(16, 24, 39, 0.035);
}

.channel-details .panel:not(.decision-panel),
.channel-details .post-distribution,
.channel-details .score-evidence-panel {
  padding: 18px 20px;
}

.channel-details .decision-panel {
  padding: 0 0 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.channel-details .decision-panel .panel-head {
  margin-bottom: 2px;
  padding-bottom: 0;
  border-bottom: 0;
}

.channel-details .decision-panel .explain-block {
  padding: 0;
  color: var(--ink2);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.channel-details .limitations-panel {
  background: #fffaf0;
  border: 1px solid rgba(194, 125, 18, 0.18);
  box-shadow: none;
}

.channel-details .panel-head,
.channel-details .post-distribution-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 124, 77, 0.12);
}

.channel-details .stat-grid {
  gap: 10px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.channel-details .data-panel .stat-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.channel-details .stat-cell {
  min-height: 96px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 124, 77, 0.12);
  border-left: 5px solid rgba(15, 124, 77, 0.28);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(16, 24, 39, 0.025);
}

.channel-details .stat-cell-label {
  min-height: 26px;
  color: var(--ink3);
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: 0.12em;
}

.channel-details .stat-cell-val {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 750;
}

.channel-details .stat-cell-sub,
.channel-details .limitation,
.channel-details .post-distribution-sub {
  font-size: 12px;
}

.channel-details .score-evidence-panel {
  background: linear-gradient(180deg, #fbfdfc, #f7faf8);
}

.channel-details .score-evidence-panel .score-evidence-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.channel-details .score-evidence-panel .score-evidence-grid {
  gap: 10px;
}

.channel-details .score-evidence-row {
  min-height: 112px;
  padding: 14px 16px;
  border-color: rgba(15, 124, 77, 0.14);
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(16, 24, 39, 0.025);
}

.channel-details .score-evidence-label {
  font-size: 14px;
}

.channel-details .score-evidence-sub {
  font-size: 12px;
  line-height: 1.35;
}

.channel-details .score-evidence-value strong {
  font-size: 18px;
}

@media (max-width: 1180px) {
  .channel-details .data-panel .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .channel-details .score-evidence-panel .score-evidence-groups {
    grid-template-columns: 1fr;
  }

  .channel-details .score-evidence-row {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .channel-details .data-panel .stat-grid,
  .channel-details .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .channel-details .panel:not(.decision-panel),
  .channel-details .post-distribution,
  .channel-details .score-evidence-panel {
    padding: 16px;
  }

  .channel-details .stat-cell {
    min-height: 0;
    padding: 12px 14px;
  }
}

@media (max-width: 430px) {
  .channel-details .data-panel .stat-grid,
  .channel-details .stat-grid {
    grid-template-columns: 1fr;
  }
}

/* Start page Huashu alignment: visual shell only, API behavior stays in start.js. */
.start-page.start-shell {
  width: min(1360px, calc(100% - 48px));
  max-width: 1360px;
  margin: 12px auto;
  gap: 22px;
}

.start-page .start-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 28px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  box-shadow: 0 22px 70px rgba(16, 24, 39, 0.08);
}

.start-page .start-hero-main {
  min-width: 0;
}

.start-page .start-brand {
  align-items: center;
  gap: 18px;
}

.start-page .start-brand .logo-mark {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(15, 124, 77, 0.22);
}

.start-page .start-brand .logo-mark::before {
  inset: 16px 18px 15px 15px;
  width: auto;
  height: auto;
  border-width: 5px;
  transform: rotate(-18deg);
}

.start-page .start-brand .logo-mark::after {
  top: 15px;
  right: 18px;
  width: 8px;
  height: 8px;
}

.start-page .start-brand h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
}

.start-page .start-subtitle {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--ink3);
  font-size: 17px;
  line-height: 1.55;
}

.start-page .start-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin-top: 34px;
}

.start-page .start-meta .meta-item {
  min-width: 0;
  min-height: 78px;
  align-items: flex-start;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--border2);
  border-radius: 18px;
}

.start-page .start-meta .meta-item dt {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.start-page .start-meta .meta-item dd {
  font-size: 16px;
}

.start-side-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  color: #fff;
  background: linear-gradient(145deg, var(--hero-dark) 0%, var(--primary) 120%);
  border-radius: 26px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.start-side-panel h2 {
  max-width: 320px;
  color: #fff;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

.start-side-list {
  display: grid;
  gap: 14px;
  list-style: none;
}

.start-side-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

.start-side-list b {
  display: block;
  color: #fff;
  font-size: 15px;
}

.step-dot {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--hero-dark);
  background: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.start-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
}

.start-entry-card {
  padding: 28px;
  box-shadow: 0 12px 34px rgba(16, 24, 39, 0.07);
}

.start-page .start-section-head {
  align-items: flex-start;
  margin-bottom: 20px;
}

.start-page .start-section-head h2 {
  margin-bottom: 6px;
  font-size: 30px;
  line-height: 1.1;
}

.start-page .start-section-head p {
  color: var(--ink3);
  font-size: 15px;
  line-height: 1.45;
}

.start-page .channel-count-badge {
  gap: 8px;
  padding: 9px 13px;
  color: var(--primary);
  background: var(--good-bg);
  border-color: var(--good-bd);
  font-size: 13px;
  font-weight: 850;
}

.start-page .channel-count-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
}

.start-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.start-channel-grid .channel-row {
  min-width: 0;
  padding: 10px 12px 12px 14px;
  background: var(--card-soft);
  border: 1.5px solid var(--border);
  border-radius: 17px;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.start-channel-grid .channel-row:focus-within {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(15, 124, 77, 0.12);
}

.start-channel-grid .channel-row-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--good-bd);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.start-channel-grid .channel-input {
  padding: 11px 12px 11px 38px;
  background: #fff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

.start-channel-grid .channel-input:hover,
.start-channel-grid .channel-input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 124, 77, 0.1);
}

.start-channel-grid .channel-input-icon {
  left: 13px;
}

.start-channel-grid .remove-btn {
  width: 30px;
  height: 30px;
  background: #fff;
}

.start-actions {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border2);
}

.start-actions-main {
  justify-content: flex-start;
}

.start-page .add-btn,
.start-page .start-btn,
.start-page .start-dashboard-link {
  min-height: 46px;
  padding: 0 19px;
  box-shadow: none;
}

.start-page .start-btn,
.start-page .start-dashboard-link {
  box-shadow: 0 10px 24px rgba(15, 124, 77, 0.25);
}

.start-state-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.state-card {
  padding: 20px;
}

.state-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.2;
}

.state-card p {
  color: var(--ink3);
  font-size: 14px;
  line-height: 1.45;
}

.accepted-input-card {
  padding: 20px;
  background: var(--card-soft);
  border: 1px solid var(--border2);
  border-radius: 20px;
}

.accepted-input-card h3 {
  margin-bottom: 12px;
  color: var(--ink3);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.example-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.token {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--ink2);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.input-rules {
  display: grid;
  gap: 8px;
  list-style: none;
  color: var(--ink3);
  font-size: 13px;
  line-height: 1.4;
}

.input-rules li {
  display: flex;
  gap: 8px;
}

.input-rules li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.start-page .collection-panel {
  display: none;
  color: var(--ink2);
  background: #fff;
  border: 1px solid rgba(15, 124, 77, 0.18);
  box-shadow: 0 16px 42px rgba(15, 124, 77, 0.12);
}

.start-page .collection-panel.visible {
  display: block;
}

.collection-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.start-page .spinner {
  width: 28px;
  height: 28px;
  border-width: 3px;
}

.progress-track {
  overflow: hidden;
  height: 8px;
  margin-top: 18px;
  background: var(--card-soft);
  border-radius: 999px;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #64d79a, var(--primary));
  border-radius: inherit;
  transition: width 180ms ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--ink4);
  font-size: 12px;
  font-weight: 750;
}

.queue-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.queue-status[hidden] {
  display: none;
}

.queue-status > div {
  min-width: 0;
  padding: 14px;
  background: var(--card-soft);
  border: 1px solid var(--border2);
  border-radius: 16px;
}

.queue-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink3);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.queue-status strong {
  display: block;
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
}

.start-page .dashboard-ready-panel {
  display: none;
  color: var(--primary);
  background: var(--good-bg);
  border: 1.5px solid var(--good-bd);
}

.start-page .dashboard-ready-panel.visible {
  display: block;
}

.ready-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.start-page .success-icon {
  width: 34px;
  height: 34px;
}

.start-page .start-dashboard-link {
  width: 100%;
  margin-left: 0;
}

@media (max-width: 1100px) {
  .start-page .start-hero,
  .start-workspace {
    grid-template-columns: 1fr;
  }

  .start-side-panel {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .start-page.start-shell {
    width: min(100% - 24px, 560px);
    margin: 4px auto;
  }

  .start-page .start-hero,
  .start-entry-card {
    padding: 22px;
  }

  .start-page .start-brand {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .start-page .start-brand .logo-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .start-page .start-brand .logo-mark::before {
    inset: 12px 13px 11px 11px;
    border-width: 4px;
  }

  .start-page .start-brand .logo-mark::after {
    top: 11px;
    right: 13px;
  }

  .start-page .start-brand h1 {
    font-size: 31px;
    text-align: left;
  }

  .start-page .start-subtitle {
    margin-top: 18px;
    font-size: 15px;
  }

  .start-page .start-meta,
  .start-channel-grid {
    grid-template-columns: 1fr;
  }

  .start-page .start-section-head,
  .start-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .start-page .channel-count-badge,
  .start-page .add-btn,
  .start-page .start-btn {
    width: 100%;
  }

  .collection-row {
    align-items: center;
  }

  .queue-status {
    grid-template-columns: 1fr;
  }

  .progress-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}
