: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;
}

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;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  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;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.55;
  z-index: 0;
}

.site-header,
.site-main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.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;
  background: linear-gradient(90deg, #f4fbff, var(--accent));
  -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;
}

.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;
}

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 {
  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;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.1s 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) {
  filter: brightness(1.08);
}

.btn:active,
button:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled,
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.check-types button {
  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;
}

.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.pending { background: rgba(240, 193, 74, 0.15); color: var(--warn); }

.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: auto;
  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;
}

.results-status {
  margin: 0;
  color: var(--muted);
}

.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); }

@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; }
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-15 { margin-top: 1.5rem; }
.max-form { max-width: 40rem; }
.panel-gap { margin-bottom: 1.35rem; }
.admin-title { margin: 0; }
.admin-sub { margin: 0.35rem 0 0; }
.secret-clear { margin-top: 0.9rem; }

@media (max-width: 640px) {
  .check-row {
    grid-template-columns: 1fr;
  }

  .check-row .btn,
  .check-row button {
    width: 100%;
  }

  .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;
  }
}

