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

:root {
  --bg:              #f7f5f1;
  --surface:         #ffffff;
  --text-1:          #1e1a18;
  --text-2:          #8a837c;
  --text-3:          #b5b0aa;
  --border:          #ede9e4;
  --tab-off-bg:      #f0ece7;
  --ok:              #6b9b7a;
  --ok-bg:           #edf5ef;
  --ok-text:         #3d7a52;
  --warn:            #c8883a;
  --warn-bg:         #fff4e3;
  --warn-text:       #9a6828;
  --crit:            #c06760;
  --crit-bg:         #fff1f0;
  --crit-text:       #963838;
  --card-warn-bg:    #fffbf3;
  --card-crit-bg:    #fff9f8;
  --shadow:          0 1px 3px rgba(0,0,0,0.055), 0 0 0 1px rgba(0,0,0,0.03);
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text-1);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

button, select { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ── Shell ── */
.app-shell {
  width: min(100%, 460px);
  margin: 0 auto;
  min-height: 100%;
  padding: max(8px, env(safe-area-inset-top)) 0 max(12px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

/* ── Top bar ── */
.app-head {
  background: var(--surface);
  padding: 18px 20px 0;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2px;
}
.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}
h1 {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.03em;
  line-height: 1;
}
.icon-button {
  width: 36px; height: 36px;
  background: var(--bg);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.icon-button:hover { background: var(--border); }
.icon-button:disabled { opacity: 0.55; cursor: default; }
.is-busy .icon-button span,
.icon-button.spinning span { animation: spin 0.6s linear infinite; }

.head-updated {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 400;
  padding-bottom: 14px;
}
.head-updated[data-tone="warn"] { color: var(--warn-text); }

/* ── Tabs ── */
.tabs-wrap {
  background: var(--surface);
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 4;
}
.tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-button {
  flex-shrink: 0;
  padding: 7px 15px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  background: var(--tab-off-bg);
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.tab-button:hover { background: var(--border); }
.tab-button.active { background: var(--text-1); color: #fff; }

/* ── Content ── */
.content {
  flex: 1;
  padding: 0 0 28px;
  outline: none;
}

/* Alert banner */
.alert-wrap { padding: 12px 16px 0; }
.alert-banner {
  background: #fffcf2;
  border: 1px solid #ead9a4;
  border-radius: 11px;
  padding: 9px 13px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.alert-banner.crit { background: var(--crit-bg); border-color: rgba(192, 103, 96, 0.45); }
.alert-dot {
  width: 6px; height: 6px;
  min-width: 6px;
  background: var(--warn);
  border-radius: 50%;
  margin-top: 3px;
}
.alert-banner.crit .alert-dot { background: var(--crit); }
.alert-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--warn-text);
  line-height: 1.45;
}
.alert-banner.crit .alert-text { color: var(--crit-text); }

/* ── Section ── */
.sec { padding: 0 16px; }
.sec-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 0 9px;
}
.sec-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.sec-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--border);
  padding: 1px 7px;
  border-radius: 10px;
}

/* ── Metric card ── */
.mcard {
  background: var(--surface);
  border-radius: 15px;
  padding: 14px 16px;
  margin-bottom: 7px;
  box-shadow: var(--shadow);
}
.mcard.s-warn { background: var(--card-warn-bg); }
.mcard.s-crit { background: var(--card-crit-bg); }
.mc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  gap: 8px;
}
.mc-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
}
.mc-val {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-1);
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}
.mc-val.c-warn { color: var(--warn); }
.mc-val.c-crit { color: var(--crit); }
.mc-val.sz-lg  { font-size: 28px; letter-spacing: -0.02em; }
.mc-desc {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.45;
}
.mc-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}
.mc-trend.up { color: var(--ok); }
.mc-trend.dn { color: var(--crit); }

/* ── Badge ── */
.badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px 3px 6px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge.b-ok   { color: var(--ok-text);   background: var(--ok-bg);   }
.badge.b-ok::before   { background: var(--ok); }
.badge.b-warn { color: var(--warn-text); background: var(--warn-bg); }
.badge.b-warn::before { background: var(--warn); }
.badge.b-crit { color: var(--crit-text); background: var(--crit-bg); }
.badge.b-crit::before { background: var(--crit); }

