/* pages.css — inner-page / secondary modules split out of app.css to keep
   each file under the 1000-line limit. Loaded site-wide after app.css; the
   selectors here only match on their respective pages, so loading globally is
   harmless. Page-specific responsive overrides live WITH their module (at the
   bottom of this file) so the cascade stays correct regardless of the other
   stylesheet's load order. Pure black/white, 0px radius, flat — same tokens as
   app.css. */

/* ───── page hero (tools/docs) ───────────────────────────── */
.page-hero {
  background: var(--bg);
  border-bottom: 0;
  padding: 48px 24px 36px;
}
@media (min-width: 640px) { .page-hero { padding: 56px 40px 44px; } }
@media (min-width: 768px) { .page-hero { padding: 64px 64px 56px; } }
.page-hero-inner { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 400;
  margin: 0;
  text-transform: lowercase;
}
.page-hero-sub { font-family: var(--font-sans); font-size: 14px; opacity: 0.8; max-width: 640px; margin: 0; }

/* ───── tools section (pricing-page-style grid) ─────────── */
.tools-section { max-width: 1280px; margin: 0 auto; padding: 48px 24px 80px; }
@media (min-width: 640px) { .tools-section { padding: 64px 40px 104px; } }
@media (min-width: 768px) { .tools-section { padding: 80px 64px 104px; } }
.filter-bar { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 48px; border: 1px solid var(--border); width: fit-content; }
.filter-chip {
  cursor: pointer; border: none; background: transparent; color: var(--fg);
  padding: 10px 20px; font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em;
  border-right: 1px solid var(--border); transition: background 120ms, color 120ms;
}
.filter-chip:last-child { border-right: none; }
.filter-chip:hover { background: var(--bg-soft); }
.filter-chip.active { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: var(--accent-ink); }

.tool-group { margin-bottom: 64px; }
.tool-group-title {
  font-size: clamp(24px, 3vw, 32px); line-height: 1; letter-spacing: -0.02em; font-weight: 500;
  margin: 0 0 24px;
}
.tool-group.hidden { display: none; }
/* Hairline grid drawn with the 1px gap + per-card box-shadow ring rather
   than per-card borders: stays correct at any column count and on partial
   rows (no broken/doubled lines). No container border — each card's own
   ring forms the outer edge, so the group isn't enclosed in a frame. */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
}
@media (min-width: 1024px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 24px;
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  box-shadow: 0 0 0 1px var(--border);
  transition: background 120ms;
  min-height: 200px;
}
.tool-card:hover { background: var(--bg-soft); text-decoration: none; opacity: 1; }
.tool-card.is-disabled { opacity: 0.4; cursor: not-allowed; }
.tool-card.is-disabled:hover { background: var(--bg); }
.tool-card.hidden { display: none; }
/* an arrow affordance that slides in from the bottom-right on hover — an
   intuitive "open" cue for the whole-card link. Enabled cards only. */
.tool-card:not(.is-disabled)::after {
  content: "→";
  position: absolute; right: 22px; bottom: 20px; z-index: 2;
  font-family: var(--font-mono); font-size: 16px; color: var(--accent);
  opacity: 0; transform: translateX(-6px);
  transition: opacity 180ms ease, transform 180ms cubic-bezier(0.2,0.7,0.2,1);
  pointer-events: none;
}
.tool-card:not(.is-disabled):hover::after { opacity: 1; transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .tool-card:not(.is-disabled)::after { transition: none; }
}
/* Hover "winding outline": a white line starts at the top-left corner and
   traces the card's perimeter clockwise while hovered, then stays fully lit;
   un-hovering rewinds from the current point.

   Drawn as an SVG <rect> stroke revealed via stroke-dashoffset, driven by a
   CSS *transition* (not a keyframe animation) so an interrupted wind reverses
   from wherever it is. This is corner-exact at ANY aspect ratio because the
   stroke begins at the rectangle's first vertex (the corner) and follows the
   real geometry — unlike a centre-based conic gradient, whose corner angle
   depends on the card's width:height and so can't be right across breakpoints.

   The SVG has NO viewBox and the rect is sized in % so the coordinate system
   equals CSS pixels 1:1 (no preserveAspectRatio stretch, no non-scaling-stroke)
   — that combo previously made the browser dash in rendered pixels and ignore
   pathLength, lighting part of the border at rest. pathLength="100" then
   cleanly normalises the perimeter to 100 units. Dash math: a 100-unit dash
   with a 200-unit gap (period 300). At rest, offset 102 maps the whole [0,100]
   path into the gap, so nothing shows (offset of exactly 100 would leave a cap
   on the start corner). On hover offset → 0 puts the dash at [0,100], drawing
   the full outline; intermediate offsets draw [0, 100-offset], i.e. growing
   from the corner clockwise. */
