/* Shared report component (".gx"): the light AI-visibility report screen modelled on the flowgen app — used by the /geo-report
   sample window and the home hero window. Charts are drawn by js/gx.js into [data-gx] hooks. Our brand in ink, competitors in
   greys, orange only for competitor sites, a few accents only for question topics. */
.gx { --gx-line: #e6e6e3; --gx-mute: #6b6b6b; font-size: 12px; color: #111; }
.gx-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gx-org { display: flex; align-items: center; gap: 9px; }
.gx-org > i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #111; color: #fff; font-style: normal; font-weight: 700; font-size: 13px; }
.gx-org b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.gx-org small { display: block; font-size: 11px; color: var(--gx-mute); }
.gx-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: #ebebe8; }
.gx-tabs button { padding: 6px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--gx-mute); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.gx-tabs button.is-on { background: #111; color: #fff; }
.gx-meta { margin: 12px 0 0; font-size: 11.5px; color: var(--gx-mute); }
.gx-meta span::before { content: "·"; margin: 0 6px; }
.gx-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.gx-filters > span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid var(--gx-line); border-radius: 8px; background: #fff; font-size: 11.5px; color: var(--gx-mute); }
.gx-filters b { color: #111; font-weight: 600; }
.gx-check i { width: 12px; height: 12px; border: 1.5px solid #bdbdbd; border-radius: 3px; }
.gx-view { display: none; }
.gx-view.is-on { display: grid; gap: 12px; }
.gx-row { display: grid; gap: 12px; }
.gx-row--trend { grid-template-columns: minmax(0, 1fr) 176px; }
.gx-row--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.gx-row--m { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.gx-card { min-width: 0; padding: 14px 16px; border: 1px solid var(--gx-line); border-radius: 12px; background: #fff; }
.gx-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.gx-h h4 { margin: 0; font-size: 13px; font-weight: 700; color: #111; }
.gx-select { padding: 4px 10px; border: 1px solid var(--gx-line); border-radius: 7px; font-size: 11px; color: #111; white-space: nowrap; }
.gx-select::after { content: "⌄"; margin-left: 6px; color: var(--gx-mute); }
.gx-link { font-size: 11.5px; font-weight: 600; color: #111; }
.gx-seg { display: flex; gap: 2px; margin-bottom: 6px; }
.gx-seg span { padding: 3px 9px; border-radius: 999px; font-size: 11px; color: var(--gx-mute); }
.gx-seg span.on { background: #111; color: #fff; }
.gx-seg--sm { margin: 0; padding: 2px; border: 1px solid var(--gx-line); border-radius: 8px; }
.gx-seg--sm span { border-radius: 6px; padding: 3px 7px; font-size: 10.5px; }
/* charts */
.gx-chart { display: block; width: 100%; height: auto; overflow: visible; }
.gx-chart .grid { stroke: #eeeeeb; stroke-width: 1; stroke-dasharray: 3 3; }
.gx-chart .ax { font-size: 10px; fill: #8a8a8a; font-family: inherit; }
.gx-chart .ln.dash { stroke-dasharray: 5 4; }
.gx-chart .ln:not(.dash) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.gx.gx-drawn .gx-chart .ln:not(.dash) { animation: gxDraw 1.2s var(--expo, cubic-bezier(.16,1,.3,1)) forwards; }
.gx-chart .pt { opacity: 0; }
.gx.gx-drawn .gx-chart .pt { animation: gxFade .4s ease .9s forwards; }
@keyframes gxDraw { to { stroke-dashoffset: 0; } }
@keyframes gxFade { to { opacity: 1; } }
.gx-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 11px; color: #444; }
.gx-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.gx-legend > span.me { font-weight: 700; color: #111; }
.gx-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.gx-legend i.dash { width: 12px; height: 0; border-radius: 0; border-top: 2px dashed var(--c); background: none; }
/* KPI cards */
.gx-kpis { display: grid; gap: 8px; }
.gx-kpi { position: relative; padding: 10px 12px; border: 1px solid var(--gx-line); border-radius: 10px; background: #fff; }
.gx-kpi.is-on { box-shadow: inset 3px 0 0 #111; }
.gx-kpi small { display: block; font-size: 10.5px; color: var(--gx-mute); }
.gx-kpi strong { display: block; margin-top: 3px; font-size: 20px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.gx-kpi em { display: block; margin-top: 2px; font-style: normal; font-size: 10px; color: #0b8a3a; font-weight: 600; max-width: 96px; line-height: 1.3; }
.gx-spark { position: absolute; right: 10px; bottom: 10px; width: 64px; height: 32px; }
/* brand ranking */
.gx-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.gx-rank li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; grid-template-areas: "n nm v" ". bar bar"; gap: 3px 8px; align-items: center; font-size: 11.5px; color: #333; }
.gx-rank .n { grid-area: n; color: #8a8a8a; font-variant-numeric: tabular-nums; }
.gx-rank .nm { grid-area: nm; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-rank em { margin-left: 6px; padding: 1px 6px; border-radius: 5px; background: #111; color: #fff; font-style: normal; font-size: 10px; font-weight: 600; }
.gx-rank b { grid-area: v; font-weight: 600; font-variant-numeric: tabular-nums; }
.gx-rank i { grid-area: bar; position: relative; height: 4px; border-radius: 2px; background: #efefec; overflow: hidden; }
.gx-rank i::after { content: ""; position: absolute; inset: 0; width: 0; border-radius: 2px; background: #bdbdbd; transition: width 1s var(--expo, ease); }
.gx.gx-drawn .gx-rank i::after { width: var(--w); }
.gx-rank li.me { color: #111; font-weight: 700; }
.gx-rank li.me i::after { background: #111; }
/* donuts */
.gx-src { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: center; }
.gx-donut { position: relative; width: 132px; }
.gx-donut svg { display: block; width: 100%; }
.gx-donut .seg { transition: opacity .6s; }
.gx:not(.gx-drawn) .gx-donut .seg { opacity: 0; }
.gx-donut > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gx-donut strong { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gx-donut small { font-size: 9.5px; color: var(--gx-mute); line-height: 1.3; }
.gx-src-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gx-src-key li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto 32px; gap: 7px; align-items: center; font-size: 11px; color: #444; }
.gx-src-key i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.gx-src-key span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-src-key b { font-weight: 700; color: #111; font-variant-numeric: tabular-nums; }
.gx-src-key em { font-style: normal; text-align: right; color: #8a8a8a; font-variant-numeric: tabular-nums; }
.gx-donut--sov { width: 150px; margin: 6px auto 0; }
.gx-donut--sov strong { font-size: 24px; }
.gx-donut--sov small { color: #0b8a3a; font-weight: 600; }
.gx-rankno { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 6px; font-size: 11px; color: var(--gx-mute); }
.gx-rankno b { font-size: 24px; font-weight: 800; color: #111; letter-spacing: -0.02em; }
.gx-sov { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; counter-reset: sov; }
.gx-sov li { counter-increment: sov; display: grid; grid-template-columns: 16px 8px minmax(0, 1fr) auto; gap: 7px; align-items: center; font-size: 11.5px; color: #333; }
.gx-sov li::before { content: counter(sov) "."; color: #8a8a8a; }
.gx-sov i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.gx-sov b { font-weight: 600; font-variant-numeric: tabular-nums; }
.gx-sov li.me { font-weight: 700; color: #111; }
/* mentions */
.gx-big { display: flex; align-items: baseline; gap: 8px; }
.gx-big strong { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.gx-big span { font-size: 11px; font-weight: 600; color: #0b8a3a; }
.gx-sub { display: block; margin: 3px 0 8px; font-size: 10.5px; color: var(--gx-mute); }
/* questions table */
.gx-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.gx-table th { padding: 0 8px 7px; text-align: left; font-size: 10.5px; font-weight: 500; color: var(--gx-mute); border-bottom: 1px solid var(--gx-line); }
.gx-table td { padding: 8px; border-bottom: 1px solid #f0f0ed; color: #222; vertical-align: middle; }
.gx-table td:nth-child(3), .gx-table th:nth-child(3) { text-align: right; }
.gx-table td:last-child, .gx-table th:last-child { text-align: right; color: #8a8a8a; white-space: nowrap; }
.gx-table b { font-weight: 700; } .gx-table b.zero { color: #c2410c; }
.gx-eng { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; font-size: 10px; color: #555; white-space: nowrap; }
.gx-eng i, .gx-foot i { width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; border: 1.5px solid #bdbdbd; }
.gx-eng i:first-child { margin-left: 0; }
.gx-eng i.f, .gx-foot i.f { background: #111; border-color: #111; }
.gx-eng i.h, .gx-foot i.h { border-color: #111; background: linear-gradient(90deg, #111 50%, transparent 50%); }
.gx-foot { display: flex; align-items: center; gap: 4px; margin: 10px 0 0; font-size: 10.5px; color: var(--gx-mute); }
.gx-foot i:not(:first-child) { margin-left: 10px; }
@media (max-width: 640px) {
  .gx-row--trend, .gx-row--2, .gx-row--m { grid-template-columns: 1fr; }
  .gx-kpis { grid-template-columns: 1fr 1fr; }
  .gx-check { display: none !important; }
  .gx-table th:nth-child(2), .gx-table td:nth-child(2), .gx-table th:last-child, .gx-table td:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gx-chart .ln:not(.dash) { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
  .gx-chart .pt { opacity: 1; animation: none !important; }
}


/* ---- In the home hero window (and its clones in the platform showcase): a compact, light report screen ---- */
.app-screen.app-screen--report { padding: 16px 18px; background: #f6f6f4; color: #111; overflow: hidden; }
.gx--app { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 10px; height: 100%; font-size: 11.5px; }
.gx-apphead { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.gx-apphead b { font-size: 14px; font-weight: 700; }
.gx-apphead span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gx-mute); font-size: 11.5px; }
.gx-apphead em { margin-left: auto; padding: 4px 10px; border: 1px solid var(--gx-line); border-radius: 999px; background: #fff; font-style: normal; font-size: 10.5px; color: #111; white-space: nowrap; }
.gx--app .gx-row--trend { grid-template-columns: minmax(0, 1fr) 320px; }
.gx--app .gx-card { padding: 11px 14px; }
.gx--app .gx-h { margin-bottom: 4px; }
.gx--app .gx-legend { margin-top: 4px; }
.gx--app .gx-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
.gx--app .gx-kpi { padding: 9px 11px; }
.gx--app .gx-kpi strong { font-size: 19px; }
.gx--app .gx-kpi em { max-width: none; }
.gx--app .gx-spark { width: 54px; height: 28px; right: 8px; bottom: 8px; }
.gx--app .gx-rank { gap: 7px; }
.gx--app .gx-src { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
.gx--app .gx-donut { width: 104px; }
.gx--app .gx-donut strong { font-size: 18px; }
.gx--app .gx-src-key { gap: 3px; }
.gx--app .gx-src-key li { font-size: 10.5px; }
@media (max-width: 860px) {
  .gx--app .gx-row--trend { grid-template-columns: 1fr; }
  .gx--app .gx-kpis, .gx--app .gx-row--2 { display: none; }
}

/* Other app screens restyled light like the report (e.g. Prompt Demand): remap the dark-screen colour tokens of css/home.css */
.hm .app .app-screen--light { --fg: #111; --fg-2: #555; --fg-3: #6b6b6b; --fg-4: #a8a8a8; --line: #e6e6e3; --line-soft: #ececea; --line-dash: #e2e2df; --bg-1: #fff; --bg-2: #fff; --bg-3: #f1f1ee; --bg-4: #e6e6e3; background: #f6f6f4; color: #111; }
