/*
  Channel Reserve: the "Channel Lit" brand.

  Reserve Navy carries the structure, Signal Cyan is the accent (the lit
  channel in the mark) and is never used for text on white. Sora throughout.
  Clean, with room to breathe: 8px corners on controls, 14px on cards.

  Status colors keep the meaning they have on a control panel: green is
  normal, amber needs attention, red is a fault.
*/

@font-face {
  font-family: "Sora"; font-weight: 100 800; font-style: normal; font-display: swap;
  src: url("../fonts/sora-latin-wght-normal.0d0e5e4d2f9f.woff2") format("woff2");
}
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.79936b18df9f.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.b1c8a895f5fd.woff2") format("woff2"); }

:root {
  --navy: #0b1b33;          /* Reserve Navy */
  --navy-deep: #071326;
  --navy-soft: #1e3354;
  --cyan: #19c3f0;          /* Signal Cyan: accent only */
  --cyan-bright: #5fd6f5;
  --cyan-deep: #0a6f8c;     /* cyan dark enough to read on white */
  --cyan-wash: #e6f7fd;
  --grey: #5b6472;
  --mist: #f3f6fa;
  --on-navy: #c9d3e1;
  --on-navy-soft: #a9b4c4;

  --ground: var(--mist);
  --panel: #ffffff;
  --sunk: #f7f9fc;
  --ink: var(--navy);
  --ink-soft: var(--grey);
  --rule: #dfe3ea;
  --rule-soft: #eaedf2;
  --rule-strong: #c3c9d3;
  --rule-control: #7f8898;  /* edges of fields and plain buttons: 3:1 on white and on mist */
  --blue: var(--navy);      /* the action color */
  --blue-deep: var(--navy-soft);
  --blue-wash: var(--cyan-wash);
  --green: #0a6b44;
  --green-dot: #18a06a;
  --green-wash: #e8f6ef;
  --amber: #7a5108;
  --amber-dot: #c98a12;
  --amber-wash: #fbf3e4;
  --red: #8e1f1f;
  --red-dot: #c0392b;
  --red-wash: #fdecec;
  --neutral: #97a1b0;

  --sans: "Sora", "Segoe UI", system-ui, sans-serif;
  --display: var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 8px;            /* controls */
  --radius-card: 14px;      /* cards */
  --gutter: 16px;
  --measure: 66ch;
  --ring: 0 0 0 1px rgb(11 27 51 / 0.1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: 1.875rem; letter-spacing: -0.03em; }
h2 { font-size: 1.25rem; letter-spacing: -0.015em; }
h3 { font-size: 1rem; letter-spacing: -0.005em; }

p { margin: 0 0 0.75rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--cyan-deep); }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 4px var(--cyan); }

