/* Secret Zone portal.
   Loaded after site.css (a copy of the lander's), which brings the fonts, the colours (--bg, --ink, --muted, --gold, --gold-2) and the
   page ground. The extra tones below are the roadmap's dark set, so the portal reads as the same product.
   Two themes (buckets plan v2.1 R24, the approved prototype of stage 1): dark is today's look, and a light one on warm
   paper. Every colour is a token on :root. Only a page whose <html> has class "themed" (the signed-in pages) takes the
   light theme: by the device's setting, or by the choice in the bar's theme menu (theme-boot.js, kept in this browser
   only). The front page, the security page and the 404 pages keep their own dark look.
   No inline styles anywhere: the pages run under a Content-Security-Policy with style-src 'self'.
   On the portal pages no text is smaller than 15px; labels keep the lander's uppercase mono. */

/* ---------- theme tokens. Dark is today's look, value for value. ---------- */
:root {
  color-scheme: dark;
  --sheet: #121210;
  --hair: #262420;
  --hair-2: #3e3a31;
  --ink-2: #d3cec3;
  --gold-t: #d9b77e;
  --red: #ff3912;
  --red-t: #ff8d72;
  --red-soft: #3a1a10;
  --live: #8fd694;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --link-line: rgba(217, 183, 126, 0.4);
  --bar-bg: rgba(9, 9, 8, 0.95);
  --side-bg: rgba(9, 9, 8, 0.6);
  --pop-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.9), 0 2px 6px -2px rgba(0, 0, 0, 0.6);
  --tint: rgba(228, 196, 138, 0.1);
  --tint-1: rgba(228, 196, 138, 0.06);
  --tint-2: rgba(228, 196, 138, 0.14);
  --on-gold: #14110c;
  --gold-hover: #f0d7a8;
  --red-tint: rgba(255, 57, 18, 0.12);
  --red-hover: #ff5a38;
  --ph: #8a8477;   /* was #7d776b: 4.2:1 on a field; now 5:1 */
  --input-hover: #5a5548;
  --live-glow: rgba(143, 214, 148, 0.16);
  --card-soft: rgba(18, 18, 16, 0.55);
  --c2: #a897e6;
  --c3: #6fc7b5;
  --c4: #84aaea;
  --c5: #f0906c;
  --live-tint: rgba(143, 214, 148, 0.055);
  --live-tint-2: rgba(143, 214, 148, 0.075);
  --well: #0d0d0b;
  --red-line: rgba(255, 57, 18, 0.45);
  --gate-form: rgba(18, 18, 16, 0.94);
  --gate-a: rgba(9, 9, 8, 0.55);
  --gate-b: rgba(9, 9, 8, 0.2);
  --quiet-fill: rgba(255, 255, 255, 0.07);
  --th-bg: rgba(255, 255, 255, 0.045);
  --row-hover: rgba(255, 255, 255, 0.02);
  --scrim: rgba(0, 0, 0, 0.62);
  --sel: rgba(228, 196, 138, 0.09);
  --skel: rgba(255, 255, 255, 0.06);
  --drop-bg: rgba(18, 18, 16, 0.93);
  --split-line: rgba(20, 17, 12, 0.4);
  --meter-fair: #e4c48a;
  /* the dot field's colours (dotfield.js), three numbers from 0 to 1 each: today's dark field, exactly */
  --df-bg: 0.035294 0.035294 0.031373; --df-ga: 0.2 0.2 0.2; --df-gb: 0.15 0.15 0.15;
  --df-c1: 1 0.2235 0.0706; --df-c2: 1 0.4902 0.2902;
}

/* The front page's two animated marks are SVG documents in an <object>. A document embedded under a colour scheme
   other than its own gets an opaque canvas (white) behind it; the SVGs set no scheme, so their <object> takes the
   default one too and the canvas stays clear, in either theme. The marks' own colours do not depend on it. */
.mark object { color-scheme: normal; }

/* ---------- the light theme (R24): warm paper, the same ink and gold, re-tuned so every text tone is at least 4.5:1
   on the page, on cards and on the tints it sits on. It follows the device unless the person chose (html[data-theme]), on themed pages only.
   The two blocks below hold the same values: one for "match the device", one for "Light" chosen by hand. ---------- */
@media (prefers-color-scheme: light) {
  :root.themed:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f4f1e9; --sheet: #fffdf8; --hair: #e5dfd2; --hair-2: #cbc2af;
    --ink: #1c1a16; --ink-2: #433e36; --muted: #5f584c;
    --gold: #a8823f; --gold-2: #7a581c; --gold-t: #765819;
    --red: #c22e07; --red-t: #a82804; --red-soft: #f6dcd3; --live: #256530;
    --link-line: rgba(118, 88, 25, 0.38); --bar-bg: rgba(244, 241, 233, 0.94); --side-bg: rgba(244, 241, 233, 0.9);
    --pop-shadow: 0 24px 50px -24px rgba(60, 45, 20, 0.35), 0 2px 6px -2px rgba(60, 45, 20, 0.18);
    --tint: rgba(122, 88, 28, 0.09); --tint-1: rgba(122, 88, 28, 0.06); --tint-2: rgba(122, 88, 28, 0.11);
    --on-gold: #fffdf8; --gold-hover: #64470f; --red-tint: rgba(194, 46, 7, 0.08); --red-hover: #a52605;
    --ph: #6f675a; --input-hover: #a99e88; --live-glow: rgba(37, 101, 48, 0.16); --card-soft: rgba(255, 253, 248, 0.72);
    --c2: #6f58c4; --c3: #23866f; --c4: #3d6fc4; --c5: #c95a2f;
    --live-tint: rgba(37, 101, 48, 0.07); --live-tint-2: rgba(37, 101, 48, 0.1); --well: #f1ece2;
    --red-line: rgba(194, 46, 7, 0.45); --gate-form: rgba(255, 253, 248, 0.94);
    --gate-a: #f4f1e9; --gate-b: #f4f1e9;
    --quiet-fill: rgba(28, 26, 22, 0.06); --th-bg: rgba(28, 26, 22, 0.04); --row-hover: rgba(28, 26, 22, 0.025);
    --scrim: rgba(36, 30, 20, 0.42); --sel: rgba(122, 88, 28, 0.08); --skel: rgba(28, 26, 22, 0.07);
    --dots: rgba(122, 88, 28, 0.16); --f1: .14; --f2: .08;
  --drop-bg: rgba(255, 253, 248, 0.94); --split-line: rgba(255, 253, 248, 0.45); --meter-fair: #a8823f;
    --df-bg: 0.957 0.945 0.914; --df-ga: 0.82 0.76 0.67; --df-gb: -0.2 -0.21 -0.21; --df-c1: 0.6 0.29 0.09; --df-c2: 0.72 0.36 0.14;
  }
}
:root.themed[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1e9; --sheet: #fffdf8; --hair: #e5dfd2; --hair-2: #cbc2af;
  --ink: #1c1a16; --ink-2: #433e36; --muted: #5f584c;
  --gold: #a8823f; --gold-2: #7a581c; --gold-t: #765819;
  --red: #c22e07; --red-t: #a82804; --red-soft: #f6dcd3; --live: #256530;
  --link-line: rgba(118, 88, 25, 0.38); --bar-bg: rgba(244, 241, 233, 0.94); --side-bg: rgba(244, 241, 233, 0.9);
  --pop-shadow: 0 24px 50px -24px rgba(60, 45, 20, 0.35), 0 2px 6px -2px rgba(60, 45, 20, 0.18);
  --tint: rgba(122, 88, 28, 0.09); --tint-1: rgba(122, 88, 28, 0.06); --tint-2: rgba(122, 88, 28, 0.11);
  --on-gold: #fffdf8; --gold-hover: #64470f; --red-tint: rgba(194, 46, 7, 0.08); --red-hover: #a52605;
  --ph: #6f675a; --input-hover: #a99e88; --live-glow: rgba(37, 101, 48, 0.16); --card-soft: rgba(255, 253, 248, 0.72);
  --c2: #6f58c4; --c3: #23866f; --c4: #3d6fc4; --c5: #c95a2f;
  --live-tint: rgba(37, 101, 48, 0.07); --live-tint-2: rgba(37, 101, 48, 0.1); --well: #f1ece2;
  --red-line: rgba(194, 46, 7, 0.45); --gate-form: rgba(255, 253, 248, 0.94);
  --gate-a: #f4f1e9; --gate-b: #f4f1e9;
  --quiet-fill: rgba(28, 26, 22, 0.06); --th-bg: rgba(28, 26, 22, 0.04); --row-hover: rgba(28, 26, 22, 0.025);
  --scrim: rgba(36, 30, 20, 0.42); --sel: rgba(122, 88, 28, 0.08); --skel: rgba(28, 26, 22, 0.07);
  --dots: rgba(122, 88, 28, 0.16); --f1: .14; --f2: .08;
  --drop-bg: rgba(255, 253, 248, 0.94); --split-line: rgba(255, 253, 248, 0.45); --meter-fair: #a8823f;
    --df-bg: 0.957 0.945 0.914; --df-ga: 0.82 0.76 0.67; --df-gb: -0.2 -0.21 -0.21; --df-c1: 0.6 0.29 0.09; --df-c2: 0.72 0.36 0.14;
}
/* the brand mark: the gold drawing for dark, a deeper bronze one for light paper */
.brand .mark-light { display: none; }
:root.themed[data-theme="light"] .brand .mark-dark { display: none; }
:root.themed[data-theme="light"] .brand .mark-light { display: block; }
@media (prefers-color-scheme: light) {
  :root.themed:not([data-theme="dark"]) .brand .mark-dark { display: none; }
  :root.themed:not([data-theme="dark"]) .brand .mark-light { display: block; }
}

