/* /pipelines/ - two engines, one gate.
   Tokens come from base.css. This file adds nothing to the palette: it arranges
   it. The only dark surface on the page is the console, because that is what a
   console is. */

/* intro */
.pv-intro { padding: calc(var(--header-h) + clamp(36px, 6vw, 72px)) 0 clamp(28px, 4vw, 44px); }
.pv-intro h1 { font-size: clamp(38px, 7.2vw, 76px); line-height: 1.02; letter-spacing: -0.035em; margin: 10px 0 18px; }
.pv-intro .lead { max-width: 74ch; }

.pv-controls { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; margin-top: 26px; }
.pv-field { display: inline-flex; align-items: center; gap: 10px; }
.pv-lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.pv-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.pv-seg button {
  font-family: var(--font-mono); font-size: 12px; border: 0; background: var(--bg);
  color: var(--ink-dim); padding: 10px 18px; min-height: 44px; min-width: 44px; cursor: pointer;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.pv-seg button + button { border-left: 1px solid var(--line-strong); }
.pv-seg button:hover { color: var(--ink); }
.pv-seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.pv-seg button:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: -2px; }
.pv-legend { margin: 0; font-size: 11.5px; color: var(--ink-faint); }

.pv-pin { margin: 10px 0 0; font-size: 11px; color: var(--ink-faint); min-height: 18px; }
.pv-pin a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.pv-fine { margin: 20px 0 0; max-width: 68ch; font-size: 11px; line-height: 1.6; color: var(--ink-faint); }
.pv-selfcheck {  margin-top: 22px;
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: var(--bg-3);
}
.pv-selfcheck::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); flex: none; }
.pv-selfcheck.ok { color: var(--pass-strong); border-color: rgba(99, 169, 85, 0.4); }
.pv-selfcheck.ok::before { background: var(--pass-brand); }
.pv-selfcheck.bad { color: var(--danger); border-color: rgba(218, 41, 28, 0.35); }
.pv-selfcheck.bad::before { background: var(--danger-brand); }
/* The badge's three states are kept under ~40 characters so each stays one line
   at 390px. A badge that grows a second line moves the whole page, and a moved
   page is what Lighthouse calls a layout shift. */

/* section heads */
.pv-engine, .pv-gate { padding: clamp(30px, 4vw, 46px) 0 clamp(34px, 5vw, 56px); }
.pv-engine + .pv-engine { border-top: 1px solid var(--line); }
.pv-gate { border-top: 1px solid var(--line); }
.pv-ehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-bottom: 18px; }
.pv-ehead h2 { margin: 6px 0 0; font-size: clamp(21px, 2.6vw, 30px); letter-spacing: -0.022em; line-height: 1.18; }
.pv-enote { margin: 0; max-width: 46ch; font-size: 12.5px; line-height: 1.6; color: var(--ink-faint); }
.pv-enote code { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-dim); }

/* card */
.pv-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.pv-ns { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 11.5px; line-height: 1.7; color: var(--ink-dim); background: var(--bg-3); }

/* The minimums below are the FILLED height of the default run, measured with
   _pv2.html. The card is painted by a module that runs after the browser has
   already shown the shell, so an empty container that is shorter than its own
   content moves everything under it. Re-measure after changing the default
   state. The consoles use a fixed height rather than a minimum: their lines are
   drawn one at a time, and a box that grows while it fills is a layout shift. */
.pv-rhead { min-height: 72px; }
.pv-skin { min-height: 180px; padding: 4px 10px 18px; overflow-x: auto; }
.pv-log { height: 320px; }
.pv-cbody { height: 320px; }

.pv-rhead { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pv-st {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--bg); font-size: 11px; font-weight: 700; background: var(--pass-brand);
}
.pv-st.bad { background: var(--danger-brand); }
/* Status is colour + glyph + word. The word carries the meaning in greyscale,
   on a screen the visitor is not looking at directly, and in the log. */
