:root {
  --ink: #0b0c12;
  --muted: #747681;
  --line: rgba(60, 60, 67, 0.16);
  --blue: #0a84ff;
  --green: #34c759;
  --red: #ff453a;
  --orange: #ff9f0a;
  --safe-top: 58px;
  --safe-bottom: 24px;
}

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

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: fixed;
  inset: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 18%, rgba(169, 120, 255, 0.22), transparent 30%),
    radial-gradient(circle at 82% 76%, rgba(255, 166, 113, 0.18), transparent 34%),
    linear-gradient(145deg, #0e1018 0%, #161825 48%, #090a0e 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", "Microsoft YaHei", sans-serif;
  user-select: none;
}

button {
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  background: none;
  font: inherit;
  cursor: pointer;
}

button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

svg {
  display: block;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.phone-shell {
  position: relative;
  width: min(100vw, 422px);
  height: min(100dvh, 900px);
  padding: 10px;
  border-radius: 56px;
  background: linear-gradient(145deg, #2d2f36, #050608 38%, #2a2c32 100%);
  box-shadow:
    0 60px 110px rgba(0, 0, 0, 0.52),
    0 18px 38px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.phone-shell::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 51px;
  pointer-events: none;
}

.phone-screen {
  --lock-drag: 0px;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overflow: clip;
  touch-action: manipulation;
  isolation: isolate;
  border-radius: 46px;
  background: #111;
}

.dynamic-island {
  position: absolute;
  z-index: 120;
  top: 11px;
  left: 50%;
  width: 119px;
  height: 34px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
  pointer-events: none;
}

.status-bar {
  position: absolute;
  z-index: 110;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  padding: 15px 25px 0 29px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.25px;
}

.phone-screen:not(.unlocked) .status-bar,
.phone-screen.unlocked:not(:has(.app-layer.open)) .status-bar {
  mix-blend-mode: normal;
  color: #fff;
  text-shadow: 0 1px 6px rgba(16, 25, 46, 0.28);
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-icons svg {
  height: 12px;
  fill: currentColor;
}

.status-icons .status-cellular {
  width: 18px;
}

.status-icons .status-battery {
  width: 25px;
}

.status-network {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -0.15px;
}

.message-banner {
  position: absolute;
  z-index: 140;
  top: 54px;
  left: 11px;
  right: 11px;
  min-height: 76px;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 21px;
  color: #fff;
  background: rgba(41, 43, 51, 0.9);
  box-shadow:
    0 16px 36px rgba(13, 14, 22, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.08);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-125%) scale(0.97);
  transition:
    transform 0.55s cubic-bezier(0.2, 0.76, 0.2, 1),
    opacity 0.32s ease,
    visibility 0s linear 0.55s;
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
}

.message-banner.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    transform 0.55s cubic-bezier(0.2, 0.76, 0.2, 1),
    opacity 0.32s ease,
    visibility 0s;
}

.message-banner:active {
  transform: scale(0.975);
}

.banner-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 255, 255, 0.38), transparent 29%),
    linear-gradient(145deg, #f0a4a9, #ca748e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  font-size: 18px;
  font-weight: 650;
}

.banner-avatar::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 17px;
  height: 17px;
  border: 2px solid #30323a;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 54%, #fff 0 43%, transparent 45%),
    #34c759;
}

.banner-line-icon {
  background: linear-gradient(145deg, #36df70, #06c755 62%, #05b64e);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 4px 10px rgba(3, 119, 56, 0.25);
}

.banner-line-icon svg {
  width: 36px;
  height: 36px;
}

.banner-line-icon::after {
  display: none;
}

.banner-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.banner-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 9px;
}

.banner-heading strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.2px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.banner-heading time {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.56);
  font-size: 9px;
}

.banner-text {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.banner-chevron {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.38);
  font-size: 23px;
  font-weight: 300;
}

.lock-screen {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(29, 40, 68, 0.02), rgba(28, 38, 64, 0.1)),
    url("assets/wallpaper-miyabi.svg") center / cover no-repeat,
    linear-gradient(145deg, #e6e2da, #a9c8d9);
  transition: transform 0.8s cubic-bezier(0.22, 0.72, 0.2, 1), opacity 0.55s ease;
  will-change: transform;
  touch-action: none;
}

.lock-screen.swiping {
  transition: none;
  transform: translateY(var(--lock-drag));
}

.phone-screen.passcode-open .lock-screen {
  opacity: 0.3;
  transform: translateY(-100%) scale(0.96);
}

.lock-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.1), transparent 31%),
    linear-gradient(180deg, rgba(12, 25, 54, 0.08), transparent 30%, transparent 75%, rgba(6, 24, 48, 0.18));
  pointer-events: none;
}

.lock-content {
  position: relative;
  width: 100%;
  padding-top: 72px;
  text-align: center;
  text-shadow:
    0 1px 2px rgba(28, 38, 70, 0.3),
    0 0 18px rgba(255, 255, 255, 0.2);
}

.lock-unlock-hint {
  position: relative;
  z-index: 2;
  display: block;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.98);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.2px;
}

.lock-time {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(82px, 24.5vw, 106px);
  font-weight: 440;
  line-height: 1;
  letter-spacing: -7px;
  text-shadow:
    0 2px 1px rgba(255, 255, 255, 0.2),
    0 7px 18px rgba(44, 54, 104, 0.2);
  pointer-events: none;
}

.lock-widget {
  width: min(88%, 350px);
  margin: 20px auto 0;
  padding: 14px 15px;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(17, 13, 50, 0.12);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
}

.widget-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #5b467c;
  background: linear-gradient(145deg, #fff2c8, #f0b8df);
  font-size: 16px;
}

.lock-widget div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lock-widget strong {
  font-size: 12px;
}

.lock-widget div span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

.lock-actions {
  position: absolute;
  left: 23px;
  right: 23px;
  bottom: 26px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
}

.round-glass-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(215, 237, 245, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.round-glass-button svg {
  width: 21px;
  height: 21px;
  fill: #fff;
}

.round-glass-button:nth-of-type(2) {
  justify-self: end;
}

.swipe-guide {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  letter-spacing: 0.5px;
  animation: swipe-nudge 2.4s ease-in-out infinite;
}

.swipe-guide-bottom {
  justify-self: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 28px;
  line-height: 20px;
  text-shadow: 0 1px 5px rgba(26, 41, 68, 0.25);
}

.swipe-arrow {
  font-size: 28px;
  line-height: 19px;
  opacity: 0.9;
}

@keyframes swipe-nudge {
  0%, 65%, 100% { transform: translateY(0); opacity: 0.72; }
  30% { transform: translateY(-7px); opacity: 1; }
}

.passcode-screen {
  position: absolute;
  z-index: 35;
  inset: 0;
  padding: 62px 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(10, 11, 24, 0.38), rgba(9, 10, 20, 0.74)),
    url("assets/wallpaper-miyabi.svg") center / cover;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.22, 0.72, 0.2, 1);
}

.phone-screen.passcode-open .passcode-screen {
  transform: translateY(0);
}

.phone-screen.unlocked .lock-screen,
.phone-screen.unlocked .passcode-screen {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.passcode-top {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lock-small-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(14px);
}

.lock-small-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.passcode-top h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.7px;
}

.passcode-top > p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.passcode-dots {
  height: 40px;
  margin: 12px 0 0;
  display: flex;
  gap: 15px;
  align-items: center;
}

.passcode-dots span {
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  transition: background 0.18s, transform 0.18s;
}

.passcode-dots span.filled {
  background: #fff;
  transform: scale(1.08);
}

.passcode-message {
  min-height: 18px;
  margin: 1px 0 7px !important;
  color: rgba(255, 255, 255, 0.62) !important;
}

.passcode-message.error {
  color: #ffd0cc !important;
}