/* ================= the public page: the mark, the login control ================= */

.pub-bar {
  position: absolute;
  z-index: 2;
  top: calc(20px + env(safe-area-inset-top, 0px));
  left: calc(24px + env(safe-area-inset-left, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pub-mark { display: block; width: 44px; height: 44px; border-radius: 50%; }
.pub-mark img { display: block; width: 100%; height: 100%; }
.pub-mark:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }
.pub-bar .soon { margin: 0; }
.pub-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.pub-acts .soon[hidden] { display: none; }
@media (max-width: 480px) {
  .pub-bar { top: calc(14px + env(safe-area-inset-top, 0px)); left: calc(16px + env(safe-area-inset-left, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
}

/* ================= the portal pages ================= */

body.portal {
  --gut: clamp(16px, 2.3vw, 48px);
  --lbl: clamp(15px, 0.1vw + 13.6px, 16px);
  font-size: clamp(16px, 0.34vw + 11.2px, 18.5px);
  line-height: 1.55;
}
body.portal::before { opacity: 0.55; }

.portal :focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.portal h1[tabindex="-1"]:focus, .portal h2[tabindex="-1"]:focus, .portal .notice[tabindex="-1"]:focus { outline: 0; }   /* focus is moved to a new heading for screen readers; it is not a control */
.portal [hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: var(--mono); font-weight: 500; font-size: max(15px, 0.94em); letter-spacing: 0; }
.muted { color: var(--muted); }
.nb { white-space: nowrap; }
.addr { overflow-wrap: anywhere; }

.portal a { color: var(--gold-t); text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px; }
.portal a:hover { color: var(--ink); text-decoration-color: currentColor; }
.portal p { margin: 0; }

/* site.css styles the bare main, header and h1 for the lander's first screen; the portal sets its own. */
.portal main { position: relative; z-index: 1; display: block; min-height: 0; padding: 0 var(--gut) 120px; text-align: left; }
.portal h1 { margin: 0; font: 400 clamp(40px, 3.5vw, 68px)/1 var(--serif); letter-spacing: -0.025em; overflow-wrap: anywhere; }
.portal h2 { margin: 0; font: 400 clamp(30px, 2.7vw, 44px)/1.05 var(--serif); letter-spacing: -0.015em; }
.portal h3 { margin: 0; font: 600 1em/1.3 var(--sans); }

.kicker, .lbl, .portal dt, .portal th {
  font: 500 var(--lbl)/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker { margin: 0; color: var(--gold-t); }


/* ---------- the frame: a slim bar (the mark, the account menu), a side menu with a row per section, the page ---------- */
body.portal.framed { --bar: 58px; --side: clamp(13.5em, 16vw, 17.5em); }
.portal .topbar {
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: auto;
  max-width: none;
  height: var(--bar);
  padding: 0 var(--gut) 0 max(16px, calc(var(--gut) - 12px));
  border-bottom: 1px solid var(--hair);
  background: var(--bar-bg);
}
.portal .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { display: block; width: 32px; height: 32px; }
.brand-name { font: 400 27px/1 var(--serif); letter-spacing: -0.025em; }
.brand-name i { color: var(--gold-2); }
.gate .brand img { width: 38px; height: 38px; }
.gate .brand-name { font-size: 31px; }
.bar-right { display: flex; align-items: center; gap: 10px; }
.ico { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico.big { width: 46px; height: 46px; stroke-width: 0.9; color: var(--gold-t); }

.acct { position: relative; }
.acct summary { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--hair-2); border-radius: 999px; color: var(--ink-2); cursor: pointer; list-style: none; }
.acct summary::-webkit-details-marker { display: none; }
.acct summary:hover, .acct[open] summary { border-color: var(--ink-2); color: var(--ink); }
.acct-menu { position: absolute; z-index: 10; right: 0; top: calc(100% + 8px); display: grid; min-width: 16em; padding: 8px; border: 1px solid var(--hair-2); border-radius: 8px; background: var(--sheet); box-shadow: var(--pop-shadow); }
.acct-as { padding: 8px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--hair); color: var(--muted); font-size: max(15px, 0.92em); }
.acct-as .js-who { display: block; color: var(--ink); font: 500 max(15px, 0.94em)/1.5 var(--mono); overflow-wrap: anywhere; }
.portal .acct-menu a { padding: 11px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.portal .acct-menu a:hover { background: var(--tint); color: var(--gold-2); }

.side { display: none; padding: 12px max(4px, calc(var(--gut) - 12px)) 14px; border-bottom: 1px solid var(--hair); background: var(--side-bg); }
.side.open { display: block; }
.side-acct { display: grid; gap: 2px; margin: 0; padding: 4px 12px 12px; }
.side-acct .lbl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.who-mail { color: var(--ink); overflow-wrap: anywhere; }
.side-nav { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--hair); }
.portal .side-nav a, .side-collapse {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-2);
  font: 500 var(--lbl)/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.portal .side-nav a:hover, .side-collapse:hover { background: var(--tint-1); color: var(--ink); }
.portal .side-nav a[aria-current="page"] { background: var(--tint-2); color: var(--gold-2); font-weight: 600; }
.portal .side-nav a:focus-visible, .portal .side-collapse:focus-visible { outline-offset: -2px; }
.side-foot { display: none; }
.tag {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  font: 500 var(--lbl)/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-t);
  white-space: nowrap;
}
@media (min-width: 1100px) {
  body.portal.framed { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); grid-template-rows: var(--bar) auto; align-items: start; }
  .portal .topbar { grid-column: 1 / -1; }
  .portal .topbar .menu-btn { display: none; }
  .side, .side.open { position: sticky; top: var(--bar); display: flex; flex-direction: column; height: calc(100vh - var(--bar)); height: calc(100dvh - var(--bar)); padding: 16px 12px 20px; border-bottom: 0; border-right: 1px solid var(--hair); background: none; overflow-y: auto; }
  .side-foot { display: grid; gap: 4px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hair); }
  /* folded: the icons alone */
  body.portal.framed.side-collapsed { --side: 70px; }
  .side-collapsed .side { padding: 16px 10px 20px; }
  .side-collapsed .side-acct { display: none; }
  .side-collapsed .side-nav { padding-top: 0; border-top: 0; }
  .side-collapsed .side-nav a, .side-collapsed .side-collapse { justify-content: center; padding: 0; }
  .side-collapsed .side-nav a span, .side-collapsed .side-collapse span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .side-collapsed .side-collapse .ico { transform: rotate(180deg); }
}

/* ---------- buttons, in the lander's pill ---------- */
.portal .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--gold-2);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-2);
  font: 500 var(--lbl)/1 var(--sans);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.portal .btn:hover { background: var(--tint); color: var(--gold-2); }
