  /* Dashboard components. Layout (shell/sidebar/topbar) comes from app.css;
     this file styles the tab content. Tokens from css/tokens.css. */
  .dash-canvas { max-width: 1240px; }
  .container { width: 100%; }
  .page-section { margin: 0; }

  /* report-title rename controls in the topbar */
  .report-title-row { display:flex; align-items:center; gap:4px; }
  .crumb-title { font-size: 13px; font-weight: 620; }
  .report-title-input { min-width: 220px; height: 30px; font-size: 14px; font-weight: 600; }
  .btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
  .btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
  .btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
  .btn-ghost { border-color: transparent; background: transparent; color: var(--accent-ink); }
  .btn-danger { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 30%, var(--border)); }

  /* Stats */
  .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
  .stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 15px 16px; box-shadow: var(--shadow-card); }
  .stat-card .label { font-size: 11px; color: var(--ink-3); font-weight: 550; letter-spacing: 0; text-transform: none; }
  .stat-card .value { font-size: 25px; font-weight: 640; letter-spacing: -.025em; margin-top: 5px; font-variant-numeric: tabular-nums; }

  /* Filters */
  .section-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 18px; }
  .filters { display: flex; gap: 9px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
  .filters input, .filters select { height: 34px; padding: 0 11px; border: 1px solid var(--border); border-radius: var(--r-sm); font-size: 13px; background: var(--surface); color: var(--ink); }
  .filters input { flex: 1 1 240px; min-width: 160px; }
  .filters select { flex: 0 0 auto; min-width: 128px; }
  .filters input:focus, .filters select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
  .filter-count { flex: 0 0 auto; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
  .view-switcher { display:flex; gap:0; flex:0 0 auto; margin-left:auto; border:1px solid var(--border); border-radius:var(--r-sm); overflow:hidden; }
  .view-switcher .btn { height:32px; padding:0 12px; border:0; border-radius:0; background:var(--surface); box-shadow:none; }
  .view-switcher .btn.active { background:var(--accent-wash); color:var(--accent-ink); }

  /* Ad Grid */
  .ad-grid { display: flex; flex-direction: column; gap: 9px; }
  .ad-grid.view-card-mode { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 14px; }

  /* Card (gallery) mode */
  .facebook-ad-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-card); transition: box-shadow .16s, transform .16s, border-color .16s; }
  .facebook-ad-card:hover { box-shadow: var(--shadow-pop); transform: translateY(-2px); border-color: var(--border-strong); }
  .fb-card-header { display: flex; align-items: center; gap: 10px; padding: 12px 13px; }
  .fb-card-avatar { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 680; font-size: 14px; flex: none; }
  .fb-card-meta { flex: 1; min-width: 0; }
  .fb-card-adv-name { font-size: 13px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fb-card-sub { font-size: 11px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fb-card-top-badges { display: flex; align-items: center; gap: 6px; flex: none; }
  .fb-card-copy { padding: 2px 14px 12px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
  .fb-card-copy-more { color: var(--accent-ink); font-weight: 600; cursor: pointer; margin-left: 3px; }
  .fb-card-media { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: var(--surface-inset); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: block; }
  .fb-card-footer { display: flex; align-items: center; gap: 10px; padding: 12px 13px; margin-top: auto; }
  .fb-card-info { flex: 1; min-width: 0; }
  .fb-card-title { font-size: 12.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .fb-card-cta-btn { flex: none; height: 30px; padding: 0 13px; border-radius: var(--r-sm); border: 1px solid var(--accent); background: var(--accent-wash); color: var(--accent-ink); font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
  .ad-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; cursor: pointer; box-shadow: var(--shadow-sm); }
  .ad-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
  .ad-card.expanded { box-shadow: var(--shadow-md); border-color: var(--accent); }
  .ad-card-header { display: grid; grid-template-columns: 40px 84px 1fr 86px 150px; gap: 12px; padding: 12px 16px; align-items: center; }
  .ad-card-header > * { overflow: hidden; text-overflow: ellipsis; }
  .ad-count { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
  .ad-count.high { background: #fed7d7; color: var(--red); }
  .ad-count.med { background: #feebc8; color: var(--orange); }
  .ad-count.low { background: #c6f6d5; color: var(--green); }
  .type-badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 12px; white-space: nowrap; text-align: center; }
  .type-badge.SPONSORED_MESSAGE { background: #e9d8fd; color: #6b46c1; }
  .type-badge.SPONSORED_VIDEO { background: #bee3f8; color: #2b6cb0; }
  .type-badge.SPONSORED_STATUS_UPDATE { background: #c6f6d5; color: #276749; }
  .type-badge.SPONSORED_UPDATE_NATIVE_DOCUMENT { background: #fefcbf; color: #975a16; }
  .type-badge.SPONSORED_UPDATE_CAROUSEL { background: #fed7e2; color: #9b2c2c; }
  .type-badge.SPONSORED_UPDATE_LINKEDIN_ARTICLE { background: #e2e8f0; color: #4a5568; }
  .type-badge.TEXT_AD { background: #fbd38d; color: #7b341e; }
  .type-badge.JOBS_V2,
  .type-badge.SPONSORED_UPDATE_JOB_POSTING { background: #dbeafe; color: #1d4ed8; }
  .type-badge.SPONSORED_INMAILS { background: #e9d8fd; color: #6b46c1; }
  .type-badge.FOLLOW_COMPANY_V2 { background: #e2e8f0; color: #475569; }
  .ad-text-preview { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ad-headline { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ad-country { font-size: 12px; color: var(--muted); text-align: center; }
  .ad-actions { display:flex; gap:6px; align-items:center; justify-content:flex-end; flex-wrap:wrap; }
  .ad-cta-chip { display:inline-flex; align-items:center; justify-content:center; max-width:88px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; pointer-events:none; }

  /* Expanded Body */
  .ad-card-body { display: none; padding: 0 16px 16px; border-top: 1px solid var(--border); background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); }
  .ad-card.expanded .ad-card-body { display: block; }
  .ad-full-text { background: #f7faff; border: 1px solid #e7eef8; border-radius: 12px; padding: 14px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; margin: 12px 0; max-height: 400px; overflow-y: auto; }
  .ad-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; font-size: 13px; margin: 10px 0; }
  .ad-meta-item { display: flex; gap: 6px; }
  .ad-meta-item .key { color: var(--muted); }
  .ad-meta-item .val { font-weight: 500; }
  .cta-links { margin: 10px 0; }
  .cta-links a { display: block; font-size: 13px; color: var(--accent); padding: 4px 0; word-break: break-all; }
  .ad-ids { margin-top: 12px; }
  .ad-ids summary { font-size: 13px; color: var(--muted); cursor: pointer; }
  .ad-ids .id-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
  .ad-ids .id-chip { font-size: 11px; background: var(--accent-light); color: var(--accent); padding: 2px 8px; border-radius: 10px; font-family: monospace; }

  /* Images */
  .image-strip { display: flex; gap: 8px; margin: 10px 0; overflow-x: auto; }
  .image-strip img { height: 100px; border-radius: 6px; border: 1px solid var(--border); cursor: pointer; transition: transform 0.15s; }
  .image-strip img:hover { transform: scale(1.05); }

  /* Image Modal / Lightbox */
  .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9999; justify-content: center; align-items: center; cursor: pointer; }
  .modal-overlay.active { display: flex; }
  .modal-overlay img { max-width: 90vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.4); cursor: default; }
  .modal-close { position: fixed; top: 20px; right: 30px; color: #fff; font-size: 36px; cursor: pointer; z-index: 10000; font-weight: 300; line-height: 1; }

  /* Empty state */
  .empty { text-align: center; padding: 56px 24px; color: var(--ink-3); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--r-lg); }
  .empty-icon { font-size: 30px; margin-bottom: 10px; opacity: .8; filter: grayscale(.2); }
  .empty h2 { font-size: 15px; font-weight: 620; margin-bottom: 6px; color: var(--ink); }
  .empty p { font-size: 13px; max-width: 46ch; margin: 0 auto; }
  .empty-actions { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:16px; }

  /* Tabs — nav lives in the sidebar (styled by app.css .nav-item). */
  .tab-content { display: none; }
  .tab-content.active { display: block; }
  [hidden] { display: none !important; }
  .tab-page { padding: 0; }

  /* Charts */
  .charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
  .chart-box { background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-sm); }
  .chart-box h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
  .chart-box p { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
  .chart-box canvas { width: 100%; max-height: 300px; }

  /* Map */
  .map-container { position: relative; max-width: 900px; margin: 0 auto; }
  .map-container svg { width: 100%; height: auto; }
  .map-country { fill: #e2e8f0; stroke: #cbd5e0; stroke-width: 1; transition: fill 0.2s; }
  .map-country.active { cursor: pointer; }
  .map-country.active:hover { fill: var(--accent); }
  .map-tooltip { position: absolute; background: var(--text); color: #fff; padding: 8px 12px; border-radius: 6px; font-size: 13px; pointer-events: none; display: none; white-space: nowrap; z-index: 100; }
  .insight-banner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; margin-bottom: 18px; }
  .insight-card { background: linear-gradient(135deg, #0a66c2 0%, #164989 100%); color: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow-md); }
  .insight-card h2 { font-size: 24px; line-height: 1.15; margin-bottom: 10px; }
  .insight-card p { font-size: 14px; color: rgba(255,255,255,0.82); max-width: 58ch; }
  .insight-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mini-card { background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%); border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-sm); }
  .mini-card .kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
  .mini-card .big { font-size: 24px; font-weight: 800; margin-top: 8px; }
  .mini-card .note { font-size: 12px; color: var(--muted); margin-top: 6px; }
  .analytics-report { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 18px; }
  .report-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .report-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-card); }
  .report-panel h3 { font-size: 14px; font-weight: 620; letter-spacing: -.01em; margin-bottom: 4px; display: flex; align-items: center; gap: 5px; }
  .report-panel p { font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; }
  .analytics-secondary-panel { display:none; }
  .analytics-readout { display:grid; grid-template-columns: 1.15fr .85fr; gap:18px; margin-bottom:18px; }
  .analytics-readout-card { background: #ffffff; color:var(--text); border:1px solid var(--border); border-radius:22px; padding:22px; box-shadow:var(--shadow-sm); }
  .analytics-readout-card .kicker { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); font-weight:800; margin-bottom:8px; }
  .analytics-readout-card h2 { font-size:24px; line-height:1.18; margin-bottom:10px; }
  .analytics-readout-card p { color:var(--muted); font-size:14px; line-height:1.65; max-width:78ch; margin:0; }
  .analytics-snapshot { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
  .snapshot-tile { background:#fff; border:1px solid var(--border); border-radius:16px; padding:14px 16px; box-shadow:var(--shadow-sm); }
  .snapshot-tile span { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); font-weight:800; margin-bottom:6px; }
  .snapshot-tile strong { display:block; font-size:16px; line-height:1.3; color:var(--text); font-weight:500; }
  .label-health-grid { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:12px; }
  .label-health-card { border:1px solid var(--border); border-radius:16px; background:#fff; padding:13px 14px; box-shadow:var(--shadow-sm); min-width:0; }
  .label-health-card span { display:block; font-size:10px; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); font-weight:900; margin-bottom:5px; }
  .label-health-card strong { display:block; font-size:18px; line-height:1.25; color:var(--text); font-weight:800; }
  .label-health-card small { display:block; font-size:11px; color:var(--muted); line-height:1.35; margin-top:4px; }
  .analytics-section-label { font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); font-weight:900; margin:24px 0 10px; }
  .advanced-signals { border:1px solid var(--border); border-radius:var(--r-lg); background:var(--surface); box-shadow:var(--shadow-card); overflow:hidden; }
  .advanced-signals summary { cursor:pointer; padding:14px 18px; font-size:13px; font-weight:620; color:var(--ink); background:var(--surface-2); }
  .advanced-signals-body { padding:18px; display:flex; flex-direction:column; gap:16px; }
  .region-list { display: grid; gap: 10px; }
  .region-card { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%); cursor:pointer; transition:border-color .16s, box-shadow .16s; }
  .region-card:hover { border-color:#c7d8ed; box-shadow:var(--shadow-sm); }
  .region-card.expanded { border-color:var(--accent); box-shadow:var(--shadow-sm); }
  .region-card-top { display: grid; grid-template-columns: 64px minmax(148px, 0.34fr) 1fr; gap: 14px; align-items: center; }
  .region-name { font-size: 15px; font-weight: 800; }
  .region-total { font-size: 22px; font-weight: 800; color: var(--accent); }
  .region-meta { display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
  .region-meta strong { color: var(--text); font-size: 13px; }
  .region-mix { display: grid; gap: 7px; }
  .progress-track { height: 10px; border-radius: 999px; background: #eaf0f8; overflow: hidden; }
  .progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #0a66c2 0%, #5ba8ff 100%); }
  .region-volume-track { width:100%; height: 10px; border-radius:999px; background:#eaf0f8; overflow:hidden; }
  .region-volume-fill { height:100%; display:flex; border-radius:999px; overflow:hidden; }
  .region-mix-segment { height:100%; min-width:2px; }
  .region-format-row { display:flex; gap:10px; flex-wrap:wrap; color:var(--muted); font-size:11px; }
  .region-format-item { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
  .region-format-dot { width:7px; height:7px; border-radius:50%; display:inline-block; }
  .region-detail { display:none; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:8px; border-top:1px solid #e5edf7; margin-top:12px; padding-top:12px; }
  .region-card.expanded .region-detail { display:grid; }
  .region-detail-item { border:1px solid #e2eaf4; background:#fff; border-radius:12px; padding:9px 10px; }
  .region-detail-item strong { display:block; font-size:13px; color:var(--text); margin-bottom:4px; }
  .region-detail-item span { display:block; font-size:12px; color:var(--muted); line-height:1.45; }
  .country-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .country-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 10px; border-radius: 999px; background: #f4f8fe; border: 1px solid #dce8f7; color: #355070; }
  .country-chip b { color: var(--text); }
  .mix-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
  .legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
  .legend-swatch { width: 10px; height: 10px; border-radius: 3px; }
  .mix-table { display: grid; gap: 14px; }
  .mix-row { display: grid; grid-template-columns: 56px 1fr 54px; gap: 12px; align-items: center; }
  .mix-country { font-size: 13px; font-weight: 800; }
  .mix-bar { height: 18px; display: flex; overflow: hidden; border-radius: 999px; background: #edf2f8; border: 1px solid #dce6f3; }
  .mix-segment { height: 100%; min-width: 2px; }
  .mix-value { text-align: right; font-size: 12px; color: var(--muted); font-weight: 700; }
  .rank-list { display: grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rank-card { border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%); cursor:pointer; transition: border-color .16s, box-shadow .16s; }
  .rank-card:hover { border-color:#c7d8ed; box-shadow:var(--shadow-sm); }
  .rank-card.expanded { border-color:var(--accent); box-shadow:var(--shadow-md); }
  .rank-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .rank-title { font-size: 14px; font-weight: 400; line-height: 1.45; max-width: 58ch; }
  .rank-badge { min-width: 54px; text-align: center; padding: 8px 10px; border-radius: 14px; background: #eef5ff; color: var(--accent); font-size: 14px; font-weight: 800; }
  .rank-format { font-size:12px; color:var(--muted); background:#f5f8fc; border:1px solid #e2eaf4; padding:6px 9px; border-radius:999px; font-weight:700; white-space:nowrap; }
  .rank-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
  .rank-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
  .rank-meta span { font-size: 12px; color: var(--muted); background: #f5f8fc; border: 1px solid #e2eaf4; padding: 5px 8px; border-radius: 999px; }
  .rank-body { display:none; border-top:1px solid #e5edf7; padding-top:12px; margin-top:12px; }
  .rank-card.expanded .rank-body { display:grid; gap:12px; }
  .rank-copy { background:#f7faff; border:1px solid #e7eef8; border-radius:12px; padding:12px 14px; font-size:13px; line-height:1.65; white-space:pre-wrap; max-height:220px; overflow:auto; }
  .rank-detail-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap:8px; font-size:12px; }
  .rank-detail-item { border:1px solid #e2eaf4; background:#fff; border-radius:12px; padding:9px 10px; }
  .rank-detail-item .key { color:var(--muted); display:block; margin-bottom:4px; }
  .rank-detail-item .val { color:var(--text); font-weight:700; }
  .rank-links { display:grid; gap:6px; }
  .rank-links a { color:var(--accent); text-decoration:none; font-size:12px; word-break:break-all; background:#f5f8fc; border:1px solid #e2eaf4; padding:6px 8px; border-radius:10px; }
  .landing-list { display: grid; grid-template-columns:1fr; gap: 12px; }
  .landing-card { border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); }
  .landing-card.expandable { cursor:pointer; }
  .landing-card.expanded { border-color:var(--accent); box-shadow:var(--shadow-sm); }
  .landing-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
  .landing-domain { font-size: 14px; font-weight: 800; }
  .landing-role-summary { font-size:12px; color:var(--muted); line-height:1.45; margin-top:2px; }
  .landing-count { font-size: 13px; font-weight: 800; color: var(--accent); }
  .landing-top-actions { display:flex; align-items:center; gap:8px; }
  .landing-toggle { display:inline-flex; align-items:center; gap:5px; border:1px solid #d7e6f8; background:#f4f8fe; color:var(--accent); border-radius:999px; padding:5px 9px; font-size:11px; font-weight:800; cursor:pointer; }
  .landing-toggle-icon { font-size:12px; line-height:1; transition:transform .16s; }
  .landing-card.expanded .landing-toggle-icon { transform:rotate(90deg); }
  .landing-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 8px; }
  .landing-samples { margin-top: 10px; display: grid; gap: 6px; }
  .landing-card:not(.expanded) .landing-extra { display:none; }
  .landing-extra { display:grid; gap:8px; margin-top:10px; }
  .landing-page-row { display:grid; grid-template-columns: minmax(0, 1fr) auto; gap:10px; align-items:center; border:1px solid #e2eaf4; background:#fff; border-radius:12px; padding:9px 10px; }
  .landing-page-url { color:var(--accent); text-decoration:none; font-size:12px; word-break:break-all; }
  .landing-page-action { display:inline-flex; align-items:center; justify-content:center; border:1px solid #d7e6f8; background:#f4f8fe; color:var(--accent); border-radius:999px; padding:6px 10px; font-size:11px; font-weight:800; cursor:pointer; white-space:nowrap; }
  .landing-page-action:hover { border-color:var(--accent); background:#eef6ff; }
  .landing-samples a { font-size: 12px; color: #355070; text-decoration: none; background: #f5f8fc; border: 1px solid #e2eaf4; border-radius: 10px; padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .strategy-report { display:grid; gap:18px; }
  .strategy-hero-row { display:grid; grid-template-columns:1fr; gap:14px; align-items:start; }
  .corp-dashboard .strategy-hero-row { grid-template-columns:1fr !important; gap:14px !important; align-items:start !important; margin-bottom:0 !important; }
  .strategy-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; margin-bottom: 18px; }
  .strategy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .strategy-grid-3 { display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; }
  .strategy-card { background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); border: 1px solid var(--border); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-sm); }
  .strategy-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
  .strategy-card p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
  .strategy-side-stack { display:grid; gap:12px; }
  .strategy-memo-card { align-self:start; background:#fff; border:1px solid var(--border); border-radius:22px; padding:22px; box-shadow:var(--shadow-sm); }
  .strategy-memo-card .kicker { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); font-weight:800; margin-bottom:8px; }
  .strategy-memo-card h3 { font-size:22px; line-height:1.22; margin-bottom:10px; }
  .strategy-memo-card p { font-size:14px; line-height:1.7; color:var(--muted); margin:0; }
  .strategy-memo-card .decision-line { margin-top:14px; border-top:1px solid #e5edf7; padding-top:14px; color:var(--text); font-weight:700; }
  .strategy-brief-card { background:#fff; border:1px solid var(--border); border-radius:18px; padding:22px; box-shadow:var(--shadow-sm); }
  .strategy-brief-top { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:10px; }
  .strategy-brief-title { font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); font-weight:900; }
  .strategy-brief-card h3 { font-size:24px; line-height:1.22; max-width:980px; margin:0 0 10px; }
  .strategy-brief-card p { font-size:14px; line-height:1.7; color:var(--muted); margin:0; max-width:980px; }
  .strategy-brief-signals { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; margin-top:16px; }
  .strategy-brief-signal { border:1px solid #e1ebf7; background:#f8fbff; border-radius:12px; padding:11px 12px; min-width:0; }
  .strategy-brief-signal span { display:block; font-size:10px; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); font-weight:900; margin-bottom:4px; }
  .strategy-brief-signal strong { display:block; font-size:14px; color:var(--text); line-height:1.3; }
  .strategy-module-nav { position:sticky; top:0; z-index:20; display:flex; gap:8px; overflow-x:auto; padding:10px 0 2px; background:linear-gradient(180deg, rgba(246,248,251,.98), rgba(246,248,251,.86)); }
  .strategy-module-nav a { flex:0 0 auto; border:1px solid #dce8f7; background:#fff; border-radius:999px; padding:7px 10px; font-size:12px; color:#355070; text-decoration:none; font-weight:800; }
  .strategy-module-stack { display:grid; gap:14px; }
  .strategy-module-card { background:#fff; border:1px solid var(--border); border-radius:18px; padding:20px; box-shadow:var(--shadow-sm); scroll-margin-top:72px; }
  .strategy-module-head { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; margin-bottom:10px; }
  .strategy-module-label { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); font-weight:900; }
  .strategy-module-card h3 { font-size:20px; line-height:1.28; margin:0 0 8px; max-width:980px; }
  .strategy-module-why { font-size:14px; line-height:1.65; color:var(--muted); margin:0; max-width:980px; }
  .strategy-signal-table { display:grid; gap:0; border:1px solid #e1ebf7; border-radius:14px; overflow:hidden; margin-top:14px; }
  .strategy-signal-row { display:grid; grid-template-columns:190px minmax(0, 1fr) 128px; gap:12px; align-items:center; padding:10px 12px; background:#fff; border-top:1px solid #e1ebf7; }
  .strategy-signal-row:first-child { border-top:0; }
  .strategy-signal-row.drillable { cursor:pointer; transition:background .16s; }
  .strategy-signal-row.drillable:hover { background:#f8fbff; }
  .strategy-signal-name { font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); font-weight:900; }
  .strategy-signal-value { font-size:14px; color:var(--text); font-weight:750; line-height:1.35; }
  .strategy-signal-count { font-size:12px; color:var(--muted); text-align:right; font-variant-numeric:tabular-nums; }
  .strategy-implication { margin-top:14px; padding:12px 14px; border-left:3px solid var(--accent); background:#f8fbff; border-radius:10px; color:var(--text); font-size:14px; line-height:1.6; }
  .strategy-module-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
  .strategy-action-btn { border:1px solid #dce8f7; background:#fff; color:#355070; border-radius:999px; padding:7px 10px; font-size:12px; font-weight:850; cursor:pointer; }
  .strategy-action-btn:hover { border-color:var(--accent); background:#f4f8fe; }
  .strategy-action-btn.disabled { color:#94a3b8; cursor:default; background:#f8fafc; }
  .strategy-action-btn.disabled:hover { border-color:#dce8f7; background:#f8fafc; }
  .strategy-module-extra { display:none; margin-top:12px; color:var(--muted); font-size:13px; line-height:1.6; }
  .strategy-module-card.expanded .strategy-module-extra { display:block; }
  .strategy-module-toggle { margin-left:auto; border:0; background:transparent; color:var(--accent); font-weight:850; font-size:12px; cursor:pointer; padding:7px 2px; }
  .strategy-report-section { background:#fff; border:1px solid var(--border); border-radius:22px; padding:20px; box-shadow:var(--shadow-sm); }
  .strategy-report-section h3 { font-size:17px; line-height:1.35; margin:0 0 10px; }
  .strategy-section-label { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); font-weight:900; margin-bottom:8px; }
  .strategy-field-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; margin-top:14px; }
  .strategy-field { border:1px solid #e1ebf7; background:#f8fbff; border-radius:14px; padding:12px 14px; }
  .strategy-field span { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); font-weight:800; margin-bottom:4px; }
  .strategy-field p { font-size:13px; line-height:1.6; color:var(--text); margin:0; }
  .strategy-evidence-row { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 2px; }
	  .strategy-evidence-chip { display:inline-flex; align-items:center; justify-content:center; gap:7px; border:1px solid #dce8f7; background:#f4f8fe; color:#355070; border-radius:999px; padding:6px 10px; font-size:12px; text-align:center; }
	  .strategy-evidence-chip.drillable { cursor:pointer; transition:background .16s, border-color .16s, transform .16s; }
	  .strategy-evidence-chip.drillable:hover { background:#eef6ff; border-color:var(--accent); transform:translateY(-1px); }
	  .strategy-evidence-chip strong { color:var(--text); font-variant-numeric:tabular-nums; }
	  .strategy-insight-card { background:#fff; border:1px solid var(--border); border-radius:18px; padding:18px; box-shadow:var(--shadow-sm); cursor:pointer; transition:box-shadow .18s, border-color .18s, transform .18s; }
	  .strategy-insight-card:hover { box-shadow:var(--shadow-md); border-color:#b9d2ee; transform:translateY(-1px); }
	  .strategy-insight-card h3 { font-size:16px; line-height:1.35; margin:0 0 8px; }
	  .strategy-insight-card p { font-size:13px; color:var(--muted); line-height:1.65; margin:0; }
	  .strategy-insight-action { display:inline-flex; align-items:center; gap:6px; margin-top:12px; color:var(--accent); font-size:12px; font-weight:800; }
	  .strategy-tag-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
	  .creative-evidence-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:12px; }
	  .creative-evidence-card { border:1px solid var(--border); background:var(--surface); border-radius:var(--r-md); padding:16px 16px 15px; cursor:pointer; transition:box-shadow .18s, border-color .18s, transform .18s; }
	  .creative-evidence-card:hover { box-shadow:var(--shadow-sm); border-color:var(--accent); transform:translateY(-1px); }
	  .creative-evidence-media { width:100%; aspect-ratio:1.91/1; border:1px solid var(--border); border-radius:var(--r-sm); overflow:hidden; background:var(--surface-inset); margin-bottom:12px; }
	  .creative-evidence-media img { width:100%; height:100%; object-fit:cover; display:block; }
	  .creative-evidence-title { font-size:13.5px; font-weight:640; line-height:1.4; margin-bottom:6px; color:var(--ink); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; letter-spacing:-.01em; }
	  .creative-evidence-copy { font-size:12px; line-height:1.55; color:var(--muted); margin:8px 0 10px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
	  .creative-evidence-meta { display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; color:var(--muted); }
	  .creative-evidence-meta .strategy-evidence-chip { border:0; background:transparent; border-radius:0; padding:0; gap:4px; font-size:11px; color:var(--muted); line-height:1.4; }
	  .creative-evidence-meta .strategy-evidence-chip span { color:var(--muted); }
	  .creative-evidence-meta .strategy-evidence-chip strong { color:#475569; font-weight:700; }
  .strategy-opportunity-list { display:grid; gap:10px; }
  .strategy-opportunity-item { border:1px solid #e1ebf7; background:#fff; border-radius:14px; padding:13px 14px; }
  .strategy-opportunity-item strong { display:block; font-size:14px; margin-bottom:5px; }
  .strategy-opportunity-item span { display:block; font-size:13px; color:var(--muted); line-height:1.6; }
  .strategy-confidence { display:inline-flex; align-items:center; justify-content:center; border-radius:999px; padding:5px 9px; font-size:12px; font-weight:800; border:1px solid #dce8f7; color:#355070; background:#f4f8fe; }
  .strategy-confidence.high { color:#027a48; border-color:#abefc6; background:#ecfdf3; }
  .strategy-confidence.medium { color:#b54708; border-color:#fedf89; background:#fffaeb; }
  .strategy-confidence.low { color:#b42318; border-color:#fecdca; background:#fff5f5; }
  .strategy-topline-metrics { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; }
  .strategy-metric { background:#fff; border:1px solid var(--border); border-radius:16px; padding:14px 16px; box-shadow:var(--shadow-sm); min-width:0; }
  .strategy-metric span { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); font-weight:800; margin-bottom:6px; }
  .strategy-metric strong { display:block; font-size:17px; line-height:1.3; font-weight:600; color:var(--text); }
  .strategy-metric small { display:block; color:var(--muted); font-size:12px; line-height:1.45; margin-top:5px; }
  .gtm-brief { background:#fff; border:1px solid var(--border); border-radius:22px; padding:20px; box-shadow:var(--shadow-sm); }
  .gtm-brief-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; margin-bottom:14px; }
  .gtm-brief-head h3 { font-size:18px; line-height:1.35; margin:0; }
  .gtm-threat { display:inline-flex; align-items:center; justify-content:center; border-radius:999px; padding:6px 10px; font-size:12px; font-weight:900; border:1px solid #fedf89; background:#fffaeb; color:#b54708; white-space:nowrap; }
  .gtm-threat.high { border-color:#fecdca; background:#fff5f5; color:#b42318; }
  .gtm-threat.low { border-color:#abefc6; background:#ecfdf3; color:#027a48; }
  .gtm-brief-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
  .gtm-brief-item { border:1px solid #e1ebf7; background:#f8fbff; border-radius:14px; padding:13px 14px; }
  .gtm-brief-item span { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); font-weight:900; margin-bottom:5px; }
  .gtm-brief-item p { font-size:13px; line-height:1.6; color:var(--text); margin:0; }
  .gtm-test-list { display:grid; gap:10px; margin-top:12px; }
  .gtm-test-item { border:1px solid #e1ebf7; background:#fff; border-radius:14px; padding:13px 14px; }
  .gtm-test-item strong { display:block; font-size:14px; margin-bottom:5px; }
  .gtm-test-item span { display:block; font-size:13px; color:var(--muted); line-height:1.6; }
  .gtm-monitor-list { display:grid; gap:8px; margin-top:12px; }
  .gtm-monitor-list div { border:1px solid #e1ebf7; background:#fff; border-radius:12px; padding:10px 12px; font-size:13px; color:var(--text); line-height:1.5; }
  .strategy-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
  .strategy-kpi { background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); border: 1px solid var(--border); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-sm); }
  .strategy-kpi .kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
  .strategy-kpi .value { font-size: 22px; font-weight: 800; color: var(--text); margin-top: 8px; line-height: 1.15; }
  .strategy-kpi .note { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.55; }
  .story-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; margin-bottom: 18px; }
  .story-card { background: linear-gradient(135deg, #11263f 0%, #1f4f8e 100%); color: #fff; border-radius: 24px; padding: 24px; box-shadow: var(--shadow-md); }
  .story-card .kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.62); font-weight: 700; }
  .story-card h3 { font-size: 28px; line-height: 1.12; margin: 10px 0 12px; max-width: 18ch; }
  .story-card p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.82); margin: 0; }
  .story-aside { display: grid; gap: 18px; }
  .readout-card { background: linear-gradient(135deg, #11263f 0%, #1f4f8e 100%); color: #fff; border-radius: 24px; padding: 26px; box-shadow: var(--shadow-md); margin-bottom: 18px; }
  .readout-card .kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.62); font-weight: 700; }
  .readout-card h3 { font-size: 30px; line-height: 1.18; margin: 10px 0 12px; max-width: 980px; }
  .readout-card p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.82); margin: 0; max-width: 1100px; }
  .readout-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 18px; }
  .story-panel { background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); border: 1px solid var(--border); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-sm); }
  .story-panel h4 { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
  .story-panel p { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 0; }
  .opportunity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; }
  .opportunity-card { background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); border: 1px solid var(--border); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-sm); }
  .opportunity-card .eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
  .opportunity-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
  .opportunity-card p { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 0; }
  .claim-stack { display: grid; gap: 14px; }
  .claim-card { background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-sm); }
  .claim-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
  .claim-section { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 800; }
  .claim-confidence { font-size: 12px; font-weight: 800; color: var(--accent); background: #eef6ff; border: 1px solid #d8eaff; border-radius: 999px; padding: 5px 9px; white-space: nowrap; }
  .claim-card h3 { font-size: 17px; line-height: 1.35; margin: 0 0 12px; }
  .claim-card p { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 0; }
  .evidence-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
  .evidence-chip { display: inline-flex; gap: 7px; align-items: center; border: 1px solid #dce8f7; background: #f4f8fe; color: #355070; border-radius: 999px; padding: 6px 10px; font-size: 12px; }
  .evidence-chip strong { color: var(--text); }
  .limits-box { border: 1px solid #f1d6b8; background: #fff8f1; border-radius: 18px; padding: 16px; color: #744210; font-size: 13px; line-height: 1.65; }
  .takeaway-list { display: grid; gap: 12px; }
  .takeaway-item { border: 1px solid var(--border); background: #fff; border-radius: 16px; padding: 14px; }
  .takeaway-item strong { display: block; font-size: 14px; margin-bottom: 6px; }
  .takeaway-item span { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; }
  .pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: #f4f8fe; border: 1px solid #dce8f7; font-size: 12px; color: #355070; }
  .pill.drillable, .summary-row.drillable, .matrix-cell.drillable, .funnel-flow-row.drillable { cursor:pointer; transition:background .16s, border-color .16s, transform .16s; }
  .pill.drillable:hover, .summary-row.drillable:hover, .matrix-cell.drillable:hover, .funnel-flow-row.drillable:hover { border-color:var(--accent); background:#eef6ff; transform:translateY(-1px); }
  .pill strong { color: var(--text); }
  .summary-list { display: grid; gap: 12px; }
  .distribution-insight { border:1px solid #dfe9f6; background:#f8fbff; border-radius:14px; padding:12px 14px; }
  .distribution-insight .kicker { font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); font-weight:800; margin-bottom:5px; }
  .distribution-insight .headline { font-size:14px; line-height:1.35; color:var(--text); font-weight:800; margin-bottom:5px; }
  .distribution-insight .meaning { font-size:12px; line-height:1.55; color:var(--muted); }
  .summary-row { display: grid; grid-template-columns: minmax(130px, 0.42fr) minmax(160px, 1fr) 56px; gap: 12px; align-items: center; }
  .summary-label { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.25; }
  .summary-bar { height: 8px; border-radius: 999px; background: #eaf0f8; overflow: hidden; }
  .summary-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #0a66c2 0%, #5ba8ff 100%); }
  .summary-value { font-size: 12px; text-align: right; color: var(--muted); font-weight: 800; font-variant-numeric: tabular-nums; }
  .insight-list { display: grid; gap: 12px; }
  .insight-item { border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%); }
  .insight-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
  .insight-item span { font-size: 13px; color: var(--muted); line-height: 1.6; }
  .action-list { display: grid; gap: 10px; }
  .action-item { border: 1px solid #d7e6f8; border-radius: 16px; padding: 14px 16px; background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%); }
  .action-item strong { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text); }
  .action-item span { font-size: 13px; color: var(--muted); line-height: 1.65; }
  .matrix-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .matrix-card { background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); border: 1px solid var(--border); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-sm); }
  .matrix-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
  .matrix-card p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
  .matrix-table { display: grid; gap: 10px; }
  .matrix-row { display: grid; grid-template-columns: 148px 1fr; gap: 12px; align-items: center; }
  .matrix-row-label { font-size: 12px; font-weight: 800; color: var(--text); }
  .matrix-cell-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
  .matrix-cell { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 999px; background: #f4f8fe; border: 1px solid #dce8f7; font-size: 12px; color: #355070; }
  .matrix-cell strong { color: var(--text); }
  .funnel-flow-list { display:grid; gap:12px; }
  .funnel-flow-row { border:1px solid #dce8f7; background:#f8fbff; border-radius:16px; padding:12px 14px; }
  .funnel-flow-title { font-size:13px; font-weight:800; margin-bottom:10px; }
  .funnel-flow-steps { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; align-items:stretch; }
  .funnel-step { border:1px solid #e2eaf4; background:#fff; border-radius:12px; padding:9px 10px; min-width:0; }
  .funnel-step-label { font-size:11px; color:var(--muted); font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
  .funnel-step-value { font-size:15px; font-weight:800; margin-top:2px; }
  .funnel-arrow { color:var(--accent); font-weight:900; }
  .pair-list { display: grid; gap: 10px; }
  .pair-item { border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%); }
  .pair-item-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 6px; }
  .pair-item strong { font-size: 14px; }
  .pair-item span { font-size: 13px; color: var(--muted); line-height: 1.55; }
  .theme-group-list { display: grid; gap: 14px; }
  .theme-group { border: 1px solid var(--border); border-radius: 18px; padding: 16px; background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%); }
  .theme-group-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
  .theme-group-title { font-size: 15px; font-weight: 800; }
  .theme-group-items { display: grid; gap: 10px; }
  .theme-group-item { border-top: 1px solid #e9eef5; padding-top: 10px; }
  .theme-group-item:first-child { border-top: none; padding-top: 0; }
  .theme-group-item-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
  .theme-group-meta { display: flex; flex-wrap: wrap; gap: 8px; }
  .theme-group-meta span { font-size: 11px; color: var(--muted); background: #f5f8fc; border: 1px solid #e2eaf4; padding: 4px 7px; border-radius: 999px; }
  .qa-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
  .qa-subtabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
  .qa-subtab { border:1px solid var(--border); background:#fff; color:var(--muted); border-radius:999px; padding:8px 12px; font-size:12px; font-weight:800; cursor:pointer; }
  .qa-subtab.active { border-color:rgba(10,102,194,.22); background:rgba(10,102,194,.1); color:var(--accent); }
  .qa-panel { display:none; }
  .qa-panel.active { display:block; }
  .qa-toolbar input, .qa-toolbar select { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; background: var(--card); min-width: 180px; }
  .qa-table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
  .qa-table { width: 100%; border-collapse: collapse; min-width: 980px; }
  .qa-table th, .qa-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #e9eef5; vertical-align: middle; }
  .qa-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: #f8fbff; position: sticky; top: 0; }
  .qa-table td { font-size: 13px; }
  .qa-table tr:hover td { background: #fbfdff; }
  .qa-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 4px 8px; border-radius: 999px; background: #eef5ff; color: var(--accent); font-size: 11px; font-weight: 700; margin-right: 6px; margin-bottom: 6px; text-align: center; line-height: 1.2; }
  .qa-table td:nth-child(n+2) { vertical-align: middle; }
  .qa-table td:nth-child(n+2):not(:last-child) { text-align: center; }
  .qa-table td:nth-child(n+2) .mono { text-align: center; }
  .qa-table td:nth-child(1), .qa-table td:nth-child(4), .qa-table td:nth-child(5) { text-align: left; }
  .qa-table td:nth-child(4) .mono, .qa-table td:nth-child(5) .mono { text-align: left; }
  .qa-ad-title, .qa-ad-rationale { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .qa-ad-title.expanded, .qa-ad-rationale.expanded { display:block; overflow:visible; }
  .qa-expand-link { border:0; background:transparent; color:var(--accent); font-size:12px; font-weight:800; padding:4px 0 0; cursor:pointer; }
  .qa-source-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:7px; }
  .qa-source-links a { display:inline-flex; align-items:center; justify-content:center; border:1px solid #d7e6f8; background:#f4f8fe; color:var(--accent); border-radius:999px; padding:4px 8px; font-size:12px; font-weight:800; text-decoration:none; }
  .qa-source-links a:hover { border-color:var(--accent); background:#eef6ff; }
  .qa-review-note { margin-top:7px; border:1px solid #fedf89; background:#fffaeb; color:#93370d; border-radius:10px; padding:7px 9px; font-size:12px; line-height:1.45; }
  .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
  .context-layout { display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; margin-bottom: 18px; }
  .context-card { background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); border: 1px solid var(--border); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-sm); }
  .context-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
  .context-card p { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.65; }
  .context-kv { display:grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .context-kv-item { border:1px solid var(--border); border-radius:16px; padding:14px; background:#fff; }
  .context-kv-item .kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
  .context-kv-item .value { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.4; }
  .source-list { display:grid; gap: 12px; }
  .source-item { border:1px solid var(--border); border-radius:16px; padding:14px 16px; background:linear-gradient(180deg, #ffffff 0%, #f9fbff 100%); }
  .source-item-top { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:8px; }
  .source-item-title { font-size:14px; font-weight:800; }
  .source-item a { color: var(--accent); text-decoration:none; font-size:12px; word-break:break-all; }
  .source-item p { margin: 8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }

  /* LLM */
  .llm-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; margin-bottom: 18px; }
  .llm-layout { display: grid; grid-template-columns: 320px 1fr; gap: 18px; }
  .prompt-list { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
  .prompt-item { padding: 12px 14px; cursor: pointer; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; }
  .prompt-item:hover { background: var(--accent-light); }
  .prompt-item.active { background: var(--accent-light); border-left: 3px solid var(--accent); }
  .prompt-editor { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-sm); }
  .prompt-editor textarea { width: 100%; min-height: 320px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; font-family: 'SF Mono', monospace; font-size: 13px; line-height: 1.6; resize: vertical; background: #fbfdff; }
  .prompt-editor input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; font-size: 13px; margin-bottom: 10px; }
  .test-results { margin-top: 12px; }
  .test-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
  .test-card .ad-ref { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
  .test-card .llm-output { background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 10px; font-family: 'SF Mono', monospace; font-size: 12px; white-space: pre-wrap; max-height: 220px; overflow: auto; }
  .config-card { background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-sm); }
  .field-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; display: block; text-transform: uppercase; letter-spacing: 0.05em; }
  @keyframes fadeOut {
    0% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(8px); }
  }
  @media (max-width: 768px) {
    .container { padding: 0 16px; }
    .tab-page { padding: 20px 16px 28px; }
    .header-top { align-items: flex-start; }
    .upload-area { justify-content: flex-start; }
    .tabs { overflow-x: auto; padding-bottom: 2px; }
    .ad-card-header { grid-template-columns: 40px 70px 1fr 70px; }
    .ad-country { display: none; }
    .stats { grid-template-columns: repeat(4, minmax(150px, 1fr)); overflow-x:auto; }
    .filters input { flex-basis: 220px; }
    .charts-row, .llm-layout, .llm-hero, .insight-banner, .analytics-readout, .analytics-snapshot, .label-health-grid, .analytics-report, .report-grid-2, .rank-list, .landing-list, .strategy-hero-row, .strategy-layout, .strategy-grid, .strategy-grid-3, .strategy-field-grid, .strategy-topline-metrics, .gtm-brief-grid, .story-grid, .readout-meta, .opportunity-grid, .strategy-kpi-grid, .matrix-grid, .context-layout, .context-kv { grid-template-columns: 1fr; }
    .strategy-brief-signals { grid-template-columns: 1fr; }
    .strategy-module-head, .strategy-brief-top { flex-direction: column; align-items: flex-start; }
    .strategy-signal-row { grid-template-columns: 1fr; gap: 4px; }
    .strategy-signal-count { text-align: left; }
    .region-card-top { grid-template-columns: 1fr; gap: 8px; }
    .summary-row { grid-template-columns: 1fr 48px; }
    .summary-row .summary-bar { grid-column: 1 / -1; grid-row: 2; }
    .insight-mini { grid-template-columns: 1fr; }
    .mix-row { grid-template-columns: 1fr; }
    .matrix-row { grid-template-columns: 1fr; }
    .upload-area { width: 100%; }
  }

  /* Collection panel (competitor-as-entity: crawl history + re-crawl) */
  .collection-panel { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
  .collection-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
  .collection-head h3 { font-size: 15px; font-weight: 750; }
  .collection-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; max-width: 62ch; }
  .collection-stats { display: flex; gap: 26px; margin: 16px 0 4px; }
  .cstat .n { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
  .cstat .l { font-size: 11.5px; color: var(--muted); }
  /* Creative velocity & freshness (Item 2b) */
  .velocity-block { margin: 18px 0 4px; padding: 14px 16px; background: var(--surface-inset); border: 1px solid var(--border); border-radius: var(--r-lg); }
  .velocity-block.baseline { background: transparent; border-style: dashed; }
  .vb-head { display: flex; align-items: center; gap: 10px; }
  .vb-title { font-size: 12.5px; font-weight: 700; }
  .vb-tag { font-size: 10px; font-weight: 640; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }
  .vb-tag.ok { color: var(--accent-ink); background: var(--accent-wash); border-color: var(--accent-line); }
  .vb-sub { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-top: 10px; }
  .vtiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
  .vtile { text-align: center; padding: 8px 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
  .vt-n { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
  .vt-n.up { color: var(--green, #17864a); }
  .vt-n.down { color: var(--ink-3); }
  .vt-n.ok { color: var(--accent); }
  .vt-l { font-size: 10.5px; color: var(--ink-4); margin-top: 2px; }
  @media (max-width: 640px) { .vtiles { grid-template-columns: repeat(2, 1fr); } }
  .collection-runs { margin-top: 14px; overflow-x: auto; }
  .collection-runs table { border-collapse: collapse; width: 100%; font-size: 12.5px; min-width: 460px; }
  .collection-runs th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 700; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--border); }
  .collection-runs td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--card-alt); font-variant-numeric: tabular-nums; }
  .collection-runs td.num, .collection-runs th.num { text-align: right; padding-right: 4px; }
  .run-status { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: capitalize; }
  .run-status.ok { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
  .run-status.blocked { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
  .run-status.run { color: var(--accent); background: var(--accent-light); }

  /* --- Analytics: conclusion-first layout --- */
  .data-window { display: flex; align-items: flex-start; gap: 9px; padding: 11px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin-bottom: 4px; }
  .data-window svg { width: 15px; height: 15px; color: var(--ink-4); flex: none; margin-top: 2px; }
  .data-window b { color: var(--ink); font-weight: 640; font-variant-numeric: tabular-nums; }
  .section-eyebrow { font-size: 10.5px; font-weight: 640; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-4); margin: 8px 2px 0; }
  .scorecard { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .score-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 13px 14px; box-shadow: var(--shadow-card); }
  .score-tile .st-k { font-size: 11px; color: var(--ink-3); font-weight: 550; }
  .score-tile .st-pct { font-size: 23px; font-weight: 660; letter-spacing: -.03em; margin-top: 5px; color: var(--accent-ink); }
  .score-tile .st-v { font-size: 12px; color: var(--ink-2); font-weight: 550; margin-top: 1px; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 2px; }
  .callout { border: 1px solid var(--border); border-radius: var(--r-md); padding: 15px 18px; background: var(--surface); }
  .callout.brand { border-color: var(--accent-line); background: var(--accent-wash); }
  .callout.warn { border-color: color-mix(in srgb, var(--warn) 34%, var(--border)); background: var(--warn-wash); }
  .callout .co-t { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
  .callout.brand .co-t { color: var(--accent-ink); } .callout.warn .co-t { color: var(--warn); }
  .callout .co-b { font-size: 13px; color: var(--ink); line-height: 1.5; margin-top: 5px; }
  .callout .co-b b { font-weight: 680; }
  @media (max-width: 900px){ .scorecard { grid-template-columns: repeat(2, 1fr); } }

  /* --- Strategy: verdict + angles of attack --- */
  .strategy-report { display: flex; flex-direction: column; gap: 16px; }
  .verdict-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 22px 24px; }
  .verdict-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  .verdict-headline { font-size: 22px; line-height: 1.28; font-weight: 640; letter-spacing: -.02em; text-wrap: balance; max-width: 40ch; }
  .verdict-decision { font-size: 14px; color: var(--ink-2); margin-top: 12px; line-height: 1.5; max-width: 64ch; }
  .verdict-decision .vd-label { font-weight: 700; color: var(--accent-ink); }
  .verdict-spine { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
  .verdict-spine .vs { display: flex; flex-direction: column; gap: 1px; }
  .verdict-spine .vs-k { font-size: 10.5px; font-weight: 640; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
  .verdict-spine .vs-v { font-size: 13px; color: var(--ink-2); text-transform: capitalize; }
  .verdict-spine .vs-v b { color: var(--ink); font-weight: 660; letter-spacing: -.01em; }
  .verdict-note { margin-top: 14px; font-size: 12px; color: var(--ink-4); font-style: italic; }

  .angle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
  .angle-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 18px 19px; display: flex; flex-direction: column; }
  .angle-tag { align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--r-pill); margin-bottom: 11px; }
  .angle-tag.brand { color: var(--accent-ink); background: var(--accent-wash); }
  .angle-tag.accent2 { color: var(--c3); background: color-mix(in srgb, var(--c3) 12%, transparent); }
  .angle-tag.warn { color: var(--warn); background: var(--warn-wash); }
  .angle-conc { font-size: 15px; font-weight: 620; line-height: 1.38; letter-spacing: -.012em; }
  .angle-why { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-top: 8px; }
  .angle-signals { margin-top: 13px; border-top: 1px solid var(--border); }
  .angle-impl { margin-top: auto; padding-top: 13px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }

  .hero-test { display: flex; gap: 13px; align-items: flex-start; background: var(--accent-wash); border: 1px solid var(--accent-line); border-radius: var(--r-lg); padding: 16px 18px; }
  .hero-test .ht-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
  .hero-test .ht-icon svg { width: 17px; height: 17px; }
  .hero-test .ht-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); }
  .hero-test .ht-name { font-size: 14.5px; font-weight: 640; margin-top: 3px; }
  .hero-test .ht-body { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; max-width: 72ch; }

  /* --- Strategy altitudes: by market + offer ladder --- */
  .alt-sub { font-size: 12.5px; color: var(--ink-3); margin: 2px 2px 12px; line-height: 1.5; max-width: 78ch; }
  .mkt-strat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
  .mkt-strat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 14px 16px; }
  .mkt-strat-head { display: flex; align-items: center; gap: 8px; }
  .mkt-strat-code { font-size: 11px; font-weight: 680; letter-spacing: .03em; color: var(--accent); background: var(--accent-wash); border: 1px solid var(--accent-line); border-radius: 6px; padding: 2px 6px; }
  .mkt-strat-name { font-size: 13.5px; font-weight: 620; color: var(--ink-1); }
  .mkt-strat-share { margin-left: auto; font-size: 12px; color: var(--ink-3); }
  .mkt-strat-share .thin { color: var(--warn, #b26a00); font-weight: 600; }
  .mkt-strat-read { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin: 8px 0 12px; }
  .mkt-strat-read b { color: var(--ink-1); font-weight: 600; }
  .mkt-strat-facts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; border-top: 1px solid var(--border); padding-top: 11px; }
  .mkt-strat-facts span { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 560; color: var(--ink-1); }
  .mkt-strat-facts i { font-style: normal; font-size: 10px; font-weight: 640; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-4); }
  /* Acquisition stack (martech/ABM fingerprint) */
  .lead-capture { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
  .lc-chip { flex: none; font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 7px; }
  .lc-hi { color: #fff; background: var(--accent); }
  .lc-mid { color: var(--accent-ink); background: var(--accent-wash); border: 1px solid var(--accent-line); }
  .lc-lo { color: var(--ink-3); background: var(--surface-inset); border: 1px solid var(--border); }
  .lc-meta { font-size: 12px; color: var(--ink-3); }
  .acq-stack { display: flex; flex-direction: column; gap: 9px; }
  .acq-row { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: baseline; }
  .acq-cat { font-size: 11px; font-weight: 640; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); padding-top: 3px; }
  .acq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .acq-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 550; color: var(--ink-2); background: var(--surface-inset); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; }
  .acq-chip i { font-style: normal; font-size: 10px; font-weight: 640; color: var(--ink-4); background: var(--surface); border-radius: 4px; padding: 0 4px; }
  .acq-chip.acq-abm { color: var(--accent-ink); background: var(--accent-wash); border-color: var(--accent-line); }
  .acq-chip.acq-abm i { color: var(--accent-ink); }
  @media (max-width: 640px) { .acq-row { grid-template-columns: 1fr; gap: 4px; } }
  .mkt-strat-sowhat { display: flex; align-items: baseline; gap: 7px; font-size: 12px; color: var(--ink-2); line-height: 1.5; margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--border); }
  .sw-tag { flex: none; font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-wash); border: 1px solid var(--accent-line); border-radius: 5px; padding: 1px 5px; }
  .seg-conf { display: inline-block; font-size: 9.5px; font-weight: 640; letter-spacing: .03em; text-transform: uppercase; padding: 1px 5px; border-radius: 5px; vertical-align: middle; margin-left: 2px; }
  .seg-conf-medium { color: var(--ink-3); background: var(--surface-inset); border: 1px solid var(--border); }
  .seg-conf-low { color: var(--warn, #b26a00); background: color-mix(in srgb, var(--warn, #b26a00) 12%, transparent); border: 1px solid color-mix(in srgb, var(--warn, #b26a00) 30%, transparent); }

  .ladder { display: flex; flex-direction: column; gap: 6px; }
  .ladder-step { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-md); padding: 11px 14px; }
  .ladder-step.gap { border-left-color: var(--border-strong); border-style: dashed; background: transparent; }
  .ladder-k { font-size: 12.5px; font-weight: 620; color: var(--ink-1); white-space: nowrap; }
  .ladder-k .num { color: var(--accent); font-weight: 640; margin-left: 4px; }
  .ladder-v { font-size: 12.5px; color: var(--ink-2); text-align: right; line-height: 1.45; }
  .ladder-v b { color: var(--ink-1); font-weight: 620; }
  .ladder-step.gap .ladder-v { font-style: italic; color: var(--ink-3); }
  .ladder-take { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; margin-top: 10px; padding: 10px 13px; background: var(--accent-wash); border: 1px solid var(--accent-line); border-radius: var(--r-md); }
  .ladder-take b { color: var(--accent-ink); font-weight: 640; }
  @media (max-width: 640px){ .mkt-strat-facts { grid-template-columns: 1fr; } .ladder-step { flex-direction: column; gap: 4px; } .ladder-v { text-align: left; } }

  /* --- clean distribution bar list (Analytics) --- */
  .dist-lead { font-size: 12.5px; color: var(--ink-3); margin-bottom: 13px; }
  .dist-lead b { color: var(--ink); font-weight: 620; text-transform: capitalize; }
  .dist-empty { font-size: 12.5px; color: var(--ink-4); padding: 8px 0; }
  .dist-row { display: grid; grid-template-columns: 128px 1fr 38px; align-items: center; gap: 12px; padding: 6px 0; }
  .dist-row.drillable { cursor: pointer; border-radius: 6px; }
  .dist-row.drillable:hover { background: var(--surface-2); }
  .dist-l { font-size: 12.5px; color: var(--ink-2); text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dist-bar { height: 7px; border-radius: 4px; background: var(--surface-inset); overflow: hidden; }
  .dist-bar > i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
  .dist-p { font-size: 12px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

  /* --- compact single-line signal rows (Strategy angle cards) --- */
  .sig-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
  .sig-row:last-child { border-bottom: 0; }
  .sig-row.drillable { cursor: pointer; }
  .sig-row.drillable:hover .sig-v { color: var(--accent-ink); }
  .sig-k { font-size: 11px; color: var(--ink-4); font-weight: 550; flex: 0 1 auto; white-space: nowrap; }
  .sig-v { font-size: 12.5px; font-weight: 600; color: var(--ink); text-align: right; margin-left: auto; text-transform: capitalize; }

  /* --- Analytics vertical rhythm (fix crowding) --- */
  #analyticsContent { display: flex; flex-direction: column; gap: 20px; }
  #analyticsContent .data-window { margin: 0; }
  #analyticsContent .callouts { margin: 0; }
  #analyticsContent .section-eyebrow { margin: 4px 2px -6px; }
  #analyticsContent .scorecard { margin-top: 0; }
  .score-tile { padding: 15px 16px 16px; }

  /* --- Context: competitor briefing --- */
  #tab-context { display: flex; flex-direction: column; gap: 16px; }
  #contextContent { display: flex; flex-direction: column; gap: 16px; }
  .ctx-head { display: flex; align-items: center; gap: 14px; }
  .ctx-head .mono-av { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 17px; font-weight: 680; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
  .ctx-id h2 { font-size: 19px; font-weight: 660; letter-spacing: -.02em; }
  .ctx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
  .ctx-chips .chip { text-transform: capitalize; }
  .ctx-chips .ctx-link { color: var(--accent-ink); text-transform: none; }
  .ctx-summary { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin-top: 15px; max-width: 78ch; }
  .ctx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
  .ctx-fact-k { font-size: 10.5px; font-weight: 640; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
  .ctx-fact-v { font-size: 13.5px; color: var(--ink); margin-top: 4px; line-height: 1.45; text-transform: capitalize; }
  .ctx-observed-note { font-size: 12.5px; color: var(--ink-3); margin: 4px 0 14px; max-width: 74ch; }
  .ctx-observed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  .ctx-obs .k { font-size: 10.5px; font-weight: 640; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 9px; }
  .ctx-obs-pills { display: flex; flex-wrap: wrap; gap: 6px; }
  .ctx-obs-pills .pill { text-transform: capitalize; }
  .ctx-obs-pills .pill b { font-weight: 680; color: var(--ink); margin-left: 2px; }
  .ctx-sources .source-list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
  .source-item { border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; background: var(--surface-2); }
  .source-item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
  .source-item-title { font-size: 12.5px; font-weight: 620; text-transform: capitalize; }
  .source-item .qa-badge { font-size: 11px; color: var(--ink-3); }
  .source-item a { font-size: 11.5px; color: var(--accent-ink); word-break: break-all; }
  .source-item p { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin-top: 5px; }
  @media (max-width: 760px){ .ctx-observed-grid { grid-template-columns: 1fr; gap: 16px; } }

  /* --- Coverage → market strategy drill-down (Phase A) --- */
  .market-list { display: flex; flex-direction: column; gap: 10px; }
  .market-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
  .market-card.open { border-color: var(--border-strong); }
  .market-head { display: grid; grid-template-columns: 40px minmax(0,1.6fr) minmax(0,1fr) 120px 18px; align-items: center; gap: 16px; width: 100%; padding: 13px 16px; background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; }
  .market-head:hover { background: var(--surface-2); }
  .market-code { width: 34px; height: 26px; display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .03em; color: var(--accent-ink); background: var(--accent-wash); border-radius: 6px; }
  .market-id { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .market-name { font-size: 13.5px; font-weight: 620; }
  .market-read { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .market-read b { color: var(--ink-2); font-weight: 600; }
  .market-vol { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
  .market-vol b { color: var(--ink); font-weight: 640; }
  .market-vol .thin { color: var(--warn); font-weight: 600; }
  .market-bar { height: 6px; border-radius: 4px; background: var(--surface-inset); overflow: hidden; }
  .market-bar > i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
  .market-chev { width: 16px; height: 16px; color: var(--ink-4); transition: transform .18s; }
  .market-card.open .market-chev { transform: rotate(180deg); }
  .market-body { display: none; padding: 4px 16px 16px; border-top: 1px solid var(--border); }
  .market-card.open .market-body { display: block; }
  .ms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 26px; margin-top: 14px; }
  .ms-block h4 { font-size: 10.5px; font-weight: 640; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 9px; }
  .ms-row { display: grid; grid-template-columns: 96px 1fr 34px; align-items: center; gap: 9px; padding: 3.5px 0; }
  .ms-l { font-size: 12px; color: var(--ink-2); text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ms-bar { height: 6px; border-radius: 3px; background: var(--surface-inset); overflow: hidden; }
  .ms-bar > i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
  .ms-p { font-size: 11.5px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
  .ms-empty { font-size: 12px; color: var(--ink-4); }
  .ms-winners { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
  .ms-win { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
  .ms-win-media { aspect-ratio: 1.91/1; background: var(--surface-inset); overflow: hidden; }
  .ms-win-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ms-win-meta { padding: 8px 10px; }
  .ms-win-t { font-size: 12px; font-weight: 560; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ms-win-c { font-size: 11px; color: var(--ink-4); margin-top: 3px; }
  @media (max-width: 760px){ .market-head { grid-template-columns: 34px 1fr 18px; } .market-vol, .market-bar { display: none; } }

  /* Report library — per-report module toggles */
  .module-off { display: none !important; }
  .module-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 2px 2px 0; }
  .module-bar-label { font-size: 10.5px; font-weight: 640; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-4); margin-right: 2px; }
  .module-chip { appearance: none; cursor: pointer; font: inherit; font-size: 12px; font-weight: 550; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-3); transition: background .12s, color .12s, border-color .12s; }
  .module-chip:hover { border-color: var(--border-strong); color: var(--ink-1); }
  .module-chip.on { background: var(--accent-wash); border-color: var(--accent-line); color: var(--accent-ink); }
  .module-tick { width: 12px; display: inline-flex; justify-content: center; font-size: 11px; font-weight: 700; color: var(--accent); }
  .module-chip:not(.on) .module-tick { color: var(--ink-4); }

  /* Segment pivot (Region / Format / Funnel) */
  .seg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 2px 0; }
  .seg-head .section-eyebrow { margin: 0; }
  .seg-pivot { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 3px; gap: 2px; }
  .seg-pivot-btn { appearance: none; border: 0; background: none; cursor: pointer; font: inherit; font-size: 12px; font-weight: 560; color: var(--ink-3); padding: 5px 12px; border-radius: calc(var(--r-md) - 3px); line-height: 1.2; transition: background .12s, color .12s; }
  .seg-pivot-btn:hover { color: var(--ink-1); }
  .seg-pivot-btn.active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-card); }

  /* Funnel flow — offers annotated per stage */
  #funnelFlow { display: flex; flex-direction: column; gap: 2px; }
  .fflow-stage { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); padding: 10px 12px; }
  .fflow-stage.gap { border-style: dashed; background: transparent; opacity: .72; }
  .fflow-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .fflow-name { font-size: 12.5px; font-weight: 600; color: var(--ink-1); }
  .fflow-pct { font-size: 12px; font-weight: 640; color: var(--accent); }
  .fflow-stage.gap .fflow-pct { color: var(--ink-4); }
  .fflow-track { height: 6px; border-radius: 4px; background: var(--surface-inset); margin: 7px 0 6px; overflow: hidden; }
  .fflow-track i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
  .fflow-offers { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }
  .fflow-stage.gap .fflow-offers { font-style: italic; }
  .fflow-arrow { text-align: center; color: var(--ink-4); font-size: 13px; line-height: 1; padding: 2px 0; }

  /* Placement × funnel heatmap */
  .heat-wrap { display: flex; flex-direction: column; gap: 4px; overflow-x: auto; }
  .heat-row { display: grid; gap: 4px; align-items: stretch; }
  .heat-head .heat-col { font-size: 10.5px; font-weight: 640; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); text-align: center; padding-bottom: 2px; align-self: end; }
  .heat-rlabel { font-size: 11.5px; font-weight: 560; color: var(--ink-2); display: flex; align-items: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 6px; }
  .heat-cell { display: flex; align-items: center; justify-content: center; min-height: 34px; border-radius: 6px; font-size: 11.5px; font-weight: 560; font-variant-numeric: tabular-nums; }