.tool-card-trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.tool-card-trace rect {
  fill: none;
  stroke: #fff;
  stroke-width: 1.5px;
  /* Subtle layered glow: a tight white core halo plus a wider accent-tinted
     bloom. Rides the stroke (so only the drawn part glows) and fades out with
     the rect's opacity. */
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.6))
          drop-shadow(0 0 4px var(--accent-edge));
  stroke-dasharray: 100 200;
  stroke-dashoffset: 102;
  opacity: 0;
  /* Exit: the fully-drawn outline fades out slowly and uniformly (opacity),
     then the dash snaps back (0ms duration delayed past the fade) so the next
     hover winds in fresh instead of from a half-drawn state. */
  transition: opacity 650ms ease, stroke-dashoffset 0ms linear 650ms;
}
.tool-card:not(.is-disabled):hover .tool-card-trace rect {
  stroke-dashoffset: 0;
  opacity: 1;
  /* Enter: wind + fade in very fast. */
  transition: opacity 130ms ease, stroke-dashoffset 130ms linear;
}
.tool-icon {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  color: var(--accent); transition: transform 200ms cubic-bezier(0.2,0.7,0.2,1);
}
.tool-icon svg { width: 28px; height: 28px; }
.tool-card:not(.is-disabled):hover .tool-icon { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .tool-icon { transition: none; } }
.tool-name { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
@media (min-width: 640px) { .tool-name { font-size: 24px; } }
.tool-blurb { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; opacity: 0.8; flex: 1 1 auto; }
@media (min-width: 640px) { .tool-blurb { font-size: 14px; } }
.badge {
  display: inline-block; vertical-align: middle;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase;
  padding: 8px 12px; background: var(--bg); color: var(--fg);
  border-left: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
/* On a tool card the badge pins to the card's top-right corner. Elsewhere
   (inline in prose, the tool-hero meta row, table cells) it stays in flow. */
.tool-card .badge { position: absolute; top: 0; right: 0; }
.badge-live { color: var(--good); }
.badge-preview { color: var(--accent); }
.badge-soon { color: var(--fg-mute); }
.badge-cat { border: 1px solid var(--border); padding: 4px 10px; }

/* ───── tool page ────────────────────────────────────────── */
.tool-page { --tool-section-pad-y: 40px; }
@media (min-width: 640px) { .tool-page { --tool-section-pad-y: 56px; } }
@media (min-width: 768px) { .tool-page { --tool-section-pad-y: 64px; } }

.crumbs { max-width: 1280px; margin: 0 auto; padding: 32px 24px 0; font-family: var(--font-mono); font-size: 12px; color: var(--fg-mute); }
@media (min-width: 640px) { .crumbs { padding: 48px 40px 0; } }
@media (min-width: 768px) { .crumbs { padding: 64px 64px 0; } }
.crumbs a { color: var(--fg-dim); }
.crumbs a:hover { color: var(--accent); opacity: 1; }
.crumb-sep { margin: 0 8px; color: var(--fg-mute); }
.crumb-current { color: var(--fg); }
.tool-hero { max-width: 1280px; margin: 0 auto; padding: 12px 24px 32px; display: flex; gap: 28px; align-items: flex-start; }
@media (min-width: 640px) { .tool-hero { padding: 12px 40px 32px; } }
@media (min-width: 768px) { .tool-hero { padding: 16px 64px 36px; } }
.tool-hero-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.tool-hero-icon svg { width: 48px; height: 48px; }
.tool-hero-text { display: flex; flex-direction: column; gap: 14px; }
.tool-hero-text h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; }
.tool-hero-blurb { margin: 0; font-family: var(--font-mono); font-size: 14px; opacity: 0.8; }
.tool-hero-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.tool-body { min-height: 50vh; display: flex; flex-direction: column; justify-content: flex-start; }
.tool-placeholder { max-width: 720px; margin: 0 auto; padding: var(--tool-section-pad-y) 24px; min-height: 50vh; display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; }
@media (min-width: 640px) { .tool-placeholder { padding: var(--tool-section-pad-y) 40px; } }
@media (min-width: 768px) { .tool-placeholder { padding: var(--tool-section-pad-y) 64px; } }
.placeholder-card { border: 1px solid var(--border); padding: 64px 48px; text-align: center; width: 100%; box-sizing: border-box; }
.placeholder-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; color: var(--fg-dim); }
.placeholder-icon svg { width: 48px; height: 48px; }
.placeholder-card h2 { font-family: var(--font-display); text-transform: lowercase; letter-spacing: -0.01em; margin: 0 0 16px; font-size: 24px; font-weight: 400; }
.placeholder-card p { color: var(--fg-dim); margin: 0 0 32px; font-family: var(--font-mono); font-size: 14px; }
.tool-page .lookup-console { padding: 24px 24px; }
@media (min-width: 640px) { .tool-page .lookup-console { padding: 24px 40px; } }
@media (min-width: 768px) { .tool-page .lookup-console { padding: 28px 64px; } }
.related { max-width: 1280px; margin: 0 auto; padding: var(--tool-section-pad-y) 24px calc(var(--tool-section-pad-y) * 1.5); }
@media (min-width: 640px) { .related { padding: var(--tool-section-pad-y) 40px calc(var(--tool-section-pad-y) * 1.5); } }
@media (min-width: 768px) { .related { padding: var(--tool-section-pad-y) 64px calc(var(--tool-section-pad-y) * 1.5); } }

