:root {
  color-scheme: light;
  --paper: #faf8f0;
  --ink: #25233a;
  --muted: #554f5e;
  --line: #d9d5c9;
  --iris: #e1fa86;
  font-family: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0 auto; padding: 0 clamp(1.1rem, 5vw, 3.5rem); max-width: 62rem; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: #503ba6; }
:focus-visible { outline: 3px solid #3868aa; outline-offset: 3px; }
header, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.masthead { min-height: 4.25rem; border-bottom: 1px solid var(--line); }
.masthead > a:last-child, footer { font-size: .9rem; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-weight: 760; text-decoration: none; letter-spacing: -.045em; }
.mark { display: inline-grid; place-items: center; height: 1.4rem; width: 1.95rem; border-radius: .42rem; background: var(--ink); color: var(--iris); font: bold 1.4rem/1 monospace; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2.25rem, 6vw, 4.4rem) 0; }
.intro > div:first-child { max-width: 32rem; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: "Barlow", "Avenir Next", "Gill Sans", sans-serif; }
h1 { font-size: clamp(3rem, 7vw, 5.4rem); font-weight: 750; line-height: .92; letter-spacing: -.07em; }
h1 span { color: #503ba6; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.12; letter-spacing: -.045em; }
p, li, label { line-height: 1.55; }
.intro p { color: var(--muted); max-width: 30rem; margin-top: 1.3rem; }
.buddy { flex: 0 0 auto; width: clamp(6rem, 19vw, 11rem); aspect-ratio: 1.5; border-radius: 16%; padding: 5px; background: linear-gradient(140deg, #576057, #30362e 52%, #424a42); transform: rotate(-6deg); box-shadow: 0 5px 0 #72796b, 0 10px 12px #1c2a131f; }
.face { height: 100%; border-radius: 14%; background: #141913; position: relative; }
.face i { position: absolute; left: 27%; top: 51.5%; width: 32.313%; height: 37.2%; transform: translate(-50%, -50%); background: var(--iris); border-radius: 42% 44% 39% 41% / 46% 48% 40% 42%; }
.face i + i { left: 73%; top: 48.5%; height: 42.8%; }
main > section { padding: 1.8rem 0; border-top: 1px solid var(--line); }
.install > p:first-of-type, .setup > ol { margin: .65rem 0 1.4rem; }
label { display: block; font-size: .9rem; font-weight: 680; margin-bottom: .35rem; }
select, input, button { font: inherit; }
select, input { padding: .65rem .8rem; color: var(--ink); border: 1px solid #8a968a; border-radius: .45rem; background: #fbfcf5; min-height: 44px; }
select { width: min(100%, 23rem); }
.model-note, .status, .tip { font-size: .9rem; color: var(--muted); }
.model-note { margin-top: .35rem; }
.notice { padding: .7rem .9rem; margin: 1.25rem 0; border-left: 3px solid #a08f45; background: #eee9d9; max-width: 43rem; }
.notice strong { display: block; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; border: 0; border-radius: .5rem; padding: .72rem 1rem; min-height: 44px; cursor: pointer; font-weight: 660; }
.primary { background: var(--iris); border: 1px solid #25233a; color: #17200b; }
.primary:hover { background: #cee977; }
.primary:disabled { background: #dce1d5; color: #4d584b; border-color: #bec8b9; cursor: default; }
.secondary { color: #fbfcf6; background: var(--ink); }
.secondary:hover { background: #35442f; }
esp-web-install-button:not(:defined) > :not([slot="activate"]) { display: none; }
.status:empty { display: none; }
.status { margin-top: .5rem; }
.setup ol { padding-left: 1.5rem; max-width: 42rem; }
.setup li + li { margin-top: .35rem; }
code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .92em; }
.address-row { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
.tip { max-width: 43rem; margin-top: 1rem; }
.help h2 { margin-bottom: .85rem; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: .85rem 0; font-weight: 620; }
details p { max-width: 43rem; padding: 0 0 1rem; color: var(--muted); }
footer { padding: .2rem 0 1.8rem; color: var(--muted); }
@media (max-width: 599px) {
  .intro { align-items: flex-start; position: relative; gap: .5rem; }
  .intro > div:first-child { width: 100%; }
  .intro h1 { max-width: 74%; }
  .buddy { position: absolute; right: 1%; top: 2.7rem; width: clamp(4rem, 21vw, 7rem); }
  .intro p { margin-top: 1rem; }
}
