:root {
  --bg0: #0b1218;
  --bg1: #101a22;
  --ink: #e7eef4;
  --muted: #8fa3b3;
  --line: rgba(167, 198, 214, 0.18);
  --accent: #2ec4b6;
  --accent-2: #4f8fbf;
  --ok: #3dd68c;
  --bad: #ff6b6b;
  --warn: #f0c14a;
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
  --radius: 14px;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-display);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(46, 196, 182, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(79, 143, 191, 0.18), transparent 50%),
    linear-gradient(180deg, var(--bg0), #070d12 70%, #05090d);
  line-height: 1.5;
  position: relative;
}

/* Decorative grid via pseudo-element — never a DOM hit-target (Firefox fix). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none !important;
  z-index: 0;
  background-image:
    linear-gradient(rgba(143, 163, 179, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 163, 179, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.55;
}

/* Legacy class kept inert if an old cached HTML still includes the div. */
.bg-grid {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

a,
a:link,
a:visited,
a:any-link {
  color: #2ec4b6;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover,
a:focus-visible {
  color: #9af5ec;
}

a:active {
  color: #7eefe4;
}

.btn,
.btn:link,
.btn:visited,
.btn:hover,
.btn:active,
.btn:focus-visible {
  color: #e7eef4;
  text-decoration: none;
}

.btn.primary,
.btn.primary:link,
.btn.primary:visited,
.btn.primary:hover,
.btn.primary:active {
  color: #04221f;
}

.btn.danger,
.btn.danger:link,
.btn.danger:visited,
.btn.danger:hover,
.btn.danger:active {
  color: #ff9b9b;
}

.brand,
.brand:link,
.brand:visited,
.brand:hover,
.brand:active {
  color: #e7eef4;
  text-decoration: none;
}

.nav a,
.nav a:link,
.nav a:visited {
  color: #8fa3b3;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-active,
.nav a.is-active:link,
.nav a.is-active:visited {
  color: #e7eef4;
}

.footer-links a,
.footer-links a:link,
.footer-links a:visited {
  color: #8fa3b3;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #e7eef4;
}

.guide-toc a,
.guide-toc a:link,
.guide-toc a:visited {
  color: #8fa3b3;
  text-decoration: none;
}

.guide-toc a:hover,
.guide-toc a:focus-visible {
  color: #e7eef4;
  border-color: rgba(46, 196, 182, 0.4);
}

.notice a,
.notice a:link,
.notice a:visited,
.notice a:hover {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.check-types button {
  color: #8fa3b3;
}

.check-types button.is-active {
  color: #0b1218;
}

.site-header,
.site-main,
.site-footer,
.admin-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  z-index: 3;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Keep the check UI above the footer while the node menu is open */
body:has(.node-picker.is-open) .site-main {
  z-index: 20;
}

body:has(.node-picker.is-open) .site-footer {
  z-index: 0;
  pointer-events: none;
}

/* Ensure controls always receive clicks in Firefox */
button,
.btn,
a.btn,
.nav a,
.admin-nav a,
.check-types button,
summary,
input[type="submit"],
input[type="button"] {
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}

button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(46, 196, 182, 0.12);
  animation: pulse 3.2s ease-in-out infinite;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.25rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.nav a,
.nav a:link,
.nav a:visited {
  color: #8fa3b3;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-active,
.nav a.is-active:link,
.nav a.is-active:visited {
  color: #e7eef4;
}

.site-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a,
.footer-links a:link,
.footer-links a:visited {
  color: #8fa3b3;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #e7eef4;
}

.hero {
  padding: 2.5rem 0 1.5rem;
  animation: rise 0.7s ease both;
}

.hero-brand {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.02;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #f4fbff;
  background: linear-gradient(90deg, #f4fbff, var(--accent));
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-brand {
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero-copy {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 1.75rem;
}

.check-panel {
  display: grid;
  gap: 1rem;
  animation: rise 0.85s ease both;
}

.check-shell {
  padding: 1.15rem 1.2rem 1.25rem;
  animation: rise 0.85s ease both;
  position: relative;
}

.check-shell .check-panel {
  animation: none;
}

.check-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.check-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: stretch;
}

.check-row .btn,
.check-row button {
  white-space: nowrap;
  min-height: 3rem;
  padding-inline: 1.35rem;
}

.node-picker {
  position: relative;
  margin-top: 0.15rem;
  z-index: 8;
}

.node-picker.is-open {
  z-index: 30;
}

.check-shell:has(.node-picker.is-open) {
  z-index: 20;
}

.node-picker-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 3rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a1016;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.node-picker-trigger:hover,
.node-picker.is-open .node-picker-trigger {
  border-color: rgba(46, 196, 182, 0.4);
  background: #0d151c;
}

.node-picker-kicker {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.node-picker-summary {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-picker-caret {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  margin-top: -0.25rem;
  transition: transform 0.15s ease;
}

.node-picker.is-open .node-picker-caret {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.node-picker-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 40;
  padding: 0.45rem;
  border: 1px solid rgba(167, 198, 214, 0.22);
  border-radius: 12px;
  background-color: #0b1218;
  background-image: none;
  opacity: 1;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.node-picker-all {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.node-picker-all:hover {
  background: rgba(46, 196, 182, 0.08);
}

.node-picker-all input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.node-picker-all-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.node-picker-all-text strong {
  font-weight: 600;
}

.node-picker-all-text small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.node-picker-choices {
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}

.node-picker-choices-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.25rem 0.55rem 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.node-picker-actions {
  display: inline-flex;
  gap: 0.65rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.node-picker-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.node-picker-link:hover {
  text-decoration: underline;
}

.node-picker-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.3rem;
  max-height: 14rem;
  overflow: auto;
  padding: 0.15rem;
}

.node-picker-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.node-picker-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.node-picker-item.is-unsupported {
  opacity: 0.4;
  cursor: not-allowed;
}

.node-picker-item input {
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.node-picker-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.node-picker-item-text strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.node-picker-item-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="search"],
input:not([type]),
textarea,
select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line);
  background: rgba(8, 14, 20, 0.85);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.35;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

textarea {
  min-height: 6.5rem;
  resize: vertical;
  line-height: 1.45;
}

input::placeholder,
textarea::placeholder {
  color: rgba(143, 163, 179, 0.7);
}

input:hover:not(:disabled):not([type="checkbox"]):not([type="hidden"]):not([type="radio"]),
textarea:hover,
select:hover {
  border-color: rgba(46, 196, 182, 0.35);
}

input:focus:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]),
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(46, 196, 182, 0.65);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.18);
  background: rgba(10, 18, 26, 0.95);
}

input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  min-height: 0;
  margin: 0.15rem 0 0;
  padding: 0;
  accent-color: var(--accent);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-appearance: auto;
  appearance: auto;
}

button,
.btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  min-height: 2.75rem;
  padding: 0.75rem 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  line-height: 1.2;
  position: relative;
  z-index: 2;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn.primary,
button.primary {
  background: linear-gradient(135deg, var(--accent), #239b91);
  border-color: transparent;
  color: #04221f;
}

.btn.danger,
button.danger {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.35);
  color: #ff9b9b;
}

.btn.ghost,
button.ghost {
  background: transparent;
}

.btn-sm,
button.btn-sm {
  min-height: 2.15rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  border-radius: 9px;
  font-weight: 600;
}

.btn:hover,
button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(46, 196, 182, 0.35);
}

.btn:active,
button:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.btn.primary:hover,
button.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #3ad4c5, #2aada1);
  border-color: transparent;
}

.btn:disabled,
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.check-types button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(16, 26, 34, 0.7);
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  min-height: 2.2rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  position: relative;
  z-index: 2;
}

.check-types button.is-active {
  color: var(--bg0);
  background: var(--accent);
  border-color: transparent;
  font-weight: 600;
  filter: none;
}

.section {
  margin-top: 2.75rem;
  animation: rise 0.9s ease both;
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.section > p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 16, 22, 0.72);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: 0;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.badge.ok { background: rgba(61, 214, 140, 0.15); color: var(--ok); }
.badge.bad { background: rgba(255, 107, 107, 0.15); color: var(--bad); }
.badge.warn { background: rgba(240, 193, 74, 0.18); color: var(--warn); }
.badge.pending { background: rgba(240, 193, 74, 0.15); color: var(--warn); }

.packet-loss-line {
  margin: 0.35rem 0 0.45rem;
  color: var(--ink);
  font-size: 0.84rem;
}

.packet-loss-line strong {
  color: var(--warn);
  font-weight: 700;
}

.path-table tr.path-loss-hot td {
  color: var(--warn);
}

.path-table tr.path-loss-hot td:nth-child(3) {
  font-weight: 700;
}

.result-note {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  max-width: 36rem;
}

.stack-form {
  display: grid;
  gap: 1.05rem;
  max-width: 34rem;
  width: 100%;
}

.panel .stack-form,
.form-panel .stack-form {
  max-width: none;
}

.stack-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.05rem;
}

.form-grid > label {
  margin: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.field-hint {
  margin: -0.25rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.stack-form .check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 14, 20, 0.45);
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
}

.stack-form .check-label:hover {
  border-color: rgba(46, 196, 182, 0.3);
}

.stack-form .check-label span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.secret-box {
  margin: 0.75rem 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(46, 196, 182, 0.35);
  background: rgba(8, 14, 20, 0.75);
  display: grid;
  gap: 0.45rem;
  overflow-x: auto;
}

.secret-box .mono {
  word-break: break-all;
  color: #d7f5f1;
}

.pending-item {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  display: grid;
  gap: 0.35rem;
}

.pending-item:first-of-type {
  border-top: 0;
  padding-top: 0.15rem;
}

.pending-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.td-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.td-actions form {
  margin: 0;
}

.admin-shell h1 {
  letter-spacing: -0.02em;
}

.admin-card .stack-form,
.install-card .stack-form {
  max-width: none;
  margin-top: 0.35rem;
}

.admin-card .btn,
.install-card .btn,
.admin-card button[type="submit"],
.install-card button[type="submit"] {
  width: 100%;
}

.admin-card .lede,
.install-card .lede {
  margin: 0 0 1.15rem;
}

.notice a {
  color: inherit;
  font-weight: 600;
}

.panel > .lede {
  margin: 0 0 1rem;
}

.table-wrap .btn,
.table-wrap button {
  white-space: nowrap;
}

.notice {
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
}

.notice.ok { background: rgba(61, 214, 140, 0.1); color: var(--ok); }
.notice.err { background: rgba(255, 107, 107, 0.1); color: var(--bad); }
.notice.info { background: rgba(79, 143, 191, 0.12); color: #b7d4ea; }

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 0.25rem;
}

.section > p.guide-actions {
  margin-top: 2rem;
  margin-bottom: 0;
  color: inherit;
}

.guide-page {
  max-width: 46rem;
  animation: rise 0.75s ease both;
}

.guide-hero {
  margin-bottom: 1.75rem;
}

.guide-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.guide-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.guide-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

.guide-callout {
  margin: 0 0 1.35rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(46, 196, 182, 0.35);
  background: linear-gradient(135deg, rgba(46, 196, 182, 0.12), rgba(79, 143, 191, 0.08));
}

.guide-callout.soft {
  border-color: rgba(79, 143, 191, 0.3);
  background: rgba(79, 143, 191, 0.1);
}

.guide-callout strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.guide-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.guide-toc a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 16, 22, 0.55);
}

