/* ==========================================================================
   packs.yantrikdb.com

   Palette taken from the LIVE yantrikdb.com, not from the older MCP icon:
   near-black warm ground, crimson/rose as the brand light, pale pink for
   the primary action, amber for live status. The parent site's signature
   is a GLOWING node graph on darkness — so glow is a structural material
   here, not an effect sprinkled on top.

   Rose is the family colour and appears everywhere. Amber is spent on
   exactly one meaning — VERIFIED — so a signed pack is legible before
   you read a word.

   Type is monospace-forward because the materials of this product are
   literally monospace: sha256 digests, origin@version, CLI. Mono carries
   the display and data roles; a system sans carries prose only.
   ========================================================================== */

:root {
  color-scheme: dark;

  --ground:      #0a0a0c;
  --ground-deep: #060607;
  --surface:     #121014;
  --raised:      #17141a;
  --edge:        #2a242e;
  --edge-soft:   #1d1922;

  --ink:   #ececf1;
  --ink-2: #a3a0ac;
  --ink-3: #6f6b78;

  --rose:       #fb7185;   /* rose-400 — the brand light */
  --rose-deep:  #f43f5e;   /* rose-500 — nodes, emphasis */
  --rose-pale:  #fecdd3;   /* rose-200 — wordmark, quiet marks */
  --pink-cta:   #fbcfe8;   /* the parent site's pale CTA */
  --amber:      #f59e0b;   /* verified. only verified. */
  --danger:     #f87171;

  --focus: #fb7185;

  /* Glow is part of the system, matched to the parent's bloom */
  --bloom-rose: 0 0 24px rgb(244 63 94 / .35), 0 0 64px rgb(244 63 94 / .18);
  --bloom-soft: 0 0 18px rgb(244 63 94 / .22);

  --lift-1: 0 1px 2px rgb(0 0 0 / .6);
  --lift-2: 0 2px 6px rgb(0 0 0 / .5), 0 10px 30px rgb(0 0 0 / .5);
  --lift-3: 0 1px 0 rgb(255 255 255 / .05) inset, 0 6px 18px rgb(0 0 0 / .55),
            0 26px 60px rgb(0 0 0 / .55);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;

  --step--1: 12.5px;
  --step-0:  15px;
  --step-1:  17px;
  --step-2:  21px;
  --step-3:  27px;
  --step-4:  38px;
  --step-5:  56px;

  --gutter: 24px;
  --measure: 62ch;
  --radius: 12px;
  --radius-sm: 8px;
}

