/* ── Reset & root vars ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1a2744;
  --navy2:      #243358;
  --navy3:      #2e4070;
  --coral:      #c95e3e;
  --coral-hover:#b04f31;
  --coral-bg:   #fdf0eb;
  --coral-border:#e8c4b3;
  --off-white:  #faf8f5;
  --bg:         #F8F7F4;
  --bg-sidebar: #FFFFFF;
  --green: #1a7a4a; --green-bg: #eafaf1; --green-border: #27ae60;
  --amber: #d68910; --amber-bg: #fef9ec; --amber-border: #f39c12;
  --red:   #c0392b; --red-bg:   #fdf0ef; --red-border:   #e74c3c;
  --gray:  #8896a5; --gray-bg:  #f5f0ec;
  --border: #e0d4cc;
  --border-light: #ede5df;
  --text:  #1a2535;
  --text2: #4a5568;
  --text3: #8896a5;
  --font:       'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --radius: 7px;
  --shadow: 0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
}

body {
  font-family: var(--font);
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

button, select, input { font-family: var(--font); }

/* ── Header ──────────────────────────────────────────────────────────────── */
.hdr {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  background: #ffffff;
  border-bottom: 1px solid #E8E1DE;
  box-shadow: 0 1px 4px rgba(31,46,58,0.06);
  overflow: hidden;
  position: relative;
}
.hdr::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F47C5C 0%, #E8A08C 45%, #D9C3B8 100%);
}
.hdr-left {
  background: transparent;
  padding: 10px 20px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  border-right: none;
}
.hdr-right-panel {
  background: transparent;
  padding: 10px 20px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  flex-wrap: wrap;
}
.hdr-logo  { height: 30px; width: auto; display: block; }
.hdr-title { font-size: 15px; font-weight: 700; letter-spacing: -.3px; display: flex; align-items: center; gap: 8px; color: var(--navy); }
.hdr-sub   { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text3); }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hdr-badge {
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font);
  background: rgba(12,39,54,0.06);
  border: 1px solid #E8E1DE;
  color: var(--text2);
}
.hdr-badge.warn { background: var(--amber-bg); border-color: var(--amber-border); color: var(--amber); }