.guide-toc a:hover {
  color: var(--ink);
  border-color: rgba(46, 196, 182, 0.4);
}

.guide-block {
  margin-bottom: 2.4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.guide-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.guide-block h2 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.guide-step {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.guide-block h3 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.02rem;
  color: var(--ink);
}

.guide-block p,
.guide-list,
.guide-olist {
  color: var(--muted);
}

.guide-list,
.guide-olist {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.guide-list li,
.guide-olist li {
  margin: 0.45rem 0;
}

.guide-specs {
  list-style: none;
  padding: 0.85rem 1rem;
  margin: 0.75rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 14, 20, 0.65);
}

.guide-specs li {
  margin: 0.35rem 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink);
}

.guide-block a,
.guide-block a:link,
.guide-block a:visited {
  color: #2ec4b6;
  text-decoration: underline;
  text-decoration-color: rgba(46, 196, 182, 0.35);
  text-underline-offset: 0.18em;
}

.guide-block a:hover,
.guide-block a:focus-visible {
  color: #9af5ec;
  text-decoration-color: rgba(154, 245, 236, 0.7);
}

.guide-block .btn,
.guide-block .btn:link,
.guide-block .btn:visited,
.guide-block .btn:hover {
  text-decoration: none;
}

.section a:not(.btn),
.section a:not(.btn):link,
.section a:not(.btn):visited,
.prose a:not(.btn),
.prose a:not(.btn):link,
.prose a:not(.btn):visited {
  color: #2ec4b6;
  text-decoration: underline;
  text-decoration-color: rgba(46, 196, 182, 0.35);
  text-underline-offset: 0.18em;
}

