/* Google Search Console's layout, in the Trigger marketing site's tokens (build/tokens.py). */
@font-face { font-family: 'Space Grotesk'; font-weight: 300 700; font-display: swap; src: url(fonts/space-grotesk-latin.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 100 900; font-display: swap; src: url(fonts/geist-mono-latin.woff2) format('woff2'); }

:root {
  --paper: #fafbfe; --ink: #12161f; --ink2: #454f63; --mute: #6b7688; --faint: #9aa3b6;
  --line: #e2e8f4; --line2: #edf1f9; --card: #fff; --accent: #1d4fd8; --accent-soft: #eaf0fe;
  --clicks: #1d4fd8; --impressions: #a21caf; --ctr: #0f9f8f; --position: #e07a10;
  --good: #15803d; --good-soft: #e7f4ec; --bad: #c81e1e; --bad-soft: #fdecec; --warn: #b45309;
  --ours: #1d4fd8; --other: #e07a10; --hidden: #c9d0de;
  --nav: 264px; --top: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 14px/1.5 'Space Grotesk', system-ui, sans-serif; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; }
.mute { color: var(--mute); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Top bar */
.top { position: fixed; inset: 0 0 auto 0; height: var(--top); background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 20px; z-index: 20; }
.logo { display: flex; align-items: center; gap: 10px; width: calc(var(--nav) - 20px); flex: none; }
.logo .mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(165deg, #101827, #0b1120); color: #7fa5ff;
  display: grid; place-items: center; font-weight: 700; }
.logo b { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.logo b span { font-weight: 700; }
.inspect-box { flex: 1; max-width: 720px; display: flex; align-items: center; gap: 10px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; height: 44px; }
.inspect-box:focus-within { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.inspect-box input { flex: 1; border: 0; background: transparent; outline: 0; height: 100%; font-size: 15px; }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink2); }
.icon-btn:hover { background: var(--line2); }
.menu-btn { display: none; flex: none; }
.icon-btn.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Left nav */
.nav { position: fixed; top: var(--top); bottom: 0; left: 0; width: var(--nav); background: #fff; border-right: 1px solid var(--line);
  overflow-y: auto; padding: 14px 12px 40px; }
.prop { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; }
.prop .globe { color: var(--mute); }
.prop b { font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav h6 { font: 500 11px 'Geist Mono'; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 18px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; border-radius: 0 20px 20px 0; margin-left: -12px; padding-left: 26px;
  color: var(--ink2); font-weight: 500; }
.nav a:hover { background: var(--line2); }
.nav a.on { background: var(--accent-soft); color: var(--accent); }
.nav a svg { flex: none; }
.nav .new-tag { margin-left: auto; font: 500 10px 'Geist Mono'; color: #126533; background: var(--good-soft); border-radius: 999px; padding: 1px 7px; }

/* Main */
main { margin: var(--top) 0 0 var(--nav); padding: 28px 40px 80px; max-width: calc(1180px + var(--nav)); }
.page-h { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; min-height: 40px; }
.page-h h1 { font-size: 22px; font-weight: 500; letter-spacing: -.015em; margin: 0; }
.page-h .grow { flex: 1; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-weight: 500; color: var(--accent); white-space: nowrap; }
.btn:hover { background: var(--accent-soft); }
.btn.solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.solid:hover { background: #1a45bf; }
.btn[disabled] { color: var(--faint); cursor: not-allowed; background: #fff; }

/* Filter chips */
.chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: #c7d2e8; }
.chip.static { cursor: default; }
.chip .x { border: 0; background: none; cursor: pointer; color: var(--mute); padding: 0 0 0 4px; font-size: 15px; line-height: 1; }
.chip.add { color: var(--accent); border-style: dashed; }
.chips .updated { margin-left: auto; color: var(--mute); font-size: 13px; }
.note-chip { font-size: 12px; color: var(--warn); background: #fff7ec; border: 1px solid #fde3c0; border-radius: 8px; padding: 6px 10px; }

/* Popover */
.pop { position: absolute; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px -20px rgba(18,22,31,.35);
  padding: 16px; min-width: 280px; }
.pop h4 { margin: 0 0 12px; font-size: 15px; font-weight: 500; }
.pop label.opt { display: flex; align-items: center; gap: 10px; padding: 6px 4px; cursor: pointer; }
.pop .row { display: flex; gap: 8px; margin-top: 10px; }
.pop input[type=text], .pop input[type=date], .pop select { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; width: 100%; }
.pop .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* Metric cards: Search Console's coloured toggles */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px 12px 0 0; overflow: hidden; background: #fff; }
.metric { padding: 16px 20px 18px; cursor: pointer; border-right: 1px solid var(--line); user-select: none; position: relative; }
.metric:last-child { border-right: 0; }
.metric .lbl { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); }
.metric .box { width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--faint); display: grid; place-items: center; }
.metric .val { font-size: 32px; font-weight: 500; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.metric .sub { font-size: 12px; margin-top: 2px; opacity: .85; }
.metric.on { color: #fff; }
.metric.on .lbl { color: rgba(255,255,255,.92); }
.metric.on .box { border-color: #fff; background: #fff; }
.metric.on .box::after { content: ''; width: 8px; height: 4px; border: 2px solid currentColor; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); }
.metric[data-m=clicks].on { background: var(--clicks); } .metric[data-m=clicks].on .box { color: var(--clicks); }
.metric[data-m=impressions].on { background: var(--impressions); } .metric[data-m=impressions].on .box { color: var(--impressions); }
.metric[data-m=ctr].on { background: var(--ctr); } .metric[data-m=ctr].on .box { color: var(--ctr); }
.metric[data-m=position].on { background: var(--position); } .metric[data-m=position].on .box { color: var(--position); }
.metric[data-m] .key { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
/* A ticked or unticked card eases its colour (easeCard in app.js) */
.metric.eased-on { animation: card-on .32s ease-out; }
.metric.eased-on .lbl { animation: lbl-on .32s ease-out; }
.metric.eased-off { animation: card-off .32s ease-out; }
.metric.eased-off .lbl { animation: lbl-off .32s ease-out; }
@keyframes card-on { from { background-color: #fff; color: var(--ink); } }
@keyframes lbl-on { from { color: var(--ink2); } }
@keyframes card-off { from { background-color: var(--was); color: #fff; } }
@keyframes lbl-off { from { color: rgba(255,255,255,.92); } }

/* Chart card */
.chart-card { background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; padding: 18px 20px 12px; margin-bottom: 24px; position: relative; }
.chart-card.alone { border-top: 1px solid var(--line); border-radius: 12px; }
.chart-card svg { display: block; width: 100%; overflow: visible; }
.chart-card .grid { stroke: var(--line2); }
.chart-card .tick { font: 11px 'Geist Mono'; fill: var(--mute); }
.chart-card .plab { font: 500 12px 'Space Grotesk'; }
.chart-card .enter, .chart-legend .enter { animation: chart-in .4s ease-out both; }
@keyframes chart-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .chart-card .enter, .chart-legend .enter, .metric.eased-on, .metric.eased-off, .metric .lbl { animation: none; } }
.chart-body { position: relative; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; font: 500 12px 'Space Grotesk'; color: var(--ink2); }
.chart-legend.split { justify-content: space-between; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-legend i.sq { width: 12px; height: 12px; border-radius: 3px; }
.view-toggle { display: flex; justify-content: flex-end; gap: 0; margin: -4px 0 10px; }
.view-toggle button { height: 28px; padding: 0 12px; border: 1px solid var(--line); background: #fff; color: var(--ink2); font: 500 12px 'Space Grotesk'; cursor: pointer; }
.view-toggle button:first-child { border-radius: 8px 0 0 8px; }
.view-toggle button:last-child { border-radius: 0 8px 8px 0; border-left: 0; }
.view-toggle button.on { background: var(--accent-soft); color: var(--accent); border-color: #c7d2e8; }
.tip { position: absolute; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px -14px rgba(18,22,31,.35);
  padding: 10px 12px; font-size: 13px; min-width: 170px; display: none; z-index: 5; }
.tip b { display: block; margin-bottom: 6px; font-weight: 500; }
.tip .r { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tip .r i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; margin-right: 6px; }
.tip .fresh { color: var(--warn); font-size: 12px; margin-top: 6px; }

/* Table card with Search Console's tabs */
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 24px; }
.card-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-h h3 { margin: 0; font-size: 16px; font-weight: 500; }
.card-b { padding: 18px 20px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; background: none; height: 48px; padding: 0 20px; font: 500 12px 'Geist Mono'; letter-spacing: .06em; text-transform: uppercase;
  color: var(--mute); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
.tabs button .ours-tag { font-size: 9px; margin-left: 6px; color: #126533; background: var(--good-soft); padding: 1px 6px; border-radius: 999px; letter-spacing: 0; }
.table-tools { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--line2); min-height: 52px; }
.table-tools input { border: 0; outline: 0; flex: 1; height: 32px; }
table { width: 100%; border-collapse: collapse; }
th { font: 500 12px 'Space Grotesk'; color: var(--ink2); text-align: left; padding: 12px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; }
th.num { text-align: right; }
th .arr { color: var(--accent); margin-left: 4px; }
td { padding: 12px 20px; border-bottom: 1px solid var(--line2); vertical-align: top; }
tbody tr:hover td { background: #f7f9fe; }
tbody tr.click { cursor: pointer; }
td .sub { display: block; color: var(--mute); font-size: 12px; }
td.wrap { max-width: 420px; overflow-wrap: anywhere; }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: 18px; padding: 10px 20px; color: var(--ink2); font-size: 13px; }
.pager select { border: 0; background: none; font-weight: 500; }
.pager button { border: 0; background: none; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; color: var(--ink2); }
.pager button:hover:not([disabled]) { background: var(--line2); }
.pager button[disabled] { color: var(--faint); cursor: default; }
.empty { padding: 40px 20px; text-align: center; color: var(--mute); }

/* Pills and states */
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 11px 'Geist Mono'; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill.good { background: var(--good-soft); color: #126533; }
.pill.bad { background: var(--bad-soft); color: #9b1c1c; }
.pill.ours { background: #e8eefc; color: #1a3fa8; }
.pill.new { background: var(--good-soft); color: #126533; }
.pill.other { background: #fdf1e2; color: #8a4a06; }
.pill.none { background: #eef1f6; color: var(--ink2); }
.pill.wait { background: #fff7ec; color: var(--warn); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* Overview cards */
.ov { display: grid; grid-template-columns: 1fr; gap: 24px; }
.ov .card-h a { margin-left: auto; font-weight: 500; }
.ov .big { font-size: 15px; color: var(--ink2); margin-bottom: 10px; }
.ov .big b { color: var(--ink); font-size: 18px; font-weight: 500; }
.ov-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line2); }
.ov-row:first-child { border-top: 0; }
.ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.ov video.tour { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: #f4f7fd; }
.tour-card summary { list-style: none; cursor: pointer; }
.tour-card summary::-webkit-details-marker { display: none; }
.tour-card:not([open]) summary { border-bottom: 0; }
.tour-card summary .chev { transition: transform .15s; color: var(--mute); display: inline-flex; }
.tour-card summary.card-h { gap: 20px; padding: 20px 24px; }
.tour-thumb { position: relative; flex: none; width: 152px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.tour-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tour-play { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(29, 79, 216, .35); transition: transform .15s; }
.tour-play svg, .tour-go svg { fill: currentColor; stroke-width: 1.5; }
.tour-play svg { margin-left: 2px; }
.tour-card summary:hover .tour-play { transform: scale(1.08); }
.tour-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tour-t { display: flex; align-items: center; gap: 10px; }
.tour-card .tour-t h3 { font-size: 18px; }
.tour-go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-weight: 500; font-size: 14px; white-space: nowrap; }
.tour-card[open] .tour-go { visibility: hidden; }
.tour-card[open] summary .chev { transform: rotate(180deg); }
.legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink2); margin: 2px 0 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }

/* Page indexing summary */
.ix-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); border: 1px solid var(--line); border-radius: 12px 12px 0 0; background: #fff; }
.ix-sum > div { padding: 16px 20px; border-right: 1px solid var(--line); }
.ix-sum .val { font-size: 32px; font-weight: 500; }
.ix-sum .lbl { display: flex; align-items: center; gap: 8px; color: var(--ink2); font-size: 13px; }

/* URL inspection */
.insp-url { font-size: 15px; color: var(--ink2); overflow-wrap: anywhere; margin-bottom: 18px; }
.verdict { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; }
.verdict .ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.verdict.good .ic { background: var(--good); } .verdict.bad .ic { background: var(--bad); }
.verdict h2 { margin: 2px 0 4px; font-size: 20px; font-weight: 500; }
.verdict p { margin: 0; color: var(--ink2); }
.verdict .acts { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.acc { border-top: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 24px; cursor: pointer; font-weight: 500; font-size: 15px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .chev { margin-left: auto; transition: transform .15s; color: var(--mute); }
.acc[open] summary .chev { transform: rotate(180deg); }
.acc .body { padding: 0 24px 20px 78px; }
.kv h5 { font: 500 11px 'Geist Mono'; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin: 18px 0 6px; }
.kv h5:first-child { margin-top: 4px; }
.kv .r { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line2); }
.kv .r span:first-child { color: var(--ink2); }
.kv .r span:last-child { overflow-wrap: anywhere; }
.live-note { margin: 0 24px 18px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: #1a3fa8; font-size: 13px; }

.ours-note { display: block; font-size: 13px; color: var(--ink2); background: #fff; border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; z-index: 50; display: none; }

@media (max-width: 900px) {
  .tour-card summary.card-h { gap: 14px; padding: 16px; } .tour-thumb { width: 96px; } .tour-play { width: 32px; height: 32px; } .tour-go { display: none; } .tour-card summary .chev { margin-left: auto; }
  :root { --nav: 0px; }
  .nav { display: none; z-index: 30; width: 264px; box-shadow: 0 20px 50px -20px rgba(18,22,31,.4); }
  .nav.open { display: block; }
  .menu-btn { display: grid; }
  .top { gap: 8px; padding: 0 10px; }
  .logo { width: auto; }
  .logo b { display: none; }
  .inspect-box { min-width: 0; }
  .top .right #synced { display: none; }
  main { padding: 20px 16px 60px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ov-grid { grid-template-columns: 1fr; }
  td, th { padding-left: 12px; padding-right: 12px; }
  .kv .r { grid-template-columns: 1fr; gap: 2px; }
  .acc .body { padding-left: 24px; }
  .verdict { flex-wrap: wrap; }
  .verdict .acts { margin-left: 0; justify-content: flex-start; }
}

.ours-note svg { vertical-align: -4px; margin-right: 6px; }
.ix-sum.strip { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-radius: 12px; margin-bottom: 24px; }
.ix-sum.strip > div:last-child { border-right: 0; }
.ix-sum.three { grid-template-columns: repeat(3, minmax(0, 220px)); }
td.wide { min-width: 230px; }
td.nowrap, th.nowrap { white-space: nowrap; }

/* Dots under the Performance chart: something changed on the site that day. */
.note-mark { fill: var(--ink2); }
.tip-notes { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; font-size: 12px; color: var(--ink2); max-width: 280px; }
.tip-notes div + div { margin-top: 3px; }

/* Buyer questions: the walkthrough film's three linked columns. The three to write next as full cards,
   every other question as compact rows in one card. */
.bq-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 22px; }
.bq-tabs button { padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--ink2); border: 1px solid var(--line); background: #fff; cursor: pointer; }
.bq-tabs button:hover { border-color: #c7d2e8; }
.bq-tabs button.on { background: var(--accent-soft); border-color: #c9d8fb; color: var(--accent); font-weight: 500; }
.bq-list { overflow: hidden; margin-top: 4px; }
.bq-row { display: grid; grid-template-columns: minmax(0, 1.25fr) 56px 112px minmax(0, 1.4fr) 20px; grid-template-areas: "s n x i c"; column-gap: 24px;
  align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line2); cursor: pointer; }
.bq-row:hover { background: #fafbfe; }
.bq-row.bq-top { background: #f3f6fe; border-bottom-color: #e3eafb; }
.bq-row.bq-top:hover { background: #edf2fe; }
.bq-row.bq-h { cursor: default; padding: 12px 20px; border-bottom: 1px solid var(--line); font: 500 11px 'Geist Mono'; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.bq-row.bq-h:hover { background: none; }
.bq-row.bq-h > * { font-size: 11px; color: var(--mute); }
.bq-s { grid-area: s; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.bq-n { grid-area: n; font-size: 14px; color: var(--ink2); }
.bq-x { grid-area: x; display: flex; align-items: center; gap: 8px; }
.bq-i { grid-area: i; font-size: 14px; line-height: 1.45; }
.bq-it { color: var(--accent); font-weight: 500; }
.bq-i a { color: var(--ink2); text-decoration: underline; text-decoration-color: #c7d0e2; text-underline-offset: 3px; }
.bq-c { grid-area: c; display: grid; transition: transform .2s; }
.bq-row.open .bq-c { transform: rotate(180deg); }
.bq-m { display: none; }
.bq-box { width: 16px; height: 16px; flex: none; border: 1.5px solid #c7d0e2; border-radius: 4px; background: #fff; display: grid; place-items: center; }
.bq-box.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.bq-box svg { stroke-width: 3; }
.bq-d { grid-column: 1 / -1; padding: 14px 0 4px; cursor: default; }
.bq-q { margin-top: 6px; font-size: 16px; font-weight: 500; line-height: 1.4; max-width: 760px; }
.bq-f { margin-top: 8px; font-size: 13px; color: var(--mute); }
.bq-d p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink2); max-width: 760px; }
.bq-more { padding: 14px 18px; text-align: center; }
@media (max-width: 900px) {
  .page-h { flex-wrap: wrap; row-gap: 8px; }
  .bq-row { grid-template-columns: auto auto 1fr 20px; grid-template-areas: "s s s c" "n x . ." "i i i i"; column-gap: 16px; row-gap: 6px; padding: 14px 16px; }
  .bq-row.bq-h { display: none; } .bq-m { display: inline; } .bq-n, .bq-x { font-size: 13px; color: var(--mute); }
}

/* AI answers: Search Console's tiles and tabs, and a side panel for one prompt's answers */
.metric.static { cursor: default; }
.metric[data-m=named].on { background: var(--clicks); } .metric[data-m=named].on .box { color: var(--clicks); }
.metric[data-m=cited].on { background: var(--impressions); } .metric[data-m=cited].on .box { color: var(--impressions); }
.chip.on { background: var(--accent-soft); border-color: #c9d8fb; color: var(--accent); }
.lbl2 { font: 500 11px 'Geist Mono'; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.lbl2.acc { color: var(--accent); }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-weight: 500; }
.ai-dim { position: fixed; inset: var(--top) 0 0 0; background: rgba(250,251,254,.6); z-index: 30; }
.ai-drawer { position: fixed; top: var(--top); right: 0; bottom: 0; width: 480px; max-width: 100%; background: #fff; border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px -30px rgba(18,22,31,.35); padding: 24px 26px 40px; overflow-y: auto; z-index: 31; }
.ai-x { position: absolute; top: 14px; right: 14px; }
.ai-q { font-size: 19px; font-weight: 500; margin: 6px 40px 4px 0; line-height: 1.3; }
.ans { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 12px; }
.ans h4 { margin: 0; font-size: 15px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.bchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bchips span { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--ink2); }
.ans-f { font-size: 12px; color: var(--mute); margin-top: 8px; }
.ans-text { margin-top: 12px; padding: 12px 14px; background: var(--paper); border-radius: 8px; font-size: 13px; color: var(--ink2); max-height: 380px; overflow-y: auto; }
.ans-list { margin: 6px 0 0; padding-left: 18px; font-size: 13px; } .ans-list li { margin: 3px 0; overflow-wrap: anywhere; }
#ai-remove { margin-top: 18px; font-size: 13px; }

/* Actions: the highlight box with the biggest gap, then numbered rows that open. Steps lead, evidence folds away. */
.lbl2.eyebrow { color: var(--accent); }
.hero { background: linear-gradient(180deg, #f3f6fe, #fff 60%); border: 1px solid #c9d8fb; border-radius: 16px; padding: 28px 32px 24px; margin-bottom: 32px; }
.hero h2 { margin: 10px 0 0; font-size: 26px; font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
.hero-why { margin: 10px 0 0; color: var(--ink2); font-size: 15px; line-height: 1.55; max-width: 72ch; }
.hero .act-meta { margin-top: 16px; }
.hero-main { cursor: pointer; }
.hero-tog { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; color: var(--accent); font-weight: 500; font-size: 14px; }
.hero-tog svg { transform: rotate(-90deg); transition: transform .15s; } .hero.open .hero-tog svg { transform: none; }
.hero-main:hover h2 { color: var(--accent); }
.hero-top { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: start; }
.act-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; white-space: nowrap; }
.gap { display: block; border-left: 1px solid #c9d8fb; padding-left: 28px; color: inherit; }
.gap:hover .gv { color: var(--accent); }
.gv { font-size: 40px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; margin-top: 8px; } .gv small { font-size: 16px; color: var(--mute); font-weight: 400; }
.gs { font-size: 13px; color: var(--ink2); margin-top: 6px; } .gs b { font-weight: 500; }
.act-do { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; margin-top: 24px; padding-top: 22px; border-top: 1px solid #dfe7fb; }
.act-do ol { margin: 8px 0 0; padding-left: 18px; } .act-do li { margin: 6px 0; } .act-do p { margin: 8px 0 0; }
.act-do li, .act-do p { color: var(--ink2); font-size: 14px; line-height: 1.5; }
.act-btns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.act-ev { margin-top: 18px; font-size: 13px; }
.act-ev summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--accent); font-weight: 500; }
.act-ev summary::-webkit-details-marker { display: none; }
.act-ev summary .mute { font-weight: 400; }
.act-ev summary svg { transform: rotate(-90deg); transition: transform .15s; } .act-ev[open] summary svg { transform: none; }
.act-ev ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink2); } .act-ev li { margin: 5px 0; }
.act-ev a { font-size: 12px; margin-left: 2px; white-space: nowrap; }
.pill.hi { background: var(--good-soft); color: #126533; } .pill.md { background: #fff7ec; color: var(--warn); } .pill.ef { background: #eef1f6; color: var(--ink2); }
.act { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.act-h { display: grid; grid-template-columns: 34px 1fr auto 20px; gap: 18px; align-items: center; padding: 16px 20px; cursor: pointer; }
.act-h .no { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 600 13px 'Geist Mono'; }
.act-h h3 { margin: 0; font-size: 16px; font-weight: 500; } .act-h .why { color: var(--mute); font-size: 13px; margin-top: 3px; }
.act .chev { display: grid; transition: transform .2s; } .act.open .chev { transform: rotate(180deg); }
.act-b { border-top: 1px solid var(--line); padding: 4px 20px 20px 72px; }
.act-b .act-do { margin-top: 16px; padding-top: 0; border-top: 0; }
.done-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line2); color: var(--ink2); }
.done-row:last-child { border: 0; } .done-row > svg { color: var(--good); } .done-row .mute { font-size: 13px; }
.act-later { margin: 4px 0 16px; font-size: 13px; }
.ai-drawer.ask { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.ask-fab { position: fixed; right: 28px; bottom: 28px; z-index: 25; display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px 13px 17px;
  border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(29, 79, 216, .55); transition: transform .15s, box-shadow .15s; }
.ask-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(29, 79, 216, .6); }
.asking .ask-fab { display: none; }
.ask-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px 26px; border-bottom: 1px solid var(--line2); }
.ask-thread { flex: 1; overflow-y: auto; padding: 20px 26px 24px; }
.ask-lead { margin: 0 0 14px; color: var(--ink2); font-size: 15px; }
.ask-sugs { display: grid; gap: 8px; }
.ask-sugs button { text-align: left; font: inherit; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.ask-sugs button:hover { border-color: var(--accent); color: var(--accent); }
.ask-q { margin: 22px 0 8px auto; max-width: 85%; width: fit-content; background: var(--accent-soft); color: var(--ink); border-radius: 12px 12px 4px 12px; padding: 10px 14px; font-size: 14px; }
.ask-q:first-child { margin-top: 0; }
.ask-a { font-size: 14px; line-height: 1.6; color: var(--ink2); }
.ask-a p { margin: 0 0 10px; } .ask-a ul { margin: 0 0 10px; padding-left: 18px; } .ask-a li { margin: 5px 0; }
.ask-src { margin-top: 4px; font-size: 12px; color: var(--mute); }
.ask-err { color: var(--bad); }
.ask-wait { color: var(--mute); }
.dots { display: inline-flex; gap: 3px; margin-left: 6px; } .dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: blink 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.ask-box { display: flex; gap: 10px; align-items: flex-end; padding: 14px 16px 16px; border-top: 1px solid var(--line); background: #fff; }
.ask-box textarea { flex: 1; resize: none; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-height: 44px; max-height: 140px; color: var(--ink); }
.ask-box textarea:focus { outline: none; border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .act .chev, .act-ev summary svg { transition: none; } .dots i { animation: none; opacity: .6; } }
@media (max-width: 900px) {
  .hero { padding: 20px; } .hero-top, .act-do { grid-template-columns: 1fr; gap: 20px; }
  .gap { border-left: 0; padding-left: 0; border-top: 1px solid #c9d8fb; padding-top: 14px; }
  .ask-fab { right: 16px; bottom: 16px; padding: 14px; } .ask-fab span { display: none; }
  .act-head { flex-wrap: wrap; row-gap: 6px; } .act-head .act-read { order: 5; flex-basis: 100%; font-size: 13px; }
  .act-h { grid-template-columns: 34px 1fr 20px; gap: 14px; } .act-h .act-meta { grid-column: 2; } .act-b { padding-left: 20px; }
}

ul.cov { margin: 6px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.5; color: var(--ink2); } ul.cov li { margin: 3px 0; }

/* Settings: the profile card and its suggested tracking swaps (28 Oct) */
.card-h .grow { flex: 1; }
.lst { display: flex; flex-wrap: wrap; gap: 6px; }
.prof-f textarea { width: 100%; resize: vertical; font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--ink); background: #fff; }
.prof-f textarea:focus { outline: none; border-color: var(--accent); }
.scroll-x { overflow-x: auto; }
.prof-sug .was { color: var(--mute); text-decoration: line-through; }
.prof-sug .acts { display: flex; gap: 6px; justify-content: flex-end; }
.prof-sug .acts .btn { height: 30px; padding: 0 12px; font-size: 13px; }