.pv-sttxt { font-family: var(--font-mono); font-size: 12px; color: var(--pass-strong); letter-spacing: .04em; }
.pv-sttxt.bad { color: var(--danger); }
.pv-rtitle { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.pv-rtitle [data-role="id"] { font-size: 13px; color: var(--ink-dim); }
.pv-rtitle b { font-size: 15.5px; letter-spacing: -0.01em; }
.pv-rmeta { font-size: 11.5px; color: var(--ink-faint); }
.pv-rstats { margin-left: auto; display: flex; gap: 20px; }
.pv-rstats div { text-align: right; }
.pv-rstats span { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.pv-rstats b { font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pv-rstats b.ok { color: var(--pass-strong); } .pv-rstats b.bad { color: var(--danger); }

/* skin: GitLab stage columns */
.gl-cols { display: flex; min-width: 880px; }
/* 132px is where "maven-package" still fits. Below it the name becomes
   "docke…", which is a column of icons rather than a pipeline. The rest goes to
   horizontal scroll, exactly like the real page. */
.gl-col { flex: 1 0 132px; min-width: 132px; padding: 0 6px; position: relative; }
.gl-col + .gl-col::before {
  content: ""; position: absolute; left: -1px; top: 9px;
  border: 4px solid transparent; border-left-color: var(--line-strong);
}
.gl-stage { margin: 0 0 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--ink-dim); text-align: center; }
.gl-job {
  display: flex; align-items: center; gap: 7px; width: 100%; text-align: left;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 10px; margin-bottom: 6px; cursor: pointer; font: inherit; color: inherit; min-height: 44px;
  transition: border-color .14s var(--ease), box-shadow .14s var(--ease);
}
.gl-job:hover { border-color: var(--info); }
.gl-job[aria-current="true"] { border-color: var(--info); box-shadow: 0 0 0 1px var(--info); }
.gl-job.bad { border-color: rgba(218, 41, 28, 0.45); background: var(--danger-dim); }
.gl-nm { font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-du { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); flex: none; font-variant-numeric: tabular-nums; }
.ic { width: 13px; height: 13px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--bg); font-size: 8px; font-weight: 700; }
.ic.ok { background: var(--pass-brand); }
.ic.bad { background: var(--danger-brand); }
.ic.man { background: var(--bg); border: 1.5px dashed var(--ink-faint); color: var(--ink-faint); }
.ic.none { background: var(--bg); border: 1.5px solid var(--line-strong); color: var(--ink-faint); }

/* skin: Jenkins Blue Ocean nodes */
.bo-flow { display: flex; align-items: stretch; padding: 22px 8px 12px; min-width: 960px; }
.bo-node {
  position: relative; flex: 1; min-width: 112px; background: var(--bg); cursor: pointer;
  border: 1px solid var(--line); border-left: 3px solid var(--pass-brand);
  border-radius: var(--radius); padding: 9px 12px 9px 11px; text-align: left; font: inherit; color: inherit;
  min-height: 44px; display: flex; flex-direction: column; justify-content: center;
  transition: border-color .14s var(--ease), box-shadow .14s var(--ease);
}
.bo-node + .bo-node { margin-left: 18px; }
.bo-node + .bo-node::before {
  content: ""; position: absolute; left: -18px; top: 50%; width: 18px; height: 1px; background: var(--line-strong);
}
.bo-node:hover { border-color: var(--info); border-left-color: var(--info); }
.bo-node[aria-current="true"] { border-color: var(--info); border-left-color: var(--info); box-shadow: 0 0 0 2px var(--info-dim); }
.bo-node.bad { border-left-color: var(--danger-brand); background: var(--danger-dim); }
.bo-node.hollow { border-left-color: var(--line-strong); }
.bo-node.man { border-left-style: dashed; border-left-color: var(--ink-faint); }
.bo-node.hollow .bo-nm { color: var(--ink-faint); }
.bo-ic { display: none; }
.bo-nm { font-size: 12px; font-weight: 600; hyphens: none; }
.bo-du { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); margin-top: 3px; font-variant-numeric: tabular-nums; }
.bo-meta { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 10px 18px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }
.bo-meta span { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

/* console beside source */
.pv-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.pv-console { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); }
.pv-chead {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  border-bottom: 1px solid var(--line); background: var(--bg-3); font-size: 12px; min-height: 38px;
}
.pv-chead b { font-size: 12.5px; letter-spacing: -.01em; }
.pv-cstate { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-dim); }
.pv-cstate.ok { color: var(--pass-strong); border-color: rgba(99, 169, 85, .45); }
.pv-cstate.bad { color: var(--danger); border-color: rgba(218, 41, 28, .4); }
.pv-cstate.hollow { color: var(--ink-faint); }
.pv-chead .sp { margin-left: auto; font-size: 10.5px; color: var(--ink-faint); }

