/* /fyi: a sparse landing page. The catalog is a sheet of perfect squares drawn with hairlines, not cards. */
.fyi-wrap { max-width: 1120px; margin: 0 auto; padding: 72px 24px 96px; }
.fyi-head h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; margin: 0 0 10px; max-width: 18em; text-wrap: balance; }
.fyi-head p { font-size: 17px; margin: 0; }
.fyi-search { margin: 40px 0 16px; max-width: 520px; }
.fyi-search input { font-size: 16px; padding: 12px 14px; border-radius: 8px; }
.fyi-search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.fyi-request { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 8px; max-width: 520px; box-sizing: border-box; }
.fyi-request p { margin: 0; flex: 1 1 220px; }
.fyi-request #request-host { font-weight: 600; }
.fyi-empty { margin: 0 0 20px; }

/* Landing page: a hero with room to breathe, a row of industry filters, then the sheet edge to edge. */
.fyi-page { --gutter: clamp(16px, 5vw, 72px); overflow-x: clip; }
.fyi-hero { padding: clamp(64px, 10vh, 128px) var(--gutter) clamp(28px, 4.5vh, 56px); max-width: 1180px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.fyi-hero .fyi-head h1 { font-size: clamp(32px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -.035em; max-width: 15em; margin-bottom: 18px; }
.fyi-hero .fyi-head p { font-size: clamp(17px, 1.6vw, 21px); }
.fyi-hero .fyi-search { margin: clamp(32px, 6vh, 56px) 0 0; max-width: 560px; display: flex; gap: 10px; }
.fyi-hero .fyi-search input { flex: 1; min-width: 0; }

.fyi-hero .fyi-search input { font-size: 17px; padding: 15px 18px; border-radius: 10px; }
/* Desktops get a bigger search box. */
@media (min-width: 900px) { .fyi-hero .fyi-search { max-width: 780px; } .fyi-hero .fyi-search input { font-size: 19px; padding: 20px 24px; border-radius: 12px; } }
.fyi-hero .fyi-request, .fyi-hero .fyi-empty { margin: 16px 0 0; }


/* Lines come from the cells: each draws its right and bottom edge, the sheet draws its top. It runs the full
   width of the page; the last column's right edge sits on the edge of the screen. */
.fyi-grid { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fyi-page .fyi-scroll { margin-right: -1px; }
.fyi-cell { aspect-ratio: 1 / 1; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; display: grid; place-items: center; padding: 16px; box-sizing: border-box; min-width: 0; color: var(--ink); transition: background .12s; }
a.fyi-cell { overflow: hidden; outline: none; }
/* Hover: a circle of ink grows from the pointer and shrinks to where it leaves (fyi.js), as on a company page's
   numbers. On it the mark is knocked out in the page colour, so every logo reads at full contrast. */
.fyi-fill { position: absolute; inset: 0; z-index: 0; background: var(--ink); clip-path: circle(0 at var(--x, 50%) var(--y, 50%)); transition: clip-path .5s cubic-bezier(.3, .55, .3, 1); pointer-events: none; }
a.fyi-cell.on .fyi-fill { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
a.fyi-cell.snap .fyi-fill { transition: none; }
.fyi-mark, .fyi-meta { z-index: 1; }
a.fyi-cell:focus-visible::after { content: ''; position: absolute; inset: 0; z-index: 2; box-shadow: inset 0 0 0 2px var(--accent); pointer-events: none; }
.fyi-meta { position: absolute; left: 8px; right: 8px; bottom: 12px; text-align: center; font: 11.5px/1.3 var(--mono); color: var(--muted); opacity: 0; transform: translateY(3px); transition: opacity .15s, transform .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.fyi-cell.on .fyi-meta { opacity: 1; transform: none; color: color-mix(in srgb, var(--bg) 78%, var(--ink)); }
.fyi-cell.skel::after { content: ''; width: 50%; height: 12px; border-radius: 3px; background: var(--chip); }

/* Logos: grayscale at rest, the brand's own colours on hover. Every logo fits the same box, so wordmarks and
   icons sit at a similar weight. A mark that would vanish against the page is flipped (lightness only: invert
   with a half-turn of hue keeps the brand's colours on hover). */
.fyi-logo { width: 54%; height: 30%; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s, transform .2s; }
.fyi-logo[data-tone="tile"] { width: 34%; height: 34%; border-radius: 22%; }
.fyi-logo[data-wide] { width: 72%; }
/* Detailed badges get a larger box; on a dark page they sit on a light plate so their black parts still show. */
.fyi-logo[data-tone="mixed"] { width: 46%; height: 46%; }
:root[data-theme="dark"] .fyi-logo[data-tone="mixed"] { background: #f1f0eb; padding: 6%; border-radius: 12px; box-sizing: border-box; }
:root[data-theme="light"] .fyi-logo[data-tone="light"] { filter: grayscale(1) invert(1); }
/* Pale marks (yellow, pastel) wash out in gray on a light page; dim ones sink on a dark page. */
:root[data-theme="light"] .fyi-logo[data-tone="pale"] { filter: grayscale(1) brightness(.55) contrast(1.3); }
:root[data-theme="dark"] .fyi-logo[data-tone="dim"] { filter: grayscale(1) brightness(1.7); }
:root[data-theme="dark"] .fyi-logo[data-tone="dark"] { filter: grayscale(1) invert(1); }
/* On the ink circle flat marks turn solid in the page colour: white on the dark circle by day, black on the light one
   by night. App icons and badges (a mark drawn inside a filled shape) keep their own colours, and where that would
   sink into the circle fyi.js (onCircle) marks them to be flipped in lightness, set on a plate of the page colour,
   or both; detailed two-tone badges sit on a light plate. */
.fyi-grid a.fyi-cell.on .fyi-logo { opacity: 1; transform: scale(1.04); }
:root[data-theme="light"] .fyi-grid a.fyi-cell.on .fyi-logo { filter: brightness(0) invert(1); }
:root[data-theme="dark"] .fyi-grid a.fyi-cell.on .fyi-logo { filter: brightness(0); }
:root .fyi-grid a.fyi-cell.on .fyi-logo:is([data-tone="tile"], [data-badge]) { filter: none; }
/* A tile the circle's own shade would lose its edge: a faint ring in the page colour keeps its shape. */
.fyi-grid a.fyi-cell.on .fyi-logo[data-tone="tile"] { box-shadow: 0 0 0 1px color-mix(in srgb, var(--bg) 35%, transparent); }
:root[data-theme="light"] .fyi-grid a.fyi-cell.on .fyi-logo[data-on-day~="flip"],
:root[data-theme="dark"] .fyi-grid a.fyi-cell.on .fyi-logo[data-on-night~="flip"] { filter: invert(1) hue-rotate(180deg); }
:root[data-theme="light"] .fyi-grid a.fyi-cell.on .fyi-logo[data-on-day~="plate"],
:root[data-theme="dark"] .fyi-grid a.fyi-cell.on .fyi-logo[data-on-night~="plate"] { width: 38%; height: 38%; background: var(--bg); padding: 7%; border-radius: 22%; box-sizing: border-box; box-shadow: none; }
:root[data-theme="light"] .fyi-grid a.fyi-cell.on .fyi-logo[data-on-day="boost"] { filter: invert(1) brightness(2); }
:root[data-theme="dark"] .fyi-grid a.fyi-cell.on .fyi-logo[data-on-night="boost"] { filter: invert(1) brightness(2) invert(1); }
/* The flip recolours the plate too: start it in ink so it comes out in the page colour. */
:root[data-theme="light"] .fyi-grid a.fyi-cell.on .fyi-logo[data-on-day~="plate"][data-on-day~="flip"],
:root[data-theme="dark"] .fyi-grid a.fyi-cell.on .fyi-logo[data-on-night~="plate"][data-on-night~="flip"] { background: var(--ink); }
:root .fyi-grid a.fyi-cell.on .fyi-logo[data-tone="mixed"] { filter: none; background: #f1f0eb; padding: 6%; border-radius: 12px; box-sizing: border-box; }
/* A brand with no logo found is set in type. */
.fyi-word { max-width: 84%; font: 600 clamp(14px, 1.5vw, 19px)/1.15 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -.02em; color: var(--muted); text-align: center; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; transition: color .2s; }
a.fyi-cell.on .fyi-word { color: var(--bg); }
@media (hover: none) { .fyi-meta { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fyi-fill { transition: none; } }

/* The sheet scrolls with the page. Squares fade in as they scroll into view. */
.fyi-grid > .fyi-cell { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s ease-out, background .12s; }
.fyi-grid > .fyi-cell.in { opacity: 1; transform: none; }
/* Glide: as a square comes in, its logo trails it. The square travels a short way quickly; the logo travels
   further, starts a beat later and eases in slowly, so it looks pulled along behind its row. Transforms only. */
.fyi-mark { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .95s cubic-bezier(.16, .84, .3, 1) .08s; will-change: transform; }
.fyi-grid > .fyi-cell:not(.in) .fyi-mark { transform: translateY(calc(var(--cell, 180px) * .22)); }
.fyi-grid > .fyi-cell.in .fyi-mark { will-change: auto; }
@media (prefers-reduced-motion: reduce) { .fyi-grid > .fyi-cell { transform: none; transition: opacity .2s; } .fyi-mark { transition: none; } .fyi-grid > .fyi-cell:not(.in) .fyi-mark { transform: none; } }

.rp-pending { max-width: 560px; }
.rp-pending img { display: block; height: 56px; max-width: 220px; object-fit: contain; object-position: left; margin-bottom: 28px; }
.rp-pending .fyi-word { display: block; text-align: left; margin-bottom: 28px; font-size: 28px; color: var(--ink); }
.rp-pending h1 { font-size: clamp(24px, 3.5vw, 34px); letter-spacing: -.02em; margin: 0 0 10px; }
.rp-pending p { font-size: 16px; line-height: 1.55; margin: 0 0 24px; }

.fyi-dialog { border: 1px solid var(--line-strong); border-radius: 12px; padding: 0; width: min(460px, calc(100vw - 32px)); background: var(--panel); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.fyi-dialog::backdrop { background: rgba(0,0,0,.35); }
.fyi-dialog form { padding: 22px 24px 24px; }
.fyi-dlg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fyi-dlg-head h2 { margin: 0; font-size: 19px; }
.fyi-x { border: 0; background: none; font-size: 22px; line-height: 1; padding: 2px 6px; color: var(--muted); }
.fyi-dialog label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.fyi-dialog label input { margin-top: 4px; color: var(--ink); box-sizing: border-box; font-size: 15px; }
.fyi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fyi-err { color: var(--bad); margin: 0 0 12px; font-size: 13px; }
.fyi-ts { margin: 0 0 12px; min-height: 65px; }
.fyi-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.fyi-actions button { padding: 8px 14px; }
.fyi-done p { margin: 0 0 16px; font-size: 15px; }
@media (max-width: 480px) { .fyi-wrap { padding: 40px 16px 64px; } .fyi-row { grid-template-columns: 1fr; gap: 0; } .fyi-name { font-size: 14px; } }

/* ---------- Report (/fyi/<host>) ---------- */
.rp { padding-top: 32px; }
.rp-back { display: inline-block; color: var(--muted); font-size: 13px; margin-bottom: 36px; }
.rp-back:hover { color: var(--ink); }
.rp-head p { max-width: 40em; font-size: 16px; line-height: 1.55; margin-top: 4px; }
.rp-missing { font-size: 24px; margin: 0 0 16px; }

/* Headline numbers share the landing page's hairline sheet. */
.rp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: 36px 0 20px; }
.rp-stat { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 18px 16px; }
.rp-stat-k { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.rp-stat-v { font-size: 28px; font-weight: 600; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.rp-stat-u { font-size: 12.5px; }
.rp-was { color: var(--muted); font-weight: 500; }
.rp-arrow { color: var(--muted); margin: 0 .3em; font-weight: 400; }
.rp-now { color: var(--good); }
.rp-same { color: var(--ink); }
@media (max-width: 760px) { .rp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rp-nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; margin-bottom: 8px; }
.rp-nav a { color: var(--muted); }
.rp-nav a:hover { color: var(--ink); }

.rp-sec { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 36px; scroll-margin-top: 16px; }
.rp-sec h2 { font-size: 24px; letter-spacing: -.01em; margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.rp-sec h3 { font-size: 15px; margin: 28px 0 10px; }
.rp-two > div > h3:first-child { margin-top: 0; }
.rp-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 14px; font-weight: 600; flex: none; }
.rp-lede { max-width: 44em; font-size: 15px; margin: 0 0 16px; }
.rp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.rp-two p { margin: 0 0 10px; line-height: 1.55; }
@media (max-width: 820px) { .rp-two { grid-template-columns: 1fr; gap: 24px; } }

/* One-click buttons that open a question in an AI assistant. */
.rp-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; }
.rp-ask .muted { margin-right: 2px; }
.rp-ask-btn { padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); text-decoration: none; background: var(--panel); transition: border-color .12s; }
.rp-ask-btn:hover, .rp-ask-btn:focus-visible { border-color: var(--accent); }

.rp-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rp-table th, .rp-table td { padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rp-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; position: static; background: none; box-shadow: none; border-bottom: 1px solid var(--line-strong); }
.rp-table tbody th { font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); width: 55%; }
.rp-table td { width: 1%; white-space: nowrap; }
.rp-def { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; line-height: 1.45; }
.rp-scores tbody th { width: 46%; }
.rp-bar-cell { width: 30% !important; white-space: normal !important; }
.rp-bars { display: grid; gap: 3px; margin-top: 4px; }
.rp-bar { position: relative; height: 6px; border-radius: 3px; background: var(--chip); overflow: hidden; }
.rp-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.rp-bar-a { background: var(--good); }
.rp-bar-b { background: var(--muted); opacity: .6; }
.rp-legend { display: inline-flex; gap: 6px; align-items: center; text-transform: none; letter-spacing: 0; font-weight: 400; }
.rp-legend i { display: inline-block; width: 12px; height: 6px; border-radius: 3px; margin-left: 6px; }
.rp-legend i.b { background: var(--muted); opacity: .6; } .rp-legend i.a { background: var(--good); }
@media (max-width: 600px) { .rp-bar-cell { display: none; } .rp-table tbody th { width: auto; } }

.rp-index { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; margin-bottom: 8px; }
.rp-index p { margin: 0; max-width: 34em; }
.rp-big { font-size: 44px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 4px; }
.rp-of { font-size: 18px; margin-left: 6px; font-weight: 400; }
@media (max-width: 600px) { .rp-index { grid-template-columns: 1fr; gap: 8px; } }

.rp-gloss { display: grid; grid-template-columns: 180px 1fr; gap: 8px 20px; margin: 0; font-size: 13.5px; }
.rp-gloss dt { font-weight: 600; }
.rp-gloss dd { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .rp-gloss { grid-template-columns: 1fr; gap: 2px; } .rp-gloss dd { margin-bottom: 10px; } }

.rp-cta { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rp-cta h2 { margin: 0; font-size: 22px; }
.rp-cta button { padding: 10px 18px; font-size: 15px; }
.rp-foot { font-size: 12.5px; margin-top: 8px; }

/* Traces: plain monospace rows on a dark sheet, one per request, revealed in step on both sides. */
.tr-controls { display: flex; gap: 8px; max-width: 720px; }
.tr-controls select { flex: 1; min-width: 0; font-size: 14px; }
.tr-controls button { flex: none; padding: 8px 18px; }
@media (max-width: 560px) { .tr-controls { flex-wrap: wrap; } .tr-controls select { flex-basis: 100%; } }
.tr-for { margin: 12px 0 14px; font-size: 13.5px; }
.tr-for strong { color: var(--ink); }
/* Part 2's toggle (recorded sessions or a real-time one), and the test-it-yourself buttons to the right of the question. */
.tr-mode { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; }
.tr-mode button { border: 0; background: none; border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--muted); }
/* Recorded and real-time views slide sideways as one track, and the toggle's pill slides with them: same duration,
   same easing. The gap between the views is the page margin, so the view being left goes fully off screen. */
#trace { --tr-dur: .55s; --tr-ease: cubic-bezier(.65, 0, .35, 1); position: relative; }
#trace.is-live { --plate: var(--plate-live); }
#trace > :not(.tr-wash) { position: relative; z-index: 1; }
.tr-wash { position: absolute; top: 0; bottom: 0; left: calc(50% - var(--page-w, 100vw) / 2); width: var(--page-w, 100vw); z-index: 0; background: var(--wash); clip-path: circle(0 at var(--wx) var(--wy)); transition: clip-path var(--tr-dur) var(--tr-ease); pointer-events: none; }
.tr-wash.on { clip-path: circle(150% at var(--wx) var(--wy)); }
.tr-mode { position: relative; }
.au-switches { display: flex; flex-wrap: wrap; gap: 0 12px; }
.tr-mode::before { content: ''; position: absolute; top: 3px; bottom: 3px; left: 0; width: var(--pill-w, 0); transform: translateX(var(--pill-x, 0)); border-radius: 999px; background: var(--ink); }
.tr-mode.ready::before { transition: transform var(--tr-dur) var(--tr-ease), width var(--tr-dur) var(--tr-ease); }
.tr-mode button { position: relative; z-index: 1; transition: color var(--tr-dur) var(--tr-ease); }
.tr-mode button[aria-pressed="true"] { background: none; color: var(--bg); }
.tr-stage { overflow-x: visible; overflow-y: clip; transition: height var(--tr-dur) var(--tr-ease); }
.tr-track { display: flex; align-items: flex-start; gap: calc((var(--page-w, 100vw) - 100%) / 2); transition: transform var(--tr-dur) var(--tr-ease); }
.tr-stage.live .tr-track { transform: translateX(calc(-100% - (var(--page-w, 100vw) - 100%) / 2)); }
.tr-pane { flex: 0 0 100%; min-width: 0; }
.tr-pane.off { height: 0; overflow: hidden; visibility: hidden; }
/* No recorded sessions: one line and a button to ask Yip to record them. */
.tr-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 20px; border: 1px solid var(--line); border-radius: 12px; margin-top: 14px; }
.tr-empty p { margin: 0; }
@media (prefers-reduced-motion: reduce) { .tr-mode.ready::before, .tr-mode button, .tr-stage, .tr-track, .tr-wash { transition: none; } }
.tr-top { margin-bottom: 4px; }
.tr-play { display: inline-flex; align-items: center; gap: 6px; }
.tr-play svg { width: 12px; height: 12px; }
.tr-pick .tr-controls { max-width: none; }
.tr-try { max-width: 720px; }
.tr-try p { margin: 4px 0 0; font-size: 13px; }
.tr-try .rp-ask { margin-top: 10px; }
.tr-try-note:empty { display: none; }
/* Real time: the prompt box, with the .old/.new switch inside it, then the assistant buttons. */
.tr-box { position: relative; max-width: 720px; }
.tr-box textarea { display: block; width: 100%; box-sizing: border-box; min-height: 96px; resize: vertical; margin: 0; padding: 12px 14px 46px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel); color: var(--ink); font: 13px/1.5 var(--mono); }
.tr-box textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.tr-switch { position: absolute; right: 10px; bottom: 10px; display: inline-flex; padding: 2px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); font: 600 11.5px/1 var(--mono); }
.tr-switch::before { content: ''; position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); border-radius: 999px; background: var(--ink); transition: transform var(--tr-dur) var(--tr-ease); }
.tr-switch[aria-checked="true"]::before { transform: translateX(100%); }
.tr-switch > span { position: relative; z-index: 1; padding: 4px 9px; color: var(--muted); transition: color var(--tr-dur) var(--tr-ease); }
.tr-switch[aria-checked="false"] > span:first-child, .tr-switch[aria-checked="true"] > span:last-child { color: var(--bg); }
.tr-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Hovering .old or .new: a two-line tip above it, its label then its address, right-aligned so it stays in the box. */
.tr-tip { position: absolute; right: -4px; bottom: calc(100% + 10px); display: flex; flex-direction: column; gap: 3px; padding: 8px 11px; border-radius: 8px; background: var(--ink); color: var(--bg); font: 500 12px/1.25 var(--mono); white-space: nowrap; text-align: left; box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(3px); transition: opacity .12s, transform .12s; pointer-events: none; z-index: 5; }
.tr-tip b { font: 600 12px/1.25 var(--sans); }
.tr-tip::after { content: ''; position: absolute; top: 100%; right: 16px; border: 5px solid transparent; border-top-color: var(--ink); }
.tr-switch > span:hover .tr-tip { opacity: 1; transform: none; }
/* Assistant buttons: grey at rest; on hover or focus the mark takes the brand's colour and the border follows. */
.tr-try .rp-ask { margin-top: 14px; gap: 8px; }
.tr-try .rp-ask-btn { --brand: var(--ink); display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 14.5px; color: var(--muted); transition: border-color .15s, color .15s; }
.tr-try .rp-ask-btn svg { width: 18px; height: 18px; flex: none; transition: color .15s; }
.tr-try .rp-ask-btn[data-try="Claude"] { --brand: var(--brand-claude); }
.tr-try .rp-ask-btn[data-try="Perplexity"] { --brand: var(--brand-perplexity); }
.tr-try .rp-ask-btn[data-try="Gemini"] { --brand: var(--brand-gemini); }
.tr-try .rp-ask-btn:hover, .tr-try .rp-ask-btn:focus-visible { color: var(--ink); border-color: var(--brand); text-decoration: none; }
.tr-try .rp-ask-btn:hover svg, .tr-try .rp-ask-btn:focus-visible svg { color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .tr-switch::before, .tr-switch > span, .tr-tip { transition: none; } }
.tr-live-cols { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 14px; }
.tr-live-cols > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.tr-live-cols .tr-tab th { width: 120px; }
@media (max-width: 820px) { .tr-live-cols { grid-template-columns: 1fr; } }
.tr-cols { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
/* A panel's header bar: its name on the left, its copy's address as plain text on the right. */
.tr-head { display: flex; align-items: center; gap: 6px; }
.tr-head .muted { white-space: nowrap; }
.tr-url { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font: 500 12px/1.3 var(--mono);; opacity: 0; transition: opacity .15s }
.tr-head:hover .tr-url { opacity: 1; }
/* Live trace: a blinking recording dot before its name. */
.tr-rec-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: tr-blink 1.2s ease-in-out infinite; }
@keyframes tr-blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .tr-rec-dot { animation: none; } }
.tr-cols > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.tr-head { padding: 10px 14px; font-weight: 600; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.tr-log { background: #0f0f0e; color: #d9d8d2; font: 12px/1.55 var(--mono); padding: 12px 14px; min-height: 380px; }
.tr-row { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 4px 0; animation: tr-in .25s ease-out; }
.tr-k { color: #8d8c86; }
.tr-t { overflow-wrap: anywhere; }
.tr-s { display: block; color: #8d8c86; }
.tr-row.good .tr-k { color: #6fcf8e; }
.tr-row.bad .tr-k { color: #ff8a80; }
.tr-row.warn .tr-k { color: #e5b45c; }
@keyframes tr-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tr-row { animation: none; } }
.tr-sum { padding: 14px; font-size: 13.5px; }
.tr-cell:empty { display: none; }
.tr-sum p { margin: 6px 0 8px; line-height: 1.5; }
.tr-sum-k { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; color: var(--muted); }
/* What we learned: a label column and a value column, ruled like the grid round it. */
.tr-tab { width: 100%; border-collapse: collapse; margin: 10px 0; }
.tr-tab th, .tr-tab td { padding: 6px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.tr-tab th { width: 90px; font-size: inherit; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.tr-tab td { overflow-wrap: anywhere; }
.tr-check { font-size: 12.5px; font-weight: 600; }
.tr-check.ok { color: var(--good); }
.tr-check.no { color: var(--bad); }
/* The two handoffs under the trace: one more row of the trace's grid, a cell under each site. */
.rp-handoff { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--line); font-size: 14px; }
.rp-handoff > p { margin: 0; padding: 14px; line-height: 1.55; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
@media (max-width: 820px) {
  .tr-cols, .rp-handoff { grid-template-columns: 1fr; } .tr-log { min-height: 0; }
  .tr-head.tr-o { order: 1; } .tr-log.tr-o { order: 2; } .tr-cell.tr-o { order: 3; }
  .tr-head.tr-y { order: 4; } .tr-log.tr-y { order: 5; } .tr-cell.tr-y { order: 6; }
}

/* Claim this page: shown on a brand's page while its report is being built. */
.rp-claim { max-width: 560px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 32px; }
.rp-claim h2 { font-size: 20px; letter-spacing: -.01em; margin: 0 0 6px; }
.rp-claim > p { margin: 0 0 18px; line-height: 1.5; }
.rp-claim label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.rp-claim label input, .rp-claim label textarea { margin-top: 4px; color: var(--ink); box-sizing: border-box; font-size: 15px; }
.rp-claim textarea { width: 100%; resize: vertical; font: inherit; font-size: 15px; }
.rp-claim-note { font-size: 13px; color: var(--muted); margin: -4px 0 12px; min-height: 1em; }
.rp-claim-note:empty { display: none; }
.rp-claim-note.ok { color: var(--good); }
.rp-claim button[type="submit"] { padding: 9px 16px; }
.rp-claim-done { border: 1px solid var(--line-strong); border-radius: 8px; padding: 14px 16px; line-height: 1.5; background: var(--panel); }

/* Requesting agent sessions: a line and a button under the empty recorded view, and a dialog that asks for a Yip
   login first and offers the claim form otherwise. */
.tr-ask-box { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.tr-ask-box p { margin: 0; flex: 1 1 280px; line-height: 1.5; }
.tr-ask-box button { padding: 9px 16px; }
.ss-dialog { width: min(520px, calc(100vw - 32px)); }
.ss-body { padding: 22px 24px 24px; }
.ss-opt { padding: 14px 0; }
.ss-opt + .ss-opt { border-top: 1px solid var(--line); }
.ss-opt h3 { margin: 0 0 4px; font-size: 15px; }
.ss-opt p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; }
.ss-opt button { padding: 8px 14px; }
.ss-btn { display: inline-block; text-decoration: none; border-radius: 6px; padding: 8px 14px; border: 1px solid var(--line-strong); }
.ss-btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.ss-note:empty { display: none; }
.ss-note { margin: 10px 0 0 !important; }
.ss-back { border: 0; background: none; padding: 0; color: var(--muted); font-size: 13px; }
.ss-dialog .rp-claim { border-top: 0; margin-top: 8px; padding-top: 0; max-width: none; }
.ss-dialog .rp-claim form { padding: 0; }
.rp-pending > button { margin-top: 0; }

/* Fixed banner: hidden above the page until the hero's search scrolls away, then slides down. Logo and title on
   the left, search and filter on the right. */
.fyi-bar { --gutter: clamp(16px, 5vw, 72px); position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 var(--gutter); box-sizing: border-box;
  background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line);
  transform: translateY(-101%); transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s; }
.fyi-bar.on { transform: none; box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }
.fyi-bar-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; width: min(560px, 100%); min-width: 0; }

.fyi-bar-tools input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.fyi-bar-tools > button { flex: none; padding: 8px 12px; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { .fyi-bar { transition: none; } }

/* Day/night switch, fixed top right above the banner. A moon by day, a sun by night. */
.fyi-theme { position: fixed; top: 12px; right: clamp(12px, 3vw, 28px); z-index: 50; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; isolation: isolate; }
.fyi-theme svg { position: relative; z-index: 1; width: 21px; height: 21px; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.fyi-moon { fill: currentColor; }
.fyi-sun { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.fyi-sun circle { fill: currentColor; stroke: none; }
:root[data-theme="light"] .fyi-sun, :root[data-theme="dark"] .fyi-moon { display: none; }
.fyi-theme:hover svg, .fyi-theme:focus-visible svg { transform: rotate(-18deg) scale(1.08); }
.fyi-theme:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fyi-bar { padding-right: calc(clamp(12px, 3vw, 28px) + 52px); }

/* Watercolor wash: three soft pigment blobs that keep changing shape and drift, run through the #watercolor SVG
   filter for a ragged, bleeding edge. On hover the wash blooms out from the icon and keeps growing a little. */
.fyi-wash { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; z-index: 0; pointer-events: none; filter: url(#watercolor); opacity: 0; transform: scale(.15) rotate(-20deg); transition: transform 1.1s cubic-bezier(.16, .84, .3, 1), opacity .45s ease-out; }
.fyi-wash i { position: absolute; inset: 14%; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; mix-blend-mode: multiply; animation: fyi-morph 7s ease-in-out infinite alternate; animation-play-state: paused; }
.fyi-wash i:nth-child(1) { background: radial-gradient(circle at 40% 40%, rgba(108, 124, 240, .55), rgba(108, 124, 240, .08) 70%, transparent 72%); }
.fyi-wash i:nth-child(2) { inset: 22% 8% 10% 24%; background: radial-gradient(circle at 55% 50%, rgba(176, 124, 240, .5), rgba(176, 124, 240, .06) 68%, transparent 70%); animation-duration: 9s; animation-delay: -3s; }
.fyi-wash i:nth-child(3) { inset: 8% 26% 26% 10%; background: radial-gradient(circle at 50% 55%, rgba(92, 198, 214, .45), rgba(92, 198, 214, .05) 66%, transparent 68%); animation-duration: 11s; animation-delay: -6s; }
:root[data-theme="dark"] .fyi-wash i { mix-blend-mode: screen; }
:root[data-theme="dark"] .fyi-wash i:nth-child(1) { background: radial-gradient(circle at 40% 40%, rgba(255, 179, 71, .55), rgba(255, 179, 71, .08) 70%, transparent 72%); }
:root[data-theme="dark"] .fyi-wash i:nth-child(2) { background: radial-gradient(circle at 55% 50%, rgba(255, 122, 89, .5), rgba(255, 122, 89, .06) 68%, transparent 70%); }
:root[data-theme="dark"] .fyi-wash i:nth-child(3) { background: radial-gradient(circle at 50% 55%, rgba(255, 215, 106, .45), rgba(255, 215, 106, .05) 66%, transparent 68%); }
.fyi-theme:hover .fyi-wash, .fyi-theme:focus-visible .fyi-wash { opacity: 1; transform: scale(1.12) rotate(0deg); }
.fyi-theme:hover .fyi-wash i, .fyi-theme:focus-visible .fyi-wash i { animation-play-state: running; }
@keyframes fyi-morph {
  0%   { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: translate(0, 0) rotate(0deg) scale(1); }
  33%  { border-radius: 63% 37% 45% 55% / 55% 62% 38% 45%; transform: translate(6%, -4%) rotate(40deg) scale(1.08); }
  66%  { border-radius: 38% 62% 56% 44% / 62% 38% 62% 38%; transform: translate(-5%, 5%) rotate(85deg) scale(.96); }
  100% { border-radius: 55% 45% 35% 65% / 45% 58% 42% 55%; transform: translate(3%, 3%) rotate(130deg) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) { .fyi-wash { transition: opacity .3s; transform: scale(1); } .fyi-wash i { animation: none; } .fyi-theme svg { transition: none; } }

/* Theme change: the new look grows out of the click (animated in fyi.js); the old one stays put underneath. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }
::view-transition-old(root) { z-index: 1; }

/* Yip brand, fixed top left above the banner, so it stays put whether or not the banner is showing. */
.fyi-brand { position: fixed; top: 12px; left: clamp(16px, 5vw, 72px); z-index: 50; height: 40px; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.fyi-brand:hover { text-decoration: none; }
.fyi-brand img { height: 34px; width: auto; display: block; }
.fyi-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.fyi-brand-text strong { font: 900 18px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; letter-spacing: .02em; }
.fyi-brand-text em { font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.fyi-hero { padding-top: clamp(88px, 11vh, 136px); } /* clears the fixed brand */
/* The banner leaves room on the left for the brand. */
.fyi-bar { padding-left: calc(clamp(16px, 5vw, 72px) + 240px); }
.fyi-bar-tools { width: auto; justify-content: flex-end; }

/* Banner search: a magnifier that opens into a field. */
.fyi-bar-search { position: relative; display: flex; align-items: center; justify-content: flex-end; }
.fyi-bar-search input { width: 0; padding: 8px 0; border-color: transparent; background: transparent; opacity: 0; font-size: 14.5px; border-radius: 8px; transition: width .3s cubic-bezier(.2, .8, .2, 1), padding .3s, opacity .2s, border-color .2s, background .2s; }
.fyi-bar-tools.searching .fyi-bar-search input { width: min(340px, 42vw); padding: 8px 40px 8px 12px; opacity: 1; border-color: var(--line-strong); background: var(--panel); }
.fyi-search-btn { position: absolute; right: 2px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.fyi-bar-tools:not(.searching) .fyi-search-btn { position: static; }
.fyi-search-btn:hover { background: var(--chip); }
.fyi-search-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 720px) { .fyi-bar { padding-left: calc(clamp(16px, 5vw, 72px) + 100px); } .fyi-brand-text em { display: none; } }
@media (max-width: 560px) { .fyi-bar-tools > button { display: none; } .fyi-bar-tools.searching .fyi-bar-search input { width: calc(100vw - 210px); } }

/* Industry filter: plain text with a caret, right-aligned just above the grid. The row is sticky at the banner's
   height, so after enough scrolling the filter stops in the banner, lined up beside the day/night switch. */
.fyi-filter-row { position: sticky; top: 12px; z-index: 50; height: 40px; margin-bottom: 12px; display: flex; justify-content: flex-end; padding-right: calc(clamp(12px, 3vw, 28px) + 48px); pointer-events: none; }
.fyi-filter { height: 40px; margin: 0; display: flex; align-items: center; font-weight: 500; pointer-events: auto; }
.fyi-filter select { width: auto; field-sizing: content; margin: 0; border: 0; border-radius: 6px; padding: 6px 22px 6px 6px; font-family: inherit; font-size: 14px; font-weight: 500; line-height: 20px; height: 32px; color: var(--ink); cursor: pointer; appearance: none; -webkit-appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2710%27 height=%277%27 viewBox=%270 0 10 7%27%3E%3Cpath d=%27M1 1.2l4 4 4-4%27 fill=%27none%27 stroke=%27%23888%27 stroke-width=%271.5%27/%3E%3C/svg%3E") no-repeat right 6px center; transition: color .15s; }
.fyi-filter select:hover { color: var(--accent); }
.fyi-filter select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fyi-filter option { color: initial; }
/* The banner's own tools (the search) end before the 3D switch, the filter and the day/night switch, with room to breathe. */
.fyi-bar { padding-right: calc(clamp(12px, 3vw, 28px) + 48px + 200px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 560px) { .fyi-filter select { max-width: 34vw; text-overflow: ellipsis; } .fyi-bar { padding-right: calc(12px + 48px + 34vw + 8px); } .fyi-bar-tools.searching .fyi-bar-search input { width: calc(100vw - 100px - 34vw - 80px); } }

/* The banner strip is always there, solid in the page's own color, so the fixed logo, filter and switch never sit
   on top of the hero text as it scrolls under them. Its line, shadow and search appear once you scroll past the
   hero's search box. */
.fyi-bar { transform: none; background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; box-shadow: none; transition: border-color .25s, box-shadow .25s; }
.fyi-bar.on { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }
.fyi-bar .fyi-bar-tools { opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; }
.fyi-bar.on .fyi-bar-tools { opacity: 1; transform: none; }

/* Pitch for a website we have not built, shown in place of the sheet. Parallax slide-in: each layer starts lower
   the deeper it sits (--d) and takes longer to arrive, so the layers glide in at different speeds and settle
   together. The soft color washes behind it drift against the scroll (--py, set in fyi.js). Transforms and opacity
   only. */
.fyi-pitch { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding: clamp(56px, 10vh, 120px) var(--gutter) clamp(64px, 12vh, 140px); min-height: 62vh; box-sizing: border-box; }
.pitch-inner { position: relative; z-index: 1; max-width: 1120px; }
.pitch-inner > *, .pitch-steps li { opacity: 0; transform: translateY(calc(48px + var(--d, 0) * 22px)); transition: opacity .6s ease-out calc(var(--d, 0) * 70ms), transform calc(.75s + var(--d, 0) * 90ms) cubic-bezier(.16, .84, .3, 1) calc(var(--d, 0) * 70ms); }
.fyi-pitch.in .pitch-inner > *, .fyi-pitch.in .pitch-steps li { opacity: 1; transform: none; }
.pitch-steps { opacity: 1 !important; transform: none !important; }
.pitch-eyebrow { margin: 0 0 14px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pitch-title { margin: 0; font-size: clamp(34px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.04em; font-weight: 650; max-width: 16em; text-wrap: balance; }
.pitch-title span { color: var(--accent); overflow-wrap: anywhere; }
.pitch-sub { margin: 22px 0 0; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); max-width: 46em; }
.pitch-steps { list-style: none; margin: clamp(40px, 7vh, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pitch-steps li { padding: 26px 24px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.pitch-steps strong { display: block; font-size: 20px; letter-spacing: -.01em; margin: 14px 0 8px; }
.pitch-steps p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 15px; }
.pitch-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; }
.pitch-cta { margin-top: clamp(32px, 6vh, 56px); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pitch-cta button { font-size: 16px; padding: 13px 22px; border-radius: 10px; }
.pitch-bg { position: absolute; inset: -20% -10%; z-index: 0; pointer-events: none; filter: url(#watercolor) blur(18px); opacity: 0; transition: opacity 1.2s ease-out; }
.fyi-pitch.in .pitch-bg { opacity: .9; }
.pitch-bg i { position: absolute; border-radius: 50%; transform: translateY(calc(var(--py, 0) * var(--k) * 1px)); transition: transform .2s linear; }
.pitch-bg i:nth-child(1) { --k: 140; width: 46%; height: 60%; right: 2%; top: 4%; background: radial-gradient(circle, rgba(108, 124, 240, .28), transparent 68%); }
.pitch-bg i:nth-child(2) { --k: -90; width: 38%; height: 52%; right: 24%; top: 34%; background: radial-gradient(circle, rgba(176, 124, 240, .22), transparent 68%); }
.pitch-bg i:nth-child(3) { --k: 200; width: 30%; height: 44%; left: 4%; bottom: 0; background: radial-gradient(circle, rgba(92, 198, 214, .2), transparent 68%); }
:root[data-theme="dark"] .pitch-bg i:nth-child(1) { background: radial-gradient(circle, rgba(124, 156, 245, .22), transparent 68%); }
:root[data-theme="dark"] .pitch-bg i:nth-child(2) { background: radial-gradient(circle, rgba(255, 140, 100, .14), transparent 68%); }
:root[data-theme="dark"] .pitch-bg i:nth-child(3) { background: radial-gradient(circle, rgba(255, 210, 110, .12), transparent 68%); }
@media (max-width: 1100px) { .pitch-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pitch-steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pitch-inner > *, .pitch-steps li { transform: none; transition: opacity .3s; } .pitch-bg i { transform: none; } }
.fyi-page > .fyi-empty { padding: 32px var(--gutter); margin: 0; border-top: 1px solid var(--line); }

/* The pulsing dot of a LIVE pill. */
.lv-pill i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.lv-pill i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: fyi-pulse 1.6s ease-out infinite; }
@keyframes fyi-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lv-pill i::after { animation: none; } }

/* ---------- Live page (/fyi/<host> for a live site) ---------- */
.lv-head { margin-bottom: 8px; }
.lv-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lv-title img { width: 44px; height: 44px; object-fit: contain; }
.lv-title h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; line-height: 1.1; }
.lv-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 10px; border-radius: 999px; color: #d92d20; background: color-mix(in srgb, #d92d20 11%, transparent); font: 700 12px/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
:root[data-theme="dark"] .lv-pill { color: #ff6b5e; background: color-mix(in srgb, #ff6b5e 15%, transparent); }
.lv-pill.off { color: var(--muted); background: var(--chip); }
.lv-pill.off i::after { animation: none; }
.lv-lede { font-size: 16.5px; line-height: 1.55; max-width: 44em; margin: 16px 0 6px; }
.lv-status { font-size: 13px; margin: 0; }
.lv-status.bad { color: var(--bad); }
.lv-stats { margin: 28px 0 24px; }

.lv-flow { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.lv-flow li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: start; padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; position: relative; }
.lv-flow li .lv-ic { grid-row: span 2; }
.lv-flow li + li::before { content: '→'; position: absolute; left: -9px; top: 50%; transform: translateY(-50%); background: var(--bg); color: var(--muted); font-size: 13px; padding: 2px 0; }
@media (max-width: 720px) { .lv-flow { grid-template-columns: 1fr; } .lv-flow li + li::before { content: '↓'; left: 18px; top: -11px; transform: none; } }

.lv-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--chip); color: var(--ink); }
.lv-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lv-ic-person { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.lv-ic-match { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }

.lv-stream-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 26px; margin-bottom: 8px; }
.lv-stream-head h2 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.lv-stream-head span { font-size: 13px; }
.lv-empty { padding: 24px 0; }
.lv-stream { list-style: none; margin: 0; padding: 0; }
/* Each row carries its session's color as a rule down the left edge; a person's arrival carries the color of the
   assistant session that sent them. */
.lv-row { --h: 220; display: grid; grid-template-columns: 92px auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); position: relative; transition: background .2s, opacity .2s; }
.lv-row::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: hsl(var(--h) 65% 55%); }
.lv-row.no-session::before { background: var(--line-strong); }
.lv-arrival { background: color-mix(in srgb, hsl(var(--h) 65% 55%) 7%, transparent); }
.lv-arrival.no-session { background: transparent; }
.lv-row.is-minor { padding-top: 7px; padding-bottom: 7px; opacity: .62; }
.lv-row.is-minor .lv-tags { display: none; }
.lv-row.is-minor .lv-ic { width: 24px; height: 24px; }
.lv-stream[data-following] .lv-row { opacity: .35; }
.lv-stream[data-following] .lv-row.is-on { opacity: 1; background: color-mix(in srgb, hsl(var(--h) 65% 55%) 11%, transparent); }
.lv-time { display: flex; flex-direction: column; font: 12.5px/1.35 var(--mono); font-variant-numeric: tabular-nums; }
.lv-ago { color: var(--muted); font-size: 11.5px; }
.lv-line { font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.lv-line code { font: 13px var(--mono); background: var(--chip); padding: 1px 6px; border-radius: 4px; }
.lv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lv-tag { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.lv-tag.ok { color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
.lv-tag.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.lv-tag.accent { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.lv-tag.lv-sess { color: hsl(var(--h) 60% 42%); background: color-mix(in srgb, hsl(var(--h) 65% 55%) 14%, transparent); font-family: var(--mono); }
:root[data-theme="dark"] .lv-tag.lv-sess { color: hsl(var(--h) 70% 72%); }
.lv-tag.lv-why { background: none; padding-left: 2px; }
/* New rows slide down into place and glow once. */
.lv-row.is-new { animation: lv-in .55s cubic-bezier(.16, .84, .3, 1), lv-glow 2.4s ease-out; }
@keyframes lv-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes lv-glow { from { box-shadow: inset 0 0 0 999px color-mix(in srgb, hsl(var(--h) 65% 55%) 16%, transparent); } to { box-shadow: inset 0 0 0 999px transparent; } }
@media (prefers-reduced-motion: reduce) { .lv-row.is-new { animation: none; } }
@media (max-width: 600px) { .lv-row { grid-template-columns: auto minmax(0, 1fr); } .lv-time { grid-column: 2; grid-row: 1; flex-direction: row; gap: 8px; } .lv-row .lv-ic { grid-row: 1 / span 2; } .lv-body { grid-column: 2; } }

/* Report pages share the landing page's frame: the fixed Yip logo, the day/night switch, and the solid strip
   behind them. Content starts below the strip, and jumping to a section lands just under it. */
.rp { padding-top: 96px; }
.rp-sec { scroll-margin-top: 84px; }

/* Sticky header in the strip: site name, the report's three parts (the one in view underlined), call to action.
   Hidden until the report's title scrolls away. */
.fyi-bar.rp-bar { padding-right: calc(clamp(12px, 3vw, 28px) + 60px); }
.rp-bar-inner { display: flex; align-items: center; gap: 22px; width: 100%; min-width: 0; opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; }
.fyi-bar.on .rp-bar-inner { opacity: 1; transform: none; }
.rp-bar-title { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 32ch; }
.rp-bar-title:hover { text-decoration: none; color: var(--accent); }
.rp-bar-nav { display: flex; gap: 18px; margin-left: auto; }
.rp-bar-nav a { color: var(--muted); font-size: 14px; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.rp-bar-nav a:hover { color: var(--ink); text-decoration: none; }
.rp-bar-nav a.on { color: var(--ink); border-bottom-color: var(--accent); }
.rp-bar-cta { flex: none; padding: 7px 14px; font-size: 14px; }
@media (max-width: 980px) { .rp-bar-nav { display: none; } .rp-bar-cta { margin-left: auto; } }
@media (max-width: 720px) { .fyi-bar.rp-bar { padding-left: calc(clamp(16px, 5vw, 72px) + 100px); } }
@media (max-width: 520px) { .rp-bar-title { display: none; } }

/* Industry filter as a custom list: the trigger keeps the plain-text look; the open list is a small panel in the
   page's own colors, with each group's count and a check on the one chosen. */
.fyi-filter { position: relative; }
.fyi-filter-btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 500; line-height: 20px; cursor: pointer; transition: color .15s, background .15s; }
.fyi-filter-btn:hover, .fyi-filter-btn[aria-expanded="true"] { color: var(--accent); }
.fyi-filter-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fyi-filter-btn svg { width: 10px; height: 7px; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .7; transition: transform .2s; }
.fyi-filter-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.fyi-filter-menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 220px; margin: 0; padding: 6px; list-style: none; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); z-index: 60; outline: none; animation: fyi-menu-in .16s ease-out; }
.fyi-filter-menu li { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font-size: 14px; color: var(--ink); cursor: pointer; }
.fyi-filter-menu li.active { background: var(--chip); }
.fyi-filter-menu li em { font-style: normal; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fyi-filter-menu li[aria-selected="true"] { font-weight: 600; }
.fyi-check { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.fyi-filter-menu li[aria-selected="true"] .fyi-check { visibility: visible; }
@keyframes fyi-menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fyi-filter-menu { animation: none; } }
:root[data-theme="dark"] .fyi-filter-menu { box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }

/* 3D tilt: the sheet is one plane that leans a few degrees toward the mouse. JS sets --rx/--ry (eased every frame)
   and the origin to the middle of the screen, so the lean pivots around what you are looking at. */
.fyi-grid.tilting { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-origin: 50% var(--oy, 50%); will-change: transform; }

/* Its switches, left of the filter: icon toggles (the cube for tilt, a check in a circle for finished reports only).
   They share one centre line with the filter and the banner's search and day/night icons. On, the icon is blue with
   an underline drawn under it; off, it is muted and the underline is gone. Switching either way bounces the icon: it
   swells, dips a little past normal and eases into place. The bounce, the colour and the underline share one
   duration and one easing (--tog-dur, --tog-ease), so they read as one motion. A tooltip shows at once on hover. */
.fyi-filter-row { gap: 6px; align-items: center; }
.fyi-toggles { display: inline-flex; align-items: center; gap: 2px; pointer-events: auto; }
.fyi-tog { --tog-dur: 460ms; --tog-ease: cubic-bezier(.22, 1, .36, 1); position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; transition: color var(--tog-dur) var(--tog-ease); }
.fyi-tog:hover { color: var(--ink); }
.fyi-tog[aria-pressed="true"] { color: var(--accent); }
.fyi-tog:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fyi-tog svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .6; transform-origin: 50% 60%; transition: opacity var(--tog-dur) var(--tog-ease); }
.fyi-tog[aria-pressed="true"] svg, .fyi-tog:hover svg { opacity: 1; }
.fyi-tog .cube-top, .fyi-tog .tog-fill { fill: currentColor; fill-opacity: .14; stroke: none; }
.fyi-tog .tog-fill { fill-opacity: 0; transition: fill-opacity var(--tog-dur) var(--tog-ease); }
.fyi-tog[aria-pressed="true"] .tog-fill { fill-opacity: .16; }
/* The underline: drawn out from the middle when the toggle turns on, drawn back in when it turns off. */
.fyi-tog::before { content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); opacity: 0; transition: transform var(--tog-dur) var(--tog-ease), opacity var(--tog-dur) var(--tog-ease); }
.fyi-tog[aria-pressed="true"]::before { transform: scaleX(1); opacity: 1; }
/* The bounce, replayed on every switch (fyi.js adds .pop): up and larger, a little under, then settled. */
.fyi-tog.pop svg { animation: fyi-tog-pop var(--tog-dur) var(--tog-ease); }
@keyframes fyi-tog-pop {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-3px) scale(1.32); }
  58% { transform: translateY(1px) scale(.92); }
  80% { transform: translateY(0) scale(1.04); }
  100% { transform: translateY(0) scale(1); }
}
/* The tooltip: below the icon, shown at once (no delay) on hover or keyboard focus. */
.fyi-tog::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 5px 9px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 500; line-height: 1.3; pointer-events: none; opacity: 0; visibility: hidden; z-index: 70; }
.fyi-tog:hover::after, .fyi-tog:focus-visible::after { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .fyi-tog.pop svg { animation: none; } .fyi-tog, .fyi-tog svg, .fyi-tog::before, .fyi-tog .tog-fill { transition-duration: 0s; } }
/* Tilt follows a mouse, so its switch is hidden where there is none. */
@media (hover: none) { .fyi-tog-tilt { display: none; } }

/* ---------- Report as a magazine spread ----------
   A cover (serif headline, deck, byline, a square hairline sheet of deltas), then one colour plate per part, each
   opening with a serif title, a deck and a rule. Plates run edge to edge: the box-shadow
   paints the plate's colour out to the window's sides and clip-path keeps it from spilling above or below. */
.mg-deck { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; color: var(--muted); max-width: 36em; margin: 0; }

.rp-head.mg-cover h1 { font-family: var(--serif); font-size: clamp(38px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.025em; font-weight: 600; max-width: 13em; margin: 0 0 18px; text-wrap: balance; }
.mg-cover .mg-deck { font-size: clamp(18px, 1.8vw, 23px); margin: 0; }
.mg-cover .mg-byline { font-size: 12.5px; letter-spacing: .02em; color: var(--muted); margin: 22px 0 0; padding-top: 12px; border-top: 1px solid var(--line-strong); max-width: 36em; }

.rp-view { margin: 14px 0 0; }
.rp-view-btn { display: inline-block; padding: 7px 14px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.rp-view-btn:hover { text-decoration: none; opacity: .9; }

/* The cover's numbers: square cells joined by hairlines, the change only, an icon badge coloured by group. On hover
   a circle of colour grows from the pointer and shrinks to where it leaves (initMetrics); the explanation shows at once. */
.mg-metrics { display: grid; grid-template-columns: repeat(var(--two, 5), minmax(0, 1fr)); width: min(var(--page-w, 100vw), 1440px); margin: 48px 0 0 calc(50% - min(var(--page-w, 100vw), 1440px) / 2); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
@media (min-width: 1400px) { .mg-metrics { grid-template-columns: repeat(var(--one, 10), minmax(0, 1fr)); } }
body.fyi { overflow-x: clip; }
.mg-cell { --tint: var(--accent); --tint-bg: var(--accent-soft); container-type: inline-size; position: relative; overflow: hidden; width: 100%; aspect-ratio: 1 / 1; max-height: 168px; display: flex; flex-direction: column; padding: 14px; min-width: 0; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); outline: none; cursor: default; }
[data-group="pages"] { --tint: var(--accent); --tint-bg: var(--accent-soft); }
[data-group="setup"] { --tint: var(--warn); --tint-bg: var(--warn-bg); }
.mg-cell:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
/* The icon is small, in the group's colour, and sits just right of the big number on its baseline row, so it never
   overlaps the title or the line under the number. */
.mg-row { position: relative; margin-top: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.mg-ic { flex: none; width: 18px; height: 18px; color: var(--tint); opacity: .55; pointer-events: none; }
.mg-ic svg { width: 100%; height: 100%; display: block; }
.mg-k, .mg-v, .mg-u { position: relative; }
.mg-k { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.mg-v { min-width: 0; font-size: clamp(24px, 22cqi, 52px); font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.mg-v.pos { color: var(--good); }
.mg-v.neg { color: var(--bad); }
.mg-v.zero { color: var(--muted); }
.mg-v.count { color: var(--ink); }
.mg-u { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.35; min-height: 2.7em; }

.mg-fill { position: absolute; inset: 0; z-index: 1; background: var(--ink); clip-path: circle(0 at var(--x, 50%) var(--y, 50%)); transition: clip-path .5s cubic-bezier(.3, .55, .3, 1); }
.mg-cell.on .mg-fill { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
.mg-cell.snap .mg-fill { transition: none; }
.mg-more { position: absolute; inset: 0; z-index: 2; margin: 0; padding: 14px; display: flex; align-items: center; color: var(--bg); font-size: 12.5px; line-height: 1.45; opacity: 0; transition: opacity .1s; pointer-events: none; }
.mg-cell.on .mg-more { opacity: 1; transition: opacity .15s .06s; }
@media (prefers-reduced-motion: reduce) { .mg-fill, .mg-more, .mg-cell.on .mg-more { transition: none; } }

.mg-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 56px; font-size: 12px; color: var(--muted); }
.mg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mg-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--tint); }
@media (max-width: 900px) { .mg-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mg-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mg-cell { padding: 12px; } .mg-more { padding: 12px; font-size: 12px; } }

/* Colour plates, one per part. */
.rp-sec, .rp-cta { --plate: var(--bg); background: var(--plate); box-shadow: 0 0 0 100vmax var(--plate); clip-path: inset(0 -100vmax); border-top: 0; margin-top: 0; padding: 72px 0 80px; }
#trace { --plate: var(--plate-trace); }
#compare { --plate: var(--plate-compare); }

/* A part's head: the title across the page, the deck under it, a rule in ink under both. */
.mg-head { padding-bottom: 24px; margin-bottom: 36px; border-bottom: 2px solid var(--ink); }
.mg-head .mg-deck { margin-top: 12px; }
.rp-sec .mg-head h2 { display: block; font-family: var(--serif); font-size: clamp(32px, 4.4vw, 54px); line-height: 1.02; letter-spacing: -.02em; font-weight: 600; margin: 0; text-wrap: balance; }

/* Column heads inside a part: small capitals under a heavy rule. */
.rp-sec h3 { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 40px 0 14px; padding-top: 10px; border-top: 3px solid var(--ink); }
.rp-sec .rp-two { gap: 0; }
.rp-sec .rp-two > div { padding-right: 32px; }
.rp-sec .rp-two > div + div { padding: 0 0 0 32px; border-left: 1px solid var(--line-strong); }
@media (max-width: 820px) { .rp-sec .rp-two > div, .rp-sec .rp-two > div + div { padding: 0; border-left: 0; } .rp-sec .rp-two > div + div { margin-top: 32px; } }

/* Glossary: a hairline grid of terms. */
.rp-sec .rp-gloss { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.rp-gloss > div { padding: 14px 16px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.rp-sec .rp-gloss dt { font-family: var(--serif); font-size: 16px; margin-bottom: 4px; }
.rp-sec .rp-gloss dd { margin: 0; line-height: 1.45; }
@media (max-width: 820px) { .rp-sec .rp-gloss { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rp-sec .rp-gloss { grid-template-columns: 1fr; } }

/* The closing plate: ink, like a back cover. */
.rp-cta { --plate: var(--plate-cta); color: var(--plate-cta-ink); align-items: end; }
.rp-cta h2 { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -.02em; font-weight: 600; margin: 0 0 10px; }
.rp-cta .mg-deck { color: inherit; opacity: .75; }
.rp.fyi-wrap { padding-bottom: 0; }

/* The privacy notice (privacy.html): one readable column of prose. */
.fyi-legal { max-width: 46em; font-size: 16px; line-height: 1.6; }
.fyi-legal h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; margin: 24px 0 4px; }
.fyi-legal h2 { font-size: 20px; font-weight: 600; margin: 36px 0 8px; }
.fyi-legal ul { padding-left: 1.3em; }
.fyi-legal li { margin: 2px 0; }
.fyi-foot { padding: 32px var(--gutter) 48px; font-size: 14px; }

/* ---------- Who each page is for (fyi-audience.js): Robo's Persona Map, two views, a switch and a panel ---------- */
/* No frame or fill: the map and the panel sit on the section's own colour, a single rule between them. --panel is
   that colour here, so dot outlines and label halos match what is behind them. */
.au-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; --panel: var(--plate, var(--bg)); }
.au-map { position: relative; height: clamp(440px, 64vh, 640px); min-width: 0; }
.au-side { border-left: 1px solid var(--line-strong); padding: 20px 20px 24px; height: clamp(440px, 64vh, 640px); box-sizing: border-box; overflow-y: auto; font-size: 13.5px; line-height: 1.5; }
@media (max-width: 860px) { .au-grid { grid-template-columns: 1fr; } .au-map { height: min(110vw, 520px); } .au-side { height: auto; padding: 20px 0 24px; border-left: 0; border-top: 1px solid var(--line-strong); } }
.au-svg { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; }
.au-ring { fill: none; stroke: var(--line); stroke-dasharray: 2 6; }
/* Data-stage carries the stage's colour as --sc, as on the Persona Map. */
#audience [data-stage="discover"] { --sc: var(--stage-discover); }
#audience [data-stage="evaluate"] { --sc: var(--stage-evaluate); }
#audience [data-stage="decide"] { --sc: var(--stage-decide); }
#audience [data-stage="use"] { --sc: var(--stage-use); }
#audience [data-stage="none"] { --sc: var(--stage-none); }
/* Each view's links and ring markers fade out as the switch is pressed and back in once the dots have arrived. */
.au-edges, .au-anchors { opacity: 0; visibility: hidden; transition: opacity .18s, visibility 0s .18s; }
.au-edges.on, .au-anchors.on { opacity: 1; visibility: visible; transition: opacity .35s .5s, visibility 0s; }
.au-edge { stroke-width: 1.1; opacity: .38; stroke: hsl(var(--h) var(--persona-s) var(--persona-l)); transition: opacity .15s; }
.au-edge[data-stage] { stroke: var(--sc); }
.au-edge.e75 { stroke-width: .95; opacity: .3; }
.au-edge.e50 { stroke-dasharray: 3 4; stroke-width: .8; opacity: .22; }
.au-edge.e25 { stroke-dasharray: 1 4; stroke-width: .7; opacity: .16; }
.au-edge.off { display: none; }
.au-edge.hot { opacity: .8; } .au-edge.e50.hot { opacity: .55; } .au-edge.e25.hot { opacity: .42; }
.au-page { cursor: pointer; stroke: var(--panel); stroke-width: 1; fill: var(--line-strong); transition: opacity .15s, fill .45s; }
@media (prefers-reduced-motion: no-preference) {
  .au-page { transition: opacity .15s, fill .45s, cx .6s cubic-bezier(.65, 0, .35, 1), cy .6s cubic-bezier(.65, 0, .35, 1), r .6s; }
  .au-ring { transition: r .6s cubic-bezier(.65, 0, .35, 1); }
}
@media (prefers-reduced-motion: reduce) { .au-edges, .au-anchors, .au-edges.on, .au-anchors.on { transition: none; } }
#audience[data-view="role"] .au-page { fill: hsl(var(--rh) var(--persona-s) var(--persona-l)); }
#audience[data-view="role"] .au-page[data-rl="75"] { fill: color-mix(in srgb, hsl(var(--rh) var(--persona-s) var(--persona-l)) 68%, var(--panel)); }
#audience[data-view="role"] .au-page[data-rl="50"] { fill: color-mix(in srgb, hsl(var(--rh) var(--persona-s) var(--persona-l)) 38%, var(--panel)); }
#audience[data-view="role"] .au-page[data-rl="25"] { fill: var(--panel); stroke: hsl(var(--rh) var(--persona-s) var(--persona-l)); stroke-width: 1.3; }
#audience[data-view="role"] .au-page[data-rl=""] { fill: var(--line-strong); stroke: none; }
#audience[data-view="stage"] .au-page { fill: var(--sc, var(--line-strong)); }
#audience[data-view="stage"] .au-page[data-stage=""] { fill: var(--line-strong); stroke: none; }
.au-page.dim { opacity: .12; }
.au-page:hover { stroke: var(--accent); stroke-width: 2; }
#audience .au-page.sel { stroke: var(--accent); stroke-width: 3; opacity: 1; }
.au-anchor { cursor: pointer; outline: none; transition: opacity .15s; }
.au-anchor text { font-family: var(--sans); font-weight: 600; font-size: calc(12.5px * var(--k)); fill: var(--ink); paint-order: stroke; stroke: var(--panel); stroke-width: calc(4px * var(--k)); stroke-linejoin: round; }
.au-role rect { fill: hsl(var(--h) var(--persona-s) var(--persona-l)); stroke: var(--panel); stroke-width: 3; }
.au-stage rect { fill: var(--sc); stroke: var(--panel); stroke-width: 3; }
.au-anchor:hover rect { stroke: var(--ink); }
.au-anchor.sel rect, .au-anchor:focus-visible rect { stroke: var(--accent); stroke-width: 4; }
.au-anchor.dim { opacity: .25; }
.au-tip { position: absolute; z-index: 5; max-width: 300px; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: var(--shadow-sm); font-size: 12.5px; line-height: 1.4; pointer-events: none; display: grid; gap: 2px; }
.au-tip[hidden] { display: none; }
.au-tip .mono { font-family: var(--mono); font-size: 11.5px; }
.au-tip-sub { display: grid; gap: 2px; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.au-tip-stage { display: flex; align-items: center; }
.au-rsw { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); margin: 0 8px 0 1px; background: hsl(var(--h) var(--persona-s) var(--persona-l)); }
.au-st { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 2px; margin-right: 7px; background: var(--sc, var(--line-strong)); }
/* The panel: what the map shows while nothing is picked; then the pick, with its personas, roles and readiness stacked. */
.au-side-h { position: relative; margin-bottom: 14px; }
#audience .au-side-h h3 { font-family: var(--serif); font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; text-transform: none; margin: 4px 0 6px; padding: 0 90px 0 0; border: 0; display: flex; align-items: center; }
#audience .au-side-h:not(:has(.au-clear)) h3 { padding-right: 0; }
.au-side-h p { margin: 0; }
.au-side-h .mono { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.au-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.au-clear { position: absolute; top: -4px; right: 0; padding: 4px 10px; font-size: 12px; border-radius: 999px; }
.au-side-in > p { margin: 0 0 12px; }
.au-hint { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.au-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; margin: 4px 0 14px; }
.au-stats div { display: grid; gap: 2px; align-content: start; }
.au-stats b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.au-stats span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.au-key { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 5px; font-size: 12.5px; }
.au-key li { display: grid; grid-template-columns: 14px 38px 1fr; align-items: center; gap: 6px; }
.au-kdot { width: 11px; height: 11px; border-radius: 50%; --kc: hsl(205 var(--persona-s) var(--persona-l)); background: var(--kc); }
.au-kdot[data-rl="75"] { background: color-mix(in srgb, var(--kc) 68%, var(--panel)); }
.au-kdot[data-rl="50"] { background: color-mix(in srgb, var(--kc) 38%, var(--panel)); }
.au-kdot[data-rl="25"] { background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--kc); }
.au-kdot[data-rl=""] { background: var(--line-strong); }
.au-blk { border-top: 1px solid var(--line); padding: 12px 0 6px; }
.au-blk h4 { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.au-line { margin: 0 0 8px; }
.au-rows { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 2px; }
.au-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; }
.au-rows li.zero { opacity: .45; }
.au-row { display: flex; align-items: center; min-width: 0; padding: 4px 6px; margin-left: -6px; border: 0; background: none; border-radius: 6px; text-align: left; font: inherit; color: inherit; }
.au-row > .muted { margin-left: auto; padding-left: 8px; font-size: 12px; white-space: nowrap; }
button.au-row { cursor: pointer; }
button.au-row:hover { background: var(--chip); }
.au-row-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-bar { width: 64px; height: 6px; border-radius: 3px; background: var(--chip); overflow: hidden; }
.au-bar i { display: block; height: 100%; border-radius: 3px; }
.au-pct { font-size: 12px; font-variant-numeric: tabular-nums; min-width: 30px; text-align: right; }
.au-tag { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--muted); white-space: nowrap; }
.au-tag.strong { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.au-sbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; margin: 4px 0 10px; }
.au-sbar i { background: var(--sc); }
.au-stagecard { display: grid; gap: 4px; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--line-strong); border-left: 4px solid var(--sc); border-radius: 8px; background: none; font: inherit; color: inherit; margin-bottom: 6px; cursor: pointer; }
.au-stagecard:hover { background: var(--chip); }
.au-stagecard-h { display: flex; align-items: center; }
.au-stagecard-h > span:last-child { margin-left: auto; font-size: 12px; color: var(--muted); }
#audience { --tr-dur: .55s; --tr-ease: cubic-bezier(.65, 0, .35, 1); }
.au-svg.narrow .au-anchor text { font-size: calc(10.5px * var(--k)); }

/* /welcome/<path> (welcome.go, fyi-welcome.js): the viewer's Markdown page, grayed, under the
   welcome dialog. Without <dialog> support, or before the script opens it, the dialog stays out
   of the page, which is then the plain viewer. */
dialog.wl-modal:not([open]) { display: none; }
body:has(dialog.wl-modal[open]) .vw-body { filter: grayscale(1); opacity: .45; }
.wl-modal { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-sizing: border-box; padding: 22px 24px 24px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--panel); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto; }
.wl-modal[open] { animation: wl-in .35s cubic-bezier(.2, .8, .2, 1); }
.wl-modal::backdrop { background: var(--backdrop); backdrop-filter: blur(2px); }
@keyframes wl-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.wl-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.wl-fox { width: 30px; height: 30px; flex: none; margin-top: 2px; }
.wl-titles { flex: 1; min-width: 0; }
.wl-head .fyi-x { flex: none; }
.wl-modal h2 { margin: 0 0 2px; font-size: 22px; line-height: 1.25; }
.wl-lede { margin: 0; color: var(--muted); }
/* Two columns in the report's trace frame: the log on the left, what Yip offers on the right. */
.wl-cols { display: grid; grid-template-columns: 1.35fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.wl-cols > section { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; }
.wl-cols .tr-head .muted { font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
/* The log's height is set to the whole trace when it plays (fyi-welcome.js); a short window scrolls the modal. */
.wl-trace .tr-log { flex: 1 0 auto; min-height: 0; overflow-y: auto; scrollbar-color: #3a3a37 transparent; }
.wl-trace .tr-log { position: relative; }
/* Each leg opens with a bar across the log's full width. */
.wl-leg { display: flex; align-items: baseline; gap: 10px; margin: 0 -14px 8px; padding: 9px 14px; background: #2c2c29; color: #fff; font: 600 14.5px/1.3 var(--sans); }
.wl-leg:first-child { margin-top: -12px; }
.wl-leg:not(:first-child) { margin-top: 14px; }
.wl-leg-n { color: #8d8c86; font: 600 13px/1 var(--mono); }
/* The classification: a line each for persona, role and readiness, the label dimmed. */
.wl-kv { display: block; }
.wl-kv > span { color: #8d8c86; }
.tr-row.now .tr-k { color: #e5b45c; }
.tr-row.now .tr-k { animation: tr-blink 1.2s ease-in-out infinite; }
.wl-points { list-style: none; margin: 0; padding: 6px 16px; }
.wl-points li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; padding: 10px 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; border-bottom: 1px solid var(--line); }
.wl-points li:last-child { border-bottom: 0; }
.wl-points strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 1px; }
.wl-ic { width: 32px; height: 32px; box-sizing: border-box; padding: 7px; border-radius: 8px; background: var(--chip); color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wl-cta { margin-top: auto; padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; text-align: center; }
.wl-cta p { margin: 0 0 4px; font-weight: 600; }
.wl-btn { display: block; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.wl-btn:hover { background: var(--chip); }
.wl-btn.primary { background: var(--plate-cta); border-color: var(--plate-cta); color: var(--plate-cta-ink); }
.wl-btn.primary:hover { opacity: .9; background: var(--plate-cta); }
.wl-later { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 4px; }
.wl-later:hover { color: var(--ink); }
/* A page this release lacks: only the note and the live link under the header. */
.wl-modal[data-missing] { width: min(560px, calc(100vw - 32px)); }
.wl-missing { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.wl-missing p { margin: 0; color: var(--muted); }
.wl-reopen { position: fixed; right: 16px; bottom: 16px; padding: 10px 14px; border: 0; border-radius: 999px; background: var(--plate-cta); color: var(--plate-cta-ink); font: inherit; font-weight: 600; box-shadow: var(--shadow-md); cursor: pointer; }
@media (max-width: 760px) {
  .wl-modal { padding: 18px 16px 16px; }
  .wl-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .wl-modal[open] { animation: none; } .tr-row.now .tr-k { animation: none; } }

/* The new-copy viewer: a bar (company, path, Markdown/Rendered tabs, "Open live", "Back to
   report"), an optional note, and either the sanitized Markdown body or a full-height iframe of
   the live copy. */
.vw-wrap { display: flex; flex-direction: column; min-height: 100vh; padding: 0; max-width: none; }
.vw-bar { display: flex; align-items: center; gap: 16px; flex: none; padding: 10px clamp(16px, 3vw, 28px); border-bottom: 1px solid var(--line-strong); background: var(--panel); }
.vw-who { display: flex; align-items: baseline; gap: 10px; min-width: 0; margin-right: auto; }
.vw-company { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 24ch; }
.vw-path { color: var(--muted); font: 12.5px/1 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vw-tabs { display: flex; gap: 4px; background: var(--chip); border-radius: 8px; padding: 3px; flex: none; }
.vw-tab { display: inline-block; padding: 5px 12px; border-radius: 6px; font-size: 13px; color: var(--muted); }
.vw-tab:hover { color: var(--ink); text-decoration: none; }
a.vw-tab.on { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 10%, transparent); }
span.vw-tab[aria-disabled="true"] { opacity: .45; cursor: default; }
.vw-live, .vw-back { flex: none; font-size: 13px; color: var(--muted); white-space: nowrap; }
.vw-live:hover, .vw-back:hover { color: var(--ink); }
.vw-note { flex: none; margin: 0; padding: 10px clamp(16px, 3vw, 28px); font-size: 13px; color: var(--muted); background: var(--band); border-bottom: 1px solid var(--line-strong); }
.vw-body { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 36px clamp(16px, 3vw, 28px) 72px; font-size: 16px; line-height: 1.6; }
.vw-body :first-child { margin-top: 0; }
.vw-body h1, .vw-body h2, .vw-body h3, .vw-body h4 { line-height: 1.25; margin: 1.6em 0 .5em; color: var(--ink); }
.vw-body p, .vw-body ul, .vw-body ol, .vw-body blockquote, .vw-body table, .vw-body pre { margin: 0 0 1em; }
.vw-body blockquote { padding-left: 14px; border-left: 3px solid var(--line-strong); color: var(--muted); }
.vw-body pre { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow: auto; font: 13px/1.5 var(--mono); }
.vw-body code { font: 13px/1.4 var(--mono); background: var(--chip); border-radius: 4px; padding: .1em .35em; }
.vw-body pre code { background: none; padding: 0; }
.vw-body table { width: 100%; border-collapse: collapse; }
.vw-body th, .vw-body td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.vw-body img { max-width: 100%; }
.vw-frame { flex: 1; width: 100%; border: 0; background: var(--panel); }
@media (max-width: 600px) { .vw-bar { flex-wrap: wrap; row-gap: 8px; } .vw-path { display: none; } .vw-who { margin-right: 0; } .vw-live, .vw-back { font-size: 12.5px; } }