.portal .btn.solid { background: var(--gold-2); color: var(--on-gold); }
.portal .btn.solid:hover { background: var(--gold-hover); color: var(--on-gold); }
.portal .btn.quiet { border-color: var(--hair-2); color: var(--ink-2); }
.portal .btn.quiet:hover { border-color: var(--ink-2); background: transparent; color: var(--ink); }
.portal .btn.danger { border-color: var(--red); color: var(--red-t); }
.portal .btn.danger:hover { background: var(--red-tint); }
.portal .btn.danger.solid { background: var(--red); color: var(--on-gold); }
.portal .btn.danger.solid:hover { background: var(--red-hover); }
.portal .btn.small { min-height: 40px; padding: 0 16px; letter-spacing: 0.09em; }
.portal .btn:disabled { opacity: 0.38; cursor: default; }
.portal .btn[aria-disabled="true"] { opacity: 0.62; cursor: progress; }
.portal .btn.wide { width: 100%; min-height: 50px; }
@media (pointer: coarse) { .portal .btn.small { min-height: 44px; } }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--gold-t); font: inherit; text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--ink); }

/* ---------- form fields ---------- */
.fld { display: grid; align-content: start; gap: 7px; min-width: 0; }
.fld label, .fld .fld-top { font: 500 var(--lbl)/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fld .fld-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.fld .fld-top .tag { padding-block: 0; }
.input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--hair-2);
  border-radius: 8px;
  background: var(--sheet);
  color: var(--ink);
  font: 400 max(16px, 1em)/1.3 var(--sans);
  letter-spacing: 0;
}
.input.mono { font-family: var(--mono); font-weight: 500; }
select.input { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.input::placeholder { color: var(--ph); }
.input:hover { border-color: var(--input-hover); }
.portal .input:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 1px; border-color: var(--gold-2); }
.input[readonly] { border-style: dashed; background: transparent; color: var(--ink-2); }
.input[aria-invalid="true"] { border-color: var(--red); }
.input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 100px var(--sheet) inset; caret-color: var(--ink); }
.fld .hint, .hint { color: var(--muted); font-size: max(15px, 0.92em); }
.fld .err, .err { color: var(--red-t); font-size: max(15px, 0.92em); }
.ok { color: var(--live); }
.hint .mono, .note .mono, .err .mono { font-size: 1em; }

/* ---------- a state: a dot and a word ---------- */
.st { display: inline-flex; align-items: center; gap: 8px; font: 500 var(--lbl)/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.st::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.st.live { color: var(--live); }
.st.live::before { background: currentColor; box-shadow: 0 0 0 4px var(--live-glow); }
.st.building { color: var(--gold-2); }
.st.building::before { background: currentColor; box-shadow: none; animation: st-pulse 1.3s ease-in-out infinite; }
.st.failed { color: var(--red-t); }
.st.failed::before { background: var(--red); box-shadow: none; }
.st.wait { color: var(--muted); }
@keyframes st-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
@media (prefers-reduced-motion: reduce) { .st.building::before { animation: none; } }

/* ---------- page head, sections ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: clamp(18px, 1.8vw, 30px) 0 0; list-style: none; font: 500 var(--lbl)/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--hair-2); }
.portal .crumbs a { text-decoration: none; }
.portal .crumbs a:hover { text-decoration: underline; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; padding: clamp(18px, 1.9vw, 34px) 0 clamp(18px, 1.9vw, 32px); }
.crumbs + .page-head { padding-top: clamp(8px, 0.9vw, 14px); }
.page-head > div { min-width: 0; }
.page-head .lede { max-width: 64ch; color: var(--ink-2); }
.page-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.page-tools .input { width: 17em; max-width: 100%; min-height: 44px; border-radius: 999px; padding-inline: 18px; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.addr-row { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 12px; color: var(--ink-2); }
.addr-row .lbl { margin-right: 10px; }

.sec { min-width: 0; padding: clamp(20px, 1.9vw, 34px) 0 clamp(22px, 2.1vw, 38px); border-top: 1px solid var(--hair); }
.sec-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 8px 22px; margin-bottom: clamp(14px, 1.3vw, 22px); }
.sec-head > p { color: var(--ink-2); }
.sec-head > .btn, .sec-head > a { align-self: center; }
@media (max-width: 720px) {
  .sec-head { grid-template-columns: minmax(0, 1fr) auto; }
  .sec-head > p { grid-column: 1 / -1; grid-row: 2; }
}
.sec .note { margin-top: 16px; color: var(--muted); }

.rule { position: relative; margin: 16px 0 0; padding: 12px 0 12px 18px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); color: var(--ink); }
.rule::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; background: var(--red); }
.rule strong { font-weight: 600; }
.notice { position: relative; padding: 14px 18px; border: 1px solid var(--hair-2); border-left: 3px solid var(--gold); border-radius: 8px; background: var(--sheet); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.notice.flash { margin-top: clamp(16px, 1.6vw, 28px); }
.notice.red { border-left-color: var(--red); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13em, 1fr)); gap: 14px 28px; margin: 0; }
.facts > div { min-width: 0; }
.portal dd { margin: 3px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.pairs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 9px 22px; margin: 0; align-items: baseline; }
.pairs dd { margin: 0; }

.card { min-width: 0; padding: clamp(18px, 1.7vw, 30px); border: 1px solid var(--hair-2); border-top: 3px solid var(--gold); border-radius: 8px; background: var(--sheet); }
.card.plain { border-top-width: 1px; }
.portal .card h2 { font-size: clamp(30px, 2.5vw, 42px); }
.card > h2 + p, .card > .kicker + h2, .step-k + h2 { margin-top: 10px; }
.card > h2 + p { color: var(--ink-2); max-width: 62ch; }
.card-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.portal .card h2.kicker { font: 500 var(--lbl)/1.4 var(--mono); letter-spacing: 0.1em; }
.stack { display: grid; gap: clamp(14px, 1.4vw, 24px); }
.tab-body > .note { margin-top: 12px; }
.block > .hint { margin-top: 12px; }
.block > .hint + .hint { margin-top: 4px; }
.tab-body > .sec { margin-top: clamp(14px, 1.4vw, 24px); }


/* ---------- home ---------- */
.home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 clamp(28px, 2.8vw, 60px); align-items: start; }
.home > * { min-width: 0; }
.home > .sec { border-top: 0; padding-top: 0; }
@media (min-width: 1400px) {
  .home { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-template-areas: "sites side" "builds side"; grid-template-rows: auto 1fr; }
  .home.many { grid-template-areas: "sites sites" "builds side"; }
  .home > .h-sites { grid-area: sites; }
  .home > .h-builds { grid-area: builds; }
  .home > .h-side { grid-area: side; }
}
.h-builds { margin-top: clamp(20px, 2vw, 36px); }
.h-side { display: grid; gap: clamp(16px, 1.6vw, 28px); }
@media (max-width: 1399px) { .h-side { margin-top: clamp(20px, 2vw, 36px); } }
.home.many .h-side { margin-top: clamp(20px, 2vw, 36px); }

.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(12px, 1.1vw, 20px); margin: 0; padding: 0; list-style: none; }
.home.many .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 21em), 1fr)); }
.site-card { position: relative; display: grid; align-content: start; gap: 14px; min-width: 0; padding: clamp(16px, 1.5vw, 26px); border: 1px solid var(--hair); border-radius: 8px; background: var(--card-soft); transition: background-color 0.15s ease, border-color 0.15s ease; }
.site-card:hover { border-color: var(--hair-2); background: var(--sheet); }
.site-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; }
.portal .site-card h2 { font: 400 clamp(30px, 2.3vw, 42px)/1.05 var(--serif); letter-spacing: -0.015em; overflow-wrap: anywhere; }
.portal .site-card h2 a { color: var(--ink); text-decoration: none; }
.portal .site-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.portal .site-card:hover h2 a { color: var(--gold-2); }
.home.many .site-card .facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.card-note { position: relative; z-index: 1; padding-top: 12px; border-top: 1px solid var(--hair); color: var(--ink-2); font-size: max(15px, 0.94em); }
.empty { padding: 22px 0; border-top: 1px solid var(--hair); color: var(--ink-2); }

