/* The phone mock-up of the site (home.css of the landing), taken by site_ui.py: not edited here. */
/* ---------- phone mockup: sizes in em of the phone's own font-size (--s), so one number scales it ----------
   The screens are MYAF 0.9.3 in the app's own colours (ui.dart): the island with the time and the
   system's glyphs on its line, the white bottom menu with the open tab on a yellow pill. */
.ph{position:relative;width:28em;height:59em;flex:none;padding:.8em;border-radius:4.4em;font-size:var(--s,10px);line-height:1.2;text-align:left;font-family:var(--text);color:var(--app-ink);background:#0B0B0D;box-shadow:inset 0 0 0 .1em #3A3A40,inset 0 0 0 .22em #151517,0 3.2em 5em -2.2em rgba(11,11,15,.5),0 1.2em 2.2em -1.2em rgba(11,11,15,.35)}
.ph-scr{position:relative;display:flex;flex-direction:column;height:100%;overflow:hidden;border-radius:3.6em;background:var(--app-bg)}
.ph-cam{position:absolute;top:.85em;left:50%;z-index:3;width:7.8em;height:2.3em;margin-left:-3.9em;border-radius:1.15em;background:#000 radial-gradient(circle at 79% 50%,#16161C 0 .3em,transparent .34em)}
.ph-bar{display:flex;align-items:center;justify-content:space-between;height:4em;padding:0 2em 0 2.7em;flex:none}
.ph-bar b{font-size:1.3em;font-weight:600;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.ph-sys{display:flex;align-items:center;gap:.5em}
.ph-sys svg{width:auto;height:1.15em;flex:none;fill:currentColor;stroke:none}
.ph-sys .l{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.ph-sys .l.w{stroke-width:2}
.ph-sys .o{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;opacity:.45}
.ph-ind{position:absolute;left:50%;bottom:.6em;z-index:3;width:9em;height:.36em;margin-left:-4.5em;border-radius:.2em;background:var(--app-ink);opacity:.8}
.ap-top{display:flex;align-items:center;gap:.6em;padding:.7em 1.7em 0}
.ap-top svg{width:2.4em;height:1.9em;flex:none;fill:currentColor}
.ap-top b{font:800 1.5em/1 var(--logo);letter-spacing:-.01em}
.ap-pow{position:relative;display:grid;place-items:center;height:18em;margin-top:3.2em;flex:none}
.ap-ring{position:absolute;left:50%;top:50%;border-radius:50%;box-shadow:inset 0 0 0 .1em var(--yellow);opacity:.4}
.ap-ring.r1{width:12.6em;height:12.6em;margin:-6.3em}
.ap-ring.r2{width:14.6em;height:14.6em;margin:-7.3em;opacity:.24}
.ap-ring.r3{width:16.8em;height:16.8em;margin:-8.4em;opacity:.12}
.ap-btn{position:relative;display:grid;place-items:center;width:11em;height:11em;border-radius:50%;background:var(--yellow);color:#0B0B0F}
.ap-btn svg{width:4.1em;height:4.1em;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.ap-tap{position:absolute;left:50%;top:50%;width:4.4em;height:4.4em;margin:1em 0 0 1.4em;border-radius:50%;background:var(--app-ink);opacity:0}
.ap-state,.ap-hint{display:grid;justify-items:center;text-align:center}
.ap-state>*,.ap-hint>*{grid-area:1/1}
.ap-state{margin-top:.5em;font:700 2.1em/1.1 var(--display);letter-spacing:-.03em}
.ap-hint{margin-top:.5em;font-size:1.2em;color:var(--app-mute);font-variant-numeric:tabular-nums}
.s-off,.s-wait{opacity:0}
.ap-cards{display:grid;gap:.7em;margin-top:auto;padding:0 1.1em 1em}
.ap-card{display:flex;align-items:center;gap:.9em;min-height:5.2em;padding:.8em 1em;border-radius:1.5em;background:var(--app-card)}
.ap-card small,.ap-rows small,.ap-me small,.ap-steps small{display:block;font-size:1em;line-height:1.3;color:var(--app-mute)}
.ap-card b{display:block;margin-top:.1em;font-size:1.3em;font-weight:600;letter-spacing:-.015em}
.ap-card small,.ap-card b{white-space:nowrap}
.ap-t{flex:1;min-width:0}
.ap-ic{position:relative;display:grid;place-items:center;width:3em;height:3em;flex:none;border-radius:.9em;background:var(--app-bg);overflow:hidden}
.ap-ic svg{width:1.7em;height:1.7em;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ap-ic .flag{width:1.9em;height:1.9em;stroke:none;box-shadow:none}
.ap-meta{font-size:.95em;line-height:1.35;text-align:right;color:var(--app-mute)}
.ap-chev{width:1.5em;height:1.5em;flex:none;fill:none;stroke:var(--app-mute);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ap-renew{flex:none;padding:.7em .95em;border-radius:1em;background:var(--app-bg);font-size:1.1em;font-weight:600}
.ap-sw{position:relative;width:3.7em;height:2.2em;flex:none;border-radius:1.1em;background:var(--yellow)}
.ap-sw::after{content:"";position:absolute;top:.3em;right:.3em;width:1.6em;height:1.6em;border-radius:50%;background:#0B0B0F}
/* the bottom menu */
.ap-nav{display:flex;padding:.8em .6em 1.7em;background:var(--app-card);flex:none}
.ap-nav span{flex:1;display:grid;justify-items:center;gap:.35em;font-size:.95em;font-weight:500;color:var(--app-mute)}
.ap-nav i{display:grid;place-items:center;width:5.4em;height:2.5em;border-radius:1.25em}
.ap-nav svg{width:1.85em;height:1.85em;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ap-nav .on{font-weight:700;color:var(--app-ink)}
.ap-nav .on i{background:var(--app-pill);color:var(--app-pill-ink)}
.ap-nav .on svg{fill:currentColor}
.ap-nav .on .q{stroke:var(--app-cut);stroke-width:2}
/* other screens */
.ap-h{display:flex;align-items:center;gap:.9em;padding:.9em 1.7em .9em}
.ap-h b{font:700 2em/1 var(--display);letter-spacing:-.03em}
.ap-back{width:2em;height:2em;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ap-search{display:flex;align-items:center;gap:.7em;margin:0 1.1em;padding:0 1.1em;height:3.7em;flex:none;border-radius:1.3em;background:var(--app-card);box-shadow:inset 0 0 0 .1em var(--app-line);color:var(--app-mute)}
.ap-search svg{width:1.6em;height:1.6em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.ap-search span{font-size:1.2em}
.ap-sec{display:block;margin:1.3em 1.5em .6em;font-size:.9em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--app-mute)}
.ap-list,.ap-rows,.ap-steps{display:grid;margin:0 1.1em;flex:none;border-radius:1.5em;background:var(--app-card)}
.ap-list li{display:flex;align-items:center;gap:.9em;min-height:4.4em;padding:.5em 1em .5em .8em;border-top:.1em solid var(--app-line)}
.ap-list li:first-child,.ap-rows li:first-child{border-top:0}
.ap-list li.on{border-radius:1.5em 1.5em 0 0;background:var(--app-tint)}
.ap-list b{flex:1;min-width:0;font-size:1.25em;font-weight:500;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ap-list li.on b{font-weight:700}
.ap-list small{font-size:1.05em;font-weight:600;color:var(--app-ok);font-variant-numeric:tabular-nums}
.ap-list .ap-ic{width:2.8em;height:2.8em}
.ap-ok{display:grid;place-items:center;width:1.5em;height:1.5em;flex:none;border-radius:50%;background:var(--app-ok);color:var(--app-card)}
.ap-ok svg{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.ap-me{display:flex;align-items:center;gap:1em;margin:0 1.1em;padding:1em;flex:none;border-radius:1.5em;background:var(--app-card)}
.ap-me i{display:grid;place-items:center;width:3.8em;height:3.8em;flex:none;border-radius:50%;background:var(--yellow);color:#0B0B0F}
.ap-me i svg{width:2em;height:2em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ap-me b{display:block;font-size:1.35em;font-weight:600;letter-spacing:-.015em}
.ph .sp{flex:1}
.ap-rows li{display:flex;align-items:center;gap:1em;min-height:4.7em;padding:.75em 1em;border-top:.1em solid var(--app-line)}
.ap-rows li>svg:first-child{width:1.8em;height:1.8em;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ap-rows b,.ap-steps b{display:block;font-size:1.2em;font-weight:500;letter-spacing:-.01em}
.ap-steps{gap:.9em;padding:1.1em 1em}
.ap-steps li{display:flex;align-items:flex-start;gap:.9em}
.ap-steps i{display:grid;place-items:center;width:2em;height:2em;flex:none;border-radius:50%;background:var(--yellow);color:#0B0B0F;font-size:1em;font-weight:700;font-style:normal}
.ap-steps b{font-weight:600}

/* the live phone: off, a tap, connecting, connected; the cards around it come up once it is on.
   Without animation (the device asks for none, or no .live) it simply shows «Подключено». */
.fl{position:absolute;z-index:4;display:flex;align-items:center;gap:.65rem;padding:.6rem .95rem .6rem .6rem;border-radius:1.3rem;background:var(--raised);color:var(--ink);box-shadow:var(--shadow-2);font-size:.8125rem;line-height:1.25;white-space:nowrap;text-align:left}
.fl b{display:block;font-size:.9375rem;font-weight:600;letter-spacing:-.01em}
.fl small{color:var(--mute)}
.fl-ic{display:grid;place-items:center;width:2.5rem;height:2.5rem;flex:none;border-radius:50%;background:var(--p2);color:var(--on-p)}
.fl-ic .ic{width:1.3rem;height:1.3rem}
.fl-ic.ok{background:var(--p3);color:var(--p-ok)}
.fl .flag{width:2.5rem;height:2.5rem}
.stage .fl.f1{right:calc(50% + 8.5*var(--s));top:calc(10.5*var(--s))}
.stage .fl.f2{left:calc(50% + 8.5*var(--s));top:calc(19.5*var(--s))}
.stage .fl.f3{right:calc(50% + 8*var(--s));top:calc(29.6*var(--s))}
/* in the app page's tile the cards are smaller; where the tile is too narrow for them beside the phone
   they hold to the tile's edges, clear of the button, or go */
.app-art .fl{padding:.45rem .8rem .45rem .45rem;border-radius:1.1rem;font-size:.75rem}
.app-art .fl b{font-size:.8125rem}
.app-art .fl .flag,.app-art .fl-ic{width:2.1rem;height:2.1rem}
.app-art .fl.f1{right:calc(50% + 8*var(--s))}
.app-art .fl.f2{left:calc(50% + 8*var(--s))}
.app-art .fl.f3{display:none}
@media (min-width:54em) and (max-width:79.99em){
  .app-art .fl.f1{left:.5rem;right:auto;top:calc(8.5*var(--s))}
  .app-art .fl.f2{right:.5rem;left:auto;top:calc(23.5*var(--s))}
}
@media (max-width:37.49em){.app-art .fl{display:none}}
@media (prefers-reduced-motion:no-preference){
  .live .s-off{animation:s-off 11s infinite}
  .live .s-wait{animation:s-wait 11s infinite}
  .live .s-on{animation:s-on 11s infinite}
  .live .ap-btn{animation:pow 11s infinite}
  .live .ap-tap{animation:tap 11s infinite}
  .live .ap-ring{animation:ring 11s infinite}
  .live .ap-ring.r2{animation-name:ring2}
  .live .ap-ring.r3{animation-name:ring3}
  .live~.fl,.live-set .fl{animation:fl 11s infinite both}
  .live~.fl.f2,.live-set .fl.f2{animation-name:fl2}
  .live~.fl.f3,.live-set .fl.f3{animation-name:fl3}
}
@keyframes s-off{0%,13%{opacity:1}15%,100%{opacity:0}}
@keyframes s-wait{0%,13%{opacity:0}15%,29%{opacity:1}31%,100%{opacity:0}}
@keyframes s-on{0%,29%{opacity:0}32%,100%{opacity:1}}
@keyframes pow{0%,13%{background:var(--app-card);box-shadow:inset 0 0 0 .1em var(--app-line);color:var(--app-ink);transform:none}14%{transform:scale(.95)}16%,29%{background:var(--app-card);box-shadow:inset 0 0 0 .1em var(--app-line);color:var(--app-ink);transform:none}33%,100%{background:var(--yellow);box-shadow:none;color:#0B0B0F;transform:none}}
@keyframes tap{0%,9%{opacity:0;transform:scale(1.5)}12%{opacity:.22;transform:scale(1)}14%{opacity:.3;transform:scale(.8)}17%,100%{opacity:0;transform:scale(1.3)}}
@keyframes ring{0%,14%{opacity:0;transform:scale(.8)}18%{opacity:.6;transform:scale(1)}23%{opacity:.2;transform:scale(1.06)}28%{opacity:.6;transform:scale(1)}33%,100%{opacity:.4;transform:none}}
@keyframes ring2{0%,16%{opacity:0;transform:scale(.8)}20%{opacity:.4;transform:scale(1)}25%{opacity:.1;transform:scale(1.06)}30%{opacity:.4;transform:scale(1)}35%,100%{opacity:.24;transform:none}}
@keyframes ring3{0%,18%{opacity:0;transform:scale(.8)}22%{opacity:.24;transform:scale(1)}27%{opacity:.05;transform:scale(1.06)}32%{opacity:.24;transform:scale(1)}37%,100%{opacity:.12;transform:none}}
@keyframes fl{0%,33%{opacity:0;transform:translateY(.9rem) scale(.94)}38%,95%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-.4rem)}}
@keyframes fl2{0%,39%{opacity:0;transform:translateY(.9rem) scale(.94)}44%,95%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-.4rem)}}
@keyframes fl3{0%,45%{opacity:0;transform:translateY(.9rem) scale(.94)}50%,95%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-.4rem)}}
/* the app's window on Windows (desktop_shell.dart, desktop_home.dart): sizes in em of the window's own font-size
   (--s), the phone's parts (.ap-*) inside it keep their look and their motion */
.win{position:relative;width:102.4em;flex:none;overflow:hidden;border-radius:1.1em;font-size:var(--s,10px);line-height:1.2;text-align:left;font-family:var(--text);color:var(--app-ink);background:var(--app-bg);box-shadow:0 0 0 .1em rgba(11,11,15,.14),0 4em 7em -3em rgba(11,11,15,.45),0 1.4em 2.6em -1.4em rgba(11,11,15,.3)}
.win-bar{display:flex;align-items:center;justify-content:space-between;height:3.4em;padding-left:1.3em;background:var(--app-card);border-bottom:.1em solid var(--app-line)}
.win-t{display:flex;align-items:center;gap:.8em;font-size:1.2em}
.win-t svg{width:1.7em;height:1.35em;fill:currentColor}
.win-ctl{display:flex;height:100%}
.win-ctl i{position:relative;width:4.6em;height:100%}
.win-ctl i::before,.win-ctl i::after{content:"";position:absolute;left:50%;top:50%;background:currentColor}
.w-min::before{width:1em;height:.1em;margin:0 0 0 -.5em}
.w-max::before{width:1em;height:1em;margin:-.5em;background:none!important;box-shadow:inset 0 0 0 .1em currentColor}
.w-x::before,.w-x::after{width:1.3em;height:.1em;margin:0 0 0 -.65em;transform:rotate(45deg)}
.w-x::after{transform:rotate(-45deg)}
.win-body{display:flex;height:65.5em}
.win-side{display:flex;flex-direction:column;width:21.6em;flex:none;padding:1.2em;background:var(--app-card)}
.win-side .ap-top{padding:2.2em .9em 2em}
.win-menu{display:grid;gap:.5em}
.win-menu li{display:flex;align-items:center;gap:1.2em;height:4.2em;padding:0 1.3em;border-radius:1em}
.win-menu span{font-size:1.4em;font-weight:500}
.win-menu svg{width:2em;height:2em;flex:none;fill:none;stroke:var(--app-mute);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.win-menu .on{background:var(--app-pill);color:var(--app-pill-ink)}
.win-menu .on span{font-weight:700}
.win-menu .on svg{fill:currentColor;stroke:none}
.win-menu .on i{width:.8em;height:.8em;margin-left:auto;border-radius:50%;background:var(--app-ok)}
.win-acc{display:flex;align-items:center;gap:1em;margin-top:auto;padding:1em;border-radius:1.2em;background:var(--app-bg)}
.win-acc i{display:grid;place-items:center;width:3.2em;height:3.2em;flex:none;border-radius:50%;background:var(--yellow);color:#0B0B0F}
.win-acc i svg{width:1.8em;height:1.8em;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.win-acc b{display:block;font-size:1.3em;font-weight:600;white-space:nowrap}
.win-acc small{display:block;font-size:1.15em;color:var(--app-mute);white-space:nowrap}
.win-main{display:flex;flex-direction:column;align-items:center;flex:1;min-width:0;padding:0 1.6em 1.6em}
.win .ap-pow{width:100%;height:24em;margin-top:7.5em}
.win .ap-btn{width:15em;height:15em}
.win .ap-btn svg{width:5.4em;height:5.4em}
.win .ap-ring.r1{width:17.2em;height:17.2em;margin:-8.6em}
.win .ap-ring.r2{width:19.6em;height:19.6em;margin:-9.8em}
.win .ap-ring.r3{width:22.2em;height:22.2em;margin:-11.1em}
.win .ap-tap{margin:2em 0 0 2.4em}
.win-chip{display:inline-flex;align-items:center;gap:.6em;margin-top:1.1em;padding:.65em 1em .65em .75em;border-radius:1.5em;background:var(--app-card);font-size:1.4em;font-weight:600}
.win-chip svg{width:1.3em;height:1.3em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.win-seg{display:grid;grid-template-columns:1fr 1fr;gap:.4em;align-self:stretch;margin-top:auto;padding:.4em;border-radius:1.4em;background:var(--app-card)}
.win-seg span{display:flex;align-items:center;justify-content:center;gap:.6em;height:2.5em;border-radius:.8em;font-size:1.3em;font-weight:500;color:var(--app-mute);white-space:nowrap}
.win-seg .on{background:var(--app-bg);color:var(--app-ink);font-weight:700}
.win-seg svg{width:1.3em;height:1.3em;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.win-main .ap-card{align-self:stretch;margin-top:.8em}
.win-loc{display:flex;flex-direction:column;width:32.8em;flex:none;margin:3em 1.2em 0 0;padding:1.2em .9em 0;overflow:hidden;border-radius:1.8em 1.8em 0 0;background:var(--app-card)}
.win-loc-h{display:flex;align-items:center;padding:.5em .8em 1.1em}
.win-loc-h b{font:700 1.75em/1 var(--display);letter-spacing:-.03em}
.win-loc-h span{display:inline-flex;align-items:center;gap:.5em;margin-left:auto;font-size:1.3em;font-weight:600}
.win-loc-h svg{width:1.7em;height:1.7em;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.win-loc-h span svg{width:1.25em;height:1.25em}
.win-loc-h>svg{margin-left:1.4em;color:var(--app-mute)}
.win-loc .ap-search{margin:0 .3em;background:var(--app-bg)}
.win-loc .ap-sec{margin:1.4em .8em .5em}
.win-loc .ap-list{margin:0;border-radius:0;background:none}
.win-loc .ap-list li{min-height:4.5em;border-top:0;border-radius:1em}
.win-loc .ap-list li.on{border-radius:1em}