/* ── Tab bar ─────────────────────────────────────────────────────────────── */
.tab-bar {
  background: #fff;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: stretch;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: none;
  flex-shrink: 0;
}
.tab-btn {
  padding: 11px 18px;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tab-btn:hover  { color: var(--navy); background: rgba(12,39,54,0.04); }
.tab-btn.active { color: var(--coral); font-weight: 700; border-bottom-color: var(--coral); }
.tab-btn .tab-icon { font-size: 14px; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.page { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.card-title { font-size: 13px; font-weight: 700; font-family: var(--font-serif); color: var(--navy3); margin-bottom: 6px; }
.card-desc  { font-size: 11.5px; color: var(--text2); margin-bottom: 14px; line-height: 1.6; }
.card-desc code { background: #ede5df; padding: 1px 5px; border-radius: 3px; font-size: 11px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  padding: 7px 14px;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--coral-hover); }
.btn-success { background: var(--green-border); color: #fff; }
.btn-success:hover:not(:disabled) { background: #219a52; }
.btn-danger  { background: var(--red); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #c0392b; }
.btn-ghost   { background: transparent; color: var(--text2); border: 1.5px solid var(--border); }
.btn-ghost:hover:not(:disabled) { border-color: var(--coral); color: var(--coral); }
.btn-sm      { padding: 4px 10px; font-size: 11.5px; }
.btn-lg      { padding: 10px 28px; font-size: 13.5px; box-shadow: 0 3px 10px rgba(201,94,62,.3); }
.btn-lg:hover:not(:disabled) { transform: translateY(-1px); }

/* ── Form controls ───────────────────────────────────────────────────────── */
.input-sm, .select-sm {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  background: #fff;
  color: var(--text);
}
.input-sm:focus, .select-sm:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 2px rgba(201,94,62,.12); }
.select-sm { cursor: pointer; }

/* ── Status indicators ───────────────────────────────────────────────────── */
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.green { background: var(--green-border); }
.status-dot.amber { background: var(--amber-border); }
.status-dot.gray  { background: var(--gray); }
.status-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text2); }

/* ── Data tab ────────────────────────────────────────────────────────────── */
.data-tab { padding: 20px; max-width: 760px; }
.import-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 12px;
}
.import-zone:hover, .import-zone.drag { border-color: var(--coral); background: var(--coral-bg); }
.import-zone-icon { font-size: 32px; margin-bottom: 8px; }
.import-zone-label { font-size: 13px; font-weight: 700; font-family: var(--font-serif); color: var(--navy3); margin-bottom: 4px; }
.import-zone-sub   { font-size: 11.5px; color: var(--text3); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.stat-card {
  background: var(--coral-bg);
  border: 1px solid var(--coral-border);
  border-radius: 6px;
  padding: 12px 14px;
}
.stat-card-value { font-size: 22px; font-weight: 700; color: var(--navy3); font-family: var(--font-serif); font-variant-numeric: tabular-nums; }
.stat-card-label { font-size: 11px; color: var(--text3); margin-top: 2px; text-transform: uppercase; letter-spacing: .4px; }
.progress-bar-wrap { background: var(--border); border-radius: 4px; height: 6px; margin: 8px 0; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--coral); border-radius: 4px; transition: width .3s; }

/* ── Dashboard layout ────────────────────────────────────────────────────── */
.dashboard-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sidebar-section-title {
  font-size: 9px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 8px;
  border-left: 3px solid var(--coral);
  padding-left: 7px;
}
.chart-canvas-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 14px;
}

/* ── Claim Investigator ──────────────────────────────────────────────────── */
.claim-main {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.claim-charts-area {
  display: flex;
  justify-content: center;
  padding: 16px 0;
  flex-shrink: 0;
}
.claim-exclusion-banner {
  font-size: 11px;
  color: var(--text3);
  padding: 4px 2px;
  margin-top: 6px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  line-height: 1.4;
}
.claim-exclusion-banner .icon {
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.5;
}
.claim-tl-chart-wrap {
  width: 70%;
  min-width: 320px;
  max-width: 520px;
}
.claim-controls-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.claim-bottom {
  padding: 0 16px 16px;
  margin-top: 14px;
}
.claim-section {
  padding: 0 16px 20px;
  flex-shrink: 0;
}
.claim-section-title {
  font-size: 9px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.claim-search-input {
  width: 100%;
  margin-bottom: 8px;
}
.claim-result-badge {
  background: var(--coral-bg);
  border: 1px solid var(--coral-border);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--coral);
  margin-top: 6px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.claim-field-count {
  background: var(--coral);
  color: #fff;
  border-radius: 8px;
  font-size: 10px;
  padding: 0 5px;
  margin-left: 4px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.claim-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
  margin-top: 4px;
}
.claim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.claim-table th {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid var(--navy2);
  padding: 7px 10px;
  text-align: left;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  white-space: nowrap;
  cursor: pointer;
}
.claim-table th:hover { color: #fff; }
.claim-table th.sorted { background: var(--coral); color: #fff; }
.claim-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-light);
}
.claim-table tr:last-child td { border-bottom: none; }
.claim-table tr:hover td { background: var(--coral-bg); }
.claim-table tr.selected td { background: var(--coral-bg); }
.claim-gap-pos { background: var(--green-bg); color: var(--green); font-weight: 600; }
.claim-gap-neg { background: var(--red-bg);   color: var(--red);   font-weight: 600; }
.claim-library-card {
  background: rgba(255,255,255,.5);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 8px 10px;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.claim-library-phrase { font-size: 12px; font-weight: 600; flex: 1; color: var(--navy3); word-break: break-word; }
.claim-library-meta   { font-size: 10.5px; color: var(--text3); }
.claim-table-filter   { width: 100%; margin-bottom: 6px; }
.cat-table-controls {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap;
}
.cat-level-selector { display: flex; gap: 4px; }
.cat-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--text3);
  margin-bottom: 8px; flex-wrap: wrap;
}
.cat-breadcrumb-seg {
  cursor: pointer; color: var(--coral); text-decoration: underline;
}
.cat-breadcrumb-seg:hover { color: var(--coral-hover); }
.cat-breadcrumb-sep { color: var(--border); }
.cat-breadcrumb-cur { color: var(--text2); font-weight: 600; }

/* ── Claim category scope dropdown ──────────────────────────────────────── */
.scope-dropdown { position: relative; width: 100%; }
.scope-toggle {
  width: 100%;
  background: var(--input-bg, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 8px;
  font-size: 12px;
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  text-align: left;
}
.scope-toggle:hover { border-color: var(--blue); }
.scope-toggle.active { border-color: var(--coral); }
.scope-panel {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  z-index: 200;
  max-height: 260px;
  display: flex;
  flex-direction: column;
}
.scope-search {
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 7px 10px;
  font-size: 12px;
  outline: none;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #fafbfc;
}
.scope-list {
  overflow-y: auto;
  flex: 1;
  padding: 4px 0;
}
.scope-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text2);
}
.scope-item:hover { background: var(--gray-bg); }
.scope-item input[type=checkbox] { cursor: pointer; accent-color: var(--coral); }
.scope-footer {
  border-top: 1px solid var(--border);
  padding: 5px 10px;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.scope-badge {
  background: var(--coral);
  color: #fff;
  border-radius: 8px;
  font-size: 10px;
  padding: 1px 6px;
  font-weight: 700;
}

.claim-filter-banner {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--coral-bg);
  border-bottom: 1px solid var(--coral-border);
  padding: 7px 16px;
  font-size: 12px;
  color: var(--text2);
  flex-shrink: 0;
}
.link-btn {
  background: none;
  border: none;
  color: var(--coral);
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  font-family: var(--font);
  text-decoration: underline;
  text-align: left;
}
.link-btn:hover { color: var(--coral-hover); }

/* ── Callout ─────────────────────────────────────────────────────────────── */
.callout {
  background: var(--coral-bg);
  border: 1px solid var(--coral-border);
  border-left: 3px solid var(--coral);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
}

/* ── Brand selector ──────────────────────────────────────────────────────── */
.brand-selector { position: relative; }
.brand-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  min-height: 34px;
  cursor: text;
  transition: border-color .15s;
}
.brand-selected-chips:focus-within { border-color: var(--coral); box-shadow: 0 0 0 2px rgba(201,94,62,.12); }
.brand-chip {
  background: var(--coral-bg);
  color: var(--coral);
  border: 1px solid var(--coral-border);
  border-radius: 4px;
  padding: 2px 6px 2px 8px;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 180px;
}
.brand-chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-del {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--coral);
  font-size: 14px;
  line-height: 1;
  padding: 0 1px;
  opacity: .6;
}
.chip-del:hover { opacity: 1; }
.brand-input-wrap { flex: 1; min-width: 80px; }
.brand-input { border: none; outline: none; width: 100%; font-size: 12px; padding: 1px 4px; font-family: var(--font); background: transparent; }
.brand-dropdown {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  box-shadow: var(--shadow-md);
  z-index: 200;
  max-height: 240px;
  overflow-y: auto;
}
.brand-dd-item { padding: 7px 10px; font-size: 12px; cursor: pointer; transition: background .1s; }
.brand-dd-item:hover { background: var(--coral-bg); color: var(--coral); }
.brand-dd-loading, .brand-dd-empty { color: var(--text3); font-style: italic; cursor: default; }
.brand-dd-loading:hover, .brand-dd-empty:hover { background: transparent; }

