.setup-intro { display:flex; align-items:center; justify-content:space-between; gap:32px; padding:clamp(24px,4vw,48px); border-radius:26px; background:#18413e; color:#fffef8; }
.setup-intro h1 { font-size:clamp(40px,5.3vw,74px); line-height:1.04; letter-spacing:-.06em; margin:0 0 16px; }
.setup-intro>div>p { font-size:clamp(16px,1.3vw,19px); line-height:1.55; max-width:57ch; color:#e7efe4; }
.setup-intro .setup-qr { display:flex; align-items:center; gap:14px; max-width:280px; border-left:1px solid #6d8780; padding-left:25px; flex:none; }
.setup-qr img { width:92px; height:92px; border-radius:7px; }
.setup-intro .setup-qr p { font-size:14px; line-height:1.48; }
.setup-qr strong { font-weight:580; color:white; }
.setup-picker { margin-top:28px; padding:clamp(19px,3vw,30px); border:1px solid var(--border); background:var(--white); border-radius:20px; }
.setup-picker h2,.setup-step h2,.setup-help h2,.setup-cabinets h2 { font-size:clamp(26px,3.05vw,42px); letter-spacing:-.05em; line-height:1.12; }
.setup-picker p,.setup-cabinets p,.setup-help p,.setup-note,.step-lead,.setup-instructions p { font-size:16px; line-height:1.6; color:var(--mute); }
.setup-picker>p,.setup-cabinets>p { margin-top:7px; }
#device-picker:not([hidden]) { margin-top:18px; display:flex; align-items:flex-start; flex-wrap:wrap; gap:16px 40px; }
#device-picker fieldset { border:0; margin:0; padding:0; min-width:0; }
#device-picker legend { padding:0 0 7px; font-size:15px; font-weight:620; }
.segments { display:inline-flex; gap:3px; padding:3px; background:#e9ede3; border-radius:12px; }
.segments label { position:relative; cursor:pointer; }
.segments input,.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.segments span { display:block; line-height:22px; border-radius:9px; padding:10px 14px; font-size:15px; }
.segments input:checked+span { background:var(--ink); color:#fff; font-weight:580; }
.segments input:focus-visible+span { outline:3px solid #cf6721; outline-offset:2px; }
.setup-jump { display:flex; flex-wrap:wrap; gap:9px 23px; padding:18px 2px; border-bottom:1px solid var(--border); }
.setup-jump a,.setup-instructions li a,.setup-help li a { text-decoration:underline; text-underline-offset:3px; }
.setup-jump a { font-size:15px; }
.setup-step { padding:clamp(28px,4vw,50px) 0; border-bottom:1px solid var(--border); }
.step-heading { display:flex; align-items:baseline; gap:14px; }
.step-heading>span { display:grid; place-items:center; flex:none; width:36px; height:36px; font-weight:650; font-size:18px; border-radius:50%; background:#dce8ca; }
.step-lead { margin:12px 0 0; max-width:78ch; }
.setup-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(240px,.75fr); align-items:start; gap:clamp(22px,6vw,78px); margin-top:23px; }
.setup-instructions h3 { font-size:22px; letter-spacing:-.035em; margin-bottom:13px; }
.setup-instructions>p { margin-bottom:20px; }
.setup-instructions ol,.setup-help ol { margin:13px 0 18px; padding-left:1.4em; font-size:16px; line-height:1.59; }
.setup-instructions li,.setup-help li { padding-left:.2em; margin-bottom:8px; }
.setup-instructions [data-platform]+[data-platform]:not([hidden]) { margin-top:19px; }
.setup-app { display:flex; align-items:center; gap:13px; margin:10px 0; }
.setup-app img { border-radius:14px; width:48px; height:48px; }
.setup-app small { display:block; color:var(--mute); margin-top:3px; font-size:14px; }
.setup-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px 18px; }
.setup-actions .textlink,.setup-instructions>.textlink,.setup-note a { font-size:15px; }
.setup-shot { margin:0; padding:16px; border:1px solid var(--border); border-radius:19px; background:#e9ede4; min-width:0; }
.setup-shot>a { display:block; border-radius:10px; cursor:zoom-in; overflow:hidden; }
.setup-shot img { display:block; width:100%; height:auto; }
.setup-shot figcaption { display:block; margin-top:12px; font-size:14px; line-height:1.5; color:#455a54; }
.setup-shot strong { color:var(--ink); }
.code-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; margin-top:20px; }
.code-gallery figure { display:flex; flex-direction:column; justify-content:space-between; background:var(--white); }
.code-gallery figure>a { margin-block:auto; }
.code-gallery figcaption { padding-top:12px; border-top:1px solid var(--border); }
.setup-note { margin-top:12px; font-size:14px; }
.setup-help { margin:36px 0; }
.setup-help details { margin:0; border-bottom:1px solid var(--border); }
.setup-help h2 { margin-bottom:15px; }
.setup-help summary { cursor:pointer; padding:15px 0; font-size:17px; font-weight:570; }
.setup-help details>div { padding:0 0 17px; max-width:78ch; }
.setup-help details p+.setup-actions { margin-top:10px; }
.setup-cabinets { background:#e3ecda; padding:clamp(20px,3vw,34px); border-radius:20px; }
.setup-cabinets .setup-actions { margin-top:18px; }
#shot-viewer { box-sizing:border-box; max-width:min(95vw,720px); max-height:94vh; max-height:94dvh; padding:16px; border:1px solid var(--border); border-radius:17px; color:var(--ink); }
#shot-viewer::backdrop { background:#142c2bd9; }
#shot-viewer img { display:block; object-fit:contain; max-width:100%; max-height:65vh; margin:auto; }
#shot-viewer p { line-height:1.45; margin:12px 0 0; font-size:15px; }
.shot-close { display:block; margin:0 0 12px auto; background:#e7ede2; color:var(--ink); border:0; border-radius:9px; padding:10px 15px; font-weight:600; }
@media (max-width:760px) {
  .setup-intro .setup-qr { display:none; }
  .setup-intro { border-radius:19px; padding:24px 19px; }
  .setup-picker { margin-top:17px; }
  .setup-grid,.code-gallery { grid-template-columns:1fr; }
  .setup-grid { gap:16px; }
  .setup-shot { max-width:420px; }
  .code-gallery figure { width:100%; }
  .code-gallery figure>a { margin:0; }
  .step-heading { gap:10px; }
  .step-heading>span { width:29px; height:29px; font-size:16px; }
  .segments span { padding:10px; }
}
@media (max-width:360px) {
  .segments { gap:1px; }
  .segments span { font-size:14px; padding:9px; }
}
@media print {
  .setup-jump,.setup-qr,#device-picker,.navigation,.footer { display:none!important; }
  .setup-step,.setup-shot { break-inside:avoid; }
}

.setup-step [hidden] { display:none !important; }
.phone-shot img { max-height:430px; object-fit:contain; }
.phone-shot > a { background:#f5f4ed; }
@media (max-width:760px) {
  .phone-shot { max-width:100%; }
  .phone-shot img { max-height:400px; }
}
