/* Demo window of the guide (assets/hotspot-demo.js). The window keeps the dark teal look of the program's screenshots
 * in both page themes; the frame around it follows the page theme. Width <= 420 px, height fits the screen. */
.hsd{width:100%;min-width:0;max-width:420px;margin:18px auto}
.hsd-head{display:flex;justify-content:center;margin:0 0 10px}
.hsd-label{display:inline-flex;align-items:center;gap:8px;padding:5px 12px;border:1px solid var(--ppk-line);border-radius:999px;background:var(--ppk-tint);color:var(--ppk-accent);font-size:13px;font-weight:700}
.hsd-label::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}

.hsd-window{--hsd-ink:#f4fbfd;--hsd-muted:#a9c3cf;--hsd-accent:#66e4d5;--hsd-card:#142f43;--hsd-line:#365a6a;--hsd-btn:#203f53;--hsd-warn:#f2b866;
  position:relative;display:flex;flex-direction:column;height:min(760px,calc(100vh - 156px));height:min(760px,calc(100dvh - 156px));min-height:360px;
  overflow:hidden;border:1px solid #476472;border-radius:16px;background:linear-gradient(180deg,#142b3f,#096673);color:var(--hsd-ink);
  font-family:"Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;font-size:14px;line-height:1.35;color-scheme:dark;
  box-shadow:0 22px 44px -24px rgba(8,40,52,.7)}
