/* HQ — staff dashboard styles.
   Visual system from the "CNL Admin Dashboard" canvas, built on the tokens in
   assets/site.css (--navy, --red, --cream, fonts, card device). Everything
   here is scoped to body.hq / .hq-* so nothing leaks into other pages. */

body.hq {
  /* Placeholder light blue from the canvas: swap in the official brand blue
     once we have its hex (docs/HQ-DASHBOARD-PLAN.md §12 q7). */
  --hq-blue: #C9DDF0;
  --hq-ok: #2F6B4F;
  --hq-warn-bg: #F3DFA8;
  --hq-warn-ink: #5E4100;
  --hq-warn-line: #C9A13B;
  --hq-rule: #c9c4a8;
  --hq-meta: rgba(44, 54, 89, 0.78);
  --hq-code-bg: #1E2542;

  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  align-items: start;
  font-size: 15px;
  line-height: 1.5;
}

.hq .ic {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.hq-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.hq-skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 20;
  background: var(--cream);
  color: var(--navy);
  padding: 8px 12px;
  font-weight: 700;
}
.hq-skip:focus { top: 8px; }

/* ---------- rail ---------- */

.hq-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: auto;
  background: var(--navy);
  color: var(--cream);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hq-rail :focus-visible { outline-color: var(--cream); }
.hq-rail a { color: var(--cream); }

.hq-rail__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
}
.hq-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-decoration: none;
}
.hq-menu { display: none; }

.hq-rail__title { padding-left: 10px; }
.hq-rail__hq {
  margin: 0;
  font-size: 64px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.02em;
}
.hq-rail__intro {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(253, 251, 233, 0.8);
}

.hq-rail__h {
  margin: 0 0 4px 10px;
  font-size: 10px;
  line-height: 1.4;
  color: rgba(253, 251, 233, 0.7);
}
.hq-nav { display: flex; flex-direction: column; gap: 20px; }
.hq-nav ul { list-style: none; margin: 0; padding: 0; }
.hq-nav a,
.hq-later {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 15px;
  text-decoration: none;
}
.hq-nav a:hover { background: rgba(253, 251, 233, 0.1); color: var(--cream); }
.hq-nav a[aria-current="page"],
.hq-nav a[aria-current="page"]:hover {
  background: var(--cream);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--red);
}
.hq-later { color: rgba(253, 251, 233, 0.62); }
.hq-ri { display: inline-flex; align-items: center; gap: 11px; }

.hq-tag {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 1px 7px;
  white-space: nowrap;
}

.hq-rail__foot {
  margin-top: auto;
  padding-left: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(253, 251, 233, 0.72);
}
.hq-rail__foot p { margin: 0 0 6px; }
.hq-rail__foot a { color: rgba(253, 251, 233, 0.85); }

/* Find a chapter: a combobox over the chapter list. */
.hq-find { display: flex; flex-direction: column; gap: 6px; padding: 0 10px; }
.hq-find label {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  color: rgba(253, 251, 233, 0.7);
}
.hq-find__box { position: relative; }
.hq-find__box > .ic {
  position: absolute;
  left: 11px;
  top: 12px;
  width: 16px;
  height: 16px;
  color: var(--navy);
  pointer-events: none;
}
.hq .hq-find input {
  height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px 0 36px;
  font-family: var(--font-serif);
  font-size: 14px;
  background: var(--cream);
  color: var(--navy);
}
.hq-find__list {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--cream);
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--red);
  max-height: 320px;
  overflow: auto;
}
.hq-find__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.3;
}
.hq-find__list li[aria-selected="true"],
.hq-find__list li:hover { background: var(--hq-blue); }
.hq-find__list .hq-find__empty { cursor: default; color: var(--hq-meta); font-style: italic; }
.hq-find__list .hq-find__empty:hover { background: none; }

/* ---------- main column ---------- */

.hq-main {
  min-width: 0;
  min-height: 100vh;
  padding: 34px 40px 48px;
}
.hq-main:focus { outline: none; }
/* tool.js moves focus to the new screen's heading so screen readers land
   there; it isn't something to click, so no ring. */
.hq-view h1[tabindex="-1"]:focus { outline: none; }
.hq-view {
  max-width: 1240px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hq-loading { color: var(--hq-meta); font-style: italic; margin: 0; }

.hq-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.hq-kicker {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--red);
}
.hq-kicker a { color: var(--red); text-decoration: none; }
.hq-kicker a:hover { text-decoration: underline; }
.hq-head h1 {
  margin: 6px 0;
  font-size: clamp(28px, 2.2vw + 14px, 40px);
  line-height: 1.05;
}
.hq-head__lede { margin: 0; font-size: 16px; }
.hq-head__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.hq-head__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

.hq-meta { font-size: 13px; line-height: 1.45; color: var(--hq-meta); }
.hq-meta b, .hq-meta strong { color: var(--navy); }

/* Countdown sticker. */
.hq-sticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--cream);
  padding: 9px 14px;
  transform: rotate(-3deg);
  box-shadow: 3px 3px 0 var(--navy);
  border-radius: 4px;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- cards ---------- */

.hq .card { border-radius: 14px; padding: 20px 22px; min-width: 0; }
.hq-card-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
}
.hq-card-h > a { font-size: 13px; }
.hq-hl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hq-h2 { margin: 0; font-size: 19px; line-height: 1.25; }
.hq-card-note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--hq-rule);
}

.hq-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
  background: var(--navy);
  color: var(--cream);
}
.hq-badge.is-red { background: var(--red); }
.hq-badge.is-blue { background: var(--hq-blue); color: var(--navy); }
.hq-badge.is-ghost {
  background: var(--cream);
  color: var(--navy);
  border: 1.5px dashed rgba(44, 54, 89, 0.5);
}

.hq-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.hq-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* List rows inside cards. */
.hq-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--hq-rule);
}
.hq-row.is-tight { padding: 9px 0; gap: 12px; }
.hq-row.is-first { border-top: 0; padding-top: 4px; }
.hq-row__main { flex: 1 1 auto; min-width: 0; }
.hq-row__title { font-weight: 700; overflow-wrap: anywhere; }
a.hq-row__title { display: block; color: var(--navy); }
.hq-row__label { width: 100px; flex: none; }
.hq-row__end { flex: none; white-space: nowrap; }
/* A whole row that is one link (the Tools card). */
a.hq-row.is-link { color: var(--navy); text-decoration: none; }
a.hq-row.is-link:hover .hq-row__title { color: var(--red); text-decoration: underline; }

/* Chapter codes in a wrapping list (quiet chapters). */
.hq-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; }
.hq-chips[hidden] { display: none; }
.hq-quiet { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

/* ---------- small parts ---------- */

/* Luggage-tag chapter code. */
.hq-code {
  display: inline-block;
  position: relative;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  background: var(--navy);
  color: var(--cream);
  padding: 3px 8px 3px 16px;
  border-radius: 4px;
  white-space: nowrap;
  text-decoration: none;
  flex: none;
}
.hq-code::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--cream);
}
a.hq-code:hover { color: var(--cream); background: var(--red); }

/* Status pills: always a word, never colour alone. */
.hq-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}
.hq-pill.is-ok { color: var(--hq-ok); border-color: var(--hq-ok); }
.hq-pill.is-warn { color: var(--hq-warn-ink); background: var(--hq-warn-bg); border-color: var(--hq-warn-line); }
.hq-pill.is-bad { color: var(--cream); background: var(--red); border-color: var(--red); }
.hq-pill.is-mute { color: var(--hq-meta); border-color: rgba(44, 54, 89, 0.4); border-style: dashed; }

/* Round check marks: glyph + hidden word. */
.hq-mk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  line-height: 1;
  flex: none;
}
.hq-mk.is-ok { background: var(--hq-ok); color: var(--cream); }
.hq-mk.is-warn { background: var(--hq-warn-bg); color: var(--hq-warn-ink); border: 1.5px solid var(--hq-warn-line); }
.hq-mk.is-bad { background: var(--red); color: var(--cream); }
.hq-mk.is-man { background: transparent; color: var(--hq-meta); border: 1.5px dashed rgba(44, 54, 89, 0.5); }

/* Outline pill link ("Open in AN"). */
.hq-lnk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-serif);   /* things you click: the serif, sentence case (site.css .button) */
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--navy);
  background: transparent;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  padding: 7px 12px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.hq-lnk .ic { width: 14px; height: 14px; }
a.hq-lnk:hover, button.hq-lnk:hover { color: var(--cream); background: var(--navy); }
.hq-lnk[aria-pressed="true"] { color: var(--cream); background: var(--navy); }
.hq-lnk.is-off { cursor: default; opacity: 0.55; border-style: dashed; }

.hq .button { display: inline-flex; align-items: center; gap: 8px; }
.hq .button .ic { width: 14px; height: 14px; }

/* ---------- version warnings (System health) ---------- */