/* ── Category filter ─────────────────────────────────────────────────────── */
.cat-filter { display: flex; flex-direction: column; gap: 7px; }
.cat-filter-group { display: flex; flex-direction: column; gap: 4px; }
.cat-filter-label { font-size: 9px; color: var(--text3); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.cat-select { width: 100%; }

/* ── Chart panel ─────────────────────────────────────────────────────────── */
.chart-panel {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chart-panel-hdr {
  padding: 10px 12px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-light);
  background: var(--off-white);
}
.chart-panel-title { font-size: 12.5px; font-weight: 700; font-family: var(--font-serif); color: var(--navy3); flex: 1; }
.chart-panel-type  { font-size: 10.5px; color: var(--text3); }
.chart-actions     { display: flex; gap: 4px; }
.chart-action-btn  {
  background: none; border: 1px solid transparent;
  border-radius: 4px; cursor: pointer; padding: 3px 6px;
  font-size: 12px; color: var(--text3);
  transition: all .12s;
}
.chart-action-btn:hover { background: var(--coral-bg); color: var(--coral); border-color: var(--coral-border); }
.chart-action-del:hover { background: var(--red-bg); color: var(--red); border-color: #f5c6c2; }
.chart-canvas-wrap { padding: 12px; position: relative; min-height: 280px; display: flex; align-items: center; justify-content: center; }
.chart-empty { color: var(--text3); font-size: 12px; text-align: center; padding: 40px 20px; }
.chart-empty-icon { font-size: 28px; margin-bottom: 8px; }

/* ── Add chart button ────────────────────────────────────────────────────── */
.add-chart-btn {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: transparent;
  padding: 20px;
  cursor: pointer;
  text-align: center;
  color: var(--text3);
  font-size: 12.5px;
  font-weight: 600;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 80px;
}
.add-chart-btn:hover { border-color: var(--coral); color: var(--coral); background: var(--coral-bg); }

/* ── Dashboard empty state ───────────────────────────────────────────────── */
.dash-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text3);
  text-align: center;
  gap: 12px;
}
.dash-empty-icon { font-size: 40px; }
.dash-empty h3 { font-size: 15px; font-weight: 700; font-family: var(--font-serif); color: var(--text2); }
.dash-empty p  { font-size: 12.5px; max-width: 320px; line-height: 1.6; }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,39,68,.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--off-white);
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.modal-hdr {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-title { font-size: 14px; font-weight: 700; font-family: var(--font-serif); color: var(--navy3); flex: 1; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--text3); padding: 2px 6px; border-radius: 4px; }
.modal-close:hover { background: var(--gray-bg); color: var(--text); }
.modal-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-ftr  { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }

