/* Public site. Brand not decided yet: neutral palette, all colours are tokens. */
:root {
  color-scheme: light dark;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1c1d1f;
  --muted: #5b5f66;
  --border: #e3e3df;
  --accent: #2f5bd3;
  --accent-soft: #e8eefc;
  --hero-from: #eef1f6;
  --hero-to: #f7f7f5;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121315;
    --surface: #1b1d20;
    --text: #ececea;
    --muted: #a4a8ae;
    --border: #2c2f34;
    --accent: #8aa8ff;
    --accent-soft: #1f2a44;
    --hero-from: #181b22;
    --hero-to: #121315;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.topbar { border-bottom: 1px solid var(--border); background: var(--surface); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px;
}
.wordmark { font-weight: 700; letter-spacing: -0.01em; color: var(--text); text-decoration: none; font-size: 18px; }
.langs { display: flex; flex-wrap: wrap; gap: 4px; }
.langs a {
  font-size: 14px; color: var(--muted); text-decoration: none;
  padding: 4px 10px; border-radius: 999px; border: 1px solid transparent;
}
.langs a:hover { color: var(--text); border-color: var(--border); }
.langs a[aria-current] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.hero { background: linear-gradient(180deg, var(--hero-from), var(--hero-to)); padding: 72px 0 64px; }
@media (min-width: 720px) { .hero { padding: 112px 0 96px; } }
.eyebrow {
  margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
}
.hero h1 { margin: 0; font-size: clamp(40px, 9vw, 72px); line-height: 1.05; letter-spacing: -0.03em; }
.tagline { margin: 20px 0 0; max-width: 36ch; font-size: clamp(19px, 2.6vw, 24px); color: var(--muted); line-height: 1.45; }

