/* /guide/router/: the router mock-ups (a browser with the cabinet and the Keenetic web interface) and the checklist;
   sized in em like .g-win, so they shrink with their column. Final frames are the markup, guide.js plays them. */
.rg-stack{grid-template-columns:minmax(0,1fr)}
.rg-stack .g-text{max-width:760px}
.g-wide.rg-wide{max-width:880px}
.rg-br{max-width:88em;font-size:min(10px,100cqw/88);aspect-ratio:16/10.4;background:#E9EBF0;color:#0B1220}
.rg-br .frames{top:3.2em}
.rg-br .frame{background:#F2F2F5;color:#0B1220}
.rg-br .g-win-bar{background:#DADDE4}
.rg-br .g-win-bar b{color:rgba(11,18,32,.55)}
.rg-br .finger{width:26px;height:26px;margin:-13px 0 0 -13px}

/* browser chrome inside each frame: address line and bookmarks bar */
.rg-addr{display:flex;align-items:center;gap:1em;padding:.8em 1.4em;background:#fff;border-bottom:1px solid rgba(11,18,32,.08)}
.rg-nav{display:flex;gap:.9em;color:rgba(11,18,32,.4);font-size:1.3em}
.rg-url{flex:1;display:flex;align-items:center;gap:.6em;padding:.55em 1.1em;border-radius:999px;background:#F2F2F5;font-size:1.25em;color:rgba(11,18,32,.75)}
.rg-url i{width:.8em;height:.9em;border-radius:.2em;background:#1B873A;opacity:.7}
.rg-bms{display:flex;align-items:center;gap:1.4em;min-height:3em;padding:0 1.4em;background:#fff;border-bottom:1px solid rgba(11,18,32,.08);font-size:1.15em;color:rgba(11,18,32,.6)}
.rg-bms span::before{content:"";display:inline-block;width:.8em;height:.8em;margin-right:.45em;border-radius:.2em;background:rgba(11,18,32,.18);vertical-align:-.05em}
.rg-bms .rg-bm{padding:.35em .9em;border-radius:999px;background:#FFF1C9;color:#0B1220;font-weight:700}
.rg-bms .rg-bm::before{background:#F6CA2F}
.rg-bm1{opacity:0;transform:translateY(-.4em);transition:opacity .3s ease,transform .3s ease}
.rg-bm1.is-on{opacity:1;transform:none}

/* the cabinet page */
.rg-lk{flex:1;padding:1.8em 2.4em;overflow:hidden}
.rg-lk .rg-h{margin:0 0 1em;font-family:var(--display);font-size:2.2em;line-height:1.1}
.rg-card{display:grid;grid-template-columns:1fr 1.15fr;gap:2.4em;padding:2em;border-radius:2em;background:#fff}
.rg-card b{display:block;font-size:1.5em}
.rg-pill{display:inline-block;margin-top:.6em;padding:.25em .9em;border-radius:999px;background:#E3F6E9;color:#1B873A;font-size:1.05em;font-weight:700}
.rg-rows{margin:1.2em 0 0;padding:0;list-style:none;font-size:1.15em}
.rg-rows li{display:flex;justify-content:space-between;padding:.55em 0;border-top:1px solid rgba(11,18,32,.08)}
.rg-rows span{color:rgba(11,18,32,.55)}
.rg-setup{padding-left:2.4em;box-shadow:-1px 0 0 rgba(11,18,32,.08)}
.rg-setup ol{margin:.8em 0 0;padding-left:1.3em;font-size:1.15em;color:rgba(11,18,32,.65)}
.rg-setup li{margin:.35em 0}
.rg-drag{display:inline-block;margin-top:1em;padding:.7em 1.4em;border:.15em dashed #06111F;border-radius:.8em;background:#F6CA2F;color:#06111F;font-size:1.2em;font-weight:700;transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease}
.rg-drag.is-held{transform:translateY(-.3em) rotate(-2deg);box-shadow:0 1em 2em -.6em rgba(6,17,31,.5);opacity:.75}

/* the Keenetic web interface */
.rg-kn{position:relative;flex:1;display:grid;grid-template-columns:17em 1fr;overflow:hidden}
.rg-side{padding:1.6em 1.2em;background:#fff;border-right:1px solid rgba(11,18,32,.08)}
.rg-side b{display:block;margin:0 0 1.2em .6em;font-size:1.5em;letter-spacing:.02em}
.rg-side span{display:block;padding:.6em .8em;border-radius:.8em;font-size:1.2em;color:rgba(11,18,32,.65)}
.rg-side span.on{background:#E8F1FF;color:#0B5BD3;font-weight:600}
.rg-main{padding:1.8em 2.2em;overflow:hidden}
.rg-main .rg-h{margin:0 0 1.2em;font-size:1.9em;font-weight:700}
.rg-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2em}
.rg-tiles div{padding:1.3em;border-radius:1.2em;background:#fff;font-size:1.15em;color:rgba(11,18,32,.6)}
.rg-tiles b{display:block;margin-top:.3em;font-size:1.3em;color:#0B1220}
.rg-tiles .ok b{color:#1B873A}

/* the setup dialog the bookmark opens on top of the router page */
.rg-dlg{position:absolute;inset:0;z-index:5;display:grid;place-items:center;background:rgba(6,17,31,.35);opacity:0;visibility:hidden;transition:opacity .3s ease,visibility 0s .3s}
.rg-dlg.is-on{opacity:1;visibility:visible;transition:opacity .3s ease}
.rg-box{width:40em;padding:2em 2.2em;border-radius:2em;background:#fff;box-shadow:0 2em 4em -1.6em rgba(6,17,31,.6)}
.rg-box .rg-h{display:flex;align-items:center;gap:.6em;margin:0 0 .4em;font-size:1.6em;font-weight:800}
.rg-box .rg-h i{width:1.2em;height:1.2em;border-radius:50%;background:#F6CA2F}
.rg-box p{margin:0 0 1em;font-size:1.15em;color:rgba(11,18,32,.6)}
.rg-sel{display:flex;justify-content:space-between;padding:.7em 1em;border-radius:.9em;background:#F2F2F5;font-size:1.2em}
.rg-sel::after{content:"▾";color:rgba(11,18,32,.5)}
.rg-chk{display:flex;align-items:center;gap:.7em;margin:1em 0;font-size:1.2em}
.rg-chk i{display:grid;place-items:center;width:1.3em;height:1.3em;border-radius:.35em;background:#06111F;color:#F6CA2F;font-style:normal;font-size:.9em}
.rg-go{display:block;padding:.75em;border-radius:999px;background:#F6CA2F;font-size:1.3em;font-weight:800;text-align:center}
.rg-run,.rg-ok{display:none}
.rg-dlg.is-run .rg-form{display:none}
.rg-dlg.is-run .rg-run{display:block;margin:0;padding:0;list-style:none}
.rg-run li{display:flex;align-items:center;gap:.7em;padding:.45em 0;font-size:1.25em;color:rgba(11,18,32,.45)}
.rg-run li::before{content:"";flex:none;width:1.1em;height:1.1em;border:.15em solid rgba(11,18,32,.2);border-radius:50%}
.rg-run li.is-done{color:#0B1220}
.rg-run li.is-done::before{border-color:#1B873A;background:#1B873A;box-shadow:inset 0 0 0 .18em #fff}
.rg-dlg.is-ok .rg-ok{display:block;margin-top:1em;padding:.8em 1em;border-radius:1em;background:#E3F6E9;color:#1B873A;font-size:1.3em;font-weight:800;text-align:center}

/* manual import: file picker, the new connection row, the switch and the priorities */
.rg-btn{display:inline-block;padding:.6em 1.2em;border-radius:.9em;background:#0B5BD3;color:#fff;font-size:1.15em;font-weight:600}
.rg-list{margin-top:1.4em;border-radius:1.2em;background:#fff;overflow:hidden}
.rg-list>div{display:flex;justify-content:space-between;align-items:center;padding:1em 1.3em;border-top:1px solid rgba(11,18,32,.06);font-size:1.2em}
.rg-list>div:first-child{border-top:0}
.rg-list small{color:rgba(11,18,32,.5);font-size:.9em}
.rg-row{opacity:0;transition:opacity .3s ease,background-color .3s ease}
.rg-row.is-on{opacity:1;background:#FFF8DE}
.rg-file{position:absolute;inset:0;z-index:5;display:grid;place-items:center;background:rgba(6,17,31,.3);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility 0s .25s}
.rg-file.is-on{opacity:1;visibility:visible;transition:opacity .25s ease}
.rg-file>div{width:34em;padding:1.6em;border-radius:1.4em;background:#fff;font-size:1.15em}
.rg-file p{margin:0 0 .8em;font-weight:700}
.rg-file span{display:block;padding:.6em .8em;border-radius:.6em;background:#E8F1FF}
.rg-file span.rg-btn{display:inline-block;margin-top:1em;float:right;padding:.6em 1.2em;border-radius:.9em;background:#0B5BD3;color:#fff;font-size:1em}
.rg-sw-row{display:flex;justify-content:space-between;align-items:center;padding:1em 1.3em;border-top:1px solid rgba(11,18,32,.06);font-size:1.2em}
.rg-sw{position:relative;flex:none;width:3.2em;height:1.8em;border-radius:999px;background:rgba(11,18,32,.18);transition:background-color .25s ease}
.rg-sw::after{content:"";position:absolute;top:.2em;left:.2em;width:1.4em;height:1.4em;border-radius:50%;background:#fff;transition:transform .25s ease}
.rg-sw.is-on{background:#0B5BD3}
.rg-sw.is-on::after{transform:translateX(1.4em)}
.rg-save{margin-top:1.4em}
.rg-plist{display:flex;flex-direction:column;margin-top:1.4em;border-radius:1.2em;background:#fff;overflow:hidden}
.rg-plist>div{display:flex;align-items:center;gap:1em;padding:1em 1.3em;border-top:1px solid rgba(11,18,32,.06);font-size:1.25em}
.rg-plist>div::before{content:"1";display:grid;place-items:center;width:1.6em;height:1.6em;border-radius:50%;background:#F2F2F5;font-weight:700;font-size:.9em}
.rg-plist>div span{flex:1}
.rg-plist.is-up .rg-p-vpn{order:-1;background:#FFF8DE}
.rg-plist>.rg-p-vpn::before{content:"2"}
.rg-plist.is-up>.rg-p-vpn::before{content:"1";background:#F6CA2F}
.rg-plist.is-up>.rg-p-isp::before{content:"2"}
.rg-up{padding:.2em .7em;border-radius:.6em;background:#F2F2F5;color:#0B5BD3;font-weight:700}
.rg-br .g-toast{bottom:2em;font-size:1.2em}

/* step 1: three conditions as cards with a custom tick, a counter and a progress bar under them (CSS only) */
#check .g-text,#verify .g-text{max-width:none}
.rg-checks{counter-reset:done}
.rg-check{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.rg-check li{display:flex}
.rg-check label{position:relative;flex:1;display:flex;flex-direction:column;gap:6px;padding:22px 24px 24px;border-radius:24px;background:var(--card,#fff);cursor:pointer;transition:background-color .2s ease,box-shadow .2s ease}
.rg-check label:hover{box-shadow:inset 0 0 0 2px #E4E4EA}
.rg-check input{position:absolute;top:22px;right:22px;width:28px;height:28px;margin:0;border:2px solid #C3C5CE;border-radius:9px;background:#fff;-webkit-appearance:none;appearance:none;cursor:pointer;transition:background-color .2s ease,border-color .2s ease}
.rg-check input::after{content:"";position:absolute;left:8px;top:3px;width:7px;height:13px;border:solid #F6CA2F;border-width:0 3px 3px 0;transform:rotate(45deg) scale(0);transition:transform .2s ease}
.rg-check input:checked{border-color:#06111F;background:#06111F;counter-increment:done}
.rg-check input:checked::after{transform:rotate(45deg) scale(1)}
.rg-check input:focus-visible{outline:3px solid #06111F;outline-offset:3px}
.rg-check label:has(input:checked){background:#FFF8DE;box-shadow:inset 0 0 0 2px #F6CA2F}
.rg-ck-top{display:flex;align-items:center;gap:10px;margin:0 40px 8px 0}
.rg-ck-top i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#F2F2F5;font-style:normal;font-weight:800;font-size:14px;transition:background-color .2s ease}
.rg-ck-top em{font-style:normal;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-soft)}
.rg-check label:has(input:checked) .rg-ck-top i{background:#F6CA2F}
.rg-check b{display:block;font-family:var(--display);font-size:18px;line-height:1.25}
.rg-ck-txt{color:var(--ink-soft);font-size:15px;line-height:1.5}
.rg-ready{display:flex;align-items:center;gap:20px;margin:12px 0 0;padding:18px 22px;border-radius:24px;background:var(--card,#fff);transition:background-color .2s ease}
.rg-prog{display:flex;flex:none;gap:6px}
.rg-prog i{width:44px;height:8px;border-radius:99px;background:#E4E4EA;transition:background-color .2s ease}
.rg-checks:has(li:nth-child(1) input:checked) .rg-prog i:nth-child(1),
.rg-checks:has(li:nth-child(2) input:checked) .rg-prog i:nth-child(2),
.rg-checks:has(li:nth-child(3) input:checked) .rg-prog i:nth-child(3){background:#F6CA2F}
.rg-ready-txt{flex:1;display:grid;gap:2px;min-width:0;font-size:15px}
.rg-ready-txt span{color:var(--ink-soft)}
.rg-count::after{content:counter(done)}
.rg-ready .ok,.rg-next{display:none}
.rg-next{flex:none}
.rg-checks:not(:has(input:not(:checked))) .rg-ready{background:#E3F6E9}
.rg-checks:not(:has(input:not(:checked))) .rg-ready .rg-prog i:nth-child(n):nth-child(n){background:#1B873A}
.rg-checks:not(:has(input:not(:checked))) .rg-ready .wait{display:none}
.rg-checks:not(:has(input:not(:checked))) .rg-ready .ok{display:block}
.rg-checks:not(:has(input:not(:checked))) .rg-ready-txt b{color:#1B873A}
.rg-checks:not(:has(input:not(:checked))) .rg-next{display:inline-flex}
.rg-prices{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0;padding:0;list-style:none}
.rg-prices li{padding:6px 12px;border-radius:999px;background:#F2F2F5;font-size:14px;color:#0B1220}
.rg-prices b{color:#0B1220}
.dark .g-way{color:#0B1220}
.dark .g-way h3,.dark .g-way b,.dark .g-way strong{color:#0B1220}
.dark .g-way p,.dark .g-way li{color:rgba(11,18,32,.68)}
.dark .g-way a:not(.btn){color:#0B1220}
.dark .g-way .btn-ghost{background:#F2F2F5;color:#0B1220}
.dark .g-way .btn-ghost:hover{background:#E4E4EA}
.rg-cmp{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}
.rg-cmp div{padding:20px 22px;border-radius:22px;background:var(--card,#fff)}
.rg-cmp b{display:block;margin:0 0 6px;font-family:var(--display);font-size:18px}
.rg-cmp span{color:var(--ink-soft);font-size:15px}
@media (max-width:900px){
  .rg-check,.rg-cmp{grid-template-columns:minmax(0,1fr)}
  .rg-ready{flex-wrap:wrap;gap:12px 16px}
  .rg-ready-txt{flex-basis:100%;order:-1}
}
@media (max-width:640px){
  .rg-br{max-width:40em;font-size:min(10px,100cqw/40);aspect-ratio:40/54}
  .rg-bms span:not(.rg-bm){display:none}
  .rg-kn{grid-template-columns:minmax(0,1fr)}
  .rg-side{display:none}
  .rg-main,.rg-lk{padding:1.6em}
  .rg-card{grid-template-columns:minmax(0,1fr);gap:1.6em;padding:1.6em}
  .rg-setup{padding:1.6em 0 0;box-shadow:0 -1px 0 rgba(11,18,32,.08)}
  .rg-tiles{grid-template-columns:minmax(0,1fr)}
  .rg-box{width:35em;padding:1.8em}
  .rg-file>div{width:32em}
  .rg-sw-row,.rg-list>div{gap:1em}
}

/* bookmarks bar demo: where the bar is and the button being dragged onto it; the px offsets below go together */
.bmx{font-size:11px;line-height:1.2;color:var(--fg)}
.bmx-win{position:relative;height:212px;overflow:hidden;border:1px solid var(--sep);border-radius:14px;background:#fff;box-shadow:0 12px 32px rgba(6,17,31,.08);container-type:inline-size;user-select:none}
.bmx-top{display:flex;align-items:center;gap:5px;height:30px;padding:0 10px;background:#E6E6EC}
.bmx-top>i{width:8px;height:8px;border-radius:50%;background:#FF5F57}
.bmx-top>i:nth-child(2){background:#FEBC2E}
.bmx-top>i:nth-child(3){background:#28C840}
.bmx-tab{align-self:end;margin-left:10px;padding:7px 14px;border-radius:8px 8px 0 0;background:#fff;color:#3A3A44;white-space:nowrap}
.bmx-addr{display:flex;align-items:center;gap:8px;height:34px;padding:0 10px}
.bmx-nav{color:#9A9AA4;letter-spacing:2px}
.bmx-url{flex:1;display:flex;align-items:center;gap:6px;min-width:0;height:24px;padding:0 10px;border-radius:999px;background:#F2F2F5;color:#3A3A44;white-space:nowrap}
.bmx-url i{flex:none;width:8px;height:8px;border-radius:2px;background:#4CA36A}
.bmx-bar{display:flex;align-items:center;gap:6px;height:28px;padding:0 10px;background:#FFF8DE;box-shadow:inset 0 0 0 2px var(--yellow)}
.bmx-bar>span{flex:none;display:flex;align-items:center;gap:5px;width:56px;color:#3A3A44;white-space:nowrap}
.bmx-bar>span::before{content:'';flex:none;width:9px;height:9px;border-radius:2px;background:#C9C9D1}
.bmx-bar>.bmx-slot{width:auto;height:20px;padding:0 8px 0 6px;border-radius:6px;background:#fff;color:var(--fg);font-weight:600;opacity:0;animation:bmx-slot 6s infinite}
.bmx-bar>.bmx-slot::before{background:var(--yellow)}
.bmx-page{position:absolute;inset:92px 0 0;padding:14px 24px;background:#F7F7F9}
.bmx-page>b{display:block;font-size:12px}
.bmx-btn,.bmx-ghost{position:absolute;display:flex;align-items:center;height:24px;padding:0 12px;border:1.5px dashed #06111F;border-radius:8px;background:var(--yellow);color:#06111F;font-weight:700;white-space:nowrap}
.bmx-btn{left:24px;top:62px}
.bmx-hint{position:absolute;left:24px;top:94px;color:#8A8A94}
.bmx-label{position:absolute;right:10px;top:100px;padding:4px 9px;border-radius:999px;background:var(--yellow);color:#06111F;font-weight:700;font-size:10.5px}
.bmx-ghost{left:24px;top:154px;opacity:0;box-shadow:0 8px 18px rgba(6,17,31,.25);animation:bmx-ghost 6s infinite}
.bmx-cur{position:absolute;left:88px;top:164px;width:16px;height:20px;opacity:0;animation:bmx-cur 6s infinite;filter:drop-shadow(0 1px 1px rgba(0,0,0,.25))}
@container (max-width:340px){.bmx-label{display:none}}
@keyframes bmx-ghost{
  0%,14%{opacity:0;transform:none}
  20%{opacity:.95;transform:translate(0,-4px) rotate(-2deg)}
  50%{opacity:.95;transform:translate(110px,-88px) rotate(-2deg)}
  56%,100%{opacity:0;transform:translate(110px,-88px) scale(.9)}
}
@keyframes bmx-cur{
  0%{opacity:0;transform:translate(14px,18px)}
  8%{opacity:1;transform:none}
  12%{opacity:1;transform:scale(.85)}
  20%{opacity:1;transform:translate(0,-4px)}
  50%,64%{opacity:1;transform:translate(110px,-88px)}
  74%,100%{opacity:0;transform:translate(110px,-88px)}
}
@keyframes bmx-slot{
  0%,52%{opacity:0;box-shadow:none}
  58%{opacity:1;box-shadow:0 0 0 3px rgba(246,202,47,.55)}
  72%,94%{opacity:1;box-shadow:none}
  100%{opacity:0}
}
@media (prefers-reduced-motion:reduce){
  .bmx-ghost,.bmx-cur{display:none}
  .bmx-bar>.bmx-slot{animation:none;opacity:1}
}
.guide kbd{display:inline-block;min-width:24px;padding:1px 7px;border:1px solid var(--sep);border-bottom-width:2px;border-radius:6px;background:#fff;color:#0B1220;font-family:inherit;font-size:12px;font-weight:600;line-height:1.4;text-align:center}
/* the cabinet's button as it looks there: yellow, dashed, with a grip */
.rg-chip{display:inline-flex;align-items:center;gap:6px;padding:2px 10px 2px 8px;border:1.5px dashed #06111F;border-radius:8px;background:#F6CA2F;color:#06111F;font-size:.92em;font-weight:700;white-space:nowrap}
.rg-chip::before{content:"";width:8px;height:12px;background:radial-gradient(circle,#06111F 1.2px,transparent 1.6px) 0 0/4px 4px;opacity:.75}
.rg-auto-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);gap:clamp(32px,5vw,72px);align-items:start}
.rg-bmx{position:sticky;top:120px}
@media (max-width:900px){.rg-auto-top{grid-template-columns:minmax(0,1fr)}.rg-bmx{position:static;max-width:480px}}
