/* Poppins, the brand typeface, served from this site (no third-party requests). OFL, see fonts/OFL-Poppins.txt */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/poppins-latin-400-normal.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; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/poppins-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/poppins-latin-500-normal.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; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/poppins-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-latin-600-normal.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; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/poppins-latin-700-normal.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; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/poppins-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Brand palette, from the cookiesaudit.com brand manual (05 Color palette) */
:root {
  --navy: #0b1f44;         /* Navy Blue: headlines, text, dark surfaces */
  --blue: #2563eb;         /* Audit Blue: links, buttons, highlights */
  --blue-hover: #1d4ed8;
  --blue-tint: #eaf1fe;
  --blue-ink: #1e3a8a;     /* text on --blue-tint */
  --orange: #f59e0b;       /* Cookie Orange: secondary highlights, in small doses */
  --gray: #94a3b8;         /* Gray: dividers, captions on navy. Never text on white */
  --slate: #64748b;        /* Slate: secondary text on white (4.8:1) */

  --ink: var(--navy);
  --ink-2: #475569;
  --ink-3: var(--slate);
  --line: #e8edf4;
  --line-2: #dce3ec;
  --canvas: #f5f7fa;
  --surface: #ffffff;

  /* The sidebar sits on Navy Blue */
  --side-text: #cbd5e1;
  --side-muted: var(--gray);
  --side-line: rgba(148, 163, 184, .18);
  --side-hover: rgba(255, 255, 255, .06);
  --side-active: rgba(255, 255, 255, .11);

  --bad: #d92d20;
  --bad-tint: #fef1ef;
  --warn: #b25e09;
  --warn-tint: #fdf4e3;
  --good: #067a5f;
  --good-tint: #e7f7f2;
  --neutral-tint: #f1f4f8;

  --shadow-card: 0 1px 2px rgba(11, 31, 68, .05), 0 4px 14px rgba(11, 31, 68, .04);
  --radius: 14px;
  --sidebar-width: 236px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 14px/1.5 'Poppins', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 16px; height: 16px; display: block; flex: none; }