/* The parent site is dark-only and commits to it. Light theme is offered
   for readers who need it, tuned rather than inverted: rose darkens to
   stay legible as text on white, and the glow is dropped because bloom
   on a light ground reads as a printing error. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --ground: #faf9fb; --ground-deep: #f2f0f4; --surface: #fff; --raised: #fff;
    --edge: #e2dde6; --edge-soft: #ede9f0;
    --ink: #16131a; --ink-2: #56505f; --ink-3: #837d8d;
    --rose: #e11d48; --rose-deep: #be123c; --rose-pale: #9f1239;
    --pink-cta: #be123c; --amber: #b45309;
    --bloom-rose: none; --bloom-soft: none;
    --lift-1: 0 1px 2px rgb(24 16 32 / .06);
    --lift-2: 0 1px 2px rgb(24 16 32 / .06), 0 8px 20px rgb(24 16 32 / .08);
    --lift-3: 0 1px 0 rgb(255 255 255 / .9) inset, 0 4px 12px rgb(24 16 32 / .08),
              0 20px 40px rgb(24 16 32 / .1);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --ground: #faf9fb; --ground-deep: #f2f0f4; --surface: #fff; --raised: #fff;
  --edge: #e2dde6; --edge-soft: #ede9f0;
  --ink: #16131a; --ink-2: #56505f; --ink-3: #837d8d;
  --rose: #e11d48; --rose-deep: #be123c; --rose-pale: #9f1239;
  --pink-cta: #be123c; --amber: #b45309;
  --bloom-rose: none; --bloom-soft: none;
  --lift-1: 0 1px 2px rgb(24 16 32 / .06);
  --lift-2: 0 1px 2px rgb(24 16 32 / .06), 0 8px 20px rgb(24 16 32 / .08);
  --lift-3: 0 1px 0 rgb(255 255 255 / .9) inset, 0 4px 12px rgb(24 16 32 / .08),
            0 20px 40px rgb(24 16 32 / .1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0a0a0c; --ground-deep: #060607; --surface: #121014; --raised: #17141a;
  --edge: #2a242e; --edge-soft: #1d1922;
  --ink: #ececf1; --ink-2: #a3a0ac; --ink-3: #6f6b78;
  --rose: #fb7185; --rose-deep: #f43f5e; --rose-pale: #fecdd3;
  --pink-cta: #fbcfe8; --amber: #f59e0b;
  --bloom-rose: 0 0 24px rgb(244 63 94 / .35), 0 0 64px rgb(244 63 94 / .18);
  --bloom-soft: 0 0 18px rgb(244 63 94 / .22);
}

*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: var(--step-0)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--rose); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

code, .mono, kbd { font-family: var(--mono); font-size: .875em; }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }

.label {
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .14em; color: var(--ink-3); font-weight: 500;
}

/* ── Topbar ─────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--ground) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--edge-soft);
}
.topbar-inner { display: flex; align-items: center; gap: 26px; height: 62px; }
.brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 14.5px; font-weight: 600;
  letter-spacing: -.02em; color: var(--rose-pale);
}
.brand:hover { text-decoration: none; }
.brandmark { display: block; flex: none; filter: drop-shadow(0 0 6px rgb(244 63 94 / .5)); }
.brand .sub { color: var(--ink-3); font-weight: 400; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--ink-2); font-size: 14px; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.topbar .spacer { flex: 1; }
.userchip { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13.5px; }
.avatar { width: 24px; height: 24px; border-radius: 50%; }
.iconbtn {
  display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--edge); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink-2); cursor: pointer; font: 13px var(--mono);
}
.iconbtn:hover { color: var(--rose); border-color: var(--rose); }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--edge-soft); }
/* The parent site's signature: a crimson bloom behind the fold. */
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 130%;
  background: radial-gradient(46% 52% at 62% 22%, rgb(244 63 94 / .28), transparent 68%),
              radial-gradient(38% 44% at 18% 8%, rgb(190 24 93 / .16), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  /* minmax(0,…) above is what stops a long digest widening the column */
  gap: 56px; align-items: center; padding-block: 88px 78px;
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, var(--step-5));
  line-height: 1.08; letter-spacing: -.035em; font-weight: 680;
  margin: 18px 0 0; text-wrap: balance;
}
.hero h1 .out { color: var(--rose); text-shadow: var(--bloom-soft); }
.hero .lede { color: var(--ink-2); font-size: var(--step-1); max-width: 46ch; margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* A real hash, set as a rule. The product's own material as ornament. */
.digest-rule {
  font-family: var(--mono); font-size: 10px; letter-spacing: .28em;
  color: var(--ink-3); opacity: .3; overflow: hidden; white-space: nowrap;
  user-select: none; margin-top: 34px;
}

/* ── Specimen ───────────────────────────────────────────────────── */
.specimen {
  position: relative;
  background: linear-gradient(180deg, var(--raised), var(--surface));
  border: 1px solid var(--edge); border-radius: var(--radius);
  box-shadow: var(--lift-3); padding: 22px 24px 20px;
}
.specimen::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--rose) 62%, transparent), transparent);
}
.specimen .ident { font-family: var(--mono); font-size: 13.5px; color: var(--ink);
                   margin: 10px 0 2px; overflow-wrap: anywhere; }
.specimen dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px 16px; margin: 18px 0 0; }
.specimen dt { font-family: var(--mono); font-size: 10px; text-transform: uppercase;
               letter-spacing: .13em; color: var(--ink-3); }
.specimen dd { margin: 0; font-family: var(--mono); font-size: 11px; color: var(--ink-2);
               word-break: break-all; line-height: 1.55; }
.specimen dd.ok { color: var(--amber); }

.mountviz { display: block; width: 100%; height: auto; }
.mountviz .pack { animation: dock 2.4s cubic-bezier(.66,0,.2,1) .4s both; }
.mountviz .lattice { animation: wake 1s ease 2.3s both; }
@keyframes dock {
  0%   { transform: translateX(-13px); opacity: 0; }
  30%  { transform: translateX(-13px); opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes wake { from { opacity: .5; } to { opacity: 1; } }

/* ── Measurement strip ──────────────────────────────────────────── */
.metrics { border-block: 1px solid var(--edge-soft); background: var(--ground-deep); }
.metrics-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--edge-soft); }
.metric { background: var(--ground-deep); padding: 32px 28px; }
.metric .val { font-family: var(--mono); font-size: var(--step-3); letter-spacing: -.03em;
               font-variant-numeric: tabular-nums; display: flex; align-items: baseline;
               gap: 10px; margin: 12px 0 8px; }
