/* Isolated visual proposal. Report logic and print pagination remain in index.html. */
@media screen {
  :root {
    --bg: #ffffff;
    --text: #1d1d1f;
    --muted: #727279;
    --subtle: #85858e;
    --border: rgba(29, 29, 31, .13);
    --accent: #0a6cff;
    --shadow: none;
    --font: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', system-ui, sans-serif;
    --calm-soft: #f1f3f6;
    --calm-blue: #edf3ff;
    --calm-ease: cubic-bezier(.32, .72, 0, 1);
  }

  *, *::before, *::after { letter-spacing: 0 !important; }
  body { background: var(--bg); color: var(--text); font-size: 14px; }
  button, input, select { font-family: var(--font); }
  button, a, [contenteditable] { -webkit-tap-highlight-color: transparent; }
  button:focus-visible, a:focus-visible, select:focus-visible, [contenteditable]:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 4px;
  }
  button { touch-action: manipulation; }
  .page { max-width: 1184px; padding: 32px 40px 80px; }

  /* The report name becomes the document heading, retaining its editor. */
  .hdr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 24px; align-items: center; margin-bottom: 28px;
  }
  .hdr-l { grid-column: 1; grid-row: 1; gap: 14px; margin-bottom: 14px; min-width: 0; }
  .hdr-l > img { max-width: 140px; max-height: 40px; object-fit: contain; }
  .hdr-l .brand-sub { font-size: 12px !important; line-height: 1.4; }
  .hdr-r { display: contents; }
  .nty-mark { grid-column: 2; grid-row: 1; justify-self: end; margin-bottom: 14px; padding: 0; background: transparent; border: 0; opacity: .65; }
  .nty-mark img { height: 20px; }
  .client-pill {
    grid-column: 1; grid-row: 2; justify-self: start; min-width: 0; max-width: 100%;
    padding: 0; border-radius: 4px; background: transparent; color: var(--text);
    font-size: 30px; font-weight: 600; line-height: 1.2; text-transform: none;
    overflow-wrap: anywhere;
  }
  .client-pill:hover { background: transparent; color: #45454b; }
  .client-pill:focus { background: #edf3ff; color: var(--text); box-shadow: 0 0 0 6px #edf3ff; }
  .date-lbl { grid-column: 1; grid-row: 3; color: var(--muted); font-size: 12px; }
  .premium-mark { grid-column: 2; grid-row: 3; justify-self: end; border: 0; background: transparent; padding: 0; font-size: 10px; font-weight: 500; }
  .premium-dot { background: #259166; width: 12px; height: 12px; font-size: 8px; }
  .pdf-btn { grid-column: 2; grid-row: 2; min-height: 38px; padding: 9px 16px; border: 0; background: var(--text); color: white; box-shadow: none; font-size: 12px; }
  .pdf-btn:hover { background: #36363b; }

  .filter-dock { top: 0; margin-bottom: 0; padding: 0; }
  .filter-summary {
    padding: 14px 0; border: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    border-radius: 0; background: rgba(251,251,253,.94); box-shadow: none;
    backdrop-filter: saturate(160%) blur(20px);
  }
  .filter-summary-top { gap: 16px; }
  .filter-kicker { font-size: 10px; font-weight: 500; color: var(--muted); margin-bottom: 4px; text-transform: none; }
  .filter-placeholder { font-size: 12px; color: var(--text); }
  .filter-count { font-size: 11px; color: var(--muted); }
  .active-filter-pill { background: var(--calm-soft); border: 0; padding: 5px 10px; font-weight: 500; }
  .filter-actions { gap: 8px; }
  .filter-open, .filter-clear, .filter-compare, .view-open { min-height: 36px; font-size: 12px; font-weight: 500; padding: 8px 14px; box-shadow: none; }
  .filter-open { color: white; background: var(--accent); border-color: var(--accent); }
  .filter-open:hover { background: #095dd8; border-color: #095dd8; }
  .filter-clear, .view-open { border-color: transparent; background: var(--calm-soft); }
  .filter-compare { background: var(--calm-blue); color: #155dbb; border-color: transparent; }
  .filter-compare-mark { background: transparent; color: inherit; font-weight: 600; }
  .filter-compare:hover { background: #e3ecff; border-color: transparent; }
  .err { font-size: 11px; line-height: 1.5; margin: 10px 0 0; padding: 0; }
  .err:empty { display: none; }
  .access-banner { border-radius: 8px; box-shadow: none; }

  /* A large anchor number and a quiet row of supporting metrics. */
  .kpi-row { grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 0; align-items: end; margin: 0; padding: 30px 0; }
  .kpi, .kpi:hover { border: 0; border-radius: 0; box-shadow: none; background: transparent; transform: none; }
  .kpi { min-width: 0; padding: 0 24px; border-left: 1px solid var(--border); }
  .kpi:first-child { border: 0; padding-left: 0; }
  .kpi:last-child { padding-right: 0; }
  .kpi-ico { display: none; }
  .kpi-val { color: var(--text) !important; font-size: 36px; font-weight: 500; line-height: 1.05; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
  .kpi:first-child .kpi-val { font-size: 68px; font-weight: 600; color: #2563b4 !important; }
  .kpi-lbl { color: var(--text); font-size: 12px; font-weight: 500; }
  .kpi-sub { color: var(--muted); font-size: 11px; line-height: 1.4; margin-top: 5px; }

  .executive-pulse {
    grid-template-columns: minmax(0,1.65fr) minmax(240px,1fr); gap: 40px;
    padding: 28px; margin: 8px 0 0; border: 0; border-left: 3px solid #6a90c2;
    border-radius: 0; background: #f1f5fb; box-shadow: none; overflow: visible; align-items: center;
  }
  .executive-pulse::after { content: none; }
  .pulse-eyebrow { color: #39658d; font-size: 11px; font-weight: 600; text-transform: none; margin-bottom: 12px; }
  .pulse-title { font-family: Georgia, 'Times New Roman', serif; font-size: 25px; font-weight: 400; line-height: 1.24; max-width: 630px; }
  .pulse-copy { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 12px; }
  .pulse-facts { gap: 0; }
  .pulse-fact { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 10px 0; background: transparent; }
  .pulse-fact:last-child { border-bottom: 0; }
  .pulse-fact span { font-size: 11px; font-weight: 400; text-transform: none; }
  .pulse-fact b { font-size: 12px; font-weight: 500; }
  .pulse-fact { position: relative; }
  .pulse-fact-label .info-wrap { position: static; }
  .pulse-fact-label .info-pop { bottom: calc(100% + 6px); left: auto; right: 0; width: min(280px, calc(100vw - 40px)); }
  .insights-row { gap: 24px; margin: 0 0 20px; padding: 26px 0; }
  .insight { padding: 0; min-width: 0; min-height: 80px; border: 0; border-radius: 0; background: transparent; box-shadow: none; gap: 7px; }
  .insight-k { text-transform: none; font-weight: 400; font-size: 11px; color: var(--muted); }
  .insight-v { font-size: 17px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
  .insight-s { margin-top: 0; font-size: 11px; line-height: 1.4; }
  .insight { position: relative; }
  .insight-k-row .info-wrap { position: static; }
  .insight-k-row .info-pop { left: 0; right: auto; top: 28px; }

  /* Color and full-width bands distinguish sections without framing every chart. */
  .g2, .g32, .g23, .g-tags, .intel-hero { gap: 40px; margin-bottom: 28px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .g32 { grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); }
  .g23 { grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); }
  .g-tags { grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); }
  .card, .card:hover { background: transparent; border: 0; border-top: 2px solid var(--border); border-radius: 0; box-shadow: none; }
  .card { --section-accent: #557ba5; padding: 28px 0 30px; }
  [data-tab-section="media"], [data-tab-section="media"] .card { --section-accent: #528774; }
  [data-tab-section="topics"] .card { --section-accent: #9c738f; }
  [data-tab-section="intelligence"] .card { --section-accent: #626fa4; }
  .card-hdr { gap: 16px; margin-bottom: 28px; }
  .card-hdr > div:first-child { min-width: 0; }
  .card-title { font-size: 19px; font-weight: 600; line-height: 1.3; }
  .card-title::before { content: ''; display: block; width: 28px; height: 3px; margin-bottom: 12px; background: var(--section-accent); }
  .card-sub { font-size: 12px; line-height: 1.5; margin-top: 7px; }
  .card-badge { background: #edf0f4; border: 0; border-radius: 4px; font-size: 11px; color: #56606d; padding: 5px 9px; }
  .card-hdr > .card-badge, .card-hdr > .info-wrap { margin-top: 15px; }
  .standalone-chart-card,
  .intel-chart-stack > .card { padding: 28px; border-top: 2px solid var(--section-accent); }
  .standalone-chart-card, .standalone-chart-card:hover { background: #f4f6fa; }
  [data-report-module="impact-map"], [data-report-module="impact-map"]:hover { background: #f1f6f4; }
  .intel-chart-stack > .sov-chart-card, .intel-chart-stack > .sov-chart-card:hover { background: #f2f4fa; }
  .intel-chart-stack > .keyword-performance-card, .intel-chart-stack > .keyword-performance-card:hover { background: #f4f6f8; }
  .cw { height: 250px; }
  .cw-sm { height: 220px; }
  .standalone-chart-card { margin-bottom: 32px; }
  .radar-wrap { height: 220px; }
  .radar-layout { gap: 40px; }
  .radar-layout > *, .keyword-charts > * { min-width: 0; }
  .radar-summary { gap: 20px 28px; }
  .radar-summary-item { background: transparent; border: 0; border-radius: 0; padding: 0 0 10px; border-bottom: 1px solid var(--border); }
  .radar-summary-label { font-size: 10px; font-weight: 500; color: var(--muted); text-transform: none; }
  .radar-summary-value { font-weight: 500; font-size: 19px; margin-top: 8px; }
  .radar-summary-copy { line-height: 1.5; }
  [data-report-module="impact-map"] .cw { height: 300px; }
  .impact-legend { margin-top: 18px; font-size: 11px; gap: 20px; }
  .fmt-area { gap: 14px; }
  .fmt-pct { font-weight: 500; font-size: 18px; }
  .fmt-fill { border-radius: 4px 4px 0 0; }
  .fmt-stats { gap: 0; }
  .fmt-stat { padding: 9px 0; border-radius: 0; background: transparent; border-bottom: 1px solid var(--border); }
  .fmt-stat:last-child { border-bottom: 0; }
  .fst-val { font-weight: 500; }
  .fmt-name, .fmt-ct { font-size: 10px; }
  #wcloud { height: 240px; }
  .seg { background: var(--calm-soft); padding: 3px; border-radius: 100px; }
  .seg-btn { padding: 6px 12px; border-radius: 100px; font-weight: 500; min-height: 30px; }
  .seg-btn.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
  .info-btn { background: transparent !important; width: 19px; height: 19px; font-size: 10px; font-weight: 500; }
  .info-pop { border-radius: 8px; line-height: 1.6; padding: 14px; font-weight: 400; }
  .keyword-performance-head, .keyword-section-heading { position: relative; }
  .keyword-performance-head .info-wrap, .keyword-section-heading .info-wrap { position: static; }
  .keyword-performance-head .info-pop, .keyword-section-heading .info-pop { left: 0; right: auto; top: calc(100% + 8px); width: min(330px, calc(100vw - 40px)); }
  .intel-chart-stack { gap: 32px; margin-bottom: 32px; }
  .sov-summary { gap: 0; padding: 0 0 20px; margin: 0 0 10px; }
  .sov-card { border: 0; border-left: 1px solid var(--border); border-radius: 0; padding: 0 24px; background: transparent; }
  .sov-card:first-child { border: 0; padding-left: 0; }
  .sov-card b { font-size: 30px; font-weight: 500; margin-bottom: 9px; font-variant-numeric: tabular-nums; }
  .sov-card span { font-weight: 400; line-height: 1.5; }
  .sov-chart-card .cw, .keyword-performance-card .cw { height: 350px; }
  .keyword-label-toggle { padding: 8px 14px; border-color: transparent; color: #155dbb; background: var(--calm-blue); }
  .keyword-label-toggle.on { background: var(--accent); color: #fff; }
  .keyword-performance-insight { margin-top: 22px; background: transparent; border-radius: 0; padding: 0 0 0 14px; border-left-width: 2px; font-weight: 400; font-size: 12px; line-height: 1.7; }
  .keyword-performance-legend { margin-top: 18px; font-size: 10px; gap: 20px; }
  .sentiment-meter { gap: 12px; }
  .sentiment-pill, .sentiment-pill.open { width: 100%; border-radius: 8px; background: transparent; padding: 14px 10px; box-shadow: none; }
  .sentiment-pill:hover, .sentiment-pill:focus-visible { background: var(--calm-soft); box-shadow: none; transform: none; }
  .sentiment-pill b { font-size: 28px; font-weight: 500; margin-bottom: 9px; }
  .sentiment-pill span { font-size: 10px; font-weight: 400; }
  .sentiment-bar { gap: 3px; height: 10px; border: 0; background: transparent; }
  .sentiment-seg { border-radius: 2px; font-size: 8px; }
  .sentiment-note { line-height: 1.6; font-size: 11px; margin-top: 16px; }
  .author-list { gap: 0; }
  .author-entry { background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
  .author-row { padding: 13px 0; gap: 12px; }
  .author-row:hover { background: var(--calm-soft); }
  .author-avatar { width: 32px; height: 32px; background: var(--calm-blue); color: #3a6b9c; font-weight: 500; }
  .author-name { font-weight: 500; font-size: 12px; }
  .author-meta { margin-top: 5px; font-size: 10px; }
  .author-score b { font-weight: 500; }
  .author-detail { background: transparent; padding: 8px 0 16px 44px; }
  .tags-top-item, .tags-top-item:first-child { padding: 12px 0; border-radius: 0; background: transparent; border-bottom: 1px solid var(--border); }
  .tags-top-list { gap: 0; }
  .tags-top-title { font-weight: 500; line-height: 1.5; }
  .tags-legend-item { font-size: 12px; }
  .tags-top-meta { max-width: 110px; }

  .tbl th { color: var(--muted); text-transform: none; font-size: 11px; padding: 12px 10px; }
  .tbl td { padding: 15px 10px; font-size: 12px; }
  .tbl th:first-child, .tbl td:first-child { padding-left: 0; }
  .tbl th:last-child, .tbl td:last-child { padding-right: 0; }
  .rank { background: transparent; font-size: 11px; color: var(--subtle); margin-right: 8px; }
  .media-logo { width: 25px; height: 25px; border: 0; border-radius: 4px; }
  .ftag { font-size: 10px; font-weight: 500; padding: 3px 8px; }
  .article-detail-cell { background: transparent; }
  .article-item { background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 13px 0; }
  .article-title { font-weight: 500; line-height: 1.55; }
  .article-meta { margin-top: 5px; line-height: 1.5; }
  .article-link { padding: 7px 12px; color: #155dbb; background: var(--calm-blue); border: 0; font-weight: 500; }

  .filter-backdrop { background: rgba(20,25,35,.2); backdrop-filter: blur(3px); }
  .filter-panel, .view-panel { border-radius: 18px; border: 1px solid var(--border); background: var(--bg); box-shadow: 0 20px 70px rgba(20,25,35,.16); }
  .filter-panel { width: min(900px, calc(100vw - 48px)); top: 90px; max-height: 75vh; }
  .filter-panel-hdr { padding: 24px; }
  .filter-panel-title { font-size: 19px; font-weight: 600; }
  .filter-panel-sub { margin-top: 7px; font-size: 12px; max-width: 560px; line-height: 1.55; }
  .filters { padding: 24px; gap: 24px; max-height: 60vh; }
  .filter-group-title { text-transform: none; font-size: 12px; font-weight: 500; color: var(--text); }
  .chip { padding: 8px 13px; font-size: 12px; background: #fff; border: 1px solid var(--border); }
  .chip.on { background: var(--accent); border-color: var(--accent); }
  .chip.on.all-chip { background: var(--text); border-color: var(--text); }
  .view-list { padding: 0 24px 24px; gap: 0; }
  .view-row { padding: 14px 0; background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
  .view-row-title { font-weight: 500; }
  .view-row-sub { font-size: 11px; line-height: 1.5; margin-top: 5px; }
  .view-switch.on { background: var(--accent); }
  .filter-close { background: var(--calm-soft); border: 0; }

  .keyword-arena { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; margin: 10px 0 32px; scroll-margin-top: 100px; }
  .keyword-arena-head { padding: 28px 0 20px; background: transparent; color: var(--text); border-top: 1px solid var(--border); }
  .keyword-arena-head::after { content: none; }
  .keyword-arena-eyebrow { color: var(--accent); font-size: 11px; font-weight: 500; text-transform: none; }
  .keyword-arena-title { font-size: 28px; font-weight: 600; }
  .keyword-arena-copy { color: var(--muted); font-size: 12px; max-width: 620px; line-height: 1.6; }
  .keyword-arena-close { color: var(--muted); background: var(--calm-soft); border: 0; }
  .keyword-arena-close:hover { background: #e4e7ed; }
  .keyword-arena-body { padding: 10px 0 24px; }
  .keyword-field-label, .keyword-section-title, .keyword-profile-kicker { text-transform: none; font-weight: 500; font-size: 11px; }
  .keyword-input { font-size: 16px; font-weight: 500; padding: 15px 16px; border-radius: 8px; }
  .keyword-vs { background: transparent; color: var(--muted); margin-bottom: 10px; }
  .keyword-verdict { padding: 16px 0 16px 16px; background: transparent; border-left-width: 2px; border-radius: 0; font-size: 14px; font-weight: 400; line-height: 1.6; }
  .keyword-profile { border: 0; border-radius: 0; background: transparent; padding: 20px 0; }
  .keyword-profile-name { font-size: 26px; font-weight: 500; }
  .keyword-profile-metrics { gap: 14px; }
  .keyword-profile-metric b { font-size: 20px; font-weight: 500; }
  .keyword-profile-metric span { font-size: 10px; line-height: 1.5; }
  .keyword-score { background: transparent; border-radius: 0; }
  .keyword-score b { font-size: 32px; font-weight: 500; }
  .keyword-duels { gap: 20px; padding: 24px 0; }
  .keyword-duel-value, .keyword-duel-label { font-weight: 500; }
  .keyword-win { background: transparent; border: 0; border-radius: 0; padding: 10px 0 10px 16px; }
  .keyword-win b { font-weight: 500; }
  .keyword-win span { line-height: 1.7; }
  .keyword-overlap { padding: 14px 0; border-radius: 0; border-top: 1px solid var(--border); background: transparent; }

  @keyframes up { from { transform: translateY(6px); } to { transform: translateY(0); } }
  .filter-panel, .view-panel { animation: none; }
  @media (max-width: 1000px) {
    .page { padding: 28px 28px 60px; }
    .g2, .g32, .g23, .g-tags, .intel-hero { gap: 28px; }
    .kpi { padding: 0 16px; }
    .kpi-val { font-size: 30px; }
    .kpi:first-child .kpi-val { font-size: 60px; }
    .executive-pulse { gap: 28px; grid-template-columns: minmax(0,1.4fr) minmax(220px,1fr); }
    .pulse-title { font-size: 23px; }
    .radar-layout { gap: 28px; }
    .g-tags { grid-template-columns: 1fr; }
  }
  @media (max-width: 760px) {
    .hdr { gap: 12px; }
    .client-pill { font-size: 25px; }
    .kpi-row { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 26px; }
    .kpi:nth-child(3) { padding-left: 0; border: 0; }
    .kpi:first-child .kpi-val { font-size: 52px; }
    .executive-pulse, .radar-layout { grid-template-columns: minmax(0,1fr); }
    .executive-pulse { gap: 16px; }
    .pulse-facts { grid-template-columns: 1fr; }
    .insights-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
    .g2, .g32, .g23, .g-tags, .intel-hero { grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
    .radar-wrap { height: 235px; }
    .tags-donut-wrap { flex-direction: row; align-items: center; }
    .keyword-charts { grid-template-columns: 1fr; }
  }
  @media (max-width: 600px) {
    .page { padding: 22px 20px 48px; }
    .hdr { grid-template-columns: minmax(0,1fr) auto; margin-bottom: 24px; gap: 10px; }
    .hdr-l { margin-bottom: 12px; }
    .hdr-l .brand-sub { font-size: 10px !important; max-width: 150px; }
    .nty-mark { margin-bottom: 12px; }
    .nty-mark img { height: 16px; }
    .client-pill { font-size: 25px; grid-column: 1/-1; grid-row: 2; }
    .date-lbl { grid-column: 1/-1; grid-row: 3; font-size: 11px; }
    .premium-mark { grid-column: 1; grid-row: 4; justify-self: start; align-self: center; }
    .pdf-btn { grid-column: 2; grid-row: 4; margin-top: 6px; font-size: 11px; min-height: 34px; }
    .filter-dock { top: 0; }
    .filter-summary { padding: 11px 0; }
    .filter-summary-top { flex-wrap: wrap; gap: 10px; }
    .filter-summary-top > div:first-child { flex: 1 1 100%; }
    .filter-kicker { display: none; }
    .filter-active { min-height: 16px; }
    .filter-count { display: inline; font-size: 10px; }
    .filter-placeholder { font-size: 11px; }
    .filter-actions { width: 100%; justify-content: flex-end; gap: 6px; }
    .filter-compare { margin-right: auto; width: auto; height: auto; padding: 7px 10px; }
    .filter-compare .filter-compare-label { display: inline; }
    .filter-compare-mark { width: 16px; }
    .filter-open, .filter-clear, .view-open { font-size: 11px; padding: 7px 11px; }
    .filter-compare { font-size: 11px; }
    .active-filter-pill { max-width: 150px; }
    .kpi-row { padding: 26px 0; row-gap: 24px; }
    .kpi-val { font-size: 29px; }
    .kpi-sub { font-size: 10px; }
    .kpi-lbl { font-size: 11px; }
    .executive-pulse { padding: 22px 18px; }
    .pulse-title { font-size: 24px; }
    .pulse-copy { font-size: 12px; }
    .pulse-fact { padding: 9px 0; }
    .insights-row { padding: 24px 0; gap: 24px 20px; }
    .insight-v { font-size: 16px; }
    .insight { min-height: 80px; }
    .card { padding: 25px 0 30px; }
    .card-title { font-size: 18px; }
    .standalone-chart-card, .intel-chart-stack > .card { padding: 22px 16px; }
    .standalone-chart-card, .intel-chart-stack { margin-bottom: 24px; }
    .intel-chart-stack { gap: 24px; }
    .card-hdr { gap: 12px; margin-bottom: 22px; }
    .card-sub { font-size: 11px; }
    .cw { height: 235px; }
    .cw-sm { height: 210px; }
    .sov-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .sov-card { padding: 0 10px; }
    .sov-card b { font-size: 24px; }
    .sov-card span { font-size: 10px; white-space: normal; overflow-wrap: anywhere; }
    .sov-head-actions { justify-content: flex-start; gap: 8px; }
    .sov-head-actions .seg-btn { min-width: 0; font-size: 11px; padding: 6px 11px; }
    .sov-head-actions .card-badge { margin-left: auto; }
    .sov-chart-card .cw, .keyword-performance-card .cw { height: 290px; }
    .sentiment-meter { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
    .sentiment-pill { padding: 12px 8px; }
    .sentiment-pill b { font-size: 24px; }
    .author-detail { padding-left: 0; }
    .author-row { grid-template-columns: auto minmax(0,1fr) auto; }
    .tags-donut-wrap { gap: 16px; }
    .tags-legend-name { overflow-wrap: anywhere; }
    .tags-top-meta { max-width: 90px; }
    .tbl th { font-size: 9px; padding: 10px 3px; }
    .tbl td { font-size: 10px; padding: 13px 3px; }
    .media-cell { gap: 4px; }
    .media-logo { width: 18px; height: 18px; }
    .rank { width: 13px; margin-right: 1px; font-size: 9px; }
    .ftag { font-size: 8px; padding: 3px 4px; }
    .article-detail-cell { padding: 0 0 12px !important; }
    .tbl .article-detail-cell { width: auto; }
    .article-item { grid-template-columns: 1fr; }
    .filter-panel, .view-panel { top: 20px; right: 16px; width: calc(100vw - 32px); max-height: calc(100dvh - 40px); }
    .filter-panel-hdr { padding: 20px; }
    .filter-panel-title { font-size: 18px; }
    .filter-panel-sub { font-size: 11px; }
    .filter-panel-hdr { flex-wrap: wrap; }
    .filter-panel-tools { margin-left: auto; }
    .filters { padding: 20px; max-height: calc(100dvh - 220px); }
    .filter-chip-list { flex-wrap: wrap; overflow: visible; }
    .view-list { padding: 0 20px 20px; }
    .keyword-arena-head { padding: 26px 0 16px; }
    .keyword-arena-title { font-size: 26px; }
    .keyword-arena-body { padding: 8px 0 24px; }
    .keyword-summary { grid-template-columns: 1fr; gap: 8px; }
    .keyword-score { padding: 10px 0; min-height: 50px; }
    .keyword-profile { padding: 16px 0; }
    .keyword-profile-name { font-size: 24px; }
    .keyword-profile-metric b { font-size: 18px; }
    .keyword-duel { grid-template-columns: 55px minmax(0,1fr) 82px minmax(0,1fr) 55px; gap: 5px; }
    .keyword-wins { grid-template-columns: 1fr; }
    .keyword-wins, .keyword-charts { gap: 24px; }
    .keyword-tone-row { grid-template-columns: 80px minmax(0,1fr); }
    .keyword-tone-meta { white-space: normal; line-height: 1.5; }
    .keyword-input { font-size: 16px; }
    .keyword-controls { grid-template-columns: 1fr; }
    .keyword-vs { margin: 0; height: 16px; }
    .keyword-performance-head { min-width: 0; }
    .keyword-performance-legend { gap: 10px 16px; }
    .keyword-performance-head .info-pop, .keyword-section-heading .info-pop { left: 0; right: auto; width: min(290px, calc(100vw - 40px)); }
    #wcloud { height: 220px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  }
}