/* ───── docs ─────────────────────────────────────────────── */
.docs-layout { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 1280px; margin: 0 auto; padding: 48px 24px 80px; }
@media (min-width: 640px) { .docs-layout { padding: 64px 40px 104px; } }
@media (min-width: 768px) { .docs-layout { grid-template-columns: 220px 1fr; gap: 48px; padding: 80px 64px 104px; } }
.docs-side { font-size: 14px; }
@media (min-width: 768px) { .docs-side { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 96px); overflow-y: auto; } }
.docs-side .group { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-mute); padding: 16px 0 8px; }
.docs-side a { display: block; padding: 8px 0; color: var(--fg-dim); font-family: var(--font-mono); font-size: 14px; border-bottom: 1px solid var(--border-soft); }
.docs-side a:hover { color: var(--fg); opacity: 1; }
.docs-side a.active { color: var(--accent); }
.docs-main { min-width: 0; }
.docs-main h1 { margin: 0 0 16px; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; }
.docs-main .subtitle { margin: 0 0 48px; font-family: var(--font-mono); font-size: 14px; opacity: 0.8; }
.endpoint { border: 1px solid var(--border); background: var(--bg); padding: 24px; margin-bottom: 16px; }
@media (min-width: 768px) { .endpoint { padding: 32px; } }
.endpoint-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.method {
  display: inline-block; font-family: var(--font-mono); font-weight: 500;
  font-size: 10px; letter-spacing: 0.05em; padding: 4px 8px; border: 1px solid currentColor; text-transform: uppercase;
}
.method-get { color: var(--accent); }
.method-post { color: var(--warn); }
.endpoint-path { font-family: var(--font-mono); font-size: 14px; }
.endpoint-title { color: var(--fg-dim); font-size: 14px; margin-left: auto; }
.endpoint-desc { color: var(--fg-dim); font-family: var(--font-mono); font-size: 14px; margin: 8px 0 16px; opacity: 0.8; }
.endpoint-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.endpoint-block { min-width: 0; }
@media (min-width: 768px) { .endpoint-grid { grid-template-columns: 1fr 1fr; } }
.endpoint-block .label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); font-weight: 500; margin-bottom: 8px; }
.codebox { position: relative; background: var(--bg-code); border: 1px solid var(--border); padding: 16px; overflow-x: auto; font-size: 14px; color: #e6e6e6; line-height: 1.5; }
.codebox .hl-cmd { color: #fff; font-weight: 500; }
.codebox .hl-flag { color: var(--warn); }
.codebox .hl-url { color: var(--accent); }
.codebox .hl-str { color: var(--good); }
.codebox .hl-key { color: #c4b5fd; }
.copy-btn { position: absolute; top: 8px; right: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--fg-dim); font-family: var(--font-mono); font-size: 10px; padding: 4px 8px; cursor: pointer; text-transform: uppercase; }
.copy-btn:hover { color: var(--fg); }
.try-btn { border: 1px solid var(--accent); background: transparent; color: var(--accent); padding: 4px 10px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; cursor: pointer; margin-left: auto; }
.try-btn:hover { background: var(--accent-soft); }
.field-list { margin: 0; padding-left: 20px; color: var(--fg-dim); font-family: var(--font-mono); font-size: 14px; line-height: 1.7; }
.field-list code { color: var(--accent); }

/* ───── 404 ──────────────────────────────────────────────── */
.notfound { max-width: 640px; margin: 0 auto; padding: 80px 24px; text-align: left; }
@media (min-width: 640px) { .notfound { padding: 104px 40px; } }
.notfound .eyebrow { color: var(--accent); margin-bottom: 16px; }
.notfound h1 { margin: 0 0 16px; font-size: clamp(32px, 4vw, 48px); line-height: 1; letter-spacing: -0.025em; font-weight: 500; }
.notfound p { color: var(--fg-dim); margin: 0 0 32px; font-family: var(--font-mono); font-size: 14px; }
.notfound .btn-row { display: flex; gap: 0; flex-wrap: wrap; margin-top: 24px; }
.notfound .btn-row .btn { border-right: none; }
.notfound .btn-row .btn:last-child { border-right: 1px solid var(--border); }
.notfound .lookup-console { padding: 0; margin-top: 32px; }

/* ───── pricing ──────────────────────────────────────────── */
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
}
@media (min-width: 880px) { .pricing-tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  position: relative;
  padding: 40px 32px;
  box-shadow: 0 0 0 1px var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 160ms;
}
.tier:hover { background: var(--bg-soft); }
.tier-featured { background: var(--bg-soft); }
.tier-featured:hover { background: var(--bg-alt); }
.tier-flag {
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
}
.tier-name { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.tier-price { display: flex; align-items: baseline; gap: 6px; }
.tier-amount { font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.tier-cadence { font-family: var(--font-mono); font-size: 14px; color: var(--fg-mute); }
.tier-blurb { margin: 0; font-family: var(--font-mono); font-size: 14px; line-height: 1.4; color: var(--fg-dim); }
.tier-cta { width: fit-content; margin-top: 4px; }
.tier-features { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tier-features li {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg-dim);
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}
.tier-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* ───── info page ────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 880px) { .info-grid { grid-template-columns: 360px 1fr; gap: 80px; } }
.info-side { display: flex; flex-direction: column; gap: 16px; }
.info-lede { font-family: var(--font-mono); font-size: 14px; line-height: 1.5; color: var(--fg-dim); margin: 0; max-width: 560px; }
.info-main { display: flex; flex-direction: column; gap: 0; }
.info-block { padding: 32px 0; border-bottom: 1px solid var(--border); }
.info-block:first-child { padding-top: 0; }
.info-block:last-child { border-bottom: none; }
.info-block h3 { margin: 0 0 12px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.info-block p { margin: 0; font-family: var(--font-mono); font-size: 14px; line-height: 1.6; color: var(--fg-dim); }
.facts-grid { display: grid; grid-template-columns: 1fr; border: 1px solid var(--border); gap: 1px; }
@media (min-width: 640px) { .facts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .facts-grid { grid-template-columns: repeat(5, 1fr); } }
.fact-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  box-shadow: 0 0 0 1px var(--border);
}
.fact-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-mute); }
.fact-value { font-size: 16px; color: var(--fg); }
.contact-band { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
@media (min-width: 768px) { .contact-band { flex-direction: row; align-items: center; justify-content: space-between; } }
.contact-text { display: flex; flex-direction: column; gap: 16px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Proxies page ──────────────────────────────────────────── */
.proxies-section { padding: 8px 24px 96px; max-width: 1120px; margin: 0 auto; box-sizing: border-box; min-height: 50vh; }
.proxies-section .tool-placeholder { max-width: 100%; min-height: 100%; padding: 0; }
.proxies-section .placeholder-card { padding: 48px 40px; }

/* Filter bar: flat hairline frame, a balanced 4-up grid of labeled controls
   (identity/location on row 1, quality/behavior on row 2), and a two-cluster
   actions row — "browse" (sort + apply) pinned left, "export" (format +
   download) pinned right. No JS: Apply submits the GET form; Download is a
   second submit with formaction="/proxies/export", so the file always matches
   the on-screen filter. */
.proxy-filters { margin: 18px 0 8px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--border); background: var(--bg); box-sizing: border-box; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 12px; }
.filter-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.filter-field label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Square, flat controls. Reset every engine's native widget (incl. Firefox's
   -moz-appearance) so the explicit border-radius: 0 takes effect — otherwise a
   native <select> renders with the OS's rounded corners. */
