/* Halyard web app.

   Two views, following the landing page: Hoist (the default, matching
   site/assets/site.css) and Corporate (the dark product UI this app started
   as). Everything below the token block is written against the tokens, so a
   view is a different set of values and not a second stylesheet. Corporate is
   `html[data-mode="corp"]`, the same attribute and the same spelling the public
   site uses, applied before first paint by assets/theme.js.

   Contrast, Corporate: --fg on --bg is 17.9:1, --mut on --bg2 is 5.7:1, --mut
   on --bg3 is 5.1:1, white on --acc is 5.2:1.
   Contrast, Hoist: --fg (#191919) on --bg (#FFF7E8) is 15.3:1, --mut
   (#5A554C) on --bg is 7.0:1 and on --bg2 (#FFFFFF) 7.3:1, --fg on the yellow
   #FFDF43 is 11.4:1, white on --acc (#1F55D6) is 6.1:1. All pass WCAG AA for
   body text, and the smallest type here is 12.5px, which clears AA at these
   ratios.

   Both views: every control keeps a visible focus ring, nothing interactive is
   under 44px in a touch context, and the layout holds at 375px.

   Fonts come from Google Fonts, the same link the public site uses, allowed by
   the app's CSP in deploy/caddy/Caddyfile (style-src fonts.googleapis.com,
   font-src fonts.gstatic.com). Each stack falls back to a system face, so a
   blocked font request changes the look and not the layout. */

:root {
  /* Hoist, the default view. Ground, ink and accents from site/assets/site.css. */
  --bg: #fff7e8;        /* --paper */
  --bg2: #ffffff;       /* cards sit brighter than the paper, as on the site */
  --bg3: #efe6d4;       /* --legal-ground, for table headers and wells */
  --fg: #191919;        /* --ink */
  --mut: #5a554c;       /* --muted-on-paper */
  --bd: #191919;
  --bd2: #191919;
  --acc: #1f55d6;       /* --blue-600: the blue that carries white text at AA */
  --acc2: #1f55d6;
  --ok: #2f6b4f;
  --warn: #7a5a00;
  --bad: #a3271a;
  --yellow: #ffdf43;
  --pink: #f6a0c8;
  --sky: #a9d3f5;
  --f-disp: "Darumadrop One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --f-ui: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 0px;             /* the Hoist view has no rounded corners */
  --pad: 20px;
  /* Hand-drawn feel, cheaply: a hard offset shadow instead of a blur, and a
     2px ink rule instead of a hairline. No SVG filter and no decorative
     artwork: this is a product UI that gets looked at all day. */
  --bw: 2px;
  --lift: 4px 4px 0 var(--fg);
  --lift-sm: 3px 3px 0 var(--fg);
  --head-weight: 400;   /* Darumadrop One has one weight */
  --disp-spacing: 0;
  color-scheme: light;
}

html[data-mode="corp"] {
  --bg: #0b0b0c;
  --bg2: #131316;
  --bg3: #1b1b1f;
  --fg: #f4f4f5;
  --mut: #a1a1aa;
  --bd: #26262a;
  --bd2: #3a3a40;
  --acc: #2864f0;
  --acc2: #7fa3ff;
  --ok: #70d9b2;
  --warn: #ffd166;
  --bad: #ff8a7a;
  --f-disp: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-ui: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 10px;
  --bw: 1px;
  --lift: none;
  --lift-sm: none;
  --head-weight: 650;
  --disp-spacing: -0.02em;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 var(--f-ui);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--acc2); }
a:hover { color: var(--fg); }
:focus-visible { outline: 3px solid var(--acc2); outline-offset: 2px; border-radius: 4px; }
html:not([data-mode="corp"]) :focus-visible { outline-color: var(--acc); outline-offset: 3px; border-radius: 0; }
img, svg { max-width: 100%; }
/* Headings take the display face. Numbers and code never do: that is the rule
   from site/assets/site.css, where money and frame counts are always mono. */
h1, h2, h3 { margin: 0; font-family: var(--f-disp); font-weight: var(--head-weight); letter-spacing: var(--disp-spacing); line-height: 1.15; }
h1 { font-size: clamp(26px, 5vw, 36px); }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
/* Darumadrop One is a round display face: it needs a little more room and sits
   a touch larger than Inter at the same size. */
