/* Local native app surfaces, scoped to avoid changing Instagram and LINE. */
.native-camera,
.native-weather,
.native-safari {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.native-camera button:disabled,
.native-weather button:disabled,
.native-safari button:disabled {
  opacity: 1;
  cursor: default;
  -webkit-text-fill-color: currentColor;
}
.native-camera svg,
.native-weather svg,
.native-safari svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.native-camera {
  background: #000;
  color: #f3f3f3;
  display: grid;
  grid-template-rows: 115px minmax(0, 1fr) 194px;
}
.camera-tools {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  padding: 0 20px 24px;
}
.camera-tools button {
  width: 24px;
  height: 24px;
}
.camera-viewfinder {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #222;
}
.camera-viewfinder video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camera-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      transparent calc(33.333% - 0.5px),
      #ffffff38 33.333%,
      transparent calc(33.333% + 0.5px),
      transparent calc(66.666% - 0.5px),
      #ffffff38 66.666%,
      transparent calc(66.666% + 0.5px)
    ),
    linear-gradient(
      to bottom,
      transparent calc(33.333% - 0.5px),
      #ffffff38 33.333%,
      transparent calc(33.333% + 0.5px),
      transparent calc(66.666% - 0.5px),
      #ffffff38 66.666%,
      transparent calc(66.666% + 0.5px)
    );
}
.camera-expand {
  position: absolute;
  bottom: 14px;
  left: calc(50% - 17px);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0005;
  display: grid;
  place-items: center;
}
.camera-expand svg {
  width: 20px;
  height: 20px;
}
.camera-flash {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
}
.camera-controls {
  padding: 16px 25px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.camera-shutter-row,
.camera-mode-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.camera-round {
  background: #202020;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.camera-depth {
  font-size: 25px;
  font-style: italic;
}
.camera-shutter {
  width: 74px;
  height: 74px;
  padding: 4px;
  border: 2px solid #535353;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 4px #242424;
}
.camera-shutter:active {
  background: #bbb;
}
.camera-mode-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #161616;
  border-radius: 30px;
  height: 44px;
  padding: 3px;
  flex: 1;
  max-width: 220px;
  min-width: 0;
  font-size: 12px;
}
.camera-mode-pill > * {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.camera-mode-pill button {
  color: #a5a5a5;
  font-size: inherit;
}
.camera-mode-pill .selected {
  color: #f8e52b;
  background: linear-gradient(#333, #161616);
  border: 1px solid #ffffff30;
  padding: 11px 7px;
  border-radius: 25px;
  box-shadow: inset 0 1px 2px #ffffff20;
}
.camera-thumbnail {
  width: 44px;
  height: 44px;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
}
.camera-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camera-captured {
  position: absolute;
  inset: 0;
  background: #000;
  color: white;
  display: flex;
  flex-direction: column;
}
.camera-captured header {
  display: flex;
  align-items: center;
  height: 100px;
  padding: 48px 16px 10px;
  flex: none;
}
.camera-captured header button {
  width: 36px;
  height: 36px;
}
.camera-captured header svg {
  width: 24px;
  height: 24px;
}
.camera-captured > img {
  display: block;
  width: 100%;
  height: calc(100% - 140px);
  object-fit: contain;
}
.jai-island-camera-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #32d74b;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.native-weather {
  color: white;
  background: linear-gradient(160deg, #1465a8 5%, #3786c4 45%, #9cc1df);
  isolation: isolate;
}
.native-weather::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at -8% 16%, #fff 0%, #fff9 6%, #fff0 27%),
    repeating-linear-gradient(
      160deg,
      transparent 0 28px,
      #ffffff08 30px,
      #ffffff12 32px,
      transparent 37px 65px
    );
}
.native-weather.is-cloudy {
  background: linear-gradient(160deg, #34516d, #6388aa 60%, #adc4d7);
}
.native-weather-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 70px 18px 125px;
}
.weather-hero {
  text-align: center;
  min-height: 310px;
  padding: 25px 0 35px;
}
.weather-home-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
}
.weather-home-label svg,
.weather-small-header svg {
  width: 12px;
  height: 12px;
}
.weather-hero h1 {
  margin: 8px 0 0;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 400;
}
.weather-temperature {
  font-size: 92px;
  line-height: 1.1;
  font-weight: 200;
  letter-spacing: -5px;
  padding-left: 10px;
}
.weather-hero p {
  margin: 6px 0 0;
  font-size: 18px;
  line-height: 1.3;
}
.weather-card {
  background: #2768a33d;
  border-radius: 18px;
  margin-bottom: 10px;
  padding: 14px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.weather-card h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.weather-conditions header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.weather-conditions header p {
  margin: 5px 0 0;
  font-size: 12px;
  color: #d3e5f3;
}
.weather-condition-name {
  font-size: 11px;
  color: #e6f2fb;
  text-align: right;
}
.weather-hours {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}
.weather-hours > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 15px;
}
.weather-hours b,
.weather-hours strong {
  font-weight: 500;
}
.weather-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 28px;
}
.weather-symbol.sunny {
  color: #ffdc3a;
}
.weather-symbol svg {
  width: 25px;
  height: 25px;
}
.weather-forecast {
  padding: 0 14px;
}
.weather-day {
  min-height: 54px;
  display: grid;
  align-items: center;
  gap: 8px;
  grid-template-columns: 49px 26px 32px minmax(24px, 1fr) 32px;
  font-size: 16px;
  border-bottom: 1px solid #ffffff1c;
}
.weather-day:last-child {
  border-bottom: 0;
}
.weather-day > b {
  font-weight: 400;
}
.weather-low {
  color: #b1d8f6;
  text-align: right;
}
.weather-range {
  position: relative;
  display: block;
  height: 5px;
  background: #2266a244;
  border-radius: 5px;
}
.weather-range i {
  position: absolute;
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(90deg, #ffd324, #ff8508);
}
.weather-range em {
  position: absolute;
  top: -1px;
  height: 7px;
  width: 7px;
  margin-left: -3px;
  background: white;
  border-radius: 50%;
  border: 1px solid #a3c6d8;
}
.weather-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.weather-detail {
  margin: 0;
  min-height: 156px;
  display: flex;
  flex-direction: column;
}
.weather-detail h2 {
  color: #bed9ec;
  font-size: 11px;
  font-weight: 500;
}
.weather-detail > strong {
  font-size: 36px;
  font-weight: 400;
  margin-top: 10px;
}
.weather-detail > b {
  font-weight: 500;
  font-size: 14px;
}
.weather-detail p {
  font-size: 12px;
  line-height: 1.45;
  margin: auto 0 0;
  padding-top: 10px;
}
.weather-wind {
  grid-column: 1 / -1;
  min-height: 130px;
}
.weather-wind small {
  font-size: 17px;
}
.weather-footer {
  position: absolute;
  bottom: 32px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  pointer-events: none;
}
.weather-footer > * {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #376b9466;
  border: 1px solid #ffffff24;
  box-shadow:
    inset 0 1px 3px #ffffff35,
    0 2px 4px #2d648c33;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  height: 44px;
  border-radius: 30px;
}
.weather-footer > button {
  width: 44px;
  flex: none;
}
.weather-footer > span {
  flex: 1;
  gap: 10px;
}
.weather-footer > span svg {
  width: 14px;
  height: 14px;
}
.weather-footer i {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #ffffffb3;
}
.weather-small-header {
  position: absolute;
  z-index: 3;
  inset: 44px 0 auto;
  padding: 16px 10px;
  text-align: center;
  background: #3c7fafbb;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
}
.weather-small-header > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 14px;
}
.weather-small-header > span:first-child {
  font-size: 10px;
}
.weather-small-header strong {
  display: block;
  font-size: 27px;
  font-weight: 400;
  margin: 4px 0 8px;
}
.is-scrolled .weather-small-header {
  opacity: 1;
}

