/* Haechy console styles. Served at /static/console.css; fonts at /static/fonts/*.
   The token block below is a copy of brand/tokens.css (keep them in sync). No remote imports. */

@font-face {
  font-family: "Young Serif";
  src: url("fonts/young-serif-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* ---- Colour: base ---- */
  --hc-stone: #F2F3EF;        /* page background: cool granite paper */
  --hc-stone-deep: #E6E9E3;   /* recessed areas, table heads, code wells */
  --hc-surface: #FFFFFF;      /* panels, inputs */
  --hc-ink: #17231F;          /* body text, headings (pine ink) 14.5:1 on stone */
  --hc-ink-muted: #4E5B56;    /* secondary text 6.4:1 on stone */
  --hc-ink-faint: #6B7671;    /* hints, timestamps 4.7:1 on white (AA body) */
  --hc-line: #D5D9D2;         /* hairlines, dividers (decorative) */
  --hc-line-strong: #86918A;  /* input borders: 3:1 against white (non-text AA) */

  /* ---- Colour: brand ---- */
  --hc-jade: #0E5A4F;         /* primary actions, links, the mark. 8.1:1 on white */
  --hc-jade-strong: #0A463D;  /* hover/pressed */
  --hc-jade-tint: #DCEBE5;    /* selected rows, approved chip background */
  --hc-jade-ink: #0B4F45;     /* text on jade tint, 7.7:1 */
  --hc-on-jade: #FFFFFF;
  --hc-gold: #C9922E;         /* guardian gold: decoration only (rules, the seal ring). Never text. */

  /* ---- Colour: states ---- */
  --hc-ok: var(--hc-jade);
  --hc-ok-tint: var(--hc-jade-tint);
  --hc-ok-ink: var(--hc-jade-ink);
  --hc-wait: #B07A16;         /* pending: icon/dot only */
  --hc-wait-tint: #F7EBCB;
  --hc-wait-ink: #7A4F00;     /* 6.0:1 on wait tint */
  --hc-stop: #9E2A2B;         /* denied, blocked, destructive. 7.5:1 on white */
  --hc-stop-strong: #82201F;
  --hc-stop-tint: #F8E1DE;
  --hc-stop-ink: #9E2A2B;     /* 6.0:1 on stop tint */
  --hc-idle: #6B7671;         /* sleeping/stopped */
  --hc-idle-tint: #E6E9E3;
  --hc-idle-ink: #3F4A45;

  --hc-focus: #0E5A4F;        /* focus ring colour; ring is 3px with a 2px stone gap */

  /* ---- Type ---- */
  --hc-font-display: "Young Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --hc-font-body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --hc-font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Scale: ratio 1.25 from a 17px body (Atkinson sets small; 17px reads like 16px elsewhere). */
  --hc-text-xs: 0.8125rem;    /* 13px: fine print only */
  --hc-text-sm: 0.9375rem;    /* 15px: hints, meta, chips */
  --hc-text-md: 1.0625rem;    /* 17px: body */
  --hc-text-lg: 1.3125rem;    /* 21px: lead, card titles */
  --hc-text-xl: 1.625rem;     /* 26px: section heads (display face) */
  --hc-text-2xl: 2.0625rem;   /* 33px: page titles */
  --hc-text-3xl: 2.5625rem;   /* 41px: the one big statement per screen */

  --hc-leading-tight: 1.15;   /* display */
  --hc-leading-snug: 1.35;    /* UI labels, short lines */
  --hc-leading-body: 1.55;    /* paragraphs */
  --hc-measure: 64ch;         /* max line length for prose */

  --hc-weight-regular: 400;
  --hc-weight-medium: 600;
  --hc-weight-bold: 700;

  /* ---- Space (4px base) ---- */
  --hc-space-1: 0.25rem;  /* 4 */
  --hc-space-2: 0.5rem;   /* 8 */
  --hc-space-3: 0.75rem;  /* 12 */
  --hc-space-4: 1rem;     /* 16 */
  --hc-space-5: 1.5rem;   /* 24 */
  --hc-space-6: 2rem;     /* 32 */
  --hc-space-7: 3rem;     /* 48 */
  --hc-space-8: 4rem;     /* 64 */
  --hc-space-9: 6rem;     /* 96 */

  /* ---- Radius: hierarchy, not one value for everything ---- */
  --hc-radius-sm: 6px;     /* chips' inner bits, code */
  --hc-radius-md: 10px;    /* inputs, buttons */
  --hc-radius-lg: 16px;    /* panels (echoes the seal's corner) */
  --hc-radius-pill: 999px; /* status chips */

  /* ---- Shadow: green-tinted, used sparingly (only on things that float or need weight) ---- */
  --hc-shadow-1: 0 1px 0 rgba(23, 35, 31, 0.06);
  --hc-shadow-2: 0 1px 2px rgba(23, 35, 31, 0.06), 0 8px 24px -12px rgba(14, 90, 79, 0.22);
  --hc-shadow-seal: 0 0 0 1px rgba(14, 90, 79, 0.12), 0 18px 40px -20px rgba(14, 90, 79, 0.35);

  /* ---- Motion ---- */
  --hc-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --hc-dur-fast: 120ms;
  --hc-dur: 200ms;
  --hc-dur-slow: 420ms;

  /* ---- Layout ---- */
  --hc-page-max: 68rem;
  --hc-narrow-max: 30rem;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --hc-dur-fast: 0ms;
    --hc-dur: 0ms;
    --hc-dur-slow: 0ms;
  }
}