/* ── Product Detail Modal ────────────────────────────────────────────────── */
.pd-modal { max-width: 700px; }
.pd-modal-body { padding: 0; gap: 0; background: var(--bg); }

.pd-section {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 16px 20px;
}
.pd-section:last-child { border-bottom: none; }

.pd-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text3);
  margin-bottom: 12px;
}

/* Meta grid (Product identity fields) */
.pd-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.pd-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 8px 10px;
}
.pd-meta-item.wide { grid-column: 1 / -1; }
.pd-meta-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text3);
}
.pd-meta-val {
  font-size: 12.5px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}

/* Nutrition table */
.pd-nutr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.pd-nutr-table tbody tr {
  border-bottom: 1px solid var(--border-light);
}
.pd-nutr-table tbody tr:last-child { border-bottom: none; }
.pd-nutr-table tbody tr:nth-child(odd) { background: var(--off-white); }
.pd-nutr-label {
  padding: 7px 10px 7px 0;
  color: var(--text2);
  font-weight: 500;
  width: 50%;
}
.pd-nutr-val {
  padding: 7px 8px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--navy3);
}
.pd-nutr-tl {
  padding: 7px 0 7px 8px;
  text-align: center;
  width: 28px;
}

/* TL traffic-light dots */
.tl-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tl-dot.tl-green  { background: var(--green-border); }
.tl-dot.tl-amber  { background: var(--amber-border); }
.tl-dot.tl-red    { background: var(--red-border);   }

/* Text fields */
.pd-text-field {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}
.pd-text-field:last-child { margin-bottom: 0; }
.pd-text-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text3);
  background: var(--off-white);
  border-bottom: 1px solid var(--border-light);
  padding: 5px 10px;
}
.pd-text-val {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
  padding: 8px 10px;
}

/* Phrase highlight badge & mark */
.pd-phrase-badge {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  color: #856404;
  padding: 2px 8px;
  font-family: var(--font);
  text-transform: none;
  letter-spacing: 0;
}
mark.phrase-highlight {
  background: #fff3cd;
  color: #856404;
  border-radius: 2px;
  padding: 0 1px;
  font-weight: 700;
}

