/* ============ device frame ============ */
#phone { transition: width .5s var(--md-ease), height .5s var(--md-ease), padding .5s var(--md-ease), border-radius .5s; }
#screen { transition: width .5s var(--md-ease), height .5s var(--md-ease), border-radius .5s; }
.bz { position: absolute; pointer-events: none; }
.bz-speaker { top: 34px; left: 50%; width: 70px; height: 7px; margin-left: -35px; border-radius: 4px; background: #34343a; box-shadow: inset 0 1px 2px #000; }
.bz-cam { top: 31px; left: calc(50% + 62px); width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #3a4a6a, #0a0a0e 60%); box-shadow: 0 0 0 2px #2a2a30; }
.bz-chin { bottom: 30px; left: 0; right: 0; text-align: center; font: 700 12px var(--md-font); letter-spacing: 8px; color: #55555c; }
.bz-hinge { top: 0; bottom: 0; left: 50%; width: 6px; margin-left: -3px; background: linear-gradient(90deg, #1b1e25, #4a5060, #1b1e25); z-index: -1; } /* visible only on the bezel */
#phone::before { z-index: -1; }

/* cutouts */
#cutout { position: absolute; z-index: 150; pointer-events: none; }
#cutout.cut-none { display: none; }
#cutout.cut-hole { top: 10px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px #15141a; }
#cutout.cut-hole-r { top: 10px; right: 64px; width: 12px; height: 12px; border-radius: 50%; background: #000; }
#cutout.cut-notch { top: 0; left: 50%; width: 150px; height: 26px; margin-left: -75px; background: #000; border-radius: 0 0 18px 18px; }
#cutout.cut-notch::after { content: ''; position: absolute; top: 8px; left: 50%; margin-left: 20px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #2b3a5a, #000 65%); }

/* foldable */
#crease { position: absolute; top: 0; bottom: 0; left: 50%; width: 28px; margin-left: -14px; z-index: 149; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.07) 35%, rgba(255,255,255,.12) 50%, rgba(0,0,0,.07) 65%, transparent); }
#crease[hidden] { display: none; }
#foldBtn { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 5; box-shadow: 0 4px 16px rgba(0,0,0,.4); }

/* developer tweaks */
.touch-dot { position: absolute; z-index: 200; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: rgba(255,255,255,.55);
  box-shadow: 0 0 0 2px rgba(0,0,0,.25); pointer-events: none; animation: touchFade .6s forwards; }
@keyframes touchFade { to { opacity: 0; transform: scale(1.4); } }
#screen.bounds * { outline: 1px solid rgba(255, 0, 80, .55); outline-offset: -1px; }
body.no-anim *, body.no-anim *::before, body.no-anim *::after { animation-duration: 1ms !important; animation-delay: 0s !important; transition-duration: 1ms !important; }

/* system navigation glyphs */
#navbar .nv { font: 400 20px/1 var(--md-font); letter-spacing: 1px; }
#navbar .pill-h { display: block; width: 32px; height: 14px; border-radius: 7px; border: 2px solid currentColor; }
#navbar.gesture { height: 24px; }
#navbar.gesture button { width: 140px; height: 24px; }
#navbar.gesture .pill-h { width: 120px; height: 5px; border: 0; border-radius: 3px; background: currentColor; opacity: .85; }

/* ============ MATERIAL 1 (2014) ============ */
#screen[data-skin=m1] {
  --md-primary: #3F51B5; --md-on-primary: #fff; --md-primary-container: #C5CAE9; --md-on-primary-container: #1A237E;
  --md-secondary: #FF4081; --md-secondary-container: #E0E0E0; --md-on-secondary-container: #212121;
  --md-surface: #FAFAFA; --md-surface-container-lowest: #fff; --md-surface-container-low: #fff; --md-surface-container: #F5F5F5;
  --md-surface-container-high: #fff; --md-surface-container-highest: #EEEEEE;
  --md-on-surface: #212121; --md-on-surface-variant: #757575; --md-outline: #BDBDBD; --md-outline-variant: #E0E0E0;
  --md-error: #F44336; --md-inverse-surface: #323232;
}
[data-skin=m1] #wallpaper { background:
  linear-gradient(115deg, transparent 0 48%, rgba(0,0,0,.18) 48% 100%),
  linear-gradient(200deg, transparent 0 62%, rgba(255,255,255,.12) 62% 100%),
  linear-gradient(160deg, #26A69A, #00796B 55%, #004D40); }
[data-skin=m1] #statusbar { height: 26px; padding-top: 2px; font-size: 13px; }
[data-skin=m1] #statusbar.dark { background: #303F9F; color: #fff; }
[data-skin=m1] .app { padding-top: 26px; }
[data-skin=m1] #home { padding-top: 34px; }
[data-skin=m1] #navbar, [data-skin=m1] #navbar.dark { background: #000; color: #fff; }
[data-skin=m1] .topbar { background: var(--md-primary); color: #fff; height: 56px; box-shadow: 0 2px 5px rgba(0,0,0,.26); position: relative; z-index: 2; }
[data-skin=m1] .topbar .title { font-size: 20px; font-weight: 500; }
[data-skin=m1] .topbar .icon-btn { color: #fff; }
[data-skin=m1] .btn { border-radius: 2px; text-transform: uppercase; height: 36px; padding: 0 16px; box-shadow: 0 2px 2px rgba(0,0,0,.24), 0 0 2px rgba(0,0,0,.12); letter-spacing: .5px; }
[data-skin=m1] .btn.big { height: 48px; border-radius: 2px; }
[data-skin=m1] .btn.text, [data-skin=m1] .btn.outlined { box-shadow: none; }
[data-skin=m1] .btn.tonal { background: #E0E0E0; color: #212121; }
[data-skin=m1] .fab { border-radius: 50%; background: var(--md-secondary); color: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
[data-skin=m1] .card { border-radius: 2px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
[data-skin=m1] .card.outlined { border: 0; }
[data-skin=m1] .chip { border-radius: 16px; border: 0; background: #E0E0E0; color: #212121; }
[data-skin=m1] .chip.on { background: var(--md-primary); color: #fff; }
[data-skin=m1] .chip.on::before { display: none; }
[data-skin=m1] .switch { width: 36px; height: 14px; border: 0; border-radius: 7px; background: rgba(0,0,0,.3); overflow: visible; margin: 0 6px; }
[data-skin=m1] .switch::after { top: -3px; left: -4px; width: 20px; height: 20px; background: #F5F5F5; box-shadow: 0 1px 3px rgba(0,0,0,.45); }
[data-skin=m1] .switch.on { background: rgba(255,64,129,.5); }
[data-skin=m1] .switch.on::after { left: 20px; top: -3px; width: 20px; height: 20px; background: var(--md-secondary); }
[data-skin=m1] .cb.on, [data-skin=m1] .radio.on::after { background: var(--md-secondary); }
[data-skin=m1] .cb.on, [data-skin=m1] .radio.on { border-color: var(--md-secondary); }
[data-skin=m1] .dialog { border-radius: 2px; background: #fff; box-shadow: 0 16px 28px rgba(0,0,0,.35); }
[data-skin=m1] .dialog h2 { font-size: 20px; font-weight: 500; }
[data-skin=m1] .dialog .icon { display: none; }
[data-skin=m1] .dialog .icon + h2 { text-align: left; }
[data-skin=m1] .sheet { border-radius: 0; background: #fff; }
[data-skin=m1] .sheet .handle { visibility: hidden; }
[data-skin=m1] .snack { border-radius: 0; margin: 0 -12px; }
[data-skin=m1] .searchbar { border-radius: 2px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
[data-skin=m1] .navbar { background: #fff; box-shadow: 0 -1px 3px rgba(0,0,0,.15); }
[data-skin=m1] .navbar button.on .pill { background: none; color: var(--md-primary); }
[data-skin=m1] .navbar button.on { color: var(--md-primary); }
[data-skin=m1] .lp { border-radius: 0; background: #F8BBD0; } [data-skin=m1] .lp > i { background: var(--md-secondary); border-radius: 0; }
[data-skin=m1] .seg { border-radius: 2px; }
[data-skin=m1] .app-ic .ic { border-radius: 6px; box-shadow: 2px 3px 0 rgba(0,0,0,.25); }
[data-skin=m1] .app-ic .nm { font-size: 11px; }
[data-skin=m1] .home-search { order: -1; border-radius: 2px; height: 44px; margin: 6px 0 0; background: #fff; }
[data-skin=m1] .home-search .g { border-radius: 2px; }
[data-skin=m1] .glance { min-height: 96px; padding-top: 12px; }
[data-skin=m1] .hu, [data-skin=m1] .nt { border-radius: 2px !important; background: #fff; }
[data-skin=m1] #shade { background: #263238; backdrop-filter: none; }

/* ============ MATERIAL 2 (2018) ============ */
#screen[data-skin=m2] {
  --md-primary: #6200EE; --md-on-primary: #fff; --md-primary-container: #E8DDFF; --md-on-primary-container: #3700B3;
  --md-secondary: #03DAC6; --md-secondary-container: #E0F7F5; --md-on-secondary-container: #00574F;
  --md-surface: #fff; --md-surface-container-lowest: #fff; --md-surface-container-low: #fff; --md-surface-container: #F5F5F5;
  --md-surface-container-high: #fff; --md-surface-container-highest: #F2F2F2;
  --md-on-surface: rgba(0,0,0,.87); --md-on-surface-variant: rgba(0,0,0,.6); --md-outline: rgba(0,0,0,.38); --md-outline-variant: rgba(0,0,0,.12);
  --md-error: #B00020; --md-inverse-surface: #333;
}
[data-skin=m2] #wallpaper { background: radial-gradient(90% 50% at 80% 20%, #8ab4f8 0, transparent 60%), radial-gradient(90% 60% at 10% 90%, #81c995 0, transparent 60%), linear-gradient(180deg, #1a73e8, #174ea6); }
[data-skin=m2] #statusbar { height: 28px; padding-top: 4px; }
[data-skin=m2] #statusbar.dark { background: #3700B3; color: #fff; }
[data-skin=m2] .app { padding-top: 28px; }
[data-skin=m2] #navbar.dark { background: #fff; }
[data-skin=m2] .topbar { background: var(--md-primary); color: #fff; height: 56px; box-shadow: 0 2px 4px rgba(0,0,0,.2); position: relative; z-index: 2; }
[data-skin=m2] .topbar .title { font-size: 20px; font-weight: 500; }
[data-skin=m2] .topbar .icon-btn { color: #fff; }
[data-skin=m2] .btn { border-radius: 4px; text-transform: uppercase; letter-spacing: 1.25px; height: 36px; padding: 0 16px; box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px rgba(0,0,0,.14); }
[data-skin=m2] .btn.big { height: 48px; border-radius: 4px; }
[data-skin=m2] .btn.text, [data-skin=m2] .btn.outlined { box-shadow: none; }
[data-skin=m2] .btn.tonal { background: var(--md-secondary); color: #000; }
[data-skin=m2] .fab { border-radius: 50%; background: var(--md-secondary); color: #000; }
[data-skin=m2] .card { border-radius: 4px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2), 0 1px 1px rgba(0,0,0,.14); }
[data-skin=m2] .card.outlined { box-shadow: none; border: 1px solid rgba(0,0,0,.12); }
[data-skin=m2] .chip { border-radius: 16px; border: 0; background: rgba(0,0,0,.08); color: rgba(0,0,0,.87); }
[data-skin=m2] .chip.on { background: rgba(98,0,238,.16); color: var(--md-primary); }
[data-skin=m2] .chip.on::before { display: none; }
[data-skin=m2] .switch { width: 36px; height: 14px; border: 0; border-radius: 7px; background: rgba(0,0,0,.38); overflow: visible; margin: 0 6px; }
[data-skin=m2] .switch::after { top: -3px; left: -4px; width: 20px; height: 20px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
[data-skin=m2] .switch.on { background: rgba(1,135,134,.5); }
[data-skin=m2] .switch.on::after { left: 20px; top: -3px; width: 20px; height: 20px; background: #018786; }
[data-skin=m2] .dialog { border-radius: 4px; background: #fff; }
[data-skin=m2] .dialog h2 { font-size: 20px; font-weight: 500; }
[data-skin=m2] .dialog .icon { display: none; }
[data-skin=m2] .dialog .icon + h2 { text-align: left; }
[data-skin=m2] .sheet { border-radius: 8px 8px 0 0; background: #fff; }
[data-skin=m2] .snack { border-radius: 4px; }
[data-skin=m2] .searchbar { border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
[data-skin=m2] .navbar { background: #fff; box-shadow: 0 -1px 4px rgba(0,0,0,.12); }
[data-skin=m2] .navbar button.on .pill { background: none; color: var(--md-primary); }
[data-skin=m2] .navbar button.on { color: var(--md-primary); }
[data-skin=m2] .seg { border-radius: 4px; }
[data-skin=m2] .hu, [data-skin=m2] .nt { border-radius: 8px !important; background: #fff; }

/* ============ ХаоOS (in the spirit of Chinese Android skins) ============ */
#screen[data-skin=hao] {
  --md-primary: #2E7BFF; --md-on-primary: #fff; --md-primary-container: #DCE8FF; --md-on-primary-container: #0B3D91;
  --md-secondary-container: #F0F0F0; --md-on-secondary-container: #000;
  --md-surface: #F7F7F7; --md-surface-container-lowest: #fff; --md-surface-container-low: #fff; --md-surface-container: #fff;
  --md-surface-container-high: #fff; --md-surface-container-highest: #EFEFEF;
  --md-on-surface: #000; --md-on-surface-variant: #8C8C8C; --md-outline: #D6D6D6; --md-outline-variant: #ECECEC;
  --md-inverse-surface: rgba(30,30,30,.92);
}
[data-skin=hao] #wallpaper { background:
  radial-gradient(120% 50% at 50% 100%, #ff8a3d 0, transparent 60%),
  radial-gradient(80% 50% at 0% 30%, #66d0ff 0, transparent 60%),
  linear-gradient(180deg, #3d7bff, #7a4dff 70%, #b14dff); }
[data-skin=hao] .topbar { height: 96px; align-items: flex-end; padding-bottom: 8px; background: var(--md-surface); }
[data-skin=hao] .topbar .title { font-size: 28px; line-height: 34px; font-weight: 700; }
[data-skin=hao] .btn { height: 46px; border-radius: 23px; font-weight: 600; font-size: 15px; }
[data-skin=hao] .btn.tonal { background: #F0F0F0; color: #000; }
[data-skin=hao] .fab { border-radius: 50%; background: var(--md-primary); color: #fff; }
[data-skin=hao] .card, [data-skin=hao] .card.filled { border-radius: 20px; background: #fff; }
[data-skin=hao] .card.outlined { border: 0; }
[data-skin=hao] .chip { border: 0; border-radius: 18px; background: #F0F0F0; color: #000; }
[data-skin=hao] .chip.on { background: var(--md-primary); color: #fff; }
[data-skin=hao] .chip.on::before { display: none; }
[data-skin=hao] .switch { width: 48px; height: 28px; border: 0; border-radius: 14px; background: #E3E3E6; }
[data-skin=hao] .switch::after { top: 2px; left: 2px; width: 24px; height: 24px; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
[data-skin=hao] .switch.on { background: var(--md-primary); }
[data-skin=hao] .switch.on::after { left: 22px; top: 2px; width: 24px; height: 24px; background: #fff; }
[data-skin=hao] .scrim:not(.sheet-scrim) { align-items: flex-end; padding: 12px 12px 56px; }
[data-skin=hao] .dialog { max-width: none; border-radius: 30px; background: #fff; }
[data-skin=hao] .dialog h2 { font-size: 19px; font-weight: 700; text-align: center; }
[data-skin=hao] .dialog .icon { display: none; }
[data-skin=hao] .dialog .body { text-align: center; }
[data-skin=hao] .dialog .actions { justify-content: stretch; flex-wrap: nowrap; }
[data-skin=hao] .dialog .actions .btn { flex: 1; background: #F0F0F0; color: #000; }
[data-skin=hao] .dialog .actions .btn.filled { background: var(--md-primary); color: #fff; }
[data-skin=hao] .sheet { border-radius: 30px 30px 0 0; background: #fff; }
[data-skin=hao] .searchbar { background: #EFEFEF; border-radius: 14px; height: 44px; }
[data-skin=hao] .navbar { background: #fff; height: 64px; }
[data-skin=hao] .navbar button.on .pill { background: none; color: var(--md-primary); }
[data-skin=hao] .navbar button.on { color: var(--md-primary); }
[data-skin=hao] .app-ic .ic { border-radius: 28%; background-image: linear-gradient(160deg, rgba(255,255,255,.38), rgba(0,0,0,.12)); }
[data-skin=hao] .home-search { display: none; }
[data-skin=hao] .glance .date { font-size: 44px; line-height: 52px; font-weight: 200; }
[data-skin=hao] .hu, [data-skin=hao] .nt { border-radius: 22px !important; background: rgba(255,255,255,.96); }
[data-skin=hao] .snack { border-radius: 22px; text-align: center; }

/* ============ One UX (in the spirit of Korean Android skins) ============ */
#screen[data-skin=oneux] {
  --md-primary: #387CF5; --md-on-primary: #fff; --md-primary-container: #DDE8FF; --md-on-primary-container: #0A3A8C;
  --md-secondary-container: #E9EEF8; --md-on-secondary-container: #1B3B78;
  --md-surface: #F4F4F6; --md-surface-container-lowest: #fff; --md-surface-container-low: #fff; --md-surface-container: #fff;
  --md-surface-container-high: #fff; --md-surface-container-highest: #ECECEF;
  --md-on-surface: #0f0f10; --md-on-surface-variant: #6f6f75; --md-outline: #c7c7cc; --md-outline-variant: #e3e3e8;
}
[data-skin=oneux] #wallpaper { background: radial-gradient(80% 50% at 70% 25%, #ffc2e2 0, transparent 60%), radial-gradient(80% 60% at 20% 80%, #a6c8ff 0, transparent 60%), linear-gradient(180deg, #8f7cf2, #5a6fe0); }
/* the famous "reachability" header: the title takes the top third of the screen */
[data-skin=oneux] .app > .topbar { height: 190px; align-items: flex-end; padding-bottom: 20px; background: var(--md-surface); }
[data-skin=oneux] .app > .topbar .title { font-size: 32px; line-height: 40px; font-weight: 400; padding-left: 12px; }
[data-skin=oneux] .btn { height: 44px; border-radius: 22px; font-weight: 600; }
[data-skin=oneux] .fab { border-radius: 50%; background: var(--md-primary); color: #fff; }
[data-skin=oneux] .card, [data-skin=oneux] .card.filled { border-radius: 26px; background: #fff; }
[data-skin=oneux] .card.outlined { border: 0; }
[data-skin=oneux] .chip { border-radius: 18px; border: 1px solid var(--md-outline); background: #fff; }
[data-skin=oneux] .chip.on { background: var(--md-primary); color: #fff; border-color: var(--md-primary); }
[data-skin=oneux] .chip.on::before { display: none; }
[data-skin=oneux] .switch { width: 44px; height: 24px; border: 0; border-radius: 12px; background: #C9C9CE; }
[data-skin=oneux] .switch::after { top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; }
[data-skin=oneux] .switch.on { background: var(--md-primary); }
[data-skin=oneux] .switch.on::after { left: 23px; top: 3px; width: 18px; height: 18px; background: #fff; }
[data-skin=oneux] .scrim:not(.sheet-scrim) { align-items: flex-end; padding: 16px 16px 60px; }
[data-skin=oneux] .dialog { max-width: none; border-radius: 26px; background: #fff; }
[data-skin=oneux] .dialog h2 { font-size: 19px; font-weight: 600; }
[data-skin=oneux] .dialog .icon { display: none; }
[data-skin=oneux] .dialog .actions { justify-content: space-around; }
[data-skin=oneux] .dialog .actions .btn { background: none; color: var(--md-primary); flex: 1; }
[data-skin=oneux] .sheet { border-radius: 26px 26px 0 0; background: #fff; }
[data-skin=oneux] .searchbar { background: #fff; border-radius: 22px; }
[data-skin=oneux] .navbar { background: var(--md-surface); }
[data-skin=oneux] .navbar button.on .pill { background: none; }
[data-skin=oneux] .navbar button.on { color: var(--md-primary); }
[data-skin=oneux] .app-ic .ic { border-radius: 32%; }
[data-skin=oneux] .home-search { display: none; }
[data-skin=oneux] .hu, [data-skin=oneux] .nt { border-radius: 26px !important; background: #fff; }
[data-skin=oneux] .snack { border-radius: 24px; background: rgba(40,40,44,.92); text-align: center; }
[data-skin=oneux] #shade { background: rgba(240,240,245,.86); color: #111; }
[data-skin=oneux] #shade .tile { background: #fff; color: #111; border-radius: 22px; }
