/*
 * Omarchy Mac Lab: Console. Graphite neutrals with Tokyo Night's accents and
 * Omarchy's green brand. Inter for words; JetBrains Mono for what a machine
 * prints (Mac names, commands, versions, ids, logs). One look for the public
 * pages and the lab's.
 */

@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("Inter-Regular-e06f6b1bc553aaea.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  src: url("Inter-SemiBold-5cb7103e4e605989.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  src: url("JetBrainsMono-Regular-a9cb1cd82332b23a.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  src: url("JetBrainsMono-Bold-c503cc5ec5f8b2c7.woff2") format("woff2");
}

:root {
  /* graphite neutrals */
  --night: #0e1015;
  --deep: #0a0c10;
  --surface: #14171e;
  --storm: #1b1f28;
  --terminal-black: #2e3443;
  --border: #262b38;
  --line-soft: #1e222c;
  --text: #dfe3ec;
  --white: #f3f5f9;
  --fg-dim: #b3bbcc;
  --comment: #8e97ab;
  /* Tokyo Night's accents, for the brand, links and the colour code */
  --green: #9ece6a;
  --blue: #7aa2f7;
  --cyan: #7dcfff;
  --turquoise: #b4f9f8;
  --yellow: #e0af68;
  --red: #f7768e;
  --orange: #ff9e64;
  --magenta: #bb9af7;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --space: 1rem;
  --radius: 6px;
  --radius-lg: 10px;
  --transition: 0.15s cubic-bezier(0.33, 1, 0.68, 1);
  --focus: 0 0 0 3px rgb(158 206 106 / 0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 15px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--night);
  color: var(--text);
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-feature-settings: "cv11", "ss01";
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  line-height: 1.55;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

a {
  color: var(--cyan);
  text-decoration-color: rgb(125 207 255 / 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition), text-decoration-color var(--transition);
}

a:hover { color: var(--turquoise); text-decoration-color: currentColor; }
:focus-visible { border-radius: 3px; outline: 2px solid var(--green); outline-offset: 2px; }

h1, h2, h3 { color: var(--white); font-weight: 600; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 1.85rem; letter-spacing: -0.022em; margin: 0 0 0.45em; }
h2 { font-size: 1.15rem; letter-spacing: -0.012em; }
h3 { color: var(--comment); font-size: 0.75rem; letter-spacing: 0.07em; margin: 1.6em 0 0.6em; text-transform: uppercase; }
p { margin: 0 0 0.8em; }
code, pre, kbd, samp, .mono { font-family: var(--mono); font-size: 0.9em; font-variant-ligatures: none; }
code { color: var(--white); }
h1.mono { font-size: 1.7rem; letter-spacing: -0.01em; }

.dim { color: var(--comment); }
.ok { color: var(--green); }
.bad { color: var(--red); }
.nowrap { white-space: nowrap; }
.subtitle { color: var(--fg-dim); font-size: 1.05rem; margin-bottom: 1.5em; max-width: 70ch; }

/* header */

.site-header { background: var(--night); border-bottom: 1px solid var(--border); }

.header-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
}

.brand {
  align-items: center;
  color: var(--white);
  display: inline-flex;
  gap: 0.6rem;
  text-decoration: none;
}

.brand:hover { color: var(--white); }
.brand-logo { display: block; height: 24px; width: 24px; }
.brand-name { font-weight: 600; letter-spacing: -0.01em; }
.brand-suffix { color: var(--green); font-weight: 600; }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }

