/* Shared by every Visiblio page: tokens, header, buttons, form controls, footer. */
/* Colours: cobalt for actions and links, cyan for data, coral "spark" for one highlight per screen, violet "glow" for the logo and hero only.
   Good / fair / bad keep their own green, amber and red and are always shown with a word or shape. Day and night are set independently: a person's
   choice (data-theme on <html>, from theme.ts) wins, otherwise the device decides. */
:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f2fa;
  --ink: #10152a;
  --muted: #586080;
  --line: #e1e5f0;
  --accent: #2554ff;
  --accent-strong: #1b3fcc;
  --accent-ink: #ffffff;
  --accent-soft: #e8edff;
  --accent-2: #0891b2;
  --spark: #e5532d;
  --spark-text: #b8431f;
  --glow: #6b4df0;
  --chart-1: #2554ff; --chart-2: #0891b2; --chart-3: #6b4df0; --chart-4: #15803d; --chart-5: #e5532d; --chart-6: #b7791f; --chart-7: #c026a3; --chart-8: #64748b;
  --grad: linear-gradient(180deg, #3361ff 0%, #2554ff 100%);
  --grad-hero: linear-gradient(135deg, #090c14 0%, #101c5c 58%, #2b1f7a 120%);
  --gap-fg: #92400e; --gap-bg: #fff1d6; --gap-bd: #f4d48a;
  --gen-fg: #0b5a8a; --gen-bg: #e1f2fd; --gen-bd: #a8d4ee;
  --mis-fg: #5b21b6; --mis-bg: #ede9fe; --mis-bd: #cfc4f8;
  --can-fg: #be123c; --can-bg: #ffe4ea; --can-bd: #f7b4c2;
  --cov-fg: #15803d; --cov-bg: #dcfce7; --cov-bd: #a6e3bb;
  --unk-fg: #475069; --unk-bg: #eceef6; --unk-bd: #d3d7e6;
  --shadow: 0 1px 2px rgba(16, 21, 42, .04), 0 8px 24px rgba(16, 21, 42, .06);
  --shadow-lg: 0 12px 40px rgba(16, 21, 42, .16);
  /* Soft raised look for summary cards only: a light top edge and a long, low shadow. Text and borders stay strong, so nothing depends on the shadow. */
  --soft: inset 0 1px 0 rgba(255, 255, 255, .95), 0 10px 22px -12px rgba(20, 40, 120, .30), 0 2px 5px rgba(20, 40, 120, .07);
  --soft-up: inset 0 1px 0 rgba(255, 255, 255, .95), 0 16px 28px -14px rgba(20, 40, 120, .38), 0 3px 8px rgba(20, 40, 120, .09);
  --radius: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #090c14; --surface: #101520; --surface-2: #161c2b; --ink: #eaf0ff; --muted: #9fa6c4; --line: #222b40;
    --accent: #7f9bff; --accent-strong: #a9bbff; --accent-ink: #090c14; --accent-soft: #162250;
    --accent-2: #22d3ee; --spark: #ff7a59; --spark-text: #ff9a7e; --glow: #8b6bff;
    --chart-1: #6f8cff; --chart-2: #22d3ee; --chart-3: #a58bff; --chart-4: #4ade80; --chart-5: #ff7a59; --chart-6: #fbbf5c; --chart-7: #f472b6; --chart-8: #94a3b8;
    --grad: linear-gradient(180deg, #3a60ff 0%, #3358f0 100%);
    --gap-fg: #fbbf6a; --gap-bg: #3a2a10; --gap-bd: #5b4216;
    --gen-fg: #7dd3fc; --gen-bg: #0f2f42; --gen-bd: #1d4e6b;
    --mis-fg: #c4b5fd; --mis-bg: #2a2150; --mis-bd: #43367d;
    --can-fg: #fda4af; --can-bg: #45161f; --can-bd: #6b2531;
    --cov-fg: #86e0a0; --cov-bg: #12331e; --cov-bd: #1f5233;
    --unk-fg: #b4bdd9; --unk-bg: #20284a; --unk-bd: #343e68;
    --shadow: none; --shadow-lg: 0 12px 40px rgba(0, 0, 0, .55);
    --soft: inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 22px -12px rgba(0, 0, 0, .7), 0 2px 5px rgba(0, 0, 0, .25);
    --soft-up: inset 0 1px 0 rgba(255, 255, 255, .07), 0 16px 28px -14px rgba(0, 0, 0, .8), 0 3px 8px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090c14; --surface: #101520; --surface-2: #161c2b; --ink: #eaf0ff; --muted: #9fa6c4; --line: #222b40;
  --accent: #7f9bff; --accent-strong: #a9bbff; --accent-ink: #090c14; --accent-soft: #162250;
  --accent-2: #22d3ee; --spark: #ff7a59; --spark-text: #ff9a7e; --glow: #8b6bff;
    --chart-1: #6f8cff; --chart-2: #22d3ee; --chart-3: #a58bff; --chart-4: #4ade80; --chart-5: #ff7a59; --chart-6: #fbbf5c; --chart-7: #f472b6; --chart-8: #94a3b8;
  --grad: linear-gradient(180deg, #3a60ff 0%, #3358f0 100%);
  --gap-fg: #fbbf6a; --gap-bg: #3a2a10; --gap-bd: #5b4216;
  --gen-fg: #7dd3fc; --gen-bg: #0f2f42; --gen-bd: #1d4e6b;
  --mis-fg: #c4b5fd; --mis-bg: #2a2150; --mis-bd: #43367d;
  --can-fg: #fda4af; --can-bg: #45161f; --can-bd: #6b2531;
  --cov-fg: #86e0a0; --cov-bg: #12331e; --cov-bd: #1f5233;
  --unk-fg: #b4bdd9; --unk-bg: #20284a; --unk-bd: #343e68;
  --shadow: none; --shadow-lg: 0 12px 40px rgba(0, 0, 0, .55);
  --soft: inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 22px -12px rgba(0, 0, 0, .7), 0 2px 5px rgba(0, 0, 0, .25);
  --soft-up: inset 0 1px 0 rgba(255, 255, 255, .07), 0 16px 28px -14px rgba(0, 0, 0, .8), 0 3px 8px rgba(0, 0, 0, .3);
}
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; /* Type scales gently with the screen: 14px on a small laptop up to 16px on a large screen. */ font-size: clamp(14px, 0.45vw + 10px, 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: .9375rem/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; margin: 0; }
/* Headings and the name use Google Sans Flex (free, SIL Open Font License); text and tables stay in Inter. */
@font-face { font-family: "Google Sans Flex"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/google-sans-flex-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
h1, h2, h3, .brand-name { font-family: "Google Sans Flex", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
p { margin: 0; }
a { color: var(--accent); }
code { font-family: var(--mono); font-size: .9em; background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 8px 22px; min-height: 66px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.mark { width: 40px; height: 40px; flex: none; overflow: visible; }
.mark .eye { fill: var(--accent); }
.mark .iris { fill: color-mix(in srgb, var(--accent) 72%, black); }
.mark .hd { fill: none; stroke: white; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; }
.mark .sp { fill: var(--spark); }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -.025em; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-sub { font-size: .66rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); white-space: nowrap; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .brand-sub { display: none; } }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover { color: var(--ink); background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); }
.soon { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; background: var(--accent-soft); color: var(--accent); padding: 1px 7px; border-radius: 99px; margin-left: 4px; font-weight: 700; }
@media (max-width: 720px) {
  .top-inner { min-height: 0; padding-top: 10px; padding-bottom: 8px; }
  .nav { order: 3; flex-basis: 100%; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 2px; }
  .nav a { padding: 6px 12px; }
  #connect { display: none; }
}

/* Controls */
.btn { font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--grad); color: #fff; border: 1px solid transparent; padding: 10px 18px; border-radius: 12px; transition: filter .15s, transform .08s, box-shadow .15s; box-shadow: 0 2px 10px rgba(37, 84, 255, .28); }
.btn:hover:not(:disabled) { filter: brightness(1.07); box-shadow: 0 4px 16px rgba(37, 84, 255, .36); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-strong); filter: none; box-shadow: none; }
.btn.small { padding: 6px 12px; font-size: .86rem; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .drop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; min-width: 0; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); outline: none; }

/* Searchable drop-down (used for Search Console websites) */
.combo { position: relative; display: block; width: 100%; }
.combo input { width: 100%; padding-right: 42px; }
.combo-btn { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 40px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 0 10px 10px 0; display: grid; place-items: center; font-size: .9rem; }
.combo-btn:hover { color: var(--accent); background: var(--accent-soft); }
.combo-btn span { transition: transform .15s; display: inline-block; }
.combo[data-open="true"] .combo-btn span { transform: rotate(180deg); }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; max-height: 320px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; margin: 0; list-style: none; }
.combo-list li { padding: 9px 12px; border-radius: 9px; cursor: pointer; word-break: break-all; font-size: .92rem; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--accent-soft); color: var(--accent-strong); }
.combo-list li.combo-empty { cursor: default; color: var(--muted); }
.combo-list li.combo-empty:hover { background: transparent; color: var(--muted); }