.empty-hero { display: grid; gap: 18px; padding: clamp(22px, 3vw, 60px); border: 1px solid var(--hair-2); border-top: 3px solid var(--gold); border-radius: 8px; background: var(--sheet); }
.portal .empty-hero h2 { font-size: clamp(38px, 3.6vw, 68px); }
.empty-hero > p { max-width: 58ch; color: var(--ink-2); }
.how3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13em), 1fr)); gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; counter-reset: how; }
.how3 li { counter-increment: how; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 16px; border: 1px solid var(--hair); border-radius: 8px; }
.how3 li::before { content: counter(how); grid-row: 1 / span 2; display: grid; place-items: center; width: 2.2em; height: 2.2em; border: 1px solid var(--hair-2); border-radius: 50%; font: 500 15px/1 var(--mono); color: var(--gold-t); }
.how3 b { font-weight: 600; }
.how3 span { grid-column: 2; color: var(--muted); font-size: max(15px, 0.94em); }
.h-side .how3 { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 14px; }
.h-side .how3 li { padding: 13px 0; border: 0; border-top: 1px solid var(--hair); border-radius: 0; }

.big { display: flex; align-items: baseline; gap: 12px; margin: 0; line-height: 1; }
.big .num { font: 400 clamp(64px, 5.6vw, 112px)/0.9 var(--serif); letter-spacing: -0.03em; color: var(--ink); }
.big .unit { font: 500 clamp(15px, 1.1vw, 20px)/1 var(--mono); letter-spacing: 0.12em; color: var(--gold-t); }
.big + p { margin-top: 10px; color: var(--ink-2); }
.use-list { margin: clamp(14px, 1.4vw, 24px) 0 0; padding: 0; list-style: none; }
.use-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px 16px; padding: 11px 0; border-top: 1px solid var(--hair); }
.use-list .bar { grid-column: 1 / -1; }
.portal .use-list a { color: var(--ink); text-decoration: none; }
.portal .use-list a:hover { color: var(--gold-2); }
.bar { display: block; height: 6px; background: var(--hair); }
.bar i { display: block; height: 100%; width: calc(var(--v, 0) * 100%); min-width: 0; background: var(--gold); }
.bar.multi { display: flex; height: 10px; gap: 2px; margin-top: 20px; background: none; }
.bar.multi i { width: auto; flex: var(--v, 0) 1 0; min-width: 2px; }
.bar.multi i.none { flex: 1 1 0; background: var(--hair); }
.bar i.c2 { background: var(--c2); }
.bar i.c3 { background: var(--c3); }
.bar i.c4 { background: var(--c4); }
.bar i.c5 { background: var(--c5); }

/* ---------- tables: builds, storage, users, DNS record ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.portal th { padding: 0 16px 9px 0; text-align: left; font-weight: 500; white-space: nowrap; }
.tbl td { padding: 13px 16px 13px 0; border-top: 1px solid var(--hair); vertical-align: baseline; overflow-wrap: anywhere; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl .act { text-align: right; white-space: nowrap; }
.tbl .tight { white-space: nowrap; }
.tbl .msg { color: var(--ink-2); }
.tbl tr.is-live { background: var(--live-tint); }
.tbl tr.is-live td:first-child { box-shadow: inset 3px 0 0 var(--live); padding-left: 14px; }
.tbl tr.is-live td:last-child { padding-right: 12px; }
.tbl tr.sub td { padding: 0 0 4px; border-top: 0; }
.tbl tr.is-live + tr.sub { background: var(--live-tint); }
.tbl tr.is-live + tr.sub td { padding-left: 14px; box-shadow: inset 3px 0 0 var(--live); }
.tbl tfoot td { border-top: 1px solid var(--hair-2); font-weight: 600; }
.tbl .barcell { width: 20%; min-width: 90px; vertical-align: middle; }
.portal .tbl a.plain { color: var(--ink); text-decoration: none; }
.portal .tbl a.plain:hover { color: var(--gold-2); }
@media (max-width: 860px) {
  .tbl, .tbl tbody, .tbl tfoot, .tbl tr, .tbl td { display: block; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; padding: 14px 0; border-top: 1px solid var(--hair); }
  .tbl td { padding: 0; border: 0; }
  .tbl td:empty { display: none; }
  .tbl td[data-l]::before { content: attr(data-l); display: block; margin-bottom: 2px; font: 500 var(--lbl)/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
  .tbl td.full, .tbl td.act, .tbl td.barcell { grid-column: 1 / -1; width: auto; }
  .tbl .num, .tbl .act { text-align: left; }
  .tbl .act { white-space: normal; }
  .tbl tr.is-live { padding-left: 14px; padding-right: 12px; box-shadow: inset 3px 0 0 var(--live); }
  .tbl tr.is-live td:first-child { box-shadow: none; padding-left: 0; }
  .tbl tr.is-live td:last-child { padding-right: 0; }
  .tbl tr.sub { display: block; padding: 0 0 10px; border-top: 0; }
  .tbl tr.is-live + tr.sub { padding-left: 14px; box-shadow: inset 3px 0 0 var(--live); }
  .tbl tr.is-live + tr.sub td { padding-left: 0; box-shadow: none; }
  .tbl tfoot tr { border-top-color: var(--hair-2); }
  .tbl tfoot td { border: 0; }
}

/* a build's receipt and log, opened under its row */
.rcpt summary { display: inline-flex; align-items: center; gap: 8px; padding: 2px 0 10px; color: var(--gold-t); cursor: pointer; list-style: none; font-size: max(15px, 0.94em); }
.rcpt summary::-webkit-details-marker { display: none; }
.rcpt summary::before { content: "+"; width: 1em; font: 500 1em/1 var(--mono); }
.rcpt[open] summary::before { content: "\2212"; }
.rcpt summary:hover { color: var(--ink); }
.rcpt-body { display: grid; gap: 14px; padding: 4px 0 18px; }
@media (min-width: 1280px) { .rcpt-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: start; gap: 28px; } }
.log { margin: 0; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 8px; background: var(--well); color: var(--ink-2); font: 500 max(15px, 0.86em)/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.log.bad { border-color: var(--red-line); }
.log.follow { max-height: min(70vh, 48em); overflow: auto; }
.log-box + .hint { margin-top: 12px; }

.stor-usage { margin-top: clamp(22px, 2vw, 36px); padding-top: clamp(16px, 1.4vw, 24px); border-top: 1px solid var(--hair); }
.stor-usage .bar { margin-top: 12px; }
.stor-usage .bar.full i { background: var(--red); }
.stor-usage .hint { margin-top: 12px; }

/* ---------- one site: tabs and their panels ---------- */
.tabs { position: relative; display: flex; gap: 2px; margin: 0 calc(-1 * var(--gut)); padding: 0 calc(var(--gut) - 14px); border-bottom: 1px solid var(--hair); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.portal .tabs a { flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--ink-2); font: 500 var(--lbl)/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.portal .tabs a:hover { color: var(--ink); }
.portal .tabs a[aria-current="page"] { color: var(--gold-2); border-bottom-color: var(--gold-2); }
.portal .tabs a:focus-visible { outline-offset: -3px; }
.tab-body { padding-top: clamp(20px, 2vw, 36px); }
.tab-body > .sec:first-child { border-top: 0; padding-top: 0; }

.ov { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 1.8vw, 32px); align-items: start; }
.ov > * { min-width: 0; display: grid; gap: clamp(16px, 1.8vw, 32px); }
@media (min-width: 1400px) { .ov { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); } }
.prod-addr { margin-top: 12px; font: 500 clamp(20px, 1.8vw, 32px)/1.25 var(--mono); color: var(--gold-2); overflow-wrap: anywhere; }
.prod-addr.off { color: var(--muted); }
.prod-addr + .muted, .prod-addr + .mono { margin-top: 2px; }
.card .facts { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair); }
.card .btn-row { margin-top: 18px; }
.card > .notice { margin-top: 18px; background: transparent; }
.card > .hint { margin-top: 12px; }
.mini h3 { font: 500 var(--lbl)/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-t); }
.mini .rows { margin: 12px 0 0; padding: 0; list-style: none; }
.mini .rows li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 11px 0; border-top: 1px solid var(--hair); }
.mini .rows li > :first-child { min-width: 0; overflow-wrap: anywhere; }
.mini > p { margin-top: 12px; }