.hq-drift {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hq-rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hq-drift.is-flush { margin-top: 4px; padding-top: 0; border-top: 0; }
.hq-drift__row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.hq-drift__row > a, .hq-drift__row > code { margin-left: auto; font-size: 13px; }
.hq code {
  font-family: ui-monospace, Consolas, "SF Mono", monospace;
  font-size: 0.9em;
}

/* ---------- the briefing: Globert in a window (Overview header) ---------- */

.hq-brief {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px 30px;
  align-items: center;
  background: var(--navy);
  color: var(--cream);
  border: 2px solid var(--navy);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--red);
  padding: 18px 26px 18px 18px;
  margin: 0 6px 6px 0;
}
/* A plane window: the sky and clouds are the sprite's own. */
.hq-brief__win {
  display: block;
  position: relative;
  width: 216px;
  height: 180px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #DDEFFF;
  border: 5px solid var(--cream);
  border-radius: 22px;
  box-shadow: 0 0 0 2px var(--navy);
}
.hq-brief__win:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.hq-brief__win canvas { display: block; image-rendering: pixelated; }
.hq-brief__kicker { margin: 0 0 6px; font-size: 11px; color: var(--hq-blue); }
.hq-brief h1 {
  margin: 0 0 12px;
  color: var(--cream);
  font-size: clamp(28px, 2.2vw + 14px, 40px);
  line-height: 1.05;
}
.hq-brief__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 16px; }
.hq-brief__list li { display: flex; align-items: center; gap: 12px; }
.hq-brief__list li::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--cream); box-shadow: 2px 2px 0 var(--red); }
.hq-brief__list a { color: var(--cream); text-decoration-color: rgba(253, 251, 233, 0.45); text-underline-offset: 3px; }
.hq-brief__list a:hover { text-decoration-color: var(--cream); }
.hq-brief__side { align-self: start; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.hq-brief__meta { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.hq-brief__meta .hq-meta { color: rgba(253, 251, 233, 0.75); }
.hq-brief .button { background: var(--cream); color: var(--navy); }
@media (max-width: 1100px) {
  .hq-brief { grid-template-columns: auto minmax(0, 1fr); }
  .hq-brief__side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}
@media (max-width: 759px) {
  .hq-brief { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 14px; }
  .hq-brief__win { width: 144px; height: 120px; border-radius: 16px; }
}

/* ---------- Settings ---------- */

/* Globert's outfits: one picture card each; the chosen one gets the navy frame. */
.hq-outfits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.hq-outfit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 10px 12px;
  text-align: center;
  border: 2px solid var(--hq-rule);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.hq-outfit input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hq-outfit__pic { display: block; width: 72px; height: 60px; }
.hq-outfit__pic canvas { display: block; image-rendering: pixelated; }
.hq-outfit__t { display: flex; flex-direction: column; gap: 2px; }
.hq-outfit__t .hq-meta { font-size: 12px; line-height: 1.35; }
.hq-outfit:hover { border-color: var(--navy); }
.hq-outfit:has(input:checked) { border-color: var(--navy); background: var(--hq-blue); box-shadow: 4px 4px 0 var(--navy); }
.hq-outfit:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.hq-outfits:disabled .hq-outfit { cursor: default; }
.hq-outfits:disabled .hq-outfit:not(:has(input:checked)) { opacity: 0.6; }
.hq-outfits:disabled .hq-outfit:hover:not(:has(input:checked)) { border-color: var(--hq-rule); }

/* On/off switches (a styled checkbox: role=switch). */
.hq-setrow { align-items: flex-start; gap: 14px; padding: 12px 0; }
.hq-setrow label { display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
/* Undo the site's form-label look (assets/site.css): these are sentences, in HQ's serif. */
.hq .hq-outfit, .hq .hq-setrow label { margin: 0; font-family: inherit; font-size: inherit; font-weight: 400; letter-spacing: normal; text-transform: none; color: inherit; }
.hq-switch {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  position: relative;
  width: 44px;
  height: 26px;
  margin: 2px 0 0;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.hq-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navy);
  transition: transform 0.15s;
}
.hq-switch:checked { background: var(--hq-ok); border-color: var(--hq-ok); }
.hq-switch:checked::after { transform: translateX(18px); background: #fff; }
.hq-switch:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.hq-switch:disabled { opacity: 0.55; cursor: default; }
@media (prefers-reduced-motion: reduce) { .hq-switch, .hq-switch::after { transition: none; } }

/* ---------- stat tiles ---------- */

.hq-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.hq-tiles.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hq-tile {
  border: 2px solid var(--navy);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--navy);
  padding: 16px 18px;
  margin: 0 6px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.hq-tile.is-navy { background: var(--navy); color: var(--cream); box-shadow: 5px 5px 0 var(--red); }
.hq-tile.is-red { background: var(--red); color: var(--cream); border-color: var(--red); }
.hq-tile.is-blue { background: var(--hq-blue); color: var(--navy); }
.hq-tile.is-cream { background: var(--cream); color: var(--navy); border-color: var(--red); }
.hq-tile__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hq-tile__top .ic { width: 22px; height: 22px; }
.hq-tile__label { font-size: 10px; line-height: 1.3; }
.hq-tile__n {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hq-tile__n.is-none { opacity: 0.6; }
.hq-tile__sub { font-size: 13px; line-height: 1.4; }
/* A tile that opens the screen its number comes from. */
a.hq-tile.is-link { text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease; }
a.hq-tile.is-link .hq-tile__label::after { content: '\00a0→'; } /* no-break space: the arrow never wraps alone */
a.hq-tile.is-link:hover, a.hq-tile.is-link:focus-visible { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--navy); }
a.hq-tile.is-link.is-navy:hover, a.hq-tile.is-link.is-navy:focus-visible { box-shadow: 7px 7px 0 var(--red); }
a.hq-tile.is-link:hover .hq-tile__label { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { a.hq-tile.is-link { transition: none; } a.hq-tile.is-link:hover, a.hq-tile.is-link:focus-visible { transform: none; } }

/* ---------- calendar block ---------- */

.hq-cal {
  width: 50px;
  flex: none;
  border: 2px solid var(--navy);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  background: #fff;
}
.hq-cal__h { background: var(--red); color: var(--cream); font-size: 9px; padding: 2px 0; }
.hq-cal__d {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 19px;
  line-height: 1.1;
  padding-top: 2px;
}
.hq-cal__m { font-size: 8px; padding-bottom: 3px; }

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

/* position:relative keeps the absolutely positioned .visually-hidden spans inside the scroll box,
   so a wide table can't widen the page. */
.hq-tbl-wrap { position: relative; overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.hq-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.hq-tbl th {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--hq-meta);
  padding: 8px 10px;
  border-bottom: 1.5px solid var(--navy);
  white-space: nowrap;
}
.hq-tbl td { padding: 11px 10px; border-bottom: 1px solid var(--hq-rule); vertical-align: middle; }
.hq-tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hq-tbl .c { text-align: center; }
.hq-tbl .nowrap { white-space: nowrap; }
.hq-tbl .end { text-align: right; }
.hq-tbl td .hq-code { margin-right: 6px; }
.hq-src { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.hq-src .ic { width: 15px; height: 15px; }
.hq-empty { margin: 4px 0 0; color: var(--hq-meta); font-style: italic; font-size: 14px; }
/* Section rows inside a table (Send now / Scheduled for later …). */
.hq-tbl .hq-sec th {
  padding: 18px 10px 6px;
  border-bottom: 1px solid var(--hq-rule);
  color: var(--navy);
  white-space: normal;
}
.hq-tbl tbody:first-of-type .hq-sec th { padding-top: 12px; }
/* Room for the longest label ("Reminder: the morning of") and status ("Awaiting approval"). */
.hq-tbl.is-queue .w-email { width: 200px; }
.hq-tbl.is-queue .w-status { width: 184px; }
.hq-sec__t { font-size: 11px; }
.hq-sec__hint {
  margin-left: 10px;
  font-family: var(--font-serif);
  font-stretch: normal;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--hq-meta);
}
.hq-foot { margin: 12px 0 0; }

/* ---------- events ---------- */

.hq-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 22px; }
.hq-tab {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--navy);
  text-decoration: none;
}
.hq-tab:hover { background: rgba(44, 54, 89, 0.08); }
.hq-tab[aria-current="page"] { background: var(--navy); color: var(--cream); }
/* Emails screen: in-place tabs (role=tab) */
.hq-etabs { margin: 4px 0 18px; }
button.hq-tab[role="tab"] { cursor: pointer; background: transparent; gap: 8px; }
button.hq-tab[role="tab"][aria-selected="true"] { background: var(--navy); color: var(--cream); }
.hq-tab__n { font-family: var(--font-sans); font-size: 12px; font-weight: 700; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: rgba(44, 54, 89, 0.12); text-align: center; }
button.hq-tab[aria-selected="true"] .hq-tab__n { background: rgba(255, 255, 255, 0.2); }
.hq-epanel[hidden] { display: none !important; }
.hq-epanel > * + * { margin-top: 22px; }
.hq-tbl tr.hq-tbl-group th {
  padding-top: 18px;
  font-size: 11px;
  color: var(--red);
  border-bottom: 1px solid var(--hq-rule);
}
.hq-flags { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; }
.hq-woa-ev + .hq-woa-ev { margin-top: 8px; }
.hq-woa-ev > .hq-meta { display: block; font-size: 12px; }

/* ---------- action buttons, system health ---------- */

.hq-actrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hq-flags + .hq-actrow, .hq-flags + .hq-act, .hq-actrow + .hq-act { margin-left: 6px; }
td > .hq-actrow:first-child, td > .hq-act:first-child { margin-left: 0; }
.hq .hq-sel.hq-sel--sm { height: 30px; font-size: 13px; padding: 0 8px; max-width: 160px; }
button.hq-lnk { cursor: pointer; background: transparent; }
button.hq-lnk[disabled] { opacity: 0.45; cursor: not-allowed; }
.hq-chk > .hq-act { margin-left: 10px; }
.hq-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 22px; vertical-align: middle; }
.hq-bars > span { display: block; width: 7px; border-radius: 2px; background: var(--hq-ok); }
.hq-bars > span.is-warn { background: var(--hq-warn-line); }
.hq-bars > span.is-bad { background: var(--red); }

.hq-filters { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.hq-filters label {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hq .hq-sel {
  width: auto;
  height: 36px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 14px;
  padding: 0 12px;
}

/* ---------- chapter pass ---------- */

.hq-pass {
  display: flex;
  border: 2px solid var(--navy);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--red);
  background: var(--cream);
  overflow: hidden;
  margin: 0 6px 6px 0;
}
.hq-pass__code {
  width: 230px;
  flex: none;
  background: var(--navy);
  color: var(--cream);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.hq-pass__label { font-size: 10px; color: rgba(253, 251, 233, 0.75); }
.hq-pass__big {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 66px;
  line-height: 0.95;
  letter-spacing: 0.04em;
  margin: 0;
}
.hq-pass__where { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.hq-pass__where .ic { width: 26px; height: 26px; stroke-width: 1.6; }
.hq-pass__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hq-pass__body h1 { margin: 0; font-size: clamp(28px, 2.2vw + 14px, 40px); line-height: 1.05; }
.hq-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.hq-fld__l { font-size: 9px; color: var(--hq-meta); margin-bottom: 3px; }
.hq-fld__v { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.hq-fld__v.is-none { font-weight: 400; font-style: italic; color: var(--hq-meta); }
.hq-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hq-stub {
  width: 250px;
  flex: none;
  border-left: 2.5px dashed var(--navy);
  background: var(--hq-blue);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hq-stub__h { font-size: 10px; margin: 0 0 2px; }
.hq-stub a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--cream);
  border: 1.5px solid var(--navy);
}
.hq-stub a:hover { background: var(--navy); color: var(--cream); }

/* ---------- add a chapter ---------- */

.hq-check-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px; }
.hq-check-form__field { display: flex; flex-direction: column; gap: 6px; width: 170px; }
.hq-check-form__field label { margin: 0; font-size: 10px; font-weight: 700; }
.hq .hq-code-input {
  height: 46px;
  border: 2px solid var(--navy);
  border-radius: 8px;
  padding: 0 12px;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: #fff;
}
.hq-check-form .button { margin-bottom: 3px; }
.hq-check-form__who { margin-left: auto; text-align: right; }
.hq-form-error { margin: 8px 0 0; color: var(--red); font-size: 14px; font-weight: 700; }

/* The flight path: six stops on a dashed line. */
.hq-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 22px 0 14px;
  padding: 0;
  list-style: none;
}
.hq-path::before {
  content: "";
  position: absolute;
  left: 8.33%;
  right: 8.33%;
  top: 17px;
  border-top: 2.5px dashed var(--navy);
}
.hq-path li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.hq-stop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
}
.hq-stop.is-done { background: var(--hq-ok); color: var(--cream); }
.hq-stop.is-now {
  background: var(--red);
  color: var(--cream);
  box-shadow: 3px 3px 0 var(--navy);
  width: 44px;
  height: 44px;
  margin-top: -4px;
}
.hq-stop.is-now .ic { width: 22px; height: 22px; }
.hq-stop.is-todo { background: var(--cream); color: var(--navy); border: 2px solid var(--navy); }
.hq-stop.is-skip { background: var(--cream); color: var(--hq-meta); border: 2px dashed rgba(44, 54, 89, 0.5); }
.hq-stop__l { font-size: 9px; line-height: 1.3; }
.hq-stop__l.is-now { color: var(--red); }

.hq-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 6px 14px;
  padding: 16px 0;
  border-top: 1px solid var(--hq-rule);
}
.hq-step > .hq-pill { align-self: start; }
.hq-step__title { font-weight: 700; font-size: 16px; }
.hq-step__src { font-size: 9px; color: var(--hq-meta); margin-bottom: 2px; }
.hq-chk { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 4px 0; }
.hq-chk.is-top { align-items: flex-start; }
.hq-chk.is-top input { margin-top: 2px; }
.hq-chk input[type="checkbox"] { width: 18px; height: 18px; margin: 0 1px; flex: none; accent-color: var(--navy); }
.hq-chk label { display: inline; margin: 0; font-family: inherit; font-size: inherit; font-weight: 400; }
.hq-chk-row { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 2px; }
.hq-howto {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1.5px dashed var(--red);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  background: rgba(159, 60, 57, 0.05);
}
.hq-howto code { overflow-wrap: anywhere; }