/* App shell: the sidebar and the workspace scroll independently */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
}
.workspace { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.content { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 24px 24px; }

/* Sidebar, on Navy Blue with the reversed logo */
.sidebar {
  display: flex;
  flex-direction: column;
  padding: 20px 14px 18px;
  overflow-y: auto;
  background: var(--navy);
  color: var(--side-text);
  scrollbar-color: rgba(148, 163, 184, .35) transparent;
}
.sidebar > * { flex: none; }
.sidebar :focus-visible { outline-color: #93c5fd; }
/* The brand manual asks for clear space of one shield height (about 20px here) around the logo */
.brand { display: block; padding: 0 4px; border-radius: 6px; }
.brand img { display: block; width: 100%; height: auto; }
.new-scan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 22px;
  padding: 9px 12px;
  background: var(--blue);
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
}
.new-scan:hover { background: var(--blue-hover); }
.nav-label {
  margin: 22px 8px 8px;
  color: var(--side-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav, .side-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.nav a, .side-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--side-text);
  font-size: 13px;
  text-align: left;
  text-decoration: none;
}
.nav a:hover, .side-item:hover { background: var(--side-hover); color: #fff; }
.nav a.active, .side-item.active { background: var(--side-active); color: #fff; font-weight: 500; }
.nav a.active::before, .side-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--orange);
}
.side-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-count { color: var(--side-muted); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.side-dot { width: 8px; height: 8px; border-radius: 3px; flex: none; margin: 0 4px; background: var(--blue); }
.side-dot.pulsing { background: var(--orange); }

/* Account, pinned to the bottom of the sidebar */
.account {
  position: sticky;
  bottom: -18px;
  margin: auto -14px -18px;
  padding: 12px 14px;
  background: var(--navy);
  border-top: 1px solid var(--side-line);
}
.account-row { display: flex; align-items: center; gap: 9px; }
.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.account-text { flex: 1; min-width: 0; line-height: 1.3; }
.account-name, .account-email { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-name { color: #fff; font-size: 13px; font-weight: 500; }
.account-email { color: var(--side-muted); font-size: 11.5px; }
.sign-out {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--side-muted);
}
.sign-out:hover { background: var(--side-hover); color: #fff; }
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #dadce0;
  border-radius: 10px;
  background: var(--surface);
  color: #1f1f1f;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.google-btn:hover { background: #f8f9fa; border-color: #c6c9cc; }
.google-btn .icon { width: 18px; height: 18px; }

/* Shown instead of the app when REQUIRE_LOGIN is on */
.login-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px;
  background:
    radial-gradient(circle at 112% 118%, var(--orange) 0 24vmax, transparent calc(24vmax + 1px)),
    radial-gradient(circle at 112% 118%, var(--blue) 0 36vmax, transparent calc(36vmax + 1px)),
    var(--navy);
}
.login-card {
  width: 100%;
  max-width: 380px;
  padding: 36px 30px 32px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(3, 10, 26, .35);
  text-align: center;
}
.login-card img { display: block; width: 240px; max-width: 100%; height: auto; margin: 0 auto; }
.login-card h1 { margin: 26px 0 18px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.login-error { margin: -6px 0 14px; color: var(--bad); font-size: 13px; }
.login-setup { color: var(--ink-2); font-size: 13px; }

/* Forms */
.field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ink-3);
}
.field:focus-within { border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 3px var(--blue-tint); }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.field input::placeholder { color: var(--ink-3); }
.add-domain { display: flex; gap: 8px; margin-bottom: 12px; padding: 12px; }
.btn-primary {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s;
}
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary:disabled { background: var(--gray); cursor: default; }
.add-domain .btn-primary { height: 38px; padding: 0 16px; border-radius: 10px; }
.select-soft {
  height: 32px;
  max-width: 220px;
  padding: 0 6px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
}
/* Room for a date, "· scheduled" and "(latest)" */
#history-select { max-width: 330px; }
.action-divider { width: 1px; height: 20px; margin: 0 2px; background: var(--line-2); }
.app-error { margin-bottom: 12px; padding: 11px 14px; border-radius: 12px; background: var(--bad-tint); color: var(--bad); font-size: 13px; }

/* Page header */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.page-heading { min-width: 0; }
.crumbs { margin-bottom: 2px; color: var(--ink-3); font-size: 12px; }
.crumbs:empty { display: none; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-title { min-width: 0; font-size: 24px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; }
.page-title .soft { color: var(--ink-3); font-weight: 500; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-3);
}
.filter:focus-within { border-color: var(--blue); color: var(--ink); }
.filter input { width: 150px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.btn-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(11, 31, 68, .05);
}
.btn-soft:hover { background: #f8fafc; }

.notice {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--warn-tint);
  color: #6f3b05;
  font-size: 13px;
}
.notice .icon { margin-top: 1px; color: var(--warn); }

/* Cards */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.cards { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr) minmax(0, 1.2fr); gap: 12px; }

.empty-state { padding: 72px 24px; text-align: center; color: var(--ink-2); }
.empty-state h2 { margin-bottom: 6px; color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.empty-state p { max-width: 46ch; margin: 0 auto; }
.empty-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue);
}
.empty-icon .icon { width: 22px; height: 22px; }

