:root {
  color-scheme: light dark;
  --background: #f4f6f9;
  --surface: #ffffff;
  --surface-raised: #edf2f7;
  --surface-subtle: #f8fafc;
  --border: #dbe2eb;
  --border-strong: #8191a7;
  --text: #17243b;
  --text-muted: #53637a;
  --text-subtle: #627087;
  --accent: #245ac4;
  --accent-strong: #245ac4;
  --accent-surface: #eaf0ff;
  --success: #15724e;
  --success-surface: #edf8f2;
  --warning: #885408;
  --warning-surface: #fff8e8;
  --danger: #ad303b;
  --danger-surface: #fff0f0;
  --focus: #245ac4;
  --shadow: 0 2px 6px rgb(21 39 70 / 3%);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  line-height: 1.55;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--background);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  color: var(--background);
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-inner {
  width: min(1200px, 100%);
  min-height: 72px;
  margin: auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: .02em;
  text-decoration: none;
}

.main-navigation,
.settings-navigation {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-navigation a,
.settings-navigation a,
.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 650;
  text-decoration: none;
}

.main-navigation a {
  padding: 0 13px;
}

.main-navigation a:hover,
.settings-navigation a:hover,
.back-link:hover {
  background: var(--surface-raised);
  color: var(--text);
}

.main-navigation a[aria-current="page"],
.settings-navigation a[aria-current="page"] {
  background: var(--accent-surface);
  color: var(--accent);
}

.session-state {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  color: var(--success);
  font-size: .84rem;
  font-weight: 750;
}

.session-state::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.main-navigation .logout {
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.settings-layout {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 34px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
}

.settings-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--text-subtle);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.settings-navigation {
  align-items: stretch;
  flex-direction: column;
}

.settings-navigation a,
.back-link {
  width: 100%;
  padding: 10px 12px;
}

.back-link {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: .9rem;
}

.settings-content {
  min-width: 0;
}

.live-status:empty {
  display: none;
}

.live-status {
  margin-bottom: 16px;
  padding: 12px 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--text);
}

.live-status[data-tone="success"] {
  border-color: #34795e;
  background: var(--success-surface);
  color: var(--success);
}

.live-status[data-tone="error"] {
  border-color: #8d4a53;
  background: var(--danger-surface);
  color: var(--danger);
}

.live-status[data-tone="warning"] {
  border-color: #80662c;
  background: var(--warning-surface);
  color: var(--warning);
}

.page-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.16;
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  letter-spacing: -.045em;
}

h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  letter-spacing: -.02em;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
}

.lede {
  max-width: 690px;
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.panel,
.loading-panel,
.notice,
.account-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel {
  padding: clamp(20px, 4vw, 30px);
}

.panel + .panel,
.notice + .panel,
.panel + .notice {
  margin-top: 18px;
}

.panel-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading p {
  margin: 7px 0 0;
  color: var(--text-muted);
}

.detail-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
}

.detail-list div {
  min-width: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.detail-list dt {
  margin-bottom: 5px;
  color: var(--text-subtle);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  color: var(--text);
}

.stack,
.form-grid,
.fieldset-grid {
  display: grid;
  gap: 18px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  min-width: 0;
}

.form-field.full,
.button-row,
.error-summary {
  grid-column: 1 / -1;
}

label,
legend {
  color: var(--text);
  font-weight: 720;
}

label {
  display: block;
  margin-bottom: 7px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}

input::placeholder {
  color: var(--text-subtle);
}

input:hover,
select:hover {
  border-color: #6484a5;
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--danger);
}

input:disabled,
select:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.help,
.field-error {
  margin: 7px 0 0;
  font-size: .86rem;
}

.help {
  color: var(--text-muted);
}

.field-error {
  color: var(--danger);
  font-weight: 680;
}

.password-control {
  position: relative;
}

.password-control input {
  padding-right: 90px;
}

.password-toggle {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 82px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: .84rem;
  font-weight: 750;
}

.check-list {
  display: grid;
  gap: 9px;
}

.check-option {
  min-height: 54px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
}

.check-option:hover {
  border-color: var(--border-strong);
}

.check-option input {
  width: 20px;
  min-height: 20px;
  margin: 3px 0 0;
}