.metric .from { color: var(--ink-3); }
.metric .arrow { color: var(--rose); font-size: var(--step-1); }
.metric .to { color: var(--ink); text-shadow: var(--bloom-soft); }
.metric p { margin: 0; color: var(--ink-2); font-size: 13.5px; max-width: 34ch; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid var(--edge); background: var(--surface);
  color: var(--ink); font-size: 14px; cursor: pointer; box-shadow: var(--lift-1);
  transition: border-color .15s, transform .15s, box-shadow .15s, color .15s;
}
.btn:hover { border-color: var(--rose); color: var(--ink); text-decoration: none;
             transform: translateY(-1px); box-shadow: var(--lift-2); }
.btn:active { transform: translateY(0); }
/* The parent site's primary action is a pale pink pill. */
.btn.primary { background: var(--pink-cta); border-color: transparent; color: #1a0d12;
               font-weight: 620; box-shadow: 0 0 22px rgb(251 207 232 / .18), var(--lift-1); }
.btn.primary:hover { filter: brightness(1.05); box-shadow: 0 0 30px rgb(251 207 232 / .3), var(--lift-2); }
.btn.small { padding: 5px 13px; font-size: 13px; }
.btn.danger { border-color: color-mix(in oklab, var(--danger) 50%, var(--edge)); color: var(--danger); }

input[type=text], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 10px 13px; font: 14px var(--sans);
  background: var(--ground-deep); color: var(--ink);
  border: 1px solid var(--edge); border-radius: var(--radius-sm);
}
input::placeholder { color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose);
  box-shadow: 0 0 0 3px rgb(244 63 94 / .18); }
label { display: block; font-size: 13px; color: var(--ink-2); margin: 14px 0 6px; }
input[type=file] { color: var(--ink-2); font-size: 13.5px; }

/* Install chips, straight from the parent site's vocabulary */
.installs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.install {
  font: 12.5px var(--mono); color: var(--rose); background: rgb(244 63 94 / .07);
  border: 1px solid rgb(244 63 94 / .22); border-radius: var(--radius-sm);
  padding: 9px 15px; white-space: nowrap;
}
.install:hover { text-decoration: none; border-color: var(--rose); background: rgb(244 63 94 / .12); }

/* ── Sections ───────────────────────────────────────────────────── */
section { padding-block: 58px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between;
            gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
h2.sec { font-size: var(--step-2); letter-spacing: -.025em; margin: 6px 0 0; font-weight: 650; }
.sec-sub { color: var(--ink-3); font-size: 14px; margin: 6px 0 0; max-width: var(--measure); }

/* ── Cards ──────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 9px; min-width: 0;
  background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 18px 20px 16px; box-shadow: var(--lift-1);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--lift-2);
              border-color: color-mix(in oklab, var(--rose) 45%, var(--edge)); }
.card.is-signed::before {
  content: ""; position: absolute; inset: -1px -1px auto; height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent 70%);
  border-radius: var(--radius) var(--radius) 0 0;
}
.card h3 { margin: 0; font-size: var(--step-1); letter-spacing: -.02em; font-weight: 620; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--rose); text-decoration: none; }
.card .origin { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); word-break: break-all; }
.card p { margin: 0; color: var(--ink-2); font-size: 13.5px; flex: 1; }
.card .meta { display: flex; gap: 14px; color: var(--ink-3); font-size: 12px;
              font-variant-numeric: tabular-nums; padding-top: 6px;
              border-top: 1px solid var(--edge-soft); }
.card .tags { display: flex; gap: 5px; flex-wrap: wrap; }
.card .tags a { font-size: 11px; color: var(--ink-3); border: 1px solid var(--edge-soft);
                padding: 2px 9px; border-radius: 999px; }
.card .tags a:hover { color: var(--rose); border-color: var(--rose); text-decoration: none; }

/* ── Badges ─────────────────────────────────────────────────────── */
.badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.badge { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .1em;
         text-transform: uppercase; padding: 3px 8px; border-radius: 5px; border: 1px solid transparent; }
.badge.official  { color: var(--amber); background: rgb(245 158 11 / .12); border-color: rgb(245 158 11 / .4); }
.badge.yantrikdb { color: var(--rose);  background: rgb(244 63 94 / .12);  border-color: rgb(244 63 94 / .4); }
.badge.signed    { color: var(--rose-pale); background: rgb(254 205 211 / .08); border-color: rgb(254 205 211 / .25); }
.badge.community { color: var(--ink-3); background: var(--ground-deep); border-color: var(--edge); }

/* ── Status pills ───────────────────────────────────────────────── */
.pill { font-family: var(--mono); font-size: 11px; padding: 3px 10px; border-radius: 999px;
        font-weight: 600; letter-spacing: .04em; }
.pill.published    { color: var(--amber); background: rgb(245 158 11 / .13); }
.pill.pending,
.pill.evaluating,
.pill.needs_review { color: var(--rose); background: rgb(244 63 94 / .13); }
.pill.rejected     { color: var(--danger); background: rgb(248 113 113 / .14); }

/* ── Tables ─────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--edge);
     font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
     letter-spacing: .12em; color: var(--ink-3); font-weight: 500; }
td { padding: 11px 12px; border-bottom: 1px solid var(--edge-soft); vertical-align: top;
     font-variant-numeric: tabular-nums; }
tbody tr:hover td { background: rgb(244 63 94 / .045); }
.table-scroll { overflow-x: auto; }

/* ── Panels ─────────────────────────────────────────────────────── */
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius);
         padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--lift-1); }