.features { padding: 56px 0 72px; }
.features h2 { margin: 0 0 24px; font-size: 26px; letter-spacing: -0.01em; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 16px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon {
  width: 40px; height: 40px; padding: 8px; border-radius: 10px;
  background: var(--accent-soft); stroke: var(--accent); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.footer .wordmark { font-size: 14px; color: var(--muted); }
@media (max-width: 480px) { .langs { gap: 2px; } .langs a { padding: 4px 7px; font-size: 13px; } }

/* ---- Customer pages: sign in, enrol, dashboard ------------------------------------------- */
:root {
  --danger: #b42318;
  --danger-soft: #fdecea;
  --ok: #1d7a46;
  --ok-soft: #e6f4ec;
  --warn: #8a5a00;
  --warn-soft: #fdf3dc;
}
@media (prefers-color-scheme: dark) {
  :root {
    --danger: #ff8a80;
    --danger-soft: #3a1d1b;
    --ok: #7fd4a3;
    --ok-soft: #173326;
    --warn: #f3c46b;
    --warn-soft: #382c12;
  }
}
[hidden] { display: none !important; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px;
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.button:hover { border-color: var(--muted); }
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.button:disabled { opacity: .55; cursor: progress; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .button.primary { color: #0f1424; } }
.button.primary:hover { filter: brightness(1.06); }
.button.ghost { min-height: 36px; padding: 6px 12px; font-size: 14px; font-weight: 500; }
.button.wide { width: 100%; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.intro { color: var(--muted); margin: 0 0 20px; max-width: 60ch; }
.hint { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.empty { color: var(--muted); }
.notice { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); font-size: 15px; }
.notice.error { background: var(--danger-soft); color: var(--danger); }

.form .field { margin: 0 0 16px; }
.form label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; }
.form input {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit;
}
.form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form input[aria-invalid="true"] { border-color: var(--danger); }
.form .hint { margin-top: 6px; }

/* Sign in and enrol: one centred panel. */
.auth { display: flex; justify-content: center; align-items: flex-start; padding: 48px 16px 64px; }
.auth .panel { width: 100%; max-width: 440px; }
.auth h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.01em; }
.auth-user { margin: 0 0 16px; font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 720px) { .auth { padding-top: 88px; } .auth .panel { padding: 32px; } }

/* Dashboard. */
.topbar-tools { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.who { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.app { padding-top: 32px; padding-bottom: 56px; }
.app h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: -0.02em; }
.app h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.01em; }
.app h3 { margin: 0; font-size: 19px; }
.infra-cards { grid-template-columns: 1fr; }
@media (min-width: 720px) { .infra-cards { grid-template-columns: repeat(2, 1fr); } }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h3 { overflow-wrap: anywhere; }
.badge {
  display: inline-block; white-space: nowrap; font-size: 13px; font-weight: 600;
  padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
}
.badge.state-new, .badge.state-deploy_key { background: var(--warn-soft); color: var(--warn); }
.badge.state-ca_trusted, .badge.state-ca_only { background: var(--ok-soft); color: var(--ok); }
.badge.state-exited { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.facts { margin: 0; display: grid; grid-template-columns: 1fr; }
.facts dt { color: var(--muted); font-size: 14px; padding-top: 12px; }
.facts dd { margin: 0; padding-top: 2px; overflow-wrap: anywhere; }
@media (min-width: 480px) {
  .facts { grid-template-columns: max-content 1fr; }
  .facts dt, .facts dd { border-top: 1px solid var(--border); padding: 8px 0; }
  .facts dt { padding-right: 16px; }
}
.facts .value { display: block; }
.facts .hint { display: block; margin-top: 2px; }

.passkeys { margin-top: 48px; }
.passkey-list { list-style: none; margin: 0 0 20px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.passkey-list > li { padding: 14px 18px; }
.passkey-list > li + li { border-top: 1px solid var(--border); }
.passkey-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.passkey-label { font-weight: 600; overflow-wrap: anywhere; }
.passkey-meta { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.add-passkey { max-width: 520px; }
.add-passkey h3 { margin-bottom: 4px; }
.add-passkey .hint { margin: 0 0 16px; }

/* The last operations of an infrastructure. */
.jobs { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.jobs h4 { margin: 0 0 8px; font-size: 15px; color: var(--muted); font-weight: 600; }
.job-list { list-style: none; margin: 0; padding: 0; }
.job-list > li { padding: 8px 0; }
.job-list > li + li { border-top: 1px solid var(--border); }
.job-list .empty { color: var(--muted); font-size: 14px; }
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.job-title { font-weight: 600; overflow-wrap: anywhere; }
.job-meta { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.job-why { margin: 6px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.job-kept .hint { margin: 6px 0 0; }
.job-kept-list { margin: 4px 0 0; padding-left: 20px; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.badge.job-succeeded { background: var(--ok-soft); color: var(--ok); }
.badge.job-failed, .badge.job-interrupted { background: var(--danger-soft); color: var(--danger); }
.badge.job-cancelled { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.badge.job-queued, .badge.job-running { background: var(--accent-soft); color: var(--accent); }

/* Leaving: what it means, the alerts choice, then the verified removal. */
.exit { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.exit h4 { margin: 0 0 8px; font-size: 15px; color: var(--muted); font-weight: 600; }
.exit .exit-intro { margin: 0 0 6px; }
.exit-points { margin: 0 0 12px; padding-left: 20px; font-size: 15px; }
.exit-points li + li { margin-top: 4px; }
.exit-choice { margin: 0 0 12px; }
.exit-choice label { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15px; cursor: pointer; }
.exit-choice input { margin-top: 4px; flex: none; }
.exit-choice .hint { margin: 4px 0 0 26px; }
.exit .notice { margin: 0 0 8px; overflow-wrap: anywhere; }
.exit-monitor { margin: 0; font-size: 15px; }
.exit-verify .hint { margin: 8px 0 0; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.button.danger { border-color: var(--danger); color: var(--danger); }
.button.danger:hover { background: var(--danger-soft); }
@media (max-width: 480px) { .exit-choice .hint { margin-left: 0; } .exit .button { width: 100%; } }

/* Setup of an infrastructure: the deploy public key to paste at the provider. */
.setup { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.setup label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.setup .hint { margin: 6px 0 12px; overflow-wrap: anywhere; }
.copy-row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.copy-row input {
  flex: 1 1 auto; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Key custody: the two modes, then the CA (create, recover, protect with another passkey). */
.ca { margin-top: 48px; }
.ca-modes { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .ca-modes { grid-template-columns: repeat(2, 1fr); } }
.ca-mode { padding: 20px; }
.ca-mode h3 { margin: 0 0 6px; }
.ca-mode p { margin: 0; color: var(--muted); font-size: 16px; }
.ca-mode .ca-promise { margin-top: 10px; color: var(--text); font-weight: 600; }
.ca-panel > :first-child { margin-top: 0; }
.ca-panel h3 { margin: 0 0 6px; }
.ca-panel h4 { margin: 20px 0 6px; font-size: 16px; }
.ca-panel p { margin: 0 0 12px; }
.ca-panel .hint { margin: 0 0 12px; }
.ca-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; font-weight: 600; }
.badge.ca-usable { background: var(--ok-soft); color: var(--ok); }
.badge.ca-pending { background: var(--warn-soft); color: var(--warn); }
.ca-fp { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; color: var(--muted); }
.ca-wraps { margin: 0 0 8px; padding-left: 20px; }
.ca-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.ca-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: step; }
.steps li { counter-increment: step; font-size: 13px; color: var(--muted); padding-top: 8px; border-top: 3px solid var(--border); line-height: 1.35; overflow-wrap: anywhere; }
.steps li::before { content: counter(step) ". "; font-weight: 600; }
.steps li[aria-current="step"] { color: var(--text); border-top-color: var(--accent); font-weight: 600; }
.steps li.done { border-top-color: var(--ok); }
.choice { display: block; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin: 0 0 12px; }
.choice:has(input[type="radio"]:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice > label { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 0; cursor: pointer; }
.choice > label input { margin-top: 5px; flex: none; }
.choice > .hint { margin: 4px 0 0 26px; }
.choice .field { margin: 12px 0 0 26px; }
.choice .field .hint { margin: 6px 0 0; }
.choice > .button { margin: 16px 0 0 26px; }
.form select {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit;
}
.form input[type="file"] { padding: 8px; }
.form input[type="radio"] { width: auto; min-height: 0; }
fieldset.form { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.form legend { font-weight: 600; margin: 0 0 10px; padding: 0; }
@media (max-width: 480px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .choice .field, .choice > .hint, .choice > .button { margin-left: 0; }
}

/* Key custody on an infrastructure card. */
.custody { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.custody .notice { margin-bottom: 10px; }
.badge.ca-lost { background: var(--danger-soft); color: var(--danger); }
.form input[type="checkbox"] { width: auto; min-height: 0; }

/* Operations awaiting the account holder's approval: the dashboard banner and the screen. */
.approvals-banner { background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.approvals-banner a { color: inherit; }
.badge.job-awaiting_approval { background: var(--warn-soft); color: var(--warn); }
.badge.job-declined { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.job-approve { display: inline-block; margin-top: 6px; font-weight: 600; font-size: 15px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.approvals-page .back { margin: 0 0 12px; font-size: 15px; }
.approvals-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .approvals-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.approval-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.approval-open {
  display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; cursor: pointer;
  padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit;
}
.approval-open:hover { border-color: var(--muted); }
.approval-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.approval-item.selected .approval-open { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.approval-title { font-weight: 600; overflow-wrap: anywhere; }
.approval-meta { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.approval-detail { min-width: 0; }
.approval-detail h2 { margin: 0 0 6px; }
.approval-detail .facts { margin-bottom: 20px; }
.approval-detail .mono, .approval-detail .vars { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.approval-detail .vars { margin: 0; padding-left: 18px; }
.approval-detail .digest { letter-spacing: 0.02em; }
.approval-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }

/* Domains on an infrastructure card: state, registrar guide, takeover and the credential paste. */
.domains { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.domains h4 { margin: 0 0 4px; font-size: 15px; color: var(--muted); font-weight: 600; }
.domains h5 { margin: 0 0 8px; font-size: 15px; }
.domains .domains-intro { margin: 0 0 10px; }
.domain-list { list-style: none; margin: 0 0 12px; padding: 0; }
.domain-list > li { padding: 12px 0; }
.domain-list > li + li { border-top: 1px dashed var(--border); }
.domain-list > li.empty { font-size: 14px; padding: 4px 0; }
.domain-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.domain-name { font-weight: 600; font: 600 15px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; min-width: 0; }
.domain-meta { margin: 2px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.domain-state-text { margin: 6px 0 0; font-size: 15px; }
.domain-state-text.notice { margin-top: 8px; }
.domain .notice { margin: 8px 0 0; overflow-wrap: anywhere; }
.domain-note a { color: inherit; font-weight: 600; }
.badge.cred-none { background: var(--warn-soft); color: var(--warn); }
.badge.cred-pending { background: var(--accent-soft); color: var(--accent); }
.badge.cred-installed { background: var(--ok-soft); color: var(--ok); }
.badge.cred-rejected { background: var(--danger-soft); color: var(--danger); }
.badge.cred-removing { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.domain-takeover, .domain-credential { margin: 12px 0 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.domain-takeover { border-color: var(--warn); }
.domain-takeover-warning { margin: 0 0 10px; font-size: 15px; }
.domain-takeover label { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15px; cursor: pointer; margin: 0 0 12px; }
.domain-takeover input { margin-top: 4px; flex: none; }
.domain-takeover .hint, .domain-remove-row .hint { margin: 6px 0 0; }
.domain-guide { margin: 0 0 14px; font-size: 15px; }
.domain-guide-title { margin: 0 0 6px; font-weight: 600; }
.domain-guide-steps { margin: 0; padding-left: 22px; }
.domain-guide-steps li { overflow-wrap: anywhere; }
.domain-guide-steps li + li { margin-top: 6px; }
.domain-guide-links { margin: 8px 0 0; overflow-wrap: anywhere; }
.domain-guide .hint { margin: 8px 0 0; }
.domain-credential .field { margin: 0 0 12px; }
.domain-credential input, .domain-credential select { background: var(--surface); }
.domain-credential .hint { margin: 0 0 12px; }
.domain-credential .notice.error { margin: 0 0 12px; }
.domain-replace { margin: 10px 0 0; }
.domain-replace > summary { cursor: pointer; font-size: 14px; color: var(--accent); font-weight: 600; }
.domain-replace > .domain-credential { margin-top: 8px; }
.domain-remove-row { margin: 12px 0 0; }
.domains-apply-row { margin: 0 0 12px; }
.domains-apply-row .hint { margin: 6px 0 0; }
.domains-apply-row .notice { margin: 6px 0 0; }
.domain-add { max-width: 520px; padding-top: 12px; border-top: 1px dashed var(--border); }
.domain-add .notice { margin: 0 0 12px; }
@media (max-width: 480px) {
  .domain-takeover, .domain-credential { padding: 12px; }
  .domains .button { width: 100%; }
}
/* A `web` operation on the approval screen: its domains, names and registrar token. */
.web-domains { list-style: none; margin: 0; padding: 0; }
.web-domain { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
.web-domain + .web-domain { border-top: 1px solid var(--border); }
.approval-detail .web-domain-name { font-weight: 600; font-size: 14px; }
.web-domain-meta { font-size: 14px; color: var(--muted); }
.web-domain-line { font-size: 14px; }
.web-domain-line.warn { color: var(--warn); font-weight: 600; }
.approval-detail .web-hosts { margin: 2px 0; padding-left: 18px; }
.card .domain-state-text, .card .domain-takeover-warning, .card .domain-guide p:not(.hint), .card .domain-guide li { color: var(--text); }
.domain-add-preview { margin: 8px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.domain-add .domain-add-routes { margin: 2px 0 0; overflow-wrap: anywhere; }
.domain-later { margin: 10px 0 0; }
.domain-later > summary { cursor: pointer; font-size: 14px; color: var(--muted); font-weight: 600; }
.domain-later > .domain-credential { margin-top: 8px; }
/* Setup checklist, backups and restores on an infrastructure card. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.setup-checklist { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.setup-checklist h4, .backup h4 { margin: 0 0 6px; font-size: 15px; color: var(--muted); font-weight: 600; }
.checklist { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.check-item { display: flex; gap: 10px; align-items: flex-start; padding: 3px 0; color: var(--text); }
.check-mark {
  flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; line-height: 1;
}
.check-item.done .check-mark { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.check-complete { margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); }
.check-complete .hint { color: inherit; margin: 0; }
.backup { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.backup h5 { margin: 0 0 8px; font-size: 15px; }
.backup .backup-intro { margin: 0 0 10px; }
.backup .notice { margin: 0 0 12px; overflow-wrap: anywhere; }
.backup .notice a { color: inherit; font-weight: 600; }
.backup-head { margin: 0 0 4px; }
.badge.backup-configured { background: var(--warn-soft); color: var(--warn); }
.badge.backup-active { background: var(--ok-soft); color: var(--ok); }
.backup-summary { margin-bottom: 12px; }
.backup-summary dd .value, .backup-status dd .value { overflow-wrap: anywhere; }
.backup-storage, .backup-secrets, .backup-rebuild-form, .backup-replace-form, .backup-status, .restore-chain, .backup-restore {
  margin: 12px 0 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg);
}
.backup .form input, .backup .form select, .backup .form textarea { background: var(--surface); }
.backup .form textarea {
  width: 100%; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); color: var(--text);
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical;
}
.backup .form textarea[aria-invalid="true"] { border-color: var(--danger); }
.backup .form .field { margin: 0 0 12px; }
.backup .form .notice { margin: 0 0 12px; }
.backup details { margin: 12px 0 0; }
.backup details > summary { cursor: pointer; font-size: 14px; color: var(--accent); font-weight: 600; }
.backup details > form, .backup details > .hint { margin-top: 8px; }
.backup-guide .domain-guide { margin: 0 0 12px; }
.backup-recovery { margin: 4px 0 12px; padding: 14px; border: 1px solid var(--warn); border-radius: 10px; background: var(--surface); }
.backup-recovery-intro { margin: 0 0 10px; font-size: 15px; }
.recovery-key {
  list-style: none; margin: 0 0 8px; padding: 12px; border: 2px solid var(--text); border-radius: 10px; counter-reset: group;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5em, 1fr)); gap: 6px 10px;
  font: 600 17px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em;
}
.recovery-key li { counter-increment: group; display: flex; flex-direction: column; align-items: center; }
.recovery-key li::before { content: counter(group); font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.backup-recovery .hint { margin: 0 0 10px; }
.backup-recovery .button { margin: 0 0 12px; }
.backup-recovery .field { max-width: 320px; }
.backup-recovery-verdict { margin: -6px 0 12px; }
.backup-status h5 { display: flex; align-items: center; gap: 8px; }
.backup-status .facts { margin: 0 0 12px; }
.backup-status .hint { margin: 0 0 12px; }
.backup-code { display: block; margin-top: 2px; }
.backup-run-row { margin: 12px 0 0; }
.backup-run-row .hint, .backup-restore .hint { margin: 0 0 10px; }
.backup-restore-web .notice { margin-top: 8px; }
.restore-chain-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.restore-chain .hint { margin: 2px 0 10px; }
.restore-steps { margin: 0; padding-left: 22px; font-size: 15px; }
.restore-step { padding: 3px 0; }
.restore-step-title { font-weight: 600; }
.restore-step-state { margin-left: 8px; font-size: 13px; color: var(--muted); }
.restore-step.step-done .restore-step-state { color: var(--ok); }
.restore-step.step-current .restore-step-state { color: var(--accent); font-weight: 600; }
.restore-step.step-failed .restore-step-state { color: var(--danger); font-weight: 600; }
.restore-step-approve { margin-left: 8px; font-size: 14px; font-weight: 600; }
.restore-chain .notice { margin: 10px 0 0; }
.badge.chain-running { background: var(--accent-soft); color: var(--accent); }
.badge.chain-done { background: var(--ok-soft); color: var(--ok); }
.badge.chain-failed { background: var(--danger-soft); color: var(--danger); }
.badge.chain-cancelled { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.card .backup p:not(.hint):not(.notice), .card .backup li, .card .setup-checklist li { color: var(--text); }
@media (max-width: 480px) {
  .backup-storage, .backup-secrets, .backup-rebuild-form, .backup-replace-form, .backup-status, .restore-chain, .backup-restore, .backup-recovery { padding: 12px; }
  .backup .button { width: 100%; }
  .recovery-key { font-size: 15px; grid-template-columns: repeat(3, 1fr); }
}
/* A backup or restore operation on the approval screen. */
.approval-detail .backup-endpoint, .approval-detail .backup-location { overflow-wrap: anywhere; }

/* ---- mail ---------------------------------------------------------------------------------- */
.mail { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); min-width: 0; }
.mail h4 { margin: 0 0 4px; font-size: 15px; color: var(--muted); font-weight: 600; }
.mail h5 { margin: 0 0 8px; font-size: 15px; }
.mail h6 { margin: 0 0 8px; font-size: 14px; }
.mail .mail-intro { margin: 0 0 10px; }
.mail .notice { margin: 8px 0 0; overflow-wrap: anywhere; }
.mail .notice a { color: inherit; font-weight: 600; }
.mail-part { margin: 12px 0 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); min-width: 0; }
.mail-part > .hint:first-of-type { margin-top: 0; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 12px 0 0; }
.mail-actions .hint { margin: 0; }
.mail-change { min-width: 0; }
.mail-change .hint { margin: 6px 0 0; }
.mail-check-lists, .mail-dmarc, .mail-check-todo { margin: 0; padding: 0; list-style: none; }
.mail-check-lists li, .mail-dmarc li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 4px 0; min-width: 0; overflow-wrap: anywhere; }
.mail-check-lists .list-unavailable-text { flex-basis: 100%; }
.mail-check-todo { margin-top: 8px; padding-left: 20px; list-style: disc; font-size: 15px; }
.mail-check-todo li + li { margin-top: 4px; }
.mail-check-ptr span { display: block; }
.mail-check-ptr .badge { display: inline-block; margin-top: 4px; }
.badge.port25-ok, .badge.list-state-clean, .badge.ptr-ok, .badge.pw-installed, .badge.mail-state-active { background: var(--ok-soft); color: var(--ok); }
.badge.port25-blocked, .badge.list-state-listed { background: var(--danger-soft); color: var(--danger); }
.badge.port25-unknown, .badge.list-state-unavailable, .badge.ptr-todo, .badge.pw-none { background: var(--warn-soft); color: var(--warn); }
.badge.pw-pending, .badge.mail-primary { background: var(--accent-soft); color: var(--accent); }
.badge.mail-state-removing { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.mail-ptr-guide { margin: 12px 0 0; padding: 12px; border: 1px dashed var(--border); border-radius: 10px; background: var(--surface); }
.mail-ptr-title { margin: 0 0 8px; font-weight: 600; overflow-wrap: anywhere; }
.mail-ptr-steps { margin: 8px 0 0; padding-left: 20px; overflow-wrap: anywhere; }
.mail-ptr-steps li + li { margin-top: 4px; }
.mail-domain-list, .mailbox-list, .mail-alias-list { list-style: none; margin: 0 0 8px; padding: 0; }
.mail-domain-list > li, .mailbox-list > li, .mail-alias-list > li { padding: 10px 0; min-width: 0; }
.mail-domain-list > li + li, .mailbox-list > li + li, .mail-alias-list > li + li { border-top: 1px dashed var(--border); }
.mail-domain-list > li.empty, .mailbox-list > li.empty, .mail-alias-list > li.empty { font-size: 14px; padding: 4px 0; }
.mail-alias { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; overflow-wrap: anywhere; }
.mail details { margin: 10px 0 0; }
.mail details > summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.mail form.form, .mail-enable { margin: 12px 0 0; }
.mail .field { margin: 10px 0 0; min-width: 0; }
.mail .field select, .mail .field input, .mail .field textarea { max-width: 100%; }
.mail .check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; margin: 10px 0 0; }
.mail .check-line input { margin-top: 4px; flex: none; }
.address-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.address-row input { flex: 1 1 10em; min-width: 0; }
.address-row select { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.mail .copy-row input { flex: 1 1 auto; min-width: 0; }
.table-wrap { overflow-x: auto; max-width: 100%; margin: 8px 0 0; }
.mail-records { border-collapse: collapse; width: 100%; font-size: 13px; }
.mail-records th, .mail-records td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.mail-records .record-value { word-break: break-all; min-width: 12em; }
.mail-records .record-value.pending { color: var(--muted); font-style: italic; word-break: normal; }
.button.small { padding: 4px 10px; font-size: 13px; }
.mail-takeover-dialog { max-width: min(36rem, calc(100vw - 32px)); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--surface); color: var(--text); }
.mail-takeover-dialog::backdrop { background: rgba(0, 0, 0, 0.4); }
.mail-takeover-types { margin: 8px 0; padding-left: 20px; overflow-wrap: anywhere; }
.mail-sheet .notice { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mail-dmarc-title { margin: 12px 0 4px; font-weight: 600; font-size: 14px; }
.mail-dmarc-domain { font-weight: 600; }
.hint.warn { color: var(--warn); }
.mail-apply-row .hint { margin: 6px 0 0; }
.approval-detail .mail-domains-approval .web-hosts { font: 14px/1.5 var(--font); }
.approval-detail .mail-domains-approval .web-hosts .mono { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.approval-detail .mail-domains-approval .web-hosts li + li { margin-top: 2px; }

/* ---- alerts (alerts.js) -------------------------------------------------------------------- */
.card .alerts-banner { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 6px; overflow-wrap: anywhere; }
.alerts-banner strong { font-weight: 700; }
.notice.alerts-banner.error { border-left: 4px solid var(--danger); }
.notice.alerts-banner.warn { border-left: 4px solid var(--warn); }
.alerts-section { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); min-width: 0; }
.alerts-section h4 { margin: 0 0 8px; font-size: 15px; color: var(--muted); font-weight: 600; }
.alerts-section h5 { margin: 0 0 8px; font-size: 15px; }
.alerts-section h6 { margin: 14px 0 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.card .alerts-section p:not(.hint):not(.notice), .card .alerts-section li, .card .alert-contacts p:not(.hint) { color: var(--text); }
.alerts .notice, .alerts-settings .notice { margin: 0 0 10px; overflow-wrap: anywhere; }
.alerts .notice a, .alerts-settings .notice a { color: inherit; font-weight: 600; }
.alert-list { list-style: none; margin: 0; padding: 0; }
.alert-list > li.empty { color: var(--muted); font-size: 15px; padding: 4px 0; }
.alert-item { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.alert-item + .alert-item { margin-top: 8px; }
.alert-item.open.severity-critical { border-left: 4px solid var(--danger); }
.alert-item.open.severity-warning { border-left: 4px solid var(--warn); }
.alert-item.open.severity-info { border-left: 4px solid var(--accent); }
.resolved-list .alert-item { padding: 8px 12px; }
.alert-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.alert-title { font-weight: 600; overflow-wrap: anywhere; }
.alert-meta { margin: 2px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.card .alert-item .alert-meta { color: var(--muted); }
.alert-subject { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.alert-text { margin: 8px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.alert-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.alert-repair-row { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--border); }
.alert-repair-row .hint { margin: 0 0 8px; }
.alert-note { margin: 10px 0 0; }
.badge.severity-critical, .badge.tone-bad { background: var(--danger-soft); color: var(--danger); }
.badge.severity-warning, .badge.tone-warn { background: var(--warn-soft); color: var(--warn); }
.badge.severity-info { background: var(--accent-soft); color: var(--accent); }
.badge.tone-ok { background: var(--ok-soft); color: var(--ok); }
.badge.tone-unknown { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.monitor-status, .alerts-settings { margin: 12px 0 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.monitor-status .monitor-intro { margin: 0 0 4px; }
.monitor-status .facts { margin: 0; }
.monitor-status .badge { margin-right: 2px; }
.monitor-list { list-style: none; margin: 4px 0 0; padding: 0; }
.monitor-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 2px 0; font-size: 15px; }
.monitor-name { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; min-width: 0; }
.monitor-detail { flex: 1 1 12em; color: var(--muted); font-size: 14px; }
.monitor-failed { color: var(--danger); }
.alerts-settings .alerts-state { margin: 0; }
.alerts-settings .hint { margin: 6px 0 10px; }
.alerts-settings label { display: block; font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.alerts-remove-command { margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.alerts-command-label { flex: 1 0 100%; margin: 0; font-size: 14px; color: var(--muted); }
.card .alerts-settings .alerts-command-label { color: var(--muted); }
.alerts-command {
  flex: 1 1 16em; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere;
}
.alerts-access { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--border); }
.alerts-access .notice { margin: 0 0 10px; }
@media (max-width: 480px) {
  .monitor-status, .alerts-settings, .alert-item { padding: 12px; }
  .alerts-section .button { width: 100%; }
  .alerts-remove-command .button { width: auto; }
}

/* Where alerts go: the account's e-mail, the phone, what is sent. */
.alert-contacts { margin-top: 48px; }
.contacts-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0 0 16px; }
@media (min-width: 720px) { .contacts-grid { grid-template-columns: 1fr 1fr; } }
.alert-contacts h3 { margin: 0 0 6px; }
.contact-address { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.phone .phone-intro { margin: 0 0 12px; }
.phone-state { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.phone .form .field { margin: 0 0 12px; }
.phone-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.phone .notice { margin: 12px 0 0; }
.phone .hint { margin: 6px 0 12px; }
.receive-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.receive-table caption { text-align: left; font-weight: 700; font-size: 17px; margin: 0 0 8px; }
.receive-table th, .receive-table td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-top: 1px solid var(--border); }
.receive-table thead th { font-size: 13px; color: var(--muted); font-weight: 600; border-top: 0; }
.receive-table tbody th { font-weight: 600; width: 34%; }
.receive .hint { margin: 12px 0 0; }
@media (max-width: 600px) {
  .receive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .receive-table, .receive-table tbody, .receive-table tr, .receive-table th, .receive-table td { display: block; width: auto; }
  .receive-table tr { padding: 10px 0; border-top: 1px solid var(--border); }
  .receive-table th, .receive-table td { border: 0; padding: 2px 0; }
  .receive-table tbody th { width: auto; }
  .receive-table caption { display: block; }
  .receive-table td::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; font-weight: 600; }
}

/* Exit: what still comes after it. */
.exit-after { margin: 10px 0 0 26px; }
.exit-after-title { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.exit-after .exit-points { margin-bottom: 6px; }
.exit-after .hint { margin: 0 0 8px; }
.exit-after .notice { margin: 0; }
@media (max-width: 480px) { .exit-after { margin-left: 0; } }

/* Manual changes on the server (Stage 7): the list and each change's diff (the customer's own
   content, shown as plain text). */
.drift-section { margin-top: 1rem; }
.drift-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.drift-row { border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; background: var(--surface); }
.drift-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.drift-path { overflow-wrap: anywhere; }
.drift-meta { color: var(--muted); margin: .25rem 0; }
.drift-diff { overflow: auto; max-height: 20rem; white-space: pre; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: .5rem .75rem; font-size: .85rem; }
.drift-actions { display: grid; gap: .25rem; margin-top: .5rem; }
.drift-actions .button { justify-self: start; }
.drift-banner .button { margin-left: .5rem; }

/* Diff lines of a manual change (drift.js diffHtml): escaped text, one span per line. */
.drift-section { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); min-width: 0; }
.drift-section h4 { margin: 0 0 8px; font-size: 15px; color: var(--muted); font-weight: 600; }
.drift-section .intro { font-size: 15px; margin: 0 0 12px; }
.drift-row { border-radius: 10px; background: var(--bg); min-width: 0; }
.drift-row.state-open { border-left: 4px solid var(--warn); }
.drift-row.state-kept { border-left: 4px solid var(--accent); }
.drift-meta { font-size: 14px; overflow-wrap: anywhere; }
.drift-diff { font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; max-height: 18rem; margin: 8px 0 0; background: var(--surface); }
.drift-diff span { display: block; min-width: max-content; padding: 0 6px; }
.drift-diff .diff-add { background: var(--ok-soft); color: var(--ok); }
.drift-diff .diff-del { background: var(--danger-soft); color: var(--danger); }
.drift-diff .diff-hunk { color: var(--accent); }
.drift-diff .diff-file { color: var(--muted); font-weight: 600; }
.drift-diff .diff-more { color: var(--muted); font-style: italic; }
.drift-pauses { margin: 8px 0 0; font-size: 14px; }
.drift-actions { margin-top: 10px; }
.drift-actions .hint { margin: 0 0 6px; }
.drift-check-row { margin-top: 4px; }
.card .drift-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; border-left: 4px solid var(--warn); }
.drift-banner .button { margin-left: 0; }

/* Updates and maintenance (lifecycle.js): the window, the updates per machine, the upgrades. */
.lifecycle-section { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); min-width: 0; }
.lifecycle-section h4 { margin: 0 0 8px; font-size: 15px; color: var(--muted); font-weight: 600; }
.lifecycle-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.lifecycle-card { padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); min-width: 0; }
.lifecycle-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin: 0 0 6px; }
.lifecycle-card-head h5 { margin: 0; font-size: 16px; }
.card .lifecycle-card p:not(.hint):not(.notice), .card .lifecycle-card li, .card .lifecycle-card dd { color: var(--text); }
.lifecycle-facts { margin: 0 0 4px; }
.lifecycle-facts dd { display: flex; flex-direction: column; }
.lifecycle-facts .mono, .lifecycle-release, .lifecycle-packages .mono, .lifecycle-code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.lifecycle-next .badge { align-self: flex-start; margin-bottom: 4px; }
.lifecycle-subtitle { margin: 12px 0 4px; font-size: 14px; font-weight: 600; }
.card .lifecycle-card .lifecycle-subtitle { color: var(--muted); }
.lifecycle-points { margin: 0 0 10px; padding-left: 20px; font-size: 15px; }
.lifecycle-points li + li { margin-top: 2px; }
.lifecycle-card .notice { margin: 0 0 10px; overflow-wrap: anywhere; }
.lifecycle-card .notice a { color: inherit; font-weight: 600; }
.notice.tone-warn { background: var(--warn-soft); color: var(--warn); }
.notice.tone-warn a { color: inherit; font-weight: 600; }
.lifecycle-note { margin: 0 0 10px; }
.lifecycle-window-form { margin-top: 6px; }
.lifecycle-days { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lifecycle-days legend { font-weight: 600; font-size: 15px; margin: 0 0 6px; padding: 0; width: 100%; }
.form .lifecycle-day { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); font-weight: 500; font-size: 14px; cursor: pointer; }
.form .lifecycle-day:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.lifecycle-day input { margin: 0; }
.lifecycle-form-row { display: grid; gap: 0 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lifecycle-window-form input[type="text"], .lifecycle-window-form select { width: 100%; min-width: 0; }
.lifecycle-start { font-variant-numeric: tabular-nums; }
.lifecycle-auto { margin: 0 0 12px; }
.lifecycle-auto label { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15px; cursor: pointer; }
.lifecycle-auto input { margin-top: 4px; flex: none; }
.lifecycle-auto .hint { margin: 4px 0 0 26px; }
.lifecycle-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lifecycle-machines { list-style: none; margin: 0; padding: 0; }
.lifecycle-machine { padding: 10px 0; }
.lifecycle-machine + .lifecycle-machine { border-top: 1px solid var(--border); }
.lifecycle-machine-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.lifecycle-machine-name { font-weight: 600; }
.card .lifecycle-card .lifecycle-release { color: var(--muted); }
.lifecycle-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; }
.lifecycle-machine-last { margin: 6px 0 0; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.lifecycle-label { color: var(--muted); }
.card .lifecycle-card .lifecycle-machine-last { color: var(--text); }
.lifecycle-last .hint, .lifecycle-no-run { margin: 0; }
.lifecycle-security { margin: 10px 0 0; }
.lifecycle-packages { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.lifecycle-packages li { padding: 2px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.lifecycle-packages .lifecycle-more { border-style: dashed; color: var(--muted); font-size: 14px; }
.card .lifecycle-card .lifecycle-packages .lifecycle-more { color: var(--muted); }
.lifecycle-actions-block { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--border); }
.lifecycle-actions-block .button + .hint { margin: 6px 0 10px; }
.lifecycle-actions-block .hint { margin: 0 0 8px; }
.lifecycle-actions-block .button { margin-top: 4px; }
.lifecycle-offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lifecycle-offer { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); min-width: 0; }
.lifecycle-offer-title { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.lifecycle-offer-machines { margin: 2px 0 0; }
.lifecycle-offer-facts { margin: 8px 0 10px; display: grid; gap: 2px 12px; grid-template-columns: minmax(0, 1fr); font-size: 15px; }
.lifecycle-offer-facts dt { color: var(--muted); font-size: 13px; font-weight: 600; padding-top: 6px; }
.lifecycle-offer-facts dd { margin: 0; overflow-wrap: anywhere; }
.lifecycle-offer .hint { margin: 6px 0 0; }
.lifecycle-chain { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin: 0 0 10px; min-width: 0; }
.lifecycle-chain[data-state="failed"], .lifecycle-chain[data-state="rolled_back"] { border-left: 4px solid var(--danger); }
.lifecycle-chain[data-state="running"], .lifecycle-chain[data-state="waiting_server"], .lifecycle-chain[data-state="scheduled"] { border-left: 4px solid var(--accent); }
.lifecycle-chain-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.lifecycle-chain-title { font-weight: 700; overflow-wrap: anywhere; }
.lifecycle-progress { margin: 4px 0 0; }
.lifecycle-steps { list-style: none; margin: 10px 0; padding: 0; counter-reset: lstep; }
.lifecycle-step { counter-increment: lstep; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding: 6px 0 6px 30px; position: relative; font-size: 15px; }
.lifecycle-step + .lifecycle-step { border-top: 1px solid var(--border); }
.lifecycle-step::before { content: counter(lstep); position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.lifecycle-step.step-done::before { content: "\2713"; background: var(--ok-soft); color: var(--ok); border-color: var(--ok-soft); }
.lifecycle-step.step-skipped::before { content: "\2013"; }
.lifecycle-step.step-failed::before, .lifecycle-step.step-rolled_back::before { content: "!"; background: var(--danger-soft); color: var(--danger); border-color: var(--danger-soft); }
.lifecycle-step.current::before, .lifecycle-step.step-running::before, .lifecycle-step.step-waiting_server::before { background: var(--accent); color: #fff; border-color: var(--accent); }
.lifecycle-step.current .lifecycle-step-name { font-weight: 600; }
.lifecycle-step-state { color: var(--muted); font-size: 14px; }
.card .lifecycle-card .lifecycle-step-state { color: var(--muted); }
.lifecycle-step.step-skipped .lifecycle-step-name { color: var(--muted); }
.lifecycle-failure { margin: 0 0 10px; padding: 12px; border-radius: 10px; background: var(--danger-soft); }
.lifecycle-failure-title { margin: 0 0 6px; font-weight: 700; color: var(--danger); }
.card .lifecycle-card .lifecycle-failure-title { color: var(--danger); }
.lifecycle-failure-facts { margin: 0; display: grid; gap: 2px; }
.lifecycle-failure-facts dt { font-size: 13px; font-weight: 600; color: var(--danger); padding-top: 6px; }
.lifecycle-failure-facts dd { margin: 0; overflow-wrap: anywhere; }
.lifecycle-code { margin: 8px 0 0; }
@media (min-width: 720px) {
  .lifecycle-offer-facts { grid-template-columns: 9em minmax(0, 1fr); }
  .lifecycle-offer-facts dt { padding-top: 0; }
}
@media (max-width: 480px) {
  .lifecycle-card { padding: 12px; }
  .lifecycle-section .button { width: 100%; }
  .lifecycle-form-row { grid-template-columns: minmax(0, 1fr); }
  .lifecycle-auto .hint { margin-left: 0; }
}

/* Exit: Debian's updates after it, and what the exit run left. */
.exit-unattended { margin: 0 0 12px; }
.exit-unattended .exit-points { margin: 6px 0 6px 26px; }
.exit-report { margin: 12px 0 0; }
.exit-report .exit-after-title { margin: 12px 0 4px; }
.exit-report-machines { list-style: none; margin: 0 0 10px; padding: 0; }
.exit-report-machines li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; padding: 4px 0; font-size: 15px; }
.exit-report-machines li + li { border-top: 1px solid var(--border); }
.exit-report-install p { margin: 0 0 6px; }
.exit-command { display: block; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text);
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.exit-report-saved { margin: 4px 0 0; padding-left: 20px; font-size: 14px; }
.exit-report-saved .mono { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.exit-waits { margin-top: 0; }
@media (max-width: 480px) { .exit-unattended .exit-points { margin-left: 0; } }

/* Approval: an updates run, a chain step, an exit's choice. */
.approval-chain { font-weight: 600; }
.approval-sub { display: block; margin: 6px 0 2px; color: var(--muted); font-size: 14px; }
.approval-packages { margin: 0; padding-left: 20px; }
.approval-more { color: var(--muted); font-family: var(--font); }
.drift-path { font: 600 14px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; min-width: 0; }
.lifecycle-failure-facts dd { font-size: 15px; }
.mail-dkim-rotation { margin: 10px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.mail-dkim-rotation .mono { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.lifecycle-release-unknown { margin: 0; }
pre.exit-command { margin: 6px 0 0; }
.exit-report-more { list-style: none; margin-left: -20px; }