.section a:not(.btn):hover,
.prose a:not(.btn):hover {
  color: #9af5ec;
}

.guide-block pre {
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  padding: 1rem 1.1rem;
  margin: 0.55rem 0 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(6, 11, 16, 0.92);
  color: #d7e7f2;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
}

.prose {
  max-width: 46rem;
  color: var(--muted);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ol,
.prose ul {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.prose li {
  margin: 0.45rem 0;
}

.prose h2,
.prose h3 {
  color: var(--ink);
}

.prose h3 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.05rem;
}

.prose code,
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.prose pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 20, 0.9);
  color: #d7e7f2;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.whois-box {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  max-height: 28rem;
  overflow: auto;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(6, 11, 16, 0.92);
  color: #cfe0ea;
}

.info-results {
  display: grid;
  gap: 1.15rem;
  width: 100%;
  max-width: 100%;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.info-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.25rem;
  background: rgba(10, 16, 22, 0.78);
  overflow: hidden;
}

.info-card-wide {
  width: 100%;
}

.info-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.info-card-head h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.info-kv {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.info-kv > div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8.5rem) minmax(0, 1fr);
  gap: 0.65rem 1rem;
  align-items: start;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.info-kv dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.info-kv dd {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.info-kv .mono {
  font-size: 0.86rem;
}

.info-empty,
.info-empty-inline {
  color: var(--muted);
  margin: 0;
}

.myip-hero-card .myip-address {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #9af5ec;
  word-break: break-all;
}

.panel .stack-form .form-grid {
  gap: 1.05rem;
}

.panel .stack-form .form-grid > label {
  margin: 0;
}

.dns-blocks {
  display: grid;
  gap: 0.65rem;
}

.dns-block {
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(6, 11, 16, 0.55);
}

.dns-type {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.dns-values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.dns-values li {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(167, 198, 214, 0.08);
  color: #d7e7f2;
}

.dns-values li:last-child {
  border-bottom: 0;
}

.api-table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 14, 20, 0.7);
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.api-table th,
.api-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  word-break: break-word;
}

