.connect-site {
  --panel: #112c3aee;
  --border: #688c9d60;
  --muted: #c2d4dc;
  --accent: #a5efd9;
  background: #102c39 url("/landscape_fullhd.webp") center top / cover fixed no-repeat;
  font-size: 1rem;
}
.connect-site main,
.site-header {
  width: min(calc(100% - 3rem), 68rem);
  margin-inline: auto;
  padding-inline: 0;
}
.site-header { height: 76px; gap: 1rem; }
.site-header .brand small { display: block; font-size: .875rem; }
.site-header .chip { font-size: .875rem; background: #102936; border-color: var(--border); }
.connect-intro { padding: clamp(2.5rem, 7vw, 5rem) 0 1.75rem; }
.connect-intro h1 { font-size: clamp(2.35rem, 6vw, 4.5rem); margin: 0 0 .25rem; }
.connect-intro p { max-width: 36rem; margin: 0; }
.connect-site .connection-card,
.connect-site .card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; }
.connect-site .connection-card { margin: 0; padding: 1.5rem; }
.connect-site h2 { margin: 0 0 .25rem; font-size: 1.25rem; }
.connect-site .card p,
.connect-site .connection-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.connect-site .setup-grid,
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.connect-site .setup-primary { background: linear-gradient(145deg,#173c43,#112c3a); }
.connect-site .setup-primary button { width: auto; margin-top: 1.5rem; }
.connect-site .card .install-note { margin-top: .5rem; font-size: .875rem; }
.connect-site button:disabled { opacity: .58; }
.usb-progress { flex-basis: 100%; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.connect-site .usb-progress button { width: auto; }
.gesture-diagram { display: grid; justify-items: center; gap: .25rem; margin: 1rem auto; font-size: .875rem; color: var(--muted); }
.gesture-screen {
  position: relative;
  width: min(100%, 280px);
  height: 96px;
  border: 2px solid #698996;
  border-radius: 12px;
  background: linear-gradient(#1d3b46 50%, #0c202d 50%);
  box-shadow: 0 0 0 4px #0b232d;
}
.screen-edge { position: absolute; top: 0; left: 0; height: 50%; width: 5px; border-radius: 9px 0 3px 0; background: var(--accent); }
.swipe-path { position: absolute; top: 24%; left: 12px; width: 42%; height: 2px; background: var(--accent); }
.swipe-path::before { content: ""; position: absolute; left: 0; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.swipe-path::after { content: ""; position: absolute; right: 0; top: -5px; width: 10px; height: 10px; border: solid var(--accent); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.gesture-screen img { position: absolute; top: 5px; left: 53%; border-radius: 6px; }
.install-panel { margin-top: 1rem; }
.install-panel-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.install-actions { display: flex; flex-wrap: wrap; gap: .625rem; }
.connect-site .activity { margin: 1rem 0 0; padding: .75rem 0 0; font-size: .875rem; }
.connect-site .activity summary span { font-size: inherit; }
.support-grid ol { padding-left: 1.35rem; margin: .5rem 0 1rem; color: var(--muted); }
.support-grid li + li { margin-top: .35rem; }
.support-grid summary { cursor: pointer; }
.support-grid details p { padding-top: .5rem; }
.connect-site footer { gap: .75rem 1.5rem; flex-wrap: wrap; justify-content: flex-start; font-size: .875rem; margin-top: 1rem; }
@media (max-width: 720px) {
  .connect-site { background-attachment: scroll; background-size: auto 100vh; }
  .connect-site main, .site-header { width: calc(100% - 2rem); }
  .connect-site .setup-grid, .support-grid { grid-template-columns: 1fr; }
  .site-header .brand small { display: none; }
}
.site-header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-link { color: var(--accent); text-decoration: underline; text-underline-offset: .22em; }
.author-grid { margin-top: 0; }
.author-contact { display: inline-block; margin-top: 1rem; font-weight: 600; }
@media (max-width: 420px) {
  .site-header .brand { font-size: 1rem; gap: .5rem; }
  .site-header-actions { gap: .25rem; }
}
