/* Internal AI Visibility Audit (visibility/index.php). Builds on app.css tokens and helpers. */
.vis-page { background: var(--paper); }
.vis-header { gap: 18px; }
.vis-shell { padding: 28px 0 60px; }
.vis-shell h1 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.vis-shell h2 { margin: 0 0 10px; font-size: 18px; letter-spacing: -.02em; }
.vis-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.vis-hint { color: var(--muted); font-size: 12.5px; }
.vis-error { margin: 0 0 18px; }
.vis-crumbs { margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.vis-crumbs a { color: var(--mint-dark); font-weight: 650; text-decoration: none; }
.vis-title-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.vis-title-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vis-card { margin-bottom: 18px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(16, 27, 44, .05); }
.vis-card > p:first-of-type { margin-top: 0; }
.vis-button { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border: 0; border-radius: 8px; color: #06220c; background: #00e000; font-size: 13px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.vis-button:hover { background: #3cf03c; }
.vis-button:focus-visible, .button-secondary:focus-visible { outline: 2px solid var(--mint-dark); outline-offset: 3px; }
a.button-secondary { display: inline-flex; align-items: center; text-decoration: none; }

/* Forms */
.vis-form label, .vis-login label, .vis-capture label { display: block; margin-bottom: 14px; color: var(--ink); font-size: 13px; font-weight: 650; }
.vis-form label span, .vis-capture label span { color: var(--muted); font-weight: 450; }
.vis-shell input:not([type="hidden"]), .vis-shell textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid #d4dce5; border-radius: 8px; color: var(--ink); background: #fff; font: inherit; font-size: 14px; }
.vis-shell textarea { resize: vertical; line-height: 1.5; }
.vis-shell input::placeholder, .vis-shell textarea::placeholder { color: #a3aebb; font-weight: 400; }
.vis-shell input:focus, .vis-shell textarea:focus { border-color: #65bd9c; outline: 0; box-shadow: 0 0 0 3px rgba(101, 189, 156, .2); }
.vis-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.vis-inline { display: flex; gap: 10px; }
.vis-inline input:not([type="hidden"]) { max-width: 260px; margin-top: 0; }
.vis-login { max-width: 420px; margin: 40px auto; }
.vis-login h1 { margin-bottom: 16px; font-size: 22px; }
.vis-login button { margin-top: 4px; }
.vis-shell code { padding: 1px 5px; border-radius: 4px; background: #eef1f4; font-size: 12px; }
.vis-questions { margin-top: 14px; font-size: 13px; }
.vis-questions summary { color: var(--mint-dark); font-weight: 650; cursor: pointer; }
.vis-questions em, .vis-tag { margin-left: 6px; padding: 1px 7px; border-radius: 10px; color: #476576; background: #edf3f5; font-size: 10px; font-style: normal; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.tag-client { color: #0d5c3f; background: #d7f5e6; }

/* Tables */
.vis-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vis-table th { padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10.5px; font-weight: 750; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.vis-table td { padding: 11px 10px; border-bottom: 1px solid #eef1f4; vertical-align: top; }
.vis-table a { color: var(--mint-dark); }
.vis-score { color: var(--tone); font-size: 16px; }
.vis-actions { display: flex; gap: 12px; justify-content: flex-end; font-weight: 650; }

/* Capture */
.vis-progress { margin: -6px 0 18px; }
.vis-progress .bar-svg { height: 8px; --tone: #00c000; }
.vis-tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.vis-tabs a { margin-bottom: -1px; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px 9px 0 0; color: var(--muted); font-weight: 700; text-decoration: none; }
.vis-tabs a.is-active { border-color: var(--line); border-bottom-color: var(--paper); color: var(--ink); background: var(--paper); }
.vis-tabs small { margin-left: 4px; font-family: ui-monospace, "Courier New", monospace; font-size: 11px; }
.vis-tip { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #f3d9a4; border-radius: 10px; color: #6b4a12; background: #fef9ec; font-size: 13px; }
.vis-tip a { margin-left: 6px; color: var(--mint-dark); font-weight: 750; }
.vis-question { scroll-margin-top: 16px; padding: 16px 20px; }
.vis-question.is-saved { border-color: #b7e4cc; }
.vis-question header { display: flex; align-items: flex-start; gap: 12px; }
.vis-qnum { display: grid; flex: 0 0 auto; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: #fff; background: var(--navy); font-size: 12px; font-weight: 800; }
.vis-qtext { flex: 1; margin: 2px 0 0; font-size: 15px; font-weight: 650; }
.vis-question header .vis-tag { margin-top: 5px; }
.vis-copy { flex: 0 0 auto; height: 32px; }
.vis-result { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0 0 38px; font-size: 12px; }
.vis-competitors { color: var(--muted); }
.vis-capture { margin: 10px 0 0 38px; }
.vis-capture summary { color: var(--mint-dark); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.vis-capture form { margin-top: 10px; }
.vis-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Result chips */
.vis-chip { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.chip-cited { color: #0d5c3f; background: #d7f5e6; }
.chip-mentioned { color: #8a5a0b; background: #fdf1d8; }
.chip-absent { color: #9b2f2c; background: #fbe3e2; }
.chip-none { color: #8390a1; background: #eef1f4; }

/* Results */
.vis-summary { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.vis-summary .vis-card { margin: 0; }
.vis-score-card { display: flex; align-items: center; gap: 22px; }
.vis-score-card .ring-wrap b { font-size: 34px; }
.vis-score-card h2 { margin: 2px 0 6px; color: var(--tone); font-size: 24px; }
.vis-score-card p:last-child { margin: 0; color: #40516a; font-size: 13px; }
.vis-score-card .eyebrow { margin: 0; color: var(--muted); }
.vis-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vis-stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.vis-stat span { color: var(--muted); font-size: 10.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.vis-stat strong { display: block; margin-top: 2px; font-size: 26px; line-height: 1.15; letter-spacing: -.03em; }
.vis-stat p { margin: 2px 0 0; color: var(--muted); font-size: 11.5px; }
.vis-platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vis-platform { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.vis-platform-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.vis-platform-head b { color: var(--tone); font-size: 20px; }
.vis-platform p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.vis-voices { margin: 0; padding: 0; list-style: none; }
.vis-voices li { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 90px; align-items: center; gap: 12px; padding: 7px 0; font-size: 13px; }
.vis-voices .bar-svg { --tone: #9fb0c2; height: 10px; }
.vis-voices .is-client { font-weight: 800; }
.vis-voices .is-client .bar-svg { --tone: #00b400; }
.vis-voices b { font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: right; }
.vis-matrix td:first-child { width: 46%; }
.vis-domains { margin: 0; padding-left: 20px; font-size: 13px; columns: 2; column-gap: 32px; }
.vis-domains li { padding: 4px 0; break-inside: avoid; }
.vis-domains li b { float: right; font-variant-numeric: tabular-nums; }
.vis-pages { margin: 0; padding-left: 20px; font-size: 13px; }
.vis-pages li { padding: 5px 0; border-bottom: 1px solid #eef1f4; overflow-wrap: anywhere; }
.vis-pages li b { float: right; margin-left: 12px; font-weight: 600; color: var(--muted); font-size: 12px; }
.vis-pages .vis-tag { margin-left: 6px; }
.dash-section { margin: 34px 0 12px; padding-top: 14px; border-top: 2px solid #dfe5ec; font-size: 20px; color: #16325c; }
.dash-section small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted); }
.dash-section-1 { margin-top: 8px; padding-top: 0; border-top: 0; }
.vis-mix { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.vis-mix p { margin: 0; padding: 6px 10px; border-radius: 6px; font-size: 13px; color: #33415c; background: #eef1f4; }
.vis-mix p b { font-variant-numeric: tabular-nums; margin-right: 2px; }
.vis-mix .mix-own { color: #0d5c3f; background: #d7f5e6; }
.vis-mix .mix-directory { color: #8a5a0b; background: #fdf1d8; }
.vis-mix .mix-competitor { color: #9b2f2c; background: #fbe3e2; }
.trend-chart { display: block; width: 100%; max-width: 640px; height: auto; margin: 4px 0 14px; }
.trend-grid { stroke: #e3e8ee; stroke-width: 1; }
.trend-axis, .trend-label { fill: #8390a1; font-size: 10px; font-family: Inter, system-ui, sans-serif; }
.trend-line { stroke: #00b400; stroke-width: 2.5; }
.trend-dot { fill: #00b400; }
.trend-value { fill: var(--ink); font-size: 11px; font-weight: 800; font-family: Inter, system-ui, sans-serif; }
.vis-method { color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.vis-danger { margin-top: 26px; text-align: right; }
.vis-danger .button-secondary { color: var(--fail); }
.vis-print-cover { display: none; }

@media (max-width: 800px) {
    .vis-summary, .vis-platforms, .vis-two { grid-template-columns: 1fr; }
    .vis-voices li { grid-template-columns: 1fr 80px; }
    .vis-voices .bar-svg { grid-column: 1 / -1; grid-row: 2; }
    .vis-domains { columns: 1; }
    .vis-result, .vis-capture { margin-left: 0; }
    .vis-question header { flex-wrap: wrap; }
    .vis-matrix { display: block; overflow-x: auto; }
}

@media print {
    .dash-section-2, .dash-section-3, .dash-section-appendix { break-before: page; border-top: 0; }
    html, .vis-page { background: #fff; }
    .vis-page .site-header, .no-print, .vis-tip { display: none !important; }
    .vis-shell { width: 100%; padding: 0; }
    .vis-print-cover { display: block; margin-bottom: 6px; }
    .vis-print-cover .eyebrow { color: var(--mint-dark); }
    .vis-card, .vis-stat, .vis-platform { box-shadow: none; break-inside: avoid; }
    .vis-summary { grid-template-columns: 1fr 1fr; }
    .vis-platforms { grid-template-columns: repeat(3, 1fr); }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Standard prompt set, capture extras, and the dashboard results page. */
.vis-shell select { display: block; width: 100%; margin-top: 6px; padding: 9px 10px; border: 1px solid #d4dce5; border-radius: 8px; color: var(--ink); background: #fff; font: inherit; font-size: 14px; }
.vis-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.vis-form h2 { margin: 6px 0 14px; }
.vis-form h2:not(:first-of-type) { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.vis-prompt { font-weight: 700; }
.vis-prompt .vis-tag { margin: 0 4px 0 0; }
.vis-check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.vis-check input { display: inline-block !important; width: auto !important; margin: 0 !important; }
.tag-branded { color: #5b3fa0; background: #eee8fb; }
.vis-qbody { flex: 1; min-width: 0; }
.vis-qmeta { margin: 0 0 3px; }
.vis-qmeta .vis-tag { margin-left: 0; }
.vis-qactions { display: flex; flex: 0 0 auto; gap: 6px; }
.chip-positive { color: #0d5c3f; background: #d7f5e6; }
.chip-mixed { color: #8a5a0b; background: #fdf1d8; }
.chip-negative { color: #9b2f2c; background: #fbe3e2; }

/* Engine badges and colors (one hue per engine, reused in charts and dots). */
.pf-badge { display: inline-grid; min-width: 30px; height: 22px; padding: 0 5px; place-items: center; border-radius: 6px; color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; vertical-align: middle; }
.pf-chatgpt { --pf: #10a37f; } .pf-perplexity { --pf: #1f7a8c; } .pf-gemini { --pf: #4f6bed; } .pf-copilot { --pf: #c2410c; } .pf-google_aio { --pf: #d93025; }
.pf-badge { background: var(--pf, #63738a); }
.pf-fill { fill: var(--pf, #63738a); }
.vis-tabs a .pf-badge { margin-right: 4px; }

.dash-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.dash-top .vis-card, .dash-grid .vis-card { margin: 0; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.dash-brand-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.dash-brand h1 { font-size: 30px; }
.dash-aliases { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 12px; }
.dash-aliases span { color: var(--muted); font-weight: 650; }
.dash-aliases .vis-tag { margin: 0; text-transform: none; letter-spacing: 0; font-size: 11px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 16px; }
.dash-kpis div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.dash-kpis span { display: block; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.dash-kpis strong { display: block; margin-top: 4px; font-size: 24px; line-height: 1.1; letter-spacing: -.03em; }
.dash-kpis small { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.dash-card-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 14px; font-size: 15px; font-weight: 800; }
.dash-card-title small { color: var(--muted); font-size: 11.5px; font-weight: 500; }
.dash-ring-row { display: flex; justify-content: space-around; gap: 12px; }
.dash-ring { display: grid; justify-items: center; gap: 4px; text-align: center; }
.dash-ring .ring-wrap b { font-size: 24px; font-family: Inter, system-ui, sans-serif; }
.dash-ring > span { color: var(--muted); font-size: 12px; font-weight: 650; }
.dash-ring small { display: block; font-weight: 500; }
.bar-chart { display: block; width: 100%; height: auto; }
.dash-cats { margin: 0; padding: 0; list-style: none; }
.dash-cats li { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 44px; align-items: center; gap: 10px; padding: 7px 0; font-size: 12.5px; }
.dash-cats li > span { overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.dash-cats .bar-svg { height: 14px; }
.dash-cats b { text-align: right; font-variant-numeric: tabular-nums; }
.dash-cats li > span small { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; font-weight: 450; }
.vis-tool { white-space: nowrap; font-weight: 650; }
.vis-tool > * { vertical-align: middle; }
.cat-0 { --tone: #f97316; } .cat-1 { --tone: #a855f7; } .cat-2 { --tone: #10b981; } .cat-3 { --tone: #3b82f6; } .cat-4 { --tone: #ec4899; }
.dash-ranking { margin: 0; padding: 0; list-style: none; }
.dash-ranking li { display: grid; grid-template-columns: 26px 1fr auto 34px; align-items: center; gap: 10px; margin-bottom: 6px; padding: 8px 10px; border: 1px solid #eef1f4; border-radius: 9px; background: #fafbfc; font-size: 13px; }
.dash-ranking li.is-client { border-color: #b7a4ef; background: #f4f0fe; font-weight: 750; }
.dash-rank { color: var(--muted); font-variant-numeric: tabular-nums; }
.dash-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-name .vis-tag { text-transform: none; }
.dash-engines { display: flex; gap: 3px; }
.dash-engines i { width: 8px; height: 8px; border-radius: 50%; background: #dfe4ea; }
.dash-engines i.on { background: var(--pf); }
.pf-dot-chatgpt { --pf: #10a37f; } .pf-dot-perplexity { --pf: #1f7a8c; } .pf-dot-gemini { --pf: #4f6bed; } .pf-dot-copilot { --pf: #c2410c; } .pf-dot-google_aio { --pf: #d93025; }
.dash-ranking b { text-align: right; font-variant-numeric: tabular-nums; }
.dash-prompts td { vertical-align: middle; }
.dash-prompts td:nth-child(2) { width: 52%; }
.dash-prompt { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.dash-prompts small { color: var(--muted); font-size: 11px; }
.dash-pill { display: inline-block; min-width: 30px; padding: 2px 8px; border-radius: 7px; font-size: 12px; font-weight: 750; text-align: center; }
.pill-brands { color: #1e5aa8; background: #e3effd; }
.pill-cites { color: #9a5b00; background: #fff2d6; }
.dash-branded { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
/* "What AI says about you": verdict banner, toned tiles with bars, pending tiles. Classes only (CSP blocks inline styles). */
.brand-verdict { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 18px; border-radius: 12px; --tone-ink: #40516a; --tone-bg: #f3f5f8; --tone-mark: #8390a1; color: var(--tone-ink); background: var(--tone-bg); }
.brand-verdict.tone-good { --tone-ink: #0d5c3f; --tone-bg: #e6f8ef; --tone-mark: #16a36a; }
.brand-verdict.tone-mid { --tone-ink: #7a4f08; --tone-bg: #fdf4e1; --tone-mark: #d99a1c; }
.brand-verdict.tone-low { --tone-ink: #8f2a27; --tone-bg: #fcebea; --tone-mark: #d4534e; }
.brand-verdict-mark { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: var(--tone-mark); font-size: 20px; line-height: 1; }
.brand-verdict h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.brand-verdict p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; }
.dash-branded .vis-stat { position: relative; overflow: hidden; border-top: 3px solid var(--line); }
.dash-branded .vis-stat strong small { margin-left: 2px; color: var(--muted); font-size: 14px; font-weight: 650; letter-spacing: 0; }
.dash-branded .vis-stat.tone-good { border-top-color: #16a36a; }
.dash-branded .vis-stat.tone-good strong { color: #0d5c3f; }
.dash-branded .vis-stat.tone-mid { border-top-color: #d99a1c; }
.dash-branded .vis-stat.tone-mid strong { color: #7a4f08; }
.dash-branded .vis-stat.tone-low { border-top-color: #d4534e; }
.dash-branded .vis-stat.tone-low strong { color: #8f2a27; }
.dash-branded .vis-stat.is-pending { border: 1px dashed #c9d1db; background: #fafbfc; }
.dash-branded .vis-stat.is-pending strong { margin-top: 6px; color: #8390a1; font-size: 15px; font-weight: 700; letter-spacing: 0; }
.vis-bar { display: block; height: 5px; margin: 6px 0 4px; overflow: hidden; border-radius: 3px; background: #edf0f4; }
.vis-bar b { display: block; height: 100%; border-radius: 3px; background: #8390a1; }
.tone-good .vis-bar b { background: #16a36a; }
.tone-mid .vis-bar b { background: #d99a1c; }
.tone-low .vis-bar b { background: #d4534e; }
.vis-bar .p-0 { width: 0; } .vis-bar .p-10 { width: 10%; } .vis-bar .p-20 { width: 20%; } .vis-bar .p-30 { width: 30%; }
.vis-bar .p-40 { width: 40%; } .vis-bar .p-50 { width: 50%; } .vis-bar .p-60 { width: 60%; } .vis-bar .p-70 { width: 70%; }
.vis-bar .p-80 { width: 80%; } .vis-bar .p-90 { width: 90%; } .vis-bar .p-100 { width: 100%; }
.brand-pending-note { margin: 0 0 14px; padding: 10px 14px; border: 1px dashed #c9d1db; border-radius: 10px; color: var(--muted); background: #fafbfc; font-size: 12.5px; }
.brand-sources h3 { margin: 4px 0 8px; font-size: 13px; }
.brand-sources .dash-tags { align-items: center; }
.brand-sources-label { min-width: 120px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.chip-source { color: #1e4f8a; background: #e8f0fb; }
.vis-local { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vis-local .vis-check { margin: 0; }
.vis-local input[name="localCity"] { min-width: 170px; }
.vis-redetect { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -6px 0 18px; }
.vis-redetect .vis-hint { flex: 1 1 320px; font-size: 12px; }
/* Capture card: the links counted as citations, listed for checking. */
.vis-found-links { margin: 2px 0 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; }
.vis-found-title { margin: 0 0 6px; font-size: 12.5px; font-weight: 750; }
.vis-found-title span { color: var(--muted); font-weight: 500; }
.vis-found-links ul { margin: 0; padding: 0; list-style: none; max-height: 180px; overflow-y: auto; }
.vis-found-links li { padding: 3px 0; border-bottom: 1px solid #eef1f4; font-size: 12px; overflow-wrap: anywhere; }
.vis-found-links li:last-child { border-bottom: 0; }
.vis-found-links li a { color: #40516a; text-decoration: none; }
.vis-found-links li a:hover { text-decoration: underline; }
.vis-found-links li a b { color: #1e4f8a; font-weight: 700; }
.vis-found-links li.is-own a b { color: #0d5c3f; }
.vis-found-links .vis-hint { margin: 6px 0 0; font-size: 11.5px; }
@media print { .brand-verdict, .vis-bar, .vis-bar b, .dash-branded .vis-stat { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
@media screen and (max-width: 900px) { .vis-card .dash-branded { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-branded .vis-stat span { overflow-wrap: anywhere; } }
@media screen and (max-width: 560px) {
    .vis-card .dash-branded { grid-template-columns: minmax(0, 1fr); }
    .brand-verdict { align-items: flex-start; padding: 12px 14px; }
    .brand-verdict h3 { font-size: 16px; }
    .brand-sources-label { flex-basis: 100%; }
    .brand-sources .vis-chip { white-space: normal; }
}
.dash-sentiment { display: flex; gap: 6px; }
.dash-sentiment em { padding: 0 9px; border-radius: 8px; font-size: 20px; font-style: normal; }
.dash-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 6px; }
.dash-two h3 { margin: 0 0 8px; font-size: 13px; }
.dash-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.dash-tags .vis-chip { font-style: normal; }
.vis-domains li b { font-weight: 600; color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
    .dash-top, .dash-grid, .dash-two, .vis-three { grid-template-columns: 1fr; }
    .dash-kpis, .dash-branded { grid-template-columns: 1fr 1fr; }
    .dash-prompts { display: block; overflow-x: auto; }
    .vis-question header { flex-wrap: wrap; }
}
@media print {
    .dash-top { grid-template-columns: 1.4fr 1fr; }
    .dash-grid, .dash-two { grid-template-columns: 1fr 1fr; }
    .dash-kpis { grid-template-columns: repeat(4, 1fr); }
    .dash-branded { grid-template-columns: repeat(5, 1fr); }
    .vis-print-cover { display: block; margin: 0 0 8px; }
    .vis-method { break-before: avoid; }
}
.vis-login .vis-sub { margin: 0 0 20px; line-height: 1.6; }

/* Visibility report summary: primary score, supporting metrics, and focused actions. */
.vis-card.dash-brand { padding:26px; border:1px solid #dce5ed; border-top:4px solid #176e57; border-radius:18px; background:linear-gradient(145deg,#fff 65%,#f4f8f6); box-shadow:0 12px 32px #16243a08; container-type:inline-size; }
.dash-brand .dash-brand-head { align-items:flex-start; gap:16px; }
.dash-brand .dash-brand-head > div { min-width:0; flex:1 1 240px; }
.dash-brand .dash-brand-head h1 { font-size:clamp(24px,3vw,30px); line-height:1.2; letter-spacing:-.035em; overflow-wrap:anywhere; }
.dash-brand .dash-brand-head > div .vis-sub { margin-top:8px; font-size:12px; color:#64768a; overflow-wrap:anywhere; }
.dash-brand .dash-brand-head > p { margin:0; padding:7px 10px; border:1px solid #e4ebef; border-radius:8px; background:#f7f9fb; color:#64768a; font-size:11px; line-height:1.5; }
.dash-brand .dash-kpis { gap:10px; margin:24px 0 0; }
.dash-brand .dash-kpis > div { display:flex; flex-direction:column; justify-content:space-between; gap:14px; min-height:116px; padding:16px 14px; border:1px solid #e0e7ee; border-radius:12px; background:#f7f9fb; }
.dash-brand .dash-kpis > div > span { min-height:28px; font-size:9px; line-height:1.55; letter-spacing:.08em; color:#617387; }
.dash-brand .dash-kpis strong { margin:0; color:#16243a; font-size:28px; line-height:1; font-variant-numeric:tabular-nums; letter-spacing:-.035em; white-space:nowrap; }
.dash-brand .dash-kpis small { margin-left:3px; color:#687b90; font-size:11px; font-weight:550; }
.dash-brand .dash-kpis > div:first-child { border-color:#16243a; background:linear-gradient(140deg,#20364b,#101b2c); box-shadow:0 6px 14px #16243a12; }
.dash-brand .dash-kpis > div:first-child > span { color:#b9d5ce; }
.dash-brand .dash-kpis > div:first-child strong { color:#fff; font-size:36px; }
.dash-brand .dash-kpis > div:first-child small { color:#adc4bf; }
.dash-brand .vis-title-actions { align-items:center; gap:12px; margin-top:22px; padding-top:18px; border-top:1px solid #e1e9ee; }
.dash-brand .vis-title-actions .button-secondary { display:inline-flex; align-items:center; justify-content:center; height:42px; padding:0 16px; border:1px solid #cedbe3; border-radius:9px; background:#fff; color:#344b60; font-size:12px; font-weight:700; text-decoration:none; }
.dash-brand .vis-title-actions .button-secondary:hover { border-color:#176e57; background:#f2f8f5; }
.dash-brand .vis-title-actions .vis-button { height:42px; margin-left:auto; padding:0 17px; border-radius:9px; color:#fff; background:#14694b; font-size:12px; gap:8px; box-shadow:0 3px 8px #14694b15; }
.dash-brand .vis-title-actions .vis-button:hover { background:#0f553d; }
.dash-brand .vis-title-actions .vis-button::before { content:""; width:16px; height:16px; flex:0 0 16px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m-4-4 4 4 4-4M5 16v4h14v-4'/%3E%3C/svg%3E") center/contain no-repeat; }
.dash-brand .vis-title-actions :is(a,button):focus-visible { outline:3px solid #65bd9c; outline-offset:3px; }
@container(max-width:460px) { .dash-brand .dash-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }.dash-brand .dash-kpis > div { min-height:112px; }.dash-brand .vis-title-actions .vis-button { margin-left:0; } }
@media(max-width:540px) { .vis-card.dash-brand { padding:20px; border-radius:14px; }.dash-brand .dash-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }.dash-brand .vis-title-actions { align-items:stretch; }.dash-brand .vis-title-actions :is(.button-secondary,.vis-button) { flex:1 1 100%; margin-left:0; }.dash-brand .dash-brand-head > div { flex-basis:100%; } }
@media print { .vis-card.dash-brand { padding:16px; background:#fff; box-shadow:none; border-color:#b8c7d2; break-inside:avoid; }.dash-brand .dash-kpis > div,.dash-brand .dash-kpis > div:first-child { background:#fff; box-shadow:none; border-color:#b8c7d2; }.dash-brand .dash-kpis > div:first-child :is(strong,span,small) { color:#16243a; } }

/* Platform badge abbreviations are replaced by recognizable logos. */
.pf-badge { display:inline-flex;align-items:center;justify-content:center;width:30px;min-width:30px;height:30px;padding:5px;border:1px solid #dfe7ee;border-radius:8px;background:#fff;vertical-align:middle; }
.pf-badge .ai-platform-logo { width:20px;height:20px;flex-basis:20px; }
.vis-tabs a { display:inline-flex;align-items:center;gap:6px; }
.vis-tabs a .pf-badge { margin-right:0; }
@media print { .pf-badge { background:#fff; border-color:#ccd6de; } }

/* Brand performance over time (AEO-14): client line highlighted with its 95% range, competitors thin, category average dashed. */
.perf-metrics { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.perf-metrics a { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 650; text-decoration: none; }
.perf-metrics a.is-active { border-color: #b7a4ef; color: #4b2fb0; background: #f4f0fe; }
.perf-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; align-items: start; }
.perf-chart { display: block; width: 100%; height: auto; }
.perf-client { stroke: #6d4ee6; stroke-width: 3; }
.perf-client-dot { fill: #6d4ee6; }
.perf-range { stroke: #6d4ee6; stroke-width: 7; stroke-linecap: round; opacity: .28; }
.perf-category { stroke: #8390a1; stroke-width: 1.5; stroke-dasharray: 5 4; }
.perf-category-dot { fill: #8390a1; }
.perf-c0, .perf-c1, .perf-c2, .perf-c3, .perf-c4, .perf-c5 { stroke-width: 1.75; }
.perf-c0 { stroke: #1a9e5c; } .perf-c0-dot, .perf-key-c0 { fill: #1a9e5c; background: #1a9e5c; }
.perf-c1 { stroke: #d1495b; } .perf-c1-dot, .perf-key-c1 { fill: #d1495b; background: #d1495b; }
.perf-c2 { stroke: #e08a1e; } .perf-c2-dot, .perf-key-c2 { fill: #e08a1e; background: #e08a1e; }
.perf-c3 { stroke: #2f7fd1; } .perf-c3-dot, .perf-key-c3 { fill: #2f7fd1; background: #2f7fd1; }
.perf-c4 { stroke: #9b59b6; } .perf-c4-dot, .perf-key-c4 { fill: #9b59b6; background: #9b59b6; }
.perf-c5 { stroke: #5f6b7a; } .perf-c5-dot, .perf-key-c5 { fill: #5f6b7a; background: #5f6b7a; }
.perf-legend { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.perf-legend li { display: grid; grid-template-columns: 10px 1fr auto auto; align-items: center; gap: 8px; margin-bottom: 6px; padding: 7px 10px; border: 1px solid #eef1f4; border-radius: 9px; background: #fafbfc; }
.perf-legend li.is-client { border-color: #b7a4ef; background: #f4f0fe; font-weight: 750; }
.perf-legend i { width: 10px; height: 10px; border-radius: 50%; }
.perf-legend .perf-key-client { background: #6d4ee6; }
.perf-legend .perf-key-category { height: 2px; border-radius: 0; background: #8390a1; }
.perf-legend b { font-variant-numeric: tabular-nums; }
.perf-legend small { color: var(--muted); font-size: 11px; }
.vis-merges { margin-top: 10px; font-size: 12.5px; }
.vis-merges summary { cursor: pointer; color: var(--muted); font-weight: 650; }
@media (max-width: 760px) { .perf-wrap { grid-template-columns: 1fr; } }

/* Executive summary (screen and print) and the e-book print layout: cover, contents, chapter openers, page footer. */
.print-only { display: none; }
.exec-summary { padding: 26px 28px; border-top: 4px solid #176e57; }
.exec-kicker { margin: 0; color: #176e57; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.exec-title { margin: 4px 0 12px; color: #16243a; font-size: 26px; letter-spacing: -.02em; }
.exec-verdict p { margin: 0 0 8px; color: #23364d; font-size: 16px; line-height: 1.55; }
.exec-verdict p:first-child { font-size: 18px; font-weight: 650; color: #16243a; }
.exec-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0; }
.exec-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid #e0e7ee; border-radius: 12px; background: #f7f9fb; }
.exec-tile span { color: #617387; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.exec-tile strong { color: #16243a; font-size: 26px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.exec-tile small { color: #687b90; font-size: 11.5px; line-height: 1.4; }
.exec-tile.tone-good { border-color: #b9dccd; background: #f1f9f5; }
.exec-tile.tone-good strong { color: #0d5c3f; }
.exec-tile.tone-gap { border-color: #f1cfcd; background: #fdf5f4; }
.exec-tile.tone-gap strong { color: #9b2f2c; }
.exec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.exec-col { padding: 14px 16px; border-radius: 12px; }
.exec-col h3, .exec-moves h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .02em; }
.exec-col ul, .exec-moves ol { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.5; }
.exec-col li + li, .exec-moves li + li { margin-top: 5px; }
.exec-good { background: #f1f9f5; }
.exec-good h3 { color: #0d5c3f; }
.exec-gap { background: #fdf5f4; }
.exec-gap h3 { color: #9b2f2c; }
.exec-moves { margin-top: 14px; padding: 14px 16px; border: 1px solid #16243a; border-radius: 12px; }
.exec-moves h3 { color: #16243a; }
.exec-moves li { font-weight: 600; color: #16243a; }
.exec-measure { margin: 14px 0 0; color: #536378; font-size: 12.5px; line-height: 1.5; }
.plan-band { margin: 18px 0 6px; font-size: 14px; color: #16243a; }
.plan-band-1 { color: #9b2f2c; }
.plan-table td:nth-child(3) { white-space: nowrap; font-weight: 650; }
.dash-section-4 { margin-top: 34px; }
@media (max-width: 720px) { .exec-cols { grid-template-columns: 1fr; } .exec-summary { padding: 20px 16px; } }

@page { size: letter; margin: 16mm 14mm 18mm;
    @top-left { content: ""; } @top-center { content: ""; } @top-right { content: ""; } @bottom-center { content: ""; }
    @bottom-left { content: "AI Visibility Audit · Redfern Media"; color: #7a8796; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 8pt; }
    @bottom-right { content: counter(page); color: #7a8796; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 8pt; } }
@page :first { @bottom-left { content: none; } @bottom-right { content: none; } }
@media print {
    .print-only { display: block; }
    span.print-only, small.print-only { display: block; }
    .vis-print-cover { display: none !important; }
    .ebook-cover { display: flex; flex-direction: column; justify-content: center; min-height: 235mm; padding: 0 6mm; break-after: page; border-left: 10px solid #176e57; }
    .ebook-kicker { margin: 0 0 14px; color: #176e57; font-size: 13pt; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
    .ebook-cover h1 { margin: 0; color: #16243a; font-size: 40pt; line-height: 1.05; letter-spacing: -.02em; }
    .ebook-domain { margin: 8px 0 26px; color: #536378; font-size: 14pt; }
    .ebook-lede { max-width: 140mm; margin: 0 0 30px; color: #23364d; font-size: 13pt; line-height: 1.5; }
    .ebook-cover-stat { display: flex; align-items: baseline; gap: 14px; margin: 0 0 40px; padding: 18px 20px; border-radius: 12px; background: #16243a; color: #fff; }
    .ebook-cover-stat strong { font-size: 34pt; line-height: 1; }
    .ebook-cover-stat span { color: #cfe3dc; font-size: 12pt; }
    .ebook-meta { margin: 0; color: #536378; font-size: 11pt; line-height: 1.6; }
    .ebook-contents { break-after: page; padding-top: 20mm; }
    .ebook-contents h2 { margin: 0 0 18px; color: #16243a; font-size: 26pt; }
    .ebook-contents ol { margin: 0; padding: 0; list-style: none; }
    .ebook-contents li { display: grid; gap: 3px; padding: 14px 0; border-bottom: 1px solid #dfe5ec; }
    .ebook-contents b { color: #16243a; font-size: 14pt; }
    .ebook-contents em { display: inline-block; width: 26px; color: #176e57; font-style: normal; }
    .ebook-contents span { padding-left: 26px; color: #536378; font-size: 10.5pt; }
    .exec-summary { break-after: page; break-inside: avoid; padding: 0; border: 0; box-shadow: none; }
    .exec-title { font-size: 22pt; }
    .exec-verdict p { font-size: 11.5pt; }
    .exec-verdict p:first-child { font-size: 13pt; }
    .exec-tiles { grid-template-columns: repeat(auto-fit, minmax(28mm, 1fr)); gap: 6px; }
    .exec-tile { padding: 10px; }
    .exec-tile strong { font-size: 17pt; }
    .exec-col ul, .exec-moves ol { font-size: 10pt; }
    .dash-section { break-before: page; margin: 0 0 14px; padding-top: 0; border-top: 0; font-size: 22pt; }
    .dash-section small { font-size: 11pt; }
    .ebook-chapter { margin-bottom: 4px; color: #176e57; font-size: 10pt; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
    .dash-grid { grid-template-columns: 1fr; }
    .dash-cats li { grid-template-columns: minmax(0, 62%) 1fr 44px; }
    .dash-cats li > span { white-space: normal; overflow: visible; }
    .dash-cats li > span small { margin-top: 2px; color: #687b90; font-size: 8pt; font-weight: 400; }
    .dash-brand .dash-kpis strong { white-space: normal; }
    .plan-table { font-size: 9.5pt; }
    .plan-table tr, .vis-table tr { break-inside: avoid; }
    .vis-card:has(.vis-table), .vis-card:has(.vis-domains), .vis-card:has(.vis-pages), .vis-card:has(.dash-cats) { break-inside: auto; }
    .dash-section { break-after: avoid; }
}

/* Full answer editor: reads like a document so pasted AI answers keep visible links, lists and tables. */
.vis-shell textarea[data-rich-answer][hidden] { display: none; }
.vis-rich { min-height: 180px; max-height: 480px; overflow: auto; resize: vertical; margin: -8px 0 14px; padding: 12px 14px; border: 1px solid #d4dce5; border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.55; overflow-wrap: break-word; }
.vis-rich:focus { border-color: #65bd9c; outline: 0; box-shadow: 0 0 0 3px rgba(101, 189, 156, .2); }
.vis-rich.is-empty-error { border-color: #d9534f; }
.vis-rich:empty::before { content: attr(data-placeholder); color: #a3aebb; pointer-events: none; }
.vis-rich p, .vis-rich ul, .vis-rich ol, .vis-rich table { margin: 0 0 8px; }
.vis-rich ul, .vis-rich ol { padding-left: 22px; }
.vis-rich h3, .vis-rich h4, .vis-rich h5, .vis-rich h6 { margin: 12px 0 6px; font-size: 15px; }
.vis-rich a { color: #1a5fd0; text-decoration: underline; cursor: text; }
.vis-rich table { border-collapse: collapse; width: 100%; font-size: 13px; }
.vis-rich th, .vis-rich td { padding: 6px 8px; border: 1px solid #d4dce5; text-align: left; vertical-align: top; }
.vis-rich th { background: #f4f7fa; }