.api-table th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.api-table tr:last-child td {
  border-bottom: 0;
}

.api-table code {
  white-space: nowrap;
}

.install-body,
.admin-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.install-card,
.admin-card {
  width: min(460px, 100%);
  padding: 1.9rem 1.85rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(12, 18, 24, 0.92);
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.install-card .brand,
.admin-card .brand {
  margin-bottom: 1.25rem;
}

.install-card h1,
.admin-card h1 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.lede {
  color: var(--muted);
}

.admin-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem;
  position: relative;
  z-index: 1;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.admin-top-copy .brand {
  margin-bottom: 0.85rem;
}

.admin-logout {
  margin: 0;
  flex-shrink: 0;
}

.admin-stack {
  display: grid;
  gap: 1.35rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.35rem;
}

.panel,
.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.35rem;
  background: rgba(10, 16, 22, 0.72);
}

.panel h3,
.form-panel h3 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.form-panel.max-form {
  max-width: 40rem;
}

.results-section {
  margin-top: 2rem;
}

.results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1rem;
}

.results-head h2 {
  margin: 0 0 0.35rem;
}

.target-summary {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin: 0 0 0.25rem;
}

.report-host {
  color: var(--ink);
}

.report-time {
  color: var(--muted);
  font-size: 0.9rem;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.35rem;
  background: var(--warn);
}

.status-dot.ok { background: var(--ok); }
.status-dot.bad { background: var(--bad); }
.status-dot.warn,
.status-dot.pending { background: var(--warn); }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