/* ================================================================= base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--hc-stone);
  color: var(--hc-ink);
  font-family: var(--hc-font-body);
  font-size: var(--hc-text-md);
  line-height: var(--hc-leading-body);
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
a { color: var(--hc-jade); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--hc-jade-strong); text-decoration-thickness: 2px; }
code, kbd { font-family: var(--hc-font-mono); font-size: 0.88em; font-weight: 500; background: var(--hc-stone-deep); padding: 0.1em 0.35em; border-radius: var(--hc-radius-sm); }
strong { font-weight: var(--hc-weight-bold); }
img, svg { display: inline-block; vertical-align: middle; }

:focus-visible {
  outline: 3px solid var(--hc-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.hc-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hc-skip { position: absolute; left: var(--hc-space-4); top: -100px; z-index: 10; background: var(--hc-ink); color: #fff; padding: var(--hc-space-2) var(--hc-space-4); border-radius: var(--hc-radius-md); }
.hc-skip:focus { top: var(--hc-space-4); color: #fff; }

.hc-icon { width: 1.2em; height: 1.2em; flex: none; }
.hc-block { display: block; }
.hc-nowrap { white-space: nowrap; }
.hc-break { overflow-wrap: anywhere; }
.hc-muted { color: var(--hc-ink-muted); }
.hc-fine { font-size: var(--hc-text-sm); color: var(--hc-ink-muted); line-height: var(--hc-leading-snug); }
.hc-fine + .hc-fine { margin-top: var(--hc-space-2); }

/* Hostnames are the one thing people must read exactly: mono, ink, never truncated. */
.hc-host { font-family: var(--hc-font-mono); font-weight: 500; font-size: 0.92em; color: var(--hc-ink); overflow-wrap: anywhere; }

/* ================================================================= type */