.passcode-screen.shake .passcode-dots {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

.keypad {
  width: 100%;
  max-width: 312px;
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 21px;
}

.keypad button {
  position: relative;
  width: 74px;
  height: 74px;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: background 0.12s, transform 0.12s;
}

.keypad button:active {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(0.95);
}

.keypad button > span {
  font-size: 31px;
  font-weight: 400;
  line-height: 31px;
}

.keypad button > small {
  margin-top: 2px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.keypad .keypad-blank {
  border: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.keypad .keypad-delete {
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.keypad-delete svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.passcode-cancel {
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.home-screen {
  position: absolute;
  z-index: 20;
  inset: 0;
  padding: 61px 15px 28px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(26, 37, 62, 0.02), rgba(26, 37, 62, 0.03) 55%, rgba(18, 43, 64, 0.16)),
    url("assets/wallpaper-miyabi.svg") center / cover no-repeat,
    linear-gradient(145deg, #eeeae3, #b5cddd);
  opacity: 0;
  transform: none;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.phone-screen.unlocked .home-screen {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.home-widget {
  width: 154px;
  min-height: 146px;
  padding: 14px 15px 12px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 23px;
  background: rgba(25, 27, 54, 0.34);
  box-shadow: 0 14px 30px rgba(20, 16, 50, 0.12);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.widget-heading,
.widget-footer {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 600;
}

.widget-heading span:first-child {
  color: #fff;
}

.widget-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex: 1;
  padding-top: 12px;
}

.widget-body > div {
  display: flex;
  flex-direction: column;
}

.widget-body strong {
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -1.8px;
  line-height: 1;
}

.widget-body span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
}

.widget-sun-cloud {
  width: 49px;
  height: 39px;
  fill: rgba(255, 222, 137, 0.92);
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1;
}

.widget-sun-cloud path {
  fill: rgba(246, 248, 255, 0.9);
}

.widget-rule {
  height: 1px;
  margin: 7px 0 9px;
  background: rgba(255, 255, 255, 0.17);
}

.app-grid {
  width: 100%;
  margin-top: 17px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px 6px;
}

.app-icon-button {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #fff;
}

.app-icon-button:active .app-icon {
  transform: scale(0.9);
  filter: brightness(0.8);
}

.app-icon {
  position: relative;
  width: clamp(52px, 13.5vw, 58px);
  height: clamp(52px, 13.5vw, 58px);
  display: grid;
  place-items: center;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow:
    0 9px 16px rgba(10, 8, 30, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.app-icon > svg {
  width: 52%;
  height: 52%;
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-name {
  max-width: 100%;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 520;
  letter-spacing: -0.15px;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.42),
    0 0 8px rgba(22, 44, 70, 0.34);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.icon-gallery {
  background: linear-gradient(150deg, #fff 0%, #f4f5f8 100%);
}

.icon-gallery::after {
  display: none;
}

.icon-gallery svg {
  width: 76%;
  height: 76%;
  stroke: none;
  filter: drop-shadow(0 1px 2px rgba(40, 35, 60, 0.12));
}

.icon-maps {
  background: linear-gradient(145deg, #f7ffff, #e5f4fb);
}

.icon-maps svg {
  width: 78%;
  height: 78%;
  stroke: none;
  filter: drop-shadow(0 1px 1.5px rgba(28, 90, 120, 0.14));
}

.icon-line {
  background: linear-gradient(145deg, #36e474 0%, #06c755 55%, #04b64c 100%);
  box-shadow:
    0 9px 16px rgba(7, 98, 51, 0.24),
    inset 0 1px 2px rgba(255, 255, 255, 0.34);
}

.icon-line svg {
  width: 77%;
  height: 77%;
  stroke: none;
  filter: drop-shadow(0 1px 1px rgba(0, 77, 34, 0.18));
}

.icon-instagram {
  background:
    radial-gradient(circle at 28% 105%, #feda75, transparent 35%),
    radial-gradient(circle at 100% 20%, #4f5bd5, transparent 54%),
    linear-gradient(135deg, #f09433, #dc2743 48%, #bc1888);
}

.icon-instagram svg {
  width: 54%;
  height: 54%;
  stroke-width: 1.9;
}

.icon-weather {
  background: linear-gradient(160deg, #48c7ff 0%, #248de4 58%, #1267c9 100%);
}

.icon-weather svg {
  width: 72%;
  height: 72%;
  stroke: none;
  filter: drop-shadow(0 2px 3px rgba(8, 66, 132, 0.2));
}

.icon-calendar {
  flex-direction: column;
  gap: 0;
  background: linear-gradient(180deg, #fff, #f0f1f4);
}

.calendar-icon-weekday,
.calendar-icon-day {
  position: relative;
  z-index: 1;
  display: block;
  line-height: 1;
}

.calendar-icon-weekday {
  margin-top: 2px;
  color: #ff3b30;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: -0.3px;
}

.calendar-icon-day {
  margin-top: 1px;
  color: #252529;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -1.7px;
}

.icon-clock {
  background: linear-gradient(145deg, #27272c, #050506);
}

.icon-clock::after {
  display: none;
}

.icon-clock svg {
  width: 83%;
  height: 83%;
  stroke: none;
}

.icon-settings {
  background: linear-gradient(145deg, #a0a1a7, #55575f);
}

.icon-settings svg {
  width: 60%;
  height: 60%;
  stroke: #fafafa;
  stroke-width: 1.85;
}

.icon-notes {
  border-color: transparent;
  background: linear-gradient(145deg, #f7f7f9, #dfe1e5);
  box-shadow: 0 9px 16px rgba(10, 8, 30, 0.2);
}

.icon-notes svg {
  width: 82%;
  height: 82%;
  stroke: none;
  filter: drop-shadow(0 1px 1px rgba(34, 35, 40, 0.16));
}

.icon-music {
  background:
    radial-gradient(circle at 24% 14%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(145deg, #ff6874 0%, #f32f4b 54%, #d70d35 100%);
}

.icon-music svg {
  width: 61%;
  height: 61%;
  stroke: none;
  filter: drop-shadow(0 3px 4px rgba(121, 4, 26, 0.2));
}

.icon-snow {
  overflow: hidden;
  background: #fff;
}

.icon-snow img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.snow-app-view {
  background: #fff;
}

.snow-app-content {
  flex: 1;
  min-height: 0;
  padding: 36px 28px 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.snow-app-content > img {
  width: 154px;
  height: 154px;
  border-radius: 34px;
  box-shadow: 0 14px 34px rgba(22, 177, 213, 0.16);
}

.snow-app-content h1 {
  margin: 24px 0 4px;
  color: #17181c;
  font-size: 40px;
  font-weight: 760;
  letter-spacing: -1.5px;
}

.snow-app-content p {
  margin: 0;
  color: #85868b;
  font-size: 13px;
}

.snow-app-content button {
  width: min(260px, 78%);
  height: 52px;
  margin-top: 32px;
  border-radius: 26px;
  color: #fff;
  background: #18c4e5;
  font-size: 15px;
  font-weight: 650;
}

.badge {
  position: absolute;
  z-index: 3;
  top: -5px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(80, 64, 120, 0.7);
  border-radius: 12px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
}

.badge[hidden] {
  display: none;
}

.page-dots {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.page-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.page-dots .active {
  background: #fff;
}

.dock {
  margin-top: auto;
  padding: 13px 12px 11px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 30px;
  background: rgba(237, 247, 250, 0.2);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.dock .app-icon-button {
  gap: 3px;
}

.dock .app-icon {
  width: clamp(52px, 13.5vw, 58px);
  height: clamp(52px, 13.5vw, 58px);
  border: 0;
}

.dock .app-name {
  font-size: 9px;
}

.icon-phone {
  background: linear-gradient(145deg, #70eb70, #26c23e 56%, #199f31);
}

.icon-phone svg {
  width: 56%;
  height: 56%;
  stroke: none;
}

.icon-safari {
  background: linear-gradient(145deg, #fff, #e9ebef);
}

.icon-safari svg {
  width: 83%;
  height: 83%;
  stroke: none;
}

.icon-messages {
  background: linear-gradient(145deg, #73ef73, #2edf55 55%, #1cbe42);
}

.icon-messages svg {
  width: 60%;
  height: 60%;
  stroke: none;
  filter: drop-shadow(0 1px 1px rgba(7, 95, 33, 0.16));
}

.icon-contacts {
  background: linear-gradient(145deg, #fff, #e3e5e9);
}

.icon-contacts svg {
  width: 62%;
  height: 62%;
  stroke: none;
}

.app-layer {
  position: absolute;
  z-index: 50;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
  background: #f2f2f7;
  transform: translateY(103%);
  visibility: hidden;
  transition: transform 0.56s cubic-bezier(0.25, 0.72, 0.2, 1);
  will-change: transform;
}

.app-layer.open {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.app-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f2f2f7;
}

.app-view.dark {
  color: #fff;
  background: #000;
}

.app-nav {
  min-height: var(--safe-top);
  padding: 54px 16px 8px;
  display: grid;
  grid-template-columns: 55px 1fr 55px;
  align-items: center;
  flex: 0 0 auto;
}

.app-nav h2 {
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.35px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-back {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--blue);
  font-size: 16px;
}

.app-back::before {
  content: "";
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.app-nav-action {
  justify-self: end;
  color: var(--blue);
  font-size: 15px;
}

.home-indicator {
  position: absolute;
  z-index: 150;
  bottom: 7px;
  left: 50%;
  width: 134px;
  height: 17px;
  transform: translateX(-50%);
}

.home-indicator::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.92);
  transform: translateX(-50%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: background 0.25s;
}

.phone-screen.unlocked .home-indicator::after {
  background: rgba(255, 255, 255, 0.88);
}

.phone-screen.app-light .home-indicator::after {
  background: rgba(10, 10, 12, 0.82);
}

.gallery-view {
  color: #111114;
  background: #fff;
}

.gallery-header {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  padding: 53px 16px 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.96);
}

.gallery-title-block h1 {
  margin: 0;
  font-size: 38px;
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -1.8px;
}

.gallery-title-block p {
  margin: 8px 0 0;
  color: #18181b;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.5px;
}

.gallery-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
}

.gallery-round-button,
.gallery-select-button {
  height: 39px;
  border: 1px solid #dedee2;
  color: #161618;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 2px 8px rgba(20, 20, 24, 0.04);
}

.gallery-round-button {
  width: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.gallery-round-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.gallery-select-button {
  min-width: 62px;
  padding: 0 17px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 540;
}

.gallery-options-popover {
  position: absolute;
  z-index: 12;
  top: 103px;
  right: 15px;
  width: 186px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(250, 250, 252, 0.96);
  box-shadow: 0 12px 32px rgba(22, 22, 27, 0.17);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.18s, transform 0.18s, visibility 0s 0.18s;
  backdrop-filter: blur(20px);
}

.gallery-options-popover span,
.gallery-options-popover strong {
  font-size: 12px;
}

.gallery-options-popover span {
  color: #1b1b1e;
}

.gallery-options-popover strong {
  color: #0a84ff;
  font-weight: 550;
}

.gallery-view.menu-open .gallery-options-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 0.18s, transform 0.18s, visibility 0s;
}

.gallery-panels {
  position: relative;
  flex: 1;
  min-height: 0;
}

.gallery-panel {
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  min-height: 0;
}

.gallery-panel.active {
  display: flex;
  animation: gallery-panel-in 0.2s ease both;
}

@keyframes gallery-panel-in {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

.gallery-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 2px 12px;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.gallery-scroll::-webkit-scrollbar,
.app-scroll::-webkit-scrollbar,
.photos-panel-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: row;
  gap: 2px;
}

.gallery-photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 2px;
  background: #f2f2f7;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gallery-photo:active img {
  opacity: 0.82;
  transform: scale(1.018);
}

.gallery-selection-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 21px;
  height: 21px;
  display: none;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(20, 20, 24, 0.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(4px);
}

.gallery-view.selecting .gallery-selection-check {
  display: grid;
}

.gallery-photo.selected .gallery-selection-check {
  border-color: #0a84ff;
  background: #0a84ff;
}

.gallery-photo.selected .gallery-selection-check::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 1.8px solid #fff;
  border-bottom: 1.8px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}

.gallery-photo.selected img {
  opacity: 0.82;
}

.photos-panel-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 3px 16px 20px;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.photos-section-heading {
  margin: 20px 2px 10px;
  color: #161619;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.7px;
}

.collection-feature {
  position: relative;
  width: 100%;
  height: 178px;
  overflow: hidden;
  border-radius: 15px;
  color: #fff;
  text-align: left;
}

.collection-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.62));
}

.collection-feature img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.collection-feature > span {
  position: absolute;
  z-index: 1;
  left: 15px;
  right: 15px;
  bottom: 13px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.collection-feature strong {
  font-size: 19px;
  font-weight: 650;
}

.collection-feature small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

.collection-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.collection-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  text-align: left;
  background: #f2f2f7;
}

.collection-card img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
}

.collection-card span {
  display: block;
  padding: 8px 9px 10px;
  font-size: 12px;
  font-weight: 550;
}

.search-panel {
  padding-top: 2px;
}

.photos-search-field {
  height: 39px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 11px;
  color: #8c8c91;
  background: #efeff3;
}

.photos-search-field svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.photos-search-field input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  color: #18181b;
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.photos-search-field input::placeholder {
  color: #8c8c91;
}

.search-grid {
  padding-bottom: 3px;
}

.photos-tabbar {
  position: relative;
  z-index: 5;
  flex: 0 0 84px;
  padding: 7px 22px 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(60, 60, 67, 0.13);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.photos-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #303034;
  font-size: 10px;
  font-weight: 520;
}

.photos-tab-icon {
  width: 49px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  transition: color 0.18s, background 0.18s;
}

.photos-tab-icon svg {
  width: 25px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photos-tab:not(.active) .photos-tab-icon svg {
  width: 23px;
  height: 21px;
}

.photos-tab.active {
  color: #0a84ff;
}

.photos-tab.active .photos-tab-icon {
  background: #e8f3ff;
}

.lightbox {
  position: absolute;
  z-index: 90;
  inset: 0;
  display: flex;
  flex-direction: column;
  color: #151518;
  background: #fff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(103%);
  transition:
    transform 0.48s cubic-bezier(0.22, 0.72, 0.2, 1),
    opacity 0.24s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.photo-viewer-header {
  flex: 0 0 auto;
  padding: 53px 15px 11px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
}

.photo-viewer-round {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #17171a;
  background: #f7f7f8;
}

.photo-viewer-round:first-child {
  justify-self: start;
}

.photo-viewer-round:last-child {
  justify-self: end;
}

.photo-viewer-round svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-viewer-round > span {
  margin-top: -8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.photo-viewer-date {
  min-height: 50px;
  display: grid;
  place-content: center;
  border-radius: 25px;
  background: #f7f7f8;
  text-align: center;
}

.photo-viewer-date strong {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.35px;
}

.photo-viewer-date span {
  margin-top: 1px;
  font-size: 12px;
}

.photo-viewer-image-area {
  flex: 1;
  min-height: 0;
  padding: 9px 16px 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.photo-viewer-image-area img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.22s ease, opacity 0.2s ease;
}

.photo-viewer-filmstrip {
  flex: 0 0 66px;
  padding: 8px 11px 7px;
  display: flex;
  gap: 3px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.photo-viewer-filmstrip::-webkit-scrollbar {
  display: none;
}

.photo-filmstrip-item {
  position: relative;
  width: 34px;
  height: 50px;
  flex: 0 0 34px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #f2f2f4;
}

.photo-filmstrip-item.active {
  border-color: #0a84ff;
}

.photo-filmstrip-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-viewer-toolbar {
  flex: 0 0 77px;
  padding: 0 10px 20px;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  gap: 10px;
}

.photo-viewer-tool {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #ececef;
  border-radius: 50%;
  color: #131316;
  background: #fff;
  box-shadow: 0 2px 7px rgba(28, 29, 33, 0.05);
}

.photo-viewer-tool svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-viewer-tool-group {
  height: 58px;
  padding: 0 5px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border: 1px solid #ececef;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(28, 29, 33, 0.06);
}

.photo-viewer-tool-group .photo-viewer-tool {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.photo-viewer-tool.favorited svg {
  fill: #ff3b30;
  stroke: #ff3b30;
}

.photo-viewer-toast {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 111px;
  padding: 8px 14px;
  border-radius: 16px;
  color: #fff;
  background: rgba(30, 31, 35, 0.78);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s, transform 0.18s;
  backdrop-filter: blur(12px);
}

.photo-viewer-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.maps-view {
  position: relative;
  color: #222;
  background: #e8e3d8;
}

.map-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #e9e5da;
}

.map-svg {
  width: 100%;
  height: 100%;
}

.map-water {
  fill: #b9d9e9;
}

.map-land {
  fill: #eee9de;
}

.map-park {
  fill: #cae2bd;
}

.map-block {
  fill: #ddd8cd;
  stroke: #f7f5ef;
  stroke-width: 1.1;
}

.map-road {
  fill: none;
  stroke: #fff;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-road-inner {
  fill: none;
  stroke: #e9cb9f;
  stroke-width: 3;
  stroke-linecap: round;
}

.map-rail {
  fill: none;
  stroke: #9b9fe1;
  stroke-width: 4;
  stroke-dasharray: 6 5;
}

.map-label {
  fill: #5a5a57;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.map-label.small {
  fill: #777771;
  font-size: 8px;
  font-weight: 500;
}

.map-search {
  position: absolute;
  z-index: 2;
  top: 60px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-search-box {
  height: 45px;
  flex: 1;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 13px;
  background: rgba(250, 250, 250, 0.95);
  box-shadow: 0 8px 26px rgba(40, 44, 57, 0.18);
  backdrop-filter: blur(20px);
  font-size: 14px;
}

.map-search-box svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #888;
  stroke-width: 1.6;
}

.map-round {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--blue);
  background: rgba(250, 250, 250, 0.95);
  box-shadow: 0 8px 26px rgba(40, 44, 57, 0.18);
}

.map-round svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.map-pin {
  position: absolute;
  z-index: 2;
  top: 44%;
  left: 51%;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 5px 8px rgba(70, 40, 40, 0.22));
}

.map-pin svg {
  width: 43px;
  height: 53px;
}

.map-pin path {
  fill: #ed514e;
  stroke: #fff;
  stroke-width: 2;
}

.map-pin circle {
  fill: #fff;
}

.map-card {
  position: absolute;
  z-index: 3;
  left: 13px;
  right: 13px;
  bottom: 26px;
  padding: 17px 17px 14px;
  border-radius: 22px;
  background: rgba(252, 252, 252, 0.95);
  box-shadow: 0 12px 30px rgba(45, 49, 62, 0.2);
  backdrop-filter: blur(22px);
}

.map-card h3 {
  margin: 0 0 3px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.5px;
}

.map-card p {
  margin: 0 0 12px;
  color: #777;
  font-size: 12px;
}

.map-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.map-card-actions button {
  height: 37px;
  border-radius: 10px;
  color: #fff;
  background: #0a84ff;
  font-size: 12px;
  font-weight: 600;
}

.map-card-actions button + button {
  color: #0a84ff;
  background: #eaf4ff;
}

.map-card-actions .map-card-pill {
  border-radius: 20px;
}

/* Interactive Yokohama map */
.app-view.maps-view {
  position: relative;
  overflow: hidden;
  color: #151619;
  background: #e9e5dc;
}

.real-map-canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 18%, rgba(168, 211, 225, 0.55), transparent 26%),
    linear-gradient(145deg, #f0ece3, #dfe6dc);
}

.real-map-canvas.map-library-missing {
  background-position: center;
  background-size: cover;
}

.real-map-canvas.leaflet-container {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic",
    "Microsoft YaHei", sans-serif;
  background: #e9e5dc;
}

.real-map-canvas .leaflet-tile-pane {
  filter: saturate(0.9) contrast(0.97) brightness(1.02);
}

.real-map-canvas.has-live-map .leaflet-image-layer {
  visibility: hidden;
}

.real-map-canvas .leaflet-control-container {
  pointer-events: none;
}

.real-map-canvas .leaflet-control-attribution {
  padding: 2px 5px;
  border-radius: 5px;
  color: #696b6e;
  background: rgba(255, 255, 255, 0.78);
  font-size: 7px;
  pointer-events: auto;
  backdrop-filter: blur(7px);
}

.real-map-canvas .leaflet-control-attribution a {
  color: #515d69;
}

.app-view.maps-view .leaflet-bottom {
  bottom: 89px;
}

.map-weather-chip {
  position: absolute;
  z-index: 9;
  top: 55px;
  left: 13px;
  width: 111px;
  height: 70px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 7px 19px rgba(53, 63, 71, 0.12);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.map-weather-main {
  display: flex;
  align-items: center;
  gap: 5px;
}

.map-weather-main svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #7c9caf;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-weather-main strong {
  color: #16171a;
  font-size: 22px;
  font-weight: 430;
  letter-spacing: -1px;
}

.map-weather-chip > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #52575c;
  font-size: 10px;
  font-weight: 600;
}

.map-weather-chip > span i {
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 50%;
  background: #58c87b;
  box-shadow: 0 0 0 3px rgba(88, 200, 123, 0.14);
}

.map-area-chip {
  position: absolute;
  z-index: 8;
  top: 58px;
  left: 50%;
  min-width: 128px;
  padding: 8px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 18px rgba(53, 63, 71, 0.11);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.map-area-chip span {
  color: #8a8c8f;
  font-size: 8px;
  font-weight: 550;
}

.map-area-chip strong {
  margin-top: 1px;
  font-size: 11px;
  font-weight: 650;
}

.map-zoom-stack {
  position: absolute;
  z-index: 10;
  right: 14px;
  bottom: 112px;
  width: 47px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map-zoom-stack button {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  color: #1f2225;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(45, 55, 65, 0.14);
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
  backdrop-filter: blur(18px);
}

.map-zoom-stack button:active {
  background: rgba(236, 238, 239, 0.96);
  transform: scale(0.96);
}

.map-zoom-stack .map-locate-button {
  margin-top: 1px;
  color: #1684e8;
}

.map-compass {
  position: absolute;
  z-index: 10;
  right: 14px;
  bottom: 238px;
  width: 59px;
  height: 59px;
  display: grid;
  place-items: center;
  border: 8px dotted rgba(75, 77, 81, 0.14);
  border-radius: 50%;
  color: #202125;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 15px rgba(50, 55, 62, 0.15);
  font-size: 17px;
  font-weight: 700;
}

.map-compass i {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-bottom: 10px solid #f0443c;
  border-left: 4px solid transparent;
  transform: translateX(-50%);
}

.map-utility-stack {
  position: absolute;
  z-index: 10;
  right: 14px;
  bottom: 110px;
  width: 49px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 6px 18px rgba(45, 55, 65, 0.14);
  backdrop-filter: blur(18px);
}

.map-utility-stack button {
  width: 39px;
  height: 47px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #202124;
  background: transparent;
}

.map-utility-stack button:active {
  background: #f0f0f2;
}

.map-utility-stack svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-utility-stack .map-locate-button {
  color: #2787ec;
}

.map-utility-stack .map-locate-button svg {
  fill: currentColor;
}

.map-locate-button svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.map-source-status {
  position: absolute;
  z-index: 9;
  bottom: 95px;
  left: 9px;
  height: 18px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 0;
  color: #696a67;
  background: transparent;
  box-shadow: none;
  font-size: 8px;
  backdrop-filter: blur(10px);
}

.map-source-status span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4cc56e;
}

.map-source-status.offline span {
  background: #ff9f0a;
}

.map-source-status b {
  font-weight: 550;
}

.map-search-dock {
  position: absolute;
  z-index: 11;
  left: 13px;
  right: 13px;
  bottom: 24px;
}

.map-search-pill {
  width: 100%;
  height: 62px;
  padding: 0 10px 0 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 31px;
  color: #35383b;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 10px 30px rgba(36, 43, 50, 0.18),
    inset 0 1px rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.map-search-pill > span:nth-of-type(1) {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-search-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: #17191b;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.map-mic-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: #373a3d;
  stroke-width: 1.65;
  stroke-linecap: round;
}

.map-profile-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 66% 66%, #7c6ed6 0 21%, transparent 22%),
    linear-gradient(145deg, #f5b757, #cb7093);
  box-shadow: 0 3px 9px rgba(44, 34, 66, 0.2);
  font-size: 13px;
  font-weight: 650;
}

.school-map-icon-shell {
  background: none;
  border: 0;
}

.school-map-caption-cover {
  display: none;
}

.school-map-label {
  position: absolute;
  top: 2px;
  left: 50%;
  min-width: 126px;
  padding: 6px 10px 6px 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  color: #22262a;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 9px rgba(43, 51, 59, 0.16);
  transform: translateX(-50%);
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.school-map-label span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: #8b6d46;
  font-size: 11px;
  font-weight: 700;
}

.school-map-label strong {
  font-size: 14px;
  font-weight: 690;
  letter-spacing: -0.35px;
}

.school-map-dot {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 15px;
  height: 15px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1684e8;
  box-shadow:
    0 0 0 7px rgba(36, 145, 237, 0.18),
    0 2px 8px rgba(12, 61, 101, 0.3);
  transform: translateX(-50%);
}

.app-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px 34px;
  scrollbar-width: none;
}

.chat-view {
  background: #fff;
}

.chat-person {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chat-person h2 {
  font-size: 15px;
}

.chat-person span {
  margin-top: -4px;
  color: #8a8a8e;
  font-size: 10px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #62df83, #06c755);
  font-size: 14px;
  font-weight: 650;
}

.chat-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 11px 14px 0;
  background: #fff;
}

.dialogue-log {
  flex: 1;
  min-height: 0;
  padding: 5px 4px 15px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  scrollbar-width: none;
}

.dialogue-log::-webkit-scrollbar {
  display: none;
}

.chat-day {
  align-self: center;
  margin: 7px 0 9px;
  color: #95959a;
  font-size: 9px;
}

.message {
  max-width: 78%;
  padding: 9px 12px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.45;
  animation: message-in 0.3s ease both;
}

.message.incoming {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  background: #e9e9eb;
}

.message.outgoing {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  color: #fff;
  background: #06c755;
}

.message-meta {
  align-self: flex-end;
  margin: -3px 8px 3px 0;
  color: #a0a0a4;
  font-size: 8px;
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-next-area {
  flex: 0 0 auto;
  padding: 8px 4px 17px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

.chat-next-area p {
  margin: 0 0 8px;
  color: #9b9b9f;
  font-size: 9px;
  text-align: center;
}

.chat-next-button {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 14px;
  color: #fff;
  background: #06c755;
  font-size: 13px;
  font-weight: 620;
  box-shadow: 0 7px 18px rgba(6, 199, 85, 0.24);
}

.chat-next-button:disabled {
  color: #9b9b9f;
  background: #e8e8ed;
  box-shadow: none;
  cursor: default;
}

.line-list-view {
  color: #171719;
  background: #fff;
}

.line-list-header {
  flex: 0 0 auto;
  padding: 53px 16px 0;
  background: #fff;
}

.line-title-row {
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.line-title-button {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #111113;
  font-size: 27px;
  font-weight: 760;
  letter-spacing: -0.8px;
}

.line-title-button svg {
  width: 12px;
  height: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-header-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.line-header-actions button,
.line-chat-more,
.line-chat-back {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #1d1d20;
}

.line-header-actions svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-search-bar {
  width: 100%;
  height: 38px;
  margin: 5px 0 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 5px;
  color: #a1a1a5;
  background: #f4f4f6;
  font-size: 13px;
}

.line-search-bar svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.line-filter-tabs {
  height: 43px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #ededf0;
}

.line-filter-tabs button {
  position: relative;
  color: #8d8d92;
  font-size: 14px;
  font-weight: 540;
}

.line-filter-tabs button.active {
  color: #1c1c1e;
  font-weight: 650;
}

.line-filter-tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 62px;
  height: 2px;
  background: #1c1c1e;
  transform: translateX(-50%);
}

.line-filter-tabs i {
  position: absolute;
  top: 4px;
  left: calc(50% + 17px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b30;
}

.line-conversation-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #fff;
  scrollbar-width: none;
}

.line-conversation-list::-webkit-scrollbar {
  display: none;
}

.line-conversation {
  width: 100%;
  min-height: 77px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #efeff2;
  text-align: left;
}

.line-conversation:active {
  background: #f5f5f7;
}

.line-list-avatar {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #fff;
  box-shadow:
    0 2px 8px rgba(25, 27, 31, 0.15),
    inset 0 1px rgba(255, 255, 255, 0.24);
  font-size: 17px;
  font-weight: 650;
}

.line-list-avatar.peach {
  background: linear-gradient(145deg, #e7a1b0, #aa6d9b);
}

.line-list-avatar.green {
  background: linear-gradient(145deg, #82d599, #3d9f70);
}

.line-list-avatar.rose {
  background: linear-gradient(145deg, #e7a5bd, #b66c8f);
}

.line-list-avatar.amber {
  background: linear-gradient(145deg, #efbd75, #be755e);
}

.line-list-avatar.teal {
  background: linear-gradient(145deg, #58c5c9, #219aa9);
}

.line-conversation-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.line-conversation-copy strong {
  color: #18181b;
  font-size: 15px;
  font-weight: 660;
  letter-spacing: -0.2px;
}

.line-conversation-copy > span {
  display: -webkit-box;
  overflow: hidden;
  color: #8c8c91;
  font-size: 11.5px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-conversation-meta {
  align-self: flex-start;
  min-width: 44px;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.line-conversation-meta time {
  color: #a0a0a4;
  font-size: 9px;
}

.line-conversation-meta i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b30;
}

.line-conversation-meta i.line-unread-count {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.line-main-nav {
  flex: 0 0 75px;
  min-height: 75px;
  padding: 6px 18px 19px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #e8e8eb;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
}

.line-main-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #5d5e62;
  font-size: 9px;
  font-weight: 530;
}

.line-main-nav button.active {
  color: #111113;
  font-weight: 650;
}

.line-main-nav svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-chat-view {
  color: #172238;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #aabee0, #9db3da);
}

.line-chat-header {
  flex: 0 0 auto;
  min-height: 61px;
  padding: 52px 14px 9px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(170, 190, 224, 0.95);
}

.line-chat-back {
  justify-self: start;
  width: 42px;
  height: 42px;
  color: #15213a;
}

.line-chat-back svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-chat-person {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.line-chat-person .line-list-avatar {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  font-size: 12px;
}

.line-chat-person h2 {
  margin: 0;
  color: #15213a;
  font-size: 14px;
  font-weight: 680;
  letter-spacing: -0.3px;
}

.line-chat-person div > span {
  display: block;
  margin-top: 1px;
  color: #06c755;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.line-chat-more {
  justify-self: end;
  color: #15213a;
}

.line-chat-more svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.line-chat-stage {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 15px 16px;
  scrollbar-width: none;
}

.line-chat-stage::-webkit-scrollbar {
  display: none;
}

.line-chat-log {
  min-height: 100%;
  padding: 9px 2px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.line-chat-day {
  align-self: center;
  margin: 5px 0 6px;
  padding: 3px 8px;
  border-radius: 10px;
  color: #586b8a;
  background: rgba(255, 255, 255, 0.28);
  font-size: 9px;
}

.line-message-block {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.line-message-block.incoming {
  justify-content: flex-start;
}

.line-message-block.outgoing {
  justify-content: flex-end;
}

.line-message-avatar {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  font-size: 11px;
}

.line-chat-system {
  max-width: 90%;
  margin: 4px auto;
  padding: 7px 13px;
  align-self: center;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(92, 108, 137, 0.34);
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
}

.line-bubble-wrap {
  max-width: 76%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.line-message-sender {
  padding-left: 3px;
  color: #4f678e;
  font-size: 9px;
  font-weight: 620;
  line-height: 1.2;
}

.line-message-block.incoming .line-bubble-wrap {
  align-items: flex-start;
}

.line-message-block.outgoing .line-bubble-wrap {
  align-items: flex-end;
}

.line-message-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #637695;
  font-size: 8px;
  line-height: 1.1;
}

.line-message-block.outgoing .line-message-meta {
  justify-content: flex-end;
}

.line-message-meta time {
  font-size: inherit;
}

.line-sent-status {
  color: #4f647f;
  font-size: 8px;
  font-weight: 600;
}

.line-chat-view .message {
  max-width: 100%;
  padding: 10px 13px;
  border-radius: 17px;
  font-size: 13px;
  line-height: 1.42;
  box-shadow: 0 1px 2px rgba(20, 22, 27, 0.06);
}

.line-chat-view .message.incoming {
  border-bottom-left-radius: 4px;
  background: #fff;
}

.line-chat-view .message.outgoing {
  border-bottom-right-radius: 4px;
  color: #182219;
  background: #8fe682;
}

.line-chat-sticker {
  width: 132px;
  max-width: 58%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(20, 22, 27, 0.08));
}

.line-composer {
  flex: 0 0 47px;
  margin: 0 12px 22px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e0e0e4;
  border-radius: 24px;
  color: #a0a0a4;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 3px 10px rgba(27, 29, 33, 0.05);
  font-size: 12px;
  transition: margin-bottom 0.25s ease, border-color 0.2s;
}

.line-composer:disabled {
  cursor: default;
}

.line-composer-plus {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0f0f2;
  font-size: 18px;
}

.line-composer-placeholder {
  flex: 1;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-composer.has-text .line-composer-placeholder {
  color: #303034;
}

.line-composer-icon {
  color: #a3a3a7;
  font-size: 18px;
}

.line-chat-view.keyboard-open .line-composer {
  margin-bottom: 7px;
}

.line-keyboard {
  flex: 0 0 0;
  height: 0;
  padding: 0 6px;
  overflow: hidden;
  opacity: 0;
  background: #cbd0d7;
  transition:
    height 0.28s cubic-bezier(0.2, 0.7, 0.25, 1),
    flex-basis 0.28s cubic-bezier(0.2, 0.7, 0.25, 1),
    opacity 0.18s ease;
}

.line-chat-view.keyboard-open .line-keyboard {
  flex-basis: 270px;
  height: 270px;
  opacity: 1;
}

.line-key-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.line-key-row-2 {
  padding: 0 19px;
}

.line-key-row button {
  height: 42px;
  flex: 1;
  min-width: 0;
  border-radius: 6px;
  color: #1b1c1f;
  background: #fff;
  box-shadow: 0 1px 1px rgba(54, 61, 72, 0.2);
  font-size: 19px;
  font-weight: 400;
  transition: background 0.1s, transform 0.1s;
}

.line-key-row button:active {
  color: #fff;
  background: #8f969f;
  transform: translateY(1px);
}

.line-key-row button.key-pressed,
.line-key-row button.key-auto-pressed {
  color: #fff;
  background: #7f8791;
  box-shadow: inset 0 1px 3px rgba(29, 34, 41, 0.28);
  transform: translateY(1px);
}

.line-key-row .line-key-modifier {
  flex: 1.3;
  color: #1f2124;
  background: #aeb4bd;
  font-size: 17px;
}

.line-key-row .line-key-shift.active {
  background: #fff;
}

.line-key-row-bottom {
  align-items: stretch;
}

.line-key-row-bottom .line-key-number {
  flex: 1.05;
  font-size: 13px;
}

.line-key-row-bottom .line-key-emoji {
  flex: 0.78;
  font-size: 19px;
}

.line-key-row-bottom .line-key-space {
  flex: 4.2;
  font-size: 14px;
}

.line-key-row-bottom .line-key-send {
  flex: 1.08;
  color: #858a91;
  background: #aab0b8;
  font-size: 13px;
}

.line-key-row-bottom .line-key-send.ready {
  color: #fff;
  background: #06c755;
}

.line-keyboard-footer {
  height: 24px;
  padding: 2px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #686d75;
  font-size: 18px;
}

.instagram-view {
  background: #fff;
}

.instagram-brand {
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -1.2px;
}

.instagram-icons {
  justify-self: end;
  display: flex;
  gap: 11px;
}

.instagram-icons svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #222;
  stroke-width: 1.7;
}

.story-row {
  display: flex;
  gap: 13px;
  padding: 4px 14px 13px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #efefef;
}

.story {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}

.story-ring {
  width: 55px;
  height: 55px;
  padding: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
}

.story-ring img {
  width: 100%;
  height: 100%;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
}

.story:first-child .story-ring {
  background: #eee;
}

.story:first-child .story-ring::after {
  content: "+";
  position: absolute;
  width: 20px;
  height: 20px;
  margin: 34px 0 0 34px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #0a84ff;
  font-size: 14px;
}

.story:first-child .story-ring img {
  filter: brightness(0.8);
}

.instagram-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 25px;
}

.post-head {
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 620;
}

.post-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.post-head .post-more {
  margin-left: auto;
  letter-spacing: 2px;
}

.post-image {
  width: 100%;
  aspect-ratio: 1.18;
  display: block;
  object-fit: cover;
}

.post-actions {
  padding: 10px 12px 0;
  display: flex;
  gap: 13px;
  align-items: center;
}

.post-actions svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #222;
  stroke-width: 1.7;
}

.post-actions svg:last-child {
  margin-left: auto;
}

.post-caption {
  margin: 8px 13px 17px;
  font-size: 11px;
  line-height: 1.45;
}

.post-caption strong {
  margin-right: 4px;
}

.weather-view {
  color: #fff;
  background:
    radial-gradient(circle at 70% 11%, rgba(255, 238, 158, 0.3), transparent 22%),
    linear-gradient(180deg, #4f9bd4 0%, #357cb8 45%, #1a567e 100%);
}

.weather-view .app-back,
.weather-view .app-nav-action {
  color: #fff;
}

.weather-city {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 17px 30px;
  text-align: center;
  scrollbar-width: none;
}

.weather-city::-webkit-scrollbar {
  display: none;
}

.weather-city h1 {
  margin: 2px 0 3px;
  font-size: 31px;
  font-weight: 420;
  letter-spacing: -1px;
}

.weather-city > span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.weather-temp {
  margin: 9px 0 -6px;
  font-size: 85px;
  font-weight: 200;
  letter-spacing: -6px;
}

.weather-summary {
  font-size: 15px;
}

.weather-range {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.weather-hourly,
.weather-day {
  margin-top: 18px;
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(21, 65, 94, 0.3);
  backdrop-filter: blur(14px);
}

.weather-panel-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 11px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  text-align: left;
  text-transform: uppercase;
}

.hourly-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.hourly-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
}

.hourly-item span:first-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.weather-symbol {
  position: relative;
  width: 27px;
  height: 21px;
  display: block;
}

.weather-symbol::before {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 0;
  width: 21px;
  height: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
}

.weather-symbol::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffe58a;
}

.weather-day-row {
  min-height: 35px;
  display: grid;
  grid-template-columns: 47px 45px 1fr 31px;
  align-items: center;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 600;
}

.weather-day-row:first-of-type {
  border-top: 0;
}

.weather-day-row .weather-symbol {
  transform: scale(0.8);
}

.weather-range-bar {
  width: 100%;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.19);
}

.weather-range-bar::before {
  content: "";
  display: block;
  width: 61%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #86d7ef, #ffd477);
}

.weather-day-row span:last-child {
  text-align: right;
}

.calendar-view {
  background: #fff;
}

.calendar-header {
  padding: 0 17px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.5px;
}

.calendar-header div {
  display: flex;
  gap: 16px;
  color: #ff3b30;
  font-size: 19px;
}

.weekday-row {
  padding: 9px 13px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid #efeff1;
  border-bottom: 1px solid #efeff1;
  color: #888;
  font-size: 9px;
  text-align: center;
}

.calendar-grid {
  padding: 8px 10px 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 40px;
  gap: 2px;
}

.calendar-day {
  width: 33px;
  height: 33px;
  justify-self: center;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
}

.calendar-day.muted {
  color: #c2c2c6;
}

.calendar-day.today {
  color: #fff;
  background: #ff3b30;
}

.calendar-events {
  margin: 11px 16px 0;
  padding: 13px 14px;
  border-radius: 15px;
  background: #f2f2f7;
}

.calendar-events h3 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 650;
}

.calendar-event {
  min-height: 42px;
  padding-left: 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 3px solid #ff9f0a;
  font-size: 11px;
}

.calendar-event strong {
  font-weight: 600;
}

.calendar-event span {
  margin-top: 2px;
  color: #8a8a8e;
  font-size: 9px;
}

.clock-view {
  color: #fff;
  background: #000;
}

.clock-view .app-back,
.clock-view .app-nav-action {
  color: #ff9f0a;
}

.clock-tabs {
  margin: 0 auto 18px;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 9px;
  background: #1c1c1e;
  font-size: 10px;
}

.clock-tabs span {
  padding: 6px 4px;
  border-radius: 7px;
  color: #9e9e9f;
}

.clock-tabs .active {
  color: #000;
  background: #fff;
}

.clock-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
}

.analog-clock {
  position: relative;
  width: min(78vw, 300px);
  height: min(78vw, 300px);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 97.6%, rgba(255, 255, 255, 0.2) 97.8% 100%),
    #090909;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 35px rgba(255, 255, 255, 0.05);
}

.clock-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 13px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.8);
  transform-origin: center 0;
}

.clock-mark.major {
  width: 3px;
  height: 20px;
  background: #fff;
}

.clock-number {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #d9d9da;
  font-size: 25px;
  font-weight: 300;
}

.clock-hand {
  position: absolute;
  bottom: 50%;
  left: calc(50% - 2px);
  width: 4px;
  border-radius: 4px;
  transform-origin: center bottom;
  background: #fff;
}

.clock-hand.hour {
  height: 25%;
}

.clock-hand.minute {
  height: 35%;
}

.clock-hand.second {
  left: calc(50% - 1px);
  width: 2px;
  height: 40%;
  background: #ff9f0a;
}

.clock-center {
  position: absolute;
  top: calc(50% - 6px);
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border: 3px solid #ff9f0a;
  border-radius: 50%;
  background: #000;
}

.clock-digital {
  margin-top: 23px;
  color: #dedede;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -1px;
}

.clock-digital small {
  margin-left: 5px;
  color: #818184;
  font-size: 12px;
}

.clock-world {
  width: 100%;
  margin-top: 24px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #242426;
  border-bottom: 1px solid #242426;
}

.clock-world div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
}

.clock-world span {
  color: #7b7b7d;
  font-size: 9px;
}

.alarm-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 52px 18px 8px;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.alarm-scroll::-webkit-scrollbar {
  display: none;
}

.alarm-screen-header {
  flex: 0 0 auto;
}

.alarm-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alarm-edit-button {
  height: 36px;
  padding: 0 20px;
  border: 1px solid #39393b;
  border-radius: 19px;
  color: #f4f4f5;
  background: #242426;
  font-size: 14px;
  font-weight: 600;
}

.alarm-add-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #39393b;
  border-radius: 50%;
  background: #242426;
}

.alarm-add-button::before,
.alarm-add-button::after {
  content: "";
  position: absolute;
  width: 19px;
  height: 1.8px;
  border-radius: 2px;
  background: #f0f0f2;
}

.alarm-add-button::after {
  transform: rotate(90deg);
}

.alarm-screen-header h1 {
  margin: 18px 0 23px;
  color: #fff;
  font-size: 41px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -1.5px;
}

.sleep-alarm-row {
  min-height: 58px;
  padding: 11px 3px 13px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid #252527;
  color: #858589;
  font-size: 13px;
}

.sleep-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f1f1f3;
}

.sleep-title svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.sleep-title strong {
  font-size: 15px;
  font-weight: 650;
}

.alarm-section-title {
  margin: 23px 3px 9px;
  color: #fff;
  font-size: 25px;
  font-weight: 720;
  letter-spacing: -0.7px;
}

.alarm-list {
  border-top: 1px solid #303033;
}

.alarm-row {
  min-height: 76px;
  padding: 5px 3px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2a2a2c;
  transition: opacity 0.2s;
}

.alarm-time {
  display: flex;
  align-items: baseline;
  color: #f0f0f2;
  font-size: 48px;
  font-weight: 200;
  line-height: 0.92;
  letter-spacing: -2.4px;
  transition: color 0.2s;
}

.alarm-time span {
  margin: 0 3px;
  font-size: 39px;
  letter-spacing: -1px;
}

.alarm-label {
  margin-top: 3px;
  color: #9b9b9f;
  font-size: 11px;
  font-weight: 500;
}

.alarm-toggle {
  position: relative;
  width: 51px;
  height: 31px;
  flex: 0 0 51px;
  border-radius: 17px;
  background: #39393c;
  transition: background 0.2s;
}

.alarm-toggle span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s;
}

.alarm-toggle.on {
  background: #34c759;
}

.alarm-toggle.on span {
  transform: translateX(20px);
}

.alarm-row.off .alarm-time {
  color: #7d7d80;
}

.alarm-row.off .alarm-label {
  color: #656568;
}

.clock-dock {
  flex: 0 0 72px;
  min-height: 72px;
  margin: 6px 12px 22px;
  padding: 5px 9px 7px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 37px;
  background: rgba(44, 44, 46, 0.88);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.clock-dock button {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 28px;
  color: #b8b8bc;
  font-size: 9px;
  font-weight: 520;
}

.clock-dock button.active {
  color: #ff9f0a;
  background: rgba(255, 255, 255, 0.06);
}

.clock-dock-icon {
  width: 34px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 14px;
}

.clock-dock-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-view {
  background: #f2f2f7;
}

.coming-soon-view {
  background: #f7f7fa;
}

.coming-soon-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 58px;
}

.coming-soon-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 19px;
  box-shadow: 0 9px 20px rgba(28, 30, 38, 0.16);
}

.coming-soon-icon svg {
  display: block;
  fill: none;
  stroke: none;
}

.coming-soon-content h1 {
  margin: 18px 0 5px;
  color: #1b1b1f;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.coming-soon-content p {
  margin: 0;
  color: #8d8e93;
  font-size: 12px;
}

.notes-app-view {
  color: #17171b;
  background: #f5f5f7;
}

.notes-app-header,
.notes-detail-header {
  flex: 0 0 auto;
  padding: 52px 14px 10px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 8px;
  background: rgba(245, 245, 247, 0.95);
}

.notes-round-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #e9e9ec;
  border-radius: 50%;
  color: #202024;
  background: #fff;
  box-shadow: 0 3px 10px rgba(38, 39, 45, 0.05);
}

.notes-round-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notes-round-button span {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

.notes-header-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.notes-header-title h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 660;
}

.notes-header-title span {
  color: #96969b;
  font-size: 10px;
}

.notes-list-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px 18px;
}

.notes-list-scroll h2 {
  margin: 8px 3px 11px;
  font-size: 23px;
  font-weight: 740;
  letter-spacing: -0.7px;
}

.notes-list-card {
  width: 100%;
  min-height: 76px;
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(43, 44, 50, 0.04);
  text-align: left;
}

.notes-list-card strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notes-list-card span {
  color: #96969b;
  font-size: 12px;
}

.notes-search-dock {
  flex: 0 0 69px;
  padding: 4px 12px 20px;
  display: flex;
  gap: 10px;
  background: #f5f5f7;
}

.notes-search-box {
  height: 44px;
  flex: 1;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 23px;
  color: #8f9095;
  background: #fff;
  box-shadow: 0 3px 12px rgba(38, 39, 45, 0.06);
  font-size: 13px;
}

.notes-search-box > span {
  flex: 1;
}

.notes-search-box svg,
.notes-new-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notes-search-box .notes-mic-icon {
  width: 18px;
  height: 18px;
}

.notes-new-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid #e3e3e7;
  border-radius: 50%;
  color: #202024;
  background: #fff;
}

.notes-detail-view {
  color: #17171b;
  background: #fff;
}

.notes-detail-header {
  padding-right: 15px;
  grid-template-columns: 46px 1fr;
  border-bottom: 1px solid #f1f1f3;
  background: rgba(255, 255, 255, 0.96);
}

.notes-detail-actions {
  justify-self: end;
  height: 42px;
  padding: 0 7px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #eeeeF1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(38, 39, 45, 0.04);
}

.notes-detail-actions button {
  width: 31px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #17171a;
}

.notes-detail-actions svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notes-detail-actions span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.notes-editor {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 38px 23px 24px;
}

.notes-editor-date {
  display: block;
  color: #97979b;
  font-size: 11px;
}

.notes-editor p {
  margin: 12px 0 0;
  color: #202024;
  font-size: 18px;
  line-height: 1.7;
}

.notes-editor h2 {
  margin: 8px 0 9px;
  color: #202024;
  font-size: 29px;
  font-weight: 760;
  letter-spacing: -1px;
}

.notes-checklist {
  display: flex;
  flex-direction: column;
}

.notes-check-item {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 17px;
  color: #55565a;
  text-align: left;
  font-size: 16px;
}

.notes-check-circle {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border: 1.5px solid #c6c7ca;
  border-radius: 50%;
  background: #fff;
}

.notes-check-item.checked .notes-check-circle {
  border-color: #ffd60a;
  background: #ffd60a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.notes-check-item.checked .notes-check-circle::after {
  content: "✓";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #4b4300;
  font-size: 16px;
  font-weight: 700;
}

.notes-check-item.checked > span:last-child {
  color: #a1a1a5;
  text-decoration: line-through;
}

.notes-editor-tools {
  flex: 0 0 72px;
  padding: 8px 15px 23px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fff;
}

.notes-editor-tools button {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: #242429;
}

.notes-editor-tools svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notes-editor-tools .notes-new-note {
  width: 48px;
  height: 48px;
  margin-left: auto;
  border: 1px solid #e6e6e9;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(38, 39, 45, 0.05);
}

.settings-profile {
  margin: 0 16px 17px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 15px;
  background: #fff;
}

.settings-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #9e84dc, #da7894);
  font-size: 20px;
  font-weight: 600;
}

.settings-profile strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
}

.settings-profile span {
  display: block;
  margin-top: 2px;
  color: #8a8a8e;
  font-size: 10px;
}

.settings-section {
  margin: 0 16px 17px;
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
}

.settings-row {
  min-height: 45px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid #ececf0;
  font-size: 13px;
}

.settings-row:first-child {
  border-top: 0;
}

.settings-row-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: #8c8c91;
  font-size: 12px;
}

.settings-row > span:nth-child(2) {
  flex: 1;
}

.settings-row .chevron {
  color: #b6b6bb;
  font-size: 17px;
  font-weight: 300;
}

.settings-row .value {
  color: #9a9a9e;
  font-size: 11px;
}

.toggle {
  position: relative;
  width: 44px;
  height: 27px;
  border-radius: 15px;
  background: #e5e5ea;
  transition: background 0.2s;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.toggle.on {
  background: #34c759;
}

.toggle.on::after {
  transform: translateX(17px);
}

.phone-view {
  background: #fff;
}

.phone-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-title h2 {
  font-weight: 500;
}

.phone-number {
  min-height: 46px;
  margin: 14px 23px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 29px;
  font-weight: 300;
  letter-spacing: 1px;
}

.call-keypad {
  width: 100%;
  max-width: 300px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 24px;
}

.call-keypad button {
  width: 71px;
  height: 71px;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f2f2f7;
}

.call-keypad button:active {
  background: #dedee3;
}

.call-keypad button span {
  font-size: 28px;
  line-height: 28px;
}

.call-keypad button small {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.call-keypad .call-delete {
  color: #424245;
  background: transparent;
  font-size: 16px;
}

.call-button {
  width: 68px;
  height: 68px;
  margin: 22px auto 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #35c759;
}

.call-button svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.safari-view {
  background: #eeece8;
}

.safari-toolbar {
  padding: 55px 15px 8px;
  background: #f8f7f3;
}

.safari-address {
  height: 38px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 11px;
  color: #5b5b5b;
  background: #e9e7e2;
  font-size: 12px;
}

.safari-address svg {
  width: 11px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.safari-start {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 31px 17px 95px;
  background:
    radial-gradient(circle at 88% 3%, rgba(255, 207, 171, 0.35), transparent 31%),
    linear-gradient(#f4f2ed, #eeece7);
}

.safari-start h1 {
  margin: 0 0 25px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -2px;
}

.safari-suggestions {
  padding: 13px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px rgba(58, 53, 44, 0.06);
}

.safari-suggestion {
  min-height: 37px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #ebe8e1;
  color: #56534e;
  font-size: 12px;
}

.safari-suggestion:first-child {
  border-top: 0;
}

.safari-suggestion span:first-child {
  width: 18px;
  color: #a09a90;
  text-align: center;
}

.safari-favorites {
  margin-top: 25px;
}

.safari-favorites h2 {
  margin: 0 0 13px;
  font-size: 12px;
}

.favorite-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px 7px;
}

.favorite {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 9px;
}

.favorite-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #fff;
  box-shadow: 0 3px 9px rgba(30, 28, 24, 0.12);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.favorite:nth-child(1) .favorite-icon {
  background: linear-gradient(145deg, #fd5b45, #e93a46);
}

.favorite:nth-child(2) .favorite-icon {
  color: #1a2a4e;
  background: linear-gradient(145deg, #fff, #dbe7ff);
}

.favorite:nth-child(3) .favorite-icon {
  background: linear-gradient(145deg, #7d63e8, #4c3fc1);
}

.favorite:nth-child(4) .favorite-icon {
  background: linear-gradient(145deg, #42c5be, #1b938c);
}

.safari-bottom {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  padding: 0 22px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #0a84ff;
  background: rgba(248, 247, 243, 0.92);
  backdrop-filter: blur(20px);
}

.safari-bottom span {
  font-size: 21px;
}

.safari-bottom .tabs-symbol {
  width: 19px;
  height: 19px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.messages-view {
  background: #fff;
}

.messages-view .app-nav {
  border-bottom: 1px solid #ececf0;
}

.inbox-search {
  height: 34px;
  margin: 9px 15px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  color: #8e8e93;
  background: #efeff3;
  font-size: 12px;
}

.inbox-group {
  margin: 4px 15px 0;
  padding: 10px 0 2px;
  color: #8e8e93;
  font-size: 11px;
}

.inbox-item {
  min-height: 60px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #efeff2;
  text-align: left;
}

.inbox-avatar {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #b2a7d9, #7b71a6);
  font-size: 15px;
  font-weight: 600;
}

.inbox-item:nth-of-type(2) .inbox-avatar {
  background: linear-gradient(145deg, #fac474, #db7b6f);
}

.inbox-item:nth-of-type(3) .inbox-avatar {
  background: linear-gradient(145deg, #75c4df, #5787ba);
}

.inbox-text {
  flex: 1;
  min-width: 0;
}

.inbox-text strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
}

.inbox-text span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #8e8e93;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-time {
  align-self: flex-start;
  padding-top: 3px;
  color: #9a9a9e;
  font-size: 9px;
}

.sms-list-view {
  color: #151518;
  background: #fff;
}

.sms-list-header {
  flex: 0 0 auto;
  padding: 52px 16px 7px;
  background: #fff;
}

.sms-list-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sms-edit-button {
  height: 38px;
  padding: 0 21px;
  border-radius: 20px;
  background: #f5f5f7;
  font-size: 14px;
  font-weight: 600;
}

.sms-menu-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f5f5f7;
}

.sms-menu-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #29292d;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.sms-list-header h1 {
  margin: 16px 0 4px;
  font-size: 37px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -1.4px;
}

.sms-list-header p {
  margin: 0;
  color: #929297;
  font-size: 12px;
}

.sms-thread-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0 4px;
  scrollbar-width: none;
}

.sms-thread-list::-webkit-scrollbar,
.sms-chat-scroll::-webkit-scrollbar {
  display: none;
}

.sms-thread-row {
  width: 100%;
  min-height: 79px;
  padding: 8px 14px 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #eeeeef;
  text-align: left;
}

.sms-thread-row:active {
  background: #f7f7f8;
}

.sms-unread-slot {
  width: 9px;
  flex: 0 0 9px;
  display: grid;
  place-items: center;
}

.sms-unread-slot i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b30;
}

.sms-thread-avatar {
  width: 49px;
  height: 49px;
  flex: 0 0 49px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #aeb9d6, #7489bd);
  font-size: 17px;
  font-weight: 650;
}

.sms-thread-avatar.docomo {
  background: linear-gradient(145deg, #a8b7dc, #6e85bb);
}

.sms-thread-avatar.lumine {
  background: linear-gradient(145deg, #cdb6df, #8d72b4);
}

.sms-thread-avatar.tjoy {
  background: linear-gradient(145deg, #e5b59e, #b8796f);
}

.sms-thread-avatar.weather {
  background: linear-gradient(145deg, #77c7eb, #4288c9);
}

.sms-thread-avatar.apple {
  background: linear-gradient(145deg, #b8b9be, #777980);
}

.sms-thread-avatar.school {
  background: linear-gradient(145deg, #70b8cf, #3f7799);
}

.sms-thread-avatar.bookstore {
  background: linear-gradient(145deg, #d7b478, #a27448);
}

.sms-thread-avatar.softbank {
  background: linear-gradient(145deg, #d8d9dd, #858891);
}

.sms-thread-avatar.redbrick {
  background: linear-gradient(145deg, #d88168, #a7463e);
}

.sms-thread-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sms-thread-copy strong {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.15px;
}

.sms-thread-copy > span {
  display: -webkit-box;
  overflow: hidden;
  color: #8b8b90;
  font-size: 11.5px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sms-thread-meta {
  align-self: flex-start;
  padding-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #a4a4a8;
}

.sms-thread-meta time {
  font-size: 9px;
}

.sms-thread-meta span {
  color: #bbbcc0;
  font-size: 18px;
  line-height: 1;
}

.sms-thread-meta .sms-thread-read-state {
  padding: 2px 5px;
  border-radius: 6px;
  color: #7d7e83;
  background: #f1f1f3;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.2;
}

.sms-thread-meta .sms-thread-read-state.unread {
  color: #ec3b4f;
  background: rgba(236, 59, 79, 0.1);
}

.sms-search-dock {
  flex: 0 0 68px;
  padding: 5px 12px 20px;
  display: flex;
  gap: 10px;
  background: #fff;
}

.sms-search-box {
  height: 43px;
  flex: 1;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 22px;
  color: #8f9095;
  background: #f5f5f7;
  font-size: 13px;
}

.sms-search-box > span {
  flex: 1;
}

.sms-search-box svg,
.sms-compose-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sms-search-box .sms-mic-icon {
  width: 18px;
  height: 18px;
}

.sms-compose-button {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  border: 1px solid #dedee2;
  border-radius: 50%;
  color: #26262a;
  background: #fff;
}

.sms-chat-view {
  background: #f7f7f9;
}

.sms-chat-header {
  flex: 0 0 auto;
  min-height: 111px;
  padding: 52px 14px 10px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: start;
  border-bottom: 1px solid #e8e8ec;
  background: rgba(247, 247, 249, 0.96);
}

.sms-back-button,
.sms-chat-menu {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #202025;
  background: #f1f1f4;
}

.sms-back-button svg,
.sms-chat-menu svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sms-chat-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.sms-chat-title strong {
  font-size: 15px;
  font-weight: 650;
}

.sms-chat-title span {
  color: #98989d;
  font-size: 9px;
}

.sms-chat-menu {
  justify-self: end;
}

.sms-chat-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 14px 14px;
  scrollbar-width: none;
}

.sms-chat-contact {
  padding: 8px 0 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.sms-chat-contact .sms-thread-avatar {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  font-size: 21px;
}

.sms-chat-contact strong {
  font-size: 15px;
  font-weight: 650;
}

.sms-chat-contact small {
  color: #8c8d92;
  font-size: 10px;
}

.sms-date-divider {
  margin: 7px 0 8px;
  color: #8c8d92;
  font-size: 9px;
  text-align: center;
}

.sms-bubble-row {
  display: flex;
  justify-content: flex-start;
}

.sms-bubble {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 19px 19px 19px 5px;
  color: #212126;
  background: #e9e9ec;
  font-size: 13px;
  line-height: 1.52;
  word-break: break-word;
}

.sms-chat-composer {
  flex: 0 0 51px;
  margin: 0 12px 22px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dedee2;
  border-radius: 26px;
  color: #9a9ba0;
  background: rgba(255, 255, 255, 0.95);
  font-size: 12px;
}

.sms-chat-composer > span {
  flex: 1;
}

.sms-chat-composer button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #6f7075;
  font-size: 24px;
}

.sms-chat-composer svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.contacts-view {
  background: #f2f2f7;
}

.contacts-view .app-nav {
  background: #f2f2f7;
}

.contacts-letter {
  margin: 12px 16px 6px;
  color: #74767d;
  font-size: 10px;
  font-weight: 650;
}

.contacts-list {
  margin: 0 16px 14px;
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
}

.contact-row {
  width: 100%;
  min-height: 51px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #ececf0;
  text-align: left;
}

.contact-row:first-child {
  border-top: 0;
}

.contact-avatar {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #99aabd, #677990);
  font-size: 11px;
  font-weight: 600;
}

.contact-row:nth-child(even) .contact-avatar {
  background: linear-gradient(145deg, #bea2d3, #8872a6);
}

.contact-row strong {
  font-size: 13px;
  font-weight: 500;
}

.contact-row span:last-child {
  color: #b0b0b4;
  font-size: 17px;
}

.incoming-call-banner {
  position: absolute;
  z-index: 230;
  top: 0;
  left: 0;
  width: 100%;
  padding: 8px 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.incoming-call-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.incoming-call-card {
  min-height: 82px;
  padding: 12px 13px 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 42px;
  background: #050505;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.incoming-call-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #213551;
  background: linear-gradient(145deg, #e2f4fc, #b7d8e9);
  font-size: 19px;
  font-weight: 650;
}

.incoming-call-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.incoming-call-copy small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 500;
}

.incoming-call-copy strong {
  margin-top: 3px;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.incoming-call-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.incoming-call-actions button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}

.incoming-call-actions svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.incoming-call-decline {
  background: #f0443c;
  cursor: default;
  opacity: 1;
}

.incoming-call-accept {
  background: #35c759;
}

.incoming-call-accept:active {
  transform: scale(0.94);
}

.call-screen {
  position: absolute;
  z-index: 220;
  inset: 0;
  padding: 54px 20px 30px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 50% 13%, rgba(132, 139, 151, 0.46), transparent 35%),
    linear-gradient(180deg, #686f7d 0%, #3e434d 40%, #161920 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.24s ease, transform 0.28s ease, visibility 0s linear 0.28s;
}

.call-screen.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  transition-delay: 0s;
}

.phone-screen.call-active .dynamic-island {
  z-index: 240;
}

.phone-screen.call-active .status-bar {
  z-index: 245;
  color: #fff;
  mix-blend-mode: normal;
  text-shadow: 0 1px 6px rgba(8, 11, 17, 0.3);
}

.phone-screen.call-active .home-indicator {
  z-index: 245;
}

.phone-screen.call-active .home-indicator::after {
  background: rgba(255, 255, 255, 0.92);
}

.call-screen-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.call-avatar {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(206, 209, 215, 0.48);
  box-shadow: 0 8px 30px rgba(10, 12, 17, 0.2);
  font-size: 27px;
  font-weight: 380;
}

.call-screen-header h2 {
  margin: 16px 0 0;
  font-size: 22px;
  font-weight: 580;
  letter-spacing: -0.6px;
}

.call-screen-header time {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.call-transcript {
  min-height: 104px;
  margin-top: 26px;
  padding: 16px 19px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(126, 131, 143, 0.38);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  text-align: left;
  backdrop-filter: blur(12px);
}

.call-transcript-copy {
  width: 100%;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
  transition:
    opacity 0.24s ease,
    transform 0.34s cubic-bezier(0.22, 0.72, 0.2, 1),
    filter 0.28s ease;
}

.call-transcript.switching .call-transcript-copy {
  opacity: 0;
  transform: translate3d(0, -9px, 0);
  filter: blur(3px);
}

.call-transcript strong {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 500;
}

.call-transcript p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.93);
  font-size: 18px;
  font-weight: 430;
  line-height: 1.45;
}

.call-control-grid {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 14px;
}

.call-control-grid button {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
}

.call-control-grid button > span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(126, 130, 139, 0.52);
}

.call-control-grid button > span svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.call-control-grid button:nth-child(1) > span svg,
.call-control-grid button:nth-child(2) > span svg {
  fill: currentColor;
  stroke: currentColor;
}

.call-control-grid button > small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-control-grid .call-end-button {
  color: #fff;
}

.call-control-grid .call-end-button > span {
  width: 66px;
  height: 66px;
  background: #f0443c;
}

.call-control-grid .call-end-button svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  stroke: none;
}

.call-control-grid button:last-child > span svg {
  fill: currentColor;
  stroke: none;
}

.call-end-button:active > span {
  background: #da3029;
  transform: scale(0.95);
}

@media (max-width: 500px) {
  .phone-shell {
    width: 100vw;
    height: 100vh;
    height: 100svh;
    max-height: 100svh;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone-shell::after {
    display: none;
  }

  .phone-screen {
    border-radius: 0;
  }

  .dynamic-island {
    top: max(10px, env(safe-area-inset-top));
  }

  .status-bar {
    padding-top: max(14px, env(safe-area-inset-top));
  }
}

@media (max-height: 760px) {
  .home-screen {
    padding-top: 52px;
  }

  .home-widget {
    min-height: 120px;
    width: 140px;
    padding: 11px 13px;
  }

  .widget-body {
    padding-top: 7px;
  }

  .widget-body strong {
    font-size: 29px;
  }

  .app-grid {
    margin-top: 9px;
    gap: 6px;
  }

  .app-icon,
  .dock .app-icon {
    width: 52px;
    height: 52px;
  }

  .app-name {
    font-size: 9.5px;
  }

  .page-dots {
    margin-top: 6px;
  }

  .dock {
    padding: 8px 12px 7px;
  }

  .clock-main {
    padding-top: 0;
  }

  .analog-clock {
    width: 250px;
    height: 250px;
  }

  .clock-digital {
    margin-top: 10px;
  }

  .clock-world {
    margin-top: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media (max-height: 670px) {
  .home-widget {
    display: none;
  }

  .app-grid {
    margin-top: 4px;
  }

  .lock-widget {
    margin-top: 12px;
  }

  .keypad {
    gap: 8px 20px;
  }

  .keypad button {
    width: 64px;
    height: 64px;
  }
}

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