.site-nav a, .lab-nav a, .filters a {
  color: var(--comment);
  font-weight: 400;
  text-decoration: none;
  transition: color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.site-nav a:hover, .lab-nav a:hover, .filters a:hover { color: var(--white); }
.site-nav a.current, .lab-nav a.current, .filters a.current { color: var(--white); font-weight: 600; }
.site-nav a.current { box-shadow: inset 0 -2px 0 var(--green); padding-bottom: 0.15em; }
.sign-in { color: var(--fg-dim); text-decoration: none; white-space: nowrap; }
.sign-in:hover { color: var(--white); }

/* row 2: the lab, only when signed in */

.lab-row {
  align-items: center;
  background: var(--deep);
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.45rem clamp(1rem, 4vw, 3rem);
  scrollbar-width: none;
}

.lab-tag {
  color: var(--comment);
  font-family: var(--mono);
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lab-nav { align-self: stretch; display: flex; gap: 0.25rem 1.1rem; }
.lab-nav a { align-items: center; display: inline-flex; }
.lab-nav a.current { box-shadow: inset 0 -2px 0 var(--green); }
.lab-row .grow { flex: 1; }
.count { background: var(--red); border-radius: 999px; color: var(--night); font-size: 0.7em; font-weight: 600; line-height: 1.6; margin-left: 0.4em; padding: 0 0.5em; }
.fleet { align-items: center; color: var(--comment); display: inline-flex; font-size: 0.87em; white-space: nowrap; }
.fleet::before { background: var(--green); border-radius: 50%; content: ""; display: inline-block; height: 7px; margin-right: 0.5em; width: 7px; }
.fleet:has(.bad)::before { background: var(--red); box-shadow: 0 0 0 3px rgb(247 118 142 / 0.2); }
.fleet .bad { font-weight: 600; }
.viewer { align-items: center; display: inline-flex; gap: 0.5rem; white-space: nowrap; }
.viewer .handle { color: var(--white); font-weight: 600; text-decoration: none; }
.link-button { background: none; border: 0; color: var(--comment); cursor: pointer; font: inherit; font-size: 0.87em; padding: 0; }
.link-button:hover { color: var(--white); }

/* buttons: a filled primary, a neutral plain one, an outlined danger */

.button {
  align-items: center;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  color: var(--night);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.93em;
  font-weight: 600;
  gap: 0.4em;
  justify-content: center;
  line-height: 1.4;
  padding: 0.4em 0.95em;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.button:hover { background: #b2dc85; border-color: #b2dc85; color: var(--night); }
.button:focus-visible { box-shadow: var(--focus); outline: none; }
.button-install { margin-left: auto; }
.button-danger { background: transparent; border-color: rgb(247 118 142 / 0.55); color: var(--red); }
.button-danger:hover { background: rgb(247 118 142 / 0.12); border-color: var(--red); color: var(--red); }
.button-small { font-size: 0.85em; padding: 0.25em 0.7em; }

/* the admin's prefilled GitHub issue */
.issue-link { color: var(--cyan); font-size: 0.8em; white-space: nowrap; }
.issue-link::before { content: "+ "; color: var(--comment); }
a.badge-regression { text-decoration: none; }

/* layout */

.site-main {
  flex: 1;
  margin: 0 auto;
  max-width: 88rem;
  padding: 2.25rem clamp(1rem, 4vw, 3rem) 3.5rem;
  width: 100%;
}

.site-main-wide { max-width: none; }
/* on a wide page, what is read keeps the reading width, once the window is clearly wider than it */
@media (min-width: 104rem) {
  .reading { margin-inline: auto; max-width: 82rem; }
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--comment);
  font-size: 0.85em;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
}

.site-footer a { color: var(--fg-dim); }
.site-footer p { margin: 0.2em 0; }

.grid {
  display: grid;
  gap: 0 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
}

.flash {
  background: rgb(158 206 106 / 0.08);
  border: 1px solid rgb(158 206 106 / 0.45);
  border-radius: var(--radius);
  color: var(--text);
  margin: 1rem auto 0;
  max-width: 88rem;
  padding: 0.65rem 1rem;
  width: calc(100% - 2 * clamp(1rem, 4vw, 3rem));
}

.flash-alert { background: rgb(247 118 142 / 0.08); border-color: rgb(247 118 142 / 0.5); }
.site-main .flash { width: 100%; }

/* cards: a raised panel with its title as the first line */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 1.25rem 0;
  padding: 1.15rem clamp(0.9rem, 2vw, 1.35rem) 1.1rem;
  position: relative;
}

.card-title {
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 0.85rem;
  padding-right: 12rem;
}

.card-title::first-letter { text-transform: uppercase; }
.card-title.mono { font-size: 0.95rem; }
.card-title.mono::first-letter { text-transform: none; }
.card > :last-child { margin-bottom: 0; }

.card.narrow { max-width: 48rem; }

/* home */

.hero {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin: 1rem 0 2.5rem;
}

.hero-logo { height: clamp(64px, 10vw, 112px); width: clamp(64px, 10vw, 112px); }
.hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.035em; margin: 0; }
.tagline { color: var(--fg-dim); font-size: 1.15rem; margin: 0.4em 0 0; max-width: 60ch; }

.command {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.88rem;
  overflow-x: auto;
  padding: 0.75rem 1rem;
  white-space: pre-wrap;
  word-break: break-all;
}

.prompt { color: var(--green); user-select: none; }
.links { margin: 0; padding-left: 1.1em; }
.links li { margin: 0.3em 0; }

/* colour code */

.cell-works { --state: var(--green); }
.cell-partial { --state: var(--yellow); }
.cell-regression { --state: var(--red); }
.cell-fails { --state: var(--orange); }
.cell-missing { --state: var(--blue); }
.cell-unknown { --state: var(--magenta); }
.cell-not-applicable { --state: transparent; }
.cell-not-tested { --state: var(--storm); }
.cell-hint-works { --hint: var(--green); }
.cell-hint-partial { --hint: var(--yellow); }
.cell-hint-regression { --hint: var(--red); }
.cell-hint-fails { --hint: var(--orange); }
.cell-hint-missing { --hint: var(--blue); }
.cell-hint-unknown { --hint: var(--magenta); }
.cell-hint-not-applicable, .cell-hint-not-tested { --hint: var(--comment); }

.cell, .swatch, .chip-result {
  background: var(--state);
  color: var(--night);
  font-weight: 600;
  text-align: center;
}

.cell-not-applicable, .cell-not-tested { color: var(--comment); }
.cell-not-applicable { border: 1px dashed var(--terminal-black); }

.cell-unconfirmed {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--hint);
  color: var(--hint);
}

.cell a { color: inherit; display: block; text-decoration: none; }

.swatch, .chip-result {
  border-radius: 3px;
  display: inline-block;
  height: 1.3em;
  line-height: 1.3em;
  vertical-align: middle;
  width: 1.3em;
}

.chip-result { margin-right: 0.15em; }

.legend {
  color: var(--fg-dim);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85em;
  gap: 0.4em 1.2em;
  list-style: none;
  margin: 1rem 0 0.4rem;
  padding: 0;
}

.legend-note { color: var(--comment); font-size: 0.85em; max-width: 70ch; }

/* badges: a tinted pill in the badge's own colour */

.badge {
  background: color-mix(in srgb, currentColor 14%, transparent);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--fg-dim);
  display: inline-block;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
  padding: 0 0.6em;
  vertical-align: 0.1em;
  white-space: nowrap;
}

.badge-works { color: var(--green); }
.badge-partial { color: var(--yellow); }
.badge-regression { color: var(--red); }
.badge-fails { color: var(--orange); }
.badge-missing { color: var(--blue); }
.badge-unknown { color: var(--magenta); }
.badge-not-applicable, .badge-not-tested { color: var(--comment); }
.badge-community { color: var(--cyan); }
.badge-tester { color: var(--green); }

/* A Mac's handle: an icon and its state in words, the icon in the state's colour. */
.mac-handle { display: inline-flex; align-items: center; gap: 0.3em; white-space: nowrap; }
.mac-handle-icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mac-handle-state { color: var(--fg-dim); }
.mac-handle-validated .mac-handle-icon { color: var(--green); }
.mac-handle-not-on-team .mac-handle-icon { color: var(--cyan); }
.mac-handle-not-validated .mac-handle-icon, .mac-handle-none .mac-handle-icon { color: var(--yellow); }
.mac-handle-retired { color: var(--comment); }
.mac-handle-retired .mac-handle-state { color: var(--comment); }
.badge-unconfirmed { background: transparent; border: 1px dashed currentColor; color: var(--comment); }

/* a cell coloured by tester runs */
.cell-tester { box-shadow: inset 0 0 0 2px var(--night); }

.layer {
  color: var(--comment);
  font-size: 0.8em;
  font-weight: 400;
}

.layer-aurora { color: var(--magenta); }
.layer-omarchy { color: var(--green); }

/* the matrix */

.matrix-view-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.2rem 0 0.8rem;
}

.matrix-view-label { color: var(--fg-dim); font-size: 0.85rem; }

.matrix-view-switch {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 0.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 100%;
  padding: 0.2rem;
  width: 21rem;
}