.panel h3 { margin: 0 0 14px; font-size: 14.5px; letter-spacing: -.015em; font-weight: 620; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 22px; align-items: start; }

/* ── Findings ───────────────────────────────────────────────────── */
.finding { border-left: 2px solid var(--edge); padding: 9px 14px; margin: 8px 0; font-size: 13px;
           background: var(--ground-deep); border-radius: 0 8px 8px 0; }
.finding.warning  { border-left-color: var(--amber); }
.finding.critical { border-left-color: var(--danger); }
.finding.info     { border-left-color: var(--rose); }
.finding .code { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
                 letter-spacing: .06em; text-transform: uppercase; }
.rec { position: relative; padding: 5px 0 5px 22px; color: var(--ink-2); font-size: 13.5px; }
.rec::before { content: "→"; position: absolute; left: 0; color: var(--rose); }

/* Commands wrap rather than scroll: a horizontal scrollbar inside a
   panel is a thing readers do not notice, so the half of the command
   past the fold is simply lost. Wrapping with a hanging indent keeps
   the whole line visible and still reads as one command. */
pre { background: var(--ground-deep); border: 1px solid var(--edge); border-radius: var(--radius-sm);
      padding: 14px 16px; font: 12.5px/1.6 var(--mono); color: var(--ink-2);
      white-space: pre-wrap; overflow-wrap: anywhere; padding-left: 30px; text-indent: -16px; }
pre .cmd { color: var(--rose); }

/* ── Browse ─────────────────────────────────────────────────────── */
.searchbar { display: flex; gap: 10px; margin-bottom: 18px; max-width: 620px; }
.searchbar select { max-width: 190px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { font-size: 12.5px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--edge);
        background: var(--surface); color: var(--ink-2); }
.chip.active { border-color: var(--rose); color: var(--rose); }
a.chip:hover { border-color: var(--rose); text-decoration: none; }
.browse-layout { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 32px; align-items: start; }
.facets h4 { margin: 0 0 8px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
             letter-spacing: .13em; color: var(--ink-3); font-weight: 500; }
.facet { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px;
         border-radius: 7px; color: var(--ink-2); font-size: 13.5px; }