.native-safari {
  background: linear-gradient(160deg, #f5f5f7, #e6e6ec);
  color: #1b1b1e;
  display: flex;
  flex-direction: column;
  padding-top: 52px;
}
.safari-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
}
.safari-history-header h1 {
  font-size: 31px;
  font-weight: 700;
  margin: 0;
}
.safari-history-header button {
  color: #007aff;
  font-size: 16px;
}
.safari-history-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px 20px;
}
.safari-history-section {
  padding: 6px 8px 9px;
  font-size: 13px;
  color: #74747a;
}
.safari-history-scroll ul {
  list-style: none;
  padding: 0 14px;
  margin: 0;
  background: #fff;
  border-radius: 14px;
}
.safari-history-scroll li {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #ededf0;
}
.safari-history-scroll li:last-child {
  border-bottom: 0;
}
.safari-history-scroll li > svg {
  color: #8b8b92;
  width: 18px;
  height: 18px;
}
.safari-history-scroll li > span:not(.safari-history-arrow) {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.safari-history-arrow {
  color: #8b8b92;
  font-size: 20px;
}
.safari-toolbar {
  padding: 10px 16px 32px;
  background: #eeeef4df;
  border-top: 1px solid #d8d8df;
  flex: none;
}
.safari-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #dedee6;
  border-radius: 14px;
  height: 44px;
  padding: 0 14px;
}
.safari-address svg {
  width: 17px;
  height: 17px;
  color: #6e6e75;
}
.safari-address input {
  font: inherit;
  font-size: 15px;
  background: transparent;
  color: #222;
  border: 0;
  outline: none;
  width: 100%;
  min-width: 0;
}
.safari-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: #007aff;
}
.safari-toolbar-actions > * {
  width: 32px;
  height: 28px;
  display: grid;
  place-items: center;
}
.safari-toolbar-actions > button:disabled {
  color: #aaaab2;
}
.safari-no-results {
  text-align: center;
  color: #8b8b92;
  margin-top: 40px;
}
.safari-history-scroll [hidden] {
  display: none;
}
@media (max-height: 650px) {
  .native-camera {
    grid-template-rows: 90px minmax(0, 1fr) 168px;
  }
  .camera-tools {
    padding-bottom: 14px;
  }
  .camera-controls {
    padding: 12px 20px 28px;
    gap: 10px;
  }
  .camera-shutter {
    width: 62px;
    height: 62px;
  }
  .camera-mode-pill {
    font-size: 10px;
  }
  .camera-round,
  .camera-thumbnail {
    width: 38px;
    height: 38px;
  }
  .native-weather-scroll {
    padding-left: 14px;
    padding-right: 14px;
  }
  .weather-day {
    font-size: 14px;
    grid-template-columns: 40px 23px 28px minmax(20px, 1fr) 28px;
    gap: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .camera-flash {
    display: none;
  }
}
/* Keep scrolling content below the status chrome; clouds stay soft and sparse. */
.native-weather::before {
  background:
    radial-gradient(ellipse at -8% 16%, #fff 0%, #fff8 6%, #fff0 27%),
    radial-gradient(ellipse 160px 5px at 70% 8%, #ffffff35, transparent),
    radial-gradient(ellipse 190px 7px at 55% 12%, #ffffff24, transparent),
    radial-gradient(ellipse 140px 4px at 85% 17%, #ffffff20, transparent);
}
.native-weather::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(110deg, #75a8ca, #1768a8);
}
.weather-detail h2 {
  display: flex;
  align-items: center;
  gap: 3px;
}
.weather-detail h2 svg {
  width: 13px;
  height: 13px;
}
.safari-history-arrow svg {
  width: 17px;
  height: 17px;
}
/* External Home apps retain the same icon/label treatment as native buttons. */
a.app {
  text-decoration: none;
}

/* Notes, Spotify and Alarms: authored personal details, isolated from social UI. */
.personal-notes,
.personal-spotify,
.personal-clock {
  position: absolute;
  inset: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}
.personal-notes {
  background: #f2f1f6;
  color: #080808;
}
.personal-notes.note-detail {
  background: #fff;
}
.personal-notes button:disabled,
.personal-spotify button:disabled,
.personal-clock button:disabled {
  opacity: 1;
  cursor: default;
  -webkit-text-fill-color: currentColor;
}
.personal-notes svg,
.personal-spotify svg,
.personal-clock svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.personal-top {
  position: absolute;
  top: 68px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}
.personal-top button,
.notes-bottom > button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #ffffff9c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
}
.personal-top > div {
  border: 1px solid #ddd;
  border-radius: 30px;
  background: #fff;
}
.personal-top > div button {
  border: 0;
  background: transparent;
}
.personal-scroll {
  overflow: auto;
  overscroll-behavior: contain;
  position: absolute;
  inset: 0;
  scrollbar-width: none;
}
.notes-scroll {
  padding: 124px 16px 110px;
}
.personal-notes h1 {
  font-size: 32px;
  line-height: 1.15;
  margin: 5px 0 8px;
  font-weight: 750;
}
.notes-count {
  color: #929296;
  margin: 0 0 24px;
  font-size: 15px;
}
.notes-scroll h2 {
  font-size: 20px;
  margin: 25px 0 13px;
}
.notes-group {
  background: #fff;
  border-radius: 25px;
  padding: 0 20px;
  overflow: hidden;
}
.notes-group button {
  display: block;
  text-align: left;
  width: 100%;
  padding: 14px 5px;
  border: 0;
  border-bottom: 1px solid #e5e5e8;
  background: none;
  color: #111;
}
.notes-group button:last-child {
  border-bottom: 0;
}
.notes-group strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 17px;
}
.notes-group span {
  display: block;
  color: #949498;
  font-size: 13px;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notes-group em {
  font-style: normal;
  margin-left: 5px;
}
.notes-bottom {
  position: absolute;
  bottom: 30px;
  left: 26px;
  right: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.notes-bottom label,
.note-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 30px;
  background: #ffffffde;
  backdrop-filter: blur(16px);
  min-width: 0;
  flex: 1;
}
.notes-bottom input {
  border: 0;
  background: transparent;
  min-width: 0;
  width: 100%;
  font-size: 17px;
  color: #111;
  outline: none;
}
.notes-bottom > button {
  flex-shrink: 0;
}
.note-detail article {
  padding: 155px 29px 120px;
}
.note-detail article h1 {
  font-size: 23px;
  margin-bottom: 24px;
}
.note-detail article p {
  white-space: pre-wrap;
  font-size: 18px;
  line-height: 1.85;
  color: #333;
}
.note-tools {
  flex: 0 1 auto;
  gap: 20px;
}
.note-tools button {
  background: none;
  border: 0;
  padding: 0;
  color: #111;
}
.personal-spotify {
  color: #fff;
  background: #121212;
}
.spotify-scroll {
  padding: 67px 16px 165px;
  background: linear-gradient(#4162ff 0, #263574 160px, #121212 320px);
}
.spotify-scroll header {
  height: 43px;
}
.spotify-scroll header button {
  color: #fff;
  border: 0;
  background: none;
  padding: 0;
}
.spotify-find {
  display: flex;
  gap: 8px;
  margin: 6px 0 22px;
}
.spotify-find label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px;
  background: #ffffff20;
  border-radius: 3px;
  min-width: 0;
  flex: 1;
}
.spotify-find svg {
  width: 18px;
  height: 18px;
}
.spotify-find input {
  font-size: 12px;
  font-weight: 650;
  width: 100%;
  min-width: 0;
  background: none;
  color: #fff;
  border: 0;
  outline: none;
}
.spotify-find input::placeholder {
  color: #fff;
}
.spotify-find > button {
  background: #ffffff20;
  color: #fff;
  border: 0;
  border-radius: 3px;
  font-weight: 650;
  padding: 0 15px;
}
.spotify-scroll h1 {
  font-size: 27px;
  margin: 0 0 8px;
}
.spotify-count {
  font-size: 13px;
  color: #c1c1cf;
  margin: 0;
}
.spotify-actions {
  display: flex;
  gap: 17px;
  align-items: center;
  margin: 12px 0 16px;
}
.spotify-actions > span:empty {
  flex: 1;
}
.spotify-actions button {
  background: none;
  border: 0;
  color: #aaa;
  padding: 0;
}
.spotify-actions .spotify-play {
  background: #1ed760;
  color: #000;
  border-radius: 50%;
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
}
.spotify-actions button[aria-label='Shuffle'] {
  color: #1ed760;
}
.spotify-stack {
  width: 36px;
  height: 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(130deg, #aa73e0, #445174);
  border: 2px solid #eee;
  border-radius: 4px;
  box-shadow: 3px -2px #9b9da9;
}
.spotify-chips {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin: 0 0 17px;
}
.spotify-chips button {
  border: 0;
  border-radius: 22px;
  background: #292929;
  color: #fff;
  padding: 8px 13px;
  white-space: nowrap;
  font-size: 13px;
}
.spotify-chips button[aria-pressed='true'] {
  background: #1ed760;
  color: #000;
}
.spotify-add {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  color: #eee;
  font-size: 16px;
  padding: 0;
  margin-bottom: 16px;
}
.spotify-add span {
  background: #222;
  color: #aaa;
  font-size: 36px;
  width: 47px;
  height: 47px;
  line-height: 47px;
}
.spotify-track {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 66px;
}
.spotify-art {
  width: 47px;
  height: 47px;
  background: linear-gradient(145deg, #ffffff12, var(--cover));
  display: grid;
  place-items: center;
  border-radius: 3px;
  flex-shrink: 0;
  overflow: hidden;
  color: #ffffffa0;
}
.spotify-art i {
  font:
    italic 23px Georgia,
    serif;
  border: 1px solid #ffffff50;
  padding: 3px;
}
.spotify-track > div {
  min-width: 0;
  flex: 1;
}
.spotify-track strong {
  font-size: 15px;
  font-weight: 450;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spotify-track small,
.spotify-mini small {
  display: block;
  color: #aaa;
  font-size: 12px;
  margin-top: 5px;
}
.spotify-track button {
  border: 0;
  background: none;
  color: #b2b2b2;
  padding: 6px 0;
}
.spotify-mini {
  position: absolute;
  bottom: 87px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
  background: #292929;
  border-radius: 9px;
  font-size: 13px;
}
.spotify-mini .spotify-art {
  width: 34px;
  height: 38px;
}
.spotify-mini > div {
  flex: 1;
}
.spotify-mini button {
  background: none;
  color: #fff;
  border: 0;
}
.spotify-liked {
  color: #111;
  background: #1ed760;
  border-radius: 50%;
  padding: 2px 5px;
  font-weight: bold;
}
.spotify-tabs {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  height: 60px;
  background: #121212f5;
  display: flex;
  justify-content: space-around;
}
.spotify-tabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 0;
  color: #aaa;
  font-size: 27px;
}
.spotify-tabs span {
  font-size: 10px;
}
.spotify-tabs .selected {
  color: #fff;
}
.personal-clock {
  background: #000;
  color: #fff;
}
.personal-clock > header {
  position: absolute;
  top: 67px;
  right: 16px;
  display: flex;
  gap: 10px;
  z-index: 2;
}
.personal-clock > header button {
  background: #1c1c1e;
  border: 0;
  border-radius: 28px;
  color: #fff;
  padding: 10px 16px;
  font-size: 17px;
}
.personal-clock > header button:last-child {
  font-size: 29px;
  line-height: 25px;
  padding: 7px 14px;
}
.alarms-scroll {
  padding: 126px 16px 120px;
}
.alarms-scroll h1 {
  font-size: 32px;
  margin: 0 0 35px;
}
.alarm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #2c2c2e;
  padding: 15px 0;
}
.alarm-row:last-child {
  border-bottom: 1px solid #2c2c2e;
}
.alarm-row strong {
  display: block;
  font-size: 57px;
  line-height: 1.1;
  letter-spacing: -2px;
  font-weight: 250;
}
.alarm-row small {
  display: block;
  font-size: 15px;
  margin-top: 5px;
}
.alarm-row.is-off > div {
  color: #7a7a7e;
}
.alarm-row button {
  width: 58px;
  height: 34px;
  border: 0;
  border-radius: 20px;
  background: #39393d;
  padding: 3px;
}
.alarm-row button i {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0004;
  transition: transform 0.15s;
}
.alarm-row button[aria-checked='true'] {
  background: #30d158;
}
.alarm-row button[aria-checked='true'] i {
  transform: translateX(24px);
}
.alarm-tabs {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  background: linear-gradient(#282828, #1a1a1a);
  border: 1px solid #444;
  border-radius: 40px;
  display: flex;
  padding: 4px;
}
.alarm-tabs button {
  flex: 1;
  border: 0;
  background: none;
  color: #eee;
  border-radius: 30px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
  padding: 5px 0;
  font-size: 10px;
}
.alarm-tabs b {
  font-size: 24px;
  font-weight: 400;
}
.alarm-tabs .selected {
  background: #080808;
  color: #ff9500;
}
.personal-notes [hidden],
.personal-spotify [hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .alarm-row button i {
    transition: none;
  }
}
.spotify-tabs {
  bottom: 0;
  height: 82px;
  padding-bottom: 22px;
  background: #121212;
}
.alarm-tabs b {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
}
.native-calendar,
.native-library,
.library-viewer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}
.native-calendar button:disabled,
.native-library button:disabled,
.library-viewer button:disabled {
  opacity: 1;
  cursor: default;
  -webkit-text-fill-color: currentColor;
}
.native-calendar svg,
.native-library svg,
.library-viewer svg {
  width: 24px;
  height: 24px;
}
.native-calendar {
  background: #fafafa;
  color: #111;
}
.native-calendar > header {
  position: absolute;
  top: 66px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.native-calendar button {
  background: #efeff0;
  color: #111;
  border: 1px solid #ddd;
  border-radius: 30px;
  padding: 10px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.native-calendar header > div,
.native-calendar footer > div {
  display: flex;
  background: #efeff0;
  border: 1px solid #ddd;
  border-radius: 30px;
  padding: 0 5px;
}
.native-calendar header > div button,
.native-calendar footer > div button {
  border: 0;
  background: none;
  padding: 10px;
}
.calendar-weekdays {
  position: absolute;
  top: 175px;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  color: #888;
  font-size: 11px;
  text-align: center;
  z-index: 1;
  background: #fafafa;
}
.calendar-scroll {
  top: 116px;
  padding-bottom: 105px;
}
.calendar-month h1 {
  font-size: 32px;
  margin: 10px 20px 28px;
  line-height: 1.2;
}
.calendar-month h2 {
  font-size: 22px;
  margin: 20px 10px 0;
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-days > span {
  height: 67px;
  border-top: 1px solid #ddd;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10px;
  font-size: 18px;
}
.calendar-days b {
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.calendar-days .weekend {
  color: #8e8e93;
}
.calendar-days .today b {
  background: #ff3b45;
  color: #fff;
}
.native-calendar > footer {
  position: absolute;
  bottom: 29px;
  left: 25px;
  right: 25px;
  display: flex;
  justify-content: space-between;
}
.native-library,
.library-viewer {
  background: #000;
  color: #fff;
}
.library-scroll {
  padding: 65px 0 120px;
}
.library-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 16px 17px;
  background: linear-gradient(#252525, #161616);
  position: sticky;
  top: 0;
  z-index: 1;
}
.library-header > div {
  flex: 1;
}
.library-header h1 {
  font-size: 32px;
  margin: 0 0 7px;
}
.library-header strong {
  font-size: 15px;
}
.library-header button,
.library-bottom button {
  border: 1px solid #555;
  background: #282828;
  color: #fff;
  border-radius: 30px;
  padding: 10px 13px;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
}
.library-grid button {
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  background: #202020;
  overflow: hidden;
}
.library-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.library-bottom {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.library-bottom > div {
  display: flex;
  border: 1px solid #444;
  border-radius: 45px;
  background: #222;
  padding: 4px;
}
.library-bottom > div button {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  padding: 7px 20px;
}
.library-bottom .selected {
  background: #080808;
  color: #009dff;
}
.library-bottom > button {
  width: 57px;
  height: 57px;
  padding: 15px;
}
.library-viewer header {
  position: absolute;
  top: 66px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.library-viewer button {
  border: 0;
  background: none;
  color: #fff;
  padding: 8px;
}
.library-viewer .photo-tile {
  position: absolute;
  inset: 115px 0 100px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}
.library-viewer .photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.library-viewer footer {
  position: absolute;
  bottom: 35px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
}
.library-viewer.jai-photo-bare header,
.library-viewer.jai-photo-bare footer,
.library-viewer.jai-photo-bare .jai-photo-count {
  visibility: hidden;
}
.library-viewer.jai-photo-bare .photo-tile {
  inset: 54px 0 25px;
}
.library-viewer .jai-photo-count {
  position: static;
  padding: 0;
  background: none;
  font-size: 14px;
}

/* Revised Photos reference: three square columns and a floating period selector. */
.library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
}
.library-grid button {
  aspect-ratio: 1/1;
  border-radius: 2px;
}
.library-scroll {
  padding-bottom: 110px;
}
.library-header {
  background: #24242480;
  backdrop-filter: blur(22px);
  align-items: center;
}
.library-bottom {
  left: 16px;
  right: 16px;
  gap: 8px;
}
.library-bottom > button {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border: 1px solid #ffffff30;
  background: #424242a6;
  backdrop-filter: blur(18px);
  padding: 12px;
}
.library-bottom .library-shortcut {
  color: #009dff;
}
.library-bottom .library-periods {
  flex: 1;
  min-width: 0;
  padding: 4px;
  border: 1px solid #ffffff25;
  background: #646464a6;
  backdrop-filter: blur(22px);
  border-radius: 35px;
}
.library-bottom .library-periods button {
  flex: 1;
  min-width: 0;
  padding: 12px 4px;
  font-size: 14px;
  white-space: nowrap;
  color: #fff;
  display: block;
  border-radius: 25px;
}
.library-bottom .library-periods .selected {
  background: #343434a0;
  color: #fff;
}
.calendar-days > span {
  position: relative;
}
.calendar-event-dot {
  position: absolute;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #af52de;
}

/* Camera 4:3 preview; crop the original local clip without stretching it. */
.camera-viewfinder {
  width: 100%;
  aspect-ratio: 4/3;
  align-self: center;
  height: auto;
}

/* Calendar-year photo sections retain the same three-column square thumbnails. */
.library-year-group {
  position: relative;
  margin: 0 0 12px;
}
.library-year-label {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  margin: 0;
  padding: 5px 10px;
  border-radius: 10px;
  background: #000b;
  color: #fff;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.2;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

/* Supplied album covers replace the numbered placeholder tiles. */
.spotify-art img,
.spotify-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.spotify-stack {
  overflow: hidden;
}

/* Reference Phone uses the user's final white appearance. */
.phone-reference {
  background: #fff;
  color: #080808;
}
.phone-reference-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 58px 16px 12px;
  flex: none;
}
.phone-reference-header > button {
  min-width: 46px;
  height: 46px;
  padding: 0 15px;
  border-radius: 28px;
  border: 1px solid #e9e9ec;
  background: linear-gradient(#fff, #f7f7f8);
  color: #111;
  opacity: 1;
}
.phone-reference-header b {
  font-size: 18px;
}
.phone-reference .app-content {
  padding: 0 16px 10px;
}
.phone-call-row {
  width: 100%;
  min-height: 78px;
  padding: 12px 0;
  gap: 9px;
  position: relative;
  border: 0;
  text-align: left;
}
.phone-call-row::after {
  content: '';
  position: absolute;
  left: 60px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #e7e7e9;
}
.phone-call-avatar {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(#abc9df, #777bb1);
}
.phone-call-avatar svg {
  width: 100%;
  height: 100%;
}
.phone-call-detail {
  flex: 1;
  min-width: 0;
}
.phone-call-detail b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}
.phone-call-detail small {
  display: block;
  margin-top: 4px;
  color: #929295;
  font-size: 14px;
}
.phone-call-row.missed b {
  color: #ff453a;
}
.phone-call-row .meta {
  font-size: 13px;
  color: #929295;
}
.phone-call-action {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f5f5f7;
  color: #0098ff;
}
.phone-call-action svg {
  width: 22px;
  height: 22px;
}
.phone-reference-bottom {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px 28px;
  background: #ffffffec;
}
.phone-reference .phone-tabs {
  flex: 1;
  height: 62px;
  border: 1px solid #e9e9ec;
  border-radius: 38px;
  padding: 4px;
  background: #f6f6f8;
}
.phone-reference .phone-tabs button {
  height: 52px;
  justify-content: center;
  color: #111;
}
.phone-reference .phone-tabs button.active {
  border-radius: 32px;
  background: #e9e9ec;
  color: #0098ff;
}
.phone-search {
  width: 62px;
  height: 62px;
  border: 1px solid #e9e9ec;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #111;
  opacity: 1;
}
.phone-search svg {
  width: 29px;
  height: 29px;
}
.safari-history-header {
  padding: 18px 20px 8px;
}
.safari-history-header button {
  background: #ffffffc9;
  border: 1px solid #e6e6eb;
  border-radius: 30px;
  padding: 10px 16px;
  box-shadow: 0 4px 12px #00000008;
}
.safari-history-scroll h1 {
  font-size: 24px;
  margin: 24px 4px 14px;
  letter-spacing: -1px;
}
.safari-favorites {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}
.safari-favorites button {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #444;
  opacity: 1;
}
.safari-favorites button > span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 20%;
  font-size: 23px;
  font-weight: 700;
  margin-bottom: 9px;
  box-shadow: 0 3px 9px #0000000c;
}
.favorite-google {
  color: #4285f4;
  background: white;
}
.favorite-youtube {
  color: #222;
  background: #ff001b;
}
.favorite-x {
  color: #999;
  background: black;
}
.favorite-naver {
  color: #004e24;
  background: #00c74b;
}
.safari-history-scroll ul {
  border-radius: 24px;
}
.safari-history-arrow {
  display: none;
}
.safari-toolbar {
  border: 0;
  border-radius: 30px 30px 0 0;
  padding-top: 8px;
}
.safari-url {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e3e3ea;
  border-radius: 24px;
  height: 42px;
  padding: 0 15px;
  margin-bottom: 6px;
}
.safari-url > span:first-child,
.safari-url button {
  color: #85858c;
}
.safari-address {
  height: 30px;
  background: transparent;
}
.safari-address input {
  font-size: 12px;
}
.safari-toolbar-actions {
  margin-top: 6px;
}
.phone-direction {
  width: 12px;
  height: 12px;
  vertical-align: -1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.safari-toolbar-actions > button:disabled {
  color: #007aff;
}

/* Keep the Library chrome and year badges below the system status area. */
.native-library .library-header {
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  height: 94px;
  box-sizing: border-box;
  padding: 8px 16px 14px;
  z-index: 2;
  background: #191919;
}
.native-library .library-scroll {
  top: 156px;
  padding: 0 0 110px;
}
.library-header h1 {
  font-size: 30px;
}
.library-header > div {
  min-width: 0;
}
.library-header button {
  flex-shrink: 0;
}

/* Month titles and weekdays belong to each scrollable month, below toolbar. */
.native-calendar > header {
  background: #fafafa;
  padding: 0 0 12px;
}
.native-calendar .calendar-scroll {
  top: 124px;
}
.calendar-month {
  position: relative;
  padding-top: 8px;
}
.calendar-weekdays {
  position: static;
  padding: 8px 0;
  background: transparent;
}
.calendar-month h1 {
  margin: 8px 18px 12px;
}
.calendar-holiday-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0a84ff;
  bottom: 9px;
  left: calc(50% - 2.5px);
}
.safari-history-scroll {
  padding-top: 20px;
  padding-bottom: 145px;
}
.safari-toolbar {
  padding-top: 8px;
}
.line-call-time .line-read {
  display: block;
  font-size: 10px;
  margin-bottom: 3px;
}

/* The source clip is portrait 720 × 960; preserve its full upright frame. */
.native-camera .camera-viewfinder {
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 3/4;
  align-self: center;
  justify-self: center;
}
.native-camera .camera-viewfinder video {
  object-fit: contain;
  background: #000;
}
.library-viewer header > button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #242528;
  border: 1px solid #ffffff12;
  display: grid;
  place-items: center;
}
.library-photo-date-pill {
  min-width: 150px;
  max-width: 64%;
  border-radius: 30px;
  background: #202022;
  border: 1px solid #ffffff18;
  padding: 7px 20px;
  text-align: center;
}
.library-photo-date-pill strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.library-photo-date-pill .jai-photo-count {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  color: #b7b7bd;
}
.library-viewer .photo-tile {
  inset: 125px 16px 180px;
  overflow: hidden;
  border-radius: 22px;
}
.library-filmstrip {
  position: absolute;
  bottom: 110px;
  left: 16px;
  right: 16px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}
.library-filmstrip button {
  flex: 0 0 25px;
  width: 25px;
  height: 32px;
  padding: 0;
  overflow: hidden;
  border-radius: 3px;
  opacity: 0.6;
}
.library-filmstrip button.selected {
  flex-basis: 34px;
  height: 42px;
  opacity: 1;
  border: 1px solid #fff8;
}
.library-filmstrip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.library-viewer footer {
  bottom: 30px;
  align-items: center;
  gap: 12px;
}
.library-viewer footer > button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #232325;
  border: 1px solid #ffffff15;
}
.library-photo-toolgroup {
  display: flex;
  gap: 8px;
  padding: 3px 8px;
  border-radius: 30px;
  background: #232325;
  border: 1px solid #ffffff15;
}
.library-photo-toolgroup button {
  width: 38px;
  height: 38px;
}
.library-viewer.jai-photo-bare .library-filmstrip {
  visibility: hidden;
}

/* Explicit image bounds override the generic tile's 100% dimensions. */
.library-viewer .photo-tile {
  width: auto;
  height: auto;
  max-height: none;
  min-height: 0;
  margin: 0;
  flex: none;
  inset: 126px 16px 174px;
  background: #000;
}
.library-viewer .photo-tile::before {
  display: none;
}
.library-viewer .photo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}
.library-viewer .library-filmstrip {
  z-index: 2;
  background: #000;
  padding: 4px 0;
  box-sizing: content-box;
}
.library-viewer footer {
  z-index: 2;
  padding: 0;
  background: #000;
}
.library-viewer.jai-photo-bare .photo-tile {
  inset: 60px 0 25px;
}