/* Loading / error states */
.pd-loading, .pd-error {
  padding: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text3);
}
.pd-error { color: var(--red); }

/* ── Field groups in modal ───────────────────────────────────────────────── */
.field-group   { display: flex; flex-direction: column; gap: 5px; }
.field-label   { font-size: 9px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .16em; }
.field-input   { width: 100%; }
.chart-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chart-type-card {
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all .12s;
  background: #fff;
  text-align: left;
}
.chart-type-card:hover:not(.disabled) { border-color: var(--coral); background: var(--coral-bg); }
.chart-type-card.selected { border-color: var(--coral); background: var(--coral-bg); }
.chart-type-card.disabled { opacity: .45; cursor: not-allowed; }
.chart-type-icon  { font-size: 18px; margin-bottom: 5px; }
.chart-type-name  { font-size: 12px; font-weight: 700; color: var(--navy3); }
.chart-type-desc  { font-size: 10.5px; color: var(--text3); margin-top: 2px; line-height: 1.4; }
.chart-type-badge { font-size: 9.5px; background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); border-radius: 3px; padding: 1px 5px; margin-top: 4px; display: inline-block; }

/* ── Nutrient checkbox grid ──────────────────────────────────────────────── */
.nutrient-check-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.nutrient-check-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all .12s;
  user-select: none;
}
.nutrient-check-chip:hover { border-color: var(--coral); color: var(--coral); }
.nutrient-check-chip.checked { background: var(--coral-bg); border-color: var(--coral); color: var(--coral); font-weight: 700; }
.nutrient-check-chip input { display: none; }

/* ── Null-mode toggle (TL chart) ─────────────────────────────────────────── */
.null-mode-toggle { display: flex; flex-direction: column; gap: 6px; }
.null-mode-option {
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  cursor: pointer;
  background: #fff;
  transition: all .12s;
}
.null-mode-option:hover { border-color: var(--coral); background: var(--coral-bg); }
.null-mode-option.selected { border-color: var(--coral); background: var(--coral-bg); }
.null-mode-label { font-size: 12px; font-weight: 600; color: var(--navy3); }
.null-mode-desc  { font-size: 10.5px; color: var(--text3); margin-top: 2px; line-height: 1.4; }

/* ── Threshold reference ─────────────────────────────────────────────────── */
.threshold-ref {
  background: var(--gray-bg);
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--text2);
  line-height: 1.8;
}
.threshold-ref .g { color: var(--green); font-weight: 700; }
.threshold-ref .a { color: var(--amber); font-weight: 700; }
.threshold-ref .r { color: var(--red);   font-weight: 700; }

