@import url("tokens.7dd3b090c5ac.css");

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 var(--text-m)/1.55 var(--font);
  font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--logo-blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--logo-blue); line-height: 1.2; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: var(--text-xl); font-weight: 800; }
h2 { font-size: var(--text-l); font-weight: 750; }
code, .mono { font-family: var(--mono); font-size: 0.85em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Top bar ---------------------------------------------------------------------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-3) var(--space-4); background: var(--white); border-bottom: 1px solid var(--line);
}
.topbar__logo img { display: block; height: 30px; width: auto; }
.topbar__who { text-align: right; font-size: var(--text-s); color: var(--muted); line-height: 1.35; }
.topbar__who strong { color: var(--ink); }
.topbar__who form { display: inline; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.nav { display: flex; gap: var(--space-4); padding: 0 var(--space-4); background: var(--white); border-bottom: 1px solid var(--line); overflow-x: auto; }
.nav a { padding: var(--space-3) 0; font-weight: 650; font-size: var(--text-s); color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a[aria-current="page"], .nav a:hover { color: var(--logo-blue); border-bottom-color: var(--blue); }

/* --- Admin sidebar: ink, so staff always know they're in admin ---------------------- */
.admin, .customer { --sidebar: 15rem; padding-left: var(--sidebar); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 10; width: var(--sidebar);
  display: flex; flex-direction: column; gap: var(--space-5);
  padding: var(--space-5) var(--space-3) var(--space-4); overflow-y: auto;
  background: var(--ink); color: var(--muted-on-ink);
}
.sidebar :focus-visible { outline-color: var(--yellow); }
.skip { position: absolute; top: var(--space-3); left: var(--space-3); z-index: 1; padding: var(--space-2) var(--space-3); border-radius: var(--radius-s); background: var(--yellow); color: var(--ink); font-weight: 700; transform: translateY(-300%); }
.skip:focus { transform: none; }
.sidebar__brand { display: grid; gap: var(--space-1); padding: 0 var(--space-3); color: var(--muted-on-ink); font-size: var(--text-s); font-weight: 600; text-decoration: none; }
.sidebar__brand img { display: block; width: 8.5rem; height: auto; }
.sidebar__brand:hover { color: var(--white); }
.sidebar__nav { display: grid; }
.sidebar__group { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sidebar__label { margin: var(--space-5) 0 var(--space-2); padding: 0 var(--space-3); font-size: var(--text-s); font-weight: 600; color: color-mix(in srgb, var(--muted-on-ink) 72%, var(--ink)); }
.sidebar__link {
  position: relative; display: flex; align-items: center; gap: var(--space-3);
  min-height: 2.5rem; padding: 0 var(--space-3); border-radius: var(--radius-s);
  color: var(--muted-on-ink); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}
.sidebar__link::before { content: ""; flex: none; width: 1.125rem; height: 1.125rem; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.sidebar__link:hover { color: var(--white); background: rgb(255 255 255 / 0.06); }
.sidebar__link[aria-current="page"] { color: var(--white); background: rgb(255 255 255 / 0.1); }
.sidebar__link[aria-current="page"]::before { background: var(--yellow); }
.sidebar__link[aria-current="page"]::after { content: ""; position: absolute; top: var(--space-2); bottom: var(--space-2); left: calc(-1 * var(--space-3)); width: 3px; border-radius: 0 3px 3px 0; background: var(--yellow); }
.sidebar__link--overview { --icon: url("../img/admin/overview.2f1fb396e6e3.svg"); }
.sidebar__link--clients { --icon: url("../img/admin/clients.f651946374cf.svg"); }
.sidebar__link--domains { --icon: url("../img/admin/domains.e91eb6a648b9.svg"); }
.sidebar__link--hosting { --icon: url("../img/admin/hosting.519a66dc1b01.svg"); }
.sidebar__link--invoices { --icon: url("../img/admin/invoices.5726dade5706.svg"); }
.sidebar__link--order { --icon: url("../img/admin/order.6b43d4c8ebed.svg"); }
.sidebar__link--servers { --icon: url("../img/admin/servers.25d3aba9985b.svg"); }
.sidebar__link--errors { --icon: url("../img/admin/errors.9e2e0552ef85.svg"); }
.sidebar__link--database { --icon: url("../img/admin/database.9eba540165da.svg"); }
.sidebar__who { margin-top: auto; display: grid; gap: 2px; padding: var(--space-4) var(--space-3) 0; border-top: 1px solid var(--line-on-ink); font-size: var(--text-s); line-height: 1.4; }
.sidebar__who strong { color: var(--white); font-weight: 650; }
.sidebar__email { overflow-wrap: anywhere; }
.sidebar__signout { justify-self: start; margin-top: var(--space-2); color: var(--white); font-weight: 600; }
.sidebar__signout:hover { color: var(--yellow); }
.sidebar__role { font-size: var(--text-s); }

/* Customers' sidebar (the service desk and hosting customers): the admin sidebar's ink and styling. Counts sit at the end
   of each link; yellow ones are waiting on the desk. */
.customer { --sidebar: 16.5rem; }
.sidebar__count, .sidebar__state {
  margin-left: auto; min-width: 1.75rem; padding: 0.0625rem 0.5rem; border-radius: 999px;
  font-size: var(--text-s); font-weight: 700; line-height: 1.5; text-align: center;
  font-variant-numeric: tabular-nums; background: rgb(255 255 255 / 0.12); color: var(--white);
}
.sidebar__count--wait { background: var(--yellow); color: var(--ink); }
.sidebar__state { min-width: 0; background: none; color: var(--muted-on-ink); font-weight: 600; }
.sidebar__link--action { --icon: url("../img/desk/action.12e997fb0e86.svg"); }
.sidebar__link--new { --icon: url("../img/desk/new.6b43d4c8ebed.svg"); }
.sidebar__link--live { --icon: url("../img/desk/live.1a16874ebf1e.svg"); }
.sidebar__link--reissue { --icon: url("../img/desk/reissue.bdf356a8b0a5.svg"); }
.sidebar__link--approval { --icon: url("../img/desk/approval.187faf1ce680.svg"); }
.sidebar__link--waiting { --icon: url("../img/desk/waiting.9cef565ad7de.svg"); }
.sidebar__link--setup { --icon: url("../img/desk/setup.85d96e8d2b98.svg"); }
.sidebar__link--expired { --icon: url("../img/desk/expired.149f10463c2a.svg"); }
.sidebar__link--twostep { --icon: url("../img/desk/twostep.f22ac2a85003.svg"); }
.sidebar__link--password { --icon: url("../img/desk/password.a749f80920d0.svg"); }
.sidebar__link--account { --icon: url("../img/desk/account.3ca35b8501d1.svg"); }
.sidebar__link--transfer { --icon: url("../img/desk/transfer.25c6c35ada19.svg"); }
@media (max-width: 56rem) {
  .admin, .customer { padding-left: 0; }
  .sidebar { position: static; width: auto; flex-flow: row wrap; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4) 0; overflow: visible; }
  .sidebar__brand { padding: 0; }
  .sidebar__brand img { width: 7rem; }
  .sidebar__who { order: 2; margin: 0 0 0 auto; padding: 0; border: 0; text-align: right; }
  .sidebar__email { display: none; }
  .sidebar__signout { justify-self: end; margin: 0; }
  .sidebar__nav { order: 3; flex: 0 0 calc(100% + 2 * var(--space-4)); display: flex; gap: 2px; margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-4) var(--space-2); overflow-x: auto; scrollbar-width: none; }
  .sidebar__group { display: flex; gap: 2px; }
  .sidebar__label { display: none; }
  .sidebar__link[aria-current="page"]::after { top: auto; bottom: 0; left: var(--space-3); right: var(--space-3); width: auto; height: 3px; border-radius: 3px 3px 0 0; }
}
@media print {
  .admin, .customer { padding-left: 0; }
  .sidebar { display: none; }
}

/* The client's own sidebar beside the admin's client page: the same blue panel and counts the
   client sees, its links jumping to the page's sections. */
.client-view { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.client-view__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
.client-rail {
  position: sticky; top: var(--space-4); display: grid; gap: var(--space-3);
  max-height: calc(100vh - 2 * var(--space-4)); overflow-y: auto;
  padding: var(--space-4) var(--space-3); border-radius: var(--radius-l);
  background: var(--ink); color: var(--muted-on-ink);
}
.client-rail :focus-visible { outline-color: var(--yellow); }
.client-rail__title { margin: 0; padding: 0 var(--space-3); color: var(--white); font-weight: 750; line-height: 1.3; }
.client-rail .sidebar__label { margin-top: var(--space-4); }
.client-rail .sidebar__nav, .client-rail .sidebar__group { min-width: 0; }
.client-rail .sidebar__link { white-space: normal; line-height: 1.3; padding-block: var(--space-2); }
@media (max-width: 64rem) {
  .client-view { grid-template-columns: minmax(0, 1fr); }
  .client-rail { position: static; max-height: none; overflow: visible; padding: var(--space-3) var(--space-4) 0; }
  .client-rail__title { padding: 0; }
  .client-rail .sidebar__nav { display: flex; gap: 2px; margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-4) var(--space-2); overflow-x: auto; scrollbar-width: none; }
  .client-rail .sidebar__group { display: flex; gap: 2px; }
  .client-rail .sidebar__link { white-space: nowrap; }
  .client-rail .sidebar__label { display: none; }
}
@media print { .client-rail { display: none; } .client-view { display: block; } }

/* --- Page ------------------------------------------------------------------------- */
.page { max-width: 72rem; margin: 0 auto; padding: var(--space-5) var(--space-4) var(--space-6); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
.page--narrow { max-width: 40rem; }
.page__head { display: grid; gap: var(--space-2); }
.caption { margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--logo-blue); }
.lede { margin: 0; color: var(--muted); max-width: 42rem; }
.grid-2 { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }

/* --- Cards and rows --------------------------------------------------------------- */
.card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-m); padding: var(--space-4) var(--space-5); }
.card__link { font-size: var(--text-s); font-weight: 650; letter-spacing: 0; text-transform: none; }
.card__title { margin: 0 0 var(--space-3); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: var(--space-3); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row__main { min-width: 0; }
.row__title { font-weight: 650; color: var(--ink); overflow-wrap: anywhere; text-decoration: none; }
a.row__title:hover { color: var(--blue); text-decoration: underline; }
.row__sub { display: block; font-size: var(--text-s); color: var(--muted); }
.row__end { display: flex; gap: var(--space-2); align-items: center; flex-shrink: 0; }
.empty { color: var(--muted); margin: 0; }

/* --- Balance tiles ---------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: var(--space-3); }
.tile { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-m); padding: var(--space-4); position: relative; overflow: hidden; }
.tile::after { content: ""; position: absolute; inset: auto -2rem -2rem auto; width: 5rem; height: 5rem; border-radius: 50%; background: var(--pale); }
.tile__n { position: relative; z-index: 1; font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--logo-blue); font-variant-numeric: tabular-nums; }
.tile__label { position: relative; z-index: 1; margin-top: var(--space-1); font-size: var(--text-s); color: var(--muted); font-weight: 600; }
.tile--low { border-color: var(--wait); }
.tile--low .tile__n { color: var(--wait); }
.tile--low::after { background: var(--wait-bg); }
.tile form { position: relative; z-index: 1; margin-top: var(--space-2); }

/* --- Buttons ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 2.75rem; padding: 0 var(--space-5); border-radius: var(--radius-m); border: 1px solid var(--tonal);
  background: var(--tonal); color: var(--tonal-ink); font: 650 var(--text-m)/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color var(--duration-fast), border-color var(--duration-fast);
}
.btn:hover { background: var(--tonal-hover); border-color: var(--tonal-hover); color: var(--tonal-ink); }
.btn:active { background: var(--line); border-color: var(--line); }
.btn--ghost { background: var(--white); border-color: var(--line-strong); color: var(--tonal-ink); }
.btn--ghost:hover { background: var(--canvas); border-color: var(--line-strong); }
.btn--small { min-height: 2rem; padding: 0 var(--space-3); font-size: var(--text-s); border-radius: var(--radius-s); }
.btn--block { width: 100%; }
.btn--danger { background: var(--white); border-color: var(--bad); color: var(--bad); }
.btn--danger:active { background: var(--bad-bg); border-color: var(--bad); }
.btn--danger:hover { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn--chosen { outline: 3px solid var(--yellow); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* --- Status pills ----------------------------------------------------------------- */
.pill { display: inline-block; font-size: 0.72rem; font-weight: 750; border-radius: 999px; padding: 0.18rem 0.6rem; white-space: nowrap; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--wait { background: var(--wait-bg); color: var(--wait); }
.pill--bad { background: var(--bad-bg); color: var(--bad); }
.pill--info { background: var(--info-bg); color: var(--logo-blue); }

/* --- Notices ---------------------------------------------------------------------- */
.notice { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); background: var(--info-bg); color: var(--logo-blue); font-weight: 600; }
.notice--ok { background: var(--ok-bg); color: var(--ok); }
.notice--wait { background: var(--wait-bg); color: var(--wait); }
.notice--bad { background: var(--bad-bg); color: var(--bad); }
.notice--action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); border-left: 4px solid currentColor; }
.notice__sub { display: block; font-weight: 500; }