/* The console is a table: time, level, scope, message. The grid lives on the
   container and each row uses display:contents, so a column is exactly as wide
   as the widest cell in it across every line - which is what makes the left
   edge of the messages line up. A per-row flex would align nothing, because
   every row would size its own columns. */
.pv-log {
  background: var(--surface-dark); color: var(--on-dark);
  font-family: var(--font-mono); font-size: 12px; line-height: 1.62;
  padding: 10px 0; overflow: auto;
  display: grid; grid-template-columns: auto auto auto minmax(0, 1fr);
  column-gap: 8px;
}
.pv-log:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: -2px; }
.pv-ll { display: contents; }
/* Every cell is pinned to its own track. Without this, a row whose scope column
   is hidden hands its spare item to the next row and the whole table drifts one
   column per line. */
.pv-ll > .ts { grid-column: 1; }
.pv-ll > .lv { grid-column: 2; }
.pv-ll > .sc { grid-column: 3; }
.pv-ll > .t { grid-column: 4; }
.pv-ll > * { padding: 0 0 0 14px; }
.pv-ll > .t { padding-right: 18px; }
.pv-ll .ts { color: rgba(250, 247, 242, 0.55); font-size: 10.5px; white-space: nowrap; align-self: start; }
.pv-ll .lv { font-size: 10.5px; text-align: right; white-space: nowrap; color: rgba(250, 247, 242, 0.5); align-self: start; }
.pv-ll .sc { font-size: 10.5px; color: rgba(250, 247, 242, 0.58); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; align-self: start; }
.pv-ll .t { white-space: pre-wrap; word-break: break-word; color: var(--on-dark); }
.pv-clock { margin-left: auto; font-size: 10.5px; color: var(--ink-faint); }
.pv-ll.cmd .t { color: #9ad48f; font-weight: 600; }
.pv-ll.err .t { color: #ff9d94; } .pv-ll.err .lv { color: #ff9d94; }
.pv-ll.warn .t { color: #f0b46a; } .pv-ll.warn .lv { color: #f0b46a; }
.pv-ll.ok .t { color: #9ad48f; }
.pv-ll.out .t, .pv-ll.log .t { color: var(--on-dark); }

.pv-logfoot {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center; min-height: 34px;
  padding: 8px 14px; border-top: 1px solid var(--line); background: var(--bg-3);
  font-size: 11px; color: var(--ink-faint);
}
.pv-logfoot .ok { color: var(--pass-strong); } .pv-logfoot .bad { color: var(--danger); }
.pv-logfoot .sp { margin-left: auto; }

/* source */
.pv-src { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pv-tree {
  display: flex; gap: 4px; overflow-x: auto; padding: 8px; min-height: 60px; background: var(--bg-3);
  border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11.5px; min-width: 0;
  scroll-snap-type: x proximity;
}
.pv-tdir { display: none; }
.pv-tfile {
  flex: none; font: inherit; text-align: left; cursor: pointer; color: var(--ink-dim);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  scroll-snap-align: start; display: inline-flex; gap: 7px; align-items: center; min-height: 44px; min-width: 44px;
  transition: border-color .14s var(--ease), background .14s var(--ease);
}
.pv-tfile:hover { border-color: var(--accent); }
.pv-tfile.on { border-color: var(--accent); background: var(--accent-dim); color: var(--ink); }
.pv-tfile .m { font-size: 10px; color: var(--ink-faint); }
.pv-tfile:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 1px; }

.pv-code { display: flex; flex-direction: column; min-width: 0; min-height: 0; flex: 1; overflow: hidden; }
.pv-codehead {
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
  padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--ink-faint); min-height: 34px;
}
.pv-codehead b { font-size: 12px; color: var(--ink); }
.pv-codehead .pv-sp { margin-left: auto; font-variant-numeric: tabular-nums; }

.pv-cbody { background: var(--bg); overflow: auto; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.62; padding: 8px 0; }
.pv-cbody:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: -2px; }
.pv-cl { display: flex; gap: 10px; padding: 0 12px; }
.pv-cl .n { flex: none; width: 30px; text-align: right; color: var(--ink-faint); user-select: none; font-variant-numeric: tabular-nums; }
.pv-cl .t { white-space: pre; min-width: 0; color: var(--ink-dim); }
/* The marked block is the reason this panel exists: the lines that produced the
   job you clicked, in the file you are reading. */
.pv-cl.hit { background: var(--accent-dim); box-shadow: inset 3px 0 0 var(--accent); }
.pv-cl.hit .t { color: var(--ink); }
.pv-cfoot { padding: 7px 14px; border-top: 1px solid var(--line); background: var(--bg-3); font-size: 10.5px; color: var(--ink-faint); }

/* notes, proof, end */
.pv-note { font-size: 12.5px; color: var(--ink-faint); margin: 16px 2px 0; line-height: 1.65; }
.pv-note code { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-dim); }

/* Hairlines belong to the cells, not to the grid's background: with auto-fit the
   last row is often short, and a gap-coloured grid paints that remainder as a
   grey block that reads as a bug. */
.pv-tools { padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.pv-tool-grid { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); background: var(--bg); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pv-tool-grid li { background: var(--bg); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pv-tool-grid b { font-size: 13px; letter-spacing: -.005em; }
.pv-tool-grid span { font-size: 12.5px; line-height: 1.55; color: var(--ink-dim); }
.pv-tool-grid code { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-strong); }

.pv-proof { padding: clamp(48px, 6vw, 76px) 0; border-top: 1px solid var(--line); }
.pv-proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 16px; }
.pv-proof-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg-3); }
.pv-proof-card h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: -0.01em; }
.pv-proof-card p { margin: 0; font-size: 13.5px; line-height: 1.62; color: var(--ink-dim); }
.pv-proof-card code { font-family: var(--font-mono); font-size: 12px; color: var(--accent-strong); }