html:not([data-mode="corp"]) h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.05; }
html:not([data-mode="corp"]) h2 { font-size: 24px; line-height: 1.1; }
html:not([data-mode="corp"]) h3 { font-size: 19px; }
p { margin: 0; }
code, .mono { font-family: var(--f-mono); font-size: 0.92em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--fg); color: var(--bg); padding: 10px 14px;
  border-radius: 6px; font-weight: 600;
}
html:not([data-mode="corp"]) .skip {
  background: var(--yellow); color: var(--fg);
  border: var(--bw) solid var(--fg); border-radius: 0; font-weight: 700;
}
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- Shell ---------- */
.top {
  border-bottom: var(--bw) solid var(--bd);
  background: var(--bg);
  position: sticky; top: 0; z-index: 20;
}
html:not([data-mode="corp"]) .top { border-bottom-width: 3px; }
.top-in {
  max-width: 1180px; margin: 0 auto; padding: 10px var(--pad);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--fg); font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em; min-height: 44px;
}
/* The site's wordmark: the display face, set large and tilted a few degrees. */
html:not([data-mode="corp"]) .logo {
  font-family: var(--f-disp); font-weight: 400; font-size: 27px;
  letter-spacing: 0; transform: rotate(-3deg);
}
.logo-mark { width: 22px; height: 22px; flex: none; }
html:not([data-mode="corp"]) .logo-mark { width: 26px; height: 26px; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.who { color: var(--mut); font-size: 14px; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav {
  border-bottom: var(--bw) solid var(--bd);
  background: var(--bg2);
  overflow-x: auto;
  scrollbar-width: thin;
}
html:not([data-mode="corp"]) .nav { background: var(--sky); border-bottom-width: 3px; }
.nav-in {
  max-width: 1180px; margin: 0 auto; padding: 0 var(--pad);
  display: flex; gap: 2px; min-height: 48px; align-items: stretch;
}
.nav a {
  display: inline-flex; align-items: center; padding: 0 14px;
  color: var(--mut); text-decoration: none; font-size: 15px; font-weight: 500;
  border-bottom: 2px solid transparent; white-space: nowrap; min-height: 44px;
}
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--acc2); }
/* On the sky ground the muted ink would be too light, so Hoist nav links are
   full ink and the current one is marked with the yellow underline. */
html:not([data-mode="corp"]) .nav a { color: var(--fg); font-weight: 700; }
html:not([data-mode="corp"]) .nav a[aria-current="page"] { border-bottom: 4px solid var(--fg); background: var(--yellow); }

/* ---------- The view switch ---------- */
.mode-switch { display: inline-flex; gap: 6px; flex: none; }
.mode-btn {
  min-height: 44px; padding: 0 12px; cursor: pointer;
  border: var(--bw) solid var(--bd2); border-radius: var(--r);
  background: transparent; color: var(--fg);
  font: 700 14px var(--f-ui);
}
.mode-btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
html:not([data-mode="corp"]) .mode-switch { gap: 0; }
html:not([data-mode="corp"]) .mode-btn { border-right-width: 0; }
html:not([data-mode="corp"]) .mode-btn:last-child { border-right-width: var(--bw); }
html:not([data-mode="corp"]) .mode-btn[aria-pressed="true"] { background: var(--yellow); color: var(--fg); }
@media (max-width: 560px) {
  /* On a 375px screen the switch wraps to its own line rather than squeezing
     the workspace name and Sign out. */
  .top-r { width: 100%; margin-left: 0; }
  .mode-btn { padding: 0 10px; }
}