.filter-field select, .filter-field input { font-family: var(--font-sans); font-size: 13px; color: var(--fg); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 0; padding: 0 12px; height: 36px; box-sizing: border-box; width: 100%; -webkit-appearance: none; -moz-appearance: none; appearance: none; transition: border-color 120ms; }
.filter-field select { cursor: pointer; padding-right: 28px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; }
.filter-field input::placeholder { color: var(--fg-mute); }
.filter-field select:hover, .filter-field input:hover { border-color: var(--fg-mute); }
.filter-field select:focus, .filter-field input:focus { outline: none; border-color: var(--accent); }
/* Actions row: two self-contained, labeled clusters pinned to opposite ends so
   each control sits beside the action it drives (Sort→Apply, Export→Download). */
.filter-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.filter-cluster { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.filter-cluster-end { justify-content: flex-end; }
.filter-field-inline { min-width: 164px; }
.filter-cluster .btn { height: 36px; padding-top: 0; padding-bottom: 0; }
/* Inline "Include prefix" checkbox for the no-JS export control — same flat,
   hairline visual language as the selects so it reads as a sibling control. */
.filter-field-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}
.filter-field-checkbox input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.filter-checkbox-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
  white-space: nowrap;
}
.filter-reset { border-color: transparent; background: transparent; color: var(--fg-dim); }
.filter-reset:hover { background: transparent; border-color: transparent; color: var(--fg); text-decoration: underline; }
@media (max-width: 720px) {
  .filter-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .filter-cluster-end { justify-content: flex-start; }
}

.proxy-table-wrap { overflow-x: auto; box-shadow: 0 0 0 1px var(--border); margin-top: 24px; }
.proxy-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.proxy-table thead th { text-align: left; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; font-size: 11px; color: var(--fg-mute); padding: 14px 12px; border-bottom: 1px solid var(--border); background: var(--bg-soft); white-space: nowrap; }
.proxy-table tbody td { padding: 12px 12px; border-bottom: 1px solid var(--border-soft); color: var(--fg); white-space: nowrap; }
.proxy-table tbody tr:hover { background: var(--bg-soft); }
.proxy-endpoint { font-weight: 500; }
.proxy-muted { color: var(--fg-mute); font-family: var(--font-mono); font-size: 12px; white-space: normal; }
.proxy-asn { color: var(--accent); text-decoration: none; }
.proxy-asn:hover { text-decoration: underline; }
.proxy-country { white-space: nowrap; }
/* Image-based flag (flag-icons sprite via `.fi fi-xx`). Renders identically in
   every browser — unlike flag emoji, which Chrome on Windows/Linux can't draw,
   falling back to the bare country letters. The 1px inset hairline keeps
   white-fielded flags (JP, etc.) visible on light surfaces. */