.hc-title {
  font-family: var(--hc-font-display);
  font-weight: 400;
  font-size: var(--hc-text-2xl);
  line-height: var(--hc-leading-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-bottom: var(--hc-space-3);
}
.hc-lead { font-size: var(--hc-text-lg); line-height: 1.45; color: var(--hc-ink-muted); max-width: var(--hc-measure); text-wrap: pretty; }
.hc-sub { color: var(--hc-ink-muted); font-size: var(--hc-text-md); font-family: var(--hc-font-body); }
.hc-h2 {
  font-family: var(--hc-font-display); font-weight: 400; font-size: var(--hc-text-xl); line-height: 1.2;
  display: flex; align-items: center; gap: var(--hc-space-2); margin-bottom: var(--hc-space-3);
}
.hc-h2 .hc-icon { color: var(--hc-jade); width: 1em; height: 1em; }
.hc-h3 { font-size: var(--hc-text-md); font-weight: var(--hc-weight-bold); line-height: var(--hc-leading-snug); margin-bottom: var(--hc-space-2); }
.hc-step { font-size: var(--hc-text-sm); color: var(--hc-jade); font-weight: var(--hc-weight-medium); margin-bottom: var(--hc-space-2); }
.hc-crumb { font-size: var(--hc-text-sm); margin-bottom: var(--hc-space-2); }
.hc-crumb a { color: var(--hc-ink-muted); }
.hc-crumb a::before { content: "\2190\00a0"; }

/* ================================================================= buttons */

.hc-btn {
  --b-bg: var(--hc-surface); --b-fg: var(--hc-ink); --b-bd: var(--hc-line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--hc-space-2);
  min-height: 44px; padding: 0.6rem 1.1rem;
  font: var(--hc-weight-medium) var(--hc-text-md)/1.2 var(--hc-font-body);
  color: var(--b-fg); background: var(--b-bg); border: 1.5px solid var(--b-bd); border-radius: var(--hc-radius-md);
  text-decoration: none; cursor: pointer;
  transition: background-color var(--hc-dur-fast) var(--hc-ease), border-color var(--hc-dur-fast) var(--hc-ease), transform var(--hc-dur-fast) var(--hc-ease);
}
.hc-btn:hover { text-decoration: none; color: var(--b-fg); }
.hc-btn:active { transform: translateY(1px); }
.hc-btn .hc-icon { width: 1.1em; height: 1.1em; }
.hc-btn--primary { --b-bg: var(--hc-jade); --b-fg: var(--hc-on-jade); --b-bd: var(--hc-jade); box-shadow: var(--hc-shadow-1); }
.hc-btn--primary:hover { --b-bg: var(--hc-jade-strong); --b-bd: var(--hc-jade-strong); }
.hc-btn--quiet:hover { --b-bd: var(--hc-jade); --b-fg: var(--hc-jade); }
.hc-btn--ghost { --b-bg: transparent; --b-bd: transparent; --b-fg: var(--hc-jade); }
.hc-btn--ghost:hover { --b-bg: var(--hc-jade-tint); }
.hc-btn--stop-quiet { --b-fg: var(--hc-stop); --b-bd: var(--hc-stop); }
.hc-btn--stop-quiet:hover { --b-bg: var(--hc-stop-tint); --b-fg: var(--hc-stop-strong); }
.hc-btn--small { min-height: 36px; padding: 0.35rem 0.8rem; font-size: var(--hc-text-sm); }
.hc-btn--big { min-height: 52px; padding: 0.8rem 1.4rem; font-size: var(--hc-text-md); }
.hc-btn--block { width: 100%; }

.hc-linkbtn {
  background: none; border: 0; padding: 0.25rem 0; cursor: pointer;
  font: inherit; font-size: var(--hc-text-sm); color: var(--hc-jade);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
}
.hc-linkbtn:hover { color: var(--hc-jade-strong); text-decoration-thickness: 2px; }
.hc-linkbtn--stop { color: var(--hc-stop); }
.hc-linkbtn--stop:hover { color: var(--hc-stop-strong); }
.hc-textlink { display: inline-block; margin-top: var(--hc-space-3); font-size: var(--hc-text-sm); font-weight: var(--hc-weight-medium); }

/* ================================================================= forms */

.hc-form { display: grid; gap: var(--hc-space-4); margin: var(--hc-space-5) 0 var(--hc-space-4); }
.hc-field { display: grid; gap: var(--hc-space-1); }
.hc-label { font-weight: var(--hc-weight-medium); font-size: var(--hc-text-md); }
.hc-hint { font-size: var(--hc-text-sm); color: var(--hc-ink-muted); }
.hc-input {
  width: 100%; min-height: 48px; padding: 0.65rem 0.85rem;
  font: var(--hc-text-md)/1.3 var(--hc-font-body); color: var(--hc-ink);
  background: var(--hc-surface); border: 1.5px solid var(--hc-line-strong); border-radius: var(--hc-radius-md);
  transition: border-color var(--hc-dur-fast) var(--hc-ease), box-shadow var(--hc-dur-fast) var(--hc-ease);
}
.hc-input::placeholder { color: var(--hc-ink-faint); }
.hc-input:hover { border-color: var(--hc-ink-muted); }
.hc-input:focus-visible { outline: none; border-color: var(--hc-jade); box-shadow: 0 0 0 3px var(--hc-jade-tint), 0 0 0 4.5px var(--hc-jade); }
.hc-select {
  appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317231F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1.1rem;
}
.hc-field--error .hc-input { border-color: var(--hc-stop); }
.hc-error { display: flex; gap: var(--hc-space-2); align-items: flex-start; color: var(--hc-stop); font-size: var(--hc-text-sm); font-weight: var(--hc-weight-medium); }
.hc-error .hc-icon { margin-top: 0.1em; }
.hc-otp { font-family: var(--hc-font-mono); font-size: 1.6rem; letter-spacing: 0.5em; padding-left: 1rem; max-width: 16rem; }
.hc-phone { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: var(--hc-space-3); align-items: start; }
.hc-inline-form { display: flex; flex-wrap: wrap; gap: var(--hc-space-2); margin-top: var(--hc-space-5); }

.hc-radios { border: 0; padding: 0; margin: 0; display: grid; gap: var(--hc-space-2); }
.hc-radios legend { margin-bottom: var(--hc-space-2); padding: 0; }
.hc-radio {
  display: flex; gap: var(--hc-space-3); align-items: flex-start; cursor: pointer;
  padding: var(--hc-space-3); border: 1.5px solid var(--hc-line); border-radius: var(--hc-radius-md); background: var(--hc-surface);
}
.hc-radio:has(input:checked) { border-color: var(--hc-jade); background: var(--hc-jade-tint); }
.hc-radio input { accent-color: var(--hc-jade); width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; }

/* ================================================================= feedback */

.hc-flash {
  display: flex; gap: var(--hc-space-3); align-items: flex-start;
  padding: var(--hc-space-3) var(--hc-space-4); border-radius: var(--hc-radius-md);
  margin-bottom: var(--hc-space-5); font-weight: var(--hc-weight-medium);
}
.hc-flash .hc-icon { margin-top: 0.15em; }
.hc-flash--ok { background: var(--hc-ok-tint); color: var(--hc-ok-ink); }
.hc-flash--info { background: var(--hc-stone-deep); color: var(--hc-ink); }
.hc-flash--error { background: var(--hc-stop-tint); color: var(--hc-stop-ink); }

.hc-note {
  margin-top: var(--hc-space-5); padding: var(--hc-space-4); border-radius: var(--hc-radius-md);
  background: var(--hc-stone-deep); font-size: var(--hc-text-sm); line-height: var(--hc-leading-snug); color: var(--hc-ink);
  display: grid; gap: var(--hc-space-2);
}
.hc-note--guard { background: var(--hc-jade-tint); color: var(--hc-jade-ink); }

.hc-ticks { list-style: none; display: grid; gap: var(--hc-space-2); margin: var(--hc-space-4) 0; }
.hc-ticks li { position: relative; padding-left: 1.6rem; max-width: var(--hc-measure); }
.hc-ticks li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.62em; width: 0.55rem; height: 0.55rem;
  border-radius: 2px; transform: rotate(45deg); background: var(--hc-gold);
}

.hc-bigicon {
  width: 56px; height: 56px; border-radius: var(--hc-radius-lg); display: grid; place-items: center;
  background: var(--hc-jade-tint); color: var(--hc-jade); margin-bottom: var(--hc-space-5);
}
.hc-bigicon .hc-icon { width: 28px; height: 28px; }