.foot-site { border-top: 1px solid var(--line); margin-top: 64px; padding: 26px 0 44px; color: var(--muted); font-size: .88rem; }
.foot-site .wrap { display: flex; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
.ver { white-space: nowrap; opacity: .75; }

[hidden] { display: none !important; }

/* Team sign-in screen and account menu */
html.gated, html.gated body { overflow: hidden; }
.gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 20% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent), var(--bg, #f6f7fb); }
.gate-card { width: min(440px, 100%); padding: 32px 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 24px 70px rgba(30, 30, 80, .18); text-align: center; display: grid; gap: 12px; }
.gate-logo { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink); }
.gate-logo .brand-name { font-size: 1.6rem; }
.gate-title { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; }
.gate-text { margin: 0; color: var(--muted); line-height: 1.5; }
.gate-notice { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--can-bg); color: var(--can-fg); font-weight: 600; }
.gate-btn { justify-self: center; }
.gate-input { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: left; }
.gate-small { margin: 0; font-size: .82rem; color: var(--muted); }
.user-box { position: relative; margin-left: auto; }
.user-chip { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 99px; background: var(--grad, var(--accent)); color: #fff; font-weight: 700; cursor: pointer; }
.user-avatar { display: grid; place-items: center; width: 100%; height: 100%; }
.user-menu { position: absolute; right: 0; top: 46px; min-width: 230px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 16px 40px rgba(20, 20, 60, .18); z-index: 20; display: grid; gap: 4px; }
.user-menu[hidden] { display: none; }
.user-menu p { margin: 0; }
.user-who { font-weight: 700; }
.user-mail, .user-role { color: var(--muted); font-size: .84rem; word-break: break-all; }
.user-link { display: block; padding: 8px 6px; border: 0; background: none; font: inherit; color: var(--accent-strong); text-align: left; cursor: pointer; text-decoration: none; border-radius: 8px; }
.user-link:hover { background: var(--accent-soft); }
.signin-link { margin-left: auto; }
.steps { padding-left: 20px; display: grid; gap: 8px; }

/* The mark: an eye whose iris is three rising bars (visibility that grows) */


/* Header navigation: drop-down bar on a computer (groups, tools, a tool's sections), menu button on a phone, account on the right */
.top-inner { flex-wrap: nowrap; }
.nav-desk { display: none; }
.nav-acct-slot { margin-left: auto; display: flex; align-items: center; min-width: 0; }
.nav-mob { position: static; display: block; }
.nav-caret { display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 8px; opacity: .7; }
.nav-avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; }