.country-flag {
  width: 1.333em; height: 1em;
  vertical-align: -0.12em;
  margin-right: 0.4em;
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.proxy-table tbody td.metric-good { color: var(--good); }
.proxy-table tbody td.metric-warn { color: var(--warn); }
.proxy-table tbody td.metric-bad { color: var(--bad); }

.pagination { display: flex; flex-direction: column; gap: 16px; align-items: center; margin-top: 32px; }
.pagination-summary { font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); }
.pagination-controls { display: flex; flex-wrap: wrap; box-shadow: 0 0 0 1px var(--border); }
.page-btn { padding: 9px 15px; font-family: var(--font-mono); font-size: 13px; color: var(--fg); text-decoration: none; border-right: 1px solid var(--border); transition: background 120ms, color 120ms; }
.page-btn:last-child { border-right: none; }
.page-btn:hover { background: var(--bg-soft); }
.page-btn.active { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: var(--accent-ink); }
.page-btn.is-disabled { color: var(--fg-mute); pointer-events: none; }

/* ── Auth (login / register / account) ─────────────────────── */
.auth-wrap { display: flex; justify-content: center; padding: 64px 24px 96px; }
.auth-card { width: 100%; max-width: 420px; box-shadow: 0 0 0 1px var(--border); padding: 40px 32px; background: var(--bg); box-sizing: border-box; }
.auth-title { font-family: var(--font-display); font-weight: 400; text-transform: lowercase; letter-spacing: -0.01em; font-size: 28px; margin: 0 0 8px; }
.auth-sub { color: var(--fg-dim); font-size: 14px; margin: 0 0 24px; line-height: 1.5; }
.auth-sub a { color: var(--accent); }
.auth-error { border: 1px solid var(--bad); color: var(--bad); padding: 10px 14px; font-size: 13px; font-family: var(--font-mono); margin-bottom: 16px; }
.auth-notice { border: 1px solid var(--good); color: var(--good); padding: 10px 14px; font-size: 13px; font-family: var(--font-mono); margin-bottom: 16px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg-mute); }
.auth-field input { font-family: var(--font-sans); font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--fg); background: var(--bg-soft); border: 1px solid var(--border); padding: 12px 14px; box-sizing: border-box; }
.auth-field input:focus { outline: none; border-color: var(--accent); }
.auth-hint { color: var(--fg-mute); font-size: 11px; text-transform: none; letter-spacing: 0; }
.cf-turnstile-wrap { gap: 8px; }
.cf-turnstile-wrap .cf-turnstile { min-height: 65px; }
.auth-submit { width: 100%; justify-content: center; margin-top: 4px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--fg-mute); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-register { margin-top: 24px; border-top: 1px solid var(--border-soft); padding-top: 16px; }
.auth-register summary { cursor: pointer; font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.auth-register .auth-form { margin-top: 16px; }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: #1f1f1f; box-shadow: 0 0 0 1px var(--border); }
.btn-google:hover { background: #f1f3f4; }
.btn-google-icon { display: inline-flex; width: 18px; height: 18px; }
.btn-google-icon svg { width: 18px; height: 18px; }

/* ── Account page (tabbed) ─────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.break { word-break: break-word; overflow-wrap: anywhere; }

.account { width: 100%; max-width: 760px; margin: 0 auto; padding: 48px 24px 88px; box-sizing: border-box; }
.account-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.account-h1 { font-family: var(--font-display); font-weight: 400; text-transform: lowercase; letter-spacing: -0.01em; font-size: 30px; margin: 0; }
.account-sub { color: var(--fg-dim); font-size: 14px; margin: 6px 0 0; }
.plan-badge { flex: none; align-self: center; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); padding: 6px 12px; box-shadow: inset 0 0 0 1px var(--accent); }

/* Tabs — sibling radios drive panel visibility (no JS). */
.acct-tab-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.acct-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tab { flex: none; padding: 12px 18px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; color: var(--fg-mute); cursor: pointer; white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; transition: color 0.12s, box-shadow 0.12s; }
.acct-tab:hover { color: var(--fg-dim); }
#acct-tab-profile:checked ~ .acct-tabs label[for="acct-tab-profile"],
#acct-tab-usage:checked ~ .acct-tabs label[for="acct-tab-usage"],
#acct-tab-keys:checked ~ .acct-tabs label[for="acct-tab-keys"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); }
#acct-tab-profile:focus-visible ~ .acct-tabs label[for="acct-tab-profile"],
#acct-tab-usage:focus-visible ~ .acct-tabs label[for="acct-tab-usage"],
#acct-tab-keys:focus-visible ~ .acct-tabs label[for="acct-tab-keys"] { outline: 2px solid var(--accent); outline-offset: -2px; }

.acct-panels { padding-top: 28px; }
.acct-panel { display: none; }
#acct-tab-profile:checked ~ .acct-panels .acct-panel-profile,
#acct-tab-usage:checked ~ .acct-panels .acct-panel-usage,
#acct-tab-keys:checked ~ .acct-panels .acct-panel-keys { display: block; }

/* Definition-style tables (Profile, Usage). */
.acct-table { width: 100%; border-collapse: collapse; box-shadow: inset 0 0 0 1px var(--border); margin: 0 0 20px; }
.acct-table th, .acct-table td { padding: 14px 16px; font-size: 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-soft); }
.acct-table tr:last-child th, .acct-table tr:last-child td { border-bottom: none; }
.acct-table th[scope="row"] { width: 38%; color: var(--fg-mute); font-family: var(--font-mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; }
.acct-table td { color: var(--fg); }

/* Usage meter card. */
.usage-card { box-shadow: inset 0 0 0 1px var(--border); padding: 22px 20px; margin-bottom: 20px; }
.usage-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.usage-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg-mute); }
.usage-figure { font-family: var(--font-mono); font-size: 22px; color: var(--fg); }
.usage-of { color: var(--fg-mute); font-size: 15px; }
.usage-meter { height: 10px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.usage-meter-fill { display: block; height: 100%; background: var(--accent); transition: width 0.3s ease; }
.usage-note { margin: 12px 0 0; font-family: var(--font-mono); font-size: 12px; color: var(--fg-mute); line-height: 1.5; }
.usage-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; box-shadow: inset 0 0 0 1px var(--border); padding: 16px 20px; font-size: 14px; color: var(--fg-dim); }

