.flash-v2-page {
  --bg: #f4f3ef;
  --panel: #fffefa;
  --line: #d9d8d2;
  --gold: #9b7a37;
  --gold-soft: #6e5527;
  --ink: #191a18;
  --muted: #6b6d68;
  --error: #a94435;
  --ok: #47765e;
  min-height: 100vh;
  background: #f4f3ef;
  color: #191a18;
}

.flash-v2-page .site-header {
  font-family: var(--sans);
}

.flash-v2-page .shell {
  min-height: auto;
  display: block;
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 80px;
}

.flash-v2-page .panel {
  width: 100%;
  padding: 42px;
  border: 1px solid #d9d8d2;
  border-radius: 8px;
  background: #fffefa;
  box-shadow: 0 24px 70px rgba(34, 35, 31, 0.08);
}

.flash-breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 34px;
  color: #8a8c86;
  font-size: 13px;
}

.flash-breadcrumb a {
  color: #4d665c;
  text-decoration: none;
}

.flash-v2-page .flash-hero {
  align-items: flex-end;
  padding-bottom: 28px;
  border-bottom: 1px solid #e3e1db;
}

.flash-v2-page .brand {
  margin-bottom: 10px;
  color: #9b7a37;
  font-family: var(--serif);
  font-size: 12px;
}

.flash-v2-page h1 {
  color: #191a18;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 66px);
  font-weight: 600;
}

.flash-lead {
  margin: 15px 0 0;
  color: #686a65;
  font-size: 16px;
  line-height: 1.75;
}

.flash-v2-page .tag {
  border-color: #d9d8d2;
  border-radius: 4px;
  color: #6e5527;
  font-size: 12px;
}

.serial-capability {
  margin: 24px 0 4px;
  padding: 13px 15px;
  border-left: 3px solid #9b7a37;
  background: #f5f3eb;
  color: #62645f;
  font-size: 13px;
  line-height: 1.6;
}

.serial-capability.is-supported {
  border-left-color: #47765e;
}

.serial-capability.is-unsupported {
  border-left-color: #a94435;
  background: #fbf2ef;
}

.flash-v2-page .license-form,
.flash-v2-page .device-reader,
.flash-v2-page .firmware-select,
.flash-v2-page .install-area,
.flash-v2-page .info-grid,
.flash-v2-page .release-box {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid #e3e1db;
}

.flash-v2-page label,
.flash-v2-page .section-title p,
.flash-v2-page .status,
.flash-v2-page .hint,
.flash-v2-page .device-check-hint {
  color: #777974;
}

.flash-v2-page input {
  border-color: #cfcfc8;
  background: #fff;
  color: #191a18;
}

.flash-v2-page button {
  border-radius: 4px;
  background: #1d2421;
  color: #fff;
  font-family: var(--sans);
  font-weight: 650;
}

.flash-v2-page button:hover:not(:disabled) {
  background: #33443d;
}

.flash-v2-page button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.flash-v2-page .secondary-action {
  border-color: #cfcfc8;
  background: #f4f3ef;
  color: #2d3733;
}

.flash-v2-page #deviceCodeOutput,
.flash-v2-page .firmware-option,
.flash-v2-page .info-grid > div,
.flash-v2-page .release-box {
  border-color: #d9d8d2;
  background: #f7f6f2;
  color: #62645f;
}

.flash-v2-page .firmware-option.selected {
  border-color: #9b7a37;
  background: #f3ede0;
}

.flash-v2-page .firmware-option input {
  width: 1px;
  height: 1px;
}

.flash-v2-page .firmware-option-title strong,
.flash-v2-page .section-title h2,
.flash-v2-page #deviceCodeOutput.ready,
.flash-v2-page .release-box h2 {
  color: #222522;
  font-family: var(--serif);
}

.flash-v2-page .status.ok,
.flash-v2-page .device-check-hint.ok {
  color: #47765e;
}

.flash-v2-page .status.error,
.flash-v2-page .device-check-hint.error,
.flash-v2-page .unsupported {
  color: #a94435;
}

.flash-v2-page .steps span {
  background: #e9e2d3;
  color: #6e5527;
}

.flash-v2-page .site-footer {
  position: static;
  padding: 0 20px 32px;
  color: #81837e;
}

.flash-v2-page .site-footer a {
  color: #4d665c;
}

@media (max-width: 680px) {
  .flash-v2-page .shell {
    width: min(100% - 24px, 900px);
    padding: 28px 0 52px;
  }

  .flash-v2-page .panel {
    padding: 24px 18px;
  }

  .flash-v2-page .flash-hero,
  .flash-v2-page .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .flash-v2-page .input-row,
  .flash-v2-page .device-row {
    grid-template-columns: 1fr;
  }

  .flash-v2-page h1 {
    font-size: 44px;
  }
}