.facet span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.facet:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.facet.active { background: rgb(244 63 94 / .11); color: var(--rose); }
.facet.active span { color: var(--rose); }
.result-count { color: var(--ink-3); font-size: 13px; margin: 0 0 16px; font-variant-numeric: tabular-nums; }
.result-count b { color: var(--ink-2); font-weight: 600; }
.pagination { display: flex; gap: 6px; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.pagenum { min-width: 34px; text-align: center; padding: 6px 10px; border-radius: 7px;
           border: 1px solid var(--edge); color: var(--ink-2); font: 13px var(--mono);
           font-variant-numeric: tabular-nums; }
a.pagenum:hover { border-color: var(--rose); text-decoration: none; }
.pagenum.current { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; font-weight: 600; }
.pagination .gap { color: var(--ink-3); padding-inline: 2px; }

/* ── Pricing ────────────────────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(224px, 1fr)); gap: 16px; }
.tier { background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius);
        padding: 24px; box-shadow: var(--lift-1); }
.tier h3 { margin: 0; font-size: 15px; }
.tier .price { font-family: var(--mono); font-size: var(--step-3); font-weight: 600;
               letter-spacing: -.03em; margin: 8px 0 16px; }
.tier .price span { font-size: 13px; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }
.tier ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; }
.tier li { margin: 5px 0; }

.notice { border: 1px solid rgb(245 158 11 / .42); background: rgb(245 158 11 / .09);
          color: var(--amber); border-radius: var(--radius-sm); padding: 11px 16px;
          font-size: 13.5px; margin: 14px 0; }

footer { border-top: 1px solid var(--edge-soft); margin-top: 48px; padding-block: 30px;
         color: var(--ink-3); font-size: 13px; }
footer .digest-rule { margin-top: 0; margin-bottom: 18px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-block: 56px 48px; }
  .two-col, .browse-layout { grid-template-columns: 1fr; }
  .metrics-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important;
                           transition-duration: .001ms !important; }
}

/* ==========================================================================
   Components that were being hand-rolled as inline styles.

   54 inline `style=` attributes had accumulated across the templates —
   each one a small local decision that drifted from its neighbours.
   That is what "cosmetically off in many places" actually looks like:
   not one bug, but the same thing solved slightly differently a dozen
   times. These are the patterns, named once.
   ========================================================================== */

/* Label / long-value pairs. Replaces tables for metadata: a table sizes
   itself from its widest unbreakable token, so a sha256 pushed the whole
   panel wider than its column. A grid with minmax(0,1fr) cannot. */
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 16px; margin: 0; }
.kv dt {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink-3); white-space: nowrap;
}
.kv dd {
  margin: 0; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
  overflow-wrap: anywhere; line-height: 1.5; min-width: 0;
}
.kv dd.ok { color: var(--amber); }

/* Tables inside panels must never widen their container. `fixed` makes
   column widths independent of content, which is the only reliable way
   to keep a hash from blowing out the layout. */
.panel table, .table-fixed { table-layout: fixed; }
.panel td, .table-fixed td { overflow-wrap: anywhere; }

/* The dotted metadata line under a page title. */
.meta-line {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-3);
  margin: 8px 0 0; overflow-wrap: anywhere;
}
.meta-line .sep { opacity: .5; padding-inline: 6px; }

.page-head { margin-bottom: 30px; }
.page-head h2.sec { font-size: var(--step-3); margin-top: 10px; }
.lede-text { color: var(--ink-2); max-width: var(--measure); margin: 16px 0 0; }

.btn.block { width: 100%; justify-content: center; }
.muted { color: var(--ink-3); }
.stack-gap { display: flex; flex-direction: column; gap: 10px; }
.row-gap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Panels own their internal rhythm instead of each child carrying a
   bespoke margin-top. */
.panel > * + * { margin-top: 14px; }
.panel > .label + * { margin-top: 6px; }
.panel h3 { margin-bottom: 0; }
.panel pre { margin: 0; }
.panel .sec-sub { margin: 0; }

/* Section that follows another with no double padding. */
section.tight { padding-top: 0; }

/* Centred single-column pages (sign-in). */
.narrow { max-width: 420px; margin-inline: auto; padding-top: 64px; }
.center { text-align: center; }

/* Admin: dense forms that were being flex'd inline. */
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form select, .inline-form input { width: auto; min-width: 110px; }

/* Semantic text colours, so severity never needs an inline style. */
.txt-danger { color: var(--danger); }
.txt-warn   { color: var(--amber); }
.txt-ok     { color: var(--teal, var(--amber)); }

/* Scanner evidence inside a finding: pre-formatted, clipped, and never
   allowed to widen its row. */
.finding .sample {
  margin-top: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  background: var(--ground); border: 1px solid var(--edge-soft); border-radius: 6px;
  padding: 6px 8px; overflow-wrap: anywhere; max-height: 84px; overflow-y: auto;
}
.finding { overflow-wrap: anywhere; }

/* Forms inside panels get the panel's rhythm, not doubled margins. */
.panel form > label:first-child { margin-top: 0; }
.panel form { margin-top: 14px; }
.panel form .btn { margin-top: 14px; }
