/* Big screens, like Instagram and TikTok on the web: on any screen at least 768px wide (a computer, even with a
   tall window, or a tablet; phones are narrower), the
   bottom bar becomes a menu down the left edge (icons only, each name in a bubble on hover), the pages take the rest of
   the width, and Afiwa's video stands as a 9:16 column just right of the menu with the actions beside it. Phones
   are unchanged. */
@media (min-width:768px){
 :root{--side:76px;--nav-h:0px;--app:calc(100vw - var(--side));--app-left:var(--side);--app-right:0px;--col:min(calc((100dvh - 32px) * 9 / 16),calc(100vw - var(--side) - 220px))}
 :root body{max-width:none;margin:0 0 0 var(--side);box-shadow:none}

 /* The menu down the left edge. */
 :root body .reel-bar{--reel-bg:var(--paint-ink);--reel-line:#e3e3e3;--reel-ink:var(--paint-dark,#111111);top:12px;bottom:auto;left:8px;right:auto;width:calc(var(--side) - 16px);height:min(calc(var(--col) * 16 / 9),calc(100dvh - 32px));padding:16px 10px 18px;flex-direction:column;align-items:stretch;justify-content:center;gap:6px;border:1px solid var(--reel-line);border-radius:14px;box-shadow:0 18px 48px color-mix(in srgb,var(--paint-bg) 13.3%,transparent)}
 :root body .reel-bar>a,:root body .reel-bar>details>summary{width:100%;height:48px;border-radius:12px}
 :root body .reel-bar>a:hover,:root body .reel-bar>details>summary:hover{background:var(--paint-light,#f2f2f2)}
 :root body .reel-bar [data-tip]::after{left:calc(100% + 10px);bottom:auto;top:50%;translate:4px -50%}
 :root body .reel-bar [data-tip]:is(:hover,:focus-visible)::after{translate:0 -50%}
 :root body .reel-bar .ui-lang{align-self:center;margin-bottom:10px}
 :root body .reel-bar .lang-options{left:calc(100% + 8px);bottom:auto;top:0}
 :root body .reel-bar .header-profile nav{left:calc(100% + 8px);right:auto;bottom:auto;top:-8px}

 :root body .reel-bar>a,:root body .reel-bar>details>summary{text-decoration:none;color:inherit}

 /* Windows (Log in, My profile, a product...) keep the menu beside them, centred in the space left. */
 :root body.window-page .reel-bar{display:flex}

 /* Afiwa's video: a 9:16 column against the menu, 8px from it (as the menu is from the screen's edge), whatever the
    window's width: the body already starts at --side, just past the menu. */
 :root body.welcome-page main{width:var(--col);margin-inline:0;height:100dvh}
 :root body.welcome-page .guide-world{inset:12px 0 auto;height:auto;aspect-ratio:9/16;max-height:calc(100% - 32px);border-radius:14px;box-shadow:0 18px 48px color-mix(in srgb,var(--paint-bg) 46.7%,transparent)}

}

/* Match the sidebar controls to the cart and microphone discs. */
@media(min-width:768px){
 :root body .reel-bar{gap:14px}
 :root body .reel-bar>a,:root body .reel-bar>details>summary,:root body .reel-bar .lang-menu summary{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:var(--paint-light,#ececec);color:var(--paint-dark,#1c1c1c);box-shadow:0 3px 10px color-mix(in srgb,var(--paint-bg) 12.2%,transparent);margin-inline:auto;flex:none}
 :root body .reel-bar>a:hover,:root body .reel-bar>details>summary:hover,:root body .reel-bar .lang-menu summary:hover{background:#dedede}
 /* Where the person is: its disc in mustard, the icon white; the others stay gray. */
 :root body .reel-bar>a[aria-current]{background:#c8921e;color:var(--paint-ink);box-shadow:0 0 0 3px #c8921e40,0 3px 10px color-mix(in srgb,var(--paint-bg) 12.2%,transparent)}
 :root body .reel-bar>details{align-self:center}
 :root body .reel-bar .ui-lang{margin:0;align-self:center}
 :root body .reel-bar>a>svg,:root body .reel-bar>details>summary>svg{width:26px;height:26px}
 :root body .reel-bar .lang-menu summary{font-size:10px;gap:1px}
 :root body .reel-bar .lang-menu summary>svg{width:10px;height:10px}
 :root body .reel-bar .bar-avatar{width:28px;height:28px;font-size:15px}
}
/* The side menu bar on a computer: black, its edges too; its discs as before. */
@media(min-width:768px){
 :root body .reel-bar{--reel-bg:var(--paint-bg);--reel-line:var(--paint-bg);border:1px solid var(--paint-bg);box-shadow:0 18px 48px color-mix(in srgb,var(--paint-bg) 20%,transparent)}
}
/* The features are hidden until the list's button shows them (header.js, data-open): then their icons stand in the
   menu, from the band's bottom edge to the footer's top edge (--menu-top, --menu-height: base.html), in the middle of
   that height, scrolling when there are too many, each with its name beside it. The names stand on their own pane
   (.reel-names-pane): light gray, edged in the app's gray at its top, right and bottom, its left side plain and square,
   flush with the window's left edge, to the right of the icons, which it does not enclose. */
@media(min-width:768px){
 :root body .reel-bar[data-open] .reel-features{display:flex;flex-direction:column;gap:2px;position:fixed;z-index:45;left:8px;top:var(--menu-top,calc(12px + var(--list-top,60px) + 50px));bottom:auto;box-sizing:border-box;width:calc(var(--side) + 188px);height:var(--menu-height,calc(min(calc(var(--col) * 16 / 9),calc(100dvh - 32px)) - var(--list-top,60px) - 164px));max-height:none;overflow:hidden auto;overscroll-behavior:contain;scrollbar-width:none;padding:11px 11px 11px 0;border:0;border-radius:0;background:none;box-shadow:none}  /* no edge or ground of its own: the names' pane has them */
 :root body .reel-bar .reel-features::-webkit-scrollbar{display:none}
 :root body .reel-bar .reel-features .reel-icon{margin:4px 14px}
 :root body .reel-bar[data-open] .reel-features .reel-name{margin-left:16px}
 :root body .reel-bar[data-open] .reel-names-pane{display:block;position:fixed;z-index:44;left:var(--side);top:var(--menu-top,calc(12px + var(--list-top,60px) + 50px));box-sizing:border-box;width:196px;height:var(--menu-height,calc(min(calc(var(--col) * 16 / 9),calc(100dvh - 32px)) - var(--list-top,60px) - 164px));border:3px solid #7f868f;border-left:0;border-radius:0 14px 14px 0;background:#e9eaeb;box-shadow:0 18px 48px color-mix(in srgb,var(--paint-bg) 40%,transparent)}  /* no edge at its left, its left corners square: it joins the menu and the window there */
}
/* Home stays at the top, level with byVoice's logo in the window's header, and the list's button under it, level with
   the window's band (--home-top, --list-top: base.html measures them); the features' icons, when shown, stand under both. */
@media(min-width:768px){
 :root body .reel-bar{justify-content:center;padding-top:calc(var(--list-top,60px) + 50px)}
 :root body:not(#none) .reel-bar>.reel-home{position:absolute;top:var(--home-top,20px);left:50%;translate:-50% 0;margin:0}
 :root body:not(#none) .reel-bar>.reel-list{position:absolute;top:var(--list-top,72px);left:50%;translate:-50% 0;display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;box-shadow:0 3px 10px color-mix(in srgb,var(--paint-bg) 12.2%,transparent)}
 :root body .reel-bar>.reel-list>svg{width:26px;height:26px}
 :root body:not(#none) .reel-bar>.reel-list.reel-apps{top:calc(var(--list-top,72px) + 52px)}  /* the App store's button, under the Agent store's */
}
/* The names' bubbles open over the white window: dark, with a soft shadow, so they stand out on it. */
@media(min-width:768px){
 :root body .reel-bar [data-tip]::after{z-index:50;background:var(--paint-dark,#1c1c1c);color:var(--paint-ink);box-shadow:0 4px 12px color-mix(in srgb,var(--paint-bg) 33.3%,transparent)}
}
/* On the windows' pages (Log in, My profile, Plans…) the profile's button stands at the menu's bottom, where the
   microphone is on the home page, clear of the features' icons; its menu opens beside it, upward. */
@media(min-width:768px){
 :root body .reel-bar>details.header-profile{position:absolute;left:50%;bottom:18px;translate:-50% 0}
 :root body .reel-bar>details.header-profile nav{top:auto;bottom:-8px}
}
/* Contact us at the menu's bottom, level with the window's footer (--contact-top: base.html measures the footer's
   middle); on the windows' pages, which have no footer, at the very bottom, the profile's button just above it. */
@media(min-width:768px){
 :root body:not(#none) .reel-bar>.reel-contact{position:absolute;left:50%;top:var(--contact-top,auto);bottom:18px;height:40px;translate:-50% 0;margin:0}
 :root body:not(#none) .reel-bar>.reel-contact:hover{background:#5e646c}
 :root body .reel-bar>details.header-profile{bottom:68px}
}
/* The menu on a computer: its edge white, all round; its inside black. Its buttons' discs are white, their icons black; a light red under the pointer.
   Contact us, on its page, is ringed in that red. On a phone the bar and its buttons stay black and gray (site.css). */
@media(min-width:768px){
 :root body .reel-bar{--reel-bg:var(--paint-bg);border:2px solid var(--paint-line)}
 :root body:not(#none) .reel-bar>.reel-home,:root body:not(#none) .reel-bar>.reel-home[aria-current],:root body:not(#none) .reel-bar>.reel-list,:root body:not(#none) .reel-bar>.reel-contact,:root body:not(#none) .reel-bar>.reel-contact[aria-current]{background:var(--paint-ink);color:var(--paint-bg);box-shadow:0 2px 6px color-mix(in srgb,var(--paint-bg) 20%,transparent)}
 :root body:not(#none) .reel-bar>.reel-home:is(:hover,:focus-visible),:root body:not(#none) .reel-bar>.reel-list:is(:hover,[aria-expanded=true]),:root body:not(#none) .reel-bar>.reel-contact:hover{background:#f6bcbc}
 :root body:not(#none) .reel-bar>.reel-contact[aria-current],:root body:not(#none) .reel-bar>.reel-list[aria-current]{box-shadow:0 0 0 2px var(--reel-bg),0 0 0 4px #d62828}
}

/* On a computer the window is a regular web page, not a phone-shaped column: it takes the width left beside the
   menu, and the height, for byVoice's own page and for every company's (a company's website brought in shows at
   close to its own size). The header, the band and the footer stretch with it; a feature's page and a home page
   made of cards keep a readable width, centred. The phone-shaped format is only for phones. */
@media (min-width:768px){
 :root{--col:calc(100vw - var(--side) - 12px)}
 :root body.welcome-page .guide-world{aspect-ratio:auto;height:calc(100% - 32px)}
 :root body.welcome-page:not(#none):not(#none):not(#none) .feature-page:not(.home-front){padding-inline:max(18px,calc((100% - 680px) / 2))}
 :root body.welcome-page:not(#none):not(#none):not(#none) .feature-page:not(.home-front):has(.page-edit){padding-inline:max(18px,calc((100% - 1080px) / 2))}  /* My page: wider, its cards two abreast */
 :root body.welcome-page:not(#none):not(#none):not(#none) .feature-page.home-front:not(.is-frame){padding-inline:max(12px,calc((100% - 760px) / 2))}
}
/* My page in the wide window: its cards two abreast. */
@media (min-width:1100px){
 :root body.welcome-page:not(#none):not(#none) .feature-page .page-top{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;align-items:start}
 :root body.welcome-page:not(#none):not(#none) .feature-page .page-top>:only-child{grid-column:1/-1}
 :root body.welcome-page:not(#none):not(#none) .feature-page .page-main{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;align-items:start}
 :root body.welcome-page:not(#none):not(#none) .feature-page .page-main .page-save-bar{grid-column:1/-1}
}
/* byVoice's own header in the wide window: its two lines at a size fit for a web page, not for a phone's width. */
@media (min-width:1000px){
 :root body.welcome-page:not(#none):not(#none):not(#none) .guide-world .afiwa-still .afiwa-still-main:not(.is-company) .afiwa-still-voice{font-size:13px;letter-spacing:.18em}
 :root body.welcome-page:not(#none):not(#none):not(#none) .guide-world .afiwa-still .afiwa-still-main:not(.is-company) .afiwa-still-title{font-size:30px}
}

/* byVoice's own home page: above Contact us, which is level with the window's footer when there is one (--voice-top, base.html), else at the menu's foot. */
@media (min-width:768px){
 :root body:not(#none) .reel-bar>.reel-voice{position:absolute;left:50%;top:var(--voice-top,auto);bottom:70px;height:40px;translate:-50% 0;margin:0}
}

/* The App store's button is the one under Home, now the Agent store's is gone from the menu. */
@media (min-width:768px){:root body:not(#none):not(#none) .reel-bar>.reel-list.reel-apps{top:var(--list-top,72px)}}

/* The profile's disc in the menu (on the pages that keep it there: Log in, the profile, Plans) stood where the wave's button now is, showing as a white disc under it. A visitor has none in the menu (every button leads them to Log in); someone signed in has it above the wave. */
:root body:not(#none):not(#none):not(#none):not(#none) .reel-bar>details.header-profile[data-visitor]{display:none}
@media (min-width:768px){:root body:not(#none) .reel-bar>details.header-profile{bottom:122px}}

/* The App store's button is in the middle of the menu's height. */
@media (min-width:768px){:root body:not(#none):not(#none):not(#none) .reel-bar>.reel-list.reel-apps{top:50%;translate:-50% -50%}}

/* The wave's button (byVoice's own home page) is first in the menu, at its very top; Home is under it. */
@media (min-width:768px){
 :root body:not(#none):not(#none) .reel-bar>.reel-voice{top:var(--home-top,20px);bottom:auto}
 :root body:not(#none):not(#none) .reel-bar>.reel-home{top:calc(var(--home-top,20px) + 52px)}
}
/* With the wave's button at the top, the profile's disc (on the pages that keep it in the menu) is back just above Contact us. */
@media (min-width:768px){:root body:not(#none):not(#none) .reel-bar>details.header-profile{bottom:70px}}

/* The profile is a button of the menu, on every page of someone signed in: at its foot, under Contact us, which stands just above it. Its list opens beside it. */
@media (min-width:768px){
 :root body:not(#none):not(#none):not(#none) .reel-bar>details.header-profile{position:absolute;left:50%;top:auto;bottom:18px;translate:-50% 0}
 :root body:not(#none):not(#none):not(#none) .reel-bar>.reel-contact{top:auto;bottom:70px}
 :root body:not(#none):not(#none) .reel-bar>details.header-profile nav{left:calc(100% + 8px);right:auto;top:auto;bottom:-8px}
}

/* A visitor's profile button (a person, to Log in) stands where the profile's does: at the menu's foot, under Contact us. */
@media (min-width:768px){:root body:not(#none):not(#none):not(#none) .reel-bar>.reel-login{position:absolute;left:50%;top:auto;bottom:18px;translate:-50% 0;margin:0}}

/* The owned apps stand under the App store's button, which is in the middle of the menu: one under the other, down to above Contact us (the list scrolls when there are many). */
@media (min-width:768px){
 :root body:not(#none) .reel-bar>.reel-own{position:absolute;left:0;right:0;top:calc(50% + 34px);bottom:128px;flex-direction:column;gap:12px;padding:4px 0;overflow-y:auto;scrollbar-width:none}
 :root body .reel-bar .reel-own [data-tip]::after{left:calc(100% - 4px)}
}

/* The App store's button is at the menu's foot, just above Contact us; the middle of the menu holds the apps the account owns, alone; the wave and Home stay at its top. */
@media (min-width:768px){
 :root body:not(#none):not(#none):not(#none):not(#none) .reel-bar>.reel-list.reel-apps{top:auto;bottom:122px;translate:-50% 0}
 :root body:not(#none):not(#none) .reel-bar>.reel-own{top:136px;bottom:176px;justify-content:center}
}

/* With the profile in the header, Contact us is last in the menu, and the App store's button just above it. */
@media (min-width:768px){
 :root body:not(#none):not(#none):not(#none):not(#none) .reel-bar>.reel-contact{top:auto;bottom:18px}
 :root body:not(#none):not(#none):not(#none):not(#none):not(#none) .reel-bar>.reel-list.reel-apps{top:auto;bottom:70px;translate:-50% 0}
 :root body:not(#none):not(#none):not(#none) .reel-bar>.reel-own{bottom:124px}
}
/* The menu's order: Home at the top, Contact us right under it, the account's app (its assistant's logo) in the middle, from top to bottom. */
@media (min-width:768px){
 :root body:not(#none):not(#none):not(#none):not(#none):not(#none):not(#none) .reel-bar>.reel-contact{top:calc(var(--home-top,20px) + 52px);bottom:auto}
 :root body:not(#none):not(#none):not(#none):not(#none):not(#none):not(#none) .reel-bar>.reel-own{top:50%;bottom:auto;translate:0 -50%;justify-content:center;overflow:visible}
}
/* The arrow at the menu's foot (computers): it opens the menu wider, each button's name beside it, the page moving over to make room; pressed again, the menu is narrow again. */
.reel-expand{display:none}
@media (min-width:768px){
 :root body:not(#none):not(#none) .reel-bar>.reel-expand{position:absolute;left:50%;bottom:16px;translate:-50% 0;display:grid;place-items:center;width:32px;height:32px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--paint-ink);cursor:pointer;box-shadow:none}
 :root body:not(#none):not(#none) .reel-bar>.reel-expand:hover{background:color-mix(in srgb,var(--paint-ink) 12.2%,transparent)}
 .reel-expand svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
 html.menu-open .reel-expand svg{transform:rotate(180deg)}
 html.menu-open{--side:var(--side-open,212px)}
 html.menu-open body:not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none) .reel-bar>:is(.reel-voice,.reel-contact){left:18px;translate:0 0}
 html.menu-open body:not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none) .reel-bar>.reel-own{align-items:flex-start;padding-left:18px}
 html.menu-open body:not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none) .reel-bar>.reel-expand{left:auto;right:12px;translate:0 0}
 html.menu-open .reel-bar :is(.reel-voice,.reel-contact,.reel-app)::before{content:attr(data-tip);position:absolute;left:calc(100% + 12px);top:50%;translate:0 -50%;color:var(--paint-ink);font:600 14px/1.2 system-ui,sans-serif;white-space:nowrap;max-width:220px;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
 html.menu-open .reel-bar [data-tip]::after{display:none}
}
/* Contact us at the menu's foot, right above the arrow. */
@media (min-width:768px){:root body:not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none) .reel-bar>.reel-contact{top:auto;bottom:58px}}
/* Opened, the menu's buttons and its arrow stay exactly where they were; only the names appear beside them. */
@media (min-width:768px){
 html.menu-open body:not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none) .reel-bar>.reel-expand{left:28px;right:auto;translate:-50% 0}
 html.menu-open body:not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none) .reel-bar>:is(.reel-voice,.reel-contact){left:28px;translate:-50% 0}
 html.menu-open body:not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none) .reel-bar>.reel-own{padding-left:8px}
}
/* A button's name, shown as the mouse is over it, starts right at the circle's right edge, attached to it, for every button alike. */
@media (min-width:768px){
 :root body:not(#none):not(#none):not(#none):not(#none) .reel-bar [data-tip]::after,:root body:not(#none):not(#none):not(#none):not(#none) .reel-bar .reel-own [data-tip]::after{left:100%;right:auto;top:50%;bottom:auto;translate:0 -50%;margin-left:0;border-radius:0 7px 7px 0}
 :root body:not(#none):not(#none):not(#none):not(#none) .reel-bar [data-tip]:is(:hover,:focus-visible)::after{translate:0 -50%}
}
/* The menu's order: Home at the top with Contact right under it; the account's app at the foot, right above the arrow. */
@media (min-width:768px){
 :root body:not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none) .reel-bar>.reel-contact{top:calc(var(--home-top,20px) + 52px);bottom:auto}
 :root body:not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none) .reel-bar>.reel-own{top:auto;bottom:58px;translate:0 0;justify-content:flex-end}
}
/* The menu's order: the arrow at the very top, then Home and Contact; the account's app alone at the very bottom. */
@media (min-width:768px){
 :root body:not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none) .reel-bar>.reel-expand{top:14px;bottom:auto}
 :root body:not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none) .reel-bar>.reel-voice{top:76px;bottom:auto}
 :root body:not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none) .reel-bar>.reel-contact{top:128px;bottom:auto}
 :root body:not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none):not(#none) .reel-bar>.reel-own{top:auto;bottom:18px}
}
/* The menu's white line, level with the header's (1 pixel, its bottom 80 pixels from the window's top), across the menu between the arrow and the buttons. */
.reel-rule{display:none}
@media (min-width:768px){:root body:not(#none):not(#none) .reel-bar>.reel-rule{position:absolute;left:0;right:0;top:65px;height:1px;display:block;background:var(--paint-line);pointer-events:none}}