/* --- Reissue due / overdue: the pill links to the reissue page ---------------------- */
a.reissue-flag { text-decoration: none; transition: box-shadow 150ms ease; }
a.reissue-flag:hover, a.reissue-flag:focus-visible { box-shadow: inset 0 0 0 1.5px currentColor; }
a.reissue-flag.pill--wait:hover { color: var(--wait); }
a.reissue-flag.pill--bad:hover { color: var(--bad); }
@media (max-width: 30rem) {
  .row__end--stack { flex-direction: column; align-items: flex-end; gap: var(--space-1); }
}
.messages { list-style: none; margin: 0 auto; padding: var(--space-4) var(--space-4) 0; max-width: 72rem; display: grid; gap: var(--space-2); }
.msg { padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); background: var(--info-bg); color: var(--logo-blue); font-weight: 600; }
.msg--success { background: var(--ok-bg); color: var(--ok); }
.msg--warning { background: var(--wait-bg); color: var(--wait); }
.msg--error { background: var(--bad-bg); color: var(--bad); }

/* --- Steps ------------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { text-align: center; font-size: 0.72rem; font-weight: 750; padding: var(--space-2) var(--space-1); border-radius: var(--radius-s); background: var(--white); border: 1px solid var(--line); color: var(--muted); }
.steps .is-done { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.steps .is-now { background: var(--wait-bg); border-color: transparent; color: var(--wait); }

/* --- DNS record ------------------------------------------------------------------- */
.record { border: 2px dashed var(--blue); border-radius: var(--radius-m); padding: var(--space-3) var(--space-4); background: var(--white); display: grid; gap: var(--space-3); }
.kv { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; }
.kv__key { font-size: var(--text-s); color: var(--muted); font-weight: 600; }
.kv__value { font-family: var(--mono); font-size: 0.82rem; background: var(--pale); border: 1px solid var(--line); border-radius: var(--radius-s); padding: var(--space-2); overflow-wrap: anywhere; color: var(--ink); }
.copy { min-width: 4.5rem; }
@media (max-width: 30rem) {
  .kv { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-2); }
  .kv__key { grid-column: 1 / -1; }
}