/* Account */
.nav-acct { position: relative; }
.nav-acct-btn { display: inline-flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; max-width: 100%; }
.nav-acct-btn:hover, .nav-acct-btn[aria-expanded="true"] { background: var(--accent-soft); }
.nav-acct-who { display: none; text-align: left; line-height: 1.15; min-width: 0; }
.nav-acct-who b { display: block; font-size: .88rem; }
.nav-acct-who span { display: block; font-size: .76rem; color: var(--muted); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-acct-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); z-index: 60; display: grid; gap: 4px; }
.nav-acct-menu[hidden] { display: none; }
.nav-acct-menu p { margin: 0; }
.nav-acct-name { font-weight: 700; }
.nav-acct-mail, .nav-acct-role { color: var(--muted); font-size: .84rem; word-break: break-all; }
.nav-acct-link { display: block; padding: 8px 8px; border: 0; background: none; font: inherit; font-weight: 600; text-align: left; color: var(--ink); text-decoration: none; border-radius: 8px; cursor: pointer; }
.nav-acct-link:hover { background: var(--accent-soft); }

/* Phone menu */
.nav-btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.nav-btn:hover, .nav-btn[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent-strong); }
.nav-bars { display: grid; gap: 4px; width: 18px; }
.nav-bars i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .18s, opacity .18s; }
.nav-btn[aria-expanded="true"] .nav-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-btn[aria-expanded="true"] .nav-bars i:nth-child(2) { opacity: 0; }
.nav-btn[aria-expanded="true"] .nav-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-label { display: none; }
.nav-panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - 70px); overflow-y: auto; padding: 14px var(--gutter) 24px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 50; display: grid; gap: 8px; }
.nav-panel[hidden] { display: none; }
.nav-panel-acct:empty { display: none; }
.nav-panel-acct { padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); display: grid; gap: 8px; }
.nav-panel-who { display: flex; gap: 10px; align-items: center; }
.nav-panel-who div { display: grid; line-height: 1.2; min-width: 0; }
.nav-panel-who div span { font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.nav-panel-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-acc, .nav-acc2 { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.nav-acc > summary { list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.nav-acc > summary::-webkit-details-marker, .nav-acc2 > summary::-webkit-details-marker { display: none; }
.nav-acc > summary::after, .nav-acc2 > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; flex: none; margin-left: 10px; }
.nav-acc[open] > summary::after, .nav-acc2[open] > summary::after { transform: rotate(-135deg); }
.nav-acc[open] > summary { border-bottom: 1px solid var(--line); color: var(--accent-strong); }
.nav-acc-list { display: grid; padding: 6px; gap: 2px; }
.nav-acc2 { border: 0; border-radius: 10px; }
.nav-acc2 > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 10px; }
.nav-acc2 > summary > b { display: block; }
.nav-acc2 > summary > span { display: block; font-size: .84rem; color: var(--muted); }
.nav-acc2 > summary:hover { background: var(--accent-soft); }
.nav-item { display: grid; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.nav-item b { font-weight: 700; }
.nav-item span { font-size: .84rem; color: var(--muted); }
.nav-item.sub { margin-left: 14px; padding: 6px 10px; border-left: 2px solid var(--line); border-radius: 0 10px 10px 0; }
.nav-item:hover, .nav-item:focus-visible { background: var(--accent-soft); }
.nav-item[aria-current="page"] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.nav-home { display: inline-block; margin: 2px 6px; font-weight: 700; }

/* Computer: the menus sit in the bar */
@media (min-width: 960px) {
  .nav-mob { display: none; }
  .nav-desk { display: flex; gap: 2px; align-items: center; flex: 1; min-width: 0; margin-left: 12px; }
  .nav-acct-slot { margin-left: 0; }
  .nav-acct-who { display: block; }
  .nav-l1 { position: relative; }
  .nav-l1-btn { display: inline-flex; align-items: center; border: 0; background: transparent; padding: 9px 14px; border-radius: 999px; font: inherit; font-weight: 650; color: var(--muted); cursor: pointer; white-space: nowrap; }
  .nav-l1-btn { transition: background .2s, color .2s; }
  .nav-l1-btn:hover, .nav-l1-btn[aria-expanded="true"] { background: var(--accent-soft); color: var(--ink); }
  .nav-l1-btn.here { color: var(--accent-strong); background: var(--accent-soft); }
  .nav-l1-btn[aria-expanded="true"] .nav-caret { transform: rotate(-135deg) translateY(-1px); }
  .nav-l2 { position: absolute; left: 0; top: 100%; min-width: 320px; padding: 10px; margin-top: 4px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); z-index: 55; display: grid; gap: 2px; }
  .nav-l2[hidden] { display: none; }
  .nav-l2:not([hidden]) { animation: nav-in .22s ease-out; }
  /* A bridge over the gap under the button, so the pointer never leaves the menu on its way down. */
  .nav-l2::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  @keyframes nav-in { from { transform: translateY(-4px); } to { transform: none; } }
  @media (prefers-reduced-motion: reduce) { .nav-l2:not([hidden]) { animation: none; } }
  .nav-l2.right { left: auto; right: 0; }
  .nav-l2-row { position: relative; display: flex; align-items: stretch; }
  .nav-l2-item { flex: 1; display: grid; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
  .nav-l2-item b { font-weight: 700; }
  .nav-l2-item span { font-size: .84rem; color: var(--muted); }
  .nav-l2-item:hover, .nav-l2-item:focus-visible, .nav-l2-row:hover > .nav-l2-item { background: var(--accent-soft); }
  .nav-l2-item[aria-current="page"] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
  .nav-chev { align-self: center; width: 8px; height: 8px; margin: 0 14px 0 4px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg); }
  .nav-l3 { display: none; grid-template-columns: repeat(2, minmax(min(100%, 210px), 1fr)); column-gap: 6px; position: absolute; left: calc(100% + 6px); top: -10px; min-width: 460px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); gap: 2px; z-index: 56; }
  /* The side panel is opened by nav.js (class sub-open) after a short rest, and stays while the pointer travels to it. This bridge covers the menu padding and the gap between the row and the panel. */
  .nav-l2-row.has-sub.sub-open::after, .nav-l2-row.has-sub:focus-within::after { content: ""; position: absolute; top: -4px; bottom: -4px; left: 100%; width: 24px; }
  .nav-l2-row.has-sub.sub-open > .nav-l3, .nav-l2-row.has-sub:focus-within > .nav-l3 { display: grid; animation: nav-in .22s ease-out .12s backwards; }
  .nav-l3-head { grid-column: 1 / -1; }
  .nav-l3 { max-height: calc(100vh - 140px); overflow-y: auto; }
  .nav-l3-head { margin: 2px 12px 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--accent); }
  .nav-l3 { align-content: start; }
  .nav-l3-item { display: grid; align-content: start; padding: 7px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
  .nav-l3-item b { font-weight: 650; font-size: .94rem; }
  .nav-l3-item span { font-size: .8rem; color: var(--muted); }
  .nav-l3-item:hover, .nav-l3-item:focus-visible { background: var(--accent-soft); }
  .nav-l3-item[aria-current="page"] { background: var(--accent-soft); }
}
/* Laptops (13 to 15 inch): tighter menu; the name shows beside the avatar only when there is room */
@media (min-width: 960px) and (max-width: 1499px) {
  .nav-acct-who { display: none; }
  .nav-desk { margin-left: 6px; }
  .nav-l1-btn { padding: 9px 9px; font-size: .94rem; }
}
@media (min-width: 960px) and (max-width: 1279px) {
  .nav-l1-btn { padding: 9px 6px; font-size: .9rem; }
}
@media (max-width: 959px) {
  /* On a phone the account lives inside the menu, so the bar holds only the logo and the menu button. */
  .nav-acct-slot { display: none; }
  .nav-mob { margin-left: auto; }
  .nav-panel { position: absolute; }
}
@media (max-width: 380px) { .nav-acct-btn { padding-right: 4px; } .nav-acct-btn .nav-caret { display: none; } }

