@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Inter", "Helvetica Neue", Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --page-bg: #f5f5f7;

  --screen-w: 393px;
  --screen-h: 852px;
  --screen-radius: 55px;
  --bezel: 13px;
  --frame: 4px;
  --sb-h: 54px;
  --home-safe: 34px;

  --blue: #007aff;
  --blue-top: #5bc6fa;
  --blue-bottom: #0278fe;
  --bubble-gray: #e9e9eb;
  --label-2: #8e8e93;
  --lock-tint: #fff;

  --kb-h: 335px;
  --kb-bg: #d1d4da;
  --kb-key: #fff;
  --kb-fn: #abb0ba;

  --ease-ios: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.25, 1.2, .45, 1);
  --spring-bouncy: cubic-bezier(.2, 1.35, .4, 1);
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.0218, 0.0775, 0.155, 0.2447, 0.3393, 0.4335, 0.5236, 0.607, 0.6823, 0.7487, 0.8061, 0.8547, 0.8951, 0.9281, 0.9544, 0.9749, 0.9904, 1.0018, 1.0098, 1.0151, 1.0182, 1.0197, 1.0199, 1.0192, 1.018, 1.0163, 1.0145, 1.0126, 1.0107, 1.009, 1.0074, 1.0059, 1.0046, 1.0036, 1.0026, 1.0019, 1.0013, 1.0008, 1.0004, 1);
    --spring-bouncy: linear(0, 0.0344, 0.1216, 0.2404, 0.374, 0.5094, 0.6371, 0.7512, 0.8482, 0.9268, 0.9872, 1.0308, 1.0597, 1.0762, 1.083, 1.0824, 1.0766, 1.0676, 1.0567, 1.0454, 1.0344, 1.0244, 1.0157, 1.0085, 1.0029, 0.9987, 0.9958, 0.9941, 0.9932, 0.993, 0.9934, 0.994, 0.9949, 0.9958, 0.9968, 0.9977, 0.9984, 0.9991, 0.9996, 1, 1);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  overflow: hidden;
  background: var(--page-bg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus { outline: none; }
svg { display: block; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(120vmax 90vmax at 50% 35%, #fff 0%, var(--page-bg) 55%, #e8e8ed 100%);
}
.device {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: var(--frame);
  border-radius: calc(var(--screen-radius) + var(--bezel) + var(--frame));
  background: linear-gradient(135deg, #e6e3de 0%, #aba7a1 16%, #f1efeb 38%, #918d87 62%, #d8d5d0 82%, #a09c96 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .6),
    inset 0 0 3px 1px rgba(0, 0, 0, .25),
    0 1px 3px rgba(0, 0, 0, .15),
    0 30px 70px -25px rgba(0, 0, 0, .45);
  transform: translate(-50%, -50%) scale(var(--scale, 1));
}
.hw {
  position: absolute;
  z-index: -1;
  width: 5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #8c8882, #dedbd6 55%, #a5a19b);
}
.hw-action   { left: -2px; top: 165px; height: 34px; }
.hw-vol-up   { left: -2px; top: 230px; height: 62px; }
.hw-vol-down { left: -2px; top: 305px; height: 62px; }
.hw-power    { right: -2px; top: 260px; height: 100px; }

.screen {
  position: relative;
  width: calc(var(--screen-w) + 2 * var(--bezel));
  height: calc(var(--screen-h) + 2 * var(--bezel));
  border: var(--bezel) solid #070708;
  border-radius: calc(var(--screen-radius) + var(--bezel));
  overflow: hidden;
  isolation: isolate;
  background: #000;
}
.lock, .app { position: absolute; inset: 0; }
.lock { z-index: 1; color: #fff; touch-action: none; }
.app { z-index: 2; color: #000; background: #fff; }

.statusbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: var(--sb-h);
  color: #fff;
  pointer-events: none;
  transition: color .35s ease;
}
.screen.scene-app .statusbar { color: #000; }
.sb-left, .sb-right {
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(50% - 63px);
  height: 59px;
}
.sb-left { left: 0; padding-left: 10px; }
.sb-right { right: 0; gap: 6px; padding-right: 1px; }
.sb-time { display: none; font-size: 17px; font-weight: 600; letter-spacing: -.4px; }
.sb-carrier { font-size: 15px; font-weight: 500; letter-spacing: -.2px; }
.screen.scene-app .sb-time { display: block; }
.screen.scene-app .sb-carrier { display: none; }
.sb-right svg { fill: currentColor; }
.sb-signal  { width: 18px; height: 12px; }
.sb-wifi    { width: 16px; height: 12px; }
.sb-battery { width: 27px; height: 13px; }
.sb-cc {
  position: absolute;
  top: 42px;
  right: calc((50% - 63px - 44px) / 2);
  width: 44px;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(255, 192, 228, .75);
  transition: opacity .3s ease;
}
.screen.scene-app .sb-cc { opacity: 0; }

.island {
  position: absolute;
  z-index: 21;
  top: 11px;
  left: 50%;
  width: 126px;
  height: 37px;
  border-radius: 19px;
  background: #000;
  transform: translateX(-50%);
  transition: width .5s var(--ease-ios);
}
.screen.is-locked .island { width: 170px; }
.island-lock {
  position: absolute;
  z-index: 22;
  top: 21px;
  left: calc(50% - 74px);
  width: 12px;
  height: 16px;
  overflow: visible;
  color: #fff;
  transition: opacity .2s ease;
}
.screen:not(.is-locked) .island-lock { opacity: 0; }
.screen.is-unlocked .island-lock .shackle { animation: shackle-open .55s var(--ease-ios) forwards; }
@keyframes shackle-open {
  0%   { transform: none; }
  40%  { transform: translateY(-3px); }
  100% { transform: translate(6.8px, -1.6px); }
}
.island-cam {
  position: absolute;
  z-index: 22;
  top: 24px;
  left: calc(50% + 40px);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #2a3150 0, #141826 42%, #060608 72%);
}
.home-indicator {
  position: absolute;
  z-index: 23;
  left: 50%;
  bottom: 8px;
  width: 134px;
  height: 5px;
  margin-left: -67px;
  border-radius: 3px;
  background: #fff;
  pointer-events: none;
  transition: background-color .35s ease;
}
.screen.scene-app .home-indicator { background: #000; }

.wallpaper {
  position: absolute;
  inset: 0;
  background: #6b0a1c url("../img/wallpaper.jpg") center / cover no-repeat;
}
.lock-clock {
  position: absolute;
  top: calc(var(--sb-h) + 22px);
  left: 0;
  right: 0;
  text-align: center;
  color: var(--lock-tint);
  pointer-events: none;
}
.lock-date { font-size: 21px; line-height: 26px; font-weight: 600; letter-spacing: .1px; }
.lock-time { margin-top: 2px; font-size: 102px; line-height: 1; font-weight: 650; letter-spacing: -2.5px; }

.notif-area { position: absolute; left: 13px; right: 13px; bottom: 118px; }
.notif {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  color: #000;
  cursor: pointer;
  background: rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(30px) saturate(1.9);
  backdrop-filter: blur(30px) saturate(1.9);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04), 0 6px 24px -10px rgba(0, 0, 0, .25);
  transition: transform .2s var(--ease-ios);
}
.notif:active { transform: scale(.97); }
.notif:focus { outline: none; }
.notif-face { display: flex; align-items: center; gap: 11px; min-height: 64px; padding: 11px 15px 12px 13px; }
.notif[data-state="hidden"] .notif-full,
.notif[data-state="full"] .notif-hidden { display: none; }
.notif-avatar { position: relative; flex: none; width: 40px; height: 40px; }
.notif-avatar .avatar { width: 40px; height: 40px; font-size: 17px; }
.notif-badge { position: absolute; right: -4px; bottom: -3px; width: 18px; height: 18px; }
.notif-app-icon { flex: none; width: 38px; height: 38px; margin: 0 1px; }
.notif-body { flex: 1 1 auto; min-width: 0; }
.notif-head { display: flex; align-items: baseline; gap: 8px; }
.notif-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -.24px;
}
.notif-time { flex: none; font-size: 13.5px; line-height: 20px; letter-spacing: -.1px; color: rgba(60, 60, 67, .62); }
.notif-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  overflow-wrap: break-word;
  font-size: 15px;
  line-height: 19px;
  letter-spacing: -.24px;
}

.lock-actions { position: absolute; left: 46px; right: 46px; bottom: 47px; display: flex; justify-content: space-between; }
.lock-btn {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 24, 48, .26);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  transition: transform .5s var(--spring-bouncy), background-color .2s ease, color .2s ease;
}
.lock-btn svg { width: 25px; height: 25px; fill: currentColor; }
.lock-btn:active { transform: scale(1.16); background-color: rgba(255, 255, 255, .3); }
.lock-btn.is-on { background-color: #fff; color: #1c1c1e; }
.lock-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 37px;
  text-align: center;
  font-size: 15px;
  line-height: 21px;
  font-weight: 600;
  letter-spacing: -.1px;
  color: rgba(255, 255, 255, .96);
  pointer-events: none;
  transition: opacity .25s ease;
}
.lock-hint.is-swapping { opacity: 0; }

.app-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #a5abb8 0%, #858994 100%) center / cover no-repeat;
  font-family: var(--font-rounded);
  font-weight: 600;
  letter-spacing: .3px;
}
.avatar.has-photo { color: transparent; }

.conv-header {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--sb-h) + 80px);
  background: rgba(246, 246, 246, .86);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  box-shadow: 0 .5px 0 rgba(0, 0, 0, .18);
}
.nav-back {
  position: absolute;
  left: 8px;
  top: calc(var(--sb-h) + 17px);
  display: flex;
  align-items: center;
  min-width: 34px;
  height: 30px;
  padding-left: 5px;
  color: var(--blue);
}
.nav-badge {
  min-width: 21px;
  height: 21px;
  margin-left: 5px;
  padding: 0 6.5px;
  border-radius: 10.5px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: -.2px;
  text-align: center;
}
.nav-back svg { width: 12px; height: 21px; }
.conv-contact {
  position: absolute;
  top: calc(var(--sb-h) + 7px);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
}
.conv-contact .avatar { width: 50px; height: 50px; font-size: 21px; }
.conv-name {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  font-size: 11px;
  line-height: 13px;
  white-space: nowrap;
  color: #000;
}
.conv-name svg { width: 5px; height: 9px; color: #8e8e93; }
.nav-video {
  position: absolute;
  right: 15px;
  top: calc(var(--sb-h) + 17px);
  display: grid;
  place-items: center;
  width: 38px;
  height: 30px;
  color: var(--blue);
}
.nav-video svg { width: 28px; height: 19px; }

.thread {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.thread::-webkit-scrollbar { display: none; }
.thread-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: calc(var(--sb-h) + 80px + 8px) 17px 14px;
}
.thread-meta { margin-bottom: 4px; text-align: center; font-size: 11px; line-height: 14px; color: var(--label-2); }
.thread-meta b { font-weight: 600; }

.msg-row { display: flex; margin-top: 10px; }
.msg-row.grouped { margin-top: 2px; }
.msg-row.them { justify-content: flex-start; }
.msg-row.me { justify-content: flex-end; }

.bubble {
  position: relative;
  z-index: 0;
  max-width: 81%;
  padding: 6px 12px 7px;
  border-radius: 18px;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -.4px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.them .bubble { color: #000; background: var(--bubble-gray); transform-origin: 0 100%; }
.me .bubble {
  color: #fff;
  transform-origin: 100% 100%;
  background-color: var(--blue-bottom);
  background-image: linear-gradient(180deg, var(--blue-top) 33.333%, var(--blue-bottom) 66.667%);
  background-size: 100% calc(var(--grad-h, 700px) * 3);
  background-position: 0 calc(-1 * var(--gy, 600px) - var(--grad-h, 700px));
  background-repeat: no-repeat;
}
.bubble.tail::before,
.bubble.tail::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 0;
  height: 20px;
}
.them .bubble.tail::before { left: -7px; width: 20px; background: var(--bubble-gray); border-bottom-right-radius: 15px; }
.them .bubble.tail::after  { left: -10px; width: 10px; background: #fff; border-bottom-right-radius: 10px; }
.me .bubble.tail::before {
  right: -7px;
  width: 20px;
  border-bottom-left-radius: 15px;
  background-color: var(--blue-bottom);
  background-image: inherit;
  background-size: inherit;
  background-repeat: no-repeat;
  background-position: 0 calc(-1 * var(--gy, 600px) - var(--grad-h, 700px) - var(--bh, 35px) + 20px);
}
.me .bubble.tail::after { right: -10px; width: 10px; background: #fff; border-bottom-left-radius: 10px; }
.bubble.jumbo {
  padding: 0 2px;
  background: none !important;
  font-size: 50px;
  line-height: 60px;
  letter-spacing: 0;
}
.msg-row.has-tapback { margin-top: 24px; }
.tapback {
  position: absolute;
  z-index: 1;
  top: -20px;
  left: -21px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--bubble-gray);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff);
}
.tapback::before,
.tapback::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; background: var(--bubble-gray); }
.tapback::before { left: -3px; bottom: -3px; width: 11px; height: 11px; }
.tapback::after  { left: -8px; bottom: -8px; width: 5px; height: 5px; }
.bubble.jumbo .tapback { top: -6px; }

.detected { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2.5px; }

.receipt {
  align-self: flex-end;
  margin: 3px 2px 0 0;
  font-size: 11px;
  line-height: 13px;
  white-space: nowrap;
  color: var(--label-2);
}
.receipt b { font-weight: 600; }

.typing-row { margin-top: 10px; margin-bottom: 6px; padding-left: 3px; }
.typing {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.5px;
  width: 62px;
  height: 38px;
  border-radius: 19px;
  background: var(--bubble-gray);
  transform-origin: 6px 100%;
}
.typing::before,
.typing::after { content: ""; position: absolute; border-radius: 50%; background: var(--bubble-gray); }
.typing::before { left: -2px; bottom: -2px; width: 14px; height: 14px; }
.typing::after  { left: -6.5px; bottom: -7.5px; width: 7px; height: 7px; }
.typing i {
  width: 8.5px;
  height: 8.5px;
  border-radius: 50%;
  background: #7d7d82;
  opacity: .32;
  animation: typing-dot 1.3s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typing-dot {
  0%, 60%, 100% { opacity: .32; }
  28%           { opacity: 1; }
}

.composer {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 6px 13px max(8px, calc(var(--home-safe) - 5px)) 12px;
  background: #fff;
  transition: padding-bottom .42s var(--ease-ios);
}
.app.kb-open .composer { padding-bottom: 7px; }
.composer-plus {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 1px;
  border-radius: 50%;
  background: #e8e9eb;
  color: #86888e;
}
.composer-plus svg { width: 15px; height: 15px; }
.field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 36px;
  padding: 6px 42px 6px 13px;
  border: 1px solid #d1d1d6;
  border-radius: 18px;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -.4px;
  color: #000;
  cursor: text;
}
.field-text { min-height: 22px; white-space: pre-wrap; overflow-wrap: break-word; }
.field-placeholder { position: absolute; left: 14px; top: 6px; white-space: nowrap; color: #c4c4c6; pointer-events: none; }
.field.has-text .field-placeholder { display: none; }
.field.is-focused .field-text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 21px;
  margin: .5px 0 0 1px;
  vertical-align: top;
  border-radius: 1px;
  background: var(--blue);
  animation: caret-blink 1.05s infinite;
}
.field.is-focused:not(.has-text) .field-placeholder { left: 17px; }
.field.is-typing .field-text::after { animation: none; }
@keyframes caret-blink {
  0%, 42%   { opacity: 1; }
  58%, 100% { opacity: 0; }
}
.field-mic { position: absolute; right: 11px; bottom: 7px; color: #a1a1a6; }
.field-mic svg { width: 14px; height: 21px; fill: currentColor; }
.send-btn {
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}
.send-btn svg { width: 15px; height: 15px; }
.field.has-text .send-btn { display: grid; animation: pop-in .4s var(--spring-bouncy); }
.field.has-text .field-mic { display: none; }
@keyframes pop-in { from { transform: scale(.3); opacity: 0; } }

.kb-wrap {
  position: relative;
  z-index: 2;
  flex: none;
  height: 0;
  overflow: hidden;
  transition: height .42s var(--ease-ios);
}
.app.kb-open .kb-wrap { height: var(--kb-h); }
.kb { position: relative; height: var(--kb-h); background: var(--kb-bg); color: #000; }

.kb-qt { display: flex; align-items: center; height: 46px; }
.kb-qt-items { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; height: 100%; }
.kb-qt-items.is-fresh { animation: qt-in .25s ease-out; }
@keyframes qt-in { from { opacity: 0; transform: translateY(2px); } }
.kb-qt-item {
  flex: 1 1 0;
  min-width: 0;
  height: 38px;
  margin: 0 3px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 17px;
  letter-spacing: -.3px;
  color: #000;
  transition: background-color .15s ease;
}
.kb-qt-item span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kb-qt-item:active,
.kb-qt-item.is-pressed { background: rgba(255, 255, 255, .6); }
.kb-qt.is-idle .kb-qt-item { cursor: default; }
.kb-qt.is-idle .kb-qt-item:active { background: none; }
.kb-qt-sep { flex: none; width: 1px; height: 25px; background: rgba(60, 60, 67, .18); }
.kb-qt-format { flex: none; display: grid; place-items: center; width: 48px; height: 100%; }
.kb-qt-format svg { width: 25px; height: 19px; }

.kb-keys { padding: 7px 3px 0; }
.kb-row { display: flex; gap: 6px; height: 42px; }
.kb-row + .kb-row { margin-top: 12px; }
.kb-row-1, .kb-row-2 { justify-content: center; }
.kb-key {
  flex: none;
  height: 42px;
  border-radius: 5px;
  background: var(--kb-key);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .3);
  font-size: 22.5px;
  line-height: 42px;
  text-align: center;
  color: #000;
}
.kb-letter { width: calc((100% - 54px) / 10); }
.kb-fn { background: var(--kb-fn); }
.kb-shift, .kb-del { display: grid; place-items: center; width: 44px; }
.kb-shift { margin-right: auto; }
.kb-del { margin-left: auto; }
.kb-shift svg { width: 23px; height: 23px; fill: none; stroke: currentColor; }
.kb.is-shift .kb-shift svg { fill: currentColor; }
.kb-del svg { width: 26px; height: 19px; }
.kb-row-4 .kb-fn { width: 92px; font-size: 16px; letter-spacing: -.2px; }
.kb-space { flex: 1 1 auto; font-size: 16px; letter-spacing: -.2px; }
.kb.is-shift .kb-letter { text-transform: uppercase; }
.kb-fn.is-pressed { background: #fff; }
.kb-space.is-pressed { background: var(--kb-fn); }

.kb-bottom {
  position: absolute;
  left: 0;
  right: 0;
  top: 280px;
  display: flex;
  justify-content: space-between;
  padding: 0 28px 0 27px;
}
.kb-icon { display: grid; place-items: center; width: 30px; height: 30px; color: #4f5257; transition: opacity .12s; }
.kb-icon svg { fill: currentColor; }
.kb-icon[data-k="emoji"] svg { width: 27px; height: 27px; }
.kb-icon[data-k="dictation"] svg { width: 19px; height: 27px; }
.kb-icon.is-pressed { opacity: .45; }

.kb-keys-numbers, .kb-emoji, .kb-abc { display: none; }
.kb[data-mode="numbers"] .kb-keys-letters { display: none; }
.kb[data-mode="numbers"] .kb-keys-numbers { display: block; }
.kb[data-mode="emoji"] .kb-qt,
.kb[data-mode="emoji"] .kb-keys { display: none; }
.kb[data-mode="emoji"] .kb-emoji { display: block; }
.kb[data-mode="emoji"] .kb-icon[data-k="emoji"] { display: none; }
.kb[data-mode="emoji"] .kb-abc { display: grid; }
.kb-keys-numbers .kb-letter { font-size: 23px; }
.kb-keys-numbers .kb-punct { width: 47px; }
.kb-sym { font-size: 16px; letter-spacing: -.2px; }
.kb-abc { width: auto; min-width: 30px; font-size: 16px; font-weight: 500; letter-spacing: -.2px; color: #3c3c40; }

.kb-emoji { padding-top: 8px; }
.kb-emoji-search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  margin: 0 8px;
  padding: 0 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .55);
  font-size: 17px;
  letter-spacing: -.4px;
  color: #85868b;
  cursor: text;
}
.kb-emoji-search svg { width: 16px; height: 16px; color: #85868b; }
.kb-emoji-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, 46px);
  grid-auto-columns: 52px;
  height: 188px;
  margin-top: 6px;
  padding: 0 4px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.kb-emoji-grid::-webkit-scrollbar { display: none; }
.kb-emo {
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 33px;
  line-height: 1;
  transition: background-color .12s, transform .12s;
}
.kb-emo.is-pressed { background: rgba(0, 0, 0, .1); transform: scale(.9); }
.kb-emoji-cats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  margin-top: 4px;
  padding: 0 8px 0 10px;
}
.kb-cat {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #6c6d72;
}
.kb-cat svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kb-cat.is-on { background: rgba(0, 0, 0, .09); color: #3c3c40; }
.kb-cat-del { width: 34px; border-radius: 6px; }
.kb-cat-del svg { width: 25px; height: 18px; fill: none; stroke: none; }
.kb-cat-del.is-pressed { background: rgba(0, 0, 0, .09); }

.kb-pop { position: absolute; z-index: 5; pointer-events: none; filter: drop-shadow(0 .5px 1.2px rgba(0, 0, 0, .42)); }
.kb-pop-bulb {
  display: grid;
  place-items: center;
  height: 50px;
  padding-bottom: 3px;
  border-radius: 9px;
  background: #fff;
  font-size: 34px;
  line-height: 1;
  color: #000;
}
.kb-pop-stem {
  position: absolute;
  top: 44px;
  left: var(--stem-x, 11px);
  width: var(--stem-w, 33px);
  height: calc(var(--stem-h, 42px) + 6px);
  border-radius: 0 0 5px 5px;
  background: #fff;
}

.app-content.is-sliding { box-shadow: -6px 0 24px rgba(0, 0, 0, .1); }
.inbox {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding-top: var(--sb-h);
  background: #fff;
  scrollbar-width: none;
}
.inbox::-webkit-scrollbar { display: none; }
.inbox-nav { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 16px 0 18px; color: var(--blue); }
.inbox-edit { font-size: 17px; letter-spacing: -.4px; }
.inbox-compose svg { width: 24px; height: 24px; }
.inbox-title { margin: 2px 0 0; padding: 0 18px; font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: .4px; }
.inbox-search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  margin: 8px 16px 10px;
  padding: 0 9px;
  border-radius: 10px;
  background: #eeeef0;
  font-size: 17px;
  letter-spacing: -.4px;
  color: #8a8a8e;
}
.inbox-search-icon { width: 16px; height: 16px; }
.inbox-search-mic { width: 12px; height: 18px; margin-left: auto; fill: currentColor; }
.inbox-row {
  display: flex;
  align-items: center;
  width: 100%;
  height: 76px;
  overflow: hidden;
  text-align: left;
}
.inbox-row:active { background: #e5e5ea; }
.inbox-dot { flex: none; width: 10px; height: 10px; margin: 0 6px 0 7px; border-radius: 50%; }
.inbox-row.is-unread .inbox-dot { background: var(--blue); }
.inbox-avatar { flex: none; width: 45px; height: 45px; font-size: 19px; }
.inbox-main {
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 12px;
  padding-right: 16px;
  box-shadow: inset 0 -.5px 0 rgba(60, 60, 67, .29);
}
.inbox-top { display: flex; align-items: baseline; gap: 6px; }
.inbox-name { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 17px; font-weight: 600; letter-spacing: -.4px; }
.inbox-time { flex: none; font-size: 15px; letter-spacing: -.2px; color: var(--label-2); }
.inbox-top svg { flex: none; width: 7px; height: 12px; color: #c4c4c7; align-self: center; }
.inbox-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 1px;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -.2px;
  color: var(--label-2);
}

.chat-other .thread-inner { min-height: 100%; }
.chat-other .field { cursor: default; }

.apps-menu { position: absolute; inset: 0; z-index: 30; }
.apps-scrim { position: absolute; inset: 0; background: rgba(255, 255, 255, .25); }
.apps-panel {
  position: absolute;
  left: 10px;
  bottom: calc(var(--home-safe) + 110px);
  width: 322px;
  max-height: calc(100% - var(--sb-h) - var(--home-safe) - 150px);
  overflow-y: auto;
  padding: 10px 0;
  border-radius: 34px;
  background: rgba(250, 250, 252, .82);
  -webkit-backdrop-filter: saturate(1.8) blur(26px);
  backdrop-filter: saturate(1.8) blur(26px);
  box-shadow: 0 10px 50px rgba(0, 0, 0, .16), 0 0 0 .5px rgba(0, 0, 0, .06);
  transform-origin: 18px 100%;
  scrollbar-width: none;
}
.apps-panel::-webkit-scrollbar { display: none; }
.apps-item { display: flex; align-items: center; gap: 22px; width: 100%; height: 66px; padding: 0 34px; text-align: left; font-size: 20px; letter-spacing: -.45px; color: #000; }
.apps-item:active { background: rgba(0, 0, 0, .05); }
.apps-ico { flex: none; width: 39px; height: 39px; }

.banner {
  position: absolute;
  z-index: 35;
  top: calc(var(--sb-h) + 4px);
  left: 8px;
  right: 8px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.banner-card {
  border-radius: 22px;
  background: rgba(250, 250, 250, .88);
  -webkit-backdrop-filter: blur(30px) saturate(1.9);
  backdrop-filter: blur(30px) saturate(1.9);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 10px 34px -6px rgba(0, 0, 0, .3);
  transition: transform .2s var(--ease-ios);
}
.banner:active .banner-card { transform: scale(.97); }
.banner .notif-text { -webkit-line-clamp: 2; }

.alert {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .2);
}
.alert-box {
  width: 270px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(242, 242, 242, .86);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  text-align: center;
}
.alert-text { padding: 19px 16px 18px; }
.alert-title { font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -.4px; }
.alert-message { margin-top: 2px; font-size: 13px; line-height: 18px; letter-spacing: -.1px; }
.alert-btn {
  display: block;
  width: 100%;
  height: 44px;
  border-top: .5px solid rgba(60, 60, 67, .29);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.4px;
  color: var(--blue);
}
.alert-btn:active { background: rgba(0, 0, 0, .06); }

@media (max-width: 500px) {
  :root {
    --bezel: 0px;
    --frame: 0px;
    --screen-radius: 0px;
    --sb-h: env(safe-area-inset-top, 0px);
    --home-safe: env(safe-area-inset-bottom, 0px);
  }
  body, .stage { background: #000; }
  .device {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    transform: none;
  }
  .hw, .statusbar, .island, .island-lock, .island-cam, .home-indicator { display: none; }
  .screen { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .lock-clock { top: calc(var(--sb-h) + 34px); }
}