/* --- Checks list ------------------------------------------------------------------ */
.checks { list-style: none; margin: 0; padding: var(--space-3) var(--space-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); display: grid; gap: var(--space-2); font-size: var(--text-m); }
.checks li { padding-left: 1.6rem; position: relative; }
.checks li::before { position: absolute; left: 0; font-weight: 800; }
.checks .is-ok::before { content: "✓"; color: var(--ok); }
.checks .is-bad::before { content: "✕"; color: var(--bad); }
.checks .is-wait::before { content: "…"; color: var(--wait); }
.checks .is-bad { color: var(--bad); }

/* --- Downloads -------------------------------------------------------------------- */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--space-3); }
.download { display: block; padding: var(--space-3) var(--space-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); color: var(--ink); text-decoration: none; font-weight: 700; transition: border-color var(--duration-fast), box-shadow var(--duration-fast), transform var(--duration-fast) var(--ease-out); }
.download small { display: block; font-weight: 500; color: var(--muted); }
.download:hover { border-color: var(--line-strong); background: var(--canvas); color: var(--ink); }

/* --- History ---------------------------------------------------------------------- */
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: var(--text-s); color: var(--muted); }
.history time { font-weight: 700; color: var(--ink); margin-right: var(--space-2); font-variant-numeric: tabular-nums; }