/* ── Products tab ────────────────────────────────────────────────────────── */
.products-layout { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.products-filter-bar {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.filter-col { display: flex; flex-direction: column; gap: 4px; }
.filter-col-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--text3); }
.products-table-wrap { flex: 1; overflow: auto; }
.products-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.products-table thead { position: sticky; top: 0; z-index: 10; }
.products-table thead th {
  background: var(--navy);
  color: #fff;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .16em;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
  user-select: none;
  border-right: 1px solid rgba(255,255,255,.1);
}
.products-table thead th:hover { background: var(--navy2); }
.products-table thead th.sorted { background: var(--coral); }
.sort-arrow { margin-left: 4px; opacity: .7; }
.products-table tbody tr { border-bottom: 1px solid #ede5df; }
.products-table tbody tr:hover { background: var(--coral-bg); }
.products-table tbody td { padding: 7px 10px; color: var(--text); }
.products-table tbody td.brand-cell { font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.products-table tbody td.cat-cell { color: var(--text3); font-size: 11px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Traffic light cells ─────────────────────────────────────────────────── */
.tl-cell { text-align: center; min-width: 72px; }
.tl-cell-inner { display: flex; align-items: center; justify-content: center; gap: 3px; padding: 4px 7px; border-radius: 4px; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 11.5px; }
.tl-cell.green .tl-cell-inner { background: var(--green-bg); color: var(--green); }
.tl-cell.amber .tl-cell-inner { background: var(--amber-bg); color: var(--amber); }
.tl-cell.red   .tl-cell-inner { background: var(--red-bg);   color: var(--red); }
.tl-cell.unknown .tl-cell-inner { background: var(--gray-bg); color: var(--gray); }
.tl-vs { font-size: 10px; opacity: .85; }
.tl-vs.above { color: var(--red); }
.tl-vs.below { color: var(--green); }
.num-cell { text-align: right; font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--text2); }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text2);
}
.pagination-info { font-variant-numeric: tabular-nums; }
.page-btns { display: flex; gap: 4px; margin-left: auto; }
.page-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all .12s;
}
.page-btn:hover:not(:disabled) { border-color: var(--coral); color: var(--coral); }
.page-btn.active { background: var(--coral); color: #fff; border-color: var(--coral); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Layouts tab ─────────────────────────────────────────────────────────── */
.layouts-tab { padding: 20px; max-width: 700px; }
.layout-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.layout-item {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: box-shadow .12s;
}
.layout-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.layout-item-icon { font-size: 20px; }
.layout-item-info { flex: 1; }
.layout-item-name { font-weight: 700; font-size: 13px; color: var(--navy3); }
.layout-item-meta { font-size: 11px; color: var(--text3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.layout-item-actions { display: flex; gap: 6px; }
.save-layout-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.save-layout-input { flex: 1; }

/* ── Loading spinner ─────────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Alert boxes ─────────────────────────────────────────────────────────── */
.alert { padding: 10px 12px; border-radius: 5px; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.alert-info    { background: var(--coral-bg); color: var(--navy3); border: 1px solid var(--coral-border); }
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid #a9dfbf; }
.alert-warn    { background: var(--amber-bg); color: var(--amber); border: 1px solid #fad7a0; }
.alert-error   { background: var(--red-bg); color: var(--red); border: 1px solid #f5c6c2; }

/* ── Sidebar sections ────────────────────────────────────────────────────── */
.sidebar-section {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,.5);
  padding: 10px 11px;
}
.sidebar-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.sidebar-note { font-size: 10.5px; color: var(--text3); line-height: 1.5; margin-top: 6px; }

/* ── Summary strip ───────────────────────────────────────────────────────── */
.summary-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.summary-chip {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.summary-chip.green  { background: var(--green-bg); color: var(--green); }
.summary-chip.amber  { background: var(--amber-bg); color: var(--amber); }
.summary-chip.red    { background: var(--red-bg);   color: var(--red); }

/* ── TL legend ───────────────────────────────────────────────────────────── */
.tl-legend { display: flex; gap: 10px; font-size: 11px; align-items: center; }
.tl-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── Misc utils ──────────────────────────────────────────────────────────── */
.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--text3); }
.flex  { display: flex; }
.gap-8 { gap: 8px; }
.flex-1 { flex: 1; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .dashboard-layout { flex-direction: column; }
  .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .chart-grid { grid-template-columns: 1fr; }
}

/* ── Brand selector enhancements ─────────────────────────────────────────── */
.brand-topn-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.brand-topn-label { font-size: 11.5px; color: var(--text3); white-space: nowrap; }
.brand-topn-input { width: 52px; text-align: center; padding: 4px 6px; }
.brand-dd-item     { display: flex; align-items: center; justify-content: space-between; }
.brand-dd-name     { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-dd-count    { font-variant-numeric: tabular-nums; font-size: 11px; color: var(--text3); margin-left: 8px; flex-shrink: 0; }

/* ── Benchmark toggle ─────────────────────────────────────────────────────── */
.benchmark-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all .15s;
  user-select: none;
  background: #fff;
}
.benchmark-toggle:hover { border-color: var(--coral); }
.benchmark-toggle.on {
  background: var(--coral-bg);
  border-color: var(--coral-border);
  color: var(--navy3);
}
.benchmark-toggle-pip {
  width: 28px;
  height: 15px;
  border-radius: 10px;
  background: var(--border);
  position: relative;
  flex-shrink: 0;
  transition: background .2s;
}
.benchmark-toggle-pip::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.benchmark-toggle.on .benchmark-toggle-pip { background: var(--coral); }
.benchmark-toggle.on .benchmark-toggle-pip::after { transform: translateX(13px); }
.benchmark-toggle-label { font-size: 12px; font-weight: 600; }
.benchmark-note { color: var(--text2) !important; font-size: 11px; line-height: 1.6; }

/* ── Investigation Bar ───────────────────────────────────────────────────── */
.invest-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 12px 16px 0;
  flex-shrink: 0;
  overflow: hidden;
}
.invest-zone {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.invest-zone-1 { flex: 1; gap: 10px; }
.invest-zone-2 { min-width: 160px; max-width: 180px; }
.invest-zone-3 { min-width: 180px; max-width: 200px; }
.invest-zone-divider {
  width: 1px;
  background: var(--border-light);
  flex-shrink: 0;
  align-self: stretch;
  margin: 8px 0;
}
.invest-zone-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text3);
  margin-bottom: 2px;
}
.invest-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 5px;
  transition: background .12s;
}
.invest-row.inactive { opacity: .55; }
.invest-row.active   { background: var(--off-white); }
.invest-row-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 2px;
}