.pv-end { padding: clamp(48px, 6vw, 76px) 0; border-top: 1px solid var(--line); }
.pv-end code { font-family: var(--font-mono); font-size: 13px; color: var(--accent-strong); }
.pv-end-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* narrow */
@media (max-width: 1040px) {
  .pv-split { grid-template-columns: 1fr; }
  .pv-console { border-right: 0; border-bottom: 1px solid var(--line); }
  .pv-log { height: 294px; }
  .pv-code { height: 462px; }
  .pv-codehead { min-height: 111px; }
  .pv-cbody { height: 300px; }
}

@media (max-width: 900px) {
  .pv-rhead { min-height: 225px; }
  .pv-rstats { margin-left: 0; width: 100%; gap: 16px; }
  .pv-rstats div { text-align: left; }
  .pv-ll .sc { display: none; }
  .pv-ll { gap: 7px; padding: 0 10px; }
}

/* A strip fades only when it actually overflows: the class is set from measured
   numbers in pipelines.mjs, so a panel that fits shows no false hint. */
.pv-skin.scrolling, .pv-tree.scrolling {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent);
}

@media (prefers-reduced-motion: reduce) {
  .pv-seg button, .gl-job, .bo-node, .pv-tfile, .rp-jump-pill { transition: none; }
}

/* weekly scanner reports */
.pv-reports { padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.rp-jump-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 32px; }
.rp-jump-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 10px 18px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink);
  background: var(--bg); text-decoration: none;
  transition: border-color .14s var(--ease), color .14s var(--ease);
}
.rp-jump-pill:hover { border-color: var(--accent); color: var(--accent); }
.rp-jump-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.rp-block { scroll-margin-top: calc(var(--header-h) + 20px); margin-bottom: 48px; }
.rp-qhead { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.rp-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--accent); white-space: nowrap; text-transform: uppercase; }
.rp-qhead h3 { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; }
.rp-look { margin: 0 0 20px; font-size: 12px; color: var(--ink-faint); max-width: 68ch; line-height: 1.6; }

