:root {
  --navy: #003b73;
  --navy-deep: #00264d;
  --azure: #0084ff;
  --azure-deep: #0066cc;
  --azure-soft: #e8f3ff;
  --orange: #ff7a00;
  --gold: #ffb800;
  --ink: #0b1b2b;
  --slate: #555555;
  --paper: #f5f7fb;
  --white: #ffffff;
  --line: #d7dee8;
  --up: #0f7b5a;
  --down: #c62828;
  --degraded: #e65100;
  --pending: #5c6b7a;
  --shadow: 0 10px 30px rgba(11, 27, 43, 0.06);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1200px 420px at 8% -10%, rgba(0, 132, 255, 0.08), transparent 55%),
    radial-gradient(900px 380px at 100% 0%, rgba(255, 122, 0, 0.06), transparent 50%),
    var(--paper);
  color: var(--ink);
  line-height: 1.5;
  font-size: 16px;
}

a { color: var(--azure); text-decoration: none; }
a:hover { color: var(--azure-deep); }

.auth-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.auth-card img.logo {
  display: block;
  width: min(280px, 100%);
  height: auto;
  margin: 0 auto 16px;
}

h1 {
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 8px;
  font-weight: 700;
}

h2 {
  color: var(--navy);
  font-size: 1.05rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

label {
  display: block;
  font-weight: 650;
  margin-bottom: 4px;
  color: var(--ink);
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
input[type="url"],
input[type="file"],
select,
textarea,
.field-control {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 16px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

.field .field-control,
.field input,
.field select,
.field textarea {
  margin-bottom: 0;
}

input:focus,
select:focus,
textarea:focus,
.field-control:focus {
  outline: 2px solid rgba(0, 132, 255, 0.28);
  border-color: var(--azure);
}

button, .button, a.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--azure);
  color: var(--white);
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 132, 255, 0.18);
}

button:hover, .button:hover { background: var(--azure-deep); color: #fff; }

.button-secondary,
button.button-secondary,
a.button-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-secondary:hover,
button.button-secondary:hover,
a.button-secondary:hover {
  background: var(--azure-soft);
  color: var(--navy);
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.alert p { margin: 0; }

.alert-error {
  background: #fdecea;
  color: var(--down);
}

.alert-info {
  background: var(--azure-soft);
  color: var(--navy);
}

.maintenance-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #fff3e8;
  color: var(--navy);
  border: 1px solid #f0c9a0;
}
.maintenance-banner p { margin: 4px 0 0; color: var(--slate); font-size: 0.92rem; }
.maintenance-banner form { margin: 0; flex-shrink: 0; }
.maintenance-banner-soon { background: #eef2f6; border-color: var(--line); }

.created-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--azure-soft);
  color: var(--navy);
  border: 1px solid #c5d8ea;
}
.created-banner p { margin: 4px 0 0; color: var(--slate); font-size: 0.92rem; }
.created-banner .button { flex-shrink: 0; }
@media (max-width: 640px) {
  .created-banner { flex-direction: column; align-items: stretch; }
}

.assist-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff3e8;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 650;
}
.assist-banner form { margin: 0; }
.assist-banner .button-secondary {
  background: #fff;
  color: var(--navy);
}

.fleet-overall { margin: 10px 0 4px; }
.skip-mfa { margin-top: 12px; }

.auth-legal {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.875rem;
}

.auth-legal-sep {
  margin: 0 8px;
  color: var(--line);
}

.legal-shell {
  flex: 1;
  width: 100%;
  padding: 36px 20px 56px;
}

.legal-page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 56px 40px;
}

.legal-hero {
  margin-bottom: 28px;
}

.legal-brand {
  display: inline-block;
  margin-bottom: 28px;
}

.legal-brand img {
  display: block;
  width: min(220px, 70vw);
  height: auto;
}

.legal-page .eyebrow {
  margin: 0 0 8px;
  color: var(--azure);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-domain {
  margin: 0 0 20px;
  color: var(--slate);
  font-size: 1rem;
}

.legal-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.legal-dates div { margin: 0; }
.legal-dates dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.legal-dates dd {
  margin: 4px 0 0;
  font-weight: 650;
  color: var(--navy);
}

.legal-toc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin: 0 0 36px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
}

.legal-toc a {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
}

.legal-toc a:hover { color: var(--azure); }