/* status chips */
.hc-chip {
  display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap;
  padding: 0.2rem 0.65rem 0.2rem 0.55rem; border-radius: var(--hc-radius-pill);
  font-size: var(--hc-text-sm); font-weight: var(--hc-weight-medium); line-height: 1.4;
}
.hc-chip__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.hc-chip--ok { background: var(--hc-ok-tint); color: var(--hc-ok-ink); }
.hc-chip--wait { background: var(--hc-wait-tint); color: var(--hc-wait-ink); }
.hc-chip--wait .hc-chip__dot { background: var(--hc-wait); }
.hc-chip--stop { background: var(--hc-stop-tint); color: var(--hc-stop-ink); }
.hc-chip--idle { background: var(--hc-idle-tint); color: var(--hc-idle-ink); }
.hc-chip--idle .hc-chip__dot { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

.hc-region { display: inline-flex; align-items: center; gap: var(--hc-space-2); }
.hc-region__code {
  font-family: var(--hc-font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em;
  padding: 0.05rem 0.3rem; border-radius: 4px; border: 1.5px solid currentColor; color: var(--hc-jade-ink);
}

/* ================================================================= shells */

/* console: top bar */
.hc-top { border-bottom: 1px solid var(--hc-line); background: var(--hc-stone); }
.hc-top__in {
  max-width: var(--hc-page-max); margin: 0 auto; padding: var(--hc-space-3) var(--hc-space-5);
  display: flex; align-items: center; gap: var(--hc-space-6);
}
.hc-logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--hc-ink); text-decoration: none; }
.hc-logo:hover { color: var(--hc-ink); }
.hc-logo .hc-mark { border-radius: 7px; }
.hc-logo__word { font-family: var(--hc-font-display); font-size: 1.4rem; line-height: 1; letter-spacing: -0.01em; }
.hc-nav ul { list-style: none; display: flex; gap: var(--hc-space-1); }
.hc-nav a {
  display: block; padding: 0.45rem 0.75rem; border-radius: var(--hc-radius-md);
  color: var(--hc-ink-muted); text-decoration: none; font-weight: var(--hc-weight-medium);
}
.hc-nav a:hover { color: var(--hc-ink); background: var(--hc-stone-deep); }
.hc-nav a[aria-current="page"] { color: var(--hc-ink); box-shadow: inset 0 -2px 0 var(--hc-jade); border-radius: var(--hc-radius-md) var(--hc-radius-md) 0 0; }
.hc-who { margin-left: auto; display: flex; align-items: center; gap: var(--hc-space-4); font-size: var(--hc-text-sm); color: var(--hc-ink-muted); min-width: 0; }
.hc-who__email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 16rem; }

.hc-main { max-width: var(--hc-page-max); margin: 0 auto; padding: var(--hc-space-7) var(--hc-space-5) var(--hc-space-8); }
.hc-main--focus { max-width: 44rem; }
.hc-foot { max-width: var(--hc-page-max); margin: 0 auto; padding: var(--hc-space-5); border-top: 1px solid var(--hc-line); font-size: var(--hc-text-sm); color: var(--hc-ink-muted); }
.hc-foot a { margin-left: var(--hc-space-3); color: var(--hc-ink-muted); }

/* gate: the guardian panel + a narrow form column */
.hc-gatepage { display: grid; grid-template-columns: minmax(20rem, 5fr) 7fr; min-height: 100vh; }
.hc-gatepage__guard {
  position: relative; overflow: hidden; background: var(--hc-jade); color: var(--hc-stone);
  padding: var(--hc-space-6); display: flex; flex-direction: column; justify-content: space-between;
}
.hc-gatepage__brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--hc-font-display); font-size: 1.6rem; position: relative; z-index: 1; }
.hc-gatepage__brand .hc-mark { box-shadow: 0 0 0 1.5px rgba(242, 243, 239, 0.55); border-radius: 9px; }
.hc-gatepage__face { position: absolute; right: -34%; top: 9%; width: 100%; color: rgba(242, 243, 239, 0.14); pointer-events: none; }
.hc-gatepage__face .hc-mark { width: 100%; height: auto; display: block; }
.hc-gatepage__line {
  position: relative; z-index: 1; max-width: 20ch;
  font-family: var(--hc-font-display); font-size: var(--hc-text-xl); line-height: 1.25; color: var(--hc-stone);
}
.hc-gatepage__line::before { content: ""; display: block; width: 2.5rem; height: 3px; background: var(--hc-gold); margin-bottom: var(--hc-space-4); border-radius: 2px; }
.hc-gatepage__main { align-self: center; width: 100%; max-width: calc(var(--hc-narrow-max) + 2 * var(--hc-space-6)); padding: var(--hc-space-8) var(--hc-space-6); margin: 0 auto; }
.hc-gatepage__main .hc-lead { font-size: var(--hc-text-md); line-height: var(--hc-leading-body); }
.hc-gatepage__mobilebrand { display: none; margin-bottom: var(--hc-space-6); }

/* plain: someone signing in to a builder's app */
.hc-plain { min-height: 100vh; display: grid; place-items: center; padding: var(--hc-space-6) var(--hc-space-4); }
.hc-appsign {
  width: 100%; max-width: 28rem; background: var(--hc-surface); border-radius: var(--hc-radius-lg);
  padding: var(--hc-space-6); box-shadow: var(--hc-shadow-seal); border-top: 4px solid var(--hc-jade);
}
.hc-appsign .hc-title { font-size: var(--hc-text-xl); }
.hc-appsign .hc-lead { font-size: var(--hc-text-md); line-height: var(--hc-leading-body); }
.hc-appid { display: flex; align-items: center; gap: var(--hc-space-3); margin-bottom: var(--hc-space-5); padding-bottom: var(--hc-space-4); border-bottom: 1px solid var(--hc-line); }
.hc-appid__tile {
  width: 44px; height: 44px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: var(--hc-ink); color: var(--hc-stone); font-weight: var(--hc-weight-bold); font-size: 1.05rem;
}
.hc-appid__name { font-weight: var(--hc-weight-bold); line-height: 1.25; }
.hc-appid__host { font-family: var(--hc-font-mono); font-size: var(--hc-text-sm); color: var(--hc-ink-muted); overflow-wrap: anywhere; }
.hc-hosted {
  display: flex; align-items: center; gap: var(--hc-space-2); margin-top: var(--hc-space-5); padding-top: var(--hc-space-4);
  border-top: 1px solid var(--hc-line); font-size: var(--hc-text-sm); color: var(--hc-ink-muted);
}
.hc-hosted .hc-mark { border-radius: 5px; }

/* ================================================================= panels & page heads */