.set { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px clamp(28px, 3vw, 64px); }
@media (min-width: 1280px) { .set { grid-template-columns: minmax(13em, 0.55fr) minmax(0, 1.45fr); } }
.set > div { min-width: 0; }
.set > div:first-child p { margin-top: 8px; color: var(--ink-2); }
.set-body { display: grid; gap: 16px; max-width: 54em; }
.repo-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.repo-name { font: 500 clamp(18px, 1.35vw, 24px)/1.3 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13em), 1fr)); gap: 14px 16px; }
.form-grid .span { grid-column: 1 / -1; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

.danger-zone { display: grid; gap: 14px; padding: clamp(16px, 1.6vw, 26px); border: 1px solid var(--red-line); border-radius: 8px; }
.card.danger-zone { border-color: var(--red-line); }
.tag.danger { border-color: var(--red-line); color: var(--red-t); }
.portal .danger-zone h3 { font: 400 clamp(26px, 2vw, 34px)/1.1 var(--serif); letter-spacing: -0.01em; }
.danger-zone ul { margin: 0; padding: 0 0 0 1.2em; color: var(--ink-2); }
.danger-zone li + li { margin-top: 4px; }
.confirm { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--hair); }
.confirm .fld { max-width: 26em; }

.domain-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 14px 0; border-top: 1px solid var(--hair); }
.domain-row .repo-name { margin-right: auto; }
.domain-row .muted { flex-basis: 100%; }
.card-top + .domain-row { margin-top: 12px; }
.card > h2 + .muted, .card-top + .muted { margin-top: 6px; }
.fld-under { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 30px; }
.tbl.builds td:nth-child(3) .addr { font-size: max(15px, 0.9em); }
.record { margin-top: 6px; }
.record td.mono { color: var(--ink); }

.gone { max-width: 60ch; padding: clamp(28px, 4vw, 64px) 0; }
.gone p { margin-top: 14px; color: var(--ink-2); }
.gone .btn-row { margin-top: 26px; }