/* API keys. */
.acct-intro { color: var(--fg-dim); font-size: 14px; line-height: 1.55; margin: 0 0 20px; }
.acct-intro strong { color: var(--fg); }
.acct-table-wrap { overflow-x: auto; margin-bottom: 20px; }
.keys-table { margin-bottom: 0; }
.keys-table thead th { color: var(--fg-mute); font-family: var(--font-mono); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); }
.keys-table td { font-size: 13px; }
.keys-table tbody tr:last-child td { border-bottom: none; }
.keys-action { text-align: right; white-space: nowrap; }

.key-reveal { display: flex; flex-direction: column; gap: 8px; box-shadow: inset 0 0 0 1px var(--good); padding: 16px; margin-bottom: 20px; }
.key-reveal strong { font-size: 14px; }
.key-value { display: block; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--border); padding: 12px 14px; font-size: 13px; word-break: break-all; user-select: all; }
.key-warn { color: var(--fg-mute); font-size: 12px; }
.key-empty { color: var(--fg-mute); font-size: 14px; margin: 0 0 20px; }

.key-create { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; box-shadow: inset 0 0 0 1px var(--border); padding: 18px 20px; }
.key-create-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 240px; min-width: 0; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg-mute); }
.key-create-field input { font-family: var(--font-sans); font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--fg); background: var(--bg-soft); border: 1px solid var(--border); padding: 11px 14px; box-sizing: border-box; width: 100%; }
.key-create-field input:focus { outline: none; border-color: var(--accent); }
.key-create .btn { flex: none; }
.key-limit-note { color: var(--fg-mute); font-size: 13px; line-height: 1.5; box-shadow: inset 0 0 0 1px var(--border-soft); padding: 14px 16px; margin: 0; }

@media (max-width: 640px) {
  .account { padding: 32px 16px 64px; }
  .account-h1 { font-size: 24px; }
  .acct-panels { padding-top: 20px; }
  .acct-table th[scope="row"] { width: 42%; }
  .usage-figure { font-size: 20px; }
  /* Keys table → stacked cards. */
  .acct-table-wrap { overflow-x: visible; }
  .keys-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .keys-table, .keys-table tbody, .keys-table tr, .keys-table td { display: block; width: 100%; box-sizing: border-box; }
  .keys-table tr { box-shadow: inset 0 0 0 1px var(--border); padding: 6px 0; margin-bottom: 12px; }
  .keys-table tbody tr:last-child td { border-bottom: 1px solid var(--border-soft); }
  .keys-table td { display: flex; justify-content: space-between; gap: 16px; text-align: right; border-bottom: 1px solid var(--border-soft); padding: 10px 16px; }
  .keys-table td:last-child { border-bottom: none; }
  .keys-table td::before { content: attr(data-label); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg-mute); text-align: left; }
  .keys-action { justify-content: flex-end; }
  .keys-action::before { content: ""; }
}

/* ── Login/register panel swap (CSS-only toggle) ───────────── */
.auth-panel-register { display: none; }
.auth-switch-input:checked ~ .auth-panel-login { display: none; }
.auth-switch-input:checked ~ .auth-panel-register { display: block; }
.auth-switch-line { margin: 20px 0 0; font-family: var(--font-mono); font-size: 12px; color: var(--fg-mute); }
.auth-switch-link { color: var(--accent); cursor: pointer; text-decoration: underline; }
.auth-switch-link:hover { opacity: 0.85; }

/* ───── page-module responsive overrides ─────────────────────
   These live here (not in app.css) so each module's base rule and its
   narrow-viewport override stay in the same file and the cascade order is
   correct no matter how the stylesheets are ordered. */
