.home {
  position: absolute;
  top: var(--status-h);
  bottom: var(--nav-h);
  left: 0;
  right: 0;
  z-index: var(--z-home);
  display: flex;
  flex-direction: column;
  padding: 0;
  isolation: isolate;
  transform-origin: 50% 42%;
  transition: transform var(--dur-app) var(--ease-out),opacity var(--dur) var(--ease-out),filter var(--dur) var(--ease-out)
}
.home::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--status-h)) 0 calc(-1 * var(--nav-h));
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 5, 9, 0.48), rgba(4, 5, 9, 0.54)),var(--phone-wallpaper, url("../assets/img/bg.webp?v=1")) var(--phone-wallpaper-position, center)/var(--phone-wallpaper-size, cover) no-repeat;
  pointer-events: none
}
.home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out)
}
.home.is-editing::after {
  opacity: 1
}
.home.is-leaving {
  transform: scale(0.9);
  opacity: 0;
  filter: blur(8px);
  pointer-events: none
}
.home.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96)
}
.home__viewport {
  flex: 1;
  min-height: 0;
  margin-bottom: 104px;
  overflow: hidden;
  touch-action: pan-y;
  position: relative;
  z-index: 1
}
.home__pages {
  display: flex;
  width: 200%;
  height: 100%;
  transform: translate3d(var(--home-page-offset, 0), 0, 0);
  transition: transform 420ms var(--ease-snap);
  will-change: transform
}
.home__pages.is-dragging {
  transition: none
}
.home__page {
  flex: 0 0 50%;
  width: 50%;
  min-width: 0;
  min-height: 0;
  position: relative;
  display: block;
  padding: 0
}
.home__page[aria-hidden="true"] {
  pointer-events: none
}
.home__widgets {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  top: 8px;
  bottom: 0;
  display: block;
  pointer-events: none
}
.home-widget {
  position: absolute;
  container: homeWidget/size;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  padding: 12px 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: rgba(10, 13, 20, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),0 8px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  transition: left 240ms var(--spring-soft),top 240ms var(--spring-soft),width 240ms var(--spring-soft),height 240ms var(--spring-soft)
}
.home-widget--clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 27px 27px 27px 11px;
  background: radial-gradient(circle at 90% 8%, rgba(113, 156, 255, 0.2), transparent 42%),rgba(10, 13, 20, 0.62)
}
.home-widget--weather {
  display: flex;
  flex-direction: column;
  padding: 10px 9px;
  border-radius: 30px 14px 30px 14px;
  background: radial-gradient(circle at 50% 0, rgba(88, 190, 255, 0.18), transparent 55%),rgba(10, 13, 20, 0.62)
}
.home-widget.is-compact {
  padding: 6px
}
.home-widget.is-short {
  padding: 5px
}
.home-widget.is-narrow {
  padding-left: 5px;
  padding-right: 5px
}
.home-widget.is-landscape {
  border-radius: 24px 15px 24px 15px
}
.home-widget.is-portrait {
  padding-left: 8px;
  padding-right: 8px
}
.home-widget--clock.is-portrait .home-clock__time {
  font-size: clamp(20px, 20cqw, 36px)
}
.home-widget--weather.is-portrait .home-weather__main {
  justify-content: center
}
.home-widget__resize {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(5, 8, 14, 0.65);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  transition: opacity 160ms ease-out,transform 160ms ease-out
}
.home-widget__resize::before {
  content: "↘"
}
.home-widget.is-compact .home-widget__resize {
  right: 2px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  font-size: 11px
}
.home.is-editing .home-widget__resize {
  opacity: 1;
  pointer-events: auto
}
.home.is-editing .home-widget {
  pointer-events: auto;
  outline: 1px solid rgba(255, 255, 255, 0.26);
  animation: home-jiggle 220ms ease-in-out infinite alternate
}
.home.is-editing .home-widget.is-widget-moving {
  z-index: 3;
  animation: none;
  transform: scale(1.025);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32),inset 0 1px 0 rgba(255, 255, 255, 0.1)
}
.home.is-editing .home-widget.is-widget-drag-source {
  animation: none;
  opacity: 0.28;
  transition: opacity 160ms ease-out
}
.home-widget-drag-preview {
  position: absolute!important;
  z-index: 20!important;
  pointer-events: none!important;
  opacity: 0.96!important;
  transform: scale(1.025);
  animation: none!important;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.4))
}
.home-widget__eyebrow {
  display: block;
  min-width: 0;
  margin-bottom: clamp(1px, 2.5cqh, 7px);
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(9px, 4.5cqw, 13px);
  font-weight: 700;
  letter-spacing: clamp(0.02em, 0.35cqw, 0.12em);
  text-transform: uppercase;
  line-height: 1.1;
  overflow-wrap: break-word
}
.home-widget--clock .home-widget__eyebrow {
  text-align: center
}
.home-clock__time {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.04em;
  color: #fff;
  font-size: clamp(22px, 22cqw, 48px);
  font-weight: 500;
  letter-spacing: clamp(-1.6px, -0.5cqw, -0.2px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap
}
.home-clock__hours,
.home-clock__minutes {
  display: block
}
.home-clock__separator {
  display: inline-block;
  font-size: 0.78em;
  line-height: 1;
  opacity: 0.82
}
.home-widget.is-single-cell .home-clock__time {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 0;
  font-size: clamp(16px, 29cqw, 24px);
  line-height: 0.88
}
.home-widget.is-single-cell .home-clock__separator {
  display: none
}
.home-widget--clock.is-single-cell {
  justify-content: center;
  text-align: center
}
.home-widget--clock.is-single-cell .home-clock__date,
.home-widget--clock.is-single-cell .home-widget__eyebrow {
  display: none
}
.home-clock__date {
  display: block;
  min-width: 0;
  margin-top: clamp(1px, 2cqh, 6px);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(8px, 4cqw, 12px);
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: break-word;
  text-align: center
}
.home-weather__main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1px, 2cqw, 5px);
  min-width: 0;
  min-height: 20px;
  height: auto;
  flex: 1 1 auto;
  flex-wrap: wrap
}
.home-weather__icon {
  flex: 0 1 clamp(20px, 14cqw, 34px);
  width: clamp(20px, 14cqw, 34px);
  height: clamp(20px, 14cqw, 34px);
  color: #b8e3ff;
  filter: drop-shadow(0 1px 5px rgba(117, 194, 255, 0.35))
}
.home-weather__temperature {
  color: #fff;
  font-size: clamp(40px, 34cqw, 62px);
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1
}
.home-weather__condition {
  display: block;
  min-width: 0;
  margin-top: clamp(1px, 1.8cqh, 5px);
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(8px, 4cqw, 12px);
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: break-word
}
@container homeWidget (max-width: 140px) {
  .home-widget__eyebrow {
    letter-spacing: 0.04em
  }
  .home-widget--weather .home-weather__main {
    gap: 2px
  }
}
@container homeWidget (max-height: 100px) {
  .home-widget__eyebrow {
    margin-bottom: 1px;
    font-size: 8px
  }
  .home-clock__time {
    font-size: clamp(16px, 12cqw, 24px)
  }
  .home-clock__date,
  .home-weather__condition {
    font-size: 8px;
    line-height: 1.05
  }
  .home-widget--weather .home-weather__main {
    min-height: 16px;
    justify-content: center
  }
}
@container homeWidget (max-width: 105px) {
  .home-widget--weather .home-weather__main {
    gap: 2px
  }
  .home-widget--weather .home-weather__icon {
    flex-basis: 20px;
    width: 20px;
    height: 20px
  }
  .home-widget--weather .home-weather__temperature {
    font-size: 19px
  }
}
.home__grid {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  top: 8px;
  bottom: 0;
  overflow: hidden;
  pointer-events: none
}
.home.is-intro {
  pointer-events: none
}
.home.is-intro .icon {
  animation: home-icon-label 300ms ease-out both;
  animation-delay: calc(var(--i, 0) * 68ms + 120ms)
}
.home.is-intro .icon__box {
  animation: home-icon-pop 720ms cubic-bezier(0.18, 1.28, 0.34, 1) both;
  animation-delay: calc(var(--i, 0) * 68ms)
}
.home.is-intro .home__dots {
  animation: home-icon-label 300ms ease-out 760ms both
}
.home.is-intro-done .icon {
  animation: none;
  opacity: 1
}
@keyframes home-icon-pop {
  0% {
    transform: scale(0.12)
  }
  58% {
    transform: scale(1.18)
  }
  76% {
    transform: scale(0.93)
  }
  90% {
    transform: scale(1.04)
  }
  100% {
    transform: scale(1)
  }
}
@keyframes home-icon-label {
  from {
    opacity: 0
  }
  to {
    opacity: 1
  }
}
@media (prefers-reduced-motion: reduce) {
  .home.is-intro .icon__box {
    animation: home-icon-pop-reduced 360ms ease-out both;
    animation-delay: calc(var(--i, 0) * 35ms)
  }
}
@keyframes home-icon-pop-reduced {
  0% {
    transform: scale(0.72)
  }
  68% {
    transform: scale(1.06)
  }
  100% {
    transform: scale(1)
  }
}
.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: fade-rise var(--dur-slow) var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 45ms + 220ms)
}
.home-item--app:not(.home__dock-item) {
  position: absolute;
  z-index: 1;
  width: 25%;
  height: 25%;
  box-sizing: border-box;
  margin: 0;
  justify-content: center;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: left 260ms var(--spring-soft),top 260ms var(--spring-soft)
}
.home-item--app.is-being-displaced {
  z-index: 2
}
.icon__box {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #08080c;
  background: linear-gradient(160deg, color-mix(in srgb, var(--icon-accent) 92%, #fff) 0, var(--icon-accent) 46%, color-mix(in srgb, var(--icon-accent) 72%, #000) 100%);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--icon-accent) 28%, transparent),inset 0 1px 0 rgba(255, 255, 255, 0.35),inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  transition: transform var(--dur-fast) var(--spring-soft),box-shadow var(--dur-fast) var(--ease-out)
}
.icon__box--image {
  background: none;
  box-shadow: none
}
.icon__box--image::before {
  display: none
}
.icon__box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0, transparent 46%);
  pointer-events: none
}
.icon__box img,
.icon__box svg {
  width: 26px;
  height: 26px;
  position: relative;
  z-index: 1
}
.icon__box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit
}
.home-item--app.is-updating {
  cursor: wait
}
.home-item--app.is-updating .icon__box {
  filter: none;
  background: #242630;
  box-shadow: none
}
.home-item--app.is-updating .icon__box img,
.home-item--app.is-updating .icon__box svg {
  filter: grayscale(1) brightness(0.38)
}
.home-item--app.is-updating .icon__label {
  color: rgba(255, 255, 255, 0.54)
}
.home-item--app.is-updating .icon__box::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from -90deg,
        color-mix(in srgb, var(--icon-accent) 35%, #fff) 0 var(--update-progress, 0),
        rgba(255, 255, 255, 0.38) var(--update-progress, 0) 100%);
  box-shadow: 0 0 8px color-mix(in srgb, var(--icon-accent) 70%, transparent);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 3px));
  pointer-events: none
}
.home-item--app.is-updating .icon__box::before {
  display: block;
  inset: 9px;
  z-index: 2;
  border-radius: 50%;
  background: conic-gradient(from -90deg,
        color-mix(in srgb, var(--icon-accent) 45%, #fff) 0 var(--update-progress, 0),
        rgba(0, 0, 0, 0.76) var(--update-progress, 0) 100%);
  opacity: 0.96
}
.icon:active .icon__box {
  transform: scale(0.88);
  box-shadow: 0 3px 8px color-mix(in srgb, var(--icon-accent) 20%, transparent)
}
.icon__ripple {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.4);
  opacity: 0;
  pointer-events: none
}
.icon.is-tapped .icon__ripple {
  animation: ripple-out 520ms var(--ease-out)
}
.icon__label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%
}
.icon__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: var(--danger);
  border: 1.5px solid rgba(0, 0, 0, 0.55);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  z-index: 4
}
.icon__badge.is-on {
  display: flex;
  animation: badge-pop 340ms var(--spring) both
}
.home__dots {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0
}
.home__dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer
}
.home__dot::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 220ms var(--spring),background 220ms var(--ease-out),box-shadow 220ms var(--ease-out)
}
.home__dot.is-active::before {
  width: 17px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 9px rgba(255, 255, 255, 0.24)
}
.home__dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px
}
.home__dock {
  position: absolute;
  z-index: 4;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 70px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  padding: 3px 8px 1px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 24px;
  background: rgba(15, 18, 27, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),0 8px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3)
}
.home__dock-item {
  gap: 3px;
  animation: none
}
.home__dock-item .icon__box {
  width: 46px;
  height: 46px;
  border-radius: 14px
}
.home__dock-item .icon__label {
  font-size: 8px
}
.home__edit-done {
  position: absolute;
  z-index: 8;
  top: 7px;
  right: 14px;
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(18, 21, 29, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px)
}
.home.is-editing .home__page {
  padding-top: 0
}
.home.is-editing .home__edit-done {
  animation: home-icon-label 180ms ease-out both
}
.home.is-editing .home-item:not(.home__dock-item) {
  animation: home-jiggle 190ms ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * 17ms)
}
.home.is-editing .home-item.is-dragging-source {
  animation: none;
  opacity: 0.28
}
.home-drag-preview {
  position: absolute!important;
  z-index: 20!important;
  pointer-events: none!important;
  opacity: 0.94!important;
  transform: scale(1.07) rotate(-3deg)!important;
  animation: none!important;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.4))
}
@keyframes home-jiggle {
  from {
    transform: rotate(-1.8deg)
  }
  to {
    transform: rotate(1.8deg)
  }
}
@media (prefers-reduced-motion: reduce) {
  .home__pages {
    transition-duration: 160ms
  }
}