/* ── Tasks list ── */
.titem {
  background: var(--surface);
  border-radius: 13px;
  padding: 12px 14px;
  margin: 0 16px 7px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  box-shadow: var(--shadow);
  text-align: left;
  width: calc(100% - 32px);
}
.titem:hover { background: #fdfcfa; }
.t-dot {
  width: 6px; height: 6px;
  min-width: 6px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.t-dot.high { background: var(--crit); }
.t-dot.mid  { background: var(--warn); }
.t-dot.low  { background: var(--text-3); }
.t-body { flex: 1; min-width: 0; }
.t-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 2px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.t-title.done { color: var(--text-3); text-decoration: line-through; }
.t-meta {
  font-size: 11px;
  color: var(--text-3);
  overflow-wrap: anywhere;
}
.t-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  flex-shrink: 0;
}
.t-actions select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg);
  min-height: 26px;
}
.t-del {
  font-size: 10px;
  font-weight: 700;
  color: var(--crit-text);
  background: var(--crit-bg);
  border-radius: 8px;
  padding: 4px 8px;
  transition: background 0.15s;
}
.t-del:hover { background: #fde2e0; }

/* ── Reports/Hypotheses list ── */
.rcard {
  background: var(--surface);
  border-radius: 15px;
  padding: 14px 16px;
  margin: 0 16px 7px;
  box-shadow: var(--shadow);
  display: block;
  width: calc(100% - 32px);
  text-align: left;
}
.rcard:hover { background: #fdfcfa; }
.rcard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.rcard-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.rcard-meta {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  line-height: 1.4;
}
.rcard-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 12px;
}

/* KPI strip inside rcard */
.kpis { display: flex; gap: 0; }
.kpi { flex: 1; min-width: 0; }
.kpi + .kpi {
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.kv {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.kl { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.kd { font-size: 11px; font-weight: 600; margin-top: 3px; }
.kd.up { color: var(--ok); }
.kd.dn { color: var(--crit); }

/* Detail panel inside reports/hypotheses */
.detail-panel {
  background: var(--surface);
  border-radius: 15px;
  padding: 14px 16px;
  margin: 10px 16px 0;
  box-shadow: var(--shadow);
  min-height: 60px;
}
.detail-panel:empty { display: none; }
.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.detail-head h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.detail-head small {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 11px;
}
.text-link {
  color: var(--ok-text);
  font-weight: 700;
  font-size: 12px;
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.fact {
  padding: 9px 11px;
  background: var(--bg);
  border-radius: 11px;
}
.fact small {
  display: block;
  margin-bottom: 3px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fact strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  overflow-wrap: anywhere;
}
.section-block {
  padding: 10px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.section-block:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.section-block h3 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.section-block p {
  font-size: 13px;
  color: var(--text-1);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ── Empty / loader state ── */
.state-panel {
  margin: 16px;
  padding: 28px 16px;
  background: var(--surface);
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
}
.state-panel h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 6px;
}
.state-panel p { font-size: 12px; line-height: 1.5; }
.loader {
  width: 24px;
  height: 24px;
  margin: 0 auto 10px;
  border: 2.5px solid var(--border);
  border-top-color: var(--text-2);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loader.small { width: 18px; height: 18px; border-width: 2px; margin-bottom: 6px; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Bitrix tab keeps mcard-like cards ── */
.bitrix-card {
  background: var(--surface);
  border-radius: 15px;
  padding: 14px 16px;
  margin: 0 16px 7px;
  box-shadow: var(--shadow);
}
.bitrix-card h2 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 10px;
}
.bitrix-sum {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 12px;
  line-height: 1;
}
.stage-list, .deal-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.stage-row, .deal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.stage-row:last-child, .deal-row:last-child { border-bottom: 0; }
.stage-row span:first-child, .deal-title {
  color: var(--text-1);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.stage-row span:last-child {
  color: var(--text-2);
  font-weight: 600;
  flex-shrink: 0;
}
.deal-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
}
.days-stuck {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.days-stuck.warn { background: var(--warn-bg); color: var(--warn-text); }
.days-stuck.danger { background: var(--crit-bg); color: var(--crit-text); }
.empty-state {
  color: var(--text-3);
  font-size: 12px;
  text-align: center;
  padding: 8px 0;
}

/* ── Full-screen detail view ── */
.detail-view {
  background: var(--bg);
  min-height: 100%;
}
.detail-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px 7px 10px;
  background: var(--bg);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  flex-shrink: 0;
  transition: background 0.15s;
}
.back-btn:hover { background: var(--border); }
.back-btn::before { content: "‹"; font-size: 18px; line-height: 1; margin-right: 2px; }
.detail-crumb {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-header {
  padding: 16px 16px 6px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.detail-header h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.detail-header .detail-sub {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 8px;
}
.detail-header .detail-sub .dot { color: var(--text-3); }
.detail-actions { display: flex; gap: 6px; padding-bottom: 10px; }
.detail-actions .text-link {
  padding: 6px 12px;
  background: var(--ok-bg);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.detail-body { padding: 4px 0 28px; }

/* ── Rich metric rows (parsed reports) ── */
.metric-card {
  background: var(--surface);
  border-radius: 13px;
  padding: 12px 14px;
  margin: 0 16px 7px;
  box-shadow: var(--shadow);
}
.metric-card.s-ok   { border-left: 3px solid var(--ok); }
.metric-card.s-warn { border-left: 3px solid var(--warn); background: var(--card-warn-bg); }
.metric-card.s-crit { border-left: 3px solid var(--crit); background: var(--card-crit-bg); }
.metric-card.s-none { border-left: 3px solid var(--border); }
.metric-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.metric-row-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.metric-row-value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
  white-space: nowrap;
}
.metric-row-value.c-warn { color: var(--warn); }
.metric-row-value.c-crit { color: var(--crit); }
.metric-row-value.c-ok   { color: var(--ok); }
.metric-row-value .unit { font-size: 0.6em; font-weight: 700; color: var(--text-2); margin-left: 2px; }
.metric-row-delta {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 6px;
}
.metric-row-delta.up { color: var(--ok); }
.metric-row-delta.down { color: var(--crit); }
.metric-row-delta.flat { color: var(--text-3); }
.metric-row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
.metric-row-base {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}
.metric-row-base b { color: var(--text-2); font-weight: 700; }

/* Bar: factual vs baseline */
.bar-wrap {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 36px 1fr 44px;
  gap: 6px;
  align-items: center;
  font-size: 10px;
}
.bar-label { color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.bar-track {
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill { height: 100%; border-radius: 4px; }
.bar-fill.fact-ok   { background: var(--ok); }
.bar-fill.fact-warn { background: var(--warn); }
.bar-fill.fact-crit { background: var(--crit); }
.bar-fill.fact-none { background: var(--text-3); }
.bar-fill.base { background: linear-gradient(90deg, rgba(138, 131, 124, 0.6) 0%, rgba(138, 131, 124, 0.3) 100%); }
.bar-value { font-weight: 700; color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }

/* Sparkline */
.sparkline-wrap {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 10px;
}
.sparkline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.sparkline-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.sparkline-last { font-size: 11px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sparkline svg { display: block; width: 100%; height: 36px; }
.sparkline-axis { font-size: 9px; fill: var(--text-3); }

/* Section block on detail view */
.report-section {
  margin: 0 0 12px;
  padding-top: 10px;
}
.report-section-head {
  padding: 12px 16px 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.report-section-head h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text-1);
  flex: 1;
  overflow-wrap: anywhere;
}
.report-section-head .count {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  background: var(--border);
  padding: 1px 7px;
  border-radius: 10px;
}
.subsection-wrap { padding: 0 16px 4px; }
.subsection-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 8px;
}
.subsection-tabs::-webkit-scrollbar { display: none; }
.sub-tab {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  background: var(--tab-off-bg);
  color: var(--text-2);
}
.sub-tab.active { background: var(--text-1); color: #fff; }

/* Real tables (rendered from md tables) */
.table-card {
  margin: 0 16px 10px;
  padding: 10px 12px 4px;
  background: var(--surface);
  border-radius: 13px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.report-table th, .report-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.report-table th {
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
  position: sticky;
  top: 0;
  background: var(--surface);
}
.report-table tr:last-child td { border-bottom: 0; }
.report-table td.num { text-align: right; font-weight: 600; color: var(--text-1); }

/* Callout banner in detail body */
.callout {
  margin: 0 16px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ok-bg);
  border: 1px solid rgba(107, 155, 122, 0.3);
}
.callout.c-warn { background: var(--warn-bg); border-color: rgba(200, 136, 58, 0.3); }
.callout.c-crit { background: var(--crit-bg); border-color: rgba(192, 103, 96, 0.35); }
.callout.c-info { background: #f0f4fa; border-color: #d4dff0; }
.callout-title {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-1);
}
.callout.c-warn .callout-title { color: var(--warn-text); }
.callout.c-crit .callout-title { color: var(--crit-text); }
.callout.c-info .callout-title { color: #2b487c; }
.callout-bullets {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 3px;
}
.callout-bullets li {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-1);
  padding-left: 12px;
  position: relative;
  overflow-wrap: anywhere;
}
.callout-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-3);
}

/* Plain bullets / paragraphs inside section/subsection */
.plain-bullets, .plain-paras {
  margin: 0 16px 8px;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.plain-bullets { list-style: none; padding-left: 12px; padding-right: 12px; }
.plain-bullets li {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-1);
  padding-left: 12px;
  position: relative;
  overflow-wrap: anywhere;
  margin-bottom: 3px;
}
.plain-bullets li::before { content: "•"; position: absolute; left: 0; color: var(--text-3); }
.plain-paras p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-1);
  margin-bottom: 5px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.plain-paras p:last-child { margin-bottom: 0; }

@media (max-width: 360px) {
  .fact-grid { grid-template-columns: 1fr; }
  h1 { font-size: 26px; }
  .mc-val { font-size: 32px; }
  .bar-wrap { grid-template-columns: 28px 1fr 38px; }
}