@media (max-width: 720px) {
  .tool-grid { grid-template-columns: 1fr; }
  .pricing-tiers { grid-template-columns: 1fr !important; }
  .info-grid { grid-template-columns: 1fr !important; }
}

/* ───── IP reputation widget ──────────────────────────────────
   Semantic risk colors (not the brand accent): solid, flat, theme-neutral.
   Verdict classes expose --rep-c / --rep-bg so badges, gauges and labels share
   one color source. */
:root {
  --rep-clean:         #16a34a;
  --rep-clean-bg:      rgba(22,163,74,0.14);
  --rep-low:           #ca8a04;
  --rep-low-bg:        rgba(202,138,4,0.14);
  --rep-suspicious:    #ea580c;
  --rep-suspicious-bg: rgba(234,88,12,0.14);
  --rep-malicious:     #dc2626;
  --rep-malicious-bg:  rgba(220,38,38,0.16);
}
.rep-clean      { --rep-c: var(--rep-clean);      --rep-bg: var(--rep-clean-bg); }
.rep-low        { --rep-c: var(--rep-low);        --rep-bg: var(--rep-low-bg); }
.rep-suspicious { --rep-c: var(--rep-suspicious); --rep-bg: var(--rep-suspicious-bg); }
.rep-malicious  { --rep-c: var(--rep-malicious);  --rep-bg: var(--rep-malicious-bg); }

/* compact badge shown inline in the IP summary */
.rep-badge-row { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rep-badge {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 2px 8px;
  border: 1px solid var(--rep-c); color: var(--rep-c); background: var(--rep-bg);
  font-family: var(--font-mono); font-size: 12px;
}
.rep-score { font-weight: 600; font-size: 13px; }
.rep-verdict { text-transform: uppercase; letter-spacing: 0.04em; }
.chip.rep-flag { border-color: var(--fg-mute); color: var(--fg); }
.chip.rep-cat { border-color: var(--border); color: var(--fg-mute); text-transform: lowercase; }

/* full report header: gauge + verdict */
.rep-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.rep-gauge {
  display: flex; align-items: baseline; gap: 2px; min-width: 96px; padding: 10px 14px;
  border: 1px solid var(--rep-c); color: var(--rep-c); background: var(--rep-bg);
}
.rep-gauge-score { font-family: var(--font-mono); font-size: 30px; font-weight: 600; line-height: 1; }
.rep-gauge-max { font-family: var(--font-mono); font-size: 13px; opacity: 0.7; }
.rep-head-meta { display: flex; flex-direction: column; gap: 4px; }
.rep-verdict-label {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 600; color: var(--rep-c);
}
.rep-sub { color: var(--fg-mute); font-size: 13px; }
.rep-flags, .rep-cats { margin-bottom: 10px; }
.rep-section {
  margin: 14px 0 8px; font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-mute);
}
.rep-spark { width: 100%; max-width: 280px; height: 40px; display: block; }
.rep-spark-line { fill: none; stroke: var(--accent); stroke-width: 1.5; }

/* per-source breakdown */
.rep-sources { display: flex; flex-direction: column; border: 1px solid var(--border); }
.rep-source {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 13px;
}
.rep-source:last-child { border-bottom: none; }
.rep-source.is-listed { background: var(--rep-malicious-bg); }
.rep-source-name { font-family: var(--font-mono); color: var(--fg); }
a.rep-source-name:hover { color: var(--accent); }
.rep-source-status {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--fg-mute);
}
.rep-source.is-listed .rep-source-status { color: var(--rep-malicious); }
.rep-source-detail { color: var(--fg-mute); flex: 1 1 100%; font-size: 12px; }

/* ───── unified lookup report ─────────────────────────────────
   One standardized "target" surface (IP / ASN / prefix): an identity header
   plus stacked, table-rich sections (no tabs). Flat hairline aesthetic — solid
   surfaces, 1px borders, 0 radius, mono labels. Shared by the lookup tool and
   the 404 page; widened past the 720px console so data tables breathe. */
.report { max-width: 1040px; margin: 0 auto 64px; width: 100%; padding: 0 24px; box-sizing: border-box; }
@media (min-width: 640px) { .report { padding: 0 40px; } }
@media (min-width: 768px) { .report { padding: 0 64px; } }
.report[data-visible="false"] { display: none; }
.report[data-visible="true"] { display: block; animation: report-in 240ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes report-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .report[data-visible="true"] { animation: none; } }
.tool-page .report { padding: 0 24px; }
@media (min-width: 768px) { .tool-page .report { padding: 0 64px; } }