.legal-page section {
  margin: 0 0 28px;
  padding-top: 8px;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.legal-page h3 {
  color: var(--navy);
  font-size: 1rem;
  margin: 18px 0 8px;
}

.legal-page p,
.legal-page li {
  color: var(--ink);
}

.legal-page p { margin: 0 0 12px; }

.legal-page ul {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.legal-page li { margin-bottom: 8px; }

.legal-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 12px 0 0;
  padding: 12px 16px;
  line-height: 1.4;
  font-style: normal;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
}

.legal-contact span {
  display: block;
}

.legal-contact strong {
  color: var(--navy);
  font-size: 1.05rem;
  margin: 0 0 2px;
}

.legal-page p.legal-owner {
  margin: 20px 0 0;
}

.legal-back {
  margin: 32px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.legal-verify {
  margin: 20px 0 0;
  padding: 12px 14px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--azure); }

.stack { display: flex; flex-direction: column; gap: 12px; }

.codes {
  font-family: ui-monospace, Consolas, monospace;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  word-break: break-all;
}

.qr {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}
.qr img {
  width: 220px;
  height: 220px;
  background: #fff;
  image-rendering: pixelated;
}

.app-header {
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 59, 115, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 5px 10px;
}

.app-header .brand img { height: 36px; width: auto; display: block; }

.app-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.app-nav a {
  color: #fff;
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}
.app-nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.app-nav a[aria-current="page"],
.nav-dropdown.is-current > a {
  background: rgba(255, 255, 255, 0.16);
}

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 30;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  color: var(--navy);
  border-radius: 8px;
  padding: 8px 10px;
}
.nav-dropdown-menu a:hover {
  background: var(--azure-soft);
  color: var(--navy);
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid #ffffff55;
}
.profile-chip:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.profile-chip img,
.table-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--azure);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}
.avatar-fallback-lg { width: 64px; height: 64px; font-size: 1.2rem; }
.profile-preview {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.profile-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.org-name { margin-right: 12px; font-weight: 600; color: #d7e8ff; }
.org-switch select {
  margin-right: 8px;
  margin-bottom: 0;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #ffffff55;
  background: var(--navy-deep);
  color: #fff;
  width: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.app-main { padding: 28px 20px 48px; max-width: 1080px; margin: 0 auto; width: 100%; flex: 1; }

body.layout-wide .app-header-inner,
body.layout-wide .app-main {
  max-width: 1440px;
}
body.layout-wide .lede { max-width: none; }
body.layout-wide .panel,
body.layout-wide .setup-card {
  overflow-x: auto;
}
body.layout-wide table.data th,
body.layout-wide table.data td:not([colspan]) {
  white-space: nowrap;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page-actions form { margin: 0; display: inline-flex; }
table.data form { margin: 0; }

.org-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 8px 0 0;
  color: var(--slate);
  font-size: 0.95rem;
}
.org-plan-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.org-plan-head h2 { margin: 0 0 4px; }
.org-plan-head .account-plan-name { margin: 0; }
.org-plan-head .button-secondary { flex-shrink: 0; align-self: center; }
.account-plan-card .account-plan-features { margin-top: 12px; }

.row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}
.row-actions form { margin: 0; }

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--azure-deep);
}

.lede {
  margin: 0;
  color: var(--slate);
  max-width: 46rem;
}

.settings-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 22px;
}
.settings-nav a {
  color: var(--navy);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
}
.settings-nav a:hover {
  border-color: var(--azure);
  color: var(--azure-deep);
  background: var(--azure-soft);
}
.settings-nav a[aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.settings-nav a[aria-current="page"]:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff;
}

.explain-card {
  background: var(--azure-soft);
  border: 1px solid #c5ddf5;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.explain-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--navy);
}
.explain-card p {
  margin: 0 0 8px;
  color: var(--slate);
}
.explain-card p:last-child { margin: 0; }

.panel,
.setup-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 20px;
}

.setup-card-muted { background: #fbfcfe; }

.panel { padding: 0; overflow: hidden; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.type-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  color: var(--ink);
  min-height: 118px;
}
.type-card strong { color: var(--navy); font-size: 1rem; }
.type-card span { color: var(--slate); font-size: 0.9rem; }
.type-card:hover { border-color: var(--azure); color: var(--ink); }
.type-card.is-selected {
  border-color: var(--azure);
  background: var(--azure-soft);
  box-shadow: inset 0 0 0 1px var(--azure);
}

.field { margin-bottom: 18px; }
.field-help {
  margin: 0 0 8px;
  color: var(--slate);
  font-size: 0.88rem;
  font-weight: 400;
}
.last-error {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid #f3c4c4;
  background: #fff7f7;
  border-radius: 10px;
}
.last-error-meta {
  margin: 0 0 4px;
  color: var(--slate);
  font-size: 0.88rem;
}
.last-error-meta strong { color: var(--down); }
.last-error-body {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 400;
}
.field-error { margin: 6px 0 0; color: var(--down); font-size: 0.88rem; }
.field.has-error .field-control,
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--down);
}
.errorlist { color: var(--down); margin: 0 0 12px; padding-left: 1.1rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 4px 0 16px;
  font-weight: 400;
}
.check-row .field-help { margin: 4px 0 0; }
.check-row strong { display: block; }
.field-check { margin-top: 4px; width: auto; }
.sms-consent {
  align-items: flex-start;
  font-weight: 400;
  color: var(--slate);
  line-height: 1.45;
}
.sms-consent span { font-weight: 400; }
.sms-consent a { font-weight: 650; }