.path-wrap {
  overflow-x: auto;
  margin-top: 0.45rem;
  max-width: 100%;
}

.node-loc {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.node-dc {
  margin-top: 0.15rem;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.node-sponsor {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.node-sponsor a {
  color: var(--accent);
  text-decoration: none;
}

.node-sponsor a:hover {
  text-decoration: underline;
}

.node-edit {
  margin-top: 0.45rem;
  font-size: 0.8rem;
}

.node-edit > summary {
  cursor: pointer;
  color: var(--accent);
  list-style: none;
  display: list-item;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.node-edit > summary::-webkit-details-marker {
  display: none;
}

.node-edit > summary::-moz-list-bullet {
  list-style-type: none;
  display: none;
}

.smtp-test-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.announce-scope {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 1rem 0.9rem;
  margin: 0;
}

.announce-scope legend {
  padding: 0 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.announce-scope .check-label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.45rem 0;
}

.announce-node-list {
  display: grid;
  gap: 0.45rem;
  max-height: 14rem;
  overflow: auto;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 14, 20, 0.45);
}

.announce-node-list .check-label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.84rem;
}

.announce-node-list .is-muted {
  opacity: 0.55;
}

.check-label input[type="checkbox"],
.check-label input[type="radio"] {
  width: auto;
  min-height: 0;
  margin-top: 0.2rem;
  flex-shrink: 0;
  -webkit-appearance: auto;
  appearance: auto;
}

.mt-1 {
  margin-top: 0.55rem;
}

select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 20, 0.75);
  color: var(--ink);
  font: inherit;
}

.ping-details {
  margin-top: 0.4rem;
}

.ping-details .path-summary-hint::after {
  content: "Show details";
}

.ping-details[open] .path-summary-hint::after {
  content: "Hide details";
}

.ping-lines {
  margin-top: 0.45rem;
  line-height: 1.55;
  color: #d7e7f2;
  font-size: 0.84rem;
}

.ping-details .ping-lines {
  margin-top: 0.55rem;
}

.path-details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 14, 20, 0.55);
  overflow: hidden;
}

/* Firefox: display:flex on <summary> can break toggle/click — use block + floated hint. */
.path-summary {
  list-style: none;
  cursor: pointer;
  display: block;
  padding: 0.7rem 0.9rem;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.path-summary::-webkit-details-marker {
  display: none;
}

.path-summary::-moz-list-bullet {
  list-style-type: none;
  display: none;
}

.path-summary-label {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
  display: inline;
  margin-right: 4.5rem;
}

.path-summary-hint {
  float: right;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}

.path-details[open] > .path-summary::after,
.path-summary::after {
  content: "";
  display: table;
  clear: both;
}

.path-summary-hint::after {
  content: "Show details";
}

.path-details[open] .path-summary-hint {
  color: var(--muted);
}

.path-details[open] .path-summary-hint::after {
  content: "Hide details";
}

.path-details-body {
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid var(--line);
}

.path-meta {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0.55rem 0 0.35rem;
}

.path-note {
  color: var(--warn);
  font-size: 0.8rem;
  margin: 0.55rem 0 0.35rem;
}

.path-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  min-width: 18rem;
}

.path-table th,
.path-table td {
  padding: 0.28rem 0.45rem;
  text-align: left;
  border-bottom: 1px solid rgba(167, 198, 214, 0.12);
  white-space: nowrap;
}

.path-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.path-table tr:last-child td {
  border-bottom: 0;
}

.feature-block {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}

.feature-heading {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-15 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.max-form { max-width: 40rem; }
.panel-gap { margin-bottom: 1.35rem; }

.form-grid > .span-2,
.form-grid > .form-actions.span-2 {
  grid-column: 1 / -1;
}

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
}

.check-inline input {
  width: auto;
  min-height: 0;
}

.status-overall {
  margin: 1rem 0 1.35rem;
  background: #0b1218;
}

.status-page-head {
  margin-bottom: 0.35rem;
}

.status-page-head h2 {
  margin: 0 0 0.35rem;
}

.status-page .panel {
  background: #0b1218;
}

.status-overall-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
}

.status-overall-copy {
  min-width: 0;
}

