/* ---------------------------------------------------------------------------
   The application: dashboard, auth, settings, billing.

   It shares the dealt palette with the marketing page and nothing else. No
   kit, no motion layer, no effects: this is a page people read numbers off.
   Denser type, a 13px monospace for every machine value (commit, rule id,
   severity, token), one accent used only where something is actionable.
   --------------------------------------------------------------------------- */

:root {
  --bg: #0f0f0f;
  --panel: #171717;
  --panel-2: #202020;
  --ink: #ffffff;
  --mid: #bdbdbd;
  --dim: #a0a0a0;
  --line: rgb(255 255 255 / .09);
  --line-2: rgb(255 255 255 / .16);
  --accent: #dafa9c;
  --accent-ink: #0f0f0f;

  --sev-critical: #ff8270;
  --sev-high: #ffa94d;
  --sev-medium: #ffd666;
  --sev-low: #a0a0a0;
  --ok: #dafa9c;

  --font-text: "Onest", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --side-w: 236px;

  /* The two curves the whole application uses. The strong ease-out is the
     one from the motion reference; the built-in keyword is too weak to read
     as deliberate at these durations. */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  background:
    radial-gradient(90rem 40rem at 50% -24rem, rgb(218 250 156 / .055), transparent 70%),
    var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--font-text);
  min-height: 100dvh;
  letter-spacing: -0.005em;
}

a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mono { font-family: var(--font-mono); font-size: .92em; }

/* ------------------------------------------------------------------ the rail
   The sections down the left, the account at the bottom, the panel beside it.
   A rail rather than a bar because a 56px line could not hold the sections,
   the organization, the plan, the address and the way out without squeezing
   all five, and because every tool these people already have open works this
   way. Three classes outlive the bar it replaced -- the spacer, the plan chip
   and the pending mark -- because panels all over the application use them. */

.a-shell {
  position: relative;
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  min-height: 100dvh;
}

/* A fine rule over the whole application, fading out before it reaches the
   content. It gives the page a floor to sit on; at this contrast it is felt
   rather than seen. */
.a-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / .021) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .021) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(82rem 48rem at 24% -10rem, #000 8%, transparent 70%);
  mask-image: radial-gradient(82rem 48rem at 24% -10rem, #000 8%, transparent 70%);
}

/* The light. Two soft fields, the brand lime high on the left and the amber
   the high severities already use low on the right, drifting slowly enough
   that nothing on the page appears to move while it is being read. They are
   gradients rather than blurred shapes, so no filter has to be rasterised. */
.a-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.a-glow::before, .a-glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.a-glow::before {
  width: 56rem;
  height: 38rem;
  left: -8rem;
  top: -17rem;
  background: radial-gradient(closest-side, rgb(218 250 156 / .15), rgb(218 250 156 / .035) 56%, transparent 74%);
}
.a-glow::after {
  width: 46rem;
  height: 34rem;
  right: -14rem;
  top: 24rem;
  background: radial-gradient(closest-side, rgb(255 169 77 / .085), transparent 72%);
}
@media (prefers-reduced-motion: no-preference) {
  .a-glow::before { animation: a-glow-a 36s var(--ease) infinite alternate; }
  .a-glow::after { animation: a-glow-b 48s var(--ease) infinite alternate; }
}
@keyframes a-glow-a {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(5rem, 2.5rem, 0); }
}
@keyframes a-glow-b {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-4rem, -5rem, 0); }
}

.a-view { position: relative; z-index: 1; min-width: 0; }

.a-side {
  position: sticky;
  top: 0;
  z-index: 10;
  align-self: start;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 18px 12px 16px;
  border-right: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 84%, #000);
  backdrop-filter: blur(10px);
}

.a-side__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 4px;
  font: 500 16px/1 var(--font-text);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.a-side__logo i {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--accent);
  font: 600 12px/1 var(--font-mono);
  font-style: normal;
}

.a-side__group {
  padding: 16px 10px 6px;
  color: var(--dim);
  font: 500 10px/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .62;
}

.a-side__nav { display: grid; gap: 1px; align-content: start; }
.a-side__nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  color: var(--dim);
  font-size: 14px;
  text-decoration: none;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.a-side__nav a:hover { color: var(--ink); background: rgb(255 255 255 / .035); }
.a-side__nav a[aria-current='page'] { color: var(--ink); background: rgb(255 255 255 / .055); }
.a-side__nav a[aria-current='page'] .a-side__icon { color: var(--accent); }