.check-option label {
  margin: 0;
}

.option-label,
.option-id,
.option-note {
  display: block;
}

.option-id,
.option-note {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 500;
}

.button-row,
.dialog-actions,
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.button-row {
  margin-top: 4px;
}

.button {
  min-height: 46px;
  padding: 10px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #fff;
}

.button-primary:hover {
  border-color: #1848a4;
  background: #1848a4;
  color: #fff;
}

.button-secondary {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
  background: var(--surface-raised);
  color: var(--text);
}

.button-danger {
  border-color: #9c515a;
  background: var(--danger-surface);
  color: var(--danger);
}

.button-danger:hover {
  border-color: var(--danger);
  background: var(--danger-surface);
  color: var(--danger);
}

.loading-panel {
  min-height: 210px;
  padding: 28px;
  display: grid;
  align-content: center;
  gap: 14px;
}

.loading-panel span {
  width: min(100%, 620px);
  height: 18px;
  border-radius: 999px;
  background: var(--border);
  animation: loading-pulse 1.5s ease-in-out infinite alternate;
}

.loading-panel span:nth-child(2) {
  width: min(74%, 460px);
  animation-delay: .12s;
}

.loading-panel span:nth-child(3) {
  width: min(48%, 300px);
  animation-delay: .24s;
}

@keyframes loading-pulse {
  from { opacity: .55; }
  to { opacity: 1; }
}

.notice,
.error-summary {
  padding: 18px;
}

.notice {
  box-shadow: none;
}

.notice h1,
.notice h2,
.error-summary h2 {
  margin-bottom: 7px;
  font-size: 1.15rem;
}

.notice p,
.error-summary p {
  margin: 0 0 13px;
}

.notice-success {
  border-color: #34795e;
  background: var(--success-surface);
}

.notice-warning {
  border-color: #80662c;
  background: var(--warning-surface);
}

.notice-error,
.error-summary {
  border: 1px solid #8d4a53;
  border-radius: var(--radius);
  background: var(--danger-surface);
  color: var(--danger);
}

.error-summary ul {
  margin: 0;
  padding-left: 20px;
}

.error-summary a {
  color: var(--danger);
}

.toolbar {
  margin-bottom: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, .55fr) minmax(170px, .65fr);
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.toolbar label {
  font-size: .84rem;
}

.toolbar-summary {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: .9rem;
}

.table-wrap {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th:nth-child(1) { width: 22%; }
th:nth-child(2) { width: 13%; }
th:nth-child(3) { width: 27%; }
th:nth-child(4) { width: 23%; }
th:nth-child(5) { width: 15%; }

caption {
  padding: 13px 16px;
  color: var(--text-muted);
  text-align: left;
}

th,
td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

th {
  background: var(--surface-subtle);
  color: var(--text-muted);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgb(100 200 244 / 4%);
}

.person-name,
.person-username {
  display: block;
}

.person-name {
  color: var(--text);
  font-weight: 740;
}

.person-username {
  color: var(--text-muted);
  font-size: .84rem;
}

.status-badge,
.group-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 720;
}

.status-badge {
  white-space: nowrap;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid currentColor;
}

.status-badge.enabled {
  color: var(--success);
}

.status-badge.disabled {
  color: var(--text-muted);
}

.group-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.group-chip {
  min-height: 26px;
  padding: 3px 8px;
  background: var(--accent-surface);
  color: var(--accent);
}

.empty-state {
  padding: 36px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-align: center;
}

.empty-state h2 {
  margin-bottom: 7px;
}

.empty-state p {
  margin: 0;
}