/* "Run on the laptop" card. */
.hq .card.is-navy {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
  box-shadow: 5px 5px 0 var(--red);
}
.hq .card.is-navy :focus-visible { outline-color: var(--cream); }
.hq-cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--hq-code-bg);
  padding: 12px 14px;
  border-radius: 8px;
}
.hq-cmd code { flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--cream); overflow-wrap: anywhere; }
.hq-cmd__prompt { color: var(--hq-blue); }
.hq-cmd .hq-lnk { color: var(--cream); border-color: rgba(253, 251, 233, 0.6); }
.hq-cmd .hq-lnk:hover { background: var(--cream); color: var(--navy); }
.hq .card.is-navy p { font-size: 14px; line-height: 1.55; margin: 14px 0; }
.hq .card.is-navy p.hq-cmd-after { font-size: 13px; margin: 12px 0 0; color: rgba(253, 251, 233, 0.8); }

/* Error / gate states. */
.hq-alert { max-width: 640px; }
.hq-alert h1 { font-size: 24px; margin: 0 0 8px; }
.hq-alert p { margin: 0 0 12px; }

/* ---------- smaller screens ---------- */

@media (max-width: 1200px) {
  .hq-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hq-tiles.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hq-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .hq-pass { flex-wrap: wrap; }
  .hq-pass__code { width: auto; flex: 0 0 200px; }
  .hq-pass__body { flex-basis: 360px; }
  .hq-stub { width: 100%; flex: 1 1 100%; border-left: 0; border-top: 2.5px dashed var(--navy); flex-direction: row; flex-wrap: wrap; align-items: center; }
  .hq-stub__h { width: 100%; }
}