.matrix-view-switch a {
  align-items: center;
  border-radius: var(--radius);
  color: var(--comment);
  display: flex;
  font-size: 0.9rem;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.4rem 0.75rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.matrix-view-switch a:hover { color: var(--white); }
.matrix-view-switch a[aria-current="page"] { background: var(--storm); box-shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset; color: var(--white); font-weight: 600; }

/* the matrix fills the window's width where it fits; else it scrolls in a box no taller than the window, names held in place */

.matrix-scroll {
  max-height: calc(100dvh - 2rem);
  max-width: 100%;
  overflow: auto;
  overscroll-behavior-x: contain;
  position: relative;
}

.matrix {
  --cell: 1.9rem;
  --gap: 3px;
  border-collapse: separate;
  border-spacing: var(--gap);
  font-size: 0.85rem;
  width: 100%;
}

.matrix thead th { background: var(--surface); position: sticky; top: 0; z-index: 2; }
.matrix thead .row-head { z-index: 3; }
.matrix thead th, .matrix .row-head { box-shadow: 0 0 0 var(--gap) var(--surface); }

.matrix .row-head {
  background: var(--surface);
  font-weight: 400;
  left: 0;
  min-width: 15rem;
  padding: 0.2rem 1rem 0.2rem 0;
  position: sticky;
  text-align: left;
  vertical-align: bottom;
  /* the names keep their own width: what the grid has spare goes to the features */
  width: 1px;
  z-index: 1;
}

.matrix tbody .row-head a { color: var(--white); font-weight: 600; text-decoration: none; }
.matrix tbody .row-head a:hover { color: var(--cyan); }
.row-meta { color: var(--comment); display: block; font-size: 0.85em; }
.matrix-note { color: var(--fg-dim); font-size: 0.85rem; max-width: 70ch; }
.matrix-grouped .row-head { max-width: 24rem; }
.matrix-grouped .row-meta { overflow-wrap: anywhere; }
.matrix-history .row-head { border-left: 1px solid var(--border); padding-left: 1rem; }
.model-toggle { background: transparent; border: 0; color: var(--cyan); cursor: pointer; font: inherit; font-size: 0.85em; margin-top: 0.25rem; padding: 0; }
.model-toggle:hover { color: var(--turquoise); }

.feature-head {
  height: 11.5rem;
  min-width: var(--cell);
  padding: 0 0 0.4rem;
  vertical-align: bottom;
  white-space: nowrap;
}

.feature-head a {
  color: var(--fg-dim);
  display: inline-block;
  font-weight: 400;
  max-height: 11rem;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
}

.feature-head a:hover { color: var(--white); }
.feature-head.layer-aurora a { color: var(--magenta); }
.feature-head.layer-omarchy a { color: var(--green); }

.matrix .cell {
  border-radius: 3px;
  height: var(--cell);
  min-width: var(--cell);
  padding: 0;
}

@media (min-width: 761px) and (max-width: 1919px) {
  .matrix { --cell: clamp(1.25rem, calc((100vw - 30rem) / 52), 1.9rem); --gap: 2px; font-size: 0.8rem; }
  .matrix .row-head { min-width: 12.5rem; }
}

@media (min-width: 2200px) {
  .matrix:has(.row-build) .row-head { min-width: 24rem; }
}

/* lists */

.list {
  border-collapse: collapse;
  font-size: 0.93rem;
  width: 100%;
}

.list th {
  border-bottom: 1px solid var(--border);
  color: var(--comment);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 0.55rem 0.9rem 0.55rem 0;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.list td {
  border-bottom: 1px solid var(--line-soft);
  padding: 0.65rem 0.9rem 0.65rem 0;
  vertical-align: top;
}

.list th:last-child, .list td:last-child { padding-right: 0; }
.list tbody tr:last-child > td { border-bottom: 0; }
.list tbody tr { transition: background var(--transition); }
.list tbody tr:hover > td { background: rgb(255 255 255 / 0.018); }
.list .cell { height: 1.6rem; min-width: 1.6rem; width: 1.6rem; padding: 0; }
.list td.cell { border-bottom-color: var(--surface); }
.features-table { width: auto; }
.features-table td:first-child { min-width: 22rem; }
.features-table .config-head { padding: 0.35rem 0.4rem; text-align: center; }
.config-head a { color: var(--fg-dim); font-weight: 400; text-decoration: none; }
.configuration-key { color: var(--fg-dim); font-size: 0.85rem; margin: 0 0 1rem; overflow-wrap: anywhere; padding-left: 2rem; }
.configuration-key li { margin-bottom: 0.35rem; }
.feature-note { color: var(--fg-dim); font-size: 0.85rem; }
.feature-catalogue th:first-child { width: 46%; }
.feature-catalogue th:nth-child(2) { width: 4rem; }
.feature-results { display: flex; flex-wrap: wrap; gap: 0.3rem; list-style: none; margin: 0; padding: 0; position: relative; }
.feature-results .chip-result { display: block; margin: 0; text-align: center; text-decoration: none; }
.feature-results .chip-result:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.result-tooltip {
  background: var(--storm);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 0.45);
  color: var(--fg-dim);
  display: grid;
  font-size: 0.82rem;
  font-weight: 400;
  gap: 0.25rem;
  left: 0;
  max-width: 100%;
  opacity: 0;
  overflow-wrap: anywhere;
  padding: 0.7rem 0.85rem;
  pointer-events: none;
  position: absolute;
  right: auto;
  text-align: left;
  top: calc(100% + 0.4rem);
  transition: opacity var(--transition);
  visibility: hidden;
  width: 26rem;
  z-index: 5;
}
.result-tooltip strong { color: var(--white); }
.expected-yes { color: var(--green); }
.expected-no { color: var(--yellow); }
.expected-none { color: var(--comment); }
.summary { color: var(--fg-dim); }
.actions { align-items: center; display: flex; gap: 0.5rem; }
.actions form { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; margin-bottom: 0.5rem; }
.credit { font-size: 0.85em; margin-top: 1rem; }

/* benchmarks: a bar per row, against the best Mac on the same benchmark */

.benchmark-table .score-head { min-width: 16rem; }
.score-cell { min-width: 16rem; position: relative; }
.score-bar {
  border-left: 2px solid var(--green);
  height: calc(100% - 0.6rem);
  left: 0;
  position: absolute;
  top: 0.3rem;
  width: 95%;
}
.score-bar rect { fill: rgb(158 206 106 / 0.22); }
.score-value { color: var(--white); font-family: var(--mono); font-size: 0.9em; padding-left: 0.4rem; position: relative; }
.score-range { font-size: 0.85em; padding-left: 0.4rem; position: relative; }
.check .score { color: var(--green); }
.check .score strong { color: var(--white); }

/* report pages: a check list, ids and evidence as the machine printed them */

.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.terminal-bar {
  background: var(--storm);
  border-bottom: 1px solid var(--border);
  display: flex;
  font-family: var(--mono);
  font-size: 0.8em;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.5rem 1.1rem;
}

.terminal-title { color: var(--green); font-weight: 700; }
.terminal-body { padding: 1.1rem clamp(0.9rem, 2vw, 1.5rem) 1.5rem; }
.prompt-line { color: var(--fg-dim); font-family: var(--mono); font-size: 0.88em; margin-bottom: 0.8rem; }
.terminal h1 { font-size: 1.4rem; color: var(--white); }
.report-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }

.machine {
  display: grid;
  gap: 0.25rem 1.5rem;
  grid-template-columns: max-content 1fr;
  margin: 0 0 1.5rem;
}

.machine dt { color: var(--comment); }
.machine dd { color: var(--white); margin: 0; overflow-wrap: anywhere; }

.section-title {
  align-items: center;
  color: var(--comment);
  display: flex;
  font-size: 0.75rem;
  font-weight: 600;
  gap: 0.75rem;
  letter-spacing: 0.07em;
  margin: 1.6rem 0 0.5rem;
  text-transform: uppercase;
}

.section-title::after {
  border-top: 1px solid var(--border);
  content: "";
  flex: 1;
}

.checks { list-style: none; margin: 0; padding: 0; }

.check {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.8rem;
  padding: 0.25rem 0;
}

.status {
  border-radius: 4px;
  color: var(--night);
  font-family: var(--mono);
  font-size: 0.72em;
  font-weight: 700;
  padding: 0.05em 0.4em;
  text-align: center;
  width: 3.8em;
}

.status-pass { background: var(--green); }
.status-fail { background: var(--red); }
.status-skip { background: var(--terminal-black); color: var(--white); }
.status-gap { background: var(--blue); }
.build { color: var(--fg-dim); font-size: 0.9em; }
.build-id { color: var(--white); font-family: var(--mono); font-size: 0.92em; }
.gap { color: var(--blue); }
.package-table { color: var(--fg-dim); font-family: var(--mono); font-size: 0.8em; margin: 0.5rem 0 0; }
.package-table td { overflow-wrap: anywhere; padding: 0 1rem 0 0; }
.check-id { color: var(--white); font-family: var(--mono); font-size: 0.88em; min-width: 16rem; }
.feature { color: var(--comment); font-size: 0.9em; }

