:root {
  --bg: #090b0d;
  --panel: #11151a;
  --panel-2: #171c22;
  --panel-3: #1d232a;
  --text: #eef1f4;
  --fg: #eef1f4;
  --muted: #a2abb5;
  --line: rgba(255, 255, 255, 0.1);
  --rule: rgba(255, 255, 255, 0.1);
  --accent: #f5a623;
  --accent-2: #24c9f2;
  --primary: #f5a623;
  --warn: #f5a623;
  --danger: #ff6b35;
  --radius: 8px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Outfit", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #090b0d !important;
  background-size: 56px 56px !important;
  color: #eef1f4 !important;
  font-family: var(--sans) !important;
  line-height: 1.6;
}

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

.manual-home {
  align-items: center;
  background: rgba(9, 11, 13, 0.92);
  border-bottom: 1px solid var(--line);
  color: var(--accent) !important;
  display: flex;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.7rem;
  justify-content: space-between;
  letter-spacing: 0.08em;
  padding: 0.85rem max(16px, calc((100vw - 1180px) / 2));
  position: sticky;
  text-decoration: none;
  text-transform: uppercase;
  top: 0;
  z-index: 20;
}

.manual-home::before {
  background: #36d07f;
  border-radius: 50%;
  box-shadow: 0 0 18px #36d07f;
  content: "";
  height: 8px;
  width: 8px;
}

.manual-home::after {
  color: var(--muted);
  content: "Back to TFOdev";
  margin-left: auto;
}

.page,
main {
  width: min(1180px, calc(100vw - 32px)) !important;
  margin-inline: auto !important;
  padding-bottom: 72px !important;
}

.hero,
.card,
.nav,
.callout,
.notice,
.section,
.checklist-card,
.mockups,
section,
.item,
.disclaimer,
.log-container,
figure,
.ui-box,
.hero-card,
.mini-card,
.hero-stat,
.phone,
.phone-inner,
.event-note,
.glossary-row {
  background: rgba(17, 21, 26, 0.96) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.hero,
header {
  background:
    linear-gradient(135deg, rgba(245, 166, 35, 0.13), rgba(36, 201, 242, 0.06)),
    var(--panel) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  margin-top: 24px !important;
}

.hero::after {
  display: none !important;
}

.kicker,
.eyebrow,
.nav strong,
h2,
.screen-title,
.log-header h3 {
  color: var(--accent) !important;
  font-family: var(--mono) !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--text) !important;
  letter-spacing: 0 !important;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 5rem) !important;
  font-weight: 900 !important;
  line-height: 0.98 !important;
}

h2 {
  font-size: clamp(1rem, 2vw, 1.35rem) !important;
}

p,
li,
dd,
td,
figcaption,
.note,
.subtle,
.lead,
header p {
  color: var(--muted) !important;
}

strong,
dt,
th {
  color: var(--text) !important;
}

.nav-links a,
.pill,
kbd,
code,
.field,
.button,
.reload-btn,
button {
  border-radius: 6px !important;
  font-family: var(--mono) !important;
}

.nav-links a,
.button,
.reload-btn {
  background: transparent !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
}

.nav-links a:hover,
.button:hover,
.reload-btn:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

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

td,
th {
  border-color: var(--line) !important;
}

img,
video,
canvas {
  max-width: 100%;
}

figure {
  overflow: hidden;
}

figcaption {
  background: #090b0d !important;
  border-top: 1px solid var(--line) !important;
}

#head {
  background:
    linear-gradient(135deg, rgba(245, 166, 35, 0.13), rgba(36, 201, 242, 0.06)),
    var(--panel) !important;
  border: 1px solid var(--line);
  color: var(--text) !important;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  margin: 24px auto 0;
  max-width: 1180px;
  text-transform: uppercase;
  width: calc(100vw - 32px);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.online {
  background-color: #36d07f !important;
}

.offline {
  background-color: #ff6b35 !important;
}

#log {
  background: #090b0d !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}

@media (max-width: 760px) {
  .manual-home {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .manual-home::after {
    margin-left: 0;
  }

  .page,
  main,
  #head {
    width: calc(100vw - 24px) !important;
  }

  .hero,
  header,
  .card,
  .section,
  .notice,
  .checklist-card,
  section {
    padding: 18px !important;
  }

  .container {
    grid-template-columns: 1fr !important;
    padding-inline: 0 !important;
    width: calc(100vw - 24px);
  }
}