.a-side__icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
}

.a-side__sp { flex: 1; min-height: 20px; }

.a-side__foot {
  display: grid;
  gap: 8px;
  padding: 12px 10px 0;
  border-top: 1px solid var(--line);
}
.a-side__org { display: flex; align-items: center; gap: 8px; min-width: 0; }
.a-side__org b {
  min-width: 0;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.a-side__you {
  color: var(--dim);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.a-side__foot form { display: block; }

/* The three the bar left behind. */
.a-bar__sp { flex: 1; }

.a-bar__plan {
  font: 400 10px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line-2);
  padding: 4px 6px;
  flex: none;
}
.a-bar__plan[data-plan='team'] {
  color: var(--accent);
  border-color: color-mix(in oklab, var(--accent) 40%, transparent);
}

/* The clicked section answers at once, while its panel is still a server
   render away. The rail fills from the top; nothing moves, so the sidebar
   does not reflow. */
.a-bar__pending {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  opacity: 0;
}
.a-bar__pending[data-on] {
  opacity: 1;
  animation: a-side-pending 1.4s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes a-side-pending {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.a-main {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 96px;
}

.a-head { display: grid; gap: 8px; margin-bottom: 28px; }
.a-head h1 {
  font: 400 30px/1.15 var(--font-text);
  letter-spacing: -0.035em;
}
.a-head p { color: var(--mid); max-width: 62ch; }
.a-head__row { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.a-head__row .a-head { margin: 0; flex: 1 1 24rem; }

.a-sub {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}

.a-grid { display: grid; gap: 16px; }
.a-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.a-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.a-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.a-grid--side { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 899px) {
  .a-grid--3, .a-grid--4, .a-grid--side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) { .a-grid--2 { grid-template-columns: minmax(0, 1fr); } }

/* -------------------------------------------------------------------- panels */

.a-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px;
  min-width: 0;
}
.a-card--flush { padding: 0; }
.a-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.a-card__head h2 { font: 500 14px/1.3 var(--font-text); }
.a-card__head .a-bar__sp { flex: 1; }

.a-stat { display: grid; gap: 6px; }
.a-stat b {
  font: 400 32px/1 var(--font-mono);
  letter-spacing: -0.02em;
}
.a-stat span {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}
.a-stat--critical b { color: var(--sev-critical); }
.a-stat--high b { color: var(--sev-high); }
.a-stat--ok b { color: var(--ok); }

/* --------------------------------------------------------------------- trend */

.a-trend { display: flex; align-items: flex-end; gap: 3px; height: 44px; }
.a-trend i {
  flex: 1 1 4px;
  min-width: 4px;
  max-width: 14px;
  background: var(--ok);
  opacity: .85;
}
.a-trend i[data-s='failed'] { background: var(--sev-critical); }
.a-trend__legend {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font: 400 11px/1 var(--font-mono);
  color: var(--dim);
}
.a-trend__legend b { font-weight: 400; color: var(--mid); }

/* --------------------------------------------------------------------- lists */

.a-rows { display: grid; }
.a-row {
  display: grid;
  /* The dot and the text are fixed; everything after them -- a severity bar, a
     time, a button -- takes a column of its own on the same line, however many
     a particular row has. Without this the fourth child wraps to a second row
     and the time ends up under the name. */
  grid-template-columns: 10px minmax(0, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: auto;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  min-width: 0;
  transition: background .15s;
}
.a-row:last-child { border-bottom: 0; }
a.a-row:hover { background: var(--panel-2); }
.a-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.a-row__dot[data-s='failed'] { background: var(--sev-critical); }
.a-row__main { min-width: 0; display: grid; gap: 3px; }
.a-row__main b { font: 500 14px/1.3 var(--font-text); overflow-wrap: anywhere; }
.a-row__main span { color: var(--dim); font: 400 12px/1.4 var(--font-mono); overflow-wrap: anywhere; }
.a-row__when { color: var(--dim); font: 400 12px/1 var(--font-mono); white-space: nowrap; }

/* ---------------------------------------------------------------- severities */

.a-sev {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid currentcolor;
  font: 500 10px/1.5 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.a-sev--critical { color: var(--sev-critical); }
.a-sev--high { color: var(--sev-high); }
.a-sev--medium { color: var(--sev-medium); }
.a-sev--low { color: var(--sev-low); }

/* ------------------------------------------------------------------ findings */

.a-finding {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.a-finding:last-child { border-bottom: 0; }
.a-finding__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.a-finding__head b { font: 500 15px/1.3 var(--font-text); }
.a-finding__at { color: var(--dim); font: 400 12px/1 var(--font-mono); }
.a-finding__rule { color: var(--mid); font: 500 12px/1 var(--font-mono); }
.a-finding p { color: var(--mid); font-size: 14px; }
.a-finding dl { display: grid; gap: 8px; margin: 0; }
.a-finding dt {
  font: 500 10px/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 3px;
}
.a-finding dd { margin: 0; color: var(--mid); font-size: 14px; }
.a-code {
  display: block;
  padding: 10px 12px;
  background: #0d1211;
  border-left: 2px solid var(--line-2);
  color: var(--ink);
  font: 400 12.5px/1.6 var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.a-code--critical { border-left-color: var(--sev-critical); }
.a-code--high { border-left-color: var(--sev-high); }
.a-code--medium { border-left-color: var(--sev-medium); }
.a-code--low { border-left-color: var(--sev-low); }

/* ------------------------------------------------------------------- buttons */

.a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  font: 500 14px/1.3 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s, filter .15s;
}
.a-btn:hover { filter: brightness(1.08); }
.a-btn:active { transform: translateY(1px); }
.a-btn[disabled] { opacity: .5; cursor: not-allowed; }
.a-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.a-btn--ghost:hover { background: var(--panel-2); filter: none; }
.a-btn--wide { width: 100%; }
.a-btn--small { padding: 6px 10px; font-size: 13px; }
.a-btn--danger { background: transparent; color: var(--sev-critical); border-color: color-mix(in oklab, var(--sev-critical) 45%, transparent); }
.a-btn--danger:hover { background: color-mix(in oklab, var(--sev-critical) 12%, transparent); filter: none; }

.a-btn__icon { width: 16px; height: 16px; flex: none; }

/* -------------------------------------------------------------------- forms */

.a-form { display: grid; gap: 14px; }
.a-field { display: grid; gap: 6px; }
.a-field > label {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}
.a-field input, .a-field select, .a-field textarea {
  width: 100%;
  padding: 10px 12px;
  background: #0f1413;
  border: 1px solid var(--line-2);
  color: var(--ink);
  font: 400 14px/1.4 var(--font-text);
}
.a-field input::placeholder { color: color-mix(in oklab, var(--dim) 70%, transparent); }
.a-field input:focus-visible, .a-field select:focus-visible, .a-field textarea:focus-visible {
  border-color: var(--accent);
  outline: none;
}
.a-field--mono input { font-family: var(--font-mono); font-size: 13px; }
.a-field__hint { color: var(--dim); font-size: 12.5px; }
.a-field__hint code { font-family: var(--font-mono); color: var(--mid); }

.a-note {
  padding: 11px 13px;
  border-left: 2px solid var(--line-2);
  background: var(--panel-2);
  font-size: 13.5px;
  color: var(--mid);
}
.a-note--bad { border-left-color: var(--sev-critical); color: var(--ink); }
.a-note--good { border-left-color: var(--ok); color: var(--ink); }
.a-note code { font-family: var(--font-mono); font-size: 12.5px; overflow-wrap: anywhere; }

.a-rule {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--dim);
  font: 400 11px/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.a-rule::before, .a-rule::after { content: ''; height: 1px; background: var(--line); }

/* --------------------------------------------------------------------- empty */

.a-empty { display: grid; gap: 12px; padding: 40px 18px; justify-items: start; }
.a-empty h3 { font: 400 20px/1.25 var(--font-text); letter-spacing: -0.02em; }
.a-empty p { color: var(--mid); max-width: 52ch; }

/* ---------------------------------------------------------------------- lock */

.a-lock {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid color-mix(in oklab, var(--accent) 28%, transparent);
  justify-items: start;
}
.a-lock h3 { font: 400 22px/1.2 var(--font-text); letter-spacing: -0.025em; }
.a-lock p { color: var(--mid); max-width: 56ch; }
.a-lock ul { display: grid; gap: 7px; }
.a-lock li { color: var(--mid); font-size: 14px; padding-left: 18px; position: relative; }
.a-lock li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------- token */

.a-token {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #0d1211;
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
}
.a-token code {
  display: block;
  font: 400 13px/1.6 var(--font-mono);
  color: var(--accent);
  overflow-wrap: anywhere;
  user-select: all;
}

/* ---------------------------------------------------------------------- auth */

.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
@media (max-width: 899px) { .auth { grid-template-columns: minmax(0, 1fr); } }

.auth__form {
  display: grid;
  align-content: center;
  justify-items: stretch;
  gap: 22px;
  padding: 48px max(24px, 6vw);
  max-width: 34rem;
  width: 100%;
  margin-left: auto;
}
.auth__form h1 { font: 400 28px/1.2 var(--font-text); letter-spacing: -0.035em; }
.auth__form > p { color: var(--mid); }
.auth__back {
  font: 500 16px/1 var(--font-text);
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
  justify-self: start;
}
.auth__back i {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  /* The shield carries the accent as its own fill, the way it does in the
     application bar and the favicon. It used to be a "pg" tile here, which
     made a fourth version of the mark on the three pages that are a visitor's
     first sight of the product. */
  color: var(--accent);
  vertical-align: -3px;
}
.auth__alt { color: var(--dim); font-size: 14px; }
.auth__alt a { color: var(--accent); text-decoration: none; }
.auth__alt a:hover { text-decoration: underline; }

.auth__aside {
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 48px max(24px, 4vw);
  background:
    linear-gradient(180deg, rgb(218 250 156 / .05), transparent 60%),
    var(--panel);
  border-left: 1px solid var(--line);
  min-width: 0;
}
@media (max-width: 899px) { .auth__aside { display: none; } }
.auth__aside h2 {
  font: 400 22px/1.25 var(--font-text);
  letter-spacing: -0.03em;
  max-width: 28ch;
}
.auth__aside p { color: var(--mid); max-width: 48ch; }

.term {
  background: #0b0f0e;
  border: 1px solid var(--line);
  padding: 16px 18px;
  font: 400 12.5px/1.75 var(--font-mono);
  color: var(--mid);
  overflow: hidden;
}
.term p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.term .p { color: var(--accent); }
.term .c { color: var(--sev-critical); }
.term .h { color: var(--sev-high); }
.term .d { color: var(--dim); }
.term .s { color: var(--ink); }

/* --------------------------------------------------------------- misc tables */

.a-kv { display: grid; gap: 10px; }
.a-kv div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 12px; align-items: baseline; }
.a-kv dt {
  font: 500 11px/1.6 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}
.a-kv dd { margin: 0; color: var(--mid); font: 400 13px/1.6 var(--font-mono); overflow-wrap: anywhere; }
@media (max-width: 599px) { .a-kv div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

.a-stack { display: grid; gap: 22px; }
.a-stack--tight { gap: 12px; }
.a-row-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  /* Fewer and gentler, not none: what is left is the fade that stops a panel
     appearing out of nowhere. Everything that travels is dropped. */
  * { transition: none !important; }
  *:not(.a-rows > .a-row, .a-stat, .a-head, .a-stack > .a-card) { animation: none !important; }
  .a-rows > .a-row, .a-stat, .a-head, .a-stack > .a-card {
    animation: a-appear 160ms linear backwards !important;
    animation-delay: 0ms !important;
  }
  /* The pending rule is feedback, not decoration: with the animation off it
     would stay at scaleX(0) and show nothing, so it appears at once instead. */
  .a-bar__pending[data-on] { transform: scaleX(1); }
}

@keyframes a-appear { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------- legal */

.legal h2 {
  font: 400 20px/1.3 var(--font-text);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.legal section { display: grid; gap: 10px; }
.legal p, .legal li { color: var(--mid); font-size: 15px; }
.legal ul { display: grid; gap: 8px; padding-left: 18px; list-style: disc; }
.legal li::marker { color: var(--dim); }
.legal a { color: var(--accent); }

/* ------------------------------------------------------------- narrow screens
   The bar keeps the wordmark, the sections and the way out; the plan badge and
   the address go, because on a phone they are the two things you already know.
   Nothing is allowed to push the page wider than the screen. */

@media (max-width: 899px) {
  /* The rail lies down. The sections scroll sideways in it, the address and
     the email go -- on a phone they are the two things you already know --
     and the plan and the way out stay, because they are the two reasons to
     look at the bottom of the rail on a laptop. */
  .a-shell { grid-template-columns: minmax(0, 1fr); }
  .a-side {
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .a-side::-webkit-scrollbar { display: none; }
  .a-side__logo { padding: 0 4px 0 0; }
  .a-side__nav { display: flex; gap: 1px; }
  .a-side__nav a { white-space: nowrap; }
  .a-side__group { display: none; }
  .a-side__sp { display: none; }
  .a-side__foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 0 0 0 12px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .a-side__org b, .a-side__you { display: none; }
  .a-main { padding: 24px 14px 72px; }
  .a-head h1 { font-size: 24px; }
  .a-card { padding: 14px; }
  .a-card__head, .a-row, .a-finding { padding-left: 14px; padding-right: 14px; }
  .a-stat b { font-size: 26px; }
  .a-finding__at { width: 100%; }
}

@media (max-width: 599px) {
  .a-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* On a phone the row stacks. Every trailing part has to be told which
     column it belongs to: without this the severity bar auto-placed into
     column one of the next line and was painted straight over the time. */
  .a-row { grid-template-columns: 10px minmax(0, 1fr); grid-auto-flow: row; row-gap: 8px; }
  .a-row__when { grid-column: 2; }
  .a-pips { grid-column: 2; justify-self: start; }
  .a-row form { grid-column: 2; justify-self: start; }
  .auth__form { padding: 36px 20px; }
}

/* ----------------------------------------------------------- the repo list
   What GitHub says this person has. A row is a line of text and a button,
   not a card: the list is read down the left edge, and the only thing that
   moves on hover is the row's own ground. */

.a-pick { display: grid; gap: 14px; }

.a-pick__list {
  display: grid;
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--line);
  background: var(--panel-2);
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.a-pick__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}
.a-pick__row:last-child { border-bottom: 0; }
.a-pick__row:hover { background: color-mix(in oklab, var(--accent) 7%, transparent); }
.a-pick__row[data-off] { opacity: .55; }
.a-pick__row[data-off]:hover { background: transparent; }

.a-pick__main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.a-pick__main b {
  font: 400 13px/1.4 var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.a-pick__main span { color: var(--dim); font-size: 12px; }

.a-pick__done {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

.a-pick__empty { padding: 16px 12px; color: var(--dim); font-size: 14px; }

/* The hand-written name, kept but folded away: it is the fallback, not the
   way in. */
.a-more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.a-more summary {
  cursor: pointer;
  color: var(--dim);
  font-size: 13px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .15s ease;
}
.a-more summary::-webkit-details-marker { display: none; }
.a-more summary::before {
  content: '';
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .2s ease;
}
.a-more[open] summary::before { transform: rotate(45deg); }
.a-more summary:hover { color: var(--ink); }
.a-more > *:not(summary) { margin-top: 14px; }

/* ------------------------------------------------------------ the staff panel
   Denser than a customer's panel: it is read in one sitting, across accounts,
   so it gets a wider page, a table, and two small charts that are read by
   shape rather than by number. */

.a-main--wide { max-width: 1420px; }

.a-grid--5 { display: grid; gap: 14px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .a-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .a-grid--5 { grid-template-columns: 1fr; } }

.a-stat__sub {
  font: 400 11px/1.4 var(--font-mono) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--dim);
  opacity: .75;
}

/* fourteen days of scans, failures stacked at the foot of each bar */
.a-days { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.a-days__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  height: 100%;
  gap: 6px;
}
.a-days__bar {
  position: relative;
  display: block;
  min-height: 2px;
  background: color-mix(in oklab, var(--accent) 55%, transparent);
  transition: background .15s ease;
  transform-origin: bottom;
  animation: a-days-rise .5s cubic-bezier(.22, 1, .36, 1) backwards;
}
.a-days__col:hover .a-days__bar { background: var(--accent); }
.a-days__bar i {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: block;
  background: var(--sev-critical);
}
.a-days__tick {
  text-align: center;
  font: 400 10px/1 var(--font-mono);
  color: var(--dim);
  opacity: .7;
}
@keyframes a-days-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* the organizations table */
.a-tablewrap { overflow-x: auto; }
.a-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.a-table th {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.a-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: middle;
}
.a-table tr:last-child td { border-bottom: 0; }
.a-table tbody tr { transition: background .15s ease; }
.a-table tbody tr:hover { background: color-mix(in oklab, var(--accent) 5%, transparent); }
.a-table .num { text-align: right; }
.a-table .dim { color: var(--dim); }
.a-table .mono { font-family: var(--font-mono); font-size: 12px; }

/* The rule index. A phone cannot hold three columns of it, and a table that
   scrolls sideways inside a card is a table nobody reads: under 720px each
   row lays itself out as the rule and its severity, with what it catches
   on the line under them. */
@media (max-width: 719px) {
  /* the "worst first in a scan" aside has nowhere to sit beside the heading */
  .rules-index .a-card__head .a-sub { display: none; }
  .a-table--rules thead { display: none; }
  .a-table--rules tbody tr {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 4px 10px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
  }
  .a-table--rules tbody tr:last-child { border-bottom: 0; }
  .a-table--rules td { padding: 0; border: 0; white-space: normal; }
  .a-table--rules td:nth-child(3) { grid-column: 1 / -1; }
}

.a-chip {
  margin-left: 6px;
  padding: 2px 5px;
  border: 1px solid var(--line-2);
  font: 400 10px/1.4 var(--font-mono);
  color: var(--dim);
}

/* the severity split of one run, as one bar */
.a-pips { display: flex; width: 72px; height: 4px; gap: 1px; flex: none; }
.a-pips i { display: block; min-width: 2px; }
.a-pips i[data-sev='critical'] { background: var(--sev-critical); }
.a-pips i[data-sev='high'] { background: var(--sev-high); }
.a-pips i[data-sev='medium'] { background: var(--sev-medium); }
.a-pips i[data-sev='low'] { background: var(--sev-low); }

/* which rules fire most */
.a-ranks { display: grid; gap: 2px; padding: 8px 0; }
.a-ranks li {
  display: grid;
  grid-template-columns: 7ch 1fr 4ch;
  align-items: center;
  gap: 12px;
  padding: 7px 18px;
  font-size: 12px;
}
.a-ranks li:hover { background: color-mix(in oklab, var(--accent) 5%, transparent); }
.a-ranks span[data-sev] { color: var(--dim); }
.a-ranks span[data-sev='critical'] { color: var(--sev-critical); }
.a-ranks span[data-sev='high'] { color: var(--sev-high); }
.a-ranks__bar { display: block; height: 6px; background: var(--panel-2); }
.a-ranks__bar i {
  display: block;
  height: 100%;
  background: var(--sev-low);
  transform-origin: left;
  animation: a-rank-grow .55s cubic-bezier(.22, 1, .36, 1) backwards;
}
.a-ranks__bar i[data-sev='critical'] { background: var(--sev-critical); }
.a-ranks__bar i[data-sev='high'] { background: var(--sev-high); }
.a-ranks__bar i[data-sev='medium'] { background: var(--sev-medium); }
.a-ranks b { text-align: right; color: var(--mid); }
@keyframes a-rank-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }


/* ------------------------------------------------------------------ motion
   A panel is a skeleton first and real numbers a moment later, so the swap
   is bridged rather than jumped: one short rise, dealt across the tiles and
   the first rows so the block reads as one movement instead of eleven.

   Everything here moves only transform and opacity, and every animation
   fills backwards from a resting state that is already visible -- so with
   motion turned off nothing is left hidden.

   The bar, its links and the row hovers are deliberately left out: those are
   seen tens of times a day, and at that frequency the right amount of
   movement is none. */

@media (prefers-reduced-motion: no-preference) {
  .a-head,
  .a-grid > .a-stat,
  .a-stack > .a-card,
  .a-grid--side > *,
  .a-rows > .a-row {
    animation: a-rise 260ms var(--ease-out) backwards;
  }

  .a-head { animation-duration: 200ms; }

  /* 40ms apart: enough to read as a sequence, not enough to wait for. */
  .a-grid > .a-stat:nth-child(2) { animation-delay: 40ms; }
  .a-grid > .a-stat:nth-child(3) { animation-delay: 80ms; }
  .a-grid > .a-stat:nth-child(4) { animation-delay: 120ms; }
  .a-grid > .a-stat:nth-child(5) { animation-delay: 160ms; }

  .a-stack > .a-card:nth-child(2) { animation-delay: 60ms; }
  .a-stack > .a-card:nth-child(3) { animation-delay: 110ms; }
  .a-grid--side > *:nth-child(2) { animation-delay: 60ms; }

  /* Rows are capped at eight: past that the stagger stops being a sequence
     and starts being a queue. */
  .a-rows > .a-row:nth-child(1) { animation-delay: 30ms; }
  .a-rows > .a-row:nth-child(2) { animation-delay: 60ms; }
  .a-rows > .a-row:nth-child(3) { animation-delay: 90ms; }
  .a-rows > .a-row:nth-child(4) { animation-delay: 120ms; }
  .a-rows > .a-row:nth-child(5) { animation-delay: 150ms; }
  .a-rows > .a-row:nth-child(6) { animation-delay: 180ms; }
  .a-rows > .a-row:nth-child(7) { animation-delay: 210ms; }
  .a-rows > .a-row:nth-child(n + 8) { animation-delay: 240ms; }
}

@keyframes a-rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* The chart bars are an explanation -- the shape is what is being read -- so
   they grow from the baseline the list grows from. Dealt left to right. */
.a-days__col:nth-child(2) .a-days__bar { animation-delay: 25ms; }
.a-days__col:nth-child(3) .a-days__bar { animation-delay: 50ms; }
.a-days__col:nth-child(4) .a-days__bar { animation-delay: 75ms; }
.a-days__col:nth-child(5) .a-days__bar { animation-delay: 100ms; }
.a-days__col:nth-child(6) .a-days__bar { animation-delay: 125ms; }
.a-days__col:nth-child(7) .a-days__bar { animation-delay: 150ms; }
.a-days__col:nth-child(8) .a-days__bar { animation-delay: 175ms; }
.a-days__col:nth-child(9) .a-days__bar { animation-delay: 200ms; }
.a-days__col:nth-child(10) .a-days__bar { animation-delay: 225ms; }
.a-days__col:nth-child(11) .a-days__bar { animation-delay: 250ms; }
.a-days__col:nth-child(12) .a-days__bar { animation-delay: 275ms; }
.a-days__col:nth-child(13) .a-days__bar { animation-delay: 300ms; }
.a-days__col:nth-child(14) .a-days__bar { animation-delay: 325ms; }

.a-ranks li:nth-child(2) .a-ranks__bar i { animation-delay: 35ms; }
.a-ranks li:nth-child(3) .a-ranks__bar i { animation-delay: 70ms; }
.a-ranks li:nth-child(4) .a-ranks__bar i { animation-delay: 105ms; }
.a-ranks li:nth-child(n + 5) .a-ranks__bar i { animation-delay: 140ms; }

/* The stat number is the one thing on the page worth a beat of its own: it
   counts up from nothing being known to a number that is now known. */
@media (prefers-reduced-motion: no-preference) {
  .a-stat b {
    animation: a-count 320ms var(--ease-out) backwards;
    animation-delay: inherit;
  }
}
@keyframes a-count {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* Hover belongs to the pointer: a tap on a phone fires a hover that then
   sticks to whatever was touched. */
@media (hover: hover) and (pointer: fine) {
  .a-card--lift { transition: transform .18s var(--ease), border-color .18s var(--ease); }
  .a-card--lift:hover { transform: translateY(-2px); }
}

/* The 404 that has no application bar above it, so it sets its own distance
   from the top of the window rather than sitting against it. */
.a-main--lost { padding-top: clamp(64px, 18vh, 180px); max-width: 640px; }

/* A destructive button that has turned into its own question. */
.a-confirm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.a-confirm__ask { color: var(--mid); font: 400 12px/1.3 var(--font-mono); text-align: right; }

/* ----------------------------------------------------- the overview
   A repository, as a card you can read at a glance: its name, the verdict
   of its newest scan in a word, the severity bar and the counts. The grid
   fits as many as the width allows and never fewer than one. */

.a-repos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
}
.a-repo {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 16px 18px;
  background: var(--panel);
  text-decoration: none;
  min-width: 0;
  transition: background .15s;
}
a.a-repo:hover { background: var(--panel-2); }
.a-repo__top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.a-repo__top b { font: 500 14px/1.3 var(--font-text); overflow-wrap: anywhere; min-width: 0; }
.a-repo__verdict {
  margin-left: auto;
  font: 500 10px/1.5 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--dim);
}
.a-repo__verdict[data-s='passed'] { color: var(--ok); }
.a-repo__verdict[data-s='failed'] { color: var(--sev-critical); }
.a-repo__meta { color: var(--dim); font: 400 12px/1.4 var(--font-mono); overflow-wrap: anywhere; }
.a-repo .a-pips { width: 100%; height: 5px; }

/* A finding in the attention list leads with its severity rather than a dot:
   the word is the first thing read, and the column is wide enough for the
   longest of the four so the names below it line up. */
.a-row--fix { grid-template-columns: 76px minmax(0, 1fr); }
.a-row--fix .a-sev { justify-self: start; }

@media (max-width: 640px) {
  .a-repos { grid-template-columns: 1fr; }
  /* On a phone the severity goes above the name rather than beside it: in a
     76px column next to three wrapped lines it floats in the middle of its
     own empty space. */
  .a-row--fix { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; row-gap: 7px; }
  .a-row--fix > * { grid-column: 1; justify-self: start; }
}
.a-repo__verdict[data-s='mixed'] { color: var(--sev-medium); }

/* ------------------------------------------------------------- the overview
   The three figures the tiles used to hold, on one line. A number and the
   noun it counts, the number in the accent only when it is a number somebody
   has to do something about. */

.a-figs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 16px 0 24px;
  color: var(--dim);
  font: 400 13px/1 var(--font-mono);
}
.a-figs span { display: inline-flex; align-items: baseline; gap: 6px; }
.a-figs b { color: var(--mid); font: 500 20px/1 var(--font-text); letter-spacing: -0.02em; }
.a-figs span[data-tone='bad'] b { color: var(--sev-critical); }
.a-figs span[data-tone='warn'] b { color: var(--sev-high); }

.a-head__row { align-items: flex-start; }
.a-head__row > .a-btn { flex: none; margin-top: 4px; }

/* What is still in the newest scan: the rule, where it is, the line with a
   caret under the column, and the rewrite. One block per finding rather than
   one row, because a row can say what is wrong and only this can say where. */

.a-fix {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.a-fix:last-child { border-bottom: 0; }
.a-fix__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.a-fix__head b { font: 500 15px/1.3 var(--font-text); }
.a-fix__at { color: var(--dim); font-size: 12px; overflow-wrap: anywhere; }
.a-fix__open {
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
}
.a-fix__open:hover { border-bottom-color: var(--accent); }
.a-fix__more {
  padding: 14px 18px;
  color: var(--dim);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------- the scanner
   The form and the result side by side on a desktop, because a person pasting
   a migration wants to see both the text they pasted and what was said about
   it without scrolling between them. */

.a-scan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 1099px) { .a-scan { grid-template-columns: minmax(0, 1fr); } }

.a-scan__chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 479px) { .a-scan__chips { grid-template-columns: minmax(0, 1fr); } }
.a-scan__chip {
  display: grid;
  gap: 3px;
  padding: 11px 14px;
  text-align: left;
  background: var(--panel);
  border: 0;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.a-scan__chip:hover { background: var(--panel-2); }
.a-scan__chip[aria-pressed='true'] {
  background: color-mix(in oklab, var(--accent) 9%, var(--panel));
  box-shadow: inset 2px 0 0 var(--accent);
}
.a-scan__chip b { font: 500 13px/1.3 var(--font-text); }
.a-scan__chip span { color: var(--dim); font: 400 11px/1.3 var(--font-mono); }

.a-scan__body { display: grid; gap: 10px; padding: 16px 18px; }
.a-scan__label { color: var(--dim); font-size: 12.5px; }
.a-scan__code {
  width: 100%;
  min-height: 300px;
  padding: 12px;
  background: #0a0a0a;
  border: 1px solid var(--line);
  color: var(--ink);
  font: 400 12.5px/1.65 var(--font-mono);
  resize: vertical;
  tab-size: 4;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}
.a-scan__code:focus-visible { border-color: color-mix(in oklab, var(--accent) 55%, transparent); }
.a-scan__act { display: grid; gap: 10px; justify-items: start; }
.a-scan__buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.a-scan__code::placeholder { color: #4e4e4e; }
/* A sentence, so not .a-sub: that one is an uppercase monospace label and a
   paragraph set in it reads as shouting. */
.a-scan__note { max-width: 56ch; color: var(--dim); font-size: 12.5px; }

.a-scan__meta {
  padding: 12px 18px;
  color: var(--dim);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.a-scan__exit {
  padding: 14px 18px;
  color: var(--sev-critical);
  font: 400 13px/1.4 var(--font-mono);
  border-top: 1px solid var(--line);
}
.a-scan__exit.is-ok { color: var(--ok); }

/* ---------------------------------------------------------- the staff panel */

.a-said {
  margin-top: 4px;
  padding: 9px 12px;
  border-left: 2px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 7%, transparent);
  color: var(--ink);
  font-size: 13.5px;
}
.a-said--bad {
  border-left-color: var(--sev-critical);
  background: color-mix(in oklab, var(--sev-critical) 9%, transparent);
}

.a-plan { display: inline-flex; align-items: center; gap: 7px; }
.a-plan--set { margin-top: 6px; display: flex; }
.a-plan .dim { color: var(--dim); font-size: 11px; }

.a-select {
  padding: 5px 7px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--ink);
}
.a-select--small { font: 400 12px/1.2 var(--font-mono); }
.a-select:focus-visible { border-color: var(--accent); }

/* Said to a screen reader, drawn for nobody. */
.a-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