.hc-pagehead { margin-bottom: var(--hc-space-6); }
.hc-pagehead--row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--hc-space-4); }
.hc-panel { background: var(--hc-surface); border: 1px solid var(--hc-line); border-radius: var(--hc-radius-lg); padding: var(--hc-space-5); }
.hc-panel--quiet { background: transparent; border-style: dashed; border-color: var(--hc-line-strong); }

/* ================================================================= connect */

.hc-connect { display: grid; grid-template-columns: 3fr 2fr; gap: var(--hc-space-5); align-items: start; }
.hc-steps { list-style: none; counter-reset: step; display: grid; gap: var(--hc-space-4); }
.hc-steps > li { counter-increment: step; position: relative; padding-left: 2.6rem; }
.hc-steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -0.1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--hc-font-display); font-size: 1rem;
  background: var(--hc-jade-tint); color: var(--hc-jade-ink);
}
.hc-steps + .hc-fine { margin-top: var(--hc-space-5); }
.hc-panel > p + .hc-copy { margin-top: var(--hc-space-3); }

.hc-copy {
  display: flex; align-items: stretch; margin-top: var(--hc-space-2);
  border: 1.5px solid var(--hc-line-strong); border-radius: var(--hc-radius-md); background: var(--hc-stone); overflow: hidden;
}
.hc-copy__text {
  flex: 1; min-width: 0; padding: 0.6rem 0.8rem; background: none; border-radius: 0;
  font-size: var(--hc-text-sm); overflow-wrap: anywhere; user-select: all; align-self: center;
}
.hc-copy__btn {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0 0.85rem; cursor: pointer;
  border: 0; border-left: 1.5px solid var(--hc-line-strong); background: var(--hc-surface);
  font: var(--hc-weight-medium) var(--hc-text-sm) var(--hc-font-body); color: var(--hc-jade);
}
.hc-copy__btn:hover { background: var(--hc-jade-tint); }
.hc-copy__btn[data-copied] { color: var(--hc-ok-ink); background: var(--hc-ok-tint); }

.hc-prompts { margin-top: var(--hc-space-7); }
.hc-prompts ul { list-style: none; display: grid; gap: var(--hc-space-3); margin-bottom: var(--hc-space-4); }
.hc-prompts blockquote, .hc-say {
  position: relative; padding: var(--hc-space-3) var(--hc-space-4) var(--hc-space-3) 3rem;
  background: var(--hc-surface); border: 1px solid var(--hc-line); border-radius: var(--hc-radius-lg) var(--hc-radius-lg) var(--hc-radius-lg) 4px;
  font-size: var(--hc-text-lg); line-height: 1.4; max-width: 46rem;
}
.hc-prompts blockquote::before, .hc-say::before {
  content: "\201C"; position: absolute; left: 0.9rem; top: 0.25rem;
  font-family: var(--hc-font-display); font-size: 2.6rem; line-height: 1; color: var(--hc-gold);
}

/* ================================================================= dashboard */

.hc-attention {
  background: var(--hc-wait-tint); color: var(--hc-ink); border-radius: var(--hc-radius-lg);
  padding: var(--hc-space-4) var(--hc-space-5); margin-bottom: var(--hc-space-6);
  border-left: 5px solid var(--hc-wait);
}
.hc-attention__title { display: flex; gap: var(--hc-space-2); align-items: center; font-size: var(--hc-text-md); font-weight: var(--hc-weight-bold); color: var(--hc-wait-ink); margin-bottom: var(--hc-space-3); }
.hc-attention__list { list-style: none; display: grid; gap: var(--hc-space-2); }
.hc-attention__list li {
  display: grid; grid-template-columns: 1fr auto auto; gap: var(--hc-space-4); align-items: center;
  padding-top: var(--hc-space-2); border-top: 1px solid rgba(122, 79, 0, 0.18);
}
.hc-attention__when { font-size: var(--hc-text-sm); color: var(--hc-wait-ink); }

.hc-dash { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: var(--hc-space-6); align-items: start; }
.hc-dash__side { position: sticky; top: var(--hc-space-5); padding: var(--hc-space-5); border-radius: var(--hc-radius-lg); background: var(--hc-stone-deep); }
.hc-dash__side .hc-h3 { margin-bottom: var(--hc-space-4); }

.hc-apps { list-style: none; background: var(--hc-surface); border: 1px solid var(--hc-line); border-radius: var(--hc-radius-lg); }
.hc-approw {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--hc-space-2) var(--hc-space-4);
  padding: var(--hc-space-4) var(--hc-space-5); border-top: 1px solid var(--hc-line); position: relative;
}
.hc-approw:first-child { border-top: 0; }
.hc-approw:hover { background: color-mix(in srgb, var(--hc-jade-tint) 35%, transparent); }
.hc-approw__name { font-family: var(--hc-font-display); font-weight: 400; font-size: var(--hc-text-lg); line-height: 1.25; }
.hc-approw__name a { color: var(--hc-ink); text-decoration: none; }
.hc-approw__name a:hover { text-decoration: underline; }
.hc-approw__url { font-family: var(--hc-font-mono); font-size: var(--hc-text-sm); color: var(--hc-ink-muted); overflow-wrap: anywhere; }
.hc-approw__status { display: flex; gap: var(--hc-space-2); align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.hc-approw__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--hc-space-1) var(--hc-space-6); font-size: var(--hc-text-sm); }
.hc-approw__meta dt { color: var(--hc-ink-faint); }
.hc-approw__meta dd { color: var(--hc-ink); }

