/* The app's window and the TV of home.css, taken by v2.phone_css(): not edited here. */
/* 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}
.win-hero .stage{--s:min(10px,calc((100vw - 5rem)/102.4));height:auto;margin-top:3rem;padding-bottom:clamp(1.5rem,4vw,3.5rem)}
@media (max-width:63.99em){
  .win{width:67.6em}
  .win-loc{display:none}
  .win-hero .stage{--s:min(10px,calc((100vw - 3.5rem)/67.6));height:auto}
}
@media (max-width:39.99em){
  .win{width:44em}
  .win-side{display:none}
  .win-body{height:60em}
  .win .ap-pow{margin-top:4em}
  .win-hero .stage{--s:min(10px,calc((100vw - 2.5rem)/44));height:auto;margin-top:2.25rem}
}
@media (min-width:54em) and (min-height:42em){
  .win-hero .hero-panel{min-height:0;display:block}
}

/* the app on a TV (/app/tv/, v2.tv_app): the window above without its bar in a TV's frame on a stand, «Все
   приложения» under the button, the white ring of the remote's choice (tv.dart) on the button */
.tvset{position:relative;width:fit-content;margin:0 auto 4.2em;padding:1em;border-radius:1.5em;background:#0B0B0D;box-shadow:0 0 0 .1em #3A3A40,0 3em 6em -2.5em rgba(0,0,0,.5);font-size:var(--s,10px)}
.tvset::before{content:"";position:absolute;left:50%;top:100%;width:7em;height:2.6em;margin-left:-3.5em;background:#1A1A1E}
.tvset::after{content:"";position:absolute;left:50%;top:calc(100% + 2.6em);width:30em;height:1em;margin-left:-15em;border-radius:.5em .5em .2em .2em;background:#0B0B0D;box-shadow:0 0 0 .1em #3A3A40}
.tvset .win{border-radius:.5em;box-shadow:none}
.tvapp .win-body{height:57.6em}
.tvapp .ap-pow{margin-top:5.5em}
.tvapp .ap-btn{box-shadow:0 0 0 .45em var(--app-bg),0 0 0 .75em var(--app-ink)}
.tvapp-all{display:flex;align-items:center;gap:.8em;align-self:stretch;margin-top:auto;padding:1.15em 1.3em;border-radius:1.3em;background:var(--app-card);font-size:1.3em;font-weight:600}
.tvapp-all svg{width:1.3em;height:1.3em;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tvapp-all .ap-chev{margin-left:auto;color:var(--app-mute)}
.tv-hero .stage{--s:min(9px,calc((100vw - 5rem)/104.4))}
.tv-addr{display:grid;gap:.3rem;width:fit-content;max-width:100%;margin:1.5rem auto 0;padding:1rem 1.4rem;border-radius:var(--r-md);background:var(--soft);text-align:center}
.tv-addr span,.tv-addr small{font-size:.875rem;color:var(--mute)}
.tv-addr b{font:700 clamp(1.6rem,1.1rem + 2vw,2.4rem)/1.1 var(--display);letter-spacing:-.02em;color:var(--ink)}
.tv-hero .tv-addr+.cta{margin-top:1.25rem}
.tv-alt h3{font-size:1.1875rem}
.tv-alt>p{margin-top:.35rem;color:var(--mute);font-size:.9375rem;line-height:1.45}
.tv-alt ol{display:grid;gap:.75rem;margin:1.1rem 0 1.4rem}
.tv-alt li{display:flex;gap:.8rem;font-size:.9375rem;line-height:1.45}
.tv-alt li>i{display:grid;place-items:center;width:1.75rem;height:1.75rem;flex:none;border-radius:50%;background:var(--surface);font:600 .875rem/1 var(--text);font-style:normal}
/* a TV stays 16:9 on any screen: the narrower layouts of the window above are a computer's and a phone's */
@media (max-width:63.99em){
  .tvapp.win{width:102.4em}
  .tvapp .win-loc{display:flex}
  .tv-hero .stage{--s:min(9px,calc((100vw - 3.5rem)/104.4))}
}
@media (max-width:39.99em){
  .tvapp .win-side{display:flex}
  .tvapp .win-body{height:57.6em}
  .tv-hero .stage{--s:calc((100vw - 2.5rem)/104.4)}
  .tv-hero .tv-addr{margin-inline:0;text-align:left}
}