/* ---------- new site: the steps, the step in hand, what is known so far ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 2vw, 40px); align-items: start; }
.flow > * { min-width: 0; }
@media (min-width: 1560px) { .flow { grid-template-columns: minmax(14em, 0.78fr) minmax(0, 2fr) minmax(17em, 1fr); } }
@media (min-width: 900px) and (max-width: 1559px) { .flow { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } .flow .fsteps { grid-column: 1 / -1; } }

.flow-main { display: grid; gap: clamp(14px, 1.4vw, 24px); }
.card.pending { border-style: dashed; background: transparent; }
.card.pending .muted { margin-top: 8px; max-width: 62ch; }
.fsteps { margin: 0; padding: 0; list-style: none; counter-reset: fs; }
.fsteps li { counter-increment: fs; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); align-items: start; gap: 2px 14px; padding: 13px 0; border-top: 1px solid var(--hair); color: var(--ink-2); }
.fsteps li::before { content: counter(fs); grid-row: 1 / span 2; display: grid; place-items: center; width: 2.2em; height: 2.2em; border: 1px solid var(--hair-2); border-radius: 50%; font: 500 15px/1 var(--mono); color: var(--ink-2); }
.fsteps .s-t { font-weight: 600; }
.fsteps .s-d { grid-column: 2; color: var(--muted); font-size: max(15px, 0.92em); }
.fsteps li.done::before { content: "\2713"; border-color: var(--live); color: var(--live); }
.fsteps li.now::before { border-color: var(--gold-2); background: var(--gold-2); color: var(--on-gold); }
.fsteps li.now .s-t { color: var(--ink); }
@media (max-width: 1559px) {
  .fsteps { display: flex; align-items: center; gap: 10px; }
  .fsteps li { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; }
  .fsteps li + li::after { content: ""; order: -1; width: clamp(8px, 3vw, 40px); height: 1px; background: var(--hair-2); }
  .fsteps .s-d { display: none; }
  .fsteps li:not(.now) .s-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 900px) and (max-width: 1559px) { .fsteps li:not(.now) .s-t { position: static; width: auto; height: auto; overflow: visible; clip-path: none; } }

.step-k { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step-body { display: grid; gap: 18px; margin-top: 20px; }
.step-body .form-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12em), 1fr)); }
.addr-live { font: 500 clamp(18px, 1.5vw, 26px)/1.3 var(--mono); color: var(--gold-2); overflow-wrap: anywhere; }
.addr-live.off { color: var(--muted); }

.repo-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.repo-tools .input { flex: 1 1 14em; min-height: 46px; }
.repo-list { margin: 0; padding: 0; border: 1px solid var(--hair-2); border-radius: 8px; list-style: none; overflow: hidden; }
.repo-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 11px 14px; border-top: 1px solid var(--hair); }
.repo-list li:first-child { border-top: 0; }
.repo-list .r-name { min-width: 0; margin-right: auto; overflow-wrap: anywhere; }
.repo-list .r-name .mono { display: block; color: var(--ink); }
.repo-list .r-name small { display: block; color: var(--muted); font-size: max(15px, 0.9em); }
.repo-list li.taken .r-name .mono { color: var(--muted); }
.repo-list li.new { background: var(--tint-1); box-shadow: inset 3px 0 0 var(--gold-2); }
.repo-list li.none { color: var(--muted); }

.chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 12px 14px; border: 1px solid var(--hair-2); border-radius: 8px; }
.chosen .mono { margin-right: auto; overflow-wrap: anywhere; color: var(--ink); }

.build-box { display: grid; gap: 14px; padding: 16px 18px; border: 1px solid var(--hair-2); border-radius: 8px; }
.build-box .facts { grid-template-columns: repeat(auto-fit, minmax(9em, 1fr)); }
.build-box.bad { border-color: var(--red-line); }
.todo { font: 400 clamp(22px, 1.9vw, 32px)/1.2 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.todo code { font: 500 0.78em/1 var(--mono); color: var(--gold-2); letter-spacing: 0; }
.code { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 12px 12px 12px 16px; border: 1px solid var(--hair-2); border-radius: 8px; background: var(--well); }
.code pre { margin: 0; padding: 6px 0; color: var(--ink); font: 500 max(15px, 0.9em)/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 520px) { .code { grid-template-columns: minmax(0, 1fr); } }

.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--hair-2); border-radius: 999px; overflow: hidden; }
.seg button { padding: 5px 12px; border: 0; background: transparent; color: var(--ink-2); font: inherit; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.portal .seg button:focus-visible { outline-offset: -3px; }

.sofar .pairs { margin-top: 14px; grid-template-columns: minmax(0, 1fr); gap: 0; }
.sofar .pairs dt { padding-top: 11px; border-top: 1px solid var(--hair); }
.sofar .pairs dd { padding-bottom: 11px; }
.sofar .pairs dt:first-of-type { border-top: 0; padding-top: 0; }
.sofar .how3 { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 10px; }
.sofar .how3 li { padding: 13px 0; border: 0; border-top: 1px solid var(--hair); border-radius: 0; }
.sofar .how3 li:first-child { border-top: 0; }

.card > .prod-addr + .btn-row { margin-top: 16px; }
.next { margin-top: 22px; padding: 16px 18px 6px; border: 1px solid var(--hair-2); border-radius: 8px; }
.next .how3 { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 6px; }
.next .how3 li { padding: 13px 0; border: 0; border-top: 1px solid var(--hair); border-radius: 0; }
.next .how3 li:first-child { border-top: 0; }
.how3.checks li.done::before { content: "\2713"; border-color: var(--live); color: var(--live); }
.next + .hint { margin-top: 14px; }

/* ---------- storage ---------- */
.stor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 clamp(32px, 3vw, 64px); align-items: start; }
@media (min-width: 1400px) { .stor { grid-template-columns: minmax(18em, 0.5fr) minmax(0, 1fr); } .stor > .sec:first-child { position: sticky; top: var(--bar, 0px); } }
.stor > div { min-width: 0; }
.keylist { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.keylist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 10px; }
.keylist i { width: 10px; height: 10px; background: var(--gold); }
.keylist i.c2 { background: var(--c2); } .keylist i.c3 { background: var(--c3); } .keylist i.c4 { background: var(--c4); } .keylist i.c5 { background: var(--c5); }
.stor-site { border-top: 1px solid var(--hair); }
.stor-site summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 6px 22px; padding: clamp(14px, 1.3vw, 22px) 0; cursor: pointer; list-style: none; }
.stor-site summary::-webkit-details-marker { display: none; }
.stor-site summary .s-name { font: 400 clamp(28px, 2.3vw, 40px)/1.05 var(--serif); letter-spacing: -0.015em; }
.stor-site summary .s-name::before { content: "+"; display: inline-block; width: 1em; font: 500 0.55em/1 var(--mono); color: var(--gold-t); vertical-align: 0.25em; }
.stor-site[open] summary .s-name::before { content: "\2212"; }
.stor-site summary .tot { font: 500 clamp(17px, 1.2vw, 22px)/1.2 var(--mono); color: var(--gold-t); white-space: nowrap; }
.stor-site summary:hover .s-name { color: var(--gold-2); }
.stor-site > div { padding-bottom: clamp(16px, 1.6vw, 28px); }
@media (max-width: 600px) { .stor-site summary { grid-template-columns: minmax(0, 1fr) auto; } .stor-site summary .muted { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- users (the admin view) ---------- */
.invite-box { display: grid; gap: 14px; margin-bottom: 18px; padding: 18px; border: 1px solid var(--hair-2); border-left: 3px solid var(--gold); border-radius: 8px; background: var(--sheet); }
.invite-form { display: grid; grid-template-columns: minmax(0, 28em) auto auto; align-items: end; gap: 12px; }
.link-out { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
@media (max-width: 860px) { .invite-form, .link-out { grid-template-columns: minmax(0, 1fr); } }

/* ---------- log in, invitation ---------- */
.gate { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.portal .gate-side { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 32px; width: auto; max-width: none; padding: clamp(18px, 2.2vw, 44px) var(--gut); }
.gate-say { padding-bottom: 56px; }
.gate-line { max-width: 15em; margin-top: 14px; font: 400 clamp(30px, 2.9vw, 58px)/1.08 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.gate-line em { font-style: italic; color: var(--gold-2); }
.portal .gate-main { display: grid; place-items: center; align-content: center; row-gap: 20px; padding: 8px var(--gut) 96px; }
/* Report abuse under the form (portal.js, user-site safety 7.6) */
.portal .gate-report { margin: 0; color: var(--ink-2); font-size: max(15px, 0.94em); }
.gate-form { width: min(100%, 30em); display: grid; gap: 18px; background: var(--gate-form); }
.gate-form form { display: grid; gap: 18px; margin: 0; }
.gate-form h1 { font-size: clamp(40px, 3vw, 58px); }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; }
.auth-switch button { min-height: 40px; border: 0; background: transparent; color: var(--ink-2); font: 500 var(--lbl)/1 var(--sans); letter-spacing: 0.13em; text-transform: uppercase; cursor: pointer; }
.auth-switch button + button { border-left: 1px solid var(--hair); }
.auth-switch button[aria-checked="true"] { color: var(--gold-2); background: var(--tint-1); }
html[data-auth="signup"] #choose-login,
html[data-auth="code"] #choose-login { color: var(--ink-2); background: transparent; }
html[data-auth="signup"] #choose-signup,
html[data-auth="code"] #choose-signup { color: var(--gold-2); background: var(--tint-1); }
html:not([data-auth="signup"]):not([data-auth="code"]) #title-signup,
html:not([data-auth="signup"]):not([data-auth="code"]) #title-code,
html:not([data-auth="signup"]):not([data-auth="code"]) #account-lede,
html:not([data-auth="signup"]):not([data-auth="code"]) #signup-form,
html:not([data-auth="signup"]):not([data-auth="code"]) #code-form,
html[data-auth="signup"] #title-login,
html[data-auth="signup"] #title-code,
html[data-auth="signup"] #login-form,
html[data-auth="signup"] #code-form,
html[data-auth="code"] #title-login,
html[data-auth="code"] #title-signup,
html[data-auth="code"] #account-lede,
html[data-auth="code"] #email-field,
html[data-auth="code"] #login-form,
html[data-auth="code"] #signup-form { display: none; }
.gate-form .lede { color: var(--ink-2); }
.gate-form .line { padding-top: 16px; border-top: 1px solid var(--hair); color: var(--ink-2); }
/* the account's Security tab (account.js): the settings sections of a site's Settings, a table with fixed columns, the
   outcome as a pill with its line under it */
.acct-sec { max-width: 62em; padding-top: clamp(20px, 1.9vw, 34px); }
.acct-sec > .notice { margin-bottom: clamp(20px, 1.9vw, 30px); }
.pill.live { background: var(--live-tint-2); color: var(--live); }
.tbl.resets .out { display: grid; justify-items: start; gap: 4px; }
.tbl.resets .ip { color: var(--ink); }
.sect-head .tick { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.sect-head .tick input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold-2); cursor: pointer; }
.reset-list .more-line { margin-top: 12px; }
@media (min-width: 861px) {
  .tbl.resets td { vertical-align: top; }
  .tbl.resets th:nth-child(1) { width: 10.5em; }
  .tbl.resets th:nth-child(2) { width: 17em; }
  .tbl.resets th:nth-child(3) { width: 12.5em; }
}
/* the password reset (chapter 18 section 16): four more states of the same card; the switch is not shown in them */
#title-forgot, #title-reset-code, #title-reset-pw, #title-reset-done,
#forgot-form, #reset-code-form, #reset-pw-form, #reset-done { display: none; }
html[data-auth="forgot"] #title-forgot,
html[data-auth="reset-code"] #title-reset-code,
html[data-auth="reset-pw"] #title-reset-pw,
html[data-auth="reset-done"] #title-reset-done { display: block; }
html[data-auth="forgot"] #forgot-form,
html[data-auth="reset-code"] #reset-code-form,
html[data-auth="reset-pw"] #reset-pw-form,
html[data-auth="reset-done"] #reset-done { display: grid; gap: 18px; }
html:is([data-auth="forgot"], [data-auth="reset-code"], [data-auth="reset-pw"], [data-auth="reset-done"]) :is(.auth-switch, #title-login, #login-form) { display: none; }
html:is([data-auth="reset-code"], [data-auth="reset-pw"], [data-auth="reset-done"]) #email-field { display: none; }
#reset-done [hidden] { display: none; }
#reset-done .btn { justify-self: stretch; text-align: center; }
/* the new password's meter against the bar of 60 bits (the strength rule of strength.js), and its show switch */
#reset-pw-form .pw-meter { margin-top: 10px; }
#reset-pw-form .pw-meter .bar { height: 8px; border-radius: 4px; overflow: hidden; }
#reset-pw-form .pw-meter .bar i { background: var(--red); transition: width 0.15s ease, background-color 0.15s ease; }
#reset-pw-form .pw-meter.ok .bar i { background: var(--live); }
#reset-pw-form .meter-say { margin-top: 8px; }
#reset-pw-form .meter-say.low { color: var(--red-t); }
#reset-pw-form .meter-say.good { color: var(--live); }
#reset-pw-form .tick { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); cursor: pointer; }
#reset-pw-form .tick input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--gold-2); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { #reset-pw-form .pw-meter .bar i { transition: none; } }
.forgot summary { display: inline-block; color: var(--gold-t); text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px; cursor: pointer; list-style: none; }
.forgot summary::-webkit-details-marker { display: none; }
.forgot summary:hover { color: var(--ink); }
.forgot p { margin-top: 10px; color: var(--ink-2); }
@media (min-width: 900px) {
  .gate { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .portal .gate-side { border-right: 1px solid var(--hair); }
  .portal .gate-main { padding-block: var(--gut); background: linear-gradient(to right, var(--gate-a), var(--gate-b)); }
}
@media (max-width: 899px) {
  .gate { grid-template-rows: auto 1fr; }
  .gate-say { display: none; }
  .portal .gate-main { place-items: start center; align-content: start; padding-top: clamp(8px, 4vw, 40px); }
}

/* ================= the structure taken from the owner's reference screens, in Secret Zone's own look =================
   A title line with the repository at its right; tabs under the title; an edged card for what is live; boxed tables
   with a tinted header row and a "more" menu on each row; one card for an empty state; settings as a list of section
   names beside uniform sections. Colours, type and marks are ours. */

.repo-ref { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-2); }
.page-head.tight { align-items: center; padding-bottom: clamp(8px, 0.9vw, 14px); }
.tabs-row { display: flex; align-items: flex-end; gap: 16px; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); border-bottom: 1px solid var(--hair); }
.tabs-row .tabs { flex: 1 1 auto; min-width: 0; margin: 0 0 -1px -14px; padding: 0; border-bottom: 0; }
.tabs-act { flex: none; margin: 0 0 13px; white-space: nowrap; }
.tabs-act:empty { display: none; }

.pill { display: inline-block; padding: 2px 11px; border-radius: 999px; background: var(--tint-2); color: var(--gold-2); font: 500 var(--lbl)/1.5 var(--mono); letter-spacing: 0.03em; white-space: nowrap; }
.pill.quiet { background: var(--quiet-fill); color: var(--ink-2); }

/* an edged card: what is live carries a green bar down its left edge */
.card.edge { border-top-width: 1px; border-left: 3px solid var(--hair-2); }
.card.edge.live { border-left-color: var(--live); }
.card.edge.bad { border-left-color: var(--red); }
.card.edge.run { border-left-color: var(--gold-2); }
.portal .card.edge h2, .portal .card.plain h2 { font-size: clamp(26px, 2vw, 34px); }
.dom-line { margin-top: 8px; overflow-wrap: anywhere; }
.prod-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hair); }
.prod-row .grow { flex: 1 1 16em; min-width: 0; overflow-wrap: anywhere; }
.nb .ico, .repo-ref .ico { width: 18px; height: 18px; color: var(--muted); }
span.nb { display: inline-flex; align-items: center; gap: 6px; vertical-align: bottom; }
.card > .notice { margin-top: 16px; background: transparent; }
.card > .hint { margin-top: 14px; }
.card > .note { margin-top: 10px; }
.card > .note:empty { display: none; }

.block { margin-top: clamp(22px, 2.2vw, 40px); }
.tab-body > .block:first-child { margin-top: 0; }
.block-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 6px 22px; margin-bottom: 14px; }
.block-head > p { color: var(--ink-2); }
.block-head > .btn, .block-head > a { align-self: center; }
.portal .block-head h2 { font-size: clamp(28px, 2.3vw, 38px); }
@media (max-width: 860px) {
  .block-head { grid-template-columns: minmax(0, 1fr) auto; }
  .block-head > p { grid-column: 1 / -1; grid-row: 2; }
}
.block > .note:empty, .tab-body > .note:empty { display: none; }