/* One-click comparisons and the plain sentence with both periods */
.qc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; }
.qc-title { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.qc-btn { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer; transition: background .15s, border-color .15s; max-width: 100%; text-align: center; }
.qc-btn:hover { border-color: var(--accent); background: var(--surface-2); }
.qc-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.qc-btn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pd-desc { margin: 6px 0 0; font-size: .9rem; }
.pd-desc:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .qc-btn { transition: none; } }
.pd-gabar .qc-row { flex: 1 1 100%; margin: 0; }

/* Summary cards: the soft raised look (the crawler overview, weekly audit, PageSpeed and dashboard numbers) */
html :is(.cr-hero, .cr-topic, .wk-kpi, .ps-score, .ps-vital, .pd-kpi:not([aria-pressed="true"])) { box-shadow: var(--soft); }
html :is(.cr-topic, button.pd-kpi) { transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
html :is(.cr-topic, button.pd-kpi):hover { box-shadow: var(--soft-up); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { html :is(.cr-topic, button.pd-kpi) { transition: none; } html :is(.cr-topic, button.pd-kpi):hover { transform: none; } }

/* Header menus: a clear focus ring for keyboard users and a calm hover */
.nav-l1-btn:focus-visible, .nav-l2-item:focus-visible, .nav-l3-item:focus-visible, .nav-acct-btn:focus-visible, .nav-acct-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.nav-l2-item, .nav-l3-item { transition: background .15s ease; }
@media (prefers-reduced-motion: reduce) { .nav-l2-item, .nav-l3-item { transition: none; } }

/* Header fit: set by nav.js when the menus and the account name do not fit on one line */
.top.nav-noname .nav-acct-who { display: none !important; }
.top.nav-compact .nav-desk { display: none !important; }
.top.nav-compact .nav-acct-slot { display: none !important; }
.top.nav-compact .nav-mob { display: block !important; margin-left: auto; }

/* Header type and spacing follow the screen, so the menus fit on a small laptop instead of running into the account */
.top .nav-l1-btn { font-size: clamp(.8rem, .5vw + .5rem, .98rem); padding: 9px clamp(5px, .6vw, 14px); }
.top .brand-name { font-size: clamp(1.05rem, .6vw + .8rem, 1.35rem); }
@media (min-width: 520px) { .nav-btn .nav-label { display: inline; } }

/* Short screens (a small laptop is often only 700 to 800 px tall): menus use less height, and the long ones scroll instead of running off the screen */
.nav-l3 { max-height: calc(100vh - 24px); }
@media (max-height: 820px) {
  .nav-l2-item { padding: 6px 12px; }
  .nav-l2-item span { font-size: .78rem; line-height: 1.3; }
  .nav-l3 { padding: 8px; }
  .nav-l3-head { margin: 0 12px 4px; }
  .nav-l3-item { padding: 5px 12px; }
  .nav-l3-item b { font-size: .88rem; }
  .nav-l3-item span { font-size: .74rem; line-height: 1.25; }
}
@media (max-height: 680px) {
  /* Very short screens: tighter rows, but the description lines stay (the panel scrolls instead). */
  .nav-l2-item, .nav-l3-item { padding-top: 4px; padding-bottom: 4px; }
  .nav-l3-item span, .nav-l2-item span { font-size: .72rem; line-height: 1.2; }
}
.nav-acc2 > summary > .nav-acc2-text { min-width: 0; display: grid; } .nav-acc2 > summary > .nav-acc2-text > b, .nav-acc2 > summary > .nav-acc2-text > span { display: block; }
.nav-acc2 > summary > .nav-acc2-text > span { font-weight: 400; font-size: .84rem; color: var(--muted); } .nav-acc2[open] > summary > .nav-acc2-text > span { color: var(--muted); }

/* The old plain header links in each page are replaced by nav.js; hide them from the first paint so the old header never flashes, and show the new bar only once it has measured itself */
.top-inner > nav.nav { display: none !important; }
.top:not(.nav-ready) .nav-desk, .top:not(.nav-ready) .nav-acct-slot, .top:not(.nav-ready) .nav-mob { visibility: hidden; }

/* Day / night switch (theme.ts) */
.theme-btn { order: 80; margin-left: 8px; flex: none; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.top-inner > .user-box, .top-inner > .signin-link { order: 90; margin-left: 8px; }
.theme-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Numbers line up in columns */
table, .num, .cnt, .lt-ov-val { font-variant-numeric: tabular-nums; }