.status-overall-title {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.status-overall-msg,
.status-text {
  margin: 0.45rem 0 0;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.status-overall-meta {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.status-overall-operational {
  border-color: rgba(61, 214, 140, 0.28);
}

.status-overall-degraded,
.status-overall-maintenance {
  border-color: rgba(240, 193, 74, 0.35);
}

.status-overall-outage {
  border-color: rgba(255, 107, 107, 0.35);
}

.status-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: 1.15rem;
  align-items: start;
}

.status-main,
.status-list {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.status-subscribe {
  position: sticky;
  top: 1rem;
  align-self: start;
  background: #0b1218;
}

.status-subscribe h3 {
  margin: 0 0 0.45rem;
}

.status-subscribe .lede {
  margin: 0;
}

.status-subscribe .notice {
  margin-top: 0.85rem;
}

.status-subscribe-form {
  margin-top: 0.85rem;
}

.status-subscribe-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.status-empty {
  margin: 0;
}

.status-incident h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.status-incident-head {
  min-width: 0;
}

.status-incident-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.status-block-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.status-incident-body,
.status-incident-updates {
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.status-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.status-timeline li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.status-timeline li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.status-timeline-meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}

.status-timeline-body {
  margin: 0;
  line-height: 1.5;
}

.status-verify-panel {
  max-width: 36rem;
  background: #0b1218;
}

.status-page .notice {
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .status-layout {
    grid-template-columns: 1fr;
  }

  .status-subscribe {
    position: static;
    order: -1;
  }

  .status-overall-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .status-overall-row > .badge {
    grid-column: 2;
    justify-self: start;
  }
}

.admin-title { margin: 0; }
.admin-sub { margin: 0.35rem 0 0; }
.secret-clear { margin-top: 0.9rem; }

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.admin-nav a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.admin-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.admin-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: -0.25rem 0 1.15rem;
}

.admin-subnav a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  background: #0a1016;
}

.admin-subnav a:hover {
  color: var(--ink);
  border-color: rgba(46, 196, 182, 0.35);
}

.admin-subnav a.is-active {
  color: var(--ink);
  border-color: rgba(46, 196, 182, 0.55);
  background: rgba(46, 196, 182, 0.12);
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.admin-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius, 10px);
  border: 1px solid var(--line);
  background: #0a1016;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
  min-width: 0;
}

.admin-stat:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: #0d151c;
}

.admin-stat strong {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.admin-stat span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}

.admin-link-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.admin-link-list a {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a1016;
  text-decoration: none;
  color: inherit;
}

.admin-link-list a:hover {
  border-color: rgba(46, 196, 182, 0.35);
}

.admin-link-list strong {
  font-size: 0.98rem;
}

.admin-link-list span {
  color: var(--muted);
  font-size: 0.85rem;
}

.bans-panel + .bans-panel {
  margin-top: 1.15rem;
}

.bans-table td,
.bans-table th {
  vertical-align: middle;
}

.bans-ip,
.bans-reason {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bans-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.bans-actions form {
  margin: 0;
  display: inline-flex;
}

.status-admin-subcount {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.status-admin-notify {
  align-self: end;
  margin-bottom: 0.35rem;
}

.status-admin-card {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.status-admin-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

.status-admin-card-title {
  min-width: 0;
  flex: 1 1 14rem;
}

.status-admin-card-title strong {
  overflow-wrap: anywhere;
}

.status-admin-meta {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.status-admin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.status-admin-edit {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a1016;
}

.status-admin-timeline {
  margin-top: 0.85rem;
}

.status-admin-timeline ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.status-admin-timeline li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.status-admin-timeline li:last-child {
  border-bottom: 0;
}

.status-admin-timeline-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.status-admin-timeline-body {
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.status-admin-delete {
  margin-top: 0.75rem;
}

.status-sub-table td,
.status-sub-table th {
  vertical-align: middle;
}

.status-sub-email {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.status-sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.status-sub-actions form {
  margin: 0;
  display: inline-flex;
}

@media (max-width: 640px) {
  .check-row {
    grid-template-columns: 1fr;
  }

  .check-row .btn,
  .check-row button {
    width: 100%;
  }

  .node-picker-checks {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
  }

  .admin-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-kv > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .results-head {
    align-items: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

