:root {
  color-scheme: dark;
  --bg: #0b0f15;
  --panel: #101720;
  --line: rgba(255, 255, 255, 0.12);
  --text: #e4e7ec;
  --muted: #98a2b3;
  --orange: #ff8f3d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.75;
}

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

.site-header,
.site-footer {
  border-bottom: 1px solid var(--line);
  background: #101720;
}

.site-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.wrap {
  width: min(100% - 2rem, 860px);
  margin: 0 auto;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.brand span {
  color: var(--orange);
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
}

.header-links a {
  color: var(--text);
  text-decoration: none;
}

.header-links a:hover {
  color: var(--orange);
}

main {
  padding: 3rem 0 4rem;
}

h1 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.2;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  color: #fff;
  font-size: 1.3rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.4rem;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.notice {
  border: 1px solid rgba(255, 143, 61, 0.45);
  border-left-width: 4px;
  border-radius: 0.5rem;
  background: rgba(249, 115, 22, 0.1);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: #ffd5b3;
}

.doc {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.pending {
  background: rgba(255, 213, 179, 0.16);
  border-bottom: 1px dashed var(--orange);
  color: #ffd5b3;
}

.site-footer .wrap {
  padding: 1.5rem 0;
}

.site-footer a {
  color: var(--text);
}

.error-code {
  color: var(--orange);
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 999px;
  background: var(--orange);
  color: #0b0f15;
  padding: 0.65rem 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}


@media (max-width: 600px) {
  .doc {
    padding: 1rem;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

caption {
  caption-side: top;
  text-align: left;
  color: var(--muted);
  font-size: 0.8rem;
  padding-bottom: 0.4rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--panel);
  color: #fff;
}

tbody th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  width: 34%;
}

td.fill {
  min-width: 12rem;
  border-bottom: 1px dashed var(--muted);
}

h3 {
  margin: 1.75rem 0 0.5rem;
  color: var(--text);
  font-size: 1.02rem;
}

@media (max-width: 600px) {
  th,
  td {
    display: block;
    width: 100%;
  }
  tbody th {
    border-bottom: 0;
  }
  table {
    font-size: 0.85rem;
  }
}