.checks { padding: 16px 18px; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.card-title .icon { color: var(--orange); width: 18px; height: 18px; }
.checks .card-title { padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.check-list { margin: 4px 0 0; padding: 0; list-style: none; }
.check-list li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.35;
}
.check-list li:last-child { border-bottom: 0; }
.check-box {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: #fff;
}
.check-box .icon { width: 12px; height: 12px; }
.check-list li.ok .check-box { background: var(--good); border-color: var(--good); }
.check-list li.bad .check-box { background: var(--bad); border-color: var(--bad); }
.check-list li.na .check-box { background: var(--neutral-tint); color: var(--ink-3); }
.check-list li.done .check-box { background: var(--blue); border-color: var(--blue); }
.check-list li.done .check-text { color: var(--ink-3); text-decoration: line-through; }
.check-list li.active .check-text { font-weight: 500; }
.check-list li.active .check-box { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.check-list li.todo .check-text { color: var(--ink-3); }
.check-note { display: block; margin-top: 1px; color: var(--ink-3); font-size: 12px; }

.tile { display: flex; flex-direction: column; padding: 16px 18px; min-height: 248px; }
.tile-title { font-size: 14px; font-weight: 600; }
.tile-number {
  margin: auto 0;
  padding: 12px 0;
  text-align: center;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tile-number.muted { color: #cbd5e1; }
.tile-sub { color: var(--ink-3); font-size: 12px; text-align: center; }
.tile-actions { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.tile-link { color: var(--blue); font-size: 13px; text-decoration: none; }
.tile-link:hover { text-decoration: underline; }
.round-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(11, 31, 68, .08);
}
.round-btn.stop { background: #f0442e; border-color: #f0442e; color: #fff; box-shadow: 0 0 0 4px #fde4e0; }
.round-btn.stop:hover { background: #d92d20; }

.activity { padding: 16px 18px; }
.activity-head { font-size: 14px; font-weight: 600; }
.activity-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 124px);
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #f5f7fa;
}
.stat { position: relative; padding: 0 0 0 10px; }
.stat + .stat { margin-top: 12px; }
.stat::before { content: ''; position: absolute; left: 0; top: 3px; width: 3px; height: 12px; border-radius: 2px; background: var(--c); }
.stat-label { color: var(--ink-3); font-size: 11.5px; line-height: 1.3; }
.stat-value { font-size: 20px; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat-value small { color: var(--ink-3); font-size: 16px; }
.rings { width: 100%; height: auto; display: block; }
.rings circle.track { fill: none; stroke: #e6ebf2; }
.rings circle.value { fill: none; stroke-linecap: round; transition: stroke-dasharray .6s ease; cursor: default; }
.rings .hit { fill: none; stroke: transparent; pointer-events: stroke; }

/* Live scan status */
.scan-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 8px 8px 14px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue-ink);
  font-size: 13px;
}
.scan-banner-text { flex: 1; min-width: 0; }
.scan-dot, .side-dot.pulsing { animation: pulse 1.4s ease-in-out infinite; }
.scan-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--blue); }
@keyframes pulse { 50% { opacity: .3; } }
.live-clock { font-variant-numeric: tabular-nums; }

/* Domains list */
.domains-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.domain-text { min-width: 0; }
.domain-link { display: block; text-decoration: none; }
.domain-link:hover { text-decoration: underline; }
.failed-text { color: var(--bad); }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.row-actions .icon { width: 14px; height: 14px; }
.nav-label-host { overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; color: #fff; }

/* Admin */
.admin-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-tile { padding: 18px 20px; }
.admin-label { color: var(--ink-2); font-size: 14px; }
.admin-number { margin: 14px 0 6px; font-size: 46px; font-weight: 600; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.admin-caption { color: var(--ink-3); font-size: 12.5px; }
.admin-tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; }
.tabs.admin-tabs { margin: 0 0 14px; padding: 0; }
.admin-tabs .tab { text-decoration: none; }
.admin-card { margin-top: 12px; }
.admin-card .services-head { min-height: 32px; }
.admin-card td a { text-decoration: none; }
.admin-card td a:hover { text-decoration: underline; }
.admin-card td.num, .admin-card th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll.admin-scroll { min-height: 0; max-height: none; overflow-y: visible; }
.admin-card td { vertical-align: middle; }
.admin-card > .table-scroll:last-child, .admin-card > .empty:last-child { margin-bottom: 4px; }
.table-scroll.admin-scroll thead th { position: static; }
.admin-account { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px 20px; }
.admin-account-text { flex: 1; min-width: 200px; }
.admin-account-text h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.admin-account-text p { color: var(--ink-2); font-size: 13px; overflow-wrap: anywhere; }
.admin-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; gap: 12px; padding: 12px 18px 6px; }
.admin-form .btn-primary { height: 36px; }
.input-soft {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
}
.input-soft:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px var(--blue-tint); }
.btn-soft:disabled { color: var(--ink-3); cursor: default; box-shadow: none; }
.btn-soft.btn-danger { color: var(--bad); }
.btn-soft.btn-danger:hover { background: var(--bad-tint); }
a.btn-soft { text-decoration: none; }
.admin-note { padding: 4px 18px 10px; color: var(--ink-3); font-size: 12.5px; }
.reauth-action { display: flex; justify-content: center; margin-top: 18px; }
.reauth-action .google-btn { width: auto; padding: 0 18px; }

/* Second overview row */
.overview-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 12px; margin-top: 12px; }
.panel { padding: 16px 18px; min-width: 0; }
.panel h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.panel > p { margin-top: 2px; color: var(--ink-3); font-size: 12.5px; }