.hc-meter + .hc-meter { margin-top: var(--hc-space-4); }
.hc-meter__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--hc-space-3); font-size: var(--hc-text-sm); margin-bottom: 0.35rem; }
.hc-meter__label { font-weight: var(--hc-weight-medium); }
.hc-meter__value { color: var(--hc-ink-muted); white-space: nowrap; margin-left: auto; }
.hc-meter__track { height: 6px; border-radius: 3px; background: var(--hc-surface); box-shadow: inset 0 0 0 1px var(--hc-line); overflow: hidden; }
.hc-meter__fill { height: 100%; background: var(--hc-jade); border-radius: 3px; }
.hc-meter--near .hc-meter__fill { background: var(--hc-wait); }
.hc-meter--full .hc-meter__fill { background: var(--hc-stop); }
.hc-meter--full .hc-meter__value { color: var(--hc-stop-ink); font-weight: var(--hc-weight-medium); }

.hc-empty {
  display: grid; grid-template-columns: auto 1fr; gap: var(--hc-space-5); align-items: start;
  padding: var(--hc-space-6); border: 1.5px dashed var(--hc-line-strong); border-radius: var(--hc-radius-lg);
}
.hc-empty .hc-mark { border-radius: 13px; }
.hc-empty p { max-width: var(--hc-measure); }
.hc-empty .hc-say { margin: var(--hc-space-3) 0 var(--hc-space-4); }

/* ================================================================= app page */

.hc-apphead { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--hc-space-5); flex-wrap: wrap; margin-bottom: var(--hc-space-5); }
.hc-apphead .hc-title { margin-bottom: var(--hc-space-1); font-size: var(--hc-text-3xl); }
.hc-apphead__open { display: flex; align-items: center; gap: var(--hc-space-4); }
.hc-facts {
  display: grid; grid-template-columns: 1.5fr 1.2fr 1fr 0.8fr; gap: var(--hc-space-5);
  padding: var(--hc-space-5) 0; border-top: 1px solid var(--hc-line); border-bottom: 1px solid var(--hc-line); margin-bottom: var(--hc-space-6);
}
.hc-facts dt { font-size: var(--hc-text-sm); color: var(--hc-ink-muted); margin-bottom: var(--hc-space-1); }
.hc-facts dd { font-weight: var(--hc-weight-medium); }
.hc-facts .hc-copy { margin-top: 0; }
.hc-facts .hc-fine { font-weight: 400; margin-top: var(--hc-space-1); }

.hc-appgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--hc-space-7); align-items: start; }
.hc-sect + .hc-sect { margin-top: var(--hc-space-7); }
.hc-sect__head { display: flex; justify-content: space-between; align-items: center; gap: var(--hc-space-3); }
.hc-sect__head .hc-h2 { font-size: var(--hc-text-lg); margin-bottom: var(--hc-space-2); }
.hc-sectlead { color: var(--hc-ink-muted); margin-bottom: var(--hc-space-4); max-width: var(--hc-measure); }

.hc-conns { list-style: none; border: 1px solid var(--hc-line); border-radius: var(--hc-radius-lg); background: var(--hc-surface); }
.hc-conn {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--hc-space-1) var(--hc-space-4);
  padding: var(--hc-space-4); border-top: 1px solid var(--hc-line); position: relative;
}
.hc-conn:first-child { border-top: 0; }
.hc-conn::before { content: ""; position: absolute; left: -1px; top: var(--hc-space-4); bottom: var(--hc-space-4); width: 3px; border-radius: 0 3px 3px 0; }
.hc-conn--pending::before { background: var(--hc-wait); }
.hc-conn--approved::before { background: var(--hc-jade); }
.hc-conn--denied::before { background: var(--hc-stop); }
.hc-conn__host { font-size: var(--hc-text-md); }
.hc-conn__why { grid-column: 1 / -1; color: var(--hc-ink-muted); font-size: var(--hc-text-sm); max-width: var(--hc-measure); }
.hc-conn__when { font-size: var(--hc-text-sm); color: var(--hc-ink-faint); }
.hc-conn__act { justify-self: end; }
.hc-conn--denied .hc-conn__host .hc-host, .hc-conn--revoked .hc-conn__host .hc-host { color: var(--hc-ink-muted); }

.hc-blocked { margin-top: var(--hc-space-5); }
.hc-blocked .hc-fine { margin-bottom: var(--hc-space-3); }

.hc-table { width: 100%; border-collapse: collapse; font-size: var(--hc-text-sm); background: var(--hc-surface); border-radius: var(--hc-radius-md); overflow: hidden; box-shadow: 0 0 0 1px var(--hc-line); }
.hc-table th { text-align: left; font-weight: var(--hc-weight-medium); color: var(--hc-ink-muted); background: var(--hc-stone-deep); padding: 0.55rem var(--hc-space-3); }
.hc-table td { padding: 0.6rem var(--hc-space-3); border-top: 1px solid var(--hc-line); vertical-align: middle; overflow-wrap: anywhere; }
.hc-table__act { text-align: right; }
.hc-table code { background: none; padding: 0; }

.hc-people { list-style: none; margin-bottom: var(--hc-space-4); border-top: 1px solid var(--hc-line); }
.hc-people li { display: flex; justify-content: space-between; align-items: center; gap: var(--hc-space-3); padding: 0.55rem 0; border-bottom: 1px solid var(--hc-line); font-size: var(--hc-text-sm); }
.hc-addrow { display: grid; gap: var(--hc-space-1); }
.hc-addrow .hc-label { font-size: var(--hc-text-sm); }
.hc-addrow__in { display: flex; gap: var(--hc-space-2); }
.hc-addrow__in .hc-input { min-height: 44px; }