.evidence {
  border-left: 2px solid var(--terminal-black);
  color: var(--fg-dim);
  flex-basis: 100%;
  font-family: var(--mono);
  font-size: 0.8em;
  margin: 0.15rem 0 0.45rem 4.6em;
  overflow-x: auto;
  padding: 0 0 0 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.check-fail .evidence { border-left-color: var(--red); }

.packages { margin: 0.8rem 0 1.5rem; }
.packages summary { color: var(--cyan); cursor: pointer; }
.packages pre { color: var(--fg-dim); font-size: 0.8em; margin: 0.5rem 0 0; overflow-x: auto; }

/* forms: one look for every field */

.form { display: grid; gap: 0.7rem; max-width: 26rem; }
.form input[type="password"], .form input[type="text"],
.form-inline input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.filter-field select, .filter-field input[type="date"],
.boot input[type="text"], .boot select, .boot textarea,
.controls input[type="datetime-local"] {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  color-scheme: dark;
  font: inherit;
  max-width: 100%;
  min-width: 0;
  padding: 0.45em 0.7em;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form input:focus, .form-inline input:focus, .filter-field select:focus, .filter-field input:focus,
.boot input[type="text"]:focus, .boot select:focus, .boot textarea:focus, .controls input:focus {
  border-color: var(--green);
  box-shadow: var(--focus);
  outline: none;
}
.form .button { justify-self: start; }
.form-inline { align-items: center; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; max-width: none; }
.form-inline label { align-items: center; color: var(--comment); display: inline-flex; font-size: 0.9em; gap: 0.4em; }
.form-inline input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) { padding: 0.25em 0.5em; }
form.inline { display: inline; }

@media (max-width: 40rem) {
  .check-id { min-width: 0; }
  .evidence { margin-left: 0; }
  .matrix-view-label { width: 100%; }
  .matrix-view-switch { width: 100%; }
  .matrix .row-head { min-width: 10rem; }
}

/* filter bar: a GET form, so every filtered view is a link */

.filter-bar {
  align-items: flex-end;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 1rem 0 0.6rem;
  padding: 0.8rem clamp(0.75rem, 2vw, 1.1rem);
}

.filter-fields { display: flex; flex: 1; flex-wrap: wrap; gap: 0.5rem 0.9rem; }
.filter-field { display: grid; font-size: 0.85em; gap: 0.25rem; min-width: 0; }
.filter-field > span { color: var(--comment); font-size: 0.85em; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.filter-field select, .filter-field input[type="date"] { max-width: 14rem; padding: 0.3em 0.5em; }
.filter-check { align-items: center; align-self: end; display: flex; gap: 0.4rem; padding-bottom: 0.4em; }
.filter-check > span { color: var(--fg-dim); }
.filter-check input { accent-color: var(--green); margin: 0; }

.filter-status { align-items: baseline; display: flex; flex-wrap: wrap; font-size: 0.85em; gap: 0.35rem 0.6rem; margin: 0 0 0.8rem; }
.filter-count { color: var(--white); font-weight: 600; }
.filter-chip {
  background: rgb(125 207 255 / 0.1);
  border-radius: 999px;
  color: var(--cyan);
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0.05em 0.65em;
  text-decoration: none;
  white-space: normal;
}
.filter-chip:hover { background: rgb(247 118 142 / 0.12); color: var(--red); }
.filter-clear { color: var(--fg-dim); }
.filter-exports { color: var(--comment); }
.filter-exports a { margin-left: 0.3em; }
.cell-hidden { opacity: 0.35; }

@media (max-width: 40rem) {
  .filter-field { flex: 1 1 42%; }
  .filter-field select, .filter-field input[type="date"] { max-width: none; width: 100%; }
}

/* candidate sets */

.verdict { font-weight: 600; }
.verdict-ready { color: var(--green); }
.verdict-blocked { color: var(--red); }
.verdict-waiting { color: var(--yellow); }

/* The bring-up table on /models. */
.lineup-table td { vertical-align: top; }
.lineup-testing > div + div { margin-top: 0.3em; }
.lineup-note { display: block; font-size: 0.9em; margin-top: 0.25em; white-space: nowrap; }
.lineup-tested { margin-top: 0.3em; font-size: 0.9em; color: var(--comment); }
.lineup-row[data-tested="false"] td:first-child strong { color: var(--comment); }

/* Feature page results: one row per model and stack, its builds below. */
.feature-result-table td { vertical-align: middle; }
.feature-result-table td.cell { width: 1.8em; min-width: 1.8em; padding: 0.15em 0; }
.feature-result-table tbody + tbody { border-top: 0; }
.feature-history td { font-size: 0.9em; }
.feature-history td.build-label { padding-left: 1.5rem; border-left: 1px solid var(--border); }
.feature-result-table .model-toggle { margin-left: 0.5em; }
.feature-result-table td.summary { padding-left: 0.75rem; }
.result-tooltip .tooltip-verdict { align-items: center; display: flex; font-weight: 600; gap: 0.5rem; }
.result-tooltip .tooltip-verdict .swatch { flex: none; }

/* Matrix cells: the tooltip is copied into one floating box (result_tooltips.js), clear of the scrolling table. */
.cell-tooltip { display: none; }
.result-tooltip.floating { left: 0; max-width: calc(100vw - 16px); opacity: 1; position: fixed; top: 0; visibility: visible; z-index: 20; }
.result-tooltip.floating[hidden] { display: none; }
/* The square a tooltip is about: a thick bright outline, and the tooltip's pointer touching it. */
.cell.tooltip-target, .chip-result.tooltip-target { outline: 3px solid var(--white); outline-offset: 1px; position: relative; z-index: 2; }
.result-tooltip.floating { overflow: visible; }
.result-tooltip.floating::before {
  background: inherit;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-right: 0;
  content: "";
  height: 12px;
  left: calc(var(--arrow-x, 24px) - 6px);
  position: absolute;
  top: -7px;
  transform: rotate(45deg);
  width: 12px;
}
.result-tooltip.floating[data-placement="above"]::before { bottom: -7px; top: auto; transform: rotate(225deg); }

/* Preview: the lab before it opens */

.preview-banner {
  background: rgb(224 175 104 / 0.08);
  border-bottom: 1px solid rgb(224 175 104 / 0.4);
  color: var(--yellow);
  margin: 0;
  padding: 0.5rem clamp(1rem, 4vw, 3rem);
}

/* the two texts */

.legal {
  color: var(--fg-dim);
  font-family: var(--font);
  margin: 0;
  max-width: 75ch;
  overflow-x: auto;
  white-space: pre-wrap;
}

.legal-version { color: var(--comment); font-size: 0.85em; overflow-wrap: anywhere; }

/* the lab's pages: cards, tables, badges and buttons */

.card.attention { background: color-mix(in srgb, var(--yellow) 5%, var(--surface)); border-color: rgb(224 175 104 / 0.5); }
.card.attention .card-title { color: var(--yellow); }
.card-tools { align-items: center; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; margin: 0; position: absolute; right: clamp(0.9rem, 2vw, 1.35rem); top: 0.9rem; }

.kind-admin { color: var(--magenta); }
.kind-maintainer { color: var(--blue); }
.kind-mteam { color: var(--green); }
.kind-external { color: var(--yellow); }
.kind-none { color: var(--comment); }
.kind-blocked { color: var(--red); }

.state-qualified { color: var(--green); }
.state-not-qualified { color: var(--red); }
.state-revoked { color: var(--orange); }
.state-none { color: var(--comment); }
.lab-verdict { color: var(--fg-dim); display: block; font-size: 0.9em; }
.asking { background: rgb(224 175 104 / 0.06); border: 1px solid rgb(224 175 104 / 0.45); border-radius: var(--radius); padding: 0.8rem 1rem; }
.release-warning { color: var(--yellow); }

.button-plain { background: var(--storm); border-color: var(--border); color: var(--white); }
.button-plain:hover { background: #232836; border-color: #343b4c; color: var(--white); }
.button-danger.armed { background: var(--red); border-color: var(--red); color: var(--night); white-space: normal; }

.chips { background: var(--deep); border: 1px solid var(--line-soft); border-radius: 8px; display: inline-flex; flex-wrap: wrap; gap: 0.15rem; padding: 0.15rem; }
.chip { border: 0; border-radius: var(--radius); color: var(--comment); font-size: 0.87em; padding: 0.2em 0.8em; text-decoration: none; transition: color var(--transition), background var(--transition); }
.chip:hover { color: var(--white); }
.chip.current { background: var(--storm); color: var(--white); font-weight: 600; }

.facts { display: grid; gap: 0.5rem 1.5rem; grid-template-columns: max-content 1fr; margin: 0; }
.facts dt { color: var(--comment); }
.facts dd { color: var(--white); margin: 0; overflow-wrap: anywhere; }

.record { font-size: 0.92em; list-style: none; margin: 0; padding: 0; }
.record li { border-bottom: 1px solid var(--line-soft); padding: 0.5em 0; }
.record li:last-child { border: 0; }
.record .when { color: var(--comment); display: block; font-size: 0.88em; }

.scroll { max-width: 100%; overflow-x: auto; position: relative; }

/* People: the table, a row opened in place, the record beside it */

.split { display: grid; gap: 0 1.5rem; }
.split > * { min-width: 0; }
.people th { white-space: normal; }
.you { color: var(--comment); font-size: 0.85em; }
.person-toggle { color: var(--white); text-decoration: none; }
.person-toggle:hover b { color: var(--green); }
.person-row.open td { background: rgb(255 255 255 / 0.03); }
.person-detail > td { background: var(--deep); padding: 1rem; white-space: normal; }
.person-blocks { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.person-blocks .wide { grid-column: 1 / -1; }
.person-blocks h3 { margin-top: 0; }
.person-blocks ul { list-style: none; margin: 0; padding: 0; }
.person-blocks li { margin-bottom: 0.35em; }
.person-blocks p { font-size: 0.9em; margin: 0.4em 0 0; }
@media (min-width: 1520px) { .split { align-items: start; grid-template-columns: minmax(0, 1fr) 22rem; } }
.list .actions { justify-content: flex-end; white-space: nowrap; }

/* the Macs table: a Mac's name and model, its state and why, its Lease */

.macs-table td:first-child a { font-family: var(--mono); font-size: 0.92em; font-weight: 700; text-decoration: none; }
.macs-table td:last-child, .macs-table th:last-child { padding-right: 0; text-align: right; }
.macs-table .sub { color: var(--comment); display: block; font-size: 0.86em; margin-top: 0.15em; }
.macs-table details { margin-top: 0.3em; }
.macs-table summary { color: var(--comment); cursor: pointer; font-size: 0.86em; list-style: none; }
.macs-table summary::-webkit-details-marker { display: none; }
.macs-table summary:hover { color: var(--white); }
.macs-table details .form-inline { margin-top: 0.4rem; }

.state { align-items: center; color: var(--state-colour, var(--fg-dim)); display: inline-flex; font-weight: 600; gap: 0.45em; white-space: nowrap; }
.state::before { background: currentColor; border-radius: 50%; content: ""; flex: none; height: 7px; width: 7px; }
.state-hands { --state-colour: var(--red); }
.state-recovering { --state-colour: var(--orange); }
.state-running { --state-colour: var(--blue); }
.state-baseline { --state-colour: var(--yellow); }
.state-ready { --state-colour: var(--green); }
.state-paused, .state-offline, .state-left { --state-colour: var(--comment); }

.needs-hands {
  align-items: center;
  background: color-mix(in srgb, var(--red) 7%, var(--surface));
  border: 1px solid rgb(247 118 142 / 0.45);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1rem 0;
  padding: 0.85rem 1.1rem;
}
.needs-hands-title { color: var(--red); font-weight: 600; }
.needs-hands ul { flex-basis: 100%; list-style: none; margin: 0; padding: 0; }
.needs-hands li { padding: 0.15em 0; }
.needs-hands li a { font-family: var(--mono); font-size: 0.92em; font-weight: 700; }

/* a Mac's page: its tabs, the fence in place of Live, the screen and the logs */

.crumb { color: var(--comment); font-size: 0.9em; margin: 0 0 0.4em; }
.crumb a { color: var(--fg-dim); text-decoration: none; }
.crumb a:hover { color: var(--white); }
.tabs { border-bottom: 1px solid var(--border); display: flex; gap: 1.25rem; margin: 0 0 1.5rem; overflow-x: auto; scrollbar-width: none; }
.tabs a { color: var(--comment); padding: 0.5em 0.1em; text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--white); }
.tabs a.current { box-shadow: inset 0 -2px 0 var(--green); color: var(--white); font-weight: 600; }
.fence { background: rgb(224 175 104 / 0.06); border-left: 3px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.5em; padding: 0.6em 0 0.6em 0.9em; }
.fence .form-inline { margin-top: 0.5rem; }
.facts .form-inline { margin-top: 0.4rem; }
.screen { border: 1px solid var(--border); border-radius: var(--radius); display: block; height: auto; max-width: min(100%, 64rem); }
.screen[hidden] { display: none; }
.term { background: var(--deep); border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg-dim); font-family: var(--mono); font-size: 0.8em; margin: 0; max-height: 30rem; overflow: auto; padding: 0.7em 0.9em; white-space: pre-wrap; word-break: break-all; }
button.chip { background: transparent; cursor: pointer; font-family: inherit; }
button.chip.current { background: var(--storm); }

/* Jobs, Builds and "Boot a kernel" */

.job-ok { color: var(--green); }
.job-bad { color: var(--red); }
.job-warn { color: var(--yellow); }
.job-live { color: var(--blue); }
.job-dim { color: var(--comment); }
.outcome { background: color-mix(in srgb, currentColor 14%, transparent); border-radius: 999px; display: inline-block; font-size: 0.75em; font-weight: 600; letter-spacing: 0.03em; line-height: 1.6; padding: 0 0.65em; text-transform: uppercase; white-space: nowrap; }
.log { font-family: var(--mono); font-size: 0.8em; margin: 0.5rem 0 0; max-height: 24rem; overflow: auto; }
.boot { display: grid; gap: 1.3rem; }
.boot fieldset { border: 0; display: grid; gap: 0.5rem; margin: 0; min-width: 0; padding: 0; }
.boot legend { color: var(--comment); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.07em; margin-bottom: 0.45rem; padding: 0; text-transform: uppercase; }
.boot p { margin: 0; }
.boot input[type="checkbox"], .boot input[type="radio"] { accent-color: var(--green); }
.boot label { align-items: center; display: inline-flex; gap: 0.45em; }
.boot-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* My Macs: one card per Mac a person lends */

#lend-another { margin: 0 0 1.5rem; }
.mac-card h3 { border-top: 1px solid var(--line-soft); padding-top: 1.1em; }
.mac-card:target { border-color: var(--green); }
.record li:target { color: var(--white); }
.controls { align-items: center; display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; margin: 1.2rem 0 0; }
.controls p { flex-basis: 100%; font-size: 0.9em; margin: 0; }
.controls input[type="datetime-local"] { font-size: 0.87em; padding: 0.2em 0.45em; }
.steps { margin: 0.4em 0; padding-left: 1.6em; }
.steps li { margin: 0.2em 0; }
.commands { margin: 0; }
.commands dt { margin-top: 0.7em; overflow-wrap: anywhere; }
.commands dd { color: var(--fg-dim); font-size: 0.9em; margin: 0; }

/* an empty list says what to do next */

.empty { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--fg-dim); padding: 1.4rem 1.25rem; }
.empty p { margin: 0 0 0.6em; }
.empty > :last-child { margin-bottom: 0; }

/* phone width: each row of the header scrolls sideways, tables stack */

@media (max-width: 760px) {
  html { font-size: 14.5px; }
  .header-row { gap: 0.5rem 0.8rem; justify-content: space-between; }
  .header-row .site-nav { flex-wrap: nowrap; order: 5; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .site-nav a.current { box-shadow: none; }
  .fleet { font-size: 0.8em; }
  .card-title { padding-right: 0; }
  .card-tools { margin: -0.4rem 0 0.9rem; position: static; justify-content: flex-start; }
  .facts { gap: 0.1rem; grid-template-columns: 1fr; }
  .facts dd { margin-bottom: 0.6rem; }
  .list { font-size: 0.9rem; }
  .list th, .list td { padding-right: 0.6rem; }
  .list th:last-child, .list td:last-child { padding-right: 0; }
  .stack thead { display: none; }
  .stack tr { border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; padding: 0.6em 0; }
  .stack tr:last-child { border: 0; }
  .stack td { border: 0; display: block; padding: 0.15em 0.3em 0.15em 8.5em; position: relative; text-align: left; white-space: normal; }
  .stack td[data-label]::before { color: var(--comment); content: attr(data-label); font-size: 0.78em; font-weight: 600; left: 0.3em; letter-spacing: 0.05em; position: absolute; text-transform: uppercase; top: 0.35em; }
  .stack td:first-child { font-size: 1.05em; padding-left: 0.3em; }
  .stack td:first-child::before { display: none; }
  .stack td.lead { font-size: 1.05em; order: -1; padding-left: 0.3em; }
  .stack td.lead::before { display: none; }
  .stack tr:has(> td.lead) > td:first-child:not(.lead) { font-size: inherit; padding-left: 8.5em; }
  .stack tr:has(> td.lead) > td:first-child:not(.lead)::before { display: block; }
  .stack td:empty { display: none; }
  .stack tr.person-detail { padding: 0; }
  .stack tr.person-detail > td { padding: 1rem 0.6rem; }
  .stack .actions { justify-content: flex-start; padding: 0.4em 0.3em 0; white-space: normal; }
  .macs-table td:last-child { text-align: left; }
  .stack td:has(> .actions:empty) { display: none; }
  .scroll:has(> .stack) { overflow: visible; }
}

/* a value to copy, its Copy button beside it (shown by app.js) */

.copyable { align-items: baseline; display: inline-flex; flex-wrap: wrap; gap: 0.2em 0.5em; max-width: 100%; vertical-align: baseline; white-space: normal; }
.copyable [data-copy] { min-width: 0; overflow-wrap: anywhere; }
.copy-button { flex: none; font-size: 0.75em; line-height: 1.4; padding: 0.15em 0.6em; }
.copy-button[hidden] { display: none; }
.copyable-block { align-items: stretch; background: var(--deep); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-wrap: nowrap; margin: 0 0 0.8em; }
.copyable-block > pre { background: transparent; border: 0; flex: 1; margin: 0; min-width: 0; }
.copyable-block > .copy-button { align-self: flex-start; margin: 0.55rem 0.55rem 0 0; }
.copyable-title { align-items: center; display: flex; margin: 0 0 0.4em; }
.copyable-title h1 { margin: 0; }
.command .copyable { white-space: pre-wrap; }

.visually-hidden { clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

@media (max-width: 40rem) {
  .copyable-block { flex-direction: column; }
  .copyable-block > pre { width: 100%; }
  .copyable-block > .copy-button { align-self: flex-end; margin: 0 0.55rem 0.55rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Boot a kernel: the form, and the guide for terminals and agents beside it */

.boot-layout { align-items: start; display: grid; gap: 0 1.5rem; }
@media (min-width: 1100px) { .boot-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.actions .form-inline { flex-wrap: nowrap; margin-top: 0; }

/* below a wide screen the results row goes under the brand and Install */

@media (max-width: 1180px) {
  .header-row .site-nav { flex-wrap: nowrap; order: 5; overflow-x: auto; scrollbar-width: none; width: 100%; }
}

/* Performance: Omarchy as a percent of macOS on the same Mac, a bar to 150% with a tick at 100% */

.perf-green { --perf: var(--green); }
.perf-grey { --perf: var(--fg-dim); }
.perf-yellow { --perf: var(--yellow); }
.perf-orange { --perf: var(--orange); }
.perf-red { --perf: var(--red); }
.perf-none { --perf: var(--comment); }
.perf-text { color: var(--perf); font-family: var(--mono); font-size: 0.92em; font-weight: 700; white-space: nowrap; }
.perf-bar { display: inline-block; height: 0.55rem; vertical-align: middle; width: 9rem; }
.perf-bar rect { fill: color-mix(in srgb, var(--perf) 55%, transparent); }
.perf-bar rect.perf-track { fill: var(--storm); }
.perf-tick { stroke: var(--text); stroke-width: 2; vector-effect: non-scaling-stroke; }
.perf-trend { font-family: var(--mono); font-size: 0.8em; white-space: nowrap; }
.perf-reason { color: var(--comment); font-size: 0.88em; white-space: nowrap; }
.perf-flag { color: var(--yellow); white-space: normal; }
.badge-api { color: var(--blue); white-space: normal; }
.badge-volunteer { color: var(--cyan); }
.badge-no-verdict { color: var(--magenta); }

.perf-picker { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin: 0 0 1rem; }
.perf-picker select { min-height: 2.4rem; }
.perf-picker .filter-check { min-height: 2.4rem; padding-bottom: 0; }
.perf-picker .button[hidden] { display: none; }
.perf-legend { color: var(--comment); display: flex; flex-wrap: wrap; font-size: 0.82em; gap: 0.3rem 1.1rem; list-style: none; margin: 0 0 1.25rem; padding: 0; }
.perf-swatch { background: var(--perf); border-radius: 2px; display: inline-block; height: 0.65rem; margin-right: 0.45em; width: 0.65rem; }

.perf-gaps { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); list-style: none; margin: 0; padding: 0; }
.perf-gaps li { background: var(--storm); border-radius: var(--radius); display: flex; flex-direction: column; gap: 0.1rem; padding: 0.7rem 0.85rem; }
.perf-gap-category { color: var(--comment); font-size: 0.8em; }
.perf-gap-name { color: var(--white); font-weight: 600; }
.perf-gap-figure .perf-text { font-size: 1.25rem; }
.perf-gap-trend { color: var(--fg-dim); font-size: 0.8em; }
.perf-gap-where { font-size: 0.85em; }
.perf-gaps .badge { align-self: flex-start; }

.perf-family, .perf-category { padding: 0; }
.perf-family > summary, .perf-category > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  list-style: none;
  min-height: 3.2rem;
  padding: 0.75rem clamp(0.9rem, 2vw, 1.35rem);
}
.perf-family > summary::-webkit-details-marker, .perf-category > summary::-webkit-details-marker { display: none; }
.perf-family > summary::before, .perf-category > summary::before { color: var(--green); content: "▸"; font-family: var(--mono); width: 0.8rem; }
.perf-family[open] > summary::before, .perf-category[open] > summary::before { content: "▾"; }
.perf-family > summary:hover .perf-family-name, .perf-category > summary:hover .perf-category-name { color: var(--green); }
.perf-family-name, .perf-category-name { color: var(--white); font-size: 1.05rem; font-weight: 600; min-width: 6rem; }
.perf-family-median { align-items: center; display: inline-flex; gap: 0.5rem; }
.perf-category-count { margin-left: auto; }
.perf-family[open] > summary, .perf-category[open] > summary { border-bottom: 1px solid var(--border); }
.perf-box { padding: 0 clamp(0.9rem, 2vw, 1.35rem) 0.6rem; }
.perf-category > p { margin: 0.6rem clamp(0.9rem, 2vw, 1.35rem) 0.9rem; }

.perf-table td, .perf-table th { vertical-align: middle; }
.perf-table th.perf-num, .perf-table td.perf-num { text-align: center; }
.perf-table .perf-overall { min-width: 14rem; white-space: nowrap; }
.perf-table .perf-overall .row-meta { white-space: normal; }
.perf-config-name { color: var(--white); font-weight: 600; text-decoration: none; }
a.perf-config-name:hover { color: var(--cyan); }
.perf-unmeasured .perf-config-name { color: var(--fg-dim); }
.perf-table td:first-child { min-width: 15rem; }
.perf-table tr.perf-config-row > td:nth-child(2) { min-width: 11rem; }

.perf-metrics th, .perf-metrics td { min-width: 8.5rem; }
.perf-metrics td:first-child { min-width: 17rem; }
.perf-metrics thead th { vertical-align: bottom; white-space: normal; }
.perf-table th.mono, .perf-table th.perf-release-head, .perf-table th.perf-macos-head { letter-spacing: 0; text-transform: none; }
.perf-metrics .mono { color: var(--white); }
.perf-macos-head, .perf-macos { background: var(--storm); }
.perf-current { background: rgb(158 206 106 / 0.07); }
th.perf-current { box-shadow: inset 0 2px 0 var(--green); }
.perf-metric-name { color: var(--white); display: block; font-weight: 600; }
.perf-group th { background: var(--deep); color: var(--fg-dim); font-size: 0.85em; letter-spacing: 0; text-transform: none; }
.perf-volunteer-line td { background: rgb(125 207 255 / 0.04); font-size: 0.9em; }
.perf-volunteer-line td:first-child { padding-left: 1.2rem; }
.perf-volunteer-line[hidden] { display: none; }
.perf-cell .perf-text { margin-left: 0.3em; }

.perf-facts { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 0 0 1rem; }
.perf-fact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 0.15rem; padding: 0.75rem 0.9rem; }
.perf-fact .dim { font-size: 0.85em; }
.perf-fact-label { color: var(--comment); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.perf-fact-picker { grid-column: span 2; }
.perf-fact-picker .perf-picker { margin: 0; }
.perf-section-label { color: var(--fg-dim); font-size: 0.95rem; margin: 0 0 0.7rem; }
.perf-section-label .perf-text { font-size: 1rem; }
.perf-tiles { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); margin-bottom: 1.25rem; }
.perf-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text); display: flex; flex-direction: column; gap: 0.3rem; padding: 0.75rem 0.9rem; text-decoration: none; }
.perf-tile:hover { border-color: #343b4c; color: var(--text); }
.perf-tile-name { color: var(--fg-dim); font-size: 0.9em; }
.perf-tile-figure .perf-text { font-size: 1.5rem; }
.perf-tile .perf-bar { width: 100%; }
.perf-tile .dim { font-size: 0.8em; }

@media (max-width: 760px) {
  .perf-fact-picker { grid-column: auto; }
  .perf-bar { width: 6rem; }
  .perf-category-count { margin-left: 0; }
  .perf-table td:first-child, .perf-metrics td:first-child { min-width: 10.5rem; }
  .perf-metrics th, .perf-metrics td { min-width: 7rem; }
}

/* availability window editor */

.avail-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
}

.avail-disclosure {
  margin-top: 0.4rem;
}

.avail-trigger {
  background: var(--storm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-size: 0.85em;
  font-weight: 500;
  gap: 0.35rem;
  list-style: none;
  padding: 0.25rem 0.65rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.avail-trigger::-webkit-details-marker { display: none; }
.avail-trigger::after { color: var(--comment); content: "▸"; font-size: 0.8em; }
.avail-disclosure[open] > .avail-trigger::after { content: "▾"; }
.avail-trigger:hover { border-color: #3a4256; color: var(--white); }

.avail-form {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.55rem;
  max-width: 30rem;
  padding: 0.85rem 1rem;
}

.avail-mode, .avail-days {
  border: 0;
  margin: 0;
  padding: 0;
}

.avail-mode {
  background: var(--night);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(4.75rem, 1fr));
  padding: 3px;
  width: fit-content;
}

.avail-mode label {
  border-radius: calc(var(--radius) - 2px);
  color: var(--comment);
  cursor: pointer;
  font-size: 0.88em;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  text-align: center;
  transition: background var(--transition), color var(--transition);
  user-select: none;
}

.avail-mode label:hover { color: var(--text); }

.avail-mode input:checked + label {
  background: var(--storm);
  box-shadow: inset 0 0 0 1px #363e52;
  color: var(--white);
}

.avail-mode input:focus-visible + label {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.avail-custom {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.avail-form:has(input[name="mode"][value="custom"]:checked) .avail-custom {
  display: flex;
}

.avail-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.avail-days label {
  background: var(--night);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--comment);
  cursor: pointer;
  font-size: 0.85em;
  font-weight: 500;
  min-width: 2.85rem;
  padding: 0.3rem 0.45rem;
  text-align: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  user-select: none;
}

.avail-days label:hover { border-color: #3a4256; color: var(--text); }

.avail-days input:checked + label {
  background: rgb(158 206 106 / 0.14);
  border-color: rgb(158 206 106 / 0.55);
  color: var(--white);
}

.avail-days input:checked + label::before {
  content: "✓ ";
  font-size: 0.85em;
}

.avail-note {
  font-size: 0.84em;
  margin: 0;
}

@media (forced-colors: active) {
  .avail-mode input:checked + label,
  .avail-days input:checked + label {
    background: Highlight;
    border-color: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }
}

.avail-days input:focus-visible + label {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.avail-times {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
}

.avail-time {
  align-items: center;
  color: var(--comment);
  display: inline-flex;
  font-size: 0.88em;
  gap: 0.4rem;
}

.avail-time input[type="time"] {
  background: var(--night);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  color-scheme: dark;
  font-family: var(--mono);
  font-size: 0.95em;
  padding: 0.3rem 0.5rem;
}

.avail-time input[type="time"]:focus-visible {
  border-color: var(--green);
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.avail-zone { font-size: 0.82em; }

.avail-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