.bars { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; font-size: 12.5px; }
.bar-row .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.bar-row .value { font-variant-numeric: tabular-nums; }
.bar-track { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: #eef2f7; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: var(--blue); }
.stack { display: grid; gap: 12px; align-content: start; min-width: 0; }
.bar-button {
  width: calc(100% + 12px);
  margin: -4px -6px;
  padding: 4px 6px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.bar-button:hover { background: #f3f6fa; }
.bar-button .bar-fill { display: block; }
.loaders { display: grid; gap: 4px; min-width: 120px; }

.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.column { padding: 10px; background: #f5f7fa; border-radius: 12px; min-width: 0; }
.column-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 13px; }
.column-head small { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.column-list { display: grid; gap: 6px; max-height: 300px; overflow: auto; margin: 0; padding: 0; list-style: none; }
.mini-card { padding: 8px 10px; background: var(--surface); border-radius: 9px; box-shadow: 0 1px 2px rgba(11, 31, 68, .05); font-size: 12.5px; overflow-wrap: anywhere; }
.mini-card small { display: block; color: var(--ink-3); font-size: 11.5px; }
.column-empty { color: var(--ink-3); font-size: 12.5px; padding: 6px 2px; }

/* Services and cookies lists */
.services { padding: 14px 0 4px; }
.services-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 0 18px; }
.services-head h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.tabs { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 6px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.tab {
  padding: 7px 0 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: var(--ink-3);
  font-size: 13px;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 500; }
.tab small { font-size: 12px; opacity: .85; font-variant-numeric: tabular-nums; }

.table-scroll { overflow: auto; max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px); min-height: 200px; }
#page-domains .table-scroll { max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); min-height: 0; }
table.dps, table.cookie-table { width: 100%; border-collapse: collapse; }
.dps thead th, .cookie-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
.dps th:first-child, .dps td:first-child, .cookie-table th:first-child, .cookie-table td:first-child { padding-left: 18px; }
.dps th:last-child, .dps td:last-child, .cookie-table th:last-child, .cookie-table td:last-child { padding-right: 18px; }
.dps tbody tr.row { border-top: 1px solid var(--line); cursor: pointer; }
.dps tbody tr.row:first-child { border-top: 0; }
.dps tbody tr.row:hover { background: #f9fbfd; }
.dps td { padding: 9px 10px; font-size: 13px; vertical-align: middle; }
.cookie-table td { padding: 9px 10px; border-top: 1px solid var(--line); font-size: 13px; vertical-align: top; }
.cookie-table tbody tr:first-child td { border-top: 0; }
.cookie-table td.mono { max-width: 280px; }
.nowrap { white-space: nowrap; }

.svc { display: flex; align-items: center; gap: 10px; }
.svc-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: var(--neutral-tint);
  color: var(--ink-2);
}
.svc-name { font-weight: 500; overflow-wrap: anywhere; }
.svc-company { color: var(--ink-3); font-size: 12px; }
.expander {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--ink-3);
}
.expander:hover { background: var(--neutral-tint); color: var(--ink); }
.expander .icon { transition: transform .15s; }
.expander[aria-expanded="true"] .icon { transform: rotate(180deg); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.pill .icon { width: 13px; height: 13px; }
.pill.bad { background: var(--bad-tint); color: var(--bad); }
.pill.warn { background: var(--warn-tint); color: var(--warn); }
.pill.good { background: var(--good-tint); color: var(--good); }
.pill.neutral { background: var(--neutral-tint); color: var(--ink-2); }
.verdict { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.dps td.verdict, .dps td.dim { white-space: nowrap; }
.detail-why strong { color: var(--ink); font-weight: 500; }

tr.detail > td { padding: 2px 18px 14px; background: #f9fbfd; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 24px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.detail-grid h4 { margin: 0 0 6px; color: var(--ink-3); font-size: 12px; font-weight: 400; }
.detail-why { grid-column: 1 / -1; color: var(--ink-2); }
.mono { font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.evidence-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.evidence-list li { display: flex; gap: 8px; align-items: baseline; }
.evidence-list li.stacked { flex-direction: column; gap: 2px; }
.phase-tag {
  flex: none;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--neutral-tint);
  color: var(--ink-2);
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
}
.phase-tag.before, .phase-tag.reject { background: var(--bad-tint); color: var(--bad); }
.phase-tag.accept { background: var(--good-tint); color: var(--good); }

.empty { padding: 34px 18px 38px; color: var(--ink-3); text-align: center; }
.empty strong { display: block; margin-bottom: 4px; color: var(--ink-2); font-weight: 500; }

.foot-note { margin-top: 14px; color: var(--ink-3); font-size: 12px; text-align: center; }

.chart-tooltip {
  position: fixed;
  z-index: 10;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 8px));
}

@media (max-width: 1160px) {
  .cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .checks { grid-column: 1 / -1; }
  .overview-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  /* The answer stays on screen; the rest is one tap away, in the expanded row. */
  .dps .optional { display: none; }
}
/* On small screens the page scrolls as a whole: nested scrollers would trap the thumb. */
@media (max-width: 860px) {
  .shell { display: block; height: auto; }
  html, body { height: auto; }
  .sidebar { display: block; padding: 14px; overflow: visible; }
  .account { position: static; margin: 10px 0 0; padding: 10px 0 0; }
  .brand { width: 170px; padding: 0; }
  .sidebar .nav-label, .category-nav, .new-scan { display: none; }
  #domain-nav .nav { margin-top: 4px; }
  .nav { display: flex; flex-wrap: wrap; margin-top: 10px; }
  .nav a { width: auto; }
  .nav a.active::before, .side-item.active::before { display: none; }
  .recent-nav .side-list { display: flex; gap: 4px; margin-top: 6px; overflow-x: auto; }
  .recent-nav .side-item { width: auto; flex: none; }
  .workspace { display: block; }
  .content { overflow: visible; padding: 16px 14px 20px; }
  .table-scroll { max-height: none; min-height: 0; overflow-x: auto; overflow-y: visible; }
  .dps thead th, .cookie-table thead th { position: static; }
  .columns { grid-template-columns: minmax(0, 1fr); }
  .admin-tiles { grid-template-columns: minmax(0, 1fr); }
  .admin-form { grid-template-columns: minmax(0, 1fr); }
  tr.detail > td { padding: 2px 10px 12px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .evidence-list li { flex-direction: column; gap: 2px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; }
  .add-domain { flex-wrap: wrap; }
  .add-domain .field { flex-basis: 100%; }
  .add-domain .btn-primary { flex: 1; }
  .page-title { font-size: 21px; }
  .dps th { white-space: normal; }
  .domains-table .svc-icon, .domains-table .btn-label { display: none; }
  .domains-table .btn-soft { padding: 0 9px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Automatic checks dialog */
.dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(11, 31, 68, .28);
}
.dialog::backdrop { background: rgba(11, 31, 68, .45); }
.schedule-form { display: grid; gap: 16px; padding: 22px; }
.schedule-form h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.schedule-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.dialog-sub { margin-top: 4px; color: var(--ink-2); font-size: 13px; }
.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 3px !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 10px;
  background: var(--canvas);
}
.segmented label { position: relative; }
.segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; padding: 7px 0; border-radius: 8px; color: var(--ink-2); font-size: 13px; text-align: center; }
.segmented input:checked + span { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(11, 31, 68, .14); }
.segmented input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }
.schedule-options { display: grid; gap: 12px; }
.schedule-options:disabled { opacity: .5; }
.form-row { display: grid; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 500; }
.form-row .select-soft { width: 100%; max-width: none; height: 36px; }
.dialog-note { color: var(--ink-3); font-size: 12px; }
.dialog .app-error { margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