/* Chips inside bar */
.invest-chip { font-size: 11px; padding: 3px 8px; }
.invest-chip-tl.active,  .invest-chip-tl.checked  { background: var(--green-bg);  color: var(--green);  border-color: var(--green-border); }
.invest-chip-rel.active, .invest-chip-rel.checked { background: var(--coral-bg);  color: var(--coral);  border-color: var(--coral-border); }

/* Direction controls */
.invest-locked {
  font-size: 11px;
  color: var(--text3);
  font-style: italic;
  padding: 4px 0;
}
.invest-dir-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background .1s;
  font-size: 12px;
  color: var(--text2);
}
.invest-dir-row:hover { background: var(--off-white); }
.invest-dir-pip {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 1px;
  transition: all .12s;
}
.invest-dir-pip.on { border-color: var(--coral); background: var(--coral); }
.invest-dir-eg    { font-size: 10.5px; color: var(--text3); margin-top: 1px; }
.invest-auto-note { font-size: 10px; color: var(--coral); font-style: italic; padding: 2px 8px; }

/* Category level segment buttons */
.invest-seg-row { display: flex; gap: 4px; }
.invest-seg-btn {
  flex: 1;
  padding: 5px 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all .12s;
}
.invest-seg-btn:hover    { border-color: var(--coral); color: var(--coral); }
.invest-seg-btn.active   { background: var(--coral); color: #fff; border-color: var(--coral); }
.invest-level-desc {
  font-size: 10.5px;
  color: var(--text3);
  line-height: 1.5;
  margin-top: 2px;
}

/* ── 2×2 Quadrant Chart ──────────────────────────────────────────────────── */
.quadrant-wrap {
  display: grid;
  /* col 1 = row-label, cols 2-3 = equal data cells */
  grid-template-columns: 90px 1fr 1fr;
  /* row 1 = col-headers, rows 2-3 = equal data rows */
  grid-template-rows: auto minmax(120px, auto) minmax(120px, auto);
  gap: 8px;
  padding: 16px;
  max-width: 700px;
}
.quadrant-corner { display: block; }
.quadrant-col-hdr {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text2);
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 6px 10px;
  text-align: center;
}
.quadrant-row-hdr {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text2);
  text-align: right;
}
.quadrant-cell {
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid transparent;
  /* fill full grid cell so both cells in a row are always same height */
  align-self: stretch;
}
.quadrant-cell.honest      { background: var(--green-bg);  border-color: var(--green-border); }
.quadrant-cell.misleading  { background: var(--red-bg);    border-color: var(--red-border);   }
.quadrant-cell.hidden-str  { background: var(--coral-bg);  border-color: var(--coral-border); }
.quadrant-cell.consistent  { background: var(--off-white); border-color: var(--border);       }
.quadrant-cell-label  { font-size: 12px; font-weight: 700; color: var(--text); }
.quadrant-cell-desc   { font-size: 10.5px; color: var(--text3); line-height: 1.4; }
.quadrant-cell-count  { font-size: 22px; font-weight: 700; font-family: var(--font-serif); color: var(--navy); margin-top: 6px; }
.quadrant-cell-pct    { font-size: 11px; color: var(--text3); font-variant-numeric: tabular-nums; }