@media (max-width: 900px) {
  body.hq { display: block; }
  .hq-rail {
    position: static;
    height: auto;
    padding: 14px 16px;
    gap: 14px;
  }
  .hq-rail__top { padding-left: 0; }
  .hq-menu {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    min-height: 44px;
    padding: 0 14px;
    color: var(--cream);
    background: transparent;
    border: 1.5px solid rgba(253, 251, 233, 0.6);
    border-radius: 8px;
    font-family: var(--font-display);
    font-stretch: 125%;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .hq-rail__title { display: none; }
  .hq-find { padding: 0; }
  .hq-nav, .hq-rail__foot { display: none; }
  .hq-rail.is-open .hq-nav, .hq-rail.is-open .hq-rail__foot { display: flex; }
  .hq-rail.is-open .hq-rail__foot { display: block; padding-left: 0; }
  .hq-nav a, .hq-later { min-height: 44px; }
  .hq-main { min-height: 0; padding: 24px 16px 40px; }
  .hq-head__side { align-items: flex-start; }
}

@media (max-width: 640px) {
  .hq-tiles, .hq-tiles.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hq-tile { padding: 12px 14px; }
  .hq-tile__n { font-size: 32px; }
  .hq .card { padding: 16px; }
  .hq-row { flex-wrap: wrap; gap: 8px 12px; }
  .hq-row__main { flex-basis: calc(100% - 80px); }
  /* Drafts card: the status pill and the × share a second line (the pill at the left, any width, the ×
     at the right); titles and meta wrap instead of cutting. */
  .hq-row.is-list { align-items: flex-start; }
  .hq-row.is-list .hq-1line { white-space: normal; overflow: visible; text-overflow: clip; }
  .hq-row.is-list .hq-row__status { width: auto; flex: 0 1 auto; min-width: 0; text-align: left; }
  .hq-row.is-list .hq-rowact { margin-left: auto; }
  .hq-pass__code { flex: 1 1 100%; flex-direction: row; align-items: center; padding: 16px 20px; }
  .hq-pass__big { font-size: 48px; }
  .hq-pass__body { padding: 18px 20px; }
  .hq-check-form__who { margin-left: 0; text-align: left; width: 100%; }
  .hq-path { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .hq-path::before { display: none; }
  .hq-step { grid-template-columns: 34px minmax(0, 1fr); }
  .hq-step > .hq-pill { grid-column: 2; justify-self: start; }
  .hq-drift__row > a, .hq-drift__row > code { margin-left: 0; }
}

@media (max-width: 400px) {
  .hq-tiles, .hq-tiles.is-4 { grid-template-columns: minmax(0, 1fr); }
}

@media (pointer: coarse) {
  .hq-nav a, .hq-later, .hq-lnk { min-height: 44px; }
}

/* ---------- list rows: outbox, send queue, drafts card, hidden ----------
   Every row the same height: titles and meta stay on one line (cut with …,
   full text on hover). The title opens the draft in Action Network, and a
   round × sits in a fixed-width slot, so it lines up down the list. */
.hq-1line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hq-late { color: var(--red); }
div.hq-late { font-weight: 700; font-size: 12px; line-height: 1.3; }

a.hq-tlink { color: var(--navy); text-decoration: none; font-weight: 700; }
a.hq-tlink:hover, a.hq-tlink:focus-visible { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.hq-rowact { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; white-space: nowrap; }
.hq-open {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
a.hq-open:hover, button.hq-open:hover { color: var(--red); text-decoration: underline; }
.hq-open.is-off { color: var(--hq-meta); cursor: default; }
.hq-x {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(44, 54, 89, 0.35);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.hq-x .ic { width: 12px; height: 12px; stroke-width: 2.5; }
.hq-x:hover, .hq-x:focus-visible { background: var(--red); border-color: var(--red); color: var(--cream); }
.hq-x.is-busy { opacity: 0.4; cursor: progress; }
.hq-x.is-blank { visibility: hidden; }
/* A bigger target for fingers without a bigger button. */
@media (pointer: coarse) { .hq-x::after { content: ''; position: absolute; inset: -9px; } }

/* Drafts card on the overview. */
.hq-row.is-list { gap: 12px; padding: 10px 0; min-height: 62px; box-sizing: border-box; }
.hq-row.is-list .hq-row__title { overflow-wrap: normal; }
.hq-row__status { flex: none; width: 118px; text-align: right; }

/* Tables. Fixed layout so long titles cut instead of widening columns. */
.hq-tbl.is-list { table-layout: fixed; }
.hq-tbl.is-list td { height: 58px; box-sizing: border-box; padding-top: 8px; padding-bottom: 8px; }
.hq-tbl.is-list .hq-blk { display: block; }
.hq-tbl .w-due { width: 104px; }
.hq-tbl .w-code { width: 82px; }
.hq-tbl .w-email { width: 170px; }
.hq-tbl .w-status { width: 150px; }
.hq-tbl .w-src { width: 150px; }
.hq-tbl .w-date { width: 92px; }
.hq-tbl .w-why { width: 210px; }
.hq-tbl .w-act { width: 100px; }
.hq-tbl .w-x { width: 52px; }
@media (max-width: 900px) {
  .hq-tbl.is-list { table-layout: auto; min-width: 760px; }
}
@media (pointer: coarse) { .hq-open { min-height: 0; } }

/* A row just dismissed or hidden, while the list redraws. */
tr.is-going, .hq-row.is-going { opacity: 0.3; pointer-events: none; transition: opacity 0.15s; }

/* ---------- Autoresponses ---------- */
.hq-auto__bar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.hq-auto__bar input[type="search"] { flex: 1 1 auto; min-width: 0; }
.hq-auto__notice { margin: 0 0 12px; padding: 9px 12px; border-radius: 8px; background: var(--hq-blue); color: var(--navy); font-size: 14px; }
.hq-auto__notice[hidden], .hq-auto__err[hidden], .hq-auto__hist[hidden] { display: none; }
.hq-auto { border-top: 1px solid var(--hq-rule); }
.hq-auto.is-new { padding: 12px 0; }
.hq-auto.is-off .hq-row__title { opacity: 0.55; }
.hq-auto__head { border-top: 0; }
.hq-auto__head .hq-row__main { display: flex; flex-direction: column; gap: 2px; }
.hq-auto__trig { overflow-wrap: anywhere; color: var(--navy); }
.hq-auto__edit { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 16px; }
.hq-fld { display: flex; flex-direction: column; gap: 4px; }
.hq .hq-fld label { margin: 0; font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: normal; text-transform: none; color: var(--navy); }
.hq-fld input[type="text"], .hq-fld input[type="number"], .hq-fld select, .hq-fld textarea { width: 100%; box-sizing: border-box; }
.hq-fld--check { flex-direction: row; align-items: center; gap: 10px; }
.hq-auto__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hq-auto__btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hq-auto__err { margin: 0; color: var(--red); font-weight: 700; }
.hq-auto__hist { margin-top: 10px; }
@media (max-width: 700px) { .hq-auto__opts { grid-template-columns: 1fr; } .hq-auto__bar { flex-wrap: wrap; } }

/* ---------- Requests (screenRequests) ---------- */
.hq-pill.is-navy { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.rq-tabs { margin: 22px 0 14px; }
.rq-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.rq-split.has-item { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); }
.rq-split > .card { min-width: 0; }
.hq-tbl tr.is-sel td { background: rgba(201, 221, 240, 0.45); }
.hq-tbl tr.is-sel td:first-child { box-shadow: inset 4px 0 0 var(--navy); }
.rq-kind { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; white-space: nowrap; }
.rq-kind .ic { width: 15px; height: 15px; }
.rq-amt { font-weight: 700; }
.rq-over { color: var(--red); font-weight: 900; }
.rq-detail { position: sticky; top: 18px; }
.rq-detail__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rq-detail h2 { margin: 2px 0 4px; font-size: 21px; line-height: 1.2; }
.rq-detail .hq-meta { display: block; margin-bottom: 12px; }
.rq-close { font-size: 18px; line-height: 1; padding: 2px 9px; }
.rq-warn { margin: 0 0 14px; padding: 10px 12px; background: var(--hq-warn-bg); color: var(--hq-warn-ink); border-left: 4px solid var(--hq-warn-line); font-size: 14px; }
.rq-fields { margin-bottom: 6px; }
.rq-h { margin: 16px 0 8px; font-size: 9px; color: var(--hq-meta); display: block; }
.rq-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.rq-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rq-photos a { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--hq-blue); }
.rq-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rq-quote { margin: 0; padding: 10px 12px; border-left: 3px solid var(--hq-rule); background: rgba(44, 54, 89, 0.04); font-size: 14px; white-space: pre-wrap; }
.rq-detail textarea { width: 100%; box-sizing: border-box; font: 15px/1.4 var(--font-serif); border: 1.5px solid rgba(44, 54, 89, 0.55); border-radius: 8px; padding: 9px 11px; }
.rq-detail textarea.is-bad { border-color: var(--red); outline: 2px solid rgba(159, 60, 57, 0.3); }
.rq-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 8px; }
.rq-acts .button { display: inline-flex; align-items: center; gap: 7px; }
.rq-acts .ic { width: 15px; height: 15px; }
.rq-log { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.rq-log li { display: flex; gap: 10px; padding: 6px 0; border-top: 1px solid var(--hq-rule); }
.rq-log li:first-child { border-top: 0; }
.rq-log time { flex: none; width: 96px; color: var(--hq-meta); }
@media (max-width: 1100px) { .rq-split.has-item { grid-template-columns: minmax(0, 1fr); } .rq-detail { position: static; } }
.rq-pay { margin: 4px 0 16px; padding: 14px 16px; background: #fff; border: 2px solid var(--navy); border-radius: 12px; box-shadow: 4px 4px 0 var(--red); }
.rq-pay__l { margin: 0 0 4px; font-size: 10px; color: var(--red); }
.rq-pay__who { margin: 0; font: 700 24px/1.2 var(--font-serif); }
.rq-pay__how { margin: 8px 0 0; }
.rq-pay__line { display: block; margin-top: 6px; font: 700 18px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
/* A request as its own page: the bar above it (back, n of N, Newer/Older). */
.rq-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1.5px solid var(--hq-rule); }
.rq-bar__pos { margin-left: auto; font-size: 13px; }
.rq-bar__steps { display: inline-flex; gap: 8px; }
.rq-step.is-off { opacity: 0.4; pointer-events: none; }
.rq-head h1 { font-size: clamp(26px, 1.4vw + 16px, 38px); }
.rq-page .rq-pay { margin: 0 6px 0 0; }
.rq-page .rq-quote { margin: 0; }
.hq-tbl tr.rq-row { cursor: pointer; }
.hq-tbl tr.rq-row:hover td { background: rgba(201, 221, 240, 0.35); }
/* Support requests: the ship-to box, their answers; a chapter's Money card. */
.rq-pay__addr { display: block; font: 700 16px/1.45 var(--font-serif); }
.rq-answers { display: grid; gap: 12px; margin-bottom: 6px; }
.rq-ans__v { white-space: pre-wrap; font-weight: 600; }
.rq-periods { margin: 0 0 14px; flex-wrap: wrap; }
.rq-money { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 10px; }
.rq-money__n { font: 900 22px/1.15 var(--font-display); font-stretch: 125%; margin: 2px 0; }
.rq-money__kinds { margin: 0 0 8px; }
.rq-money__list { margin-top: 4px; }
@media (max-width: 600px) { .rq-money { grid-template-columns: 1fr; } }
.hq-tab[aria-pressed="true"] { background: var(--navy); color: var(--cream); }
button.hq-tab { cursor: pointer; }
button.hq-tab:not([aria-pressed="true"]) { background: transparent; color: var(--navy); }

/* Settings: shared logins. */
.sl-hq-now { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.sl-hq-pw { font: 700 18px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 6px 10px; background: #fff; border: 1.5px solid var(--hq-rule); border-radius: 8px; overflow-wrap: anywhere; }
.sl-hq-change { margin-top: 14px; }
.sl-hq-row { display: flex; gap: 10px; }
.sl-hq-row input { flex: 1; min-width: 0; }
.sl-hq-addrow { margin: 0 0 10px; }
.sl-hq-item b { display: block; }
.sl-hq-edit { margin: 4px 0 12px; padding: 14px 16px; border: 2px solid var(--navy); border-radius: 12px; background: #fff; box-shadow: 4px 4px 0 var(--hq-blue); }
.sl-hq-edit .hq-fld { margin-bottom: 10px; }
.sl-hq-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 600px) { .sl-hq-2 { grid-template-columns: 1fr; } }

/* ---------- Chapter site screen: what chapter leads see ---------- */

.hq-choices { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.hq .hq-choice {
  display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 10px 12px; cursor: pointer;
  border: 2px solid var(--hq-rule); border-radius: 10px; background: #fff;
  font-family: inherit; font-size: inherit; font-weight: 400; letter-spacing: normal; text-transform: none; color: inherit;
}
.hq-choice input { margin-top: 4px; }
.hq-choice__t { display: flex; flex-direction: column; gap: 2px; }
.hq-choice:hover { border-color: var(--navy); }
.hq-choice:has(input:checked) { border-color: var(--navy); background: var(--hq-blue); }
.hq-choice:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.hq-choices:disabled .hq-choice { cursor: default; }
.hq-bannerrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 4px; }
.hq-bannerrow input[type="text"] { flex: 1 1 280px; min-width: 0; }
.hq-sitebanner {
  margin: 10px 0 4px; padding: 10px 16px; background: var(--cream); color: var(--navy);
  border: 2px solid var(--navy); border-radius: 10px; box-shadow: 3px 3px 0 var(--red); font-size: 15px; line-height: 1.45;
}
.hq-sitebanner.is-off { opacity: 0.45; border-style: dashed; box-shadow: none; }
.hq-tools-tbl td { vertical-align: top; }
.hq-tool-slug { display: block; margin-top: 2px; }
.hq-tool-end { white-space: nowrap; }
.hq-tool-end .hq-meta { margin-right: 8px; }
.hq .hq-reset { min-height: 28px; height: 28px; padding: 0 12px; font-size: 12px; }
.hq-reset[hidden] { display: none; }

/* ---------- Wall of Shame (#/shame) ----------
   Don Globerto's pixel brick wall fills the main column. tool.js cuts a 40px
   tile from his sprite and sets it as the wall; it's anchored bottom right so
   it lines up with his canvas (one of his pixels = 5px, his canvas 360×300). */
.hq-main.is-shame { padding: 0; display: flex; flex-direction: column; align-self: stretch; }
.hq-main.is-shame .hq-view { max-width: none; gap: 0; flex: 1; }
body.is-shame-screen #globert-me, body.is-shame-screen #globert-float, body.is-shame-screen #globert-balloon { display: none !important; }
body.is-shame-screen [data-globert-reserve] { padding-bottom: 0 !important; }   /* no room kept for HQ's Globert here */
.sh-wall {
  --sh-ink: #140d10; --sh-paper: #efe3c4; --sh-gold: #d9a441; --sh-chalk: #e9e2d0; --sh-floor: #262230;
  --sh-px: "Silkscreen", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sh-pxh: "Press Start 2P", "Silkscreen", ui-monospace, monospace;   /* headings: Silkscreen's bold W reads oddly */
  position: relative; flex: 1; min-height: 100vh; padding: 40px 40px 0; display: flex; flex-direction: column;
  /* Two layers, set by tool.js: the floor (a 35px band at the bottom) over his brick tile. */
  background-color: #4a282a; background-repeat: no-repeat, repeat; background-size: auto, 40px 40px; background-position: 0 0, right 0 bottom 20px; image-rendering: pixelated;
  color: var(--sh-chalk);
}
.sh-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.sh-kick { margin: 0 0 10px; font-family: var(--sh-px); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #d6b9a4; }
.sh-title { margin: 0; font-family: var(--sh-pxh); font-weight: 400; font-size: 46px; line-height: 1.1; letter-spacing: 2px; text-transform: uppercase; color: var(--sh-chalk); text-shadow: 5px 5px 0 var(--sh-ink); }
.sh-sub { margin: 12px 0 0; font-family: var(--sh-px); font-size: 13px; text-transform: uppercase; color: #d6b9a4; }
.sh-pxbtn {
  font-family: var(--sh-px); font-size: 14px; text-transform: uppercase; background: var(--sh-gold); color: var(--sh-ink); border: 0; padding: 10px 14px; cursor: pointer;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.25), 5px 5px 0 var(--sh-ink);
}
.sh-pxbtn:hover { filter: brightness(1.08); }
.sh-pxbtn:focus-visible, .sh-pxb:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sh-pxbtn:disabled { opacity: 0.7; cursor: progress; }
.sh-pxb { font-family: var(--sh-px); font-size: 11px; text-transform: uppercase; background: var(--sh-ink); color: var(--sh-chalk); border: 0; padding: 4px 7px; cursor: pointer; display: inline-block; }
.sh-pxb.is-x { padding: 4px 8px; }
.sh-pxb:disabled { opacity: 0.6; }

.sh-posters { list-style: none; margin: 40px 0 0; padding: 15px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 44px 30px; max-width: 1240px; }
.sh-poster { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--sh-paper); color: var(--sh-ink); padding: 16px 14px 10px; box-shadow: 0 0 0 5px var(--sh-ink), 10px 10px 0 rgba(0, 0, 0, 0.4); }
.sh-poster::before { content: ""; position: absolute; top: -15px; left: 50%; margin-left: -10px; width: 20px; height: 20px; background: var(--red); box-shadow: 0 0 0 5px var(--sh-ink); }
.sh-poster:nth-child(3n+2) { transform: rotate(0.7deg); }
.sh-poster:nth-child(3n) { transform: rotate(-0.7deg); }
.sh-poster p { margin: 0; }
.sh-poster__h { font-family: var(--sh-pxh); font-size: 20px; letter-spacing: 1px; color: var(--red); margin-bottom: 6px !important; }
.sh-poster .sh-poster__for { font-family: var(--sh-px); font-size: 10px; text-transform: uppercase; margin: 2px 0 10px; }
.sh-mug { width: 100%; max-width: 160px; aspect-ratio: 1; background: #fff; box-shadow: 0 0 0 5px var(--sh-ink); display: grid; place-items: center; overflow: hidden; }
.sh-mug img { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
.sh-mug.is-photo img { object-fit: cover; }
.sh-mug__none { font-family: var(--sh-px); font-size: 56px; color: rgba(20, 13, 16, 0.3); }
.sh-poster .sh-poster__name { font-family: var(--sh-px); font-weight: 700; font-size: 15px; text-transform: uppercase; margin: 12px 0 4px; display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.sh-poster__code { font-size: 10px; background: var(--sh-ink); color: var(--sh-chalk); padding: 2px 5px; }
.sh-poster__what { font-family: var(--font-serif); font-size: 14px; line-height: 1.4; }
.sh-poster .sh-poster__bounty { font-family: var(--sh-px); font-size: 11px; text-transform: uppercase; background: var(--sh-ink); color: var(--sh-gold); padding: 5px 6px; margin: 10px 0 6px; align-self: stretch; }
.sh-poster__by { font-family: var(--font-sans); font-size: 11px; color: rgba(20, 13, 16, 0.6); }
.sh-poster__acts { display: flex; gap: 8px; margin-top: 8px; }
.sh-poster.is-out { filter: saturate(0.4) brightness(0.88); }
.sh-poster__stamp { position: absolute; left: 6px; right: 6px; top: 34%; font-family: var(--sh-px); font-weight: 700; font-size: 30px; color: #3ad07a; text-shadow: 4px 4px 0 var(--sh-ink); transform: rotate(-12deg); pointer-events: none; }

/* Him on the floor, bottom right; the bubble above him */
.sh-floor-row { position: relative; margin: 140px -40px 0; height: 300px; flex: none; z-index: 1; }
.sh-don { position: absolute; right: 0; bottom: 0; width: 360px; height: 300px; image-rendering: pixelated; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sh-don:focus-visible { outline: 4px solid var(--sh-gold); outline-offset: -4px; }
.sh-pop {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 420px; margin: 0 auto; background: var(--cream); color: var(--sh-ink); font-family: var(--sh-px); font-size: 13px; line-height: 1.5; padding: 10px 14px;
  box-shadow: 0 0 0 5px var(--sh-ink), 8px 8px 0 rgba(0, 0, 0, 0.4); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.sh-pop b { display: block; color: var(--red); font-size: 11px; text-transform: uppercase; }
.sh-pop.is-on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sh-pop { transition: none; } }
.sh-poster { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sh-poster button { cursor: pointer; }
.sh-say {
  position: absolute; z-index: 2; right: 60px; bottom: 300px; width: 300px; background: var(--cream); color: var(--sh-ink); font-family: var(--sh-px); font-size: 13px; line-height: 1.5; padding: 12px 16px;
  box-shadow: 0 -5px 0 var(--sh-ink), 0 5px 0 var(--sh-ink), -5px 0 0 var(--sh-ink), 5px 0 0 var(--sh-ink), 10px 10px 0 rgba(0, 0, 0, 0.35);
}
.sh-say b { display: block; color: var(--red); font-size: 11px; text-transform: uppercase; margin-bottom: 4px; }
.sh-say::after { content: ""; position: absolute; left: 150px; bottom: -20px; width: 10px; height: 15px; background: var(--cream); box-shadow: 0 5px 0 var(--sh-ink), -5px 0 0 var(--sh-ink), 5px 0 0 var(--sh-ink); }

/* Put up a poster */
.sh-dlg { border: 0; padding: 0; width: min(560px, calc(100vw - 32px)); background: #efe3c4; color: #140d10; box-shadow: 0 0 0 5px #140d10, 12px 12px 0 rgba(0, 0, 0, 0.45); }
.sh-dlg::backdrop { background: rgba(20, 13, 16, 0.6); }
.sh-form { display: grid; gap: 12px; padding: 20px; }
.sh-form h2 { margin: 0; font-family: var(--sh-pxh, "Press Start 2P", monospace); font-weight: 400; font-size: 18px; line-height: 1.3; text-transform: uppercase; color: var(--red); }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sh-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sh-f label, .sh-lbl { font-family: var(--sh-px); font-size: 11px; text-transform: uppercase; }
.sh-f input[type=text], .sh-f select, .sh-f textarea { width: 100%; padding: 8px 10px; min-height: 40px; border: 0; box-shadow: inset 0 0 0 3px #140d10; border-radius: 0; font: inherit; font-family: var(--font-serif); font-size: 14px; background: #fff; color: #140d10; }
.sh-f textarea { resize: vertical; }
.sh-photo-row { display: flex; gap: 8px; align-items: center; }
.sh-photo-row label.sh-pxb { font-size: 11px; padding: 8px 10px; }
.sh-photo-row .sh-pxb[hidden] { display: none; }
.sh-prev { width: 120px; aspect-ratio: 1; box-shadow: 0 0 0 4px #140d10; background: #fff; margin-top: 6px; }
.sh-prev[hidden] { display: none; }
.sh-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-fine { margin: 2px 0 0; font-family: var(--font-sans); font-size: 12px; color: rgba(20, 13, 16, 0.7); }
.sh-err { margin: 0; color: var(--red); font-weight: 700; font-size: 13px; }
.sh-err[hidden] { display: none; }
.sh-dlg__acts { display: flex; justify-content: flex-end; gap: 12px; align-items: center; }

/* Wide screens: the Don gets his own column beside the posters and stays in
   the bottom-right corner of the window while the posters scroll. The wall's
   bricks and floor are fixed to the window too (background-attachment), so
   they keep lining up with his canvas. */
@media (min-width: 1100px) {
  .sh-wall { padding-bottom: 80px; background-attachment: fixed, fixed; }
  .sh-posters { margin-right: 400px; }
  .sh-floor-row { position: fixed; right: 0; bottom: 0; width: 400px; height: 300px; margin: 0; }
  .sh-say { right: 40px; width: 320px; }
}
@media (max-width: 760px) {
  .sh-wall { padding: 24px 16px 0; }
  .sh-title { font-size: 30px; }
  .sh-floor-row { margin: 160px -16px 0; }
  .sh-say { right: 16px; left: 16px; width: auto; bottom: 300px; }
}

/* ---------- link page (#/links) ---------- */

.hq-tiles.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hq-lk-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hq-lk-bar .hq-row__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hq-lk-bar.is-dirty { background: var(--hq-warn-bg); border-color: var(--hq-warn-line); color: var(--hq-warn-ink); }
.hq-lk-bar.is-dirty .hq-meta { color: var(--hq-warn-ink); }
.hq-lk-num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hq-lk-num.is-accent { border-color: #B8862F; background: #F6E7C4; }
.hq-lk-lock { flex: none; width: 40px; display: inline-grid; place-items: center; color: var(--hq-ok); }
.hq-lk-lock .ic { width: 20px; height: 20px; }
.hq-lk-mvs { display: inline-flex; gap: 4px; flex: none; }
.hq-lk-mv {
  width: 32px;
  height: 32px;
  border: 2px solid var(--navy);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.hq-lk-mv:hover:not(:disabled) { background: var(--hq-blue); }
.hq-lk-mv:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.hq-lk-mv:disabled { opacity: 0.35; cursor: default; }
.hq-lk-frame {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 760px;
  margin: 0 auto;
  border: 2px solid var(--navy);
  border-radius: 14px;
  background: #24305E;
}
@media (max-width: 900px) { .hq-tiles.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .hq-tiles.is-3 { grid-template-columns: minmax(0, 1fr); } .hq-lk-frame { height: 640px; } }
/* Three tiles in the narrow column: smaller numbers so they fit. */
.hq-lk-tiles { gap: 10px; margin-bottom: 12px; }
.hq-lk-tiles .hq-tile { padding: 12px; }
.hq-lk-tiles .hq-tile__n { font-size: 28px; }
/* Link groups: a plain heading row over each group's links. */
.hq-lk-ghead { border-top: 2px solid var(--navy); margin-top: 10px; padding-top: 10px; align-items: center; }
.hq-lk-gname { margin: 0; flex: 1; min-width: 0; font-size: 17px; line-height: 1.3; }
.hq-lk-empty { margin: 4px 0 8px; }
.hq-lk-adds { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.hq-lk-soon { color: var(--hq-warn-ink); }

/* ---------- People (#/people): who can sign in to cnlhq.org ---------- */
.hq-pp-bar { flex-wrap: wrap; }
.hq-pp-bar input[type="search"] { flex: 1 1 220px; }
.hq-pp-check { display: inline-flex; }
.hq .hq-pp-check label { margin: 0; font-family: inherit; font-size: 14px; font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--navy); }
.hq-pp-tbl { min-width: 760px; }
.hq-pp-who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.hq-pp-id { min-width: 0; max-width: 260px; }
.hq-pp-av {
  width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--hq-blue); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.hq-pp-removed td { background: rgba(44, 54, 89, 0.05); }
.hq-pp-removed .hq-pp-id, .hq-pp-removed .hq-pp-av { opacity: 0.55; }
.hq-pp-removed .hq-pp-id b { text-decoration: line-through; }
.hq-tbl tr.hq-pp-editrow td { background: var(--cream); padding: 6px 16px 4px; }
.hq-pp-form { max-width: 640px; }
.hq-pp-h3 { margin: 0; font-size: 18px; }
.hq-pp-legend { padding: 0; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--navy); }
.hq-pp-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hq-pp-facts dt { font-size: 12px; color: var(--hq-meta); }
.hq-pp-facts dd { margin: 2px 0 0; font-weight: 700; }
.hq-pp-gap { flex: 1 1 auto; }
.hq .hq-pp-rm { color: var(--red); border-color: var(--red); }
.hq-pp-acts { display: flex; gap: 8px; }
.hq-pp-empty { margin: 12px 0 0; }
.hq-pp-empty[hidden], .hq-fld[hidden] { display: none; }
.hq-chips {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px; min-height: 46px; box-sizing: border-box;
  border: 2px solid var(--navy); border-radius: 8px; background: #fff;
}
.hq-chips:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.hq-chips__list { display: contents; }
.hq-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 6px; background: var(--navy); color: var(--cream); font-size: 14px; }
.hq-chip__x { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--cream); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hq-chip__x:hover { background: rgba(253, 251, 233, 0.2); }
.hq-chip__x .ic { width: 14px; height: 14px; }
.hq .hq-chips input[type="text"] { flex: 1 1 140px; min-width: 0; border: 0; outline: 0; padding: 6px; background: transparent; box-shadow: none; }
.hq .hq-pp-bar input[type="search"] { width: auto; }
.hq .hq-pp-bar select { width: auto; flex: 0 1 180px; }
.hq-pp-roles { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.hq-pp-legend { grid-column: 1 / -1; }
/* ---------- Services (#/services) ---------- */
.svc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 14px; }
.svc-bar__end { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.svc-card { padding-top: 6px; }
.svc-tbl { min-width: 960px; }
.svc-tbl td:last-child, .svc-tbl th:last-child { width: 1%; white-space: nowrap; }
.svc-tbl td { vertical-align: top; }
.svc-tbl tr.is-off td { color: var(--hq-meta); }
.svc-tbl tfoot td { border-bottom: 0; border-top: 1.5px solid var(--navy); font-weight: 700; }
.svc-c-name { min-width: 200px; max-width: 260px; }
.svc-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.svc-name a, .svc-name b { font-weight: 700; color: var(--navy); }
.svc-tbl tr.is-off .svc-name a, .svc-tbl tr.is-off .svc-name b { color: var(--hq-meta); }
.svc-for { margin-top: 2px; font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-notes { margin-top: 2px; font-size: 12.5px; font-style: italic; white-space: pre-line; }
.svc-user { font: 600 12.5px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; }
.svc-c-pw { min-width: 90px; }
.svc-pw { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.svc-pw__val { font: 700 13px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 2px 6px; background: #fff; border: 1.5px solid var(--hq-rule); border-radius: 6px; overflow-wrap: anywhere; }
.svc-plan { display: block; font-size: 12px; color: var(--hq-meta); white-space: normal; }
.svc-due { display: block; font-size: 12px; color: var(--hq-meta); }
.svc-due.is-soon { color: var(--red); font-weight: 700; }
.svc-sort { all: unset; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.svc-sort:hover, .svc-sort.is-on { color: var(--navy); }
.svc-sort:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.svc-check { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; }
.svc-off { margin: 0; color: var(--hq-meta); }
.svc-warn { margin: 0 0 16px; padding: 10px 14px; border: 1.5px solid var(--hq-warn-line); background: var(--hq-warn-bg); color: var(--hq-warn-ink); border-radius: 10px; }
.svc-row { cursor: pointer; }
.svc-row:hover td, .svc-row.is-open td { background: rgba(44, 54, 89, 0.05); }
.svc-row.is-open td { border-bottom-color: transparent; }
.svc-tog { all: unset; cursor: pointer; font-weight: 700; color: var(--navy); }
.svc-tog:hover { text-decoration: underline; }
.svc-tog:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.svc-tbl tr.is-off .svc-tog { color: var(--hq-meta); }
.svc-chev { color: var(--hq-meta); font-size: 14px; }
.svc-x > td { padding-top: 0; background: rgba(44, 54, 89, 0.05); }
.svc-x__in { position: sticky; left: 0; white-space: normal; max-width: calc(100vw - 72px); box-sizing: border-box; }
.svc-more { padding: 6px 0 4px; }
.svc-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 24px; margin: 0 0 12px; }
.svc-dl__i { min-width: 0; }
.svc-dl__i.is-wide { grid-column: 1 / -1; }
.svc-dl dt { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--hq-meta); margin: 0 0 2px; }
.svc-dl dd { margin: 0; overflow-wrap: anywhere; }
.svc-dl .svc-notes { font-style: normal; font-size: 14px; margin: 0; }
.svc-edit__h { margin: 0 0 10px; font-size: 17px; }
.svc-dl.is-edit { gap: 10px 16px; }
.svc-dl__i.is-half { grid-column: span 2; }
.svc-dl.is-edit label:not(.svc-check) { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--hq-meta); margin: 0 0 3px; }
.svc-dl.is-edit input:not([type="checkbox"]), .svc-dl.is-edit select, .svc-dl.is-edit textarea { width: 100%; box-sizing: border-box; font: 400 14px/1.3 var(--font-sans); color: var(--ink); background: #fff; border: 1px solid rgba(44, 54, 89, 0.35); border-radius: 6px; padding: 5px 8px; height: 32px; }
.svc-dl.is-edit textarea { height: auto; min-height: 52px; resize: vertical; }
.svc-dl.is-edit input:focus, .svc-dl.is-edit select:focus, .svc-dl.is-edit textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.svc-clear { margin: 4px 0 0; font-size: 12.5px; gap: 6px; color: var(--hq-meta); }
.svc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 4px; }
.svc-acts .button { padding: 6px 16px; font-size: 14px; }
.svc-del { margin-left: auto; color: var(--red); }
@media (max-width: 600px) { .svc-dl__i.is-half { grid-column: 1 / -1; } }
/* site.css styles text fields but not password ones; match them here. */

/* ---------- Video (video.js; docs/VIDEO-PLAN.md) ---------- */
.hq-tiles.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hq-vd-filters { align-items: center; margin-bottom: 8px; }
.hq-vd-arch { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; font-size: 14px; color: var(--navy); }
.hq-vd-arch input { width: auto; }
.hq-tbl .hq-vd-next { max-width: 280px; }
.hq-vd-new { margin-bottom: 22px; padding: 18px 20px; }
.hq-vd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 4px 0 14px; align-items: start; }
.hq-vd-grid > .is-wide { grid-column: 1 / -1; }
.hq-vd-grid textarea, .hq-vd-rows textarea { min-height: 3.2rem; }
.hq-vd-note { margin: 0 0 14px; color: var(--hq-meta, var(--muted)); font-style: italic; font-size: 14px; max-width: 72ch; }
.hq-vd-stages { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 10px; }
.hq-vd-chip { font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--navy); background: transparent; color: var(--navy); cursor: pointer; box-shadow: none; }
.hq-vd-chip:hover:not(:disabled) { background: rgba(44, 54, 89, 0.08); }
.hq-vd-chip[aria-current] { background: var(--navy); color: var(--cream); cursor: default; opacity: 1; }
.hq-vd-chip:disabled:not([aria-current]) { cursor: default; opacity: 0.6; }
.hq-vd-next-line { margin: 0 0 16px; font-size: 15px; }
.hq-vd-banner { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--hq-rule); background: var(--hq-blue); color: var(--navy); font-size: 14px; max-width: 900px; }
.hq-vd-banner.is-warn { background: var(--hq-warn-bg); border-color: var(--hq-warn-line); }
.hq-tbl tr.is-pinned td { background: rgba(201, 221, 240, 0.35); }
.hq-tbl tr.is-pinned { border-bottom: 2px solid var(--hq-rule); }
.hq-vd-more { margin: 14px 0 0; border-top: 1px dashed var(--hq-rule); padding-top: 10px; }
.hq-vd-more summary { cursor: pointer; font-size: 14px; color: var(--navy); font-weight: 700; margin-bottom: 10px; }
.hq-vd-addplat { width: auto; max-width: 320px; margin-top: 10px; font-size: 14px; }
.hq-vd-auto { list-style: none; margin: 8px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--hq-rule); display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.hq-vd-auto li { display: flex; align-items: baseline; gap: 8px; }
.hq-vd-mark { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.hq-vd-auto .is-ok .hq-vd-mark { background: var(--hq-ok); color: #fff; }
.hq-vd-auto .is-warn .hq-vd-mark { background: var(--hq-warn-bg); color: var(--hq-warn-ink); border: 1px solid var(--hq-warn-line); }
.hq-vd-auto .is-none { color: var(--hq-meta, var(--muted)); }
.hq-vd-auto .is-none .hq-vd-mark { border: 1px dashed var(--hq-rule); }
.hq-vd-claude { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--hq-rule); background: rgba(201, 221, 240, 0.25); font-size: 14px; max-width: 80ch; }
.hq-vd-claude[hidden] { display: none; }
.hq-vd-claude.is-ok { border-left-color: var(--hq-ok); }
.hq-vd-claude.is-warn { border-left-color: var(--hq-warn-line); background: rgba(243, 223, 168, 0.35); }
.hq-vd-claudeline { font-size: 13px; color: var(--hq-meta, var(--muted)); }
.hq-vd-timeline { margin: -4px 0 10px; }
.hq-vd-approve { display: inline-flex; gap: 8px; margin-left: 12px; vertical-align: middle; flex-wrap: wrap; }
.hq-vd-approve .button { font-size: 14px; padding: 6px 14px; }
.hq-vd-sendback { margin-top: 10px; max-width: 560px; }
.hq-vd-sendback[hidden] { display: none; }
.hq-vd-final { margin: 14px 0 6px; }
.hq-vd-pick-file { cursor: pointer; font-size: 14px; }
.hq-vd-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.hq-vd-jump .hq-tab { background: transparent; cursor: pointer; font-size: 13px; padding: 5px 10px; }
.hq-vd-cards { display: flex; flex-direction: column; gap: 22px; padding-bottom: 80px; }
.hq-vd-cards > .card { scroll-margin-top: 16px; }
.hq-vd-checks { list-style: none; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--hq-rule); display: flex; flex-direction: column; gap: 6px; }
.hq-vd-checks li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.hq-vd-checks input { width: auto; margin-top: 3px; }
.hq-vd-rows { margin: 0 0 12px; }
.hq-vd-tbl td { vertical-align: top; padding: 6px; }
.hq-vd-tbl input, .hq-vd-tbl select, .hq-vd-tbl textarea { font-size: 14px; padding: 0.4rem 0.5rem; }
.hq-vd-tbl .is-xs { width: 70px; } .hq-vd-tbl .is-s { width: 130px; } .hq-vd-tbl .is-m { min-width: 170px; } .hq-vd-tbl .is-l { min-width: 300px; }
.hq-vd-tbl .is-act { width: 56px; white-space: nowrap; text-align: right; }
.hq-vd-tbl .is-act .hq-lnk { padding: 2px 6px; font-size: 16px; }
.hq-vd-add { margin-top: 8px; font-size: 14px; }
.hq-vd-count { display: block; margin: 4px 0 0; font-size: 13px; color: var(--hq-meta, var(--muted)); font-variant-numeric: tabular-nums; }
.hq-vd-count.is-over { color: var(--red); font-weight: 700; }
.hq-vd-cards .hq-h3, .hq-vd-dialog .hq-h3 { font-size: 16px; margin: 0 0 8px; color: var(--navy); }
/* Claude thinking: three dots that pulse */
.hq-vd-thinking { display: inline-flex; align-items: baseline; gap: 2px; color: var(--navy); font-style: italic; }
.hq-vd-dots { display: inline-flex; gap: 3px; margin-left: 3px; }
.hq-vd-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.25; animation: hq-vd-dot 1.2s infinite ease-in-out; }
.hq-vd-dots i:nth-child(2) { animation-delay: 0.2s; } .hq-vd-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes hq-vd-dot { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hq-vd-dots i { animation: none; opacity: 0.6; } }
.hq-vd-claude.is-thinking { border-left-color: var(--navy); background: rgba(201, 221, 240, 0.4); }
.hq-vd-claude.is-err { border-left-color: var(--hq-warn-line); background: rgba(243, 223, 168, 0.25); }
.hq-vd-claude.is-none { border-left-style: dashed; }
/* Keep in mind as you write */
.hq-vd-think { margin: 0 0 16px; padding: 10px 14px; border: 1.5px solid var(--hq-rule); border-radius: 10px; background: #fff; max-width: 900px; }
.hq-vd-think summary { cursor: pointer; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 6px; }
.hq-vd-think ul { margin: 10px 0 2px; padding-left: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 26px; font-size: 14px; }
@media (max-width: 760px) { .hq-vd-think ul { grid-template-columns: 1fr; } }
/* The script table */
.hq-vd-script .hq-vd-num { font-weight: 700; color: var(--navy); width: 28px; padding-top: 12px; }
.hq-vd-script td.is-l { min-width: 240px; } .hq-vd-script td.is-m { min-width: 150px; }
.hq-vd-script .is-on { min-width: 160px; } .hq-vd-script .is-fc { width: 70px; } .hq-vd-script .is-cl { min-width: 180px; max-width: 260px; }
.hq-vd-script .is-src { width: 96px; max-width: 110px; } .hq-vd-script .is-ok { width: 84px; }
.hq-vd-script td.is-cl, .hq-vd-script td.is-src, .hq-vd-script td.is-ok { font-size: 13px; padding-top: 10px; }
.hq-vd-delivery { margin-top: 6px; }
.hq-vd-script td.is-on label { white-space: nowrap; }
/* Lines grow with their words where the browser can (and always show in full on a locked video) */
.hq-vd-script textarea { field-sizing: content; min-height: 4.4em; max-height: 18em; }
.hq-vd-script textarea:disabled { max-height: none; resize: none; }
.hq-vd-ck { display: flex; align-items: center; gap: 6px; margin: 4px 0; font-size: 14px; }
.hq-vd-ck input, .hq-vd-script td.is-ok input, .hq-vd-script .hq-fld--check input, .hq-vd-shots input[type="checkbox"] { width: auto; }
.hq-vd-script .hq-fld--check { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 14px; }
/* Small text actions inside the tables: plain links, not pills */
.hq-vd-tlink { display: inline; border: 0; padding: 0; margin: 2px 0 0; background: none; box-shadow: none; font: inherit; font-size: 12px; font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }
.hq-vd-tlink:hover { color: var(--red); background: none; }
.hq-vd-gsum { display: block; font-size: 13px; padding-left: 22px; margin: 0 0 2px; }
.hq-vd-gsum[hidden] { display: none; }
.hq-vd-autotag { display: inline-block; margin-left: 2px; padding: 0 5px; border-radius: 999px; border: 1px dashed var(--hq-rule); font-size: 11px; color: var(--hq-meta, var(--muted)); }
.hq-vd-autotag[hidden] { display: none; }
.hq-vd-fcnote { margin: 4px 0 2px; line-height: 1.35; }
.hq-vd-src { display: flex; align-items: center; gap: 4px; font-weight: 700; color: var(--navy); max-width: 100%; }
.hq-vd-src .ic { width: 18px; height: 18px; flex: 0 0 18px; }
.hq-vd-srct { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-size: 12px; }
.hq-vd-script td.is-src .hq-vd-tlink { display: block; }
.hq-vd-who { display: inline-block; margin-left: 4px; }
.hq-vd-who.is-warn { color: var(--hq-warn-ink); background: var(--hq-warn-bg); padding: 0 4px; border-radius: 4px; }
.hq-vd-who.is-warn::after { content: ' · changed'; font-size: 11px; }
.hq-vd-said { margin-top: 2px; font-size: 13px; }
.hq-vd-stock { font-size: 14px; margin: 6px 0 12px; }
.hq-vd-crew { border: 0; padding: 0; margin: 4px 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.hq-vd-crew legend { font-weight: 700; color: var(--navy); font-size: 14px; margin-bottom: 6px; padding: 0; }
.hq-vd-crewpick { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border: 1.5px solid var(--hq-rule); border-radius: 999px; font-size: 14px; background: #fff; }
.hq-vd-crewpick:has(input:checked) { border-color: var(--navy); background: rgba(201, 221, 240, 0.5); }
.hq-vd-crewpick input { width: auto; margin: 0; }
/* A line's graphic, in a popup */
.hq-vd-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 18px 22px 20px; border: 1.5px solid var(--navy); border-radius: 12px; background: var(--cream); color: var(--navy); }
.hq-vd-dialog::backdrop { background: rgba(44, 54, 89, 0.45); }
.hq-vd-dlg-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hq-vd-dlg-h .hq-h2 { margin: 0 0 6px; }
.hq-vd-dlg-x { font-size: 24px; line-height: 1; padding: 0 4px; }
.hq-vd-dlg-vo { margin: 0 0 14px; font-style: italic; color: var(--hq-meta, var(--muted)); max-width: 70ch; }
.hq-vd-fill { margin: -4px 0 14px; align-items: center; }
.hq-vd-dlg-btns { margin-top: 14px; align-items: center; }
@media (max-width: 640px) { .hq-vd-dialog { padding: 14px 16px 16px; } }
.hq-vd-res td { padding: 6px 4px; vertical-align: top; }
.hq-vd-res input { font-size: 14px; padding: 0.35rem 0.4rem; }
.hq-vd-res .is-n { width: 92px; } .hq-vd-res .is-p { width: 72px; } .hq-vd-res .is-url { min-width: 180px; } .hq-vd-res .is-d { width: 150px; }
.hq-vd-hist { list-style: none; margin: 0 0 10px; padding: 0; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.hq-vd-pick { max-width: 420px; margin: 4px 0 18px; }
#hq-h-vd-pipe, #hq-h-vd-plat { margin: 0; }
.hq-vd-sum .card { margin-bottom: 22px; }
.hq-vd-bar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-start; align-items: center; gap: 14px; margin-top: -60px; padding: 12px 16px; background: var(--cream); border: 1.5px solid var(--navy); border-radius: 10px; box-shadow: 0 -2px 0 rgba(44, 54, 89, 0.06); }
.hq-vd-bar[hidden] { display: none; }
.hq-vd-bar.is-dirty { background: var(--hq-warn-bg); border-color: var(--hq-warn-line); }
.hq-vd-barmsg { font-size: 14px; color: var(--navy); }
.hq-vd-keys { margin-left: auto; padding-right: 110px; font-size: 13px; }
@media (max-width: 760px) { .hq-vd-keys { display: none; } }
@media (max-width: 760px) {
  .hq-vd-grid { grid-template-columns: 1fr; }
  .hq-tiles.is-3 { grid-template-columns: 1fr; }
}