.summary-list {
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.summary-list li {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(110px, .45fr) minmax(0, 1fr);
  gap: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
}

.summary-label {
  color: var(--text-muted);
  font-size: .86rem;
  font-weight: 700;
}

.warning-copy {
  color: var(--warning);
}

dialog {
  width: min(580px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: 0 24px 90px rgb(0 0 0 / 58%);
}

dialog::backdrop {
  background: rgb(1 7 13 / 78%);
  backdrop-filter: blur(4px);
}

.dialog-content {
  padding: clamp(20px, 5vw, 30px);
}

.dialog-description {
  margin-top: 12px;
  color: var(--text-muted);
}

.dialog-description p {
  margin: 8px 0 0;
}

.dialog-fields {
  margin-top: 20px;
}

.dialog-error {
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid #8d4a53;
  border-radius: var(--radius-sm);
  background: var(--danger-surface);
  color: var(--danger);
}

.dialog-actions {
  margin-top: 24px;
  justify-content: flex-end;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 900px) {
  .page-heading,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .page-heading .button,
  .panel-heading .button {
    width: 100%;
  }

  .detail-list,
  .form-grid,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
  }

  table,
  tbody {
    display: block;
  }

  thead,
  caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  th {
    width: auto !important;
  }

  tbody {
    display: grid;
    gap: 12px;
  }

  tbody tr {
    padding: 14px;
    display: grid;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-subtle);
  }

  td {
    padding: 0;
    display: grid;
    grid-template-columns: minmax(90px, .42fr) minmax(0, 1fr);
    gap: 10px;
    border: 0;
  }

  td::before {
    color: var(--text-subtle);
    content: attr(data-label);
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .03em;
    text-transform: uppercase;
  }

  td[data-label="Konto"] {
    grid-template-columns: 1fr;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
  }

  td[data-label="Konto"]::before {
    display: none;
  }

  td[data-label="Aktion"] .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-inner,
  .settings-layout {
    padding-inline: 14px;
  }

  .settings-layout {
    padding-top: 24px;
  }

  .settings-navigation a {
    flex: 1 1 100%;
  }

  .panel,
  .loading-panel {
    padding: 17px;
    border-radius: var(--radius);
  }

  .button-row,
  .dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .button-row .button,
  .dialog-actions .button {
    width: 100%;
  }

  .summary-list li,
  td {
    grid-template-columns: 1fr;
  }

  td::before {
    margin-bottom: -6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Shared platform shell. This file is also served at the exact /platform.css route. */
.header-inner { width: min(1240px, 100%); min-height: 80px; padding: 16px 28px; gap: 32px; }
.brand-block { display: grid; gap: 2px; flex-shrink: 0; }
.brand { font-size: 1.05rem; letter-spacing: -.025em; }
.environment { color: var(--text-subtle); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.main-navigation { flex: 1; }
.main-navigation a { font-size: .92rem; padding-inline: 16px; }
.account-navigation { display: flex; align-items: center; gap: 6px; }
.account-navigation a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: var(--text-muted); font-size: .87rem; text-decoration: none; }
.account-navigation a:hover { background: var(--surface-raised); color: var(--text); }
.account-navigation a[aria-current] { background: var(--accent-surface); color: var(--accent); }
.account-navigation .logout { border: 1px solid var(--border); }
.page-content, .settings-layout { width: min(1200px, 100%); margin: auto; padding: 40px 28px 64px; }
.page-heading { align-items: center; margin-bottom: 30px; }
.page-heading .lede { max-width: 760px; }
.eyebrow { font-weight: 650; letter-spacing: .09em; }
.lede { font-size: .98rem; margin-top: 10px; }
.table-wrap { background: var(--surface); }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
th { font-size: .7rem; }
td { font-size: .9rem; }
td .button { font-size: .82rem; padding: 8px 11px; }
.group-chip { font-size: .73rem; border-radius: 5px; font-weight: 550; }
.toolbar { background: var(--surface); padding: 18px; }
.panel { box-shadow: none; }
#account-app > .panel { max-width: 900px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 30px 0 14px; }
.section-heading h2 { font-size: 1.2rem; }
.section-heading p, .section-copy { margin: 0; color: var(--text-muted); font-size: .83rem; }
.section-copy { margin: -6px 0 18px; }
.project-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { position: relative; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; }
a.card { grid-column: 1 / -1; min-height: 205px; border-left: 4px solid var(--accent); }
a.card:hover { border-color: var(--accent); color: var(--text); box-shadow: var(--shadow); }
.card h2 { font-size: 1.45rem; }
.card p { color: var(--text-muted); max-width: 700px; margin: 12px 0 24px; }
.card[data-availability="planned"] { background: transparent; padding: 24px; }
.card[data-availability="planned"] h2 { font-size: 1.1rem; }
.card[data-availability="planned"] p { font-size: .9rem; margin-bottom: 16px; }
.tag { display: inline-flex; padding: 4px 10px; font-size: .75rem; border-radius: 6px; color: var(--success); background: var(--success-surface); }
.tag.pending { color: var(--text-muted); background: var(--surface-raised); }
.project-action { position: absolute; right: 28px; bottom: 28px; min-height: 44px; padding: 10px 18px; background: var(--accent-strong); color: #fff; border-radius: 8px; font-weight: 650; font-size: .9rem; }
.empty { padding: 24px; color: var(--warning); background: var(--warning-surface); border-radius: var(--radius); }
.health-overview { padding: 26px 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border: 1px solid var(--border); border-left: 4px solid var(--text-subtle); border-radius: var(--radius-lg); background: var(--surface); }
.health-overview h2 { font-size: 1.45rem; }
.health-overview p:not(.eyebrow) { color: var(--text-muted); font-size: .9rem; margin: 8px 0 0; }
.health-overview[data-tone="success"] { border-left-color: var(--success); }
.health-overview[data-tone="warning"] { border-left-color: var(--warning); }
.health-overview[data-tone="error"] { border-left-color: var(--danger); }
.state { max-width: 250px; text-align: right; font-size: .8rem !important; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 0; }
.metric { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.metric dt { font-size: .82rem; color: var(--text-muted); }
.metric dd { margin: 8px 0 4px; font-size: 1.85rem; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.metric small { color: var(--text-subtle); font-size: .72rem; }
.monitor-checks { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: clip; }
.check-row { padding: 0 22px; border-bottom: 1px solid var(--border); }
.check-row:last-child { border-bottom: 0; }
.check-row summary { list-style: none; display: grid; grid-template-columns: minmax(220px,1fr) 180px 90px 100px; align-items: center; gap: 18px; padding: 17px 0; }
.check-row summary::-webkit-details-marker { display: none; }
summary { cursor: pointer; min-height: 44px; font-weight: 600; }
summary:hover { color: var(--accent); }
.check-name { display: block; font-size: .9rem; }
.check-description { display: block; color: var(--text-subtle); font-size: .74rem; font-weight: 400; margin-top: 2px; }
.check-history { display: flex; gap: 3px; height: 23px; }
.check-history span { flex: 1; min-width: 2px; border-radius: 2px; background: var(--border-strong); }
.check-history span[data-success="true"] { background: var(--success); }
.check-history span[data-success="false"] { background: var(--danger); }
.check-time { color: var(--text-muted); font-size: .8rem; text-align: right; font-variant-numeric: tabular-nums; }
.check-status { font-size: .75rem; font-weight: 600; text-align: right; }
.check-status[data-tone="success"] { color: var(--success); }
.check-status[data-tone="error"] { color: var(--danger); }
.check-status[data-tone="warning"] { color: var(--warning); }
.check-detail { border-top: 1px solid var(--border); padding: 14px 0 18px; color: var(--text-muted); font-size: .84rem; }
.check-detail ol { padding-left: 20px; margin: 8px 0 0; }
.check-detail li { padding-block: 3px; }
.operations-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; align-items: start; }
.operations-notes .panel { padding: 20px 22px; margin: 0; }
.operations-notes summary { display: flex; align-items: center; justify-content: space-between; font-size: .9rem; }
.operations-notes summary::after { content: '+'; font-size: 1.3rem; color: var(--text-subtle); }
.operations-notes details[open] summary::after { content: '−'; }
.operations-notes p, .operations-notes ul { font-size: .84rem; color: var(--text-muted); }
#failed-units { margin-left: auto; margin-right: 16px; color: var(--warning); }
.public-entry .main-navigation { justify-content: flex-end; }
.public-entry .page-content { padding-top: clamp(48px, 10vh, 110px); }
.access-card { max-width: 820px; padding: clamp(28px,6vw,64px); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.access-card h1 { font-size: clamp(2.5rem,6vw,4rem); line-height: 1.06; }
.access-card .description { max-width: 470px; color: var(--text-muted); line-height: 1.7; margin-top: 24px; }
.entry-action { margin-top: 18px; }
.privacy-note { margin: 22px 0 0; font-size: .8rem; color: var(--text-subtle); }
.feedback { max-width: 820px; padding: 16px; margin-bottom: 20px; border-radius: var(--radius); color: var(--success); background: var(--success-surface); }
.feedback.warning { color: var(--warning); background: var(--warning-surface); }
@media (prefers-color-scheme: dark) {
  :root { --background: #0c1421; --surface: #131f30; --surface-raised: #1d2e43; --surface-subtle: #101b2a; --border: #2c3d52; --border-strong: #657a95; --text: #edf3fb; --text-muted: #b0bed0; --text-subtle: #9aacc1; --accent: #96bcff; --accent-strong: #285cc3; --accent-surface: #213757; --success: #7ed7ad; --success-surface: #18382c; --warning: #edc47c; --warning-surface: #392e1c; --danger: #ffacb3; --danger-surface: #42242b; --focus: #b4d0ff; }
}
@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; gap: 8px 16px; }
  .brand-block { flex: 1; }
  .main-navigation { order: 3; flex: 1 0 100%; border-top: 1px solid var(--border); padding-top: 8px; }
  .check-row summary { grid-template-columns: minmax(190px,1fr) 140px 65px 95px; gap: 10px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .header-inner { padding: 12px 18px; }
  .brand { font-size: .96rem; }
  .account-navigation { gap: 0; }
  .account-navigation a { padding: 8px; font-size: .76rem; }
  .main-navigation { flex-wrap: nowrap; gap: 4px; }
  .main-navigation a { flex: 1; justify-content: center; padding: 8px 12px; }
  .page-content, .settings-layout { padding: 28px 18px 44px; }
  .page-heading { align-items: stretch; flex-direction: column; gap: 16px; margin-bottom: 22px; }
  .page-heading .button { width: auto; align-self: flex-start; }
  .project-grid, .operations-notes { grid-template-columns: 1fr; }
  .card, .card[data-availability="planned"] { padding: 22px; }
  .project-action { position: static; margin-top: 18px; }
  .health-overview { align-items: flex-start; flex-direction: column; gap: 8px; padding: 22px; }
  .state { text-align: left; max-width: none; }
  .metric { padding: 18px 14px; }
  .metric dd { font-size: 1.55rem; }
  .metric small { display: block; line-height: 1.4; }
  .check-row { padding-inline: 16px; }
  .check-row summary { grid-template-columns: minmax(0,1fr) 90px; gap: 10px 16px; }
  .check-history { grid-column: 1; grid-row: 2; max-width: 220px; }
  .check-status { grid-column: 2; grid-row: 1; }
  .check-time { grid-column: 2; grid-row: 2; }
  .public-entry .header-inner { flex-wrap: nowrap; }
  .public-entry .main-navigation { order: initial; flex: initial; padding: 0; border: 0; flex-wrap: wrap; }
  .public-entry .main-navigation a { font-size: .8rem; padding-inline: 10px; }
  .public-entry .signed-in { display: none; }
}

.account-navigation { flex-wrap: wrap; justify-content: flex-end; max-width: 245px; }
.account-navigation .signed-in, .account-navigation .session-state { order: 3; flex: 1 0 100%; justify-content: flex-end; min-height: 0; padding: 0 3px; font-size: .7rem; color: var(--text-muted); }
.account-navigation .session-state::before { width: 6px; height: 6px; }
@media (max-width: 640px) { .account-navigation { max-width: 170px; } .account-navigation .session-state, .account-navigation .signed-in { font-size: .65rem; } }
/* Keep the operational evidence visible without oversized headings. */
.page-content, .settings-layout { padding-top: 30px; }
.page-heading .eyebrow { margin-bottom: 6px; font-size: .68rem; }
.page-heading { margin-bottom: 22px; }
.header-inner { padding-block: 10px; }
.account-navigation .signed-in { text-align: right; }
.health-overview { padding: 20px 24px; }
.metric { padding: 17px 20px; }
.section-heading { margin-top: 24px; }
@media (max-width: 640px) { .metric { padding: 16px 14px; } }