.check-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.check-list li label,
.check-list .check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  margin: 0;
}
.monitor-order-toolbar {
  margin: 8px 0 0;
}
.monitor-order-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.monitor-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.monitor-order-row.is-included {
  border-color: rgba(0, 132, 255, 0.35);
}
.monitor-order-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 600;
}
.monitor-order-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.monitor-order-actions button {
  padding: 6px 10px;
  font-size: 0.85rem;
  box-shadow: none;
}
.monitor-order-actions button:disabled,
.monitor-order-toolbar button:disabled,
.monitor-order-actions button:disabled:hover,
.monitor-order-toolbar button:disabled:hover {
  opacity: 0.45;
  cursor: default;
  background: var(--white);
  color: var(--navy);
}
.tag-suggest { margin: 0 0 16px; }
.tag-suggest .chip { cursor: pointer; }
.col-check { width: 36px; }
code {
  font-size: 0.9em;
  background: var(--chip, #eef3f8);
  padding: 1px 6px;
  border-radius: 4px;
}

.status-page {
  min-height: 100vh;
  background:
    radial-gradient(1200px 420px at 8% -10%, rgba(0, 132, 255, 0.08), transparent 55%),
    radial-gradient(900px 380px at 100% 0%, rgba(255, 122, 0, 0.06), transparent 50%),
    var(--paper);
  color: var(--ink);
}
.status-page .status { text-transform: none; }
.status-page-inner {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 28px 40px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.status-hero {
  text-align: center;
  margin-bottom: 22px;
}
.status-clock {
  margin: 0 0 16px;
  color: var(--slate);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.status-customer-logo {
  display: inline-block;
  margin: 0 0 12px;
}
.status-customer-logo img {
  display: block;
  margin: 0 auto;
  max-height: 72px;
  max-width: min(280px, 100%);
  width: auto;
  height: auto;
}
.status-page-brand {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}
.status-page-brand h1 {
  margin: 0;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}
.status-page-brand:hover { color: var(--azure-deep, #005bb5); }
.status-banner {
  text-align: center;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 20px;
  box-shadow: var(--shadow);
}
.status-banner-up { background: #e6f6ef; color: var(--up); }
.status-banner-down { background: #fdecea; color: var(--down); }
.status-banner-suspected_down { background: #fff3e8; color: var(--degraded); }
.status-banner-unknown,
.status-banner-pending,
.status-banner-paused { background: #eef2f6; color: var(--pending); }
.status-banner-maintenance { background: #fff3e8; color: var(--degraded); }
.status-maintenance-card {
  background: #fff3e8;
  border: 1px solid #f0c9a0;
  border-radius: var(--radius);
  padding: 16px 20px 12px;
  margin: 0 0 20px;
  box-shadow: var(--shadow);
  color: var(--navy);
}
.status-maintenance-card h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.status-maintenance-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.status-maintenance-card li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 8px 0;
  border-top: 1px solid #f0c9a0;
}
.status-maintenance-card li:first-child { border-top: 0; padding-top: 0; }
.status-maintenance-name { font-weight: 650; }
.status-maintenance-name a { color: inherit; text-decoration: none; }
.status-maintenance-name a:hover { color: var(--azure-deep, #005bb5); }
.status-maintenance-until {
  color: var(--slate);
  font-size: 0.88rem;
  font-weight: 650;
}
.status-latest { text-align: center; margin: 0 0 20px; max-width: none; }
.status-uptime {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
  text-align: center;
}
.status-uptime-cell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 12px 18px;
  box-shadow: var(--shadow);
}
.status-uptime-value {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--navy);
}
.status-uptime-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--slate);
  letter-spacing: 0.01em;
}
.status-uptime-compact {
  margin: 16px 0 8px;
}
.status-uptime-compact .status-uptime-value { font-size: 1.55rem; }
.status-overall {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0 28px;
}
.status-monitor {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.status-monitor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.status-monitor-head h1,
.status-monitor-head h2 { margin: 0; }
.status-detail-head { margin-bottom: 18px; }
.status-monitor-uptime {
  color: var(--slate);
  font-size: 0.82rem;
  font-weight: 650;
}
.status-back { margin: 0 0 12px; }
.status-feed {
  margin-top: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.status-feed h2 { margin-top: 0; }
.status-feed h3 { margin: 16px 0 4px; font-size: 0.92rem; color: var(--slate); }
.status-feed article {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.status-feed article:last-child { border-bottom: 0; }
.status-outage {
  margin: 0 0 18px;
  padding: 16px 0 4px;
  border-bottom: 1px solid var(--line);
}
.status-outage:last-child { border-bottom: 0; margin-bottom: 0; }
.status-outage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 0 0 12px;
}
.status-outage-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy);
}
.status-outage-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.status-outage-down .status-outage-badge {
  background: #fdecea;
  color: var(--down);
}
.status-outage-up .status-outage-badge {
  background: #e6f6ef;
  color: var(--up);
}
.status-outage-headline {
  margin: 0;
  flex: 1 1 100%;
  color: var(--slate);
  font-size: 0.92rem;
}
.status-outage-graph { margin: 0 0 14px; }
.status-outage-track {
  height: 10px;
  border-radius: 999px;
  background: #e8eef5;
  overflow: hidden;
}
.status-outage-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
}
.status-outage-fill.is-down { background: #c62828; }
.status-outage-fill.is-up { background: #0f7b5a; }
.status-outage-fill.is-live {
  background-image: linear-gradient(90deg, #c62828 0%, #ef5350 50%, #c62828 100%);
  background-size: 200% 100%;
  animation: status-outage-pulse 2.4s ease-in-out infinite;
}
@keyframes status-outage-pulse {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.status-outage-axis {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--slate);
}
.status-outage-notes {
  list-style: none;
  margin: 0;
  padding: 0;
}
.status-outage-notes li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.status-outage-notes time {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--slate);
  margin-bottom: 4px;
}
.status-outage-notes p {
  margin: 0;
  color: var(--navy);
  white-space: pre-wrap;
}
.status-history {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--slate);
}
.status-unlock {
  max-width: 420px;
  margin: 8px auto 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.status-subscribe {
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.status-subscribe-copy h2 { margin: 0 0 6px; }
.status-subscribe-copy p {
  margin: 0;
  color: var(--slate);
  max-width: 42rem;
}
.status-subscribe-notice {
  margin-top: 8px;
  color: var(--navy);
  font-weight: 650;
}
.status-subscribe-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto;
  gap: 12px 14px;
  align-items: end;
  margin: 16px 0 0;
}
.status-subscribe-field {
  display: grid;
  gap: 6px;
  margin: 0;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}
.status-subscribe-field em {
  font-style: normal;
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0;
  color: var(--pending);
}
.status-subscribe-form input,
.status-subscribe-form .field-control {
  width: 100%;
  margin: 0;
  background: var(--paper);
}
.status-subscribe-form button {
  margin: 0;
  box-shadow: none;
  white-space: nowrap;
}
.status-feed-compact,
.status-subscribe-compact {
  margin-top: 0;
  margin-bottom: 28px;
}
.status-powered {
  margin-top: auto;
  padding-top: 48px;
  text-align: center;
}
.status-powered a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--slate);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}
.status-powered a:hover { color: var(--navy); }
.status-powered img {
  height: 72px;
  width: auto;
  max-width: min(220px, 70vw);
  display: block;
}
.status-logo-preview {
  display: block;
  max-height: 56px;
  width: auto;
  margin: 0 0 12px;
}
.chart-strip-bars { border-radius: 8px; overflow: visible; }
.chart-svg.chart-strip-bars rect { cursor: help; }
.chart-svg.chart-strip-bars rect:hover { opacity: 0.82; }
.status-uptime-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.status-hero-compact {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 32px;
  text-align: left;
  flex-wrap: wrap;
}
.status-hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.status-hero-compact .status-customer-logo { margin: 0; }
.status-hero-compact .status-customer-logo img {
  margin: 0;
  max-height: 40px;
}
.status-hero-compact .status-page-brand h1 {
  font-size: 1.45rem;
  font-weight: 750;
}
.status-hero-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 12rem;
}
.status-hero-kicker {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.status-hero-compact .status-clock,
.status-refresh {
  margin: 0;
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.45;
}
.status-banner-compact {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-size: 1.35rem;
  font-weight: 650;
}
.status-banner-compact em {
  font-style: normal;
  font-weight: 750;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pending);
  vertical-align: middle;
}
.status-dot-lg { width: 18px; height: 18px; flex: none; }
.status-dot-up { background: #3bd671; }
.status-dot-down { background: #f2545b; }
.status-dot-suspected_down { background: #f5a524; }
.status-dot-unknown, .status-dot-pending, .status-dot-paused { background: #8b97a8; }
.status-dot-maintenance { background: #f5a524; }
.status-compact-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 0 10px;
}
.status-compact-head h2 { margin: 0; font-size: 1.15rem; }
.status-compact-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 20px 4px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.status-compact-row {
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
}
.status-compact-row:last-child { border-bottom: 0; }
.status-compact-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.status-compact-row-top h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.status-compact-row-top a { color: inherit; text-decoration: none; }
.status-compact-row-top a:hover { color: var(--azure-deep, #005bb5); }
.status-compact-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.status-compact-pct {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f7b5a;
}
.status-compact-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 650;
}
.chart-compact { margin: 8px 0 0; }
.chart-compact .chart-svg { display: block; width: 100%; height: 15px; }
.status-tally {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin: 8px 0 0;
  color: var(--slate);
  font-size: 0.82rem;
  font-weight: 650;
}
.status-tally-down { color: var(--down); }
.theme-picker {
  display: grid;
  gap: 10px;
}
.theme-option {
  display: grid;
  grid-template-columns: auto 72px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--white);
  cursor: pointer;
}
.theme-option:has(input:checked) {
  border-color: var(--azure, #0084ff);
  box-shadow: 0 0 0 2px rgba(0, 132, 255, 0.18);
}
.theme-option-swatch {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
  padding: 8px;
  border-radius: 8px;
  background: #eef2f6;
}
.theme-swatch-bar {
  flex: 1;
  height: 70%;
  border-radius: 2px;
  background: #22c55e;
}
.theme-swatch-bar:nth-child(2) { height: 100%; }
.theme-swatch-bar:nth-child(3) { height: 45%; background: #94a3b8; }
.theme-option-night .theme-option-swatch { background: #131a26; }
.theme-option-night .theme-swatch-bar { background: #3bd671; }
.theme-option-night .theme-swatch-bar:nth-child(3) { background: #2c3a4f; }
.theme-option-classic .theme-option-swatch { background: #f4f7fb; }
.status-theme-night {
  background: #131a26;
  color: #f4f7fb;
}
.status-theme-night .status-page-inner {
  max-width: 1440px;
  padding-top: 20px;
}
.status-theme-night .status-hero-meta {
  gap: 0;
}
.status-theme-night .status-hero-compact .status-clock,
.status-theme-night .status-refresh {
  line-height: 1.25;
}
.status-theme-night .status-page-brand,
.status-theme-night .status-page-brand h1,
.status-theme-night .status-compact-head h2,
.status-theme-night .status-subscribe h2,
.status-theme-night .status-detail-head h1 {
  color: var(--azure);
  font-weight: 750;
}
.status-theme-night .status-page-brand:hover,
.status-theme-night .status-page-brand:hover h1 {
  color: #4da6ff;
}
.status-theme-night .status-clock,
.status-theme-night .status-refresh,
.status-theme-night .lede,
.status-theme-night .field-help,
.status-theme-night .status-tally { color: #9aa6b8; }
.status-theme-night .status-hero-kicker { color: #fff; }
.status-theme-night .status-banner {
  background: #212937;
  color: #fff;
  box-shadow: none;
}
.status-theme-night .status-banner-up em { color: #3bd671; }
.status-theme-night .status-banner-down em { color: #f2545b; }
.status-theme-night .status-banner-suspected_down em { color: #f5a524; }
.status-theme-night .status-banner-unknown em,
.status-theme-night .status-banner-pending em,
.status-theme-night .status-banner-paused em { color: #9aa6b8; }
.status-theme-night .status-banner-maintenance em { color: #f5a524; }
.status-theme-night .status-compact-list,
.status-theme-night .status-feed,
.status-theme-night .status-monitor,
.status-theme-night .status-uptime-cell,
.status-theme-night .status-unlock,
.status-theme-night .status-subscribe,
.status-theme-night .status-maintenance-card {
  background: #212937;
  border-color: #2c3a4f;
  box-shadow: none;
  color: #f4f7fb;
}
.status-theme-night .status-maintenance-card { border-color: #8a5a2b; }
.status-theme-night .status-maintenance-card li { border-top-color: #2c3a4f; }
.status-theme-night .status-maintenance-until { color: #9aa6b8; }
.status-theme-night .status-compact-row { border-bottom-color: #2c3a4f; }
.status-theme-night .status-compact-pct { color: #3bd671; }
.status-theme-night .status-uptime-value { color: #fff; }
.status-theme-night .status-uptime-label,
.status-theme-night .status-feed h3,
.status-theme-night .chart figcaption,
.status-theme-night .status-history { color: #9aa6b8; }
.status-theme-night .status-feed article { border-bottom-color: #2c3a4f; }
.status-theme-night .status-outage { border-bottom-color: #2c3a4f; }
.status-theme-night .status-outage-head h3,
.status-theme-night .status-outage-notes p { color: #f4f7fb; }
.status-theme-night .status-outage-headline,
.status-theme-night .status-outage-axis,
.status-theme-night .status-outage-notes time { color: #9aa6b8; }
.status-theme-night .status-outage-track { background: #16202d; }
.status-theme-night .status-outage-fill.is-down { background: #f2545b; }
.status-theme-night .status-outage-fill.is-up { background: #3bd671; }
.status-theme-night .status-outage-fill.is-live {
  background-image: linear-gradient(90deg, #f2545b 0%, #ff8a80 50%, #f2545b 100%);
}
.status-theme-night .status-outage-down .status-outage-badge {
  background: rgba(242, 84, 91, 0.16);
  color: #f2545b;
}
.status-theme-night .status-outage-up .status-outage-badge {
  background: rgba(59, 214, 113, 0.16);
  color: #3bd671;
}
.status-theme-night .status-outage-notes li { border-top-color: #2c3a4f; }
.status-theme-day .status-outage-fill.is-down { background: #e11d48; }
.status-theme-day .status-outage-fill.is-up { background: #16a34a; }
.status-theme-night .status-back a { color: #8fd3ff; }
.status-theme-night .status-powered a { color: #9aa6b8; }
.status-theme-night .status-powered a:hover { color: #fff; }
.status-theme-night .status-subscribe-copy p,
.status-theme-night .status-subscribe-field { color: #9aa6b8; }
.status-theme-night .status-subscribe-notice { color: #f4f7fb; }
.status-theme-night .status-subscribe-form input,
.status-theme-night .status-subscribe-form .field-control {
  background: #131a26;
  border-color: #2c3a4f;
  color: #f4f7fb;
}
.status-theme-night .status-subscribe-form input::placeholder {
  color: #6b7788;
}
.status-theme-night .chart-axis { fill: #9aa6b8; }
.status-theme-night .status-dot-up { box-shadow: 0 0 10px rgba(59, 214, 113, 0.55); }
.status-theme-day .status-page-inner { max-width: 1440px; }
.status-theme-day .status-banner-compact {
  background: #fff;
  color: var(--navy);
}
.status-theme-day .status-banner-up em { color: #16a34a; }
.status-theme-day .status-banner-down em { color: #e11d48; }
.status-theme-day .status-compact-pct { color: #16a34a; }
.status-theme-day .status-dot-up { background: #22c55e; }
@media (max-width: 800px) {
  .status-uptime-four { grid-template-columns: 1fr 1fr; }
  .status-hero-meta {
    text-align: left;
    align-items: flex-start;
  }
  .theme-option { grid-template-columns: auto 1fr; }
  .theme-option-swatch { display: none; }
  .status-subscribe-form { grid-template-columns: 1fr; }
  .status-subscribe-form button { width: 100%; }
}
@media (max-width: 640px) {
  .status-uptime { grid-template-columns: 1fr; }
  .status-uptime-four { grid-template-columns: 1fr; }
  .status-uptime-value { font-size: 1.7rem; }
}

.setup-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 8px 0 24px;
}

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--navy);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 650;
}
.chip:hover { border-color: var(--azure); color: var(--azure-deep); }

.status {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
  background: #eef2f6;
  color: var(--pending);
}
.status-up, .status-active, .status-resolved, .status-low { background: #e6f6ef; color: var(--up); }
.status-down, .status-open, .status-urgent { background: #fdecea; color: var(--down); }
.status-suspected_down, .status-degraded, .status-slow, .status-high { background: #fff3e8; color: var(--degraded); }
.status-pending, .status-unknown, .status-paused, .status-normal { background: #eef2f6; color: var(--pending); }
.status-maintenance { background: #fff3e8; color: var(--degraded); }

.overview-card { margin-bottom: 20px; padding: 22px 24px; }
.overview {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}
.overview-status .eyebrow,
.overview-uptime .eyebrow {
  margin: 0 0 6px;
}
.overview-label {
  margin: 0;
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.overview-chip { margin: 10px 0 0; }
.overview-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 12px 0 0;
  color: var(--slate);
  font-size: 0.88rem;
  font-weight: 600;
}
.overview-count-down { color: var(--down); }
.overview-count-suspected_down,
.overview-count-slow,
.overview-count-maintenance { color: var(--degraded); }
.overview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.overview-metrics-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 360px;
}
.overview-metric { min-width: 0; }
.overview-metric-value {
  margin: 0;
  color: var(--navy);
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.overview-metric-label {
  margin: 4px 0 0;
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.account-plan-card { margin-bottom: 20px; }
.account-plan-card > h2 { margin-bottom: 8px; }
.account-plan > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.account-plan > summary::-webkit-details-marker,
.account-plan > summary::marker { display: none; content: ""; }
.account-plan-name {
  flex: 1;
  min-width: 0;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 750;
}
.account-plan .account-plan-action-hide { display: none; }
.account-plan[open] .account-plan-action-show { display: none; }
.account-plan[open] .account-plan-action-hide { display: inline; }
.account-plan-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px 18px;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.account-plan-features dt {
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.account-plan-features dd {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 650;
}
.expiry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.expiry-card { margin: 0; padding: 0; overflow: hidden; }
.expiry-card > table { margin: 0; }
.expiry-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 16px 18px;
}
.expiry-summary::-webkit-details-marker,
.expiry-summary::marker { display: none; content: ""; }
.expiry-summary h2 { margin: 0; }
.expiry-summary .field-help { margin: 4px 0 0; }
.expiry-summary .host-card-action { margin-left: auto; }
.expiry-card .host-card-action-hide { display: none; }
.expiry-card[open] .host-card-action-show { display: none; }
.expiry-card[open] .host-card-action-hide { display: inline; }
.expiry-card[open] .expiry-summary { border-bottom: 1px solid var(--line); }
.expiry-card-urgent {
  border-color: #f3c4a4;
  background: #fffaf6;
}
.expiry-row-urgent td { color: var(--degraded); font-weight: 650; }
.package-grid { display: grid; gap: 16px; }
.package-card .catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.fleet-card { margin-bottom: 20px; }
.stat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.stat-pill {
  background: #e6f6ef;
  color: var(--up);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.88rem;
}
.stat-pill-down { background: #fdecea; color: var(--down); }
.stat-pill-warn { background: #fff3e8; color: var(--degraded); }
.device-dots { display: flex; flex-wrap: wrap; gap: 8px; }
.device-dot {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}
.device-dot.status-up { background: #e6f6ef; color: var(--up); }
.device-dot.status-down { background: #fdecea; color: var(--down); }
.device-dot.status-suspected_down { background: #fff3e8; color: var(--degraded); }
.device-dot.status-paused,
.device-dot.status-pending,
.device-dot.status-unknown { background: #eef2f6; color: var(--pending); }
.device-dot.status-maintenance { background: #fff3e8; color: var(--degraded); }

.chart { margin: 8px 0 18px; }
.chart figcaption {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 6px;
}
.chart-svg { display: block; }
.chart-axis { font-size: 11px; fill: var(--slate); }
.chart-legend { margin: 6px 0 0; color: var(--slate); font-size: 0.8rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.swatch-up { background: var(--up); }
.swatch-down { background: var(--down); }
.swatch-mixed { background: var(--degraded); }
.swatch-empty { background: var(--line); }

.host-grid,
.ops-card-grid,
.heartbeat-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.host-grid {
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 800px) {
  .host-grid { grid-template-columns: 1fr; }
}
.host-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fbfcfe;
}
.host-card-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.host-card-head h3 { margin: 0; color: var(--navy); font-size: 1rem; }
.host-card-head .field-help { margin: 4px 0 0; }
.host-card-expand { padding: 0; overflow: hidden; }
.host-card-expand[open] { grid-column: 1 / -1; }
.host-card-expand > summary.host-card-head {
  list-style: none;
  cursor: pointer;
  margin: 0;
  padding: 16px;
  align-items: flex-start;
}
.host-card-title { min-width: 0; flex: 1; }
.host-card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.host-card-title-row h3 {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.host-card-expand > summary.host-card-head::-webkit-details-marker,
.host-card-expand > summary.host-card-head::marker { display: none; content: ""; }
.host-card-expand > summary.host-card-head .health-dot { margin-top: 0; }
.host-card-expand > summary.host-card-head:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: -2px;
  border-radius: 12px;
}
.host-card-action {
  margin-left: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--azure);
  white-space: nowrap;
  flex-shrink: 0;
}
.host-card-expand .host-card-action-hide { display: none; }
.host-card-expand[open] .host-card-action-show { display: none; }
.host-card-expand[open] .host-card-action-hide { display: inline; }
.host-card-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}
.host-card-body .meta { margin-top: 12px; }
.ops-metric { margin-bottom: 0; }
.ops-metric .field-help {
  margin: 4px 0 0;
  font-size: 0.8rem;
  font-weight: 400;
}
.heartbeat-card { margin: 0; }
.heartbeat-status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--slate);
}
.heartbeat-status strong { color: var(--navy); }
.health-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(15, 123, 90, 0.12);
}
.health-green { background: #1aa36a; box-shadow: 0 0 0 3px rgba(15, 123, 90, 0.16); }
.health-yellow { background: #e6a100; box-shadow: 0 0 0 3px rgba(230, 161, 0, 0.18); }
.health-red { background: var(--down); box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.16); }

.num { font-variant-numeric: tabular-nums; }

table.data {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  margin: 0;
}
table.data th, table.data td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
table.data th {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 700;
}
table.data tr:last-child td { border-bottom: 0; }
table.data select { margin-right: 8px; margin-bottom: 0; width: auto; }
.row-muted td { background: #fbfcfe; }

.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 12px 0 18px; }
.meta dt { font-size: 0.8rem; color: var(--slate); }
.meta dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.meta-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 24px;
}
.meta-stats dt { margin: 0 0 6px; }
.meta-stats dd { font-size: 1.15rem; line-height: 1.2; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions form { display: inline; }
.header-actions button,
.button-ghost {
  background: transparent;
  border: 1px solid #ffffff55;
  box-shadow: none;
  color: #fff;
}
.header-actions button:hover,
.button-ghost:hover { background: var(--azure); color: #fff; }

.app-subnav { display: flex; gap: 12px; margin-bottom: 16px; }
.app-subnav a { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.app-subnav a[aria-current="page"] { background: var(--navy); color: #fff; }

.site-footer {
  margin-top: auto;
  text-align: center;
  font-size: 0.75rem;
  color: var(--slate);
  padding: 16px 12px 24px;
}

.changelog-release { margin: 24px 0 40px; }
.changelog-release h2 { margin-bottom: 8px; }
.changelog-release h3 { margin: 20px 0 8px; }
.changelog-release ul { margin: 0 0 8px; padding-left: 1.25rem; }
.changelog-release li { margin-bottom: 6px; }

form.inline { display: inline; }
.inline-assign {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.inline-assign .field-control,
.inline-assign select,
.inline-assign input {
  width: auto;
  min-width: 180px;
  margin-bottom: 0;
}

.empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--slate);
}
.empty strong { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.empty p { margin: 0 0 14px; }

.plain-list { list-style: none; padding: 0; margin: 16px 0 0; }
.group-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.danger-link { margin: 8px 0 32px; }
.danger-link a { color: var(--down); font-weight: 650; }

.ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.ticket-msg {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  max-width: min(640px, 100%);
}
.ticket-msg header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.ticket-msg-who {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ticket-msg-who strong { color: var(--navy); }
.ticket-role {
  display: inline-flex;
  align-self: flex-start;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ticket-role-you,
.ticket-role-customer {
  background: #e8eef6;
  color: var(--navy);
}
.ticket-role-staff {
  background: #dceeff;
  color: var(--azure-deep);
}
.ticket-role-internal {
  background: #fff3e0;
  color: var(--degraded);
}
.ticket-msg header time { color: var(--slate); white-space: nowrap; }
.ticket-msg p { margin: 0; }
.ticket-msg.is-you,
.ticket-msg.is-customer {
  align-self: flex-start;
  border-left: 5px solid var(--navy);
}
.ticket-msg.is-staff {
  align-self: flex-end;
  border-left: 5px solid var(--azure);
  background: #f4f9ff;
}
.ticket-msg.is-internal {
  align-self: stretch;
  max-width: none;
  border-left: 5px solid var(--degraded);
  border-style: solid dashed dashed dashed;
  background: #fff8ee;
}
.ticket-related-outage { margin-bottom: 20px; }
.ticket-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ticket-shots img {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
.catalog-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
}
.catalog-row .field-control { width: auto; min-width: 160px; margin: 0; }
.catalog-row .check-row { margin: 0; align-items: center; }

.incident-hero {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px 24px;
  margin-bottom: 20px;
  border-left: 6px solid var(--down);
}
.incident-hero.is-resolved {
  border-left-color: var(--up);
}
.incident-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.incident-hero h1 {
  font-size: 1.85rem;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}
.incident-lede {
  margin: 0;
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 46rem;
}
.incident-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}
.incident-fact {
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 14px;
}
.incident-fact dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  font-weight: 700;
  margin: 0 0 4px;
}
.incident-fact dd {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  word-break: break-word;
}
.incident-fact .muted {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--slate);
}
.incident-activity,
.incident-log {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.incident-activity li,
.incident-log li {
  position: relative;
  padding: 0 0 18px 22px;
  border-left: 2px solid var(--line);
}
.incident-activity li:last-child,
.incident-log li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.incident-activity li::before,
.incident-log li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--azure);
}
.incident-activity time,
.incident-log time {
  display: block;
  font-size: 0.8rem;
  color: var(--slate);
}
.incident-activity strong,
.incident-log strong {
  color: var(--navy);
}
.incident-activity p,
.incident-log p {
  margin: 2px 0 0;
  color: var(--slate);
}
.incident-log {
  max-height: 32rem;
  overflow: auto;
  padding-right: 8px;
}
.incident-log-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.button-danger, button.button-danger {
  background: var(--down);
  box-shadow: none;
}
.button-danger:hover, button.button-danger:hover { background: #9b1c1c; }

@media (max-width: 800px) {
  .type-grid, .field-row, .overview, .expiry-grid { grid-template-columns: 1fr; }
  .app-header-inner { align-items: flex-start; }
  .legal-page { padding: 28px 20px 24px; }
  .legal-dates, .legal-toc { grid-template-columns: 1fr; }
  .meta-stats { grid-template-columns: 1fr 1fr; }
}
