/* iFruit web — iOS 7 and below friendly (ES5-era Safari)
   Layout: floats / absolute / table. No flex/grid/vars. */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0b0d10;
  color: #fff;
  font-family: Helvetica, Arial, "Helvetica Neue", sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#stage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #1a1410 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFUlEQVQYV2NkYGD4z0AEYBxVSF+FAP5FDvcfRJHwAAAAAElFTkSuQmCC) repeat;
  background-color: #1c1814;
}

#phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 340px;
  height: 620px;
  margin-left: -170px;
  margin-top: -310px;
}

.phone-bezel {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  border: 3px solid #1e2430;
  -webkit-border-radius: 28px;
  border-radius: 28px;
  padding: 18px 12px 10px;
  -webkit-box-shadow: 0 12px 40px rgba(0,0,0,0.65), inset 0 0 0 1px #3a4558;
  box-shadow: 0 12px 40px rgba(0,0,0,0.65), inset 0 0 0 1px #3a4558;
}

.phone-earpiece {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 56px;
  height: 5px;
  margin-left: -28px;
  background: #151515;
  -webkit-border-radius: 3px;
  border-radius: 3px;
}

.phone-brand {
  position: absolute;
  top: 6px;
  left: 18px;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #9aa3b2;
  display: none;
}

#screen {
  position: relative;
  width: 100%;
  height: 510px;
  background: #000;
  overflow: hidden;
  border: 1px solid #2a3344;
}

#statusbar {
  position: relative;
  height: 22px;
  line-height: 22px;
  background: #000;
  font-size: 11px;
  font-weight: bold;
  z-index: 20;
}

.sb-left, .sb-center, .sb-right {
  position: absolute;
  top: 0;
  height: 22px;
}

.sb-left { left: 6px; width: 90px; }
.sb-center { left: 50%; width: 90px; margin-left: -45px; text-align: center; }
.sb-right { right: 6px; width: 40px; text-align: right; }

.signal {
  display: inline-block;
  vertical-align: middle;
  height: 12px;
  margin-right: 3px;
}

.signal i {
  display: inline-block;
  width: 3px;
  margin-right: 1px;
  background: #fff;
  vertical-align: bottom;
}

.signal i:nth-child(1) { height: 3px; }
.signal i:nth-child(2) { height: 5px; }
.signal i:nth-child(3) { height: 8px; }
.signal i:nth-child(4) { height: 11px; }

.carrier { vertical-align: middle; }

.fruit-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  vertical-align: middle;
  background: #e8e8e8;
  -webkit-border-radius: 50% 50% 45% 45%;
  border-radius: 50% 50% 45% 45%;
  position: relative;
}

.fruit-mark:after {
  content: "";
  position: absolute;
  top: -3px;
  left: 3px;
  width: 4px;
  height: 4px;
  background: #e8e8e8;
  -webkit-border-radius: 2px;
  border-radius: 2px;
}

.battery {
  display: inline-block;
  width: 22px;
  height: 10px;
  border: 1px solid #fff;
  -webkit-border-radius: 2px;
  border-radius: 2px;
  position: relative;
  vertical-align: middle;
}

.battery:after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 4px;
  background: #fff;
}

.battery-fill {
  display: block;
  height: 100%;
  width: 70%;
  background: #fff;
}

#views {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  bottom: 44px;
  overflow: hidden;
  background: #111;
}

