:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --screen-radius: 49px;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --blue: #087ff5;
  --red: #ff3b30;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

button {
  color: inherit;
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  background:
    radial-gradient(circle at 50% 12%, rgba(255,255,255,.98), rgba(247,247,248,.93) 38%, #e7e8ea 100%);
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
}

.device {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 430px;
  height: 932px;
  flex: 0 0 auto;
  padding: 8px;
  border: 1px solid #3e4145;
  border-radius: 59px;
  background:
    linear-gradient(90deg, #050607 0 2%, #393b3c 3%, #090a0b 6%, #1b1d1e 93%, #55585a 97%, #090a0b 100%);
  box-shadow:
    0 28px 55px rgba(18, 22, 27, .3),
    0 4px 9px rgba(0,0,0,.28),
    inset 0 0 0 2px #000,
    inset 0 0 0 4px rgba(255,255,255,.14);
  transform: translate(-50%, -50%) scale(var(--device-scale, 1));
  transform-origin: center;
}

.device::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 56px;
  pointer-events: none;
  z-index: 30;
}

.hardware {
  position: absolute;
  width: 4px;
  border-radius: 3px 0 0 3px;
  left: -4px;
  background: linear-gradient(90deg, #1a1b1c, #6f7172 40%, #111);
  box-shadow: -1px 0 1px rgba(0,0,0,.5);
}

.hardware--mute { top: 16%; height: 4.8%; }
.hardware--up { top: 25%; height: 8.1%; }
.hardware--down { top: 35%; height: 8.1%; }
.hardware--power {
  left: auto;
  right: -4px;
  top: 27%;
  height: 14%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #111, #737576 60%, #171819);
}

.screen {
  --system-safe-bottom: 0px;
  --dock-bottom: 15px;
  --search-bottom: 111px;
  --toast-bottom: 124px;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--screen-radius);
  background: #dfb6ae;
  isolation: isolate;
}

.screen,
.screen * {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

.screen svg,
.screen img {
  -webkit-user-drag: none !important;
  user-drag: none !important;
}

.screen ::selection {
  color: inherit;
  background: transparent;
}

.wallpaper,
.wallpaper span {
  position: absolute;
  inset: 0;
}

.wallpaper {
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 21%, #ffc6cb 0, #ffbcbf 22%, transparent 46%),
    linear-gradient(132deg, #ffd8c7 0%, #f5acaf 40%, #76c7cf 40.3%, #078eac 62%, #006687 82%, #004a6e 100%);
}

.wallpaper__sun {
  background: radial-gradient(circle at 83% 4%, rgba(255,225,99,.98), rgba(255,213,86,.48) 20%, transparent 47%);
}

.wallpaper__pink {
  left: -50% !important;
  top: 43% !important;
  width: 126% !important;
  height: 104% !important;
  border-radius: 0 52% 0 0;
  transform: rotate(-9deg);
  background: linear-gradient(105deg, #ffd8d8 0%, #ffc9cd 52%, #f1a8ad 100%);
  box-shadow: 5px -2px 0 rgba(42, 84, 105, .34);
}

.wallpaper__blue {
  inset: auto -20% -16% 45% !important;
  width: 90% !important;
  height: 78% !important;
  transform: rotate(34deg);
  border-radius: 45% 0 0 0;
  background: linear-gradient(145deg, rgba(52,171,190,.35), rgba(0,92,132,.12));
}

.status-bar {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 61px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 28px 0;
  color: #fff;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.12));
}

.status-bar time {
  width: 64px;
  font-size: 17px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: .2px;
  text-align: center;
}

.dynamic-island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 123px;
  height: 36px;
  transform: translateX(-50%);
  border-radius: 23px;
  background: #020203;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 1px 1px rgba(255,255,255,.06);
}

.dynamic-island span {
  position: absolute;
  right: 13px;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: .72;
  background: radial-gradient(circle at 35% 35%, #143dbf, #02133b 42%, #000 70%);
}

.status-icons {
  width: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.cellular { width: 20px; fill: currentColor; }
.wifi { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.battery {
  position: relative;
  display: block;
  width: 24px;
  height: 11px;
  border: 1.3px solid rgba(255,255,255,.8);
  border-radius: 3px;
}

.battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 4px;
  border-radius: 0 2px 2px 0;
  background: rgba(255,255,255,.65);
}

.battery i {
  position: absolute;
  inset: 1.5px;
  border-radius: 1.5px;
  background: currentColor;
}

.home {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 83px 24px 18px;
}

.home:focus { outline: none; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 91px;
  column-gap: 15px;
  flex: 0 0 auto;
}

.app {
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.42);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: default;
  user-select: none;
}

.app[data-app="firefox"] {
  cursor: pointer;
  touch-action: none;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

.keyboard-nav .app:focus-visible .app-icon {
  outline: 3px solid rgba(255,255,255,.96);
  outline-offset: 3px;
}

.app__label {
  display: block;
  width: 84px;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 450;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 13px;
  background: #fff;
  box-shadow:
    inset 0 0 0 .5px rgba(0,0,0,.08),
    0 2px 5px rgba(0,0,0,.19);
  transition: transform .16s ease, opacity .24s ease;
}

.app-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.app[data-app="firefox"].is-pressing .app-icon {
  transform: scale(.92);
  filter: brightness(.92);
}
.app.is-deleting .app-icon { transform: scale(.08); opacity: 0; }
.app.is-deleting .app__label { opacity: 0; transition: opacity .16s; }

.search-pill {
  position: absolute;
  left: 50%;
  bottom: calc(var(--search-bottom) + var(--system-safe-bottom));
  transform: translateX(-50%);
  height: 29px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.93);
  border: .5px solid rgba(255,255,255,.28);
  border-radius: 18px;
  background: rgba(65,108,135,.62);
  box-shadow: 0 1px 2px rgba(0,0,0,.14);
  backdrop-filter: blur(13px) saturate(130%);
  -webkit-backdrop-filter: blur(13px) saturate(130%);
  font-size: 13px;
  font-weight: 450;
}

.search-pill svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.dock {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: calc(var(--dock-bottom) + var(--system-safe-bottom));
  height: 89px;
  padding: 14px 18px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border: .5px solid rgba(255,255,255,.24);
  border-radius: 35px;
  background: rgba(138,169,185,.48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 2px 12px rgba(0,0,0,.08);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.dock .app { display: block; }
.dock .app-icon { width: 61px; height: 61px; border-radius: 14px; }
.dock .app__label { display: none; }

/* Every home icon has its own artwork and background. */
.icon-phone { background: linear-gradient(160deg, #55ee6d, #03c828 74%); }
.icon-messages { background: linear-gradient(160deg, #63f67d, #04c72c 76%); }
.icon-mail { background: linear-gradient(160deg, #3bb7ff, #0797ec); }
.icon-calendar { background: #fff; color: #111; }
.icon-camera { background: linear-gradient(#ededee, #aeb3b8); }
.icon-weather { background: linear-gradient(#0874e2, #40b4ef); }
.icon-notes { background: repeating-linear-gradient(#fff 0 10px, #d7d7d7 10px 11px); }
.icon-clock { background: #151515; }
.icon-music { background: linear-gradient(150deg, #ff7181, #fa284c); }
.icon-reminders { background: #fbfbfb; }
.icon-store { background: linear-gradient(#20c9f0, #0878eb); }
.icon-podcasts { background: linear-gradient(145deg, #cd87ee, #8650d8); }
.icon-tv { background: linear-gradient(150deg, #3a3a3b, #030303 75%); }
.icon-health { background: #fff; }
.icon-wallet { background: linear-gradient(150deg, #4c4d4f, #060708 80%); }
.icon-settings { background: linear-gradient(145deg, #e6e8e9, #8f959a); }
.icon-maps { background: #eee; }
.icon-photos { background: #fff; }
.icon-firefox { background: linear-gradient(145deg, #f9fbff, #e6edf6); }
.icon-safari { background: linear-gradient(145deg, #fff, #e9edf1); }

.context-overlay {
  position: absolute;
  z-index: 15;
  inset: 0;
  overflow: hidden;
}

.context-overlay[hidden] { display: none; }
.context-overlay.is-closing { pointer-events: none; }

.context-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 31, 40, .22);
  backdrop-filter: blur(8px) saturate(82%);
  -webkit-backdrop-filter: blur(8px) saturate(82%);
  animation: context-backdrop-in .2s ease-out both;
}

.context-preview {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.42);
  transform-origin: center center;
  animation: context-preview-in .34s cubic-bezier(.17,.89,.32,1.28) both;
  pointer-events: none;
}

.context-preview .app-icon {
  flex: 0 0 auto;
  transition: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.28), inset 0 0 0 .5px rgba(0,0,0,.08);
}

.context-menu {
  position: absolute;
  z-index: 3;
  width: min(242px, calc(100% - 24px));
  overflow: hidden;
  border: .5px solid rgba(255,255,255,.58);
  border-radius: 14px;
  color: #111114;
  background: rgba(246,246,248,.89);
  box-shadow: 0 12px 35px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.62);
  backdrop-filter: blur(30px) saturate(155%);
  -webkit-backdrop-filter: blur(30px) saturate(155%);
  transform-origin: 50% 0;
  animation: context-menu-in .31s cubic-bezier(.2,.83,.24,1.06) both;
}

.context-menu:focus { outline: none; }

.context-action {
  width: 100%;
  height: 50px;
  padding: 0 15px 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 430;
  letter-spacing: -.15px;
  text-align: left;
  cursor: pointer;
}

.context-action + .context-action { border-top: .5px solid rgba(60,60,67,.2); }
.context-action svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.context-action:active { background: rgba(80,80,86,.12); }
.context-action--delete { color: var(--red); }
.keyboard-nav .context-action:focus-visible { outline: 3px solid var(--blue); outline-offset: -4px; }

.context-overlay.is-closing .context-backdrop { animation: context-backdrop-out .18s ease-in both; }
.context-overlay.is-closing .context-preview { animation: context-preview-out .18s ease-in both; }
.context-overlay.is-closing .context-menu { animation: context-menu-out .18s ease-in both; }

.delete-overlay {
  position: absolute;
  z-index: 20;
  inset: 0;
}

.delete-overlay[hidden] { display: none; }
.delete-overlay.is-closing { pointer-events: none; }

.dim {
  position: absolute;
  inset: 0;
  background: rgba(25,39,52,.34);
  backdrop-filter: blur(12px) saturate(72%);
  -webkit-backdrop-filter: blur(12px) saturate(72%);
  animation: dim-in .22s ease-out both;
}

.delete-sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(342px, calc(100% - 32px));
  max-height: calc(100% - 118px);
  transform: translate(-50%, -49%);
  overflow: hidden;
  color: #0b0b0d;
  border: .5px solid rgba(255,255,255,.7);
  border-radius: 28px;
  background: rgba(246,246,248,.965);
  box-shadow: 0 18px 44px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(34px) saturate(125%);
  -webkit-backdrop-filter: blur(34px) saturate(125%);
  animation: sheet-in .27s cubic-bezier(.2,.8,.2,1) both;
}

.delete-sheet:focus { outline: none; }

.delete-sheet__body {
  padding: 21px 24px 0;
}

.delete-sheet__app-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 13px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,.13), inset 0 0 0 .5px rgba(0,0,0,.06);
}

.delete-sheet h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.14;
  letter-spacing: -.8px;
  text-align: center;
  font-weight: 720;
}

.delete-sheet__summary {
  margin: 6px 0 11px;
  color: #5d5d62;
  font-size: 15.5px;
  line-height: 1.3;
  text-align: center;
  letter-spacing: -.15px;
}

.web-apps {
  overflow: hidden;
  padding: 4px 14px 0;
  border: .5px solid rgba(0,0,0,.07);
  border-radius: 17px;
  background: rgba(255,255,255,.56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.web-app {
  min-height: 50px;
  display: grid;
  grid-template-columns: 41px 1fr;
  align-items: center;
  column-gap: 11px;
}

.web-app:not(:nth-child(4))::after {
  content: "";
  grid-column: 2;
  align-self: end;
  height: .5px;
  background: rgba(60,60,67,.16);
}

.web-app strong,
.web-app small {
  display: block;
  font-weight: 430;
  line-height: 1.08;
}

.web-app strong { font-size: 15.5px; }
.web-app small { margin-top: 2px; color: #66666b; font-size: 12.5px; }

.mini-icon {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08);
}

.mini-icon--mail { background: linear-gradient(145deg, #4b9cff, #12c1ef); }
.mini-icon--mail span { width: 22px; height: 15px; border: 1px solid #fff; background: #fff; clip-path: polygon(0 0,50% 52%,100% 0,100% 100%,0 100%); }
.mini-icon--docs { background: linear-gradient(145deg,#4a8eff,#067ce9); }
.mini-icon--docs span { width: 15px; height: 21px; background: #fff; clip-path: polygon(0 0,70% 0,100% 29%,100% 100%,0 100%); }
.mini-icon--docs span::after { content:""; position:absolute; left:10px; top:15px; width:12px; height:1px; background:#3988ef; box-shadow:0 4px #3988ef,0 8px #3988ef; }
.mini-icon--notes { background: repeating-linear-gradient(#fff 0 7px,#d7d7d7 7px 8px); }
.mini-icon--notes::before { content:""; position:absolute; inset:0 0 auto; height:8px; background:#ffd243; }
.mini-icon--chat { color:#6158ee; background: linear-gradient(145deg,#7955f5,#4d6cf4); }
.mini-icon--chat::before { content:""; width:24px; height:17px; border-radius:12px; background:#fff; }
.mini-icon--chat span { position:absolute; top:8px; color:#6861ed; font-size:11px; font-weight:900; letter-spacing:1px; }

.web-apps__all {
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: .5px solid rgba(60,60,67,.16);
  font-size: 15.5px;
  font-weight: 430;
}

.web-apps__all svg { width: 7px; fill: none; stroke: #717176; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.delete-copy {
  padding: 9px 13px 11px;
  color: #5b5b61;
  font-size: 13.25px;
  line-height: 1.44;
  letter-spacing: -.08px;
}

.delete-copy p { margin: 0 0 8px; }
.delete-copy p:last-child { margin: 0; }

.delete-sheet__actions {
  border-top: .5px solid rgba(60,60,67,.2);
}

.action {
  width: 100%;
  height: 51px;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.keyboard-nav .action:focus-visible { outline: 3px solid var(--blue); outline-offset: -4px; }
.action:active { background: rgba(0,0,0,.06); }
.action--cancel { color: var(--blue); }
.action--delete { color: var(--red); border-top: .5px solid rgba(60,60,67,.18); }

.delete-overlay.is-closing .dim { animation: dim-out .2s ease-in both; }
.delete-overlay.is-closing .delete-sheet { animation: sheet-out .2s cubic-bezier(.4,0,.8,.2) both; }

.share-toast {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(var(--toast-bottom) + var(--system-safe-bottom));
  min-width: 108px;
  padding: 9px 15px;
  transform: translateX(-50%);
  border: .5px solid rgba(255,255,255,.28);
  border-radius: 17px;
  color: #fff;
  background: rgba(35,35,38,.74);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  font-size: 13px;
  text-align: center;
  animation: toast-in .22s ease-out both;
}

.share-toast[hidden] { display: none; }

.home-indicator {
  display: none;
  position: absolute;
  z-index: 40;
  bottom: 7px;
  left: 50%;
  width: 134px;
  height: 5px;
  border-radius: 4px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.88);
  mix-blend-mode: soft-light;
}

@keyframes sheet-in {
  from { opacity: 0; transform: translate(-50%, -47%) scale(.94); }
  to { opacity: 1; transform: translate(-50%, -49%) scale(1); }
}

@keyframes dim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dim-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes sheet-out {
  from { opacity: 1; transform: translate(-50%, -49%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -48%) scale(.96); }
}
@keyframes context-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes context-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes context-preview-in {
  from { opacity: .5; transform: scale(.9); }
  to { opacity: 1; transform: scale(1.08); }
}
@keyframes context-preview-out {
  from { opacity: 1; transform: scale(1.08); }
  to { opacity: 0; transform: scale(.94); }
}
@keyframes context-menu-in {
  from { opacity: 0; transform: translateY(-7px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes context-menu-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-5px) scale(.96); }
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 6px) scale(.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@media (max-width: 600px) {
  :root { --screen-radius: 0px; }
  .stage { padding: 0; }
  .device { position: relative; left: auto; top: auto; width: 100%; height: 100svh; padding: 0; border: 0; border-radius: 0; box-shadow: none; transform: none; }
  .device::before, .hardware { display: none; }
  .home-indicator { display: block; }
  .status-bar { padding-top: max(8px, env(safe-area-inset-top)); }
  .home { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}

@media (max-width: 600px) and (max-height: 800px) {
  .screen { --dock-bottom: 10px; --search-bottom: 96px; --toast-bottom: 108px; }
  .home { padding-top: 70px; }
  .app-grid { grid-auto-rows: 82px; }
  .app-icon { width: 53px; height: 53px; border-radius: 12px; }
  .dock { height: 78px; padding-top: 10px; }
  .dock .app-icon { width: 56px; height: 56px; }
  .delete-sheet { max-height: calc(100% - 78px); }
  .delete-sheet__body { padding-top: 15px; }
  .delete-sheet__app-icon { width: 57px; height: 57px; margin-bottom: 8px; }
  .delete-sheet h1 { font-size: 24px; }
  .delete-sheet__summary { margin: 4px 0 7px; }
  .web-app { min-height: 45px; }
  .web-apps__all { height: 39px; }
  .delete-copy { font-size: 12.5px; line-height: 1.35; padding-top: 7px; padding-bottom: 8px; }
  .delete-copy p { margin-bottom: 6px; }
  .action { height: 45px; font-size: 17px; }
}

@media (max-width: 360px) and (max-height: 680px) {
  .screen { --dock-bottom: 7px; --search-bottom: 77px; --toast-bottom: 80px; }
  .status-bar { height: 52px; padding-left: 19px; padding-right: 19px; }
  .status-bar time { font-size: 15px; }
  .dynamic-island { top: 8px; width: 104px; height: 31px; }
  .dynamic-island span { top: 11px; }
  .home { padding: 58px 14px 10px; }
  .app-grid { grid-auto-rows: 70px; column-gap: 6px; }
  .app { gap: 4px; }
  .app-icon { width: 46px; height: 46px; border-radius: 11px; }
  .app__label { width: 68px; font-size: 11px; }
  .dock { left: 9px; right: 9px; height: 63px; padding: 7px 14px; border-radius: 27px; }
  .dock .app-icon { width: 49px; height: 49px; border-radius: 12px; }
  .search-pill { height: 26px; font-size: 12px; }
  .context-preview { gap: 4px; }
  .context-menu { border-radius: 13px; }
  .context-action { height: 45px; padding-left: 14px; padding-right: 13px; font-size: 14.5px; }
  .context-action svg { width: 20px; height: 20px; }

  .delete-sheet { width: calc(100% - 24px); max-height: calc(100% - 24px); border-radius: 24px; }
  .delete-sheet__body { padding: 9px 16px 0; }
  .delete-sheet__app-icon { width: 44px; height: 44px; margin-bottom: 5px; border-radius: 11px; }
  .delete-sheet h1 { font-size: 21px; letter-spacing: -.55px; }
  .delete-sheet__summary { margin: 2px 0 5px; font-size: 13px; line-height: 1.18; }
  .web-apps { padding: 2px 10px 0; border-radius: 14px; }
  .web-app { min-height: 37px; grid-template-columns: 32px 1fr; column-gap: 7px; }
  .web-app strong { font-size: 13px; }
  .web-app small { margin-top: 1px; font-size: 10.5px; }
  .mini-icon { width: 29px; height: 29px; border-radius: 7px; }
  .mini-icon--mail span { width: 19px; height: 13px; }
  .mini-icon--docs span { width: 13px; height: 18px; }
  .mini-icon--docs span::after { left: 8px; top: 13px; width: 11px; }
  .mini-icon--chat::before { width: 21px; height: 15px; }
  .mini-icon--chat span { top: 6px; font-size: 10px; }
  .web-apps__all { height: 34px; font-size: 13px; }
  .delete-copy { padding: 6px 8px 7px; font-size: 10.5px; line-height: 1.25; }
  .delete-copy p { margin-bottom: 5px; }
  .action { height: 38px; font-size: 15px; }
}

/* iOS supplies its own status bar and home indicator. Keep the system-safe
   spacing while allowing the wallpaper itself to cover the full display. */
html.is-ios .status-bar,
html.is-ios .home-indicator {
  display: none;
}

html.is-ios .home {
  padding-top: calc(var(--safe-area-top) + 14px);
}

html.is-ios.is-standalone {
  background: linear-gradient(
    90deg,
    #fecccd 0%,
    #fcc4c8 27%,
    #cdb6bf 43%,
    #a19aaa 56%,
    #6e94a6 70%,
    #065f81 85%,
    #065f81 100%
  );
}

html.is-ios.is-standalone body {
  background: transparent;
}

html.is-ios.is-standalone .screen {
  --system-safe-bottom: var(--safe-area-bottom);
}

/* WebKit reports dvh/svh short by the safe-area height in installed apps.
   Its standalone workaround is 100vh, which includes the full display. */
html.is-ios.is-standalone,
html.is-ios.is-standalone body,
html.is-ios.is-standalone .stage,
html.is-ios.is-standalone .device {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
}

html.is-ios.is-standalone .stage {
  position: relative;
  inset: auto;
}

@media (max-width: 600px) and (display-mode: fullscreen),
       (max-width: 600px) and (display-mode: standalone) {
  html,
  body,
  .stage,
  .device {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
  }

  body { overscroll-behavior: none; }
  .stage { position: relative; inset: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