/* identity header */
.report-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 24px;
  border: 1px solid var(--border); background: var(--bg-soft);
  padding: 20px 24px; margin-bottom: 20px;
}
.report-head-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 320px; }
.report-kind {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--fg-mute);
}
.report-target { font-family: var(--font-mono); font-size: 26px; font-weight: 500; line-height: 1.1; color: var(--fg); overflow-wrap: anywhere; }
.report-head-sub { color: var(--fg-dim); font-size: 14px; overflow-wrap: anywhere; }
.report-head-aside { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }
.report-head-meta {
  flex: 1 1 100%; font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-mute); border-top: 1px solid var(--border-soft); padding-top: 12px; margin-top: 4px;
}
.report-head .rep-badge { font-size: 13px; padding: 4px 10px; }
.report-head-aside .chip.is-yes { border-color: var(--good); color: var(--good); }
.report-head-aside .chip.is-no { border-color: var(--bad); color: var(--bad); }

/* section cards — each card is a spaced, bordered group; sections within a card
   are separated by a hairline so grouped facets (e.g. Network + WHOIS) read as
   one unit while distinct groups get real breathing room between them. */
.report-sections { display: flex; flex-direction: column; gap: 20px; }
.report-card { border: 1px solid var(--border); background: var(--bg); }
.report-section { background: transparent; }
.report-card > .report-section + .report-section { border-top: 1px solid var(--border); }
.report-section-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-bottom: 1px solid var(--border-soft); background: var(--bg);
}
.report-section-title {
  margin: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg);
}
.report-section-count { font-family: var(--font-mono); font-size: 12px; color: var(--fg-mute); }
.report-section-link {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.04em; color: var(--fg-mute); text-decoration: none; text-transform: uppercase;
}
.report-section-link:hover { color: var(--accent); }
.report-section-body { padding: 20px 24px; }

/* loading / empty / error states inside a section */
.report-loading { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-mute); font-family: var(--font-mono); font-size: 13px; }
.report-spinner {
  width: 12px; height: 12px; border: 1.5px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%; animation: spin 0.55s linear infinite;
}
.report-empty { color: var(--fg-mute); font-family: var(--font-mono); font-size: 13px; }
.report-error { color: var(--bad); font-family: var(--font-mono); font-size: 13px; }

/* data tables (key/value + multi-column) */
.dtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.dtable th, .dtable td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.dtable tbody tr:last-child th, .dtable tbody tr:last-child td { border-bottom: none; }
.dtable thead th {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--fg-mute); font-weight: 500; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.dtable tbody td { color: var(--fg); }
.dtable.dtable-kv th[scope="row"] {
  width: 180px; color: var(--fg-mute); font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; white-space: nowrap;
}
.dtable .mono { color: var(--fg); }
.report-section-body > .dtable:not(:first-child) { margin-top: 14px; }

/* peer / source clickable identifier */
.report-link { color: var(--accent); text-decoration: none; }
.report-link:hover { text-decoration: underline; }
.report-status { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.report-status.is-listed { color: var(--rep-malicious); }
.report-status.is-clean { color: var(--fg-mute); }

/* announced-prefix grid (scroll-capped) */
.report-prefix-grid { display: flex; flex-wrap: wrap; gap: 6px; max-height: 300px; overflow: auto; }

/* whois records */
.report-record { border-top: 1px solid var(--border-soft); margin-top: 12px; padding-top: 8px; }
.report-record:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.report-record summary {
  cursor: pointer; font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 0;
}
.report-record[open] summary { color: var(--fg-mute); }

/* proxy table endpoint click-through */
.proxy-endpoint-link { color: var(--fg); text-decoration: none; }
.proxy-endpoint-link:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 720px) {
  .report { padding: 0; }
  .tool-page .report { padding: 0; }
  .report-sections { gap: 14px; }
  .report-head, .report-section-head, .report-section-body { padding-left: 16px; padding-right: 16px; }
  .report-target { font-size: 21px; }
  .report-head-aside { margin-left: 0; }
  .dtable.dtable-kv th[scope="row"] { width: 120px; }
}

/* ── System status page (/status) ──────────────────────────── */
.status-page { max-width: 720px; margin: 0 auto; }

.status-overall {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
}
.status-overall-text { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.status-overall-label { font-size: 18px; font-weight: 600; color: var(--fg); }
.status-overall-sub { font-size: 12px; color: var(--fg-mute); }

.status-list { display: flex; flex-direction: column; margin-top: 16px; border: 1px solid var(--border); }
.status-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.status-row:last-child { border-bottom: 0; }
.status-row-main { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.status-row-label { font-size: 15px; color: var(--fg); }
.status-row-detail { font-size: 13px; color: var(--fg-dim); }
.status-row-value { font-size: 13px; color: var(--fg-dim); }

/* Status indicator dot — colored by the per-element state token. */
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--fg-mute); }
.status-state-ok .status-dot { background: var(--good); }
.status-state-degraded .status-dot { background: var(--warn); }
.status-state-down .status-dot { background: var(--bad); }
.status-state-ok .status-row-value,
.status-state-ok .status-overall-label { color: var(--good); }
.status-state-degraded .status-row-value,
.status-state-degraded .status-overall-label { color: var(--warn); }
.status-state-down .status-row-value,
.status-state-down .status-overall-label { color: var(--bad); }

.status-json-btn { display: inline-flex; align-items: center; gap: 8px; }
.status-json-btn svg { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .status-overall { flex-wrap: wrap; }
  .status-json-btn { width: 100%; justify-content: center; }
}