.view {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.view.active { display: block; }

.app-header {
  height: 28px;
  line-height: 28px;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  background: #6e8fb8;
  background: -webkit-gradient(linear, left top, left bottom, from(#8aa8c8), to(#5e7fa8));
  background: -webkit-linear-gradient(top, #8aa8c8, #5e7fa8);
  background: linear-gradient(to bottom, #8aa8c8, #5e7fa8);
  border-bottom: 1px solid #4a6a8a;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}

.home-header { display: none; }

/* ---- Wallpaper / home ---- */
.wallpaper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.wp-art {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.wp-orange8bit {
  background: #0a0618;
}
.wp-orange8bit .wp-art {
  background:
    -webkit-gradient(linear, left top, left bottom, color-stop(0%, #1a0a40), color-stop(55%, #0c1830), color-stop(100%, #1cff4a));
  background: -webkit-linear-gradient(top, #1a0a40 0%, #0c1830 55%, #1cff4a 100%);
  background: linear-gradient(to bottom, #1a0a40 0%, #0c1830 55%, #1cff4a 100%);
}
.wp-orange8bit .wp-art:before {
  content: "DON'T CROSS THE LINE";
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  font-weight: bold;
  color: #ff4ad2;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #fff, -1px 0 0 #00e5ff;
}
.wp-orange8bit .wp-art:after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 42%;
  background-image: -webkit-linear-gradient(0deg, rgba(0,0,0,0.35) 1px, transparent 1px), -webkit-linear-gradient(90deg, rgba(0,0,0,0.25) 1px, transparent 1px);
  background-image: linear-gradient(90deg, rgba(0,0,0,0.35) 1px, transparent 1px), linear-gradient(0deg, rgba(0,0,0,0.25) 1px, transparent 1px);
  background-size: 14px 14px;
  background-color: #12e848;
}

.wp-purpleglow { background: #1a0530; }
.wp-purpleglow .wp-art {
  background: -webkit-radial-gradient(center, ellipse cover, #c44dff 0%, #2a0850 55%, #0a0218 100%);
  background: radial-gradient(ellipse at center, #c44dff 0%, #2a0850 55%, #0a0218 100%);
}

.wp-greensquares { background: #0d2a14; }
.wp-greensquares .wp-art {
  background-color: #163820;
  background-image: -webkit-linear-gradient(45deg, #2dff7a 25%, transparent 25%), -webkit-linear-gradient(-45deg, #2dff7a 25%, transparent 25%), -webkit-linear-gradient(45deg, transparent 75%, #2dff7a 75%), -webkit-linear-gradient(-45deg, transparent 75%, #2dff7a 75%);
  background-image: linear-gradient(45deg, #2dff7a 25%, transparent 25%), linear-gradient(-45deg, #2dff7a 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #2dff7a 75%), linear-gradient(-45deg, transparent 75%, #2dff7a 75%);
  background-size: 28px 28px;
  opacity: 0.85;
}

.wp-blueangles { background: #061428; }
.wp-blueangles .wp-art {
  background: -webkit-linear-gradient(135deg, #0a2a60 0%, #1ec8ff 40%, #062040 70%, #4af0ff 100%);
  background: linear-gradient(135deg, #0a2a60 0%, #1ec8ff 40%, #062040 70%, #4af0ff 100%);
}

.wp-orangetriangles { background: #2a1000; }
.wp-orangetriangles .wp-art {
  background: -webkit-linear-gradient(top, #ff7a18, #ff3b00);
  background: linear-gradient(to bottom, #ff7a18, #ff3b00);
}
.wp-orangetriangles .wp-art:after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background-image: -webkit-linear-gradient(60deg, transparent 40%, rgba(255,220,80,0.45) 41%, transparent 42%);
  background-image: linear-gradient(60deg, transparent 40%, rgba(255,220,80,0.45) 41%, transparent 42%);
  background-size: 40px 40px;
}

.wp-diamonds { background: #101018; }
.wp-diamonds .wp-art {
  background-color: #1a1a28;
  background-image: -webkit-linear-gradient(45deg, #6ec8ff 25%, transparent 25%), -webkit-linear-gradient(-45deg, #6ec8ff 25%, transparent 25%), -webkit-linear-gradient(45deg, transparent 75%, #6ec8ff 75%), -webkit-linear-gradient(-45deg, transparent 75%, #6ec8ff 75%);
  background-image: linear-gradient(45deg, #6ec8ff 25%, transparent 25%), linear-gradient(-45deg, #6ec8ff 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #6ec8ff 75%), linear-gradient(-45deg, transparent 75%, #6ec8ff 75%);
  background-size: 24px 24px;
  opacity: 0.7;
}

.wp-ifruitdefault { background: #c8d8e8; }
.wp-ifruitdefault .wp-art {
  background: -webkit-linear-gradient(top, #dce8f4, #8aa8c0);
  background: linear-gradient(to bottom, #dce8f4, #8aa8c0);
}

.icon-grid {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 48px;
  bottom: 8px;
  z-index: 2;
  text-align: center;
  font-size: 0;
}

.app-icon {
  display: inline-block;
  width: 33.33%;
  margin: 0 0 16px;
  vertical-align: top;
  text-align: center;
  font-size: 10px;
}

.icon-face {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 6px;
  -webkit-border-radius: 12px;
  border-radius: 12px;
  position: relative;
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 2px 4px rgba(0,0,0,0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 2px 4px rgba(0,0,0,0.45);
  border: 1px solid rgba(0,0,0,0.25);
}

.icon-label {
  display: block;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  font-size: 10px;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.badge {
  position: absolute;
  top: -6px;
  left: -6px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 4px;
  background: #e02020;
  background: -webkit-gradient(linear, left top, left bottom, from(#ff5a5a), to(#c01010));
  background: -webkit-linear-gradient(top, #ff5a5a, #c01010);
  background: linear-gradient(to bottom, #ff5a5a, #c01010);
  -webkit-border-radius: 9px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  border: 1px solid #fff;
  z-index: 3;
}

.icon-email { background: -webkit-linear-gradient(top, #ffb040, #e07010); background: linear-gradient(to bottom, #ffb040, #e07010); }
.icon-email:before {
  content: "";
  position: absolute;
  left: 10px; right: 10px; top: 18px; bottom: 16px;
  border: 2px solid #fff;
  -webkit-border-radius: 3px;
  border-radius: 3px;
}
.icon-email:after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; top: 18px; height: 16px;
  border-top: 2px solid #fff;
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
  -webkit-transform: rotate(0deg);
}

.icon-texts { background: -webkit-linear-gradient(top, #6dff6a, #18b018); background: linear-gradient(to bottom, #6dff6a, #18b018); }
.icon-texts:before {
  content: "";
  position: absolute;
  left: 12px; top: 14px; width: 34px; height: 24px;
  background: #fff;
  -webkit-border-radius: 6px;
  border-radius: 6px;
}
.icon-texts:after {
  content: "";
  position: absolute;
  left: 18px; top: 36px;
  border: 6px solid transparent;
  border-top-color: #fff;
  border-left-color: #fff;
}

.icon-contacts { background: -webkit-linear-gradient(top, #8a5a3a, #4a2a18); background: linear-gradient(to bottom, #8a5a3a, #4a2a18); }
.icon-contacts:before {
  content: "";
  position: absolute;
  left: 19px; top: 12px; width: 20px; height: 20px;
  background: #1a120c;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}
.icon-contacts:after {
  content: "";
  position: absolute;
  left: 12px; top: 32px; width: 34px; height: 18px;
  background: #1a120c;
  -webkit-border-radius: 14px 14px 4px 4px;
  border-radius: 14px 14px 4px 4px;
}

.icon-quick { background: -webkit-linear-gradient(top, #9a6adf, #5a28a8); background: linear-gradient(to bottom, #9a6adf, #5a28a8); }
.icon-quick:before {
  content: "";
  position: absolute;
  left: 14px; top: 14px; width: 30px; height: 30px;
  border: 3px solid #fff;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}
.icon-quick:after {
  content: "";
  position: absolute;
  left: 27px; top: 18px; width: 3px; height: 14px;
  background: #fff;
  -webkit-box-shadow: 6px 8px 0 #fff;
  box-shadow: 6px 8px 0 #fff;
}

.icon-settings { background: -webkit-linear-gradient(top, #6a6a6a, #2a2a2a); background: linear-gradient(to bottom, #6a6a6a, #2a2a2a); }
.icon-settings:before {
  content: "";
  position: absolute;
  left: 17px; top: 17px; width: 24px; height: 24px;
  border: 4px solid #c8c8c8;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}
.icon-settings:after {
  content: "";
  position: absolute;
  left: 25px; top: 25px; width: 8px; height: 8px;
  background: #c8c8c8;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}

.icon-camera {
  background: -webkit-linear-gradient(top, #f0f0f0, #c8c8c8);
  background: linear-gradient(to bottom, #f0f0f0, #c8c8c8);
}
.icon-camera:before {
  content: "";
  position: absolute;
  left: 10px; top: 18px; width: 38px; height: 26px;
  background: #f0c020;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  border: 1px solid #a08010;
}
.icon-camera:after {
  content: "";
  position: absolute;
  left: 22px; top: 22px; width: 14px; height: 14px;
  background: #2a6aaa;
  border: 2px solid #fff;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}

.icon-browser { background: -webkit-linear-gradient(top, #4aa8ff, #1860c0); background: linear-gradient(to bottom, #4aa8ff, #1860c0); }
.icon-browser:before {
  content: "";
  position: absolute;
  left: 14px; top: 14px; width: 30px; height: 30px;
  border: 3px solid #fff;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}
.icon-browser:after {
  content: "";
  position: absolute;
  left: 18px; top: 26px; width: 28px; height: 3px;
  background: #fff;
  -webkit-box-shadow: 0 -8px 0 #fff, 0 8px 0 #fff;
  box-shadow: 0 -8px 0 #fff, 0 8px 0 #fff;
}

.icon-gallery { background: -webkit-linear-gradient(top, #ff80c8, #c02070); background: linear-gradient(to bottom, #ff80c8, #c02070); }
.icon-gallery:before {
  content: "";
  position: absolute;
  left: 12px; top: 16px; width: 34px; height: 26px;
  border: 2px solid #fff;
  -webkit-border-radius: 3px;
  border-radius: 3px;
}
.icon-gallery:after {
  content: "";
  position: absolute;
  left: 16px; top: 28px;
  border-bottom: 10px solid #fff;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}

.icon-life { background: -webkit-linear-gradient(top, #ff6060, #c01010); background: linear-gradient(to bottom, #ff6060, #c01010); }
.icon-life:before {
  content: "LI";
  position: absolute;
  left: 0; right: 0; top: 16px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}

/* ---- Lists ---- */
.list-pane {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  color: #111;
}

.list-row {
  display: block;
  position: relative;
  min-height: 48px;
  padding: 8px 12px 8px 56px;
  border-bottom: 1px solid #d0d0d0;
  font-size: 15px;
  line-height: 1.25;
  color: #111;
  background: #fff;
  overflow: hidden;
}

.list-row.selected {
  background: #4a90e2;
  color: #fff;
}

.list-row.bold { font-weight: bold; }

.list-row .thumb {
  position: absolute;
  left: 8px;
  top: 6px;
  width: 36px;
  height: 36px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  overflow: hidden;
}

.list-row .meta {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: normal;
  color: #888;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.list-row.selected .meta { color: #e8f0ff; }

.list-empty {
  padding: 40px 16px;
  text-align: center;
  color: #888;
  font-size: 14px;
}

/* Contact avatars */
.contact-avatar, .thumb {
  background: #2a2a2a;
}
.av-generic { background: #2a2a2a; position: relative; }
.av-generic:before {
  content: "";
  position: absolute;
  left: 11px; top: 6px; width: 14px; height: 14px;
  background: #555;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}
.av-generic:after {
  content: "";
  position: absolute;
  left: 6px; top: 22px; width: 24px; height: 14px;
  background: #555;
  -webkit-border-radius: 10px 10px 2px 2px;
  border-radius: 10px 10px 2px 2px;
}
.av-blocked { background: #3a1010; position: relative; }
.av-blocked:before {
  content: "";
  position: absolute;
  left: 8px; top: 8px; width: 20px; height: 20px;
  border: 2px solid #ff4040;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}
.av-blocked:after {
  content: "";
  position: absolute;
  left: 10px; top: 17px; width: 20px; height: 2px;
  background: #ff4040;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
.av-lester { background: #3a5030; }
.av-lester:before { content: "L"; display:block; text-align:center; line-height:36px; font-weight:bold; color:#c8ff90; }
.av-lamar { background: #503018; }
.av-lamar:before { content: "LD"; display:block; text-align:center; line-height:36px; font-weight:bold; color:#ffd080; font-size:12px; }
.av-michael { background: #203040; }
.av-michael:before { content: "M"; display:block; text-align:center; line-height:36px; font-weight:bold; color:#90c8ff; }
.av-franklin { background: #204028; }
.av-franklin:before { content: "F"; display:block; text-align:center; line-height:36px; font-weight:bold; color:#90ffb0; }
.av-trevor { background: #402018; }
.av-trevor:before { content: "T"; display:block; text-align:center; line-height:36px; font-weight:bold; color:#ff9080; }
.av-simeon { background: #403020; }
.av-simeon:before { content: "S"; display:block; text-align:center; line-height:36px; font-weight:bold; color:#ffd0a0; }
.av-ron { background: #303018; }
.av-ron:before { content: "R"; display:block; text-align:center; line-height:36px; font-weight:bold; color:#e0e080; }
.av-wade { background: #302838; }
.av-wade:before { content: "W"; display:block; text-align:center; line-height:36px; font-weight:bold; color:#d0b0ff; }
.av-ambulance { background: #102838; }
.av-ambulance:before { content: "911"; display:block; text-align:center; line-height:36px; font-weight:bold; color:#ff6060; font-size:11px; }
.av-mechanic { background: #303030; position: relative; }
.av-mechanic:before {
  content: "";
  position: absolute;
  left: 10px; top: 10px; width: 16px; height: 16px;
  border: 2px solid #c8c8c8;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}
.av-mechanic:after {
  content: "";
  position: absolute;
  left: 16px; top: 16px; width: 4px; height: 4px;
  background: #c8c8c8;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}

/* ---- Soft keys ---- */
#softkeys {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  background: #1a1a1a;
  border-top: 1px solid #333;
  z-index: 30;
  font-size: 0;
}

.softkey {
  display: inline-block;
  width: 33.33%;
  height: 44px;
  text-align: center;
  vertical-align: top;
  position: relative;
}

.sk-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-top: 8px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  position: relative;
}

.sk-left .sk-icon { background: #32c832; }
.sk-center .sk-icon { background: #f07818; }
.sk-right .sk-icon { background: #8a40c8; }

.sk-icon-keypad:before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; width: 16px; height: 16px;
  background-image: -webkit-radial-gradient(circle, #fff 1.5px, transparent 2px);
  background-image: radial-gradient(circle, #fff 1.5px, transparent 2px);
  background-size: 5px 5px;
}

.sk-icon-call:before {
  content: "";
  position: absolute;
  left: 6px; top: 8px; width: 16px; height: 12px;
  border: 3px solid #fff;
  -webkit-border-radius: 0 0 10px 10px;
  border-radius: 0 0 10px 10px;
  border-top: 0;
  -webkit-transform: rotate(-35deg);
  transform: rotate(-35deg);
}

.sk-icon-back:before {
  content: "";
  position: absolute;
  left: 10px; top: 7px;
  width: 12px; height: 12px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.sk-icon-plus:before {
  content: "+";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  line-height: 28px;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
}

.sk-icon-hangup:before {
  content: "";
  position: absolute;
  left: 5px; top: 10px; width: 18px; height: 8px;
  background: #fff;
  -webkit-border-radius: 8px 8px 2px 2px;
  border-radius: 8px 8px 2px 2px;
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

.sk-icon-blank { background: transparent !important; }

.softkey.sk-color-lime .sk-icon { background: #32c832; }
.softkey.sk-color-orange .sk-icon { background: #f07818; }
.softkey.sk-color-purple .sk-icon { background: #8a40c8; }
.softkey.sk-color-blue .sk-icon { background: #3080e0; }
.softkey.sk-color-red .sk-icon { background: #e03030; }

/* ---- System bar ---- */
#sysbar {
  height: 48px;
  margin-top: 6px;
  text-align: center;
  font-size: 0;
}

.sys-btn {
  display: inline-block;
  width: 33.33%;
  height: 48px;
  vertical-align: top;
  text-align: center;
}

.sys-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-top: 10px;
  position: relative;
}

.sys-search:before {
  content: "";
  position: absolute;
  left: 4px; top: 4px; width: 14px; height: 14px;
  border: 2px solid #c8c8c8;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}
.sys-search:after {
  content: "";
  position: absolute;
  right: 4px; bottom: 5px; width: 8px; height: 2px;
  background: #c8c8c8;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.sys-fruit {
  background: #e8e8e8;
  -webkit-border-radius: 50% 50% 40% 40%;
  border-radius: 50% 50% 40% 40%;
  width: 26px;
  height: 26px;
}
.sys-fruit:before {
  content: "";
  position: absolute;
  top: -4px; left: 10px; width: 6px; height: 6px;
  background: #e8e8e8;
  -webkit-border-radius: 3px;
  border-radius: 3px;
}
.sys-fruit:after {
  content: "";
  position: absolute;
  right: -1px; top: 8px; width: 8px; height: 10px;
  background: #0a0a0a;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}

.sys-back:before {
  content: "";
  position: absolute;
  left: 10px; top: 6px;
  width: 12px; height: 12px;
  border-left: 3px solid #c8c8c8;
  border-bottom: 3px solid #c8c8c8;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* ---- Keypad ---- */
.keypad-pane {
  position: absolute;
  top: 28px; left: 0; right: 0; bottom: 0;
  background: #1c1c1c;
}

.dial-display {
  height: 56px;
  line-height: 56px;
  text-align: center;
  font-size: 28px;
  letter-spacing: 2px;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
}

.keypad {
  text-align: center;
  font-size: 0;
  padding: 0 10px;
}

.key {
  display: inline-block;
  width: 33.33%;
  height: 54px;
  margin-bottom: 6px;
  vertical-align: top;
}

.key .k-num {
  display: block;
  width: 64px;
  height: 48px;
  margin: 0 auto;
  line-height: 36px;
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  color: #fff;
  background: #2e2e2e;
  background: -webkit-linear-gradient(top, #3a3a3a, #222);
  background: linear-gradient(to bottom, #3a3a3a, #222);
  -webkit-border-radius: 8px;
  border-radius: 8px;
  border: 1px solid #111;
  position: relative;
}

.key .k-sub {
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #aaa;
  font-weight: normal;
  line-height: 1;
}

.key .k-num { position: relative; }

.key:active .k-num,
.key.pressed .k-num {
  background: #555;
}

/* ---- Call ---- */
.call-pane {
  position: absolute;
  top: 28px; left: 0; right: 0; bottom: 0;
  background: #141414;
}

.call-status-row {
  height: 48px;
  line-height: 48px;
  padding: 0 12px 0 56px;
  position: relative;
  background: #222;
  border-bottom: 1px solid #333;
  font-size: 16px;
  font-weight: bold;
}

#call-avatar {
  position: absolute;
  left: 10px; top: 6px;
  width: 36px; height: 36px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
}

.call-hero {
  position: absolute;
  top: 80px; left: 0; right: 0; bottom: 20px;
  text-align: center;
}

.call-fruit {
  width: 120px;
  height: 120px;
  margin: 40px auto 16px;
  background: #2a2a2a;
  -webkit-border-radius: 50% 50% 42% 42%;
  border-radius: 50% 50% 42% 42%;
  position: relative;
  opacity: 0.55;
}
.call-fruit:before {
  content: "";
  position: absolute;
  top: -14px; left: 52px; width: 16px; height: 16px;
  background: #2a2a2a;
  -webkit-border-radius: 8px;
  border-radius: 8px;
}
.call-fruit:after {
  content: "";
  position: absolute;
  right: -4px; top: 40px; width: 28px; height: 36px;
  background: #141414;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}

.call-timer {
  font-size: 18px;
  color: #aaa;
}

/* ---- Thread / email ---- */
.thread-pane, .email-body {
  position: absolute;
  top: 28px; left: 0; right: 0; bottom: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #e8e8e8;
  padding: 10px;
  color: #111;
}

.bubble {
  max-width: 82%;
  margin: 0 0 10px;
  padding: 8px 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.35;
  clear: both;
}

.bubble.them {
  float: left;
  background: #fff;
  border: 1px solid #ccc;
}

.bubble.me {
  float: right;
  background: #d0ebff;
  border: 1px solid #8ab8e0;
}

.bubble-clear { clear: both; height: 0; }

.email-meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ccc;
}

.email-subject {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}

.email-text {
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

/* ---- Settings ---- */
.settings-pane {
  position: absolute;
  top: 28px; left: 0; right: 0; bottom: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #efefef;
  color: #111;
}

.settings-section {
  padding: 10px 12px 6px;
  font-size: 12px;
  font-weight: bold;
  color: #666;
  text-transform: uppercase;
}

.settings-row {
  background: #fff;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 14px;
}

.settings-row label {
  display: inline-block;
  width: 70px;
  font-weight: bold;
}

.settings-row select {
  width: 140px;
  font-size: 14px;
  padding: 4px;
}

.settings-note {
  margin: 8px 12px 20px;
  font-size: 13px;
  color: #444;
  line-height: 1.4;
}

.wallpaper-picker {
  padding: 0 8px 8px;
  font-size: 0;
}

.wp-swatch {
  display: inline-block;
  width: 33.33%;
  padding: 4px;
  vertical-align: top;
}

.wp-swatch a {
  display: block;
  height: 54px;
  -webkit-border-radius: 6px;
  border-radius: 6px;
  border: 2px solid #bbb;
  overflow: hidden;
  position: relative;
}

.wp-swatch a.on {
  border-color: #2a7ae0;
}

.wp-swatch span {
  display: block;
  font-size: 9px;
  color: #333;
  text-align: center;
  margin-top: 3px;
  font-weight: bold;
}

/* ---- Camera / gallery ---- */
.camera-pane {
  position: absolute;
  top: 28px; left: 0; right: 0; bottom: 0;
  background: #000;
}

.viewfinder {
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 70px;
  background: -webkit-linear-gradient(135deg, #2a4058, #102030 40%, #3a2818 100%);
  background: linear-gradient(135deg, #2a4058, #102030 40%, #3a2818 100%);
  border: 2px solid #444;
  overflow: hidden;
}

.vf-grid:before, .vf-grid:after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.2);
}
.vf-grid:before {
  left: 33%; top: 0; bottom: 0; width: 1px;
  -webkit-box-shadow: 33vw 0 0 rgba(255,255,255,0.2);
  box-shadow: 90px 0 0 rgba(255,255,255,0.2);
}
.vf-grid:after {
  top: 33%; left: 0; right: 0; height: 1px;
  -webkit-box-shadow: 0 90px 0 rgba(255,255,255,0.2);
  box-shadow: 0 90px 0 rgba(255,255,255,0.2);
}

.shutter-flash {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  opacity: 0;
  filter: alpha(opacity=0);
}

.shutter-flash.on {
  opacity: 0.85;
  filter: alpha(opacity=85);
}

.shutter-btn {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 100px;
  height: 40px;
  margin-left: -50px;
  line-height: 40px;
  text-align: center;
  background: -webkit-linear-gradient(top, #eee, #aaa);
  background: linear-gradient(to bottom, #eee, #aaa);
  color: #111;
  font-weight: bold;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  border: 1px solid #666;
}

.gallery-grid {
  position: absolute;
  top: 28px; left: 0; right: 0; bottom: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #111;
  font-size: 0;
  padding: 4px;
}

.gal-item {
  display: inline-block;
  width: 33.33%;
  padding: 3px;
  vertical-align: top;
}

.gal-item span {
  display: block;
  height: 70px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  border: 1px solid #333;
}

/* ---- Browser ---- */
.browser-pane {
  position: absolute;
  top: 28px; left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #111;
}

.browser-bar {
  height: 28px;
  line-height: 28px;
  background: #ddd;
  border-bottom: 1px solid #bbb;
  padding: 0 10px;
  font-size: 12px;
  color: #333;
}

.browser-content {
  position: absolute;
  top: 28px; left: 0; right: 0; bottom: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
}

.ef-logo {
  font-size: 22px;
  font-weight: bold;
  color: #e04000;
  margin-bottom: 8px;
}

.ef-search {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #aaa;
  margin-bottom: 12px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
}

.ef-card {
  display: block;
  padding: 10px;
  margin-bottom: 8px;
  background: #f6f6f6;
  border: 1px solid #ddd;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  color: #111;
}

.ef-card strong { display: block; margin-bottom: 4px; color: #1a4a8a; }
.ef-card span { font-size: 12px; color: #555; }

/* ---- Search ---- */
.search-pane {
  position: absolute;
  top: 28px; left: 0; right: 0; bottom: 0;
  background: #fff;
}

#search-input {
  display: block;
  width: 100%;
  height: 36px;
  border: 0;
  border-bottom: 1px solid #ccc;
  padding: 0 12px;
  font-size: 15px;
  -webkit-appearance: none;
}

#search-results {
  position: absolute;
  top: 36px; left: 0; right: 0; bottom: 0;
}

/* Full-bleed phone on small screens */
@media screen and (max-width: 360px), screen and (max-height: 600px) {
  #phone {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
  }
  .phone-bezel {
    -webkit-border-radius: 0;
    border-radius: 0;
    border: 0;
    padding: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
  }
  .phone-earpiece { display: none; }
  #screen {
    height: auto;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 48px;
    border: 0;
  }
  #sysbar {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    margin: 0;
    background: #0a0a0a;
  }
}