.hsd-window *{box-sizing:border-box}
.hsd-bar{flex:none;display:flex;align-items:center;gap:8px;height:40px;padding:0 8px 0 14px}
.hsd-appicon{width:18px;height:18px;flex:none}
.hsd-appicon svg{display:block;width:100%;height:100%}
.hsd-brand{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--hsd-muted);font-size:9px;font-weight:600;letter-spacing:.04em}
.hsd-caps{display:flex}
.hsd-cap{display:grid;place-items:center;width:36px;height:32px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--hsd-muted);cursor:pointer}
.hsd-cap svg{width:12px;height:12px}
.hsd-cap:hover{background:rgba(255,255,255,.08)}
.hsd-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#4a6b7c transparent}
.hsd-screen{display:flex;flex-direction:column;min-height:100%;padding:12px 22px 18px}
.hsd-main{height:100%;padding-top:6px}
.hsd button:focus-visible,.hsd input:focus-visible,.hsd select:focus-visible,.hsd-check-input:focus-visible+.hsd-check-box{outline:3px solid var(--hsd-accent,#66e4d5);outline-offset:2px}
.hsd-title:focus{outline:none}

/* main */
.hsd-headrow{flex:none;display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.hsd-title{font-size:26px;font-weight:600;line-height:1.2}
.hsd-tagline{margin-top:4px;color:var(--hsd-muted);font-size:12px}
.hsd-scene{flex:1 1 0;min-height:60px;margin:4px 0;container-type:size;display:grid;place-items:center}
.hsd-scene-box{position:relative;width:min(100cqw,calc(100cqh*600/470));aspect-ratio:600/470}
.hsd-scene-svg{display:block;width:100%;height:100%}
.hsd-wave{stroke:#5d7b8b}.hsd-wave-dot{fill:#5d7b8b}
.is-on .hsd-wave{stroke:url(#hsd-signal)}.is-on .hsd-wave-dot{fill:url(#hsd-signal)}
.is-on .hsd-signal{filter:drop-shadow(0 0 22px rgba(74,145,255,.65))}
/* the laptop in the drawing is the switch: a transparent button over the laptop, the power mark sits on its screen */
.hsd-laptop{position:absolute;left:40.2%;top:74%;width:19.8%;height:12.6%;display:grid;place-items:center;padding:0;border:0;border-radius:9px;background:transparent;color:#63ffdf;cursor:pointer;transition:background .15s,box-shadow .15s,transform .15s}
.hsd-laptop::before{content:"";position:absolute;left:50%;top:50%;width:max(calc(100% + 16px),44px);height:max(calc(100% + 16px),44px);transform:translate(-50%,-50%)}
.hsd-laptop-mark{display:grid;place-items:center;width:38%;aspect-ratio:1;min-width:20px;border:1.5px solid #63ffdf;border-radius:25%;background:#113a51;pointer-events:none}
.hsd-laptop-mark svg{width:50%;height:56%}
.hsd-laptop:focus-visible{outline:none}
.hsd-laptop-mark{transition:box-shadow .15s,background .15s}
.hsd-laptop:hover .hsd-laptop-mark,.hsd-laptop:focus-visible .hsd-laptop-mark{background:#17506a;box-shadow:0 0 14px rgba(99,255,223,.6)}
.hsd-laptop:active{transform:scale(.97)}
.is-on .hsd-laptop-mark{box-shadow:0 0 12px rgba(99,255,223,.35)}
.hsd-laptop::after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);padding:5px 10px;border-radius:8px;background:#05222e;border:1px solid #63ffdf;color:#f4fbfd;font-size:12px;font-weight:600;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .15s}
.hsd-laptop:hover::after,.hsd-laptop:focus-visible::after{opacity:1}
.hsd-laptop.is-disabled,.hsd-primary.is-disabled,.hsd-secondary.is-disabled{opacity:.45;cursor:default}
.hsd-laptop.is-disabled:hover .hsd-laptop-mark{background:#113a51;box-shadow:none}
.hsd-card{flex:none;padding:18px 20px;border:1px solid var(--hsd-line);border-radius:16px;background:var(--hsd-card)}
.hsd-caps-label{color:var(--hsd-muted);font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.hsd-status{margin:8px 0 0;color:var(--hsd-accent);font-size:25px;font-weight:600;line-height:1.2}
.hsd-status.is-off{color:#9fb6c3}
.hsd-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px}
.hsd-muted{min-width:0;color:var(--hsd-muted);font-size:12px}
.hsd-small{font-size:11px}
.hsd-count{font-size:23px;font-weight:600;white-space:nowrap}
.hsd-rule{height:1px;margin:14px 0 11px;background:var(--hsd-line)}
.hsd-note{min-height:2.7em;color:var(--hsd-muted);font-size:12px}
.hsd-details{margin-left:auto;display:flex;align-items:center;justify-content:center;min-height:30px;padding:3px 10px}
.hsd-actions{flex:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}
.hsd-foot{flex:none;margin-top:12px;color:var(--hsd-muted);font-size:10px}
.hsd-primary,.hsd-secondary{min-height:44px;padding:9px 6px;border:1px solid transparent;border-radius:12px;color:var(--hsd-ink);font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:filter .15s,transform .15s}
.hsd-primary{background:var(--hsd-accent);color:#0b2b36}
.hsd-secondary{border-color:var(--hsd-line);background:var(--hsd-btn)}
.hsd-primary:hover,.hsd-secondary:hover{filter:brightness(1.1)}
.hsd-primary:active,.hsd-secondary:active{transform:scale(.98)}
.hsd-wide{width:100%}
.hsd-details.hsd-secondary,.hsd-details-inline.hsd-secondary{width:auto;min-height:28px}
.hsd-right{display:flex;align-items:center;gap:12px;flex:none;margin-left:auto}
.hsd-details-inline{display:none;align-items:center;justify-content:center;padding:3px 10px;white-space:nowrap;line-height:1.2}
.hsd-details{white-space:nowrap}
/* compact layout (window height < 650 px), as in the program */
.is-compact .hsd-screen{padding:4px 18px 12px}
.is-compact .hsd-title{font-size:23px}
.is-compact .hsd-tagline,.is-compact .hsd-main .hsd-caps-label,.is-compact .hsd-rule,.is-compact .hsd-note,.is-compact .hsd-foot{display:none}
.is-compact .hsd-card{padding:12px 16px}
.is-compact .hsd-status{margin-top:0;font-size:21px}
.is-compact .hsd-row{margin-top:5px;flex-wrap:wrap;row-gap:6px}
.is-compact .hsd-count{font-size:19px}
.is-compact .hsd-details{display:none}
.is-compact .hsd-details-inline{display:flex}
.is-compact .hsd-actions{margin-top:8px}

/* child screens */
.hsd-childhead{margin:2px 0 18px}
.hsd-title-child{margin-top:6px;font-size:25px}
.hsd-list{display:flex;flex-direction:column;gap:12px;flex:1}
.hsd-device-title{font-size:17px;font-weight:600}
.hsd-device-names{margin-top:12px;color:var(--hsd-muted);font-size:13px;white-space:pre-line}
.hsd-mac{margin-top:12px;color:var(--hsd-muted);font-size:11px}
.hsd-empty{padding:26px 22px;text-align:left}
.hsd-empty-mark{margin:6px 0 14px;color:var(--hsd-accent);font-size:56px;line-height:1}
.hsd-empty-title{margin-bottom:8px;font-size:21px;font-weight:600}
.hsd-childfoot{flex:none;display:grid;gap:11px;margin-top:14px}
.hsd-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 14px}
.hsd-tab{min-height:44px;border:1px solid var(--hsd-line);border-radius:12px;background:var(--hsd-btn);color:var(--hsd-ink);font:inherit;font-size:13px;font-weight:600;cursor:pointer;opacity:.6}
.hsd-tab[aria-pressed="true"]{border-color:transparent;background:var(--hsd-accent);color:#0b2b36;opacity:1}
.hsd-field{display:block;margin:12px 0 6px;color:var(--hsd-muted);font-size:12px}
.hsd-input{display:block;width:100%;min-height:42px;padding:8px 12px;border:1px solid #3f6578;border-radius:10px;background:#1c3f52;color:var(--hsd-ink);font:inherit;font-size:14px}
.hsd-select{appearance:none;-webkit-appearance:none;padding-right:34px;background-image:linear-gradient(45deg,transparent 50%,#cfe3ea 50%),linear-gradient(135deg,#cfe3ea 50%,transparent 50%);background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%;background-size:5px 5px;background-repeat:no-repeat}
.hsd-select option{background:#142f43;color:#f4fbfd}
.hsd-pane .hsd-small{margin-top:8px}
.hsd-gap{margin:14px 0 12px}
.hsd-gap-top{margin-top:14px}
.hsd-feedback{margin-top:10px;font-size:12px}
.hsd-feedback.is-ok,.hsd-feedback.is-info{color:var(--hsd-accent)}
.hsd-feedback.is-warn{color:var(--hsd-warn)}
.hsd-check{display:flex;align-items:flex-start;gap:10px;margin:8px 0 0;cursor:pointer;font-size:12px}
.hsd-check-input{position:absolute;opacity:0;width:20px;height:20px}
.hsd-check-box{flex:none;display:grid;place-items:center;width:20px;height:20px;border:1px solid #4a6b7c;border-radius:6px;background:#153447}
.hsd-check-input:checked+.hsd-check-box{border-color:var(--hsd-accent);background:var(--hsd-accent)}
.hsd-check-input:checked+.hsd-check-box::after{content:"✓";color:#0b2b36;font-size:13px;font-weight:700;line-height:1}
.hsd-check-text{padding-top:1px}
.hsd-message-card{margin-bottom:20px}
.hsd-message-text{font-size:15px}
.hsd-screen>.hsd-card+.hsd-card{margin-top:14px}
.hsd-screen:not(.hsd-main){animation:hsd-in .16s ease-out}
@keyframes hsd-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

/* dense layout of child screens (JS adds .is-dense when a screen is taller than the window): nothing scrolls */
.hsd-pane[hidden]{display:none}
.hsd-slot{min-height:2.7em}
.is-dense .hsd-screen{padding:6px 16px 10px}
.is-dense .hsd-childhead{margin:0 0 8px}
.is-dense .hsd-childhead .hsd-caps-label{display:none}
.is-dense .hsd-title-child{margin:0;font-size:20px}
.is-dense .hsd-card{padding:10px 14px;border-radius:12px}
.is-dense .hsd-screen>.hsd-card+.hsd-card,.is-dense .hsd-gap-top{margin-top:8px}
.is-dense .hsd-tabs{margin:8px 0;gap:6px}
.is-dense .hsd-tab{min-height:34px}
.is-dense .hsd-pane-simple{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:10px}
.is-dense .hsd-pane-simple .hsd-small{grid-column:1/-1;grid-row:3}
.is-dense .hsd-pane-simple>:nth-child(1){grid-column:1;grid-row:1}
.is-dense .hsd-pane-simple>:nth-child(2){grid-column:1;grid-row:2}
.is-dense .hsd-pane-simple>:nth-child(3){grid-column:2;grid-row:1}
.is-dense .hsd-pane-simple>:nth-child(4){grid-column:2;grid-row:2}
.is-dense .hsd-field{margin:0 0 3px;font-size:11px}
.is-dense .hsd-input{min-height:34px;padding:4px 10px;font-size:13px}
.is-dense .hsd-pane .hsd-small{margin-top:6px}
.is-dense .hsd-gap{margin:6px 0 8px}
.is-dense .hsd-primary.hsd-wide{min-height:38px}
.is-dense .hsd-check{margin:6px 0 0}
.is-dense .hsd-list{gap:8px}
.is-dense .hsd-device-names,.is-dense .hsd-mac{margin-top:6px}
.is-dense .hsd-empty{padding:16px 18px}
.is-dense .hsd-empty-mark{margin:0 0 6px;font-size:40px}
.is-dense .hsd-childfoot{gap:8px;margin-top:8px}
.is-dense .hsd-secondary.hsd-wide{min-height:38px}
.is-dense .hsd-message-card{margin-bottom:10px}

/* controls under the window (follow the page theme) */
.hsd-tools{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;min-height:44px;margin:14px 0 0!important}
.hsd-hint{margin:10px 0 0!important}
.hsd-tool{min-height:44px;padding:9px 16px;border:1px solid var(--ppk-line);border-radius:11px;background:var(--ppk-panel);color:var(--ppk-accent);font:inherit;font-weight:650;cursor:pointer}
.hsd-tool:hover{border-color:var(--ppk-accent)}
.hsd-tool.is-disabled{opacity:.5;cursor:default}
.hsd-tool:focus-visible{outline:3px solid var(--ppk-focus,#075DD1);outline-offset:2px}
.hsd-help{margin:12px 0 0!important;color:var(--ppk-muted);font-size:14px;text-align:center}

/* the program screenshot while the demo is not active (no JavaScript) */
.hsd-static{text-align:center}
.hsd-static img{max-width:min(100%,420px);height:auto}
@media(prefers-reduced-motion:reduce){
  .hsd-screen,.hsd-laptop,.hsd-primary,.hsd-secondary{animation:none!important;transition:none!important}
}

/* Phones: 12 px minimum text, 40+ px buttons, three action buttons that fit a 288 px column */
@media(max-width:640px){
.hsd-brand,.hsd-caps-label,.hsd-foot,.hsd-small{font-size:12px}
.hsd-brand{overflow:visible;text-overflow:clip;white-space:normal;line-height:1.2}
.hsd-cap{width:44px;height:40px}
.hsd-details.hsd-secondary,.hsd-details-inline.hsd-secondary{min-height:40px}
}
@media(max-width:360px){
.hsd-brand{letter-spacing:0;white-space:normal;line-height:1.2}
.hsd-screen{padding-left:10px;padding-right:10px}
.is-compact .hsd-screen{padding-left:10px;padding-right:10px}
.hsd-card{padding:12px}
.hsd-actions{gap:6px}
.hsd-primary,.hsd-secondary{padding-left:2px;padding-right:2px;font-size:12px}
}