/* ── Brand exposure table — investigation columns ────────────────────────── */
.hotspot-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--coral-bg);
  border: 1px solid var(--coral-border);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--coral);
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}
.hotspot-pill:hover { background: var(--coral-border); }
.hotspot-pill .hotspot-dot { color: var(--red); font-size: 8px; }

.inv-score { font-family: var(--font-serif); font-size: 15px; font-weight: 700; }
.inv-score.high   { color: var(--red);   }
.inv-score.medium { color: var(--amber); }
.inv-score.low    { color: var(--text3); }

.focus-cell { display: flex; flex-direction: column; gap: 3px; }
.focus-bar-wrap { width: 60px; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.focus-bar-fill { height: 100%; background: var(--coral); border-radius: 3px; }
.focus-pct { font-size: 10.5px; font-variant-numeric: tabular-nums; color: var(--text2); }

.mislead-rate-cell { font-weight: 700; font-size: 12.5px; text-align: center; border-radius: 4px; padding: 3px 8px; }
.mislead-rate-high   { color: var(--red);   background: var(--red-bg);   }
.mislead-rate-medium { color: var(--amber); background: var(--amber-bg); }
.mislead-rate-low    { color: var(--green); background: var(--green-bg); }

.brand-row-no-claims { opacity: 0.5; }

/* ── Phrase builder ───────────────────────────────────────────────────────── */
.phrase-builder { display: flex; flex-direction: column; gap: 6px; }
.phrase-row {
  display: flex;
  align-items: center;
  gap: 5px;
}
.phrase-op-btns { display: flex; gap: 3px; flex-shrink: 0; }
.phrase-remove-btn { padding: 3px 7px; font-size: 14px; line-height: 1; flex-shrink: 0; }
.phrase-add-btn {
  font-size: 11.5px;
  color: var(--coral);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  text-align: left;
  font-weight: 600;
}
.phrase-add-btn:hover { text-decoration: underline; }

/* ── Active phrase display ───────────────────────────────────────────────── */
.claim-active-phrase {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 16px 4px;
  font-size: 11.5px;
  color: var(--text2);
}
.claim-phrase-text {
  font-weight: 700;
  color: var(--navy3);
  font-size: 12px;
}

/* ── Results area (tables only — flex:1 child of dashboard-layout) ────────── */
.claim-results-area {
  display: block;
}

/* ── Compare panel (sits between sidebar and claim-main in dashboard-layout) */
.claim-compare-panel {
  width: 260px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--bg);
  overflow-y: auto;
}
.claim-compare-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
}
.claim-compare-panel-header:hover { background: var(--off-white); }
.claim-compare-chevron {
  font-size: 14px;
  line-height: 1;
  color: var(--text3);
}
.claim-compare-panel-body { padding: 0; }
.claim-compare-btn-active-hint {
  font-size: 10px;
  color: var(--coral);
  font-weight: 600;
}
.claim-compare-prompt {
  font-size: 11px;
  color: var(--text3);
  font-style: italic;
  padding: 10px 14px 4px;
}

/* Re-flow invest-bar vertically inside the narrow panel */
.claim-compare-panel-body .invest-bar {
  flex-direction: column;
  margin: 0;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
}
.claim-compare-panel-body .invest-zone-divider {
  width: auto;
  height: 1px;
  margin: 0 10px;
  align-self: auto;
}
.claim-compare-panel-body .invest-zone-2,
.claim-compare-panel-body .invest-zone-3 {
  min-width: 0;
  max-width: none;
}

/* Narrow viewport: panel stacks above the main content area */
@media (max-width: 900px) {
  .claim-compare-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* ── Loading state ───────────────────────────────────────────────────────── */
.claim-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 16px;
  color: var(--text3);
  font-size: 12px;
}
.claim-loading-spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
.claim-zero-state {
  padding: 16px 0 8px;
  color: var(--text3);
  font-size: 12px;
  font-style: italic;
}
.claim-table-loading { opacity: 0.5; pointer-events: none; }