/* a missed push (scheduler design 5.7): the notice above All builds, its Rebuild button, the answer in words */
.tab-body > .notice.missed { margin-top: clamp(16px, 1.6vw, 24px); border-left-color: var(--red); }
.notice.missed > p:first-child { flex: 1 1 32em; min-width: 0; }
.notice.missed > .note { flex-basis: 100%; margin: 0; }
.notice.missed > .note:empty { display: none; }
.card-note.missed { color: var(--red-t); }
.card-note.missed .mono { color: var(--ink); }

/* an empty state: one card, one sentence, one button */
.blank { display: grid; place-items: center; padding: clamp(22px, 3vw, 44px) 18px; border: 1px solid var(--hair); border-radius: 8px; color: var(--muted); text-align: center; }
.blank.card-like { grid-template-columns: auto minmax(0, 1fr); place-items: start; gap: 16px 26px; padding: clamp(20px, 2.4vw, 36px); border-color: var(--hair-2); background: var(--sheet); color: var(--ink-2); text-align: left; }
.portal .blank.card-like h3 { font: 400 clamp(24px, 1.9vw, 32px)/1.1 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.blank.card-like p { margin-top: 8px; max-width: 60ch; }
.blank.card-like b { color: var(--ink); font-weight: 600; }
.blank.card-like .btn-row, .blank.card-like form { margin-top: 18px; }
.blank.card-like form { max-width: 34em; }
@media (max-width: 600px) { .blank.card-like { grid-template-columns: minmax(0, 1fr); } }

/* a plain list of domains: the name, a dot and a word, what is left to do, a "more" menu */
.dlist { margin: 0; padding: 0; border-top: 1px solid var(--hair); list-style: none; }
.dlist li { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) 40px; align-items: center; gap: 8px 20px; min-height: 66px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.dlist b { font-weight: 600; color: var(--ink); }
@media (max-width: 760px) { .dlist li { grid-template-columns: minmax(0, 1fr) 40px; } .dlist li > :nth-child(1) { grid-column: 1 / -1; } .dlist li > :nth-child(3) { grid-column: 1; } .dlist li > :nth-child(4) { grid-row: 2; grid-column: 2; } }
.boxed { display: grid; gap: 12px; margin-top: 18px; padding: 16px 18px; border: 1px solid var(--hair-2); border-radius: 8px; }

/* the "more" button on a row, and its menu */
.rowmenu { position: relative; display: inline-block; text-align: left; vertical-align: middle; }
.rowmenu summary { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid transparent; border-radius: 999px; color: var(--ink-2); font: 600 20px/1 var(--mono); cursor: pointer; list-style: none; }
.rowmenu summary::-webkit-details-marker { display: none; }
.rowmenu summary:hover, .rowmenu[open] summary { border-color: var(--hair-2); color: var(--ink); }
.rowmenu .menu { position: absolute; z-index: 8; right: 0; top: calc(100% + 4px); display: grid; min-width: 15em; padding: 6px; border: 1px solid var(--hair-2); border-radius: 8px; background: var(--sheet); box-shadow: var(--pop-shadow); }
.rowmenu .menu button, .portal .rowmenu .menu a { padding: 11px 12px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; }
.rowmenu .menu button:hover, .portal .rowmenu .menu a:hover { background: var(--tint); color: var(--gold-2); }
.rowmenu .menu button.danger { color: var(--red-t); }
.rowmenu .menu button.danger:hover { background: var(--red-tint); color: var(--red-t); }
.tbl .act > * { margin-left: 8px; vertical-align: middle; }

/* tables: a box with a tinted header row */
@media (min-width: 861px) {
  .tbl { border: 1px solid var(--hair); border-radius: 8px; border-collapse: separate; border-spacing: 0; }
  .portal .tbl th { padding: 11px 14px; background: var(--th-bg); }
  .portal .tbl th:first-child { border-top-left-radius: 7px; }
  .portal .tbl th:last-child { border-top-right-radius: 7px; }
  .tbl td, .tbl th:last-child, .tbl td:last-child { padding: 12px 14px; }
  .tbl tr.is-live td:last-child { padding-right: 14px; }
  .tbl tbody tr:hover { background: var(--row-hover); }
  .tbl tbody tr.is-live:hover { background: var(--live-tint-2); }
  .tbl.builds td { vertical-align: middle; }
  .tbl.builds th:nth-child(1) { width: 11em; }
  .tbl.builds th:nth-child(2) { width: 40%; }
  .tbl.builds th:nth-child(4) { width: 17em; }
}
@media (max-width: 860px) {
  .tbl .act > * { margin: 0 8px 0 0; }
  .tbl .tight { white-space: normal; }
  .rowmenu .menu { right: auto; left: 0; }
}

/* settings: the section names at the left, uniform sections at the right */
.setwrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px clamp(28px, 3vw, 56px); align-items: start; }
.setnav { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.portal .setnav a { padding: 8px 14px; border-bottom: 2px solid transparent; color: var(--ink-2); text-decoration: none; }
.portal .setnav a:hover { color: var(--ink); }
.portal .setnav a.on { border-bottom-color: var(--gold-2); color: var(--gold-2); font-weight: 600; }
@media (min-width: 1280px) {
  .setwrap { grid-template-columns: 12.5em minmax(0, 1fr); }
  .setnav { position: sticky; top: calc(var(--bar, 0px) + 18px); display: grid; gap: 2px; }
  .portal .setnav a { padding: 9px 14px; border-bottom: 0; border-left: 2px solid var(--hair); }
  .portal .setnav a.on { border-left-color: var(--gold-2); }
}
.sects { display: grid; gap: clamp(26px, 2.6vw, 44px); min-width: 0; max-width: 62em; }
.sect { min-width: 0; scroll-margin-top: calc(var(--bar, 0px) + 18px); }
.sect-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 16px; margin-bottom: 12px; }
.sect-head h2 { grid-column: 1 / -1; }
.portal .sect h2 { font-size: clamp(26px, 2vw, 34px); }
.sect-head p { color: var(--ink-2); }
@media (max-width: 700px) { .sect-head { grid-template-columns: minmax(0, 1fr); } .sect-head > :nth-child(3) { justify-self: start; } }
.sect > .hint { margin-top: 10px; }
.vbox { border: 1px solid var(--hair-2); border-radius: 8px; background: var(--card-soft); }
.vbox.danger { border-color: var(--red-line); }
.vrow { display: grid; grid-template-columns: 13em minmax(0, 1fr) auto; align-items: center; gap: 6px 20px; min-height: 58px; padding: 10px 16px; border-top: 1px solid var(--hair); }
.vrow:first-child { border-top: 0; }
.vbox.danger .vrow { grid-template-columns: minmax(0, 1fr) 0 auto; }
.vbox .rule { margin: 0; padding: 14px 16px 14px 34px; border-bottom: 0; }
.vbox .rule::before { left: 16px; }
.vform { display: grid; gap: 14px; padding: 16px; }
.vform ul { margin: 0; padding: 0 0 0 1.2em; color: var(--ink-2); }
.vform li + li { margin-top: 4px; }
.vform .fld { max-width: 28em; }
.portal .vform h3 { font: 400 clamp(24px, 1.9vw, 32px)/1.1 var(--serif); letter-spacing: -0.01em; }
@media (max-width: 700px) {
  .vrow, .vbox.danger .vrow { grid-template-columns: minmax(0, 1fr); }
  .vrow > span:empty { display: none; }
  .vrow > .tag, .vrow > .btn { justify-self: start; }
}