.main { max-width: 1180px; margin: 0 auto; padding: 28px var(--pad) 72px; }
.page-head { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 22px; }
.page-head .grow { flex: 1 1 320px; min-width: 0; }
.page-head p.lede { color: var(--mut); margin-top: 6px; max-width: 68ch; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.tight { gap: 8px; }

/* ---------- Cards ---------- */
.card {
  border: var(--bw) solid var(--bd); border-radius: var(--r);
  background: var(--bg2); padding: var(--pad);
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  box-shadow: var(--lift);
}
.card.flat { background: var(--bg); box-shadow: none; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.big { font-family: var(--f-mono); font-size: clamp(28px, 5vw, 38px); font-weight: 600; letter-spacing: -0.02em; }
.mid { font-family: var(--f-mono); font-size: 20px; font-weight: 600; }
.mut { color: var(--mut); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.warn-text { color: var(--warn); }
.bad-text { color: var(--bad); }
.ok-text { color: var(--ok); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 7px;
  border: var(--bw) solid var(--bd2); background: transparent; color: var(--fg);
  font: 600 15px var(--f-ui); text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--mut); color: var(--fg); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn.pri { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn.pri:hover { background: #1f55d6; border-color: #1f55d6; color: #fff; }
.btn.inv { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn.danger { border-color: #7a3a34; color: var(--bad); }
.btn.danger:hover { background: #2a1715; border-color: var(--bad); }
.btn.link { border: 0; padding: 0 6px; min-height: 32px; color: var(--acc2); text-decoration: underline; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
/* Hoist buttons: a yellow face with an ink rule and the hard offset shadow,
   which is the site's cut-paper button without the SVG filter. The primary one
   is the yellow; the plain one is paper. The shadow shrinks on press, so the
   button looks like it goes down. */
html:not([data-mode="corp"]) .btn {
  border-radius: 0; border-color: var(--fg); background: var(--bg2);
  font-weight: 700; box-shadow: var(--lift-sm);
}
html:not([data-mode="corp"]) .btn:hover { background: var(--bg3); border-color: var(--fg); }
html:not([data-mode="corp"]) .btn:active { box-shadow: 1px 1px 0 var(--fg); transform: translate(2px, 2px); }
html:not([data-mode="corp"]) .btn.pri { background: var(--yellow); border-color: var(--fg); color: var(--fg); }
html:not([data-mode="corp"]) .btn.pri:hover { background: #ffe878; border-color: var(--fg); color: var(--fg); }
html:not([data-mode="corp"]) .btn.inv { background: var(--fg); border-color: var(--fg); color: var(--bg); }
html:not([data-mode="corp"]) .btn.danger { background: var(--bg2); border-color: var(--bad); color: var(--bad); }
html:not([data-mode="corp"]) .btn.danger:hover { background: #ffe9e5; border-color: var(--bad); }
html:not([data-mode="corp"]) .btn.link { border: 0; box-shadow: none; background: transparent; color: var(--acc); }
html:not([data-mode="corp"]) .btn.link:active { box-shadow: none; transform: none; }
html:not([data-mode="corp"]) .btn:disabled,
html:not([data-mode="corp"]) .btn[aria-disabled="true"] { box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  html:not([data-mode="corp"]) .btn:active { transform: none; }
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-weight: 600; font-size: 14px; }
.field .hint { color: var(--mut); font-size: 13px; }
input[type="text"], input[type="email"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  background: var(--bg); color: var(--fg);
  border: var(--bw) solid var(--bd2); border-radius: 7px;
  font: 16px var(--f-ui);
}
html:not([data-mode="corp"]) input[type="text"],
html:not([data-mode="corp"]) input[type="email"],
html:not([data-mode="corp"]) input[type="search"],
html:not([data-mode="corp"]) input[type="date"],
html:not([data-mode="corp"]) select,
html:not([data-mode="corp"]) textarea {
  background: #ffffff; border-color: var(--fg); border-radius: 0;
}
input::placeholder, textarea::placeholder { color: #7a7a82; }
html:not([data-mode="corp"]) input::placeholder,
html:not([data-mode="corp"]) textarea::placeholder { color: #6f6a60; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--acc2); outline-offset: 1px; }
html:not([data-mode="corp"]) input:focus-visible,
html:not([data-mode="corp"]) select:focus-visible,
html:not([data-mode="corp"]) textarea:focus-visible { outline-color: var(--acc); }
fieldset { border: var(--bw) solid var(--bd); border-radius: var(--r); padding: 14px; margin: 0; }
legend { padding: 0 6px; font-weight: 600; font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--acc); }
.filters { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }

/* ---------- Pills and banners ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 12.5px var(--f-ui); padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--bd2); color: var(--mut); white-space: nowrap;
}
.pill.ok { border-color: #2f6b56; color: var(--ok); }
.pill.bad { border-color: #7a3a34; color: var(--bad); }
.pill.warn { border-color: #6d5a22; color: var(--warn); }
.pill.acc { border-color: #2b4b96; color: var(--acc2); }
/* Hoist pills are the site's: mono type in a hard-edged ink box, never a
   colour on its own (status is always in the words too). */
html:not([data-mode="corp"]) .pill {
  font: 600 12.5px var(--f-mono); border-radius: 0;
  border: 1.5px solid var(--fg); color: var(--fg); background: #ffffff;
}
html:not([data-mode="corp"]) .pill.ok { background: #d8f2e5; border-color: var(--fg); color: var(--fg); }
html:not([data-mode="corp"]) .pill.bad { background: #ffddd6; border-color: var(--fg); color: var(--fg); }
html:not([data-mode="corp"]) .pill.warn { background: var(--yellow); border-color: var(--fg); color: var(--fg); }
html:not([data-mode="corp"]) .pill.acc { background: var(--sky); border-color: var(--fg); color: var(--fg); }
.banner {
  border: var(--bw) solid var(--bd2); border-left: 4px solid var(--acc);
  border-radius: 8px; background: var(--bg2); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.banner.warn { border-left-color: var(--warn); }
.banner.bad { border-left-color: var(--bad); }
.banner.ok { border-left-color: var(--ok); }
html:not([data-mode="corp"]) .banner {
  border-radius: 0; border-color: var(--fg);
  border-left: 6px solid var(--acc); box-shadow: var(--lift-sm);
}
html:not([data-mode="corp"]) .banner.warn { border-left-color: #c9a227; background: #fffbe8; }
html:not([data-mode="corp"]) .banner.bad { border-left-color: var(--bad); background: #fff2ef; }
html:not([data-mode="corp"]) .banner.ok { border-left-color: var(--ok); background: #f1fbf6; }

/* ---------- Tables ---------- */
.tablewrap { overflow-x: auto; border: var(--bw) solid var(--bd); border-radius: var(--r); }
html:not([data-mode="corp"]) .tablewrap { background: #ffffff; border-color: var(--fg); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
@media (min-width: 641px) { table { min-width: 560px; } }
caption { text-align: left; padding: 12px 14px; color: var(--mut); font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-top: var(--bw) solid var(--bd); vertical-align: top; }
thead th { border-top: 0; color: var(--mut); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; background: var(--bg3); }
tbody tr:hover { background: #16161a; }
/* The site's ruled table: an ink header band and ink rules between rows. */
html:not([data-mode="corp"]) thead th { background: var(--fg); color: var(--bg); font-family: var(--f-mono); }
html:not([data-mode="corp"]) tbody tr:hover { background: var(--bg); }
td.num, th.num { text-align: right; font-family: var(--f-mono); white-space: nowrap; }
td.actions { white-space: nowrap; }

/* Cards instead of a table under 640px: a 375px screen cannot scroll a table
   comfortably, so each row becomes a labelled block. */
@media (max-width: 640px) {
  .rtable thead { display: none; }
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable tr { border-top: 1px solid var(--bd); padding: 8px 0; }
  .rtable tr:first-child { border-top: 0; }
  .rtable td { border: 0; padding: 6px 14px; }
  .rtable td[data-label]::before {
    content: attr(data-label);
    display: block; color: var(--mut); font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.05em; margin-bottom: 2px;
  }
  .rtable td.num { text-align: left; }
}

/* ---------- Lists and details ---------- */
.deflist { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 8px 20px; margin: 0; }
.deflist dt { color: var(--mut); font-size: 14px; }
.deflist dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .deflist { grid-template-columns: 1fr; gap: 2px; }
  .deflist dt { margin-top: 10px; }
  .top-in { padding: 8px 14px; }
  .who { max-width: 14ch; }
  .main { padding: 20px 14px 56px; }
}
ul.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.item {
  display: flex; gap: 14px; justify-content: space-between; align-items: flex-start;
  padding: 14px 0; border-top: var(--bw) solid var(--bd); flex-wrap: wrap;
}
.item:first-child { border-top: 0; }
.item .meta { color: var(--mut); font-size: 14px; }

/* ---------- States ---------- */
.empty {
  border: var(--bw) dashed var(--bd2); border-radius: var(--r);
  padding: 32px 20px; text-align: center;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.empty h2 { font-size: 18px; }
html:not([data-mode="corp"]) .empty {
  border-radius: 0; border-color: var(--fg); background: var(--bg2);
}
html:not([data-mode="corp"]) .empty h2 { font-size: 24px; }
.empty p { color: var(--mut); max-width: 52ch; }
/* The empty-state mark: the pennant, small, above the heading. Allowed here
   (empty states are one of the places docs/PUBLIC_SITE_NOTES.md lists), and
   hidden in the Corporate view, which carries no character at all.

   `body.plain-page` is every page that deals with payment or money. Those keep
   no marker in either view, which is the rule from docs/PUBLIC_SITE_NOTES.md:
   a Hoist theme there is the colours and the type and nothing else. The markup
   does not put a mark on those pages in the first place; this is the backstop
   for one that gets added later. */
.empty-mark { width: 44px; height: 44px; flex: none; }
html[data-mode="corp"] .empty-mark { display: none; }
body.plain-page .empty-mark,
body.plain-page .signin-art { display: none; }
.failed {
  border: var(--bw) solid #7a3a34; border-radius: var(--r); background: #1b1211;
  padding: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.failed h2 { font-size: 18px; color: var(--bad); }
/* A failure is never jokey or decorated in either view: a plain red-ruled box
   and the server's own message. */
html:not([data-mode="corp"]) .failed {
  border-radius: 0; border-color: var(--bad); background: #fff2ef;
  box-shadow: var(--lift-sm);
}
html:not([data-mode="corp"]) .failed h2 { font-size: 22px; }
.skeleton { display: flex; flex-direction: column; gap: 10px; }
.skel-bar {
  height: 18px; border-radius: 5px;
  background: linear-gradient(90deg, #1b1b1f 25%, #24242a 50%, #1b1b1f 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
html:not([data-mode="corp"]) .skel-bar {
  border-radius: 0;
  background: linear-gradient(90deg, #ece2cf 25%, #f8f1e2 50%, #ece2cf 75%);
  background-size: 200% 100%;
}
.skel-bar.short { width: 45%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .skel-bar { animation: none; }
}
.spin {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--bd2); border-top-color: var(--acc2);
  animation: spin 0.8s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* ---------- Dialog ---------- */
dialog {
  border: var(--bw) solid var(--bd2); border-radius: 12px; background: var(--bg2);
  color: var(--fg); padding: 24px; max-width: min(480px, calc(100vw - 32px));
  width: 100%;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.65); }
dialog h2 { margin-bottom: 8px; }
dialog .row { justify-content: flex-end; margin-top: 8px; }
html:not([data-mode="corp"]) dialog {
  border-radius: 0; border-color: var(--fg); border-width: 3px;
  box-shadow: var(--lift);
}
html:not([data-mode="corp"]) dialog::backdrop { background: rgba(25, 25, 25, 0.55); }

/* ---------- Secret panel ---------- */
.secret {
  border: var(--bw) solid #6d5a22; background: #1c190e; border-radius: var(--r);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.secret code {
  display: block; background: var(--bg); border: 1px solid var(--bd2);
  border-radius: 7px; padding: 12px; overflow-wrap: anywhere;
  font-size: 14px; user-select: all;
}
html:not([data-mode="corp"]) .secret {
  border-radius: 0; border-color: var(--fg); background: var(--yellow);
  box-shadow: var(--lift-sm);
}
html:not([data-mode="corp"]) .secret code {
  background: #ffffff; border-color: var(--fg); border-radius: 0;
}

/* ---------- Sign-in ---------- */
.center-col { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.signin-art { display: flex; justify-content: center; padding: 20px 0 4px; }
/* The sign-in page in the Hoist view sits on the sky ground, like the landing
   page's hero, with the pennant mark above the heading. */
html:not([data-mode="corp"]) .signin-page { background: var(--sky); }
html:not([data-mode="corp"]) .signin-page .main { padding-top: 36px; }
html:not([data-mode="corp"]) .signin-lede { font-weight: 700; color: var(--fg); }
/* Only on sign-in: the heading tilts, the way the site's display type does. */
html:not([data-mode="corp"]) .signin-page h1 { transform: rotate(-1.5deg); }

/* ---------- Footer ---------- */
.foot {
  border-top: var(--bw) solid var(--bd); color: var(--mut); font-size: 13.5px;
  padding: 24px var(--pad) 40px; text-align: center;
}
.foot a { color: var(--mut); }
html:not([data-mode="corp"]) .foot {
  border-top: 3px solid var(--fg); background: var(--yellow); color: var(--fg);
}
html:not([data-mode="corp"]) .foot a { color: var(--fg); }