.part {
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.quiet { color: var(--ink-soft); }
.small { font-size: 0.8125rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* The first thing a keyboard reaches: hidden until it has focus. */
.skip { position: absolute; left: 8px; top: -80px; z-index: 10; padding: 12px 18px; border-radius: var(--radius); background: var(--cyan); color: var(--navy); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }

/* --- The mark and wordmark --------------------------------------------------- */

.wordmark {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 0;
  color: #fff; text-decoration: none;
  font-weight: 600; font-size: 0.875rem; letter-spacing: 0.2em; white-space: nowrap;
}
.wordmark:hover { color: #fff; }
.wordmark svg { width: 48px; height: 26px; flex: none; }
.wordmark .mark-cr { fill: currentColor; }
.wordmark .mark-cut { fill: var(--cyan); }
.wordmark b { font-weight: 600; color: var(--cyan); }
.tagline { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--grey); }

/* --- Top bar ---------------------------------------------------------------- */

.bar { background: var(--navy); color: #fff; }
.bar__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 28px;
}

.nav { display: flex; flex-wrap: wrap; gap: 2px; flex: 1; }
.nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 17px 11px 14px; border-bottom: 3px solid transparent;
  color: var(--on-navy-soft); text-decoration: none; font-weight: 500; font-size: 0.875rem;
}
.nav a:hover { color: #fff; }
.nav a.is-current { color: #fff; border-bottom-color: var(--cyan); }
.nav a:focus-visible, .wordmark:focus-visible, .who a:focus-visible, .linkbutton:focus-visible { outline-color: var(--cyan); box-shadow: none; }
.nav .count {
  min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--cyan); color: var(--navy);
  font-size: 0.6875rem; font-weight: 700; line-height: 20px; text-align: center;
}

.who { display: flex; align-items: center; gap: 14px; padding: 10px 0; font-size: 0.8125rem; color: var(--on-navy-soft); }
.who a { color: #fff; text-decoration-color: transparent; }
.who a:hover { color: #fff; text-decoration-color: var(--cyan); }
.who form { margin: 0; }
.linkbutton {
  min-height: 0; background: none; border: 0; border-radius: 0; padding: 0; color: #fff; font: inherit; font-weight: 400;
  text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer;
}
.linkbutton:hover { background: none; color: #fff; }

/* Laptop and tablet widths: drop the company name and tighten the links so the bar stays on one row. */
@media (max-width: 1100px) {
  .bar__inner { column-gap: 18px; }
  .nav a { padding-left: 9px; padding-right: 9px; }
  .who .who__company { display: none; }
}

/* Signed-out pages: a white bar with the navy mark. */
.bar--light { background: #fff; color: var(--navy); box-shadow: 0 1px 0 rgb(11 27 51 / 0.1); position: relative; }
.bar--light .bar__inner { justify-content: space-between; padding-top: 4px; padding-bottom: 4px; row-gap: 4px; }
.bar--light .wordmark, .bar--light .wordmark:hover { color: var(--navy); }
.bar--light .wordmark b { color: var(--navy); }
.bar--light .wordmark:focus-visible { outline-color: var(--navy); box-shadow: 0 0 0 4px var(--cyan); }
.pubnav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-size: 0.875rem; }
.pubnav a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); text-decoration: none; }
.pubnav .button { min-height: 44px; }
.pubnav a:not(.button):hover { color: var(--cyan-deep); }

/* --- Page ------------------------------------------------------------------- */

.page { width: 100%; max-width: 1200px; margin: 0 auto; padding: 28px var(--gutter) 64px; flex: 1; }
body > main:not(.page) { flex: 1; }
.page--narrow { max-width: 480px; }

.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.pagehead p { margin: 8px 0 0; color: var(--ink-soft); }

.subnav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0 0 22px; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.subnav a { display: block; padding: 8px 0; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.subnav a:hover { color: var(--ink); }
.subnav a.is-current { color: var(--ink); border-bottom-color: var(--cyan); }
.subnav .count { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--cyan); color: var(--navy); font-size: 0.6875rem; font-weight: 700; }

.panel { background: var(--panel); border-radius: var(--radius-card); box-shadow: var(--ring); padding: 24px; }
.panel + .panel, .panel + .columns, .columns + .panel, .stack > * + * { margin-top: 20px; }
.panel > h2, .panel > h3 { margin-bottom: 12px; }
.panel--flush { padding: 0; overflow: hidden; }
.panel--flush > h2, .panel--flush > .panel__head { padding: 20px 24px 0; }
.panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.panel__head h2 { margin: 0; }
.panel__empty { padding: 4px 24px 24px; color: var(--ink-soft); }

.columns { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.columns > .panel { margin-top: 0; }

/* --- Where a part number goes ------------------------------------------------ */

.nameplate { background: var(--panel); border-radius: var(--radius-card); box-shadow: var(--ring); padding: 30px 28px 26px; margin-bottom: 20px; }
.nameplate h1 { margin-bottom: 16px; font-size: 2.25rem; letter-spacing: -0.035em; }
.nameplate form { display: flex; flex-wrap: wrap; gap: 10px; }
.nameplate input[type="search"] {
  flex: 1 1 320px; min-width: 0; max-width: none; height: 56px; padding: 0 18px;
  border: 1px solid var(--rule-control); border-radius: var(--radius); background: #fff; color: var(--ink);
  font-weight: 600; font-size: 1.25rem; letter-spacing: 0; text-transform: uppercase;
}
.nameplate input[type="search"]::placeholder { color: var(--grey); text-transform: none; font-weight: 400; font-size: 1rem; }
.nameplate button { height: 56px; padding: 0 28px; font-size: 1rem; background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
.nameplate button:hover { background: var(--cyan-bright); border-color: var(--cyan-bright); color: var(--navy); }
.nameplate p { margin: 14px 0 0; color: var(--ink-soft); font-size: 0.875rem; max-width: none; }
.nameplate--compact { padding: 0; background: none; box-shadow: none; border-radius: 0; }
.nameplate--compact input[type="search"] { height: 50px; font-size: 1.0625rem; }
.nameplate--compact button { height: 50px; }

/* --- Lamps ------------------------------------------------------------------ */

.lamp { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.lamp::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--neutral); }
.lamp--green::before { background: var(--green-dot); }
.lamp--amber::before { background: var(--amber-dot); }
.lamp--red::before { background: var(--red-dot); }
.lamp--blue::before { background: var(--cyan); box-shadow: 0 0 0 1px var(--cyan-deep); }
.lamp--off::before { background: #fff; box-shadow: inset 0 0 0 1.5px var(--neutral); }

/* --- Tables ----------------------------------------------------------------- */

/* position: relative keeps visually-hidden header text inside the scrolling box. */
.tablewrap { position: relative; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th, td { padding: 12px 12px; text-align: left; vertical-align: top; }
thead th {
  font-weight: 600; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap;
  border-bottom: 1px solid var(--rule); background: var(--sunk);
}
tbody tr + tr td, tbody tr + tr th { border-top: 1px solid var(--rule-soft); }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
td.numeric, th.numeric { text-align: right; font-variant-numeric: tabular-nums; }
tr.is-muted td { color: var(--ink-soft); }
td .sub { display: block; color: var(--ink-soft); font-size: 0.8125rem; font-weight: 400; }

/* --- Definition rows -------------------------------------------------------- */

.facts { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 8px 20px; margin: 0; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-radius: var(--radius-card); box-shadow: var(--ring); background: var(--panel); overflow: hidden; }
.stats li { padding: 18px 24px; border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); margin: 0 -1px -1px 0; }
.stats .value { display: block; font-weight: 600; font-size: 1.75rem; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats .label { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 0.8125rem; }

/* --- Forms ------------------------------------------------------------------ */

label { font-weight: 600; font-size: 0.8125rem; }
.field { margin-bottom: 18px; }
.field > label { display: block; margin-bottom: 6px; }
.field .help { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 0.8125rem; max-width: var(--measure); }
.field--check { display: flex; gap: 10px; align-items: flex-start; }
.field--check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--navy); }
.field--check label { font-weight: 500; font-size: 0.9375rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"],
input[type="url"], input[type="tel"], input[type="search"], input[type="file"], select, textarea {
  width: 100%; max-width: 440px; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--rule-control); border-radius: var(--radius); background: #fff; color: var(--ink);
  font: inherit;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 0; box-shadow: 0 0 0 4px var(--cyan); }
textarea { max-width: 560px; min-height: 0; }
input[type="number"] { max-width: 150px; }
input[type="file"] { padding: 8px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--navy); }
input:disabled, select:disabled { background: var(--sunk); color: var(--ink-soft); }
::placeholder { color: var(--grey); opacity: 1; }

.errorlist { margin: 6px 0 0; padding: 0; list-style: none; color: var(--red); font-weight: 500; font-size: 0.875rem; }
.formerror { margin-bottom: 18px; padding: 12px 16px; background: var(--red-wash); color: var(--red); border-radius: var(--radius); font-weight: 500; }
.formerror ul { margin: 0; padding: 0; list-style: none; }

button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border: 1px solid var(--navy); border-radius: var(--radius);
  background: var(--navy); color: #fff; font-family: var(--sans); font-weight: 600; font-size: 0.9375rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
button:hover, .button:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: #fff; }
button:disabled { background: var(--rule); border-color: var(--rule); color: var(--ink-soft); cursor: not-allowed; }
.button--accent { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.button--accent:hover { background: var(--cyan-bright); border-color: var(--cyan-bright); color: var(--navy); }
.button--plain { background: #fff; color: var(--navy); border-color: var(--rule-control); }
.button--plain:hover { background: var(--mist); color: var(--navy); border-color: var(--navy); }
.button--ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.4); }
.button--ghost:hover { background: rgb(255 255 255 / 0.08); color: #fff; border-color: #fff; }
.button--danger { background: #fff; color: var(--red); border-color: var(--red-dot); }
.button--danger:hover { background: var(--red-dot); color: #fff; border-color: var(--red-dot); }
.button--small { min-height: 36px; padding: 0 14px; font-size: 0.8125rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 18px; }
.inline-form { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.inline-form input[type="number"] { width: 84px; min-height: 36px; padding: 4px 10px; }
.inline-form select { width: auto; min-height: 36px; padding: 4px 10px; }

/* --- Notices ---------------------------------------------------------------- */

.notices { margin: 0 0 20px; padding: 0; list-style: none; }
.notice { padding: 13px 18px; border-radius: var(--radius); background: var(--panel); box-shadow: var(--ring); font-weight: 500; }
.notice + .notice { margin-top: 8px; }
.notice--success { background: var(--green-wash); color: var(--green); box-shadow: none; }
.notice--error { background: var(--red-wash); color: var(--red); box-shadow: none; }
.notice--warning { background: var(--amber-wash); color: var(--amber); box-shadow: none; }
.notice--info { background: var(--cyan-wash); box-shadow: none; }
.notice p { max-width: none; }

.callout { padding: 18px 22px; border-radius: var(--radius-card); background: var(--cyan-wash); }
.callout--amber { background: var(--amber-wash); }
.callout--amber h2, .callout--amber h3, .callout--amber strong { color: var(--amber); }
.callout--red { background: var(--red-wash); }
.callout--red h2, .callout--red h3 { color: var(--red); }
.callout--green { background: var(--green-wash); }
.callout--green h2, .callout--green h3 { color: var(--green); }
.callout h2, .callout h3 { margin-bottom: 6px; }

.keybox { display: block; padding: 12px 14px; border: 1px dashed var(--ink-soft); border-radius: var(--radius); background: #fff; font-family: var(--mono); font-size: 0.875rem; overflow-wrap: anywhere; user-select: all; }

pre.code { margin: 8px 0 0; padding: 14px 16px; background: var(--navy); color: #e8edf2; border-radius: var(--radius); font-family: var(--mono); font-size: 0.8125rem; line-height: 1.55; overflow-x: auto; }

/* --- Search results --------------------------------------------------------- */

.result__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.result__head .part { font-size: 1.5rem; letter-spacing: -0.02em; }
/* A number the member typed is shown the way the search box shows it: in capitals. */
.result__head .part, .part--typed { text-transform: uppercase; }
.result__ask { display: grid; gap: 0 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); align-items: start; }
.result__ask .field--wide { grid-column: 1 / -1; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--rule-soft); font-size: 0.875rem; color: var(--ink-soft); }
.pager a { font-weight: 600; }

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 16px; }
.filters .field { margin: 0; }
.filters input[type="search"], .filters select { width: auto; min-width: 200px; }

.signin { max-width: 440px; margin: 7vh auto 0; }
.signin .panel { padding: 32px; }
.signin h1 { margin-bottom: 8px; }
.signin .lede { color: var(--ink-soft); margin-bottom: 22px; }
.signin input { max-width: none; }
.signin button { width: 100%; }
.signin .below { margin-top: 18px; font-size: 0.875rem; }
.signin .below a { display: inline-block; padding: 10px 0; }

.footer { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter) 32px; color: var(--ink-soft); font-size: 0.8125rem; }
.footer p { max-width: none; margin-bottom: 4px; }
.callout .check-note { margin: 0; max-width: 86ch; }

@media (max-width: 640px) {
  h1 { font-size: 1.5rem; }
  .bar__inner { column-gap: 12px; }
  .wordmark { font-size: 0.75rem; gap: 10px; }
  .wordmark svg { width: 40px; height: 22px; }
  /* The main links wrap onto a second row; nothing is left to find by scrolling sideways. */
  .nav { order: 3; flex-basis: 100%; flex-wrap: wrap; margin: 0 calc(var(--gutter) * -1); padding: 0 calc(var(--gutter) - 11px); }
  .nav a { padding: 10px 11px 8px; white-space: nowrap; }
  .who { margin-left: auto; }
  .who .who__company { display: none; }
  .page { padding-top: 20px; }
  .panel { padding: 18px; }
  .panel--flush { padding: 0; }
  .panel--flush > h2, .panel--flush > .panel__head { padding: 18px 18px 0; }
  .panel__empty { padding: 4px 18px 18px; }
  .nameplate { padding: 22px 18px 20px; }
  .nameplate--compact { padding: 0; }
  .nameplate h1 { font-size: 1.625rem; }
  .nameplate input[type="search"] { font-size: 1.0625rem; height: 52px; flex-basis: 100%; }
  .nameplate button { width: 100%; height: 50px; }
  th:first-child, td:first-child { padding-left: 18px; }
  th:last-child, td:last-child { padding-right: 18px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  /* A command sample wraps on a phone; copying it still gives the same text. */
  pre.code { white-space: pre-wrap; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: no-preference) {
  button, .button, .nav a, .toolcard { transition: background-color 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s; }
}

@media print {
  .bar, .footer, .pubfoot, .actions, .nameplate form { display: none; }
  body { background: #fff; }
  .panel { box-shadow: none; padding: 0; }
}

.field .help ul { margin: 4px 0 0; padding-left: 18px; }

.stack > section > h2 { margin-bottom: 12px; }
.panel ul { margin: 0; padding-left: 20px; }
.callout + h3, .tablewrap + h3 { margin-top: 22px; }
.panel:not(.panel--flush) > .tablewrap { margin: 14px -24px 18px; border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.panel > .callout { margin-top: 16px; }
.panel h3 + p { margin-top: 4px; }

td .part, td a.part { white-space: nowrap; overflow-wrap: normal; }
.filters input[type="search"] { min-width: min(100%, 340px); }

/* --- AI part guide and finders ------------------------------------------------ */

.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--cyan-wash); color: var(--cyan-deep); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.tag--quiet { background: #eef1f5; color: var(--grey); }
.guide__what { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 6px; }
.guide__what .part { font-size: 1.5rem; letter-spacing: -0.02em; }
.guide h3 { margin-top: 22px; }
.guide td:nth-child(2) { min-width: 240px; }
.guide__foot { margin-top: 18px; }
.guide__more { display: block; margin-top: 8px; font-size: 0.8125rem; white-space: nowrap; }
.guide__ask { margin: 12px 0 0; }
.guide__ask p { margin-top: 8px; }
.guide th:first-child, .guide td:first-child { width: 32%; }

@media (max-width: 640px) {
  /* On a phone a table reads as a short list, not a sideways-scrolling grid.
     Cells after the first carry their column name (data-label). */
  .guide thead, .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .guide table, .guide tbody, .guide tr, .guide td,
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td, .table--stack tbody th { display: block; }
  .guide tr, .table--stack tr { padding: 14px 18px; }
  .guide tbody tr + tr, .table--stack tbody tr + tr { border-top: 1px solid var(--rule-soft); }
  .guide td, .guide tbody tr + tr td, .guide td:first-child, .guide td:last-child,
  .table--stack td, .table--stack tbody tr + tr td, .table--stack td:first-child, .table--stack td:last-child,
  .table--stack tbody th, .table--stack tbody tr + tr th { width: auto; min-width: 0; padding: 0; border: 0; white-space: normal; }
  .guide td + td, .table--stack td + td, .table--stack tbody th + td { margin-top: 6px; }
  .guide td.right, .table--stack td.right { margin-top: 10px; text-align: left; }
  .table--stack td.numeric { text-align: left; }
  .table--stack td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-soft); }
  .table--stack td:empty { display: none; }
  .guide td .part, .table--stack td .part { white-space: normal; overflow-wrap: anywhere; }
  .panel:not(.panel--flush) > .tablewrap { margin-left: -18px; margin-right: -18px; }
}
.table--stack td.notes { min-width: 220px; }

/* --- Tools -------------------------------------------------------------------- */

.toolgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin: 0; padding: 0; list-style: none; }
.toolcard { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px; background: var(--panel); border-radius: var(--radius-card); box-shadow: var(--ring); color: var(--ink); text-decoration: none; }
.toolcard:hover { box-shadow: 0 0 0 2px var(--cyan); color: var(--ink); }
.toolcard__title { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.3; }
.toolcard__text { color: var(--ink-soft); font-size: 0.875rem; line-height: 1.55; }
.toolcard .tag { align-self: flex-start; margin-top: auto; }
.toolcard__text + .tag { margin-top: 8px; }
.toolcard--lead { background: var(--navy); color: #fff; box-shadow: none; }
.toolcard--lead:hover { color: #fff; box-shadow: 0 0 0 2px var(--cyan); }
.toolcard--lead .toolcard__text { color: var(--on-navy); }
.calc__fields { display: grid; gap: 0 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); align-items: start; }
.calc__fields--pairs { grid-template-columns: repeat(2, minmax(0, 260px)); }
.calc__fields input, .calc__fields select { max-width: none; width: 100%; }
.calc__result th[scope="row"] { width: 38%; font-weight: 500; color: var(--ink-soft); }
.calc__value { font-weight: 600; font-variant-numeric: tabular-nums; }
/* A long number breaks onto the next line; it never widens the page. */
.calc__result h2, .calc__value { overflow-wrap: anywhere; }
.calc__notes { margin: 0; padding-left: 20px; max-width: var(--measure); }
.calc__notes li + li { margin-top: 6px; }
.panel__lede { padding: 0 24px; margin-bottom: 14px; }
@media (max-width: 640px) {
  .calc__fields--pairs { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .calc__result th[scope="row"] { width: 45%; }
  .panel__lede { padding: 0 18px; }
}
.result__want { margin: 14px 0 0; }
.partlist { width: 100%; max-width: 560px; font-family: var(--mono); }
.panel > .inline-form + p { margin-top: 12px; }

/* --- Public pages: what Channel Reserve is, and asking for an invitation ------- */

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.eyebrow { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--grey); max-width: none; }
.band { padding: 88px 0; background: #fff; }
.band--mist { background: var(--mist); }
.band--navy { background: var(--navy); color: #fff; }
.band--navy .eyebrow { color: var(--cyan); }
.band--navy a:not(.button) { color: #fff; }
.band--navy :focus-visible { outline-color: var(--cyan); box-shadow: none; }
.band h2 { font-size: 2.25rem; letter-spacing: -0.035em; line-height: 1.1; }
.band__head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 40px; }
.band__head p:not(.eyebrow) { font-size: 1.0625rem; line-height: 1.65; color: var(--grey); }
.band--navy .band__head p:not(.eyebrow) { color: var(--on-navy); }

.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.hero__copy { display: flex; flex-direction: column; gap: 22px; }
.hero .eyebrow { color: var(--cyan); }
.hero h1 { font-size: 3.5rem; letter-spacing: -0.04em; line-height: 1.04; }
.hero__lede { margin: 0; font-size: 1.125rem; line-height: 1.6; color: var(--on-navy); max-width: 600px; }
.hero :focus-visible { outline-color: var(--cyan); box-shadow: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.cta .button { min-height: 50px; padding: 0 24px; }

/* A piece of the real interface, shown as an example. */
.screen { margin: 0; background: #fff; color: var(--navy); border-radius: var(--radius-card); box-shadow: 0 24px 60px rgb(0 0 0 / 0.28); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.band .screen { box-shadow: var(--ring), 0 18px 44px rgb(11 27 51 / 0.1); }
.screen__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.screen__title { font-size: 0.8125rem; font-weight: 600; color: var(--grey); }
.screen__query { display: flex; gap: 8px; }
.screen__input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--rule-strong); border-radius: var(--radius); font-weight: 600; font-size: 1rem; }
.screen__go { display: inline-flex; align-items: center; padding: 0 16px; border-radius: var(--radius); background: var(--cyan); color: var(--navy); font-weight: 600; font-size: 0.875rem; }
.screen__part { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.screen__sub { font-size: 0.8125rem; color: var(--grey); }
.screen__rows { margin: 0; padding: 0; list-style: none; }
.screen__rows li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 12px 0; border-top: 1px solid var(--rule-soft); font-size: 0.875rem; }
.screen__rows .sub { display: block; font-size: 0.8125rem; color: var(--grey); font-weight: 400; }
.screen__rows strong { font-weight: 600; }
.screen__note { font-size: 0.75rem; color: var(--grey); margin: 0; }
.screen__pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--radius); background: var(--navy); color: #fff; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.screen__pill--plain { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1px var(--rule-strong); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius-card); box-shadow: var(--ring); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--cyan); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.steps p { color: var(--grey); line-height: 1.6; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.split__copy { display: flex; flex-direction: column; gap: 18px; }
.split__copy p:not(.eyebrow) { font-size: 1.0625rem; line-height: 1.7; color: var(--grey); }
.band--navy .split__copy p:not(.eyebrow) { color: var(--on-navy); }
.split__copy .button { align-self: flex-start; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.cards li { background: #fff; border-radius: var(--radius-card); box-shadow: var(--ring); padding: 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.band--mist .cards li { background: #fff; }
.cards h3 { font-size: 1.0625rem; letter-spacing: -0.015em; }
.cards p { color: var(--grey); font-size: 0.9375rem; line-height: 1.6; }
.cards .tag { align-self: flex-start; }

.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px 40px; margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 40px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: rgb(25 195 240 / 0.16); }
.checks li::after { content: ""; position: absolute; left: 9px; top: 7px; width: 6px; height: 11px; border: solid var(--cyan-deep); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.band--navy .checks li::after { border-color: var(--cyan); }
.checks strong { display: block; font-weight: 600; font-size: 1rem; }
.checks span { display: block; margin-top: 4px; font-size: 0.875rem; line-height: 1.6; color: var(--grey); }
.band--navy .checks span { color: var(--on-navy-soft); }

.pubfoot { background: var(--navy-deep); color: #7f8da3; padding: 44px 0; font-size: 0.8125rem; }
.pubfoot .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.pubfoot .wordmark, .pubfoot .wordmark:hover { padding: 0; flex-direction: column; align-items: flex-start; gap: 12px; color: #fff; }
.pubfoot .wordmark svg { width: 64px; height: 35px; }
.pubfoot .tagline { color: #7f8da3; margin-top: 12px; }
.pubfoot nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.pubfoot nav a { display: inline-flex; align-items: center; min-height: 44px; }
.pubfoot a { color: #c9d3e1; }
.pubfoot a:hover { color: #fff; }
.pubfoot :focus-visible { outline-color: var(--cyan); box-shadow: none; }

/* Asking for an invitation */
.invite { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 48px; padding-bottom: 72px; }
.invite--alone .invite__aside { flex: 0 1 560px; }
.invite__aside { flex: 1 1 320px; background: var(--navy); color: #fff; border-radius: 16px; padding: 34px; display: flex; flex-direction: column; gap: 20px; }
.invite__aside .eyebrow { color: var(--cyan); }
.invite__aside h1 { font-size: 2.125rem; letter-spacing: -0.035em; line-height: 1.1; }
.invite__aside > p:not(.eyebrow) { color: var(--on-navy); line-height: 1.65; }
.invite__steps { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 18px; }
.invite__steps li { counter-increment: step; position: relative; padding-left: 44px; }
.invite__steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: rgb(25 195 240 / 0.18); color: var(--cyan); font-weight: 700; font-size: 0.8125rem; display: flex; align-items: center; justify-content: center; }
.invite__steps strong { display: block; font-weight: 600; }
.invite__steps span { display: block; margin-top: 3px; font-size: 0.8125rem; line-height: 1.6; color: var(--on-navy-soft); }
.invite__form { flex: 2 1 520px; background: #fff; border-radius: 16px; box-shadow: var(--ring); padding: 36px; }
.invite__form h2 { font-size: 1.375rem; letter-spacing: -0.02em; }
.invite__form > p { color: var(--grey); margin-top: 6px; }
.invite__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 20px; margin-top: 24px; }
.invite__grid .field--wide { grid-column: 1 / -1; }
.invite__grid input, .invite__grid select, .invite__grid textarea { max-width: none; }
.invite__grid fieldset { border: 0; padding: 0; margin: 0 0 18px; grid-column: 1 / -1; }
.invite__grid legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 0.8125rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips > div { display: contents; }
.chips label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-control); font-weight: 500; cursor: pointer; }
.chips input { width: 16px; height: 16px; margin: 0; }
.invite__send { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.invite__send p { font-size: 0.8125rem; color: var(--grey); max-width: 46ch; }
.invite__send button { min-height: 50px; padding: 0 28px; font-size: 1rem; }
/* A field people never see. Anything typed in it came from a script. */
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero .wrap { padding-top: 64px; padding-bottom: 64px; }
  .hero h1 { font-size: 2.5rem; }
  .band { padding: 64px 0; }
  .band h2 { font-size: 1.75rem; }
}
@media (max-width: 640px) {
  .wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
  .invite { padding-bottom: 48px; }
  .hero h1 { font-size: 2.125rem; }
  .hero__lede { font-size: 1rem; }
  .pubnav a.pubnav__link:not(.button) { display: none; }
  .invite { padding-top: 24px; }
  .invite__aside, .invite__form { padding: 24px 20px; }
  .cta .button { flex: 1 1 100%; }
}

/* --- Channel AI: the no-stock page, the parts the guide suggests, and the check --
   One block for the "About this part" and "In the network" cards, the navy
   Channel AI panel with a card for each suggested part, the rating chips, and
   the staff control that discards a saved answer. Colors are the names at the
   top of this file. */

.columns--even { align-items: stretch; }

/* About this part: number, maker, description, ratings. No photo, on purpose. */
.about { display: flex; flex-direction: column; }
.about__maker { margin: 0; color: var(--ink-soft); font-size: 0.8125rem; }
.about__part { margin: 2px 0 0; font-size: 1.875rem; letter-spacing: -0.02em; line-height: 1.15; }
.about__also { margin: 6px 0 0; font-size: 1rem; font-weight: 500; }
.about__text { margin: 10px 0 0; color: var(--ink-soft); }
.about__specs { margin: 16px 0 0; }
.about__specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule-soft); font-size: 0.875rem; }
.about__specs dt { color: var(--ink-soft); }
.about__specs dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.about .about__foot { margin: auto 0 0; padding-top: 16px; }

/* In the network: what the search of this part said, the want list, and a
   pointer to the suggested parts when a check found some. */
.net { display: flex; flex-direction: column; gap: 14px; }
.net > .panel__head { margin-bottom: 0; }
.net__status { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--mist); }
.net__status .lamp { margin-top: 7px; }
.net__status h3 { font-size: 0.9375rem; line-height: 1.4; color: inherit; }
.net__status p { margin: 3px 0 0; font-size: 0.8125rem; max-width: none; }
.net__status--none { background: var(--red-wash); color: var(--red); }
.net__status--held { background: var(--green-wash); color: var(--green); }
.net__status--held a { color: inherit; }
.net .net__hint { margin: 0; color: var(--ink-soft); font-size: 0.8125rem; max-width: none; }
.net__want { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--mist); }
.net__want > div { flex: 1 1 220px; }
.net__want strong { display: block; font-weight: 600; }
.net__want span { display: block; color: var(--ink-soft); font-size: 0.8125rem; }
.net__want form { margin: 0; }
.net .net__good { margin: auto 0 0; padding: 14px 16px; border-radius: var(--radius); background: var(--cyan-wash); max-width: none; }

/* The Channel AI panel. */
.ai { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--radius-card); background: var(--navy); color: var(--panel); scroll-margin-top: 16px; }
.ai :focus-visible { outline-color: var(--cyan); box-shadow: none; }
.ai__head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.ai__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--navy-soft); }
.ai__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ai__title { flex: 1 1 260px; min-width: 0; }
.ai__title h2 { font-size: 1.1875rem; line-height: 1.25; }
.ai__title p { margin: 4px 0 0; color: var(--on-navy-soft); font-size: 0.8125rem; max-width: none; }
.ai__check { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0; }
.ai__check p { flex: 1 1 280px; margin: 0; color: var(--on-navy); font-size: 0.8125rem; }
.ai > h3 { margin-top: 4px; color: var(--on-navy-soft); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.ai__legend { margin: -8px 0 0; color: var(--on-navy); font-size: 0.8125rem; line-height: 2.1; max-width: none; }
.ai__legend .part { color: var(--panel); }
.ai__legend .chip { margin-left: 4px; vertical-align: middle; }
.ai > .callout { color: var(--ink); }
.ai > .callout p { max-width: 86ch; }
.ai__foot { margin: 0; color: var(--on-navy-soft); font-size: 0.8125rem; max-width: 86ch; }
.ai__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }

/* One suggested part. */
.cross { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 24px; border-radius: var(--radius-card); background: var(--panel); color: var(--ink); }
.cross :focus-visible { outline-color: var(--navy); box-shadow: 0 0 0 4px var(--cyan); }
.cross__top { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cross__maker { margin: 0; color: var(--ink-soft); font-size: 0.8125rem; }
.cross__part { font-size: 1.3125rem; letter-spacing: -0.015em; line-height: 1.2; }
.cross__note, .cross__own, .cross__open, .cross__links { margin: 0; font-size: 0.875rem; max-width: none; }
.cross__note { color: var(--ink-soft); }
.cross__own { padding: 10px 14px; border-radius: var(--radius); background: var(--cyan-wash); }
.cross__open { padding: 10px 14px; border-radius: var(--radius); background: var(--amber-wash); }
.cross__links, .cross__none { margin: 0; padding-top: 12px; border-top: 1px solid var(--rule-soft); }
.cross__none { color: var(--ink-soft); }
.cross__stock { display: flex; flex-direction: column; gap: 12px; }

/* "In stock in the network": the one thing a search says about a part other
   members hold. One row, the same wherever a result is shown. */
.instock { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin: 0; padding: 14px 16px; border-radius: var(--radius); background: var(--green-wash); color: var(--green); max-width: none; }
.instock .lamp { font-weight: 600; }
.instock__note { font-size: 0.75rem; }
.panel > .instock { margin-top: 16px; }
.panel > .instock + p { margin-top: 12px; }
.instock + h3 { margin-top: 22px; }

/* The request form, folded until it is wanted. */
.cross__ask > summary { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--navy); border-radius: var(--radius); background: var(--navy); color: var(--panel); font-weight: 600; font-size: 0.875rem; cursor: pointer; list-style: none; }
.cross__ask > summary::-webkit-details-marker { display: none; }
.cross__ask > summary:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.cross__ask[open] > summary { background: var(--panel); color: var(--navy); border-color: var(--rule-control); }
.cross__ask > p { margin: 12px 0; max-width: none; }
.cross__ask form { margin: 12px 0 0; }
.cross__ask textarea, .cross__ask input[type="date"] { max-width: none; }

/* A rating of the searched part on a suggested one: a tick when it is the
   same, a cross when it differs. The shape says it, not the color, and each
   chip carries the word for a screen reader. */
.cross__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; line-height: 1.3; }
.chip::before { content: ""; flex: none; }
.chip--same { background: var(--green-wash); color: var(--green); }
.chip--same::before { width: 5px; height: 9px; margin: -3px 2px 0 3px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chip--differs { background: var(--amber-wash); color: var(--amber); }
.chip--differs::before { content: "\00d7"; font-size: 1.0625rem; font-weight: 700; line-height: 0.8; }

/* The relation of a suggested part, in words. */
.tag--plain { font-size: 0.75rem; letter-spacing: 0; text-transform: none; white-space: normal; }

/* Network staff: discard a saved AI answer that is wrong. Two steps. */
.discard { margin-top: 14px; font-size: 0.8125rem; }
.discard > summary { width: fit-content; color: var(--ink-soft); cursor: pointer; }
.discard form { margin: 10px 0 0; padding: 14px 16px; border-radius: var(--radius); background: var(--red-wash); }
.discard p { margin-bottom: 10px; color: var(--red); }

@media (max-width: 640px) {
  .ai { padding: 18px; }
  .cross { padding: 18px; }
  .about__part { font-size: 1.5rem; }
  .ai__check button, .net__want button { width: 100%; }
  .net__want form { flex: 1 1 100%; }
}
@media print {
  .ai { background: none; color: var(--ink); padding: 0; }
  .ai__check, .cross__ask, .discard { display: none; }
}

/* --- Requests and quotes ------------------------------------------------------
   The request and quote flow: the note under a request form, the quotes a
   requester has received, a holder's quote form, the two-step controls and the
   use restriction every page in the flow carries. Uses the color names at the
   top of this file; adds none. */

.request-note { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.8125rem; }
.use-note { margin: 20px 0 0; color: var(--ink-soft); font-size: 0.8125rem; max-width: none; }

.quotes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin: 16px 0 0; padding: 0; list-style: none; }
.quote { display: flex; flex-direction: column; padding: 18px 20px; border: 1px solid var(--rule-strong); border-radius: var(--radius-card); background: var(--panel); }
.quote .actions { margin-top: auto; padding-top: 18px; }
.quote--past { border-color: var(--rule); background: var(--sunk); color: var(--ink-soft); }
.quote__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.quote__head + .facts { margin-top: 12px; }
.quote__head h3 { margin: 0; font-size: 1.0625rem; }
.quote__by { margin: 14px 0 0; }

.quoteform { display: grid; gap: 0 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); align-items: start; }
.quoteform .field--wide { grid-column: 1 / -1; }
.quoteform input[type="number"], .quoteform input[type="date"], .quoteform input[type="text"] { max-width: none; }
.quoteform .errorlist { padding-left: 0; }

/* Two steps without a script: open the line, then press the button. */
.reveal { margin-top: 14px; }
.reveal > summary { width: fit-content; cursor: pointer; font-weight: 600; font-size: 0.875rem; }
.reveal > form { margin: 12px 0 0; padding: 16px 18px; border-radius: var(--radius); background: var(--sunk); }
.reveal--danger > summary { color: var(--red); }
.reveal--danger > form { background: var(--red-wash); }
.reveal--danger > form p { margin: 0 0 10px; color: var(--red); }

.plainlist { margin: 0; padding-left: 18px; max-width: var(--measure); }
.plainlist li + li { margin-top: 8px; }

@media print {
  .reveal, .quote .actions { display: none; }
}

/* --- Network staff: support sessions, access log, admissions --------------------
   (the data firewall; templates/network/. Other blocks may follow this one.) */

/* The line that says a support session is open. Amber: a state to notice. */
.support { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: -6px 0 22px; padding: 12px 18px; border-radius: var(--radius); background: var(--amber-wash); }
.support__text { margin: 0; max-width: none; flex: 1 1 320px; overflow-wrap: anywhere; }
/* Its own dot, not the amber lamp: on a search result that lamp once meant "stock not confirmed lately",
   and the staff search shows this line too. */
.support__lamp { color: var(--amber); font-weight: 600; }
.support__lamp::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--amber-dot); }
.support__note { display: block; color: var(--ink-soft); font-size: 0.8125rem; }
.support form { margin: 0; }

/* Suspending a member: the reason sits beside the button and is long enough to read back. */
.statusform input[type="text"] { width: 340px; max-width: 100%; min-height: 46px; }

/* Under a member's table of people or upload keys: what staff can and can't do there. */
.panel__foot { padding: 14px 24px 20px; border-top: 1px solid var(--rule-soft); }
.panel__foot p { max-width: none; }
.panel__foot p + p { margin-top: 8px; }
td.right .inline-form + .inline-form { margin-left: 6px; }

/* Panels that explain a rule: a list, then a heading or a note under it. */
.explain ul + h3, .explain p + h3 { margin-top: 20px; }
.explain ul + p { margin-top: 14px; }
.panel form > h3 { margin-top: 26px; }
.stack > .callout + .stats { margin-top: 20px; }

/* An invitation request: what happened to it so far, and declining it with a reason. */
.history { margin-top: 16px; font-size: 0.875rem; }
.history > summary, .decline > summary { width: fit-content; color: var(--ink-soft); cursor: pointer; }
.history ol { margin: 10px 0 0; padding-left: 20px; }
.history li + li { margin-top: 4px; }
.decline { margin-top: 14px; font-size: 0.875rem; }
.decline form { margin: 10px 0 0; padding: 16px 18px; border-radius: var(--radius); background: var(--sunk); box-shadow: var(--ring); }
.decline .field { margin-bottom: 14px; }
.decline input[type="text"] { max-width: 640px; }

@media (max-width: 640px) {
  .support { padding: 12px 14px; }
  .statusform, .statusform input[type="text"], .statusform button { width: 100%; }
}
@media print {
  .support form, .decline { display: none; }
}