/* one build: its details in two columns, and the log as one row per step */
.detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 48px; margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--hair); }
@media (min-width: 1000px) { .detail { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.card-top .title-row { gap: 10px 14px; }
.logsteps { margin: 14px 0 0; padding: 0; border: 1px solid var(--hair); border-radius: 8px; list-style: none; }
.logsteps li { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--hair); }
.logsteps li:first-child { border-top: 0; }
.logsteps li::before { content: "\2713"; flex: none; width: 1.1em; color: var(--live); font: 500 1em/1 var(--mono); }
.logsteps li > span:first-child { flex: 1 1 auto; }
.logsteps li.bad::before { content: "\2715"; color: var(--red); }
.logsteps li.bad { color: var(--red-t); }
.logsteps li.skip::before { content: "\2013"; color: var(--muted); }
.logsteps li.skip { color: var(--muted); }
.logsteps li.now::before { content: "\2022"; color: var(--gold-2); animation: st-pulse 1.3s ease-in-out infinite; }
.logsteps li.now > span:first-child { color: var(--ink); font-weight: 600; }
.logsteps .muted { font-size: max(15px, 0.92em); text-align: right; }
.logsteps + .notice { margin-top: 14px; background: transparent; }
@media (prefers-reduced-motion: reduce) { .logsteps li.now::before { animation: none; } }
.logsteps + .kicker { margin-top: 18px; }
.card .kicker + .log { margin-top: 10px; }
.card > .blank { margin-top: 14px; }

/* ================= round 3: the admin area, and five fixes ================= */

/* the side menu's Admin group, shown for the admin view */
.side-admin { margin-top: 14px; }
.side-admin .lbl { margin: 0; padding: 2px 12px 8px; }
@media (min-width: 1100px) { .side-collapsed .side-admin .lbl { display: none; } }

/* the tab strip scrolls sideways when it does not fit; an edge fades where there is more */
.tabs.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.tabs.more-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px); mask-image: linear-gradient(to right, transparent, #000 48px); }
.tabs.more-l.more-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }

/* small screens: room at the foot of the page */
@media (max-width: 1099px) {
  .portal main { padding-bottom: 36px; }
  .portal .gate-main { padding-bottom: 28px; }
  .gate { min-height: calc(100vh - 76px); min-height: calc(100dvh - 76px); }
}

/* home: the compact list of sites, and the switch between cards and list */
.page-tools .seg button { padding: 8px 14px; font: 500 var(--lbl)/1.2 var(--mono); letter-spacing: 0.06em; }
.portal .tbl a.name { font-weight: 600; }
.tbl.sites td { vertical-align: middle; }
.tbl.sites tr[hidden] { display: none; }

/* a long address in a table: shortened in the middle on wide screens, whole on small ones */
.addr-short { white-space: nowrap; }
.addr-full { display: none; }
@media (max-width: 860px) { .addr-short { display: none; } .addr-full { display: inline; } }
@media (min-width: 861px) { .tbl.builds th:nth-child(2) { width: auto; min-width: 13em; } .tbl.builds th:nth-child(4) { width: 15.5em; } }

/* the admin area */
.vrow.one { grid-template-columns: minmax(0, 1fr); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* in the domain list the "more" button sits at the right edge at every width, so its menu opens leftwards */
.dlist .rowmenu .menu { left: auto; right: 0; }
.linkbtn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.vrow .btn-row { gap: 4px 18px; }
.acct-pick .fld { max-width: 28em; }
.acct-pick { padding-top: clamp(20px, 2vw, 34px); border-top: 1px solid var(--hair); }
#users-panel:empty, #invite-area:empty { display: none; }
#users-panel .invite-box { margin-bottom: 0; }
.block-head > .input { align-self: center; width: 16em; max-width: 100%; min-height: 44px; border-radius: 999px; padding-inline: 18px; }
.invite-form { grid-template-columns: minmax(0, 28em) max-content; justify-content: start; }
@media (max-width: 860px) { .invite-form { grid-template-columns: minmax(0, 1fr); } }
.note:empty { display: none; }
main > .note { margin: 0 0 14px; }

/* ================= open sign-up and the waiting account (design #465, sections 5 and 9) ================= */
@media (min-width: 1100px) {
  body.portal.framed.is-waiting { grid-template-columns: minmax(0, 1fr); }
}
.waiting-card { max-width: 40em; margin: clamp(24px, 8vh, 96px) auto 0; display: grid; gap: 16px; }
.waiting-card h1 { font-size: clamp(36px, 3vw, 52px); }
.waiting-card .lede { color: var(--ink-2); font-size: max(17px, 1em); max-width: 52ch; }
.waiting-card .facts { margin-top: 4px; }
.gate-form .note { font-size: max(15px, 0.94em); }
.mode-pick { display: grid; gap: 10px; }
.mode-pick label { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--hair-2); border-radius: 8px; font-size: max(15px, 0.94em); cursor: pointer; }
.mode-pick label.off { opacity: 0.55; cursor: not-allowed; }
.mode-pick input { margin-top: 4px; }
.mode-pick .why { display: block; color: var(--muted); font-size: max(15px, 0.92em); }

/* ================= the light theme's parts (R24) and the skip link =================
   (from the approved prototype's section 10.1 parts) */

.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 999px; background: var(--gold-2); color: var(--on-gold) !important; text-decoration: none !important; }
.skip:focus { top: 8px; }
.portal main:focus { outline: 0; }

/* ---------- the theme menu: the account menu's look, three choices ---------- */
.theme-pick .acct-menu { min-width: 14em; }
.acct-menu .menu-lbl { margin: 0; padding: 6px 12px 8px; }
.acct-menu button.opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.acct-menu button.opt::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--hair-2); }
.acct-menu button.opt:hover { background: var(--tint); color: var(--gold-2); }
.acct-menu button.opt[aria-checked="true"] { color: var(--gold-2); font-weight: 600; }
.acct-menu button.opt[aria-checked="true"]::before { background: var(--gold-2); box-shadow: 0 0 0 3px var(--tint-2); }
.portal .acct-menu button.opt:focus-visible { outline-offset: -2px; }
/* the button shows the choice: half a disc for the device's setting, a sun for Light, a moon for Dark */
.theme-pick summary .t-light, .theme-pick summary .t-dark { display: none; }
.theme-pick[data-choice="light"] summary .t-device, .theme-pick[data-choice="dark"] summary .t-device { display: none; }
.theme-pick[data-choice="light"] summary .t-light, .theme-pick[data-choice="dark"] summary .t-dark { display: block; }
/* the pages with no bar (log in, invite, the GitHub return pages): the same menu in the top right corner, quiet until
   it is hovered, focused or open */
.pub-theme { position: absolute; z-index: 5; top: calc(clamp(18px, 2.2vw, 44px) + env(safe-area-inset-top, 0px)); right: calc(var(--gut) + env(safe-area-inset-right, 0px)); }
.pub-theme summary { border-color: transparent; color: var(--muted); }
.pub-theme summary:hover, .pub-theme summary:focus-visible, .pub-theme[open] summary { border-color: var(--hair-2); color: var(--ink); }