/* --- Forms ------------------------------------------------------------------------ */
.form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); }
.field > label, .legend { font-weight: 700; color: var(--ink); }
.hint { font-size: var(--text-s); color: var(--muted); margin: 0; }
.errorlist { list-style: none; margin: 0; padding: 0; color: var(--bad); font-weight: 600; font-size: var(--text-s); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--radius-m); padding: 0.65rem 0.8rem;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--blue); outline-offset: 0; }
.invoice-edit td { vertical-align: top; }
.invoice-edit__amount { width: 10rem; }
textarea.csr { font-family: var(--mono); font-size: 0.78rem; line-height: 1.45; min-height: 11rem; }
fieldset { border: 0; margin: 0; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--space-3); }
.choice { position: relative; display: block; padding: var(--space-3) var(--space-4); background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--radius-m); cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice b { display: block; }
.choice small { color: var(--muted); }
.choice:has(input:checked) { border: 2px solid var(--blue); background: var(--info-bg); }
.choice:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.inline-form { display: inline; }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.filters input[type="search"] { flex: 1 1 12rem; width: auto; }
.filters select { width: auto; }
.pager { display: flex; gap: var(--space-3); align-items: center; justify-content: center; font-size: var(--text-s); color: var(--muted); }

/* --- Entrance (sign in) and approval pages ---------------------------------------- */
.entrance { width: min(26rem, calc(100% - 2rem)); margin: var(--space-6) auto; padding: var(--space-5); background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-m); display: grid; gap: var(--space-4); }
.entrance__logo img { height: 34px; width: auto; }
.entrance form { display: grid; gap: var(--space-3); }
.entrance label { display: grid; gap: var(--space-1); font-weight: 700; }
.entrance label.check { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; }
.entrance .fields { display: grid; gap: var(--space-3); }
.entrance .fields > div { display: grid; gap: var(--space-1); }
.entrance .fields label { font-weight: 700; }
.entrance .fields .helptext { font-size: var(--text-s); color: var(--muted); }
.entrance__img { display: block; width: 12rem; max-width: 100%; height: auto; margin: 0 auto; padding: var(--space-2); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); }
.entrance__nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: var(--text-s); }
.entrance__nav form { display: inline; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover, .link-button:focus-visible { color: var(--logo-blue); }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.panel { display: grid; gap: var(--space-2); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.panel__title { font-size: var(--text-m); }
.entrance code, .entrance pre { font-size: var(--text-s); background: var(--pale); padding: var(--space-2); border-radius: var(--radius-s); overflow-wrap: anywhere; white-space: pre-wrap; }
/* The sign-in doorway: one card. The sign-in form is its white half; while checkout is open, its
   ink half shows new customers the way in (they get a login at checkout). Both halves share one
   height, side by side on wide screens and stacked on narrow ones. No prices here: NITA-U's desk
   signs in on this page. */
.doorway { width: min(26rem, calc(100% - 2rem)); margin: var(--space-6) auto; display: grid; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-m); overflow: hidden; }
.doorway > .entrance { width: auto; margin: 0; border: 0; border-radius: 0; }
.doorway:has(> .doorway__new) { width: min(56rem, calc(100% - 2rem)); }
@media (min-width: 52rem) {
  .doorway:has(> .doorway__new) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doorway > .entrance, .doorway__new { padding: var(--space-6); }
}
.doorway__or { display: flex; align-items: center; gap: var(--space-3); color: var(--muted); font-size: var(--text-s); }
.doorway__or::before, .doorway__or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.doorway__new { display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); padding: var(--space-5); background: var(--ink); color: var(--white); }
.doorway__new h2 { margin: 0; font-size: var(--text-xl); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--white); }
.doorway__new p, .doorway__points { margin: 0; color: var(--muted-on-ink); line-height: 1.5; }
.doorway__points { display: grid; gap: var(--space-2); padding-left: 1.1rem; }
.doorway__points li::marker { color: var(--yellow); }
.doorway__new mark { color: var(--ink); background: var(--yellow); padding-inline: 0.15em; border-radius: 2px; }
.doorway__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.doorway__new :focus-visible { outline-color: var(--yellow); }
.doorway__compare { color: var(--white); font-weight: 700; }
.doorway__compare:hover { color: var(--yellow); }
.btn--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.approval { max-width: 30rem; margin: 0 auto; padding: var(--space-5) var(--space-4); display: grid; gap: var(--space-4); }
.approval .decide { display: grid; gap: var(--space-3); }
.approval .btn { min-height: 3.25rem; font-size: var(--text-l); }

