.setup-guide { --guide-card: #f0f3e9; --guide-output: #fffdf8; --guide-border: #bfccb6; --guide-ink: #304631; --guide-muted: #586c50; --guide-selected: #3e6045; --guide-on-selected: #fffaf1; --guide-accent: #985d3e; --guide-screen: #edf2e7; --guide-bezel: #344237; margin: 0 0 39px; border: 1px solid var(--guide-border); border-radius: 21px; background: var(--guide-card); color: var(--guide-ink); overflow: hidden; }
html[data-theme="night"] .setup-guide { --guide-card: #203c2b; --guide-output: #294733; --guide-border: #57744e; --guide-ink: #f5f0e6; --guide-muted: #c5d1ba; --guide-selected: #c2d4b5; --guide-on-selected: #213728; --guide-accent: #edbd97; --guide-screen: #213c2a; --guide-bezel: #9bab91; }
.setup-guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px 26px 0; }
.setup-guide-heading > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.setup-guide-heading > div > .icon { width: 34px; height: 34px; padding: 8px; border: 1px solid var(--guide-border); border-radius: 11px; color: var(--guide-accent); flex-shrink: 0; }
.setup-guide-heading h3 { margin: 0; font-size: 22px; font-weight: 400; letter-spacing: -.025em; line-height: 1.3; }
.setup-guide-heading p { margin: 4px 0 0; color: var(--guide-muted); font-size: 13px; line-height: 1.6; }
.setup-guide-count { padding: 5px 9px; border: 1px solid var(--guide-border); border-radius: 16px; font-size: 11px; color: var(--guide-muted); white-space: nowrap; }
.setup-guide-body { display: grid; grid-template-columns: minmax(245px, .55fr) minmax(0, 1.45fr); gap: 24px; align-items: start; padding: 23px 26px 18px; }
.setup-guide-body > * { min-width: 0; }
.setup-guide-options { display: grid; gap: 24px; padding-top: 4px; }
.setup-guide fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
.setup-guide legend { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 500; line-height: 1.5; }
.setup-guide legend > span { color: var(--guide-accent); font-size: 10px; font-weight: 400; }
.setup-guide-choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.setup-guide-choices-network { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.setup-guide-choice { display: block; min-width: 0; cursor: pointer; position: relative; }
.setup-guide-choice input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.setup-guide-option { height: 100%; min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--guide-border); border-radius: 9px; background: var(--guide-output); color: var(--guide-ink); font-size: 13px; line-height: 1.4; transition: background .18s, border-color .18s, color .18s; }
.setup-guide-option::before { content: ''; width: 11px; height: 11px; border: 1px solid currentColor; border-radius: 50%; flex-shrink: 0; opacity: .8; }
.setup-guide-option-text { min-width: 0; display: flex; flex: 1; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 5px 8px; }
.setup-guide-option-badge { display: inline-block; width: fit-content; border: 1px solid currentColor; border-radius: 5px; padding: 2px 5px; font-size: 10px; line-height: 1.3; color: var(--guide-accent); }
.setup-guide-choice input:checked + .setup-guide-option { background: var(--guide-selected); border-color: var(--guide-selected); color: var(--guide-on-selected); }
.setup-guide-choice input:checked + .setup-guide-option::before { background: currentColor; box-shadow: inset 0 0 0 3px var(--guide-selected); }
.setup-guide-choice input:checked + .setup-guide-option .setup-guide-option-badge { color: inherit; }
.setup-guide-choice:hover .setup-guide-option { border-color: var(--guide-accent); }
.setup-guide-choice input:focus-visible + .setup-guide-option, .setup-guide button:focus-visible { outline: 3px solid var(--guide-accent); outline-offset: 3px; }
.setup-guide-field-note { margin: 8px 0 0; color: var(--guide-muted); font-size: 12px; line-height: 1.6; }
.setup-guide-result { position: relative; padding: 19px; border: 1px solid var(--guide-border); border-radius: 15px; background: var(--guide-output); }
.setup-guide-result-heading { display: flex; gap: 10px; align-items: flex-start; }
.setup-guide-result-heading > .icon { width: 29px; height: 29px; padding: 6px; border: 1px solid var(--guide-border); color: var(--guide-accent); border-radius: 9px; flex-shrink: 0; }
.setup-guide-result-heading > div { min-width: 0; flex: 1; }
.setup-guide-result-label { color: var(--guide-muted); font-size: 10px; line-height: 1.6; letter-spacing: .11em; margin: 0 0 4px; }
.setup-guide-result h4 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 400; letter-spacing: -.025em; }
.setup-guide-coming { display: inline-block; padding: 5px 8px; border: 1px solid var(--guide-accent); border-radius: 7px; color: var(--guide-accent); font-size: 11px; line-height: 1.4; font-weight: 500; flex-shrink: 0; }
.setup-guide-summary { color: var(--guide-muted); font-size: 13px; line-height: 1.6; margin: 9px 0 0; }
.setup-guide-stage-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 3px; margin-top: 14px; background: var(--guide-card); border: 1px solid var(--guide-border); border-radius: 10px; }
.setup-guide button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.setup-guide-stage-controls button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 7px 5px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--guide-muted); font-size: 12px; line-height: 1.3; transition: background .18s, color .18s; }
.setup-guide-stage-controls button > span { font-size: 9px; opacity: .8; }
.setup-guide-stage-controls button[aria-pressed="true"] { background: var(--guide-selected); color: var(--guide-on-selected); }
.setup-guide-stage-controls button:hover { border-color: var(--guide-border); }
.setup-guide-visual { display: grid; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); align-items: center; gap: 22px; width: 100%; max-width: 548px; margin: 20px auto 0; }
.setup-guide-phone-unit { min-width: 0; align-self: start; }
.setup-guide-phone { position: relative; width: 100%; max-width: 226px; margin-inline: auto; padding: 16px 6px 8px; border: 2px solid #647a6d; border-radius: 25px; background: linear-gradient(135deg, #405449, #17241d 45%, #31463a); box-shadow: inset 0 0 0 1px #ffffff24, 0 0 0 1px #17251e, 0 12px 22px #182a202b; }
.setup-guide-phone::before { content: ''; position: absolute; top: 6px; left: 40%; width: 20%; height: 3px; border-radius: 3px; background: #0e1712; box-shadow: 0 1px 0 #9db1a03d; pointer-events: none; }
.setup-guide-phone::after { content: ''; position: absolute; right: -4px; top: 17%; width: 3px; height: 30%; border-radius: 2px; background: linear-gradient(to bottom, #71877a 0 37%, transparent 37% 58%, #71877a 58% 86%, transparent 86%); pointer-events: none; }
.setup-guide-phone-screen { display: flex; flex-direction: column; justify-content: center; gap: 16px; width: 100%; aspect-ratio: 1080 / 2340; min-width: 0; padding: 22px 12px; border-radius: 5% / 2.308%; background: var(--guide-screen); overflow: hidden; text-align: center; color: var(--guide-ink); overflow-wrap: anywhere; }
.setup-guide-phone-screen.guide-app-screen, .setup-guide-phone-screen:has(.guide-app-image) { display: block; padding: 0; gap: 0; }
.setup-guide .guide-app-open { display: block; width: 100%; aspect-ratio: 1080 / 2340; padding: 0; border: 0; border-radius: inherit; background: #151a20; cursor: zoom-in; }
.setup-guide .guide-app-open:focus-visible { outline: 3px solid var(--guide-accent); outline-offset: -5px; }
.setup-guide .guide-app-image { display: block; width: 100%; height: auto; max-width: none; object-fit: contain; object-position: center; aspect-ratio: 1080 / 2340; border: 0; border-radius: 0; }
.setup-guide-phone-label { margin: 10px 0 0; min-height: 30px; text-align: center; color: var(--guide-muted); font-size: 12px; line-height: 1.4; }
.guide-screen-brand { display: block; color: var(--guide-ink); font-size: 15px; font-weight: 500; line-height: 1.2; }
.guide-screen-kicker, .guide-screen-label { display: block; color: var(--guide-muted); font-size: 11px; line-height: 1.4; }
.guide-screen-placeholder { display: grid; justify-items: center; gap: 12px; }
.guide-screen-icon { display: block; width: 36px; height: 36px; margin-inline: auto; color: var(--guide-selected); flex-shrink: 0; }
.guide-screen-icon .icon { width: 100%; height: 100%; }
.guide-screen-title { display: block; margin: 0; color: var(--guide-ink); font-size: 16px; font-weight: 500; line-height: 1.35; }
.guide-screen-badge { display: block; width: fit-content; max-width: 100%; margin-inline: auto; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--guide-accent); color: var(--guide-accent); font-size: 12px; line-height: 1.3; }
.setup-guide-phone[data-mode="neutral"] { border-color: #647a6d; }
.setup-guide-phone[data-mode="neutral"] .guide-screen-icon { color: var(--guide-muted); }
.setup-guide-phone[data-mode="empty"] { border: 2px dashed var(--guide-border); box-shadow: none; background: transparent; }
.setup-guide-phone[data-mode="empty"]::before, .setup-guide-phone[data-mode="empty"]::after { content: none; }
.setup-guide-phone[data-mode="empty"] .setup-guide-phone-screen { display: none; }
.setup-guide-phone-empty { aspect-ratio: 1080 / 2340; padding: 17px 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; color: var(--guide-muted); font-size: 14px; line-height: 1.45; }
.setup-guide-phone-empty::before { content: '+'; display: grid; place-items: center; width: 38px; height: 38px; border: 1px dashed var(--guide-border); border-radius: 50%; color: var(--guide-accent); font-size: 25px; font-weight: 300; line-height: 1; }
.setup-guide-phone[data-mode="iphone"] { padding: 6px; border-color: #bfb5a4; border-radius: 31px; background: linear-gradient(125deg, #c2b8a9, #62625b 7%, #252a25 18%, #171d19 80%, #77786c); box-shadow: inset 0 0 0 1px #e3ded466, 0 0 0 1px #383c33, 0 12px 22px #182a202b; }
.setup-guide-phone[data-mode="iphone"]::before { z-index: 1; top: 14px; left: 50%; width: 28%; height: 15px; transform: translateX(-50%); border-radius: 20px; background: radial-gradient(circle at 82% 50%, #35495a 0 1px, #171e25 1.5px 2.5px, transparent 3px), #080b0d; box-shadow: inset 0 0 0 1px #ffffff0d; }
.setup-guide-phone[data-mode="iphone"]::after { top: 26%; height: 13%; background: linear-gradient(90deg, #565c52, #c6c0b2); box-shadow: 1px 0 0 #3d4438; }
.setup-guide-phone[data-mode="iphone"] .setup-guide-phone-screen { position: relative; border-radius: 23px; background: linear-gradient(155deg, var(--guide-output), var(--guide-card)); }
.setup-guide-phone[data-mode="iphone"] .setup-guide-phone-screen::after { content: ''; position: absolute; bottom: 9px; left: 35%; width: 30%; height: 3px; border-radius: 4px; background: var(--guide-ink); opacity: .65; pointer-events: none; }
.setup-guide-phone[data-mode="iphone"] .guide-screen-brand { display: none; }
.setup-guide-phone[data-mode="iphone"] .guide-screen-icon { color: var(--guide-accent); }
.setup-guide-connection { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; margin-top: -40px; color: var(--guide-selected); text-align: center; font-size: 11px; line-height: 1.35; }
.setup-guide-connection-node { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--guide-border); border-radius: 50%; background: var(--guide-card); }
.setup-guide-connection-node::before, .setup-guide-connection-node::after { content: ''; position: absolute; top: 50%; width: 23px; height: 2px; background: linear-gradient(90deg, transparent, currentColor, transparent); background-size: 23px 100%; opacity: .45; }
.setup-guide-connection-node::before { right: calc(100% + 6px); }
.setup-guide-connection-node::after { left: calc(100% + 6px); }
.setup-guide-connection .icon { width: 22px; height: 22px; }
.setup-guide-connection > span:last-child { width: 82px; max-width: none; }
.setup-guide-visual[data-step="choosing"] .setup-guide-connection, .setup-guide-visual[data-step="missing"] .setup-guide-connection, .setup-guide-visual[data-step="soon"] .setup-guide-connection { color: var(--guide-muted); }
.setup-guide-visual[data-step="soon"] .setup-guide-connection-node, .setup-guide-visual[data-step="missing"] .setup-guide-connection-node { border-style: dashed; }
.setup-guide-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; }
.setup-guide-nav button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--guide-border); border-radius: 8px; background: transparent; color: var(--guide-ink); font-size: 13px; line-height: 1.4; transition: background .18s; }
.setup-guide-nav button .icon { width: 16px; height: 16px; flex-shrink: 0; }
.setup-guide-prev .icon { transform: rotate(180deg); }
.setup-guide-nav .setup-guide-next { background: var(--guide-selected); border-color: var(--guide-selected); color: var(--guide-on-selected); }
.setup-guide-nav button:disabled { opacity: .4; cursor: default; }
.setup-guide-nav button:hover:not(:disabled) { box-shadow: inset 0 0 0 1px currentColor; }
.setup-guide-step-label { color: var(--guide-muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.setup-guide-example { margin: 10px 0 0; color: var(--guide-muted); font-size: 11px; line-height: 1.6; text-align: center; }
.setup-guide-disclaimer { display: flex; align-items: flex-start; gap: 7px; margin: 0; padding: 0 26px 20px; color: var(--guide-muted); font-size: 11px; line-height: 1.7; }
.setup-guide-disclaimer .icon { width: 14px; height: 14px; margin-top: 1px; flex-shrink: 0; }
.setup-guide-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes guide-signal-flow { from { background-position: -23px 0; } to { background-position: 23px 0; } }
@keyframes guide-signal-pulse { 0%, 100% { opacity: .65; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
html[data-motion="playing"] .setup-guide[data-in-view="true"] .setup-guide-visual[data-step="0"]:is([data-network="wifi"], [data-network="hotspot"]) .setup-guide-connection-node::before,
html[data-motion="playing"] .setup-guide[data-in-view="true"] .setup-guide-visual[data-step="0"]:is([data-network="wifi"], [data-network="hotspot"]) .setup-guide-connection-node::after { animation: guide-signal-flow 2.3s linear infinite; }
html[data-motion="playing"] .setup-guide[data-in-view="true"] .setup-guide-visual[data-step="0"]:is([data-network="wifi"], [data-network="hotspot"]) .setup-guide-connection .icon { animation: guide-signal-pulse 2.3s ease-in-out infinite; }
@media (max-width: 1050px) {
  .setup-guide-heading { padding: 21px 22px 0; }
  .setup-guide-body { gap: 20px; padding: 21px 22px 17px; grid-template-columns: minmax(230px, .55fr) minmax(0, 1.45fr); }
  .setup-guide-result { padding: 17px 14px; }
  .setup-guide-visual { gap: 14px; grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); }
  .setup-guide-connection-node::before, .setup-guide-connection-node::after { width: 13px; }
  .setup-guide-connection > span:last-child { width: 68px; }
  .setup-guide-result-heading { flex-wrap: wrap; }
  .setup-guide-coming { margin-left: 39px; margin-top: -3px; }
  .setup-guide-disclaimer { padding-inline: 22px; }
}
@media (max-width: 900px) {
  .setup-guide-body { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .setup-guide-options { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; padding: 0; }
  .setup-guide-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .setup-guide-choices-network { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-guide-option { min-height: 72px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 9px; }
  .setup-guide-option-text { display: block; flex: none; }
  .setup-guide-option-badge { display: block; margin-top: 4px; }
  .setup-guide-choices-network .setup-guide-option { min-height: 44px; flex-direction: row; align-items: center; justify-content: flex-start; }
  .setup-guide-visual { max-width: 548px; gap: 22px; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); }
  .setup-guide-connection-node::before, .setup-guide-connection-node::after { width: 23px; }
  .setup-guide-result-heading { flex-wrap: nowrap; }
  .setup-guide-coming { margin-left: 0; margin-top: 0; }
}
@media (max-width: 600px) {
  .setup-guide { margin-bottom: 29px; border-radius: 17px; }
  .setup-guide-heading { padding: 18px 15px 0; gap: 10px; align-items: flex-start; }
  .setup-guide-heading > div { gap: 9px; }
  .setup-guide-heading > div > .icon { width: 29px; height: 29px; padding: 6px; }
  .setup-guide-count { display: none; }
  .setup-guide-body { gap: 18px; padding: 18px 12px 15px; }
  .setup-guide-options { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .setup-guide-options fieldset { padding-inline: 2px; }
  .setup-guide-result { padding: 15px 8px; }
  .setup-guide-visual { max-width: 444px; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); gap: 3px; margin-top: 18px; }
  .setup-guide-phone { max-width: 206px; padding: 12px 4px 6px; border-width: 1px; border-radius: 17px; box-shadow: inset 0 0 0 1px #ffffff24, 0 0 0 1px #17251e, 0 8px 14px #182a202b; }
  .setup-guide-phone::before { top: 4px; height: 2px; }
  .setup-guide-phone::after { right: -3px; width: 2px; }
  .setup-guide-phone[data-mode="iphone"] { padding: 4px; border-radius: 22px; }
  .setup-guide-phone[data-mode="iphone"]::before { top: 10px; height: 9px; }
  .setup-guide-phone[data-mode="iphone"] .setup-guide-phone-screen { border-radius: 16px; }
  .setup-guide-phone[data-mode="iphone"] .setup-guide-phone-screen::after { bottom: 7px; height: 2px; }
  .setup-guide-phone-screen { gap: 12px; padding: 16px 8px; }
  .setup-guide-phone-label { font-size: 11px; }
  .guide-screen-title { font-size: 14px; }
  .guide-screen-badge { padding: 4px 6px; font-size: 11px; }
  .setup-guide-connection-node { width: 22px; height: 22px; }
  .setup-guide-connection-node::before, .setup-guide-connection-node::after { display: none; }
  .setup-guide-connection .icon { width: 14px; height: 14px; }
  .setup-guide-connection > span:last-child { display: none; }
  .setup-guide-disclaimer { padding: 0 14px 18px; }
}
@media (max-width: 400px) {
  .setup-guide-heading h3 { font-size: 21px; }
  .setup-guide-result-heading { gap: 7px; flex-wrap: wrap; }
  .setup-guide-result-heading > .icon { width: 26px; height: 26px; padding: 5px; }
  .setup-guide-result-heading > div { flex-basis: calc(100% - 33px); }
  .setup-guide-result h4 { font-size: 19px; }
  .setup-guide-coming { margin-left: 33px; }
  .setup-guide-stage-controls { gap: 2px; }
  .setup-guide-stage-controls button { flex-direction: column; gap: 3px; font-size: 11px; padding-inline: 2px; }
  .setup-guide-nav { display: grid; grid-template-columns: minmax(68px, .7fr) minmax(0, 1.3fr); gap: 7px 8px; }
  .setup-guide-step-label { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  .setup-guide-nav .setup-guide-prev { grid-column: 1; grid-row: 2; justify-self: start; }
  .setup-guide-nav .setup-guide-next { grid-column: 2; grid-row: 2; justify-self: end; max-width: 100%; }
  .setup-guide-nav button { gap: 4px; padding-inline: 8px; }
}
@media (max-width: 360px) {
  .setup-guide-body { padding-inline: 8px; }
  .setup-guide-result { padding-inline: 6px; }
  .setup-guide-option { padding-inline: 7px; }
  .setup-guide-phone-empty { padding-inline: 7px; font-size: 13px; }
  .guide-screen-badge { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .setup-guide *, .setup-guide *::before, .setup-guide *::after { animation: none !important; transition: none !important; }
}
html[data-motion="paused"] .setup-guide *, html[data-motion="paused"] .setup-guide *::before, html[data-motion="paused"] .setup-guide *::after { animation: none !important; transition: none !important; }
