:root {
  color-scheme: dark;
  --bg: #000000;
  --text: #f4f4f4;
  --muted: #b8b8b8;
  --brand-blue: #078dfb;
}

* {
  box-sizing: border-box;
}

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

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.panel {
  padding: 0;
  margin-bottom: 22px;
  border: 0;
  background: transparent;
}

h1, h2 {
  margin: 0 0 10px;
}

p, li {
  color: var(--muted);
}

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

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #2d2d2d;
  background: #0b0b0b;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
}

.tiny {
  font-size: 12px;
  color: var(--muted);
}

.latest {
  color: var(--brand-blue);
  font-weight: 700;
}

.steps {
  margin: 8px 0 0 18px;
}

.home-hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
}

.home-logo {
  width: min(390px, 80vw);
  max-height: 280px;
  object-fit: contain;
}

.home-actions {
  width: 100%;
  max-width: 340px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #ffffff;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  background: #1f1f1f;
  color: #ffffff;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.action-btn-primary,
.action-btn-secondary {
  background: #1f1f1f;
  color: #ffffff;
}

.action-btn:hover {
  background: #2b2b2b;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.action-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.update-hero {
  text-align: center;
  margin-bottom: 18px;
}

.update-logo {
  width: min(260px, 62vw);
  max-height: 160px;
  object-fit: contain;
  margin-bottom: 10px;
}

.update-logo-link {
  display: inline-block;
}

.update-flow {
  display: grid;
  gap: 14px;
}

.instruction-card,
.action-card {
  padding: 14px;
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  background: #060606;
}

.action-card {
  border-color: #123252;
}

.instruction-card h2,
.action-card h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.instruction-card p {
  margin: 0;
}

.install-wrap {
  margin-top: 12px;
}

.action-card esp-web-install-button {
  width: 100%;
}

.serial-example {
  margin: 4px 0 8px;
}

.serial-example img {
  display: block;
  width: 100%;
  max-width: 420px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
}

.serial-example figcaption {
  margin-top: 6px;
}

.troubleshooting-card {
  margin-top: 14px;
}

.troubleshooting-card details {
  width: 100%;
}

.troubleshooting-card summary {
  font-size: 18px;
}