.hc-check { padding: var(--hc-space-4); border-radius: var(--hc-radius-md); display: grid; gap: var(--hc-space-2); }
.hc-check--ok { background: var(--hc-ok-tint); }
.hc-check--wait { background: var(--hc-wait-tint); }
.hc-check--stop { background: var(--hc-stop-tint); }
.hc-check__head { display: flex; gap: var(--hc-space-2); align-items: center; font-weight: var(--hc-weight-bold); }
.hc-check--ok .hc-check__head { color: var(--hc-ok-ink); }
.hc-check--wait .hc-check__head { color: var(--hc-wait-ink); }
.hc-check--stop .hc-check__head { color: var(--hc-stop-ink); }
.hc-check .hc-fine { color: var(--hc-ink); }
.hc-findings { padding-left: 1.2rem; font-size: var(--hc-text-sm); display: grid; gap: var(--hc-space-1); }

/* ================================================================= approve: the gate */

.hc-title--approve { font-size: var(--hc-text-3xl); line-height: 1.12; margin-bottom: var(--hc-space-6); }
.hc-host--big { font-size: 0.78em; letter-spacing: -0.01em; background: var(--hc-surface); padding: 0 0.25em; border-radius: var(--hc-radius-sm); box-shadow: inset 0 -3px 0 var(--hc-gold); }

.hc-gate {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(7rem, 1fr) minmax(0, 1fr); align-items: center;
  padding: var(--hc-space-5); margin-bottom: var(--hc-space-6);
  background: var(--hc-surface); border-radius: var(--hc-radius-lg); box-shadow: var(--hc-shadow-seal);
}
.hc-gate__end { display: grid; gap: 0.15rem; min-width: 0; }
.hc-gate__end--out { text-align: right; }
.hc-gate__kind { font-size: var(--hc-text-xs); color: var(--hc-ink-muted); }
.hc-gate__name { font-weight: var(--hc-weight-bold); overflow-wrap: anywhere; line-height: 1.3; }
.hc-gate__sub { font-size: var(--hc-text-sm); color: var(--hc-ink-muted); overflow-wrap: anywhere; }
.hc-gate__path { display: flex; align-items: center; padding: 0 var(--hc-space-3); }
.hc-gate__line { flex: 1; height: 0; border-top: 2px solid var(--hc-jade); }
.hc-gate__line--out { border-top-style: dashed; border-top-color: var(--hc-wait); }
.hc-gate__guard { flex: none; margin: 0 var(--hc-space-2); }
.hc-gate__guard .hc-mark { border-radius: 11px; box-shadow: 0 0 0 4px var(--hc-surface), 0 0 0 5.5px var(--hc-gold); }

.hc-reason { margin-bottom: var(--hc-space-6); }
.hc-reason__quote {
  border-left: 3px solid var(--hc-jade); padding: var(--hc-space-1) 0 var(--hc-space-1) var(--hc-space-4);
  font-size: var(--hc-text-lg); line-height: 1.45; max-width: var(--hc-measure);
}
.hc-reason__by { margin-top: var(--hc-space-2); font-size: var(--hc-text-sm); color: var(--hc-ink-muted); padding-left: calc(var(--hc-space-4) + 3px); }
.hc-meaning { margin-bottom: var(--hc-space-6); }
.hc-meaning .hc-ticks { margin-top: 0; }

.hc-decide { display: flex; gap: var(--hc-space-3); flex-wrap: wrap; align-items: center; padding-top: var(--hc-space-5); border-top: 1px solid var(--hc-line); }
.hc-decide__hint { margin-top: var(--hc-space-3); max-width: 34rem; }
.hc-gatepage .hc-decide { margin-top: var(--hc-space-5); }

.hc-result { padding-top: var(--hc-space-6); }
.hc-result p + p { margin-top: var(--hc-space-4); }
.hc-result .hc-lead { margin-bottom: var(--hc-space-4); }
.hc-result__icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: var(--hc-space-5);
  background: var(--hc-ok-tint); color: var(--hc-ok-ink);
  animation: hc-settle var(--hc-dur-slow) var(--hc-ease) both;
}
.hc-result__icon .hc-icon { width: 32px; height: 32px; stroke-width: 2.25; }
.hc-result--stop .hc-result__icon { background: var(--hc-stone-deep); color: var(--hc-ink); }
@keyframes hc-settle { from { transform: scale(0.7); opacity: 0; } }
.hc-errcode { font-family: var(--hc-font-mono); font-size: var(--hc-text-sm); color: var(--hc-ink-muted); margin-bottom: var(--hc-space-2); }

/* ================================================================= team, plans, consent */

.hc-team { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--hc-space-5); align-items: start; }
.hc-team .hc-h2 .hc-sub { font-size: var(--hc-text-md); }

.hc-usagebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--hc-space-5); padding: var(--hc-space-5); background: var(--hc-stone-deep); border-radius: var(--hc-radius-lg); margin-bottom: var(--hc-space-6); }
.hc-usagebar .hc-meter + .hc-meter { margin-top: 0; }