.rp-block .mail-card {
  max-width: 760px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; box-shadow: none;
}
.mail-top {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg-3);
}
.mail-av {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #ffffff; font-size: 12px; font-weight: 700;
  font-family: var(--font-mono); flex-shrink: 0;
}
.mail-from { font-size: 11px; color: var(--ink-faint); }
.mail-subj { font-size: 12.5px; color: var(--ink); margin-top: 2px; font-weight: 500; }
.mail-body { padding: 18px 18px 14px; background: var(--surface); }
.mail-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 4px solid var(--accent); padding-top: 10px; color: var(--ink);
}
.mail-head > span:first-child { font-size: 12px; letter-spacing: 0.12em; font-weight: 700; }
.mail-wm { font-size: 10px; letter-spacing: 0.2em; color: var(--ink-faint); border-bottom: 2px solid var(--accent); }
.mail-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 10.5px; color: var(--ink-faint); padding: 8px 0 12px; }
.mail-callout {
  border: 1px solid rgba(217, 151, 6, 0.45); border-left: 4px solid var(--warn);
  background: #fffbeb; border-radius: 4px; padding: 12px 14px; margin: 12px 0 14px;
}
.mail-callout b { color: var(--warn); font-size: 12px; display: block; }
.mail-callout p { color: var(--ink); font-size: 12px; line-height: 1.6; margin: 5px 0 0; }
.mail-callout p b { color: var(--warn); font-size: 12px; }

.mail-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.ms {
  border: 1px solid var(--line); border-top-width: 3px; border-radius: 3px;
  background: var(--surface); padding: 8px 6px; text-align: center;
}
.ms b { display: block; font-size: 17px; color: var(--ink); font-family: var(--font-mono); }
.ms span { font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-family: var(--font-mono); }
.ms.ok { border-top-color: var(--pass); }
.ms.warn { border-top-color: var(--warn); }
.ms.bad { border-top-color: var(--danger); }
.ms.dim { border-top-color: var(--line-strong); }
.ms.gray { border-top-color: var(--line-strong); }
.ms.t { border-top-color: var(--ink); }
.ms.c { border-top-color: var(--danger); }
.ms.h { border-top-color: var(--warn); }
.ms.m { border-top-color: var(--warn); }
.ms.l { border-top-color: var(--info); }
.ms.ok2 { border-top-color: var(--pass); }
.ms.p { border-top-color: var(--pass); }
.ms.n { border-top-color: var(--line-strong); }

.mail-sect { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--ink-faint); margin: 12px 0 6px; text-transform: uppercase; }
.mail-tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0; }
.mail-tbl-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mail-tbl { width: 100%; border-collapse: collapse; font-size: 11px; color: var(--ink); min-width: 520px; }
.mail-tbl .th td {
  background: var(--accent); color: #ffffff; font-family: var(--font-mono);
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; padding: 7px 9px; border: 0;
}
.mail-tbl td { padding: 7px 9px; border-bottom: 1px solid var(--line); }
.mail-tbl tr:nth-child(even) td { background: var(--bg-3); }
.mail-tbl .ok { color: var(--pass); font-weight: 600; }
.mail-tbl .warn { color: var(--warn); font-weight: 600; }
.mail-tbl .bad { color: var(--danger); font-weight: 600; }
.mail-tbl td.dim { color: var(--ink-faint); }
.mail-tbl .lk { color: var(--accent); text-decoration: underline; cursor: default; }

.pill {
  display: inline-block; font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.08em; border-radius: 2px; padding: 2px 8px; border-left: 3px solid;
}
.pill.ok { color: #256b2a; border-color: #256b2a; background: rgba(37, 107, 42, 0.08); }
.pill.bad { color: var(--danger); border-color: var(--danger); background: rgba(180, 35, 24, 0.08); }
.pill.dim { color: var(--ink-faint); border-color: var(--line-strong); background: var(--bg-3); }

.mail-att { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-family: var(--font-mono); }
.mail-att span { font-size: 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; background: var(--bg-3); padding: 6px 10px; }
.mail-note { margin-top: 10px; font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); line-height: 1.5; }
.mail-branches { color: var(--pass); }
.rp-where { margin: 14px 0 0; font-size: 12px; color: var(--ink-dim); }
.rp-where a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 760px) {
  .mail-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .mail-stats { grid-template-columns: repeat(2, 1fr); }
  .rp-qhead { flex-direction: column; gap: 4px; }
}