.table { width: 100%; border-collapse: collapse; font-size: var(--text-s); }
.table th { text-align: left; color: var(--muted); font-weight: 700; padding: var(--space-2); border-bottom: 1px solid var(--line-strong); }
.table td { padding: var(--space-2); border-bottom: 1px solid var(--line); vertical-align: top; }
.scroll-x { overflow-x: auto; }
/* The service desk's per-menu pages: one table of just that menu's certificates. */
.desk-list { display: grid; gap: var(--space-4); }
.desk-list__bar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; }
.desk-list__bar .filters { flex: 1 1 18rem; justify-content: flex-end; }
.desk-list__count { margin: 0; font-weight: 700; color: var(--logo-blue); }
.desk-table { font-size: var(--text-m); }
.desk-table th { font-size: var(--text-s); white-space: nowrap; }
.desk-table td { padding-block: var(--space-3); vertical-align: middle; }
.desk-table tbody tr:hover { background: var(--canvas); }
.desk-table__name { font-weight: 650; text-decoration: none; overflow-wrap: break-word; }
.desk-table__name:hover { text-decoration: underline; }
.desk-table__end { text-align: right; white-space: nowrap; }
.desk-table__end form { display: inline; }
.desk-table .muted { color: var(--muted); font-size: var(--text-s); }
@media (max-width: 40rem) {
  .desk-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .desk-table, .desk-table tbody { display: block; }
  .desk-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-3); row-gap: 2px; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
  .desk-table td { display: block; grid-column: 1; padding: 0; border: 0; font-size: var(--text-s); color: var(--muted); }
  .desk-table td:first-child { font-size: var(--text-m); color: inherit; }
  .desk-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; }
  .desk-table td.desk-table__end { grid-column: 2; grid-row: 1 / span 5; align-self: center; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* --- Footer: the legal documents, on every page ------------------------------------- */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-5);
  max-width: 66rem; margin: var(--space-6) auto 0; padding: var(--space-5) var(--space-4);
  border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-s);
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin: 0; padding: 0; list-style: none; }
.site-footer__links a { color: var(--muted); }
.site-footer__links a:hover { color: var(--logo-blue); }
.site-footer__owner { margin: 0; }
@media print { .site-footer { display: none; } }

/* --- Layout helpers: the CSP (style-src 'self') drops inline style attributes ------ */
.stack-4 { display: grid; gap: var(--space-4); }
.stack-5 { display: grid; gap: var(--space-5); }
.mt-1 { margin-top: var(--space-1); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-3 { margin-bottom: var(--space-3); }
.measure { max-width: 44rem; }
.row--top { align-items: flex-start; }
.wrap { flex-wrap: wrap; }
.block { display: block; }

/* htmx's loading indicators: its own injected <style> is switched off in base.html */
.htmx-indicator { opacity: 0; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; transition: opacity 200ms ease-in; }

/* Staff logged in as a client: a bar that can't be missed, with the way back. */
.impersonation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); padding: var(--space-2) var(--space-4); background: var(--yellow); color: var(--ink); font-weight: 700; }
.impersonation p { margin: 0; }
@media print { .impersonation, .messages { display: none; } } /* after the rules they override */
.pager { display: flex; gap: var(--space-4); align-items: center; padding-top: var(--space-3); }
