/* Android 6.0.1 home screen and apps drawer (mm-launcher.js, mm-drawer.js), in dp: Launcher3's DeviceProfile computed in
   pixels at 420 dpi (2.625 px a dp) and written as dp; the launcher's area is the screen between the status bar and the
   navigation bar (LauncherRootView fitsSystemWindows), 1080 x 1731 px. */
/* The wallpaper behind the launcher, the keyguard and the bars: framework default_wallpaper scaled to the screen's height,
   at the launcher's wallpaper offset 0 (its left edge). */
.screen.view-home,.screen.view-drawer,.screen.view-widgets{background:#000 var(--mm-wallpaper,url('assets/fw-default_wallpaper.jpg')) left top/auto 100% no-repeat}
.screen.view-home .mmnb,.screen.view-drawer .mmnb,.screen.view-widgets .mmnb{background:transparent}
/* The launcher window draws under the see-through bars, so what dims it dims them too: the first-run cling's #80000000
   scrim, and the shade's behind scrim (--mm-bar-dim, set by mm-shade.js while it follows the finger). */
.screen:has(.mmh-cling) .mmsb{background:rgba(0,0,0,.5)!important}
.screen.view-home:has(.mmh-cling) .mmnb{background:rgba(0,0,0,.5)}
.screen:is(.view-home,.view-drawer,.view-widgets,.view-recents) .mmnb{transition:background-color .3s linear}
.screen:is(.view-home,.view-drawer,.view-widgets,.view-recents):has(#overlay-root .mmsh) .mmnb{background:rgba(0,0,0,var(--mm-bar-dim,.62))}
.screen.bar-drag .mmnb{transition:none!important}
.mmh{position:absolute;inset:0;overflow:hidden;font-family:Roboto,sans-serif;line-height:1.172;touch-action:pan-y;user-select:none}
/* The pages: the Now page (custom content) left of the workspace pages, moved as a strip. */
.mmh-strip{position:absolute;inset:0;display:flex;transform:translateX(calc(var(--page) * -100%));transition:transform .35s cubic-bezier(.2,.8,.3,1)}
.mmh-nowpage,.mmh-page{position:relative;flex:none;width:100%;height:100%}
.mmh-nowpage .mm-missing{position:absolute;inset:0}
.mmh-page{left:0}
/* A workspace cell: 211.6 x 253.4 px from (11, 179) px. */
.mmh-cell{position:absolute;width:calc(80.610 * var(--dp));height:var(--cellh,calc(96.533 * var(--dp)));margin:calc(68.190 * var(--dp)) 0 0 calc(4.190 * var(--dp))}
.mmh-hs{position:absolute;top:0;width:calc(77.410 * var(--dp));height:100%}
/* BubbleTextView: the 168 px icon 11 px down (the cell's padding), the 38 px label 11 px under it with its shadows. */
.mmh-icon{position:absolute;inset:0;padding:0;border:0;background:none;color:#fff;font:calc(14.476 * var(--dp))/1.342 Roboto,sans-serif;-webkit-tap-highlight-color:transparent}
.mmh-icon>img{position:absolute;left:50%;top:var(--cellpad,calc(4.190 * var(--dp)));width:calc(64 * var(--dp));height:calc(64 * var(--dp));margin-left:calc(-32 * var(--dp))}
.mmh-icon>span{position:absolute;left:calc(3.048 * var(--dp));right:calc(3.048 * var(--dp));top:calc(var(--cellpad,calc(4.190 * var(--dp))) + 68.190 * var(--dp));white-space:nowrap;overflow:hidden;text-overflow:clip;text-align:center;text-shadow:0 calc(.762 * var(--dp)) calc(1.524 * var(--dp)) rgba(0,0,0,.867),0 0 calc(.667 * var(--dp)) rgba(0,0,0,.8)}
.mmh-icon.ws>span{-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent)}
.mmh-icon:active>img,.mmh-icon:active>.mmh-ring{filter:brightness(.8)}
/* The hotseat: 232 px at the bottom, its CellLayout 32 px in at each side, the icons centred, no labels. */
.mmh-hotseat{position:absolute;left:0;right:0;bottom:0;height:calc(88.381 * var(--dp))}
.mmh-icon.hs>img{top:calc(12.190 * var(--dp))}
.mmh-icon.hs>span{display:none}
.mmh-allapps{position:absolute;left:50%;top:50%;width:calc(46.476 * var(--dp));height:calc(46.476 * var(--dp));margin:calc(-23.238 * var(--dp)) 0 0 calc(-23.238 * var(--dp));padding:0;border:0;background:url('assets/gel-ic_allapps.png') center/100% no-repeat;-webkit-tap-highlight-color:transparent}
.mmh-allapps:active{background-image:url('assets/gel-ic_allapps_pressed.png')}
/* FolderIcon: portal_ring_inner 200 px, 5 px above the icon's place; the preview items over it; the label as an icon's. */
.mmh-ring{position:absolute;left:50%;top:calc(-1.905 * var(--dp));width:calc(76.190 * var(--dp));height:calc(76.190 * var(--dp));margin-left:calc(-38.095 * var(--dp));background:url('assets/gel-portal_ring_inner.png') center/100% no-repeat}
.mmh-fi{position:absolute}
.mmh-fi img{width:100%;height:100%;display:block;filter:brightness(calc(1 - var(--shade)))}
/* The page indicator: ic_pageindicator markers (12 dp) above the hotseat, shown while the pages move. */
.mmh-dots{position:absolute;left:0;right:0;bottom:calc(88.381 * var(--dp));height:calc(20.190 * var(--dp));display:flex;justify-content:center;align-items:center;opacity:0;transition:opacity .3s}
.mmh.scrolling .mmh-dots{opacity:1}
.mmh-dots i{width:calc(12 * var(--dp));height:calc(12 * var(--dp));background:url('assets/gel-ic_pageindicator_default.png') center/100% no-repeat}
.mmh-dots i.on{background-image:url('assets/gel-ic_pageindicator_current.png')}
/* The search bar: search_bg around the 56 dp bounds (11 px in, 32 px down), the logo and the mic of search_widget.xml. */
.mmh-qsb{position:absolute;left:calc(-3.810 * var(--dp));right:calc(-3.810 * var(--dp));top:calc(4.190 * var(--dp));height:calc(64 * var(--dp));display:flex;transition:opacity .25s}
.mmh.now .mmh-qsb,.mmh.now .mmh-hotseat,.mmh.now .mmh-dots{opacity:0;pointer-events:none}
.mmh-qsb-plate{flex:1;min-width:0;padding:0;border:0;background:none;text-align:left;display:flex;align-items:flex-start}
.mmh-qsb-plate img{display:block;width:calc(62 * var(--dp));height:calc(23 * var(--dp));margin:calc(14 * var(--dp)) 0 0 calc(16 * var(--dp))}
.mmh-qsb-mic{flex:none;width:calc(56 * var(--dp));padding:0;border:0;background:none;display:grid;place-items:center}
/* ic_mic_none is white; the layout tints it gray_700 #616161. */
.mmh-qsb-mic i{width:calc(24 * var(--dp));height:calc(24 * var(--dp));background:#616161;-webkit-mask:url('assets/gel-ic_mic_none.png') center/100%;mask:url('assets/gel-ic_mic_none.png') center/100%}
/* An open folder: quantum_panel (4 dp inset, #f5f5f5, 2 dp corners) over the workspace. */
.mmh-fscrim{position:absolute;inset:0;z-index:5}
.mmh-fpanel{position:absolute;z-index:6;box-sizing:border-box;transform-origin:var(--ox) var(--oy)}
.mmh-fpanel::before{content:"";position:absolute;inset:calc(4 * var(--dp));border-radius:calc(2 * var(--dp));background:#f5f5f5;box-shadow:0 calc(4 * var(--dp)) calc(10 * var(--dp)) rgba(0,0,0,.3)}
.mmh-fgrid{position:absolute;inset:0}
.mmh-fcell{position:absolute;width:calc(82.286 * var(--dp));height:calc(93.714 * var(--dp))}
.mmh-icon.fd{color:#666;text-shadow:none}
.mmh-icon.fd>img{top:calc(3.048 * var(--dp))}
.mmh-icon.fd>span{top:calc(71.238 * var(--dp));text-shadow:none;text-overflow:ellipsis}
.mmh-fname{position:absolute;left:calc(12 * var(--dp));right:calc(12 * var(--dp));padding:calc(4 * var(--dp)) 0 calc(8 * var(--dp));color:#777;font:calc(14 * var(--dp))/1.172 'Roboto Condensed',Roboto,sans-serif;text-align:center}

/* The apps drawer: the search plate at the search bar's place, the panel under it to 8 dp above the navigation bar. */
.mmd{position:absolute;inset:0;font-family:Roboto,sans-serif;line-height:1.172}
.mmd.reveal{animation:mmd-reveal .35s cubic-bezier(.4,0,.2,1)}
@keyframes mmd-reveal{from{clip-path:circle(0 at var(--rx) var(--ry))}to{clip-path:circle(150% at var(--rx) var(--ry))}}
.mmd-search{position:absolute;left:calc(-3.810 * var(--dp));right:calc(-3.810 * var(--dp));top:calc(4.190 * var(--dp));height:calc(64 * var(--dp));display:flex;z-index:1}
.mmd-input{flex:1;min-width:0;height:calc(48 * var(--dp));padding:0 calc(16 * var(--dp));border:0;background:none;outline:none;color:#212121;font:calc(16 * var(--dp)) Roboto,sans-serif}
.mmd-input::placeholder{color:#bdbdbd}
.mmd-panel{position:absolute;left:calc(4.190 * var(--dp));right:calc(4.190 * var(--dp));top:calc(68.190 * var(--dp));bottom:calc(8 * var(--dp));border-radius:calc(2 * var(--dp));background:#f5f5f5;overflow:hidden}
.mmd-scroll{position:absolute;inset:0;overflow-y:auto;padding:calc(8 * var(--dp)) calc(9.143 * var(--dp));scrollbar-width:none}
.mmd-scroll::-webkit-scrollbar{display:none}
.mmd-grid,.mmd-row{display:grid;grid-template-columns:repeat(4,1fr)}
.mmd-app{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;padding:calc(8 * var(--dp)) 0;border:0;background:none;color:#666;font:calc(14.476 * var(--dp))/1.342 Roboto,sans-serif;-webkit-tap-highlight-color:transparent}
.mmd-app img{width:calc(64 * var(--dp));height:calc(64 * var(--dp));margin-bottom:calc(4.190 * var(--dp))}
.mmd-app span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mmd-app:active img{filter:brightness(.85)}
.mmd-predicted .mmd-app{padding-bottom:calc(18 * var(--dp))}
.mmd-divider{display:block;height:calc(1 * var(--dp));margin:0 calc(8 * var(--dp)) calc(8 * var(--dp));background:rgba(0,0,0,.118)}
.mmd-empty{padding:calc(40 * var(--dp)) calc(16 * var(--dp)) calc(8 * var(--dp));color:#212121;opacity:.56;font:500 calc(14 * var(--dp))/1.172 Roboto,sans-serif}
.mmd-market{display:block;margin:0 calc(8 * var(--dp));padding:calc(12 * var(--dp)) calc(8 * var(--dp));border:0;background:none;color:#009688;font:500 calc(14 * var(--dp)) Roboto,sans-serif;text-transform:uppercase}

/* Dragging (DragController): the drag view is the icon scaled by dragViewScale ((168 + 12 dp) / 168), under the
   finger; the search bar gives way to search_drop_target_bar.xml (DropTargetButton: 14 sp white, a 4 px shadow 1 px
   down, the 20 dp icon 7.5 dp before it); a target under the finger takes its hover tint (Remove #c1c1c1, App info
   #009688). */
.mmh-targets{position:absolute;left:0;right:0;top:calc(12.190 * var(--dp));height:calc(56 * var(--dp));display:flex;opacity:0;pointer-events:none;transition:opacity .2s}
.mmh.dragging .mmh-targets{opacity:1}
.mmh.dragging .mmh-qsb{opacity:0}
.mmh-targets span{flex:1;display:flex;align-items:center;justify-content:center;gap:calc(7.5 * var(--dp));color:#fff;font:calc(14 * var(--dp))/1.172 Roboto,sans-serif;text-shadow:0 calc(.381 * var(--dp)) calc(1.524 * var(--dp)) #000;white-space:nowrap}
.mmh-targets img{width:calc(20 * var(--dp));height:calc(20 * var(--dp))}
.mmh-targets span[data-target="remove"].hover{color:#c1c1c1}
.mmh-targets span[data-target="info"].hover{color:#009688}
.mmh-dragview{position:absolute;z-index:20;width:calc(68.571 * var(--dp));height:calc(68.571 * var(--dp));margin:calc(-34.286 * var(--dp)) 0 0 calc(-34.286 * var(--dp));pointer-events:none;transition:filter .15s}
.mmh-dragview>img{width:100%;height:100%;filter:drop-shadow(0 calc(2 * var(--dp)) calc(4 * var(--dp)) rgba(0,0,0,.4))}
.mmh-dragview.remove{filter:sepia(1) hue-rotate(-50deg) saturate(3) brightness(.8)}
.mmh-dragview.folder .mmh-icon{position:relative;width:calc(80.610 * var(--dp));height:calc(96.533 * var(--dp))}
.mmh-dragview.folder .mmh-icon>span{display:none}
.mmh-icon.hs.mmh-folder{transform:translateY(calc(8 * var(--dp)))}
.mmh-icon.hs.mmh-folder>span{display:none}
/* Overview mode: the pages shrunk to config_workspaceOverviewShrinkPercentage 70 % about the cells' centre and moved
   104.5 px up to centre them over the 120 dp overview panel (overview_panel.xml: 80 dp buttons 20 dp apart, the
   12 sp condensed caps labels 4 dp under their icons); each page on screenpanel; no search bar or hotseat. */
/* Workspace scales as a whole about the current page's centre: each page shrinks about its own cells' centre and moves
   30 % of a page width towards the current one per page between them; the Now page stays out of overview. */
.mmh-page{transform-origin:50% calc(309.524 * var(--dp));transition:transform .3s cubic-bezier(.2,.8,.3,1)}
.mmh.overview .mmh-page{transform:translateX(calc((var(--page) - var(--i)) * 30%)) translateY(calc(-39.810 * var(--dp))) scale(.7)}
.mmh-nowpage{transition:opacity .3s}
.mmh.overview .mmh-nowpage{opacity:0}
.mmh-panel{position:absolute;left:calc(4.190 * var(--dp));right:calc(4.190 * var(--dp));top:calc(68.190 * var(--dp));height:var(--wsh,calc(482.667 * var(--dp)));box-sizing:border-box;border-style:solid;border-color:transparent;border-width:calc(2.667 * var(--dp)) calc(4 * var(--dp)) calc(3 * var(--dp));border-image:url('assets/gel-screenpanel.9.png') 8 12 9 fill/calc(2.667 * var(--dp)) calc(4 * var(--dp)) calc(3 * var(--dp)) stretch;opacity:0;transition:opacity .3s;pointer-events:none}
.mmh.overview .mmh-panel{opacity:1}
.mmh.overview .mmh-qsb,.mmh.overview .mmh-hotseat{opacity:0;pointer-events:none}
.mmh-qsb,.mmh-hotseat{transition:opacity .3s}
.mmh.overview .mmh-dots{opacity:1}
.mmh-overview{position:absolute;left:50%;bottom:0;width:calc(280 * var(--dp));height:calc(120 * var(--dp));margin-left:calc(-140 * var(--dp));display:flex;justify-content:space-between;opacity:0;pointer-events:none;transition:opacity .3s}
.mmh.overview .mmh-overview{opacity:1;pointer-events:auto}
.mmh-overview button{flex:none;width:calc(80 * var(--dp));padding:0;border:0;background:none;display:flex;flex-direction:column;align-items:center;color:#fff;font:calc(12 * var(--dp))/1.172 'Roboto Condensed',Roboto,sans-serif;text-transform:uppercase}
.mmh-overview i{width:calc(42.667 * var(--dp));height:calc(42.667 * var(--dp));margin-bottom:calc(4 * var(--dp));background:center/100% no-repeat}
.mmh-ov-wallpaper i{background-image:url('assets/gel-ic_wallpaper.png')}
.mmh-ov-wallpaper:active i{background-image:url('assets/gel-ic_wallpaper_pressed.png')}
.mmh-ov-widget i{background-image:url('assets/gel-ic_widget.png')}
.mmh-ov-widget:active i{background-image:url('assets/gel-ic_widget_pressed.png')}
.mmh-ov-setting i{background-image:url('assets/gel-ic_setting.png')}
.mmh-ov-setting:active i{background-image:url('assets/gel-ic_setting_pressed.png')}
/* The open folder's name: an ExtendedEditText, 14 sp condensed #777, the hint #808080. */
input.mmh-fname{border:0;background:none;outline:none;padding:calc(4 * var(--dp)) 0 calc(8 * var(--dp));width:auto}
input.mmh-fname::placeholder{color:#808080}
/* The first-run long-press cling: the #80000000 scrim, the 360 dp box (cling_bg) a third down the free space with
   longpress_cling_welcome_content.xml. */
.mmh-cling{position:absolute;inset:0;z-index:30;display:flex;flex-direction:column;align-items:center;background:rgba(0,0,0,.5)}
.mmh-cling>i{flex:1}
.mmh-cling>i.mmh-cling-2x{flex:2}
.mmh-cling-box{width:calc(360 * var(--dp));max-width:100%;padding:calc(40.667 * var(--dp)) calc(5.667 * var(--dp)) calc(42.333 * var(--dp));color:rgba(0,0,0,.882);font-family:Roboto,sans-serif;line-height:1.172}
.mmh-cling-1{padding:0 calc(36 * var(--dp));margin-bottom:calc(8 * var(--dp));font-size:calc(34 * var(--dp))}
.mmh-cling-2{padding:0 calc(36 * var(--dp));margin-bottom:calc(5.3 * var(--dp));font:500 calc(20 * var(--dp))/1.172 Roboto,sans-serif}
.mmh-cling-3{padding:0 calc(36 * var(--dp));color:rgba(0,0,0,.6);font-size:calc(16 * var(--dp))}
.mmh-cling-box button{display:block;margin:calc(27 * var(--dp)) calc(12 * var(--dp)) 0 auto;min-height:calc(48 * var(--dp));padding:0 calc(24 * var(--dp));border:0;border-radius:calc(2 * var(--dp));background:none;color:#fff;font:500 calc(14 * var(--dp))/1.172 Roboto,sans-serif;text-transform:uppercase}
.mmh-cling-box button:active{background:rgba(255,255,255,.2)}
/* search_bg's own padding is 8 dp (its nine-patch padding box); the 21 dp slices draw beyond it, so the content box is
   the plate inside the shadow, as in search_widget.xml and search_plate_proxy.xml. */
.mmh-qsb.np-gel-search_bg,.mmd-search.np-gel-search_bg,.mmrc-search.np-gel-search_bg{border-width:calc(8 * var(--dp))}
/* A shortcut made by an app: a contact's is the photo tile (Launcher's icon size, less the 4 dp the legacy shortcut
   icon keeps) with the call or message badge at its corner. */
.mmh-scperson{position:absolute;left:50%;top:var(--cellpad,calc(4.190 * var(--dp)));width:calc(64 * var(--dp));height:calc(64 * var(--dp));margin-left:calc(-32 * var(--dp))}
.mmh-sctile{position:absolute;inset:calc(4 * var(--dp));width:auto!important;height:auto!important;border-radius:50%;overflow:hidden}

.mmh-scbadge{position:absolute;right:0;top:0;width:calc(20 * var(--dp));height:calc(20 * var(--dp))}
.mmh-dragview .mmh-scperson{position:relative;left:auto;top:auto;margin:0;display:block}