.hc-plans { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--hc-space-4); margin: var(--hc-space-5) 0; }
.hc-plan {
  display: flex; flex-direction: column; gap: var(--hc-space-3);
  background: var(--hc-surface); border: 1px solid var(--hc-line); border-radius: var(--hc-radius-lg); padding: var(--hc-space-5);
}
.hc-plan--current { border: 2px solid var(--hc-jade); box-shadow: var(--hc-shadow-2); }
.hc-plan__name { font-family: var(--hc-font-display); font-weight: 400; font-size: var(--hc-text-xl); display: flex; justify-content: space-between; align-items: center; gap: var(--hc-space-2); }
.hc-plan__badge { font-family: var(--hc-font-body); font-size: var(--hc-text-xs); font-weight: var(--hc-weight-bold); color: var(--hc-on-jade); background: var(--hc-jade); padding: 0.15rem 0.55rem; border-radius: var(--hc-radius-pill); }
.hc-plan__amount { font-family: var(--hc-font-display); font-size: var(--hc-text-2xl); line-height: 1; }
.hc-plan__period { font-size: var(--hc-text-sm); color: var(--hc-ink-muted); }
.hc-plan__blurb { color: var(--hc-ink-muted); font-size: var(--hc-text-sm); }
.hc-plan__features { list-style: none; display: grid; gap: var(--hc-space-2); font-size: var(--hc-text-sm); padding-top: var(--hc-space-3); border-top: 1px solid var(--hc-line); }
.hc-plan__features li { display: flex; gap: var(--hc-space-2); align-items: flex-start; }
.hc-plan__features .hc-icon { color: var(--hc-jade); margin-top: 0.05em; }
.hc-plan__cta { margin-top: auto; padding-top: var(--hc-space-3); }

.hc-scopes { list-style: none; display: grid; gap: var(--hc-space-3); margin-top: var(--hc-space-3); }
.hc-scopes li { display: flex; gap: var(--hc-space-3); align-items: flex-start; }
.hc-scopes .hc-icon { color: var(--hc-jade); margin-top: 0.15em; }
.hc-gatepage__main section { margin-top: var(--hc-space-5); }
.hc-gatepage__main .hc-fine { margin-top: var(--hc-space-4); }
.hc-gatepage__main .hc-scopes .hc-fine { margin-top: 0.1rem; }
.hc-signedas { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--hc-space-3); }

/* ================================================================= meter widths (no inline styles under CSP) */
.hc-w-0 { width: 0%; }
.hc-w-5 { width: 5%; }
.hc-w-10 { width: 10%; }
.hc-w-15 { width: 15%; }
.hc-w-20 { width: 20%; }
.hc-w-25 { width: 25%; }
.hc-w-30 { width: 30%; }
.hc-w-35 { width: 35%; }
.hc-w-40 { width: 40%; }
.hc-w-45 { width: 45%; }
.hc-w-50 { width: 50%; }
.hc-w-55 { width: 55%; }
.hc-w-60 { width: 60%; }
.hc-w-65 { width: 65%; }
.hc-w-70 { width: 70%; }
.hc-w-75 { width: 75%; }
.hc-w-80 { width: 80%; }
.hc-w-85 { width: 85%; }
.hc-w-90 { width: 90%; }
.hc-w-95 { width: 95%; }
.hc-w-100 { width: 100%; }

/* ================================================================= responsive */

@media (max-width: 960px) {
  .hc-dash, .hc-appgrid, .hc-team, .hc-connect { grid-template-columns: minmax(0, 1fr); }
  .hc-dash__side { position: static; }
  .hc-facts { grid-template-columns: 1fr 1fr; }
  .hc-gatepage { grid-template-columns: minmax(0, 1fr); }
  .hc-gatepage__guard { display: none; }
  .hc-gatepage__mobilebrand { display: block; }
  .hc-body--gate { border-top: 6px solid var(--hc-jade); }
}
@media (max-width: 720px) {
  .hc-top__in { flex-wrap: wrap; gap: var(--hc-space-2) var(--hc-space-4); padding: var(--hc-space-3) var(--hc-space-4); }
  .hc-nav { order: 3; width: 100%; overflow-x: auto; margin: 0 calc(-1 * var(--hc-space-2)); }
  .hc-nav ul { width: max-content; }
  .hc-who__email { display: none; }
  .hc-main { padding: var(--hc-space-5) var(--hc-space-4) var(--hc-space-7); }
  .hc-title { font-size: var(--hc-text-xl); }
  .hc-title--approve, .hc-apphead .hc-title { font-size: var(--hc-text-2xl); }
  .hc-lead { font-size: var(--hc-text-md); }
  .hc-facts { grid-template-columns: minmax(0, 1fr); gap: var(--hc-space-4); }
  .hc-gate { grid-template-columns: minmax(0, 1fr); gap: var(--hc-space-3); text-align: left; }
  .hc-gate__end--out { text-align: left; }
  .hc-gate__path { flex-direction: column; align-items: flex-start; padding: 0 0 0 1rem; }
  .hc-gate__line { flex: none; width: 0; height: 1.25rem; border-top: 0; border-left: 2px solid var(--hc-jade); margin-left: 0.8rem; }
  .hc-gate__line--out { border-left-style: dashed; border-left-color: var(--hc-wait); }
  .hc-gate__guard { margin: var(--hc-space-1) 0; }
  .hc-decide { flex-direction: column; align-items: stretch; }
  .hc-decide .hc-btn, .hc-decide form { width: 100%; }
  .hc-attention__list li { grid-template-columns: minmax(0, 1fr) auto; }
  .hc-attention__when { grid-row: 2; }
  .hc-empty { grid-template-columns: minmax(0, 1fr); }
  .hc-phone { grid-template-columns: minmax(0, 1fr); }
  .hc-gatepage__main { padding: var(--hc-space-6) var(--hc-space-4); }
  .hc-appsign { padding: var(--hc-space-5); }
  .hc-approw { grid-template-columns: minmax(0, 1fr); padding: var(--hc-space-4); }
  .hc-approw__status { justify-content: flex-start; }
  .hc-approw__meta { gap: var(--hc-space-1) var(--hc-space-5); }
}

@media (forced-colors: active) {
  .hc-chip, .hc-btn, .hc-flash, .hc-note { border: 1px solid CanvasText; }
}
@media print {
  .hc-top, .hc-foot, .hc-decide { display: none; }
}
