:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #142d33;
  background: #f3f5f2;
  font-synthesis: none;
  --green: #126856;
  --control-background: #176c59;
  --choice-surface: #f0f1f2;
  --choice-hover: #c5cbd1;
  --choice-pressed: #afb9c2;
  --choice-text: #25313b;
  --muted: #586c6e;
  --line: #dce4de;
  --esp-tools-button-color: var(--control-background);
  --esp-tools-button-border-radius: 9px;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #188575; outline-offset: 5px; border-radius: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 64px, 1050px); margin-inline: auto; }
.header { height: 116px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 750; letter-spacing: -.7px; text-decoration: none; }
.repo-link { font-size: 12px; text-decoration: none; color: var(--muted); }
.repo-link span { margin-left: 6px; }
.workspace { display: grid; grid-template-columns: 1.06fr 1fr; border: 1px solid #d4ded5; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 18px 45px -25px #17362d30; }
.hero { position: relative; padding: 42px 40px 33px; color: #f2f9f9; background-color: #102c37; background-image: radial-gradient(ellipse at 80% 100%, #1d53664d, transparent 65%), linear-gradient(#7694a007 1px, transparent 1px), linear-gradient(90deg, #7694a007 1px, transparent 1px); background-size: auto, 32px 32px, 32px 32px; }
.eyebrow { display: flex; align-items: center; justify-content: space-between; font-size: 10px !important; letter-spacing: 1.8px; color: #8de1d0 !important; font-weight: 600; margin: 0 0 34px !important; }
h1 { font-size: clamp(40px, 4.9vw, 58px); letter-spacing: -2.3px; line-height: 1.02; margin: 0 0 24px; font-weight: 600; }
.bridge-diagram { margin: 28px -8px 22px; }
.bridge-diagram svg { width: 100%; display: block; }
.bridge-diagram .diagram-mobile { display: none; }
.board-marker { opacity: .5; transition: opacity 160ms ease; }
.board-marker.is-selected { opacity: 1; }
.board-marker.is-selected .board-body { fill: #2b635f; stroke-width: 2; }
.board-marker.is-selected text { fill: #c1ffeb; font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .board-marker { transition: none; }
}
.install-side { display: flex; flex-direction: column; justify-content: center; padding: 43px 39px 34px; }
.panel-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 15px; margin-bottom: 26px; }
.panel-heading h2 { font-size: 21px; font-weight: 600; letter-spacing: -.5px; margin: 0; }
.panel-heading > span { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; color: var(--muted); white-space: nowrap; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.selector { display: grid; grid-template-columns: 1fr 1fr; background: var(--choice-surface); border: 1px solid #dde1e5; border-radius: 10px; padding: 5px; gap: 4px; }
.selector label { position: relative; cursor: pointer; }
.selector input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.selector label > span { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 10px; border-radius: 6px; border: 1px solid transparent; font-size: 16px; font-weight: 650; color: var(--choice-text); }
.selector .role { font-weight: 450; font-size: 13px; }
.selector input:checked + span { background: var(--control-background); color: #fff; }
.selector input:focus-visible + span { outline: 2px solid var(--choice-text); outline-offset: -3px; }
.selector input:checked:focus-visible + span { outline-color: #fff; }
#board-description { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 23px 0 28px; min-height: 23px; text-wrap: pretty; }
esp-web-install-button { display: block; }
.install { position: relative; text-align: center; width: 100%; border: 1px solid transparent; background: var(--control-background); color: #fff; border-radius: 6px; padding: 17px 3em; font-size: 14px; font-weight: 600; cursor: pointer; }
.install:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; border-radius: 6px; }
/* Same download path and text-sized icon as docs/assets/install-button.svg. */
.install::before { content: ''; position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 1em; height: 1em; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='19 13 24 27'%3E%3Cpath d='M31 15v17m-6-6 6 6 6-6M21 33v5h20v-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.selector label > span, .install { transition: background-color 160ms ease, color 160ms ease; }
@media (hover: hover) and (pointer: fine) {
  .selector label:hover > input:not(:checked) + span, .install:hover:not(:disabled) { background: var(--choice-hover); color: var(--choice-text); }
}
.selector label:active > input:not(:checked) + span, .install:active:not(:disabled) { background: var(--choice-pressed); color: var(--choice-text); }
@media (prefers-reduced-motion: reduce) {
  .selector label > span, .install { transition: none; }
}
.install:disabled { opacity: .45; cursor: wait; }
#browser-status { font-size: 10px; color: var(--muted); line-height: 1.6; margin: 12px 0 0; }
#browser-status.ready::before { content: '●'; color: var(--green); font-size: 7px; margin-right: 7px; }
.notice { padding: 12px 14px; background: #f4eddd; color: #635331 !important; border-radius: 7px; }
.panel-footer { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.8; color: var(--muted); }
.usb-symbol { display: grid; place-items: center; width: 33px; height: 36px; background: #f1f5ef; border: 1px solid #e4ebe2; border-radius: 7px; font-size: 22px; color: #739282; }
.fine-print { font-size: 10px; color: #7c887f; line-height: 1.8; margin: 21px 0 0; }
.next { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 27px 0; margin-top: 10px; border-bottom: 1px solid var(--line); }
.next p { display: flex; align-items: center; gap: 13px; font-size: 13px; color: var(--muted); margin: 0; }
.next a { font-size: 13px; font-weight: 550; color: var(--green); text-decoration: none; }
.next a:hover { text-decoration: underline; }
.next a span { margin-left: 9px; }
.help { border-bottom: 1px solid var(--line); }
.help summary { cursor: pointer; list-style: none; font-size: 12px; font-weight: 550; padding: 21px 25px 21px 0; position: relative; }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: '+'; position: absolute; right: 3px; top: 16px; font-size: 19px; color: var(--muted); }
.help[open] summary::after { content: '−'; }
.help-content { padding: 0 0 10px; max-width: 650px; }
.help h2 { font-size: 13px; margin: 14px 0 7px; font-weight: 600; }
.help p { font-size: 12px; line-height: 1.75; color: var(--muted); margin: 0 0 20px; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 28px; color: var(--muted); font-size: 10px; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
@media (max-width: 880px) and (min-width: 701px) {
  .hero { padding: 32px 25px; }
  .install-side { padding: 32px 25px; }
  .panel-heading h2 { font-size: 19px; }
}
@media (max-width: 700px) {
  .wrap { width: min(100% - 40px, 480px); }
  .header { height: 72px; }
  .workspace { grid-template-columns: 1fr; border-radius: 17px; }
  .hero { padding: 21px 23px 19px; }
  .eyebrow { margin-bottom: 15px !important; font-size: 9px !important; }
  h1 { font-size: clamp(24px, 6.7vw, 32px); line-height: 1.15; letter-spacing: -.8px; margin-bottom: 10px; }
  h1 br { display: none; }
  .bridge-diagram { margin: 16px auto 13px; max-width: 320px; }
  .bridge-diagram .diagram-desktop { display: none; }
  .bridge-diagram .diagram-mobile { display: block; }
  .install-side { padding: 24px 23px; }
  .panel-heading { margin-bottom: 22px; }
  .panel-heading h2 { font-size: 20px; }
  #board-description { min-height: 0; max-width: none; margin: 19px 0 23px; }
  .panel-footer { margin-top: 23px; padding-top: 20px; }
  .fine-print { margin-top: 17px; }
  .next { align-items: flex-start; flex-direction: column; gap: 11px; padding: 24px 0; }
  .next a { font-size: 12px; }
  .footer { flex-direction: column; gap: 13px; }
}
