/* JAI'S PHONE visual layer. The reference CSS stays intact for the familiar iPhone proportions/motion. */
:root {
  color-scheme: light;
  --jai-ink: #12131e;
  --jai-blue: #007aff;
}
body {
  background: #080a11;
  font-family:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Noto Sans Thai', Arial, sans-serif;
}
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 23%, rgba(69, 80, 130, 0.22), transparent 42%),
    radial-gradient(circle at 10% 83%, rgba(154, 78, 98, 0.16), transparent 38%);
}
.desktop-info {
  position: fixed;
  top: 50%;
  left: max(4vw, calc(50% - 580px));
  transform: translateY(-50%);
  color: #fff;
  pointer-events: none;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: #b7b7cf;
  font-weight: 650;
}
.desktop-info h1 {
  font-size: clamp(52px, 6vw, 95px);
  line-height: 0.94;
  letter-spacing: -5.5px;
  margin: 20px 0 28px;
  font-weight: 790;
}
.info-point {
  color: #faa6bd;
}
.info-rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  width: 225px;
}
.desktop-info p {
  color: #a2a3bb;
  font-size: 16px;
  line-height: 1.6;
  margin: 24px 0 36px;
}
.build-chip {
  display: inline-block;
  border: 1px solid #414458;
  border-radius: 28px;
  color: #bcc0d5;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 12px 17px;
  font-weight: 680;
}
#phone {
  z-index: 1;
  margin: 0;
}
#phone.mob {
  margin: 0;
  position: absolute;
  inset: 0;
  width: 100vw !important;
  height: 100dvh !important;
}
#wall:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 110%;
  top: -5%;
  left: 0;
  background: radial-gradient(ellipse at 82% 61%, rgba(243, 173, 191, 0.3) 0%, transparent 48%);
  filter: blur(35px);
}
#screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  z-index: 65;
}
#sb {
  padding-left: 36px;
  padding-right: 27px;
}
#sb .t {
  width: auto;
  min-width: 58px;
  text-align: left;
}
#hb {
  background: none;
  border: 0;
  padding: 0 0 8px;
}
#hb:focus-visible {
  outline: none;
}
#hb:focus-visible i {
  outline: 3px solid var(--blue);
}
.lk-date {
  top: 83px;
  font-size: 19px;
  font-weight: 650;
}
.lk-time {
  top: 107px;
  font-size: 95px;
  font-weight: 570;
  letter-spacing: -5px;
}
#lkc {
  background: transparent;
}
.lk-notes {
  bottom: 143px;
}
.lk-hint {
  bottom: 112px;
  font-size: 13px;
  letter-spacing: 0.1px;
}
#lockL {
  z-index: 30;
  background: transparent;
}
#pinL {
  z-index: 33;
}
#pinL .pt {
  font-size: 19px;
}
#pinL .pdots {
  gap: 22px;
}
.pin-help {
  position: absolute;
  bottom: 90px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  text-align: center;
  width: 100%;
  pointer-events: none;
}
.hgrid {
  top: 72px;
  row-gap: 19px;
  column-gap: 1px;
}
.dock {
  bottom: 18px;
}
.app .lbl {
  font-size: 11px;
  letter-spacing: -0.15px;
}
.widget.wcal .we {
  font-size: 12px;
  line-height: 1.32;
  margin-top: 5px;
}
.widget.wwx .ds {
  bottom: 12px;
}
.home-meta {
  position: absolute;
  bottom: 125px;
  left: 0;
  right: 0;
  color: #fff;
  font-weight: 600;
  font-size: 11px;
  text-align: center;
  opacity: 0.85;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
#appL {
  background: #fff;
}
#appL .pg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#appL .nav {
  position: relative;
  flex-shrink: 0;
  height: 102px;
  padding: 50px 16px 8px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.appnav-back {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #007aff;
  font-size: 16px;
  min-width: 76px;
  height: 36px;
  text-align: left;
}
.appnav-back svg {
  height: 20px;
  width: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.appnav-title {
  font-size: 17px;
  font-weight: 660;
  text-align: center;
}
.appnav-action {
  min-width: 76px;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  color: #151515;
  align-items: center;
}
.appnav-action svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
}
.app-content {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: #fff;
  padding-bottom: 35px;
}
.app-content::-webkit-scrollbar {
  display: none;
}
.app-content.gray {
  background: #f2f2f7;
}
.app-content h1 {
  font-size: 34px;
  font-weight: 720;
  letter-spacing: -0.8px;
  margin: 11px 17px 12px;
}
.tabbar {
  position: relative;
  height: 78px;
  flex: none;
  z-index: 3;
  padding-bottom: 26px;
}
.fake-search {
  margin: 7px 16px 14px;
  height: 36px;
  background: #ededf2;
  color: #8e8e93;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 7px;
  font-size: 16px;
}
.fake-search svg {
  width: 17px;
  height: 17px;
}
.person-row {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 17px;
  background: #fff;
  text-align: left;
  position: relative;
  color: #111;
}
.person-row + .person-row:before {
  content: '';
  position: absolute;
  top: 0;
  left: 78px;
  right: 0;
  background: rgba(60, 60, 67, 0.17);
  height: 0.5px;
}
.person-row:active {
  background: #efeff3;
}
.javatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(155deg, #8b8eab, #394a76);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.5);
}
.javatar.pik {
  background: linear-gradient(140deg, #c9a9a2, #835a6c);
}
.javatar.aod {
  background: linear-gradient(145deg, #b0a88e, #6b7372);
}
.person-row .name {
  font-size: 16px;
  font-weight: 650;
}
.person-row .preview {
  font-size: 13px;
  color: #8e8e93;
  margin-top: 4px;
}
.person-row .meta {
  margin-left: auto;
  align-self: center;
  font-size: 12px;
  color: #b2b2b6;
  white-space: nowrap;
}
.pill-button {
  background: #efeff3;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 660;
}
.profile-summary {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 17px;
}
.profile-summary .javatar {
  width: 84px;
  height: 84px;
  font-size: 30px;
}
.profile-stats {
  flex: 1;
  display: flex;
  justify-content: space-between;
  text-align: center;
  gap: 5px;
}
.profile-stats b {
  font-size: 17px;
  display: block;
}
.profile-stats span {
  font-size: 12px;
}
.profile-bio {
  padding: 0 16px 7px;
  font-size: 14px;
  line-height: 1.5;
}
.profile-controls {
  display: flex;
  gap: 7px;
  margin: 8px 16px 14px;
}
.profile-controls button {
  flex: 1;
  background: #efeff3;
  border-radius: 8px;
  padding: 7px 5px;
  font-size: 13px;
  font-weight: 650;
}
.profile-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 8px;
}
.profile-posts button {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  background: #eee;
}
.photo-tile {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(138deg, #2a4662, #d6a0ad);
}
.photo-tile:before {
  content: '';
  position: absolute;
  inset: -55%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.4), transparent 42%);
  transform: translate(20%, 12%);
}
.photo-tile.v2 {
  background: linear-gradient(150deg, #708caa, #f2beab 55%, #5a4968);
}
.photo-tile.v3 {
  background: linear-gradient(120deg, #27384e, #728b87, #d2a99a);
}
.photo-tile.v4 {
  background: linear-gradient(130deg, #d2b9aa, #806f89, #242943);
}
.photo-tile.v5 {
  background: linear-gradient(115deg, #34405c, #7a9cb8, #e3d9cc);
}
.photo-tile.v6 {
  background: linear-gradient(105deg, #b9a28a, #494a63, #212b3d);
}
.photo-tile .tile-label {
  position: absolute;
  bottom: 9px;
  left: 8px;
  right: 8px;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  font-weight: 600;
  text-align: left;
}
.section-note {
  font-size: 13px;
  color: #7d7d89;
  line-height: 1.5;
  margin: 14px 18px;
}
.section-title {
  font-size: 21px;
  font-weight: 690;
  padding: 19px 17px 8px;
}
.line-heading {
  padding: 14px 20px;
  font-size: 23px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}
.line-profile-card {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
}
.javatar.me {
  background: linear-gradient(135deg, #222f59, #a77a87);
}
.empty-chat {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #7e8492;
  text-align: center;
  gap: 10px;
  padding: 25px;
  background: #b4c8d8;
  font-size: 13px;
}
.empty-chat strong {
  color: #243c52;
  font-size: 17px;
}
.line-chat-composer {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 65px;
  border-top: 1px solid #ddd;
  padding: 8px 12px 28px;
  background: #fff;
  color: #666;
}
.composer-input {
  border: 1px solid #ececf0;
  border-radius: 19px;
  height: 36px;
  flex: 1;
  color: #aaa;
  display: flex;
  align-items: center;
  padding: 0 11px;
  font-size: 13px;
}
.phone-tabs {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 78px;
  flex: none;
  border-top: 0.5px solid #dadada;
  background: rgba(249, 249, 250, 0.96);
  padding-bottom: 20px;
}
.phone-tabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  color: #8e8e93;
  font-size: 10px;
}
.phone-tabs button.active {
  color: #007aff;
}
.phone-tabs svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.dialpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  gap: 15px 0;
  padding: 19px 35px 15px;
}
.dial-key {
  border-radius: 50%;
  width: 74px;
  height: 74px;
  background: #e9e9ed;
  font-size: 31px;
  font-weight: 350;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.dial-key small {
  font-size: 9px;
  letter-spacing: 2px;
  height: 10px;
  font-weight: 600;
}
.dial-number {
  height: 57px;
  text-align: center;
  font-size: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.call-demo {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #596273, #282b35 62%, #151820);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}
.call-demo .javatar {
  width: 105px;
  height: 105px;
  margin-top: 116px;
  font-size: 37px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.09);
}
.call-name {
  font-size: 33px;
  font-weight: 500;
  margin-top: 16px;
}
.call-status {
  opacity: 0.78;
  font-size: 17px;
  margin-top: 7px;
}
.call-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 345px;
  background: rgba(255, 255, 255, 0.095);
  border-radius: 16px;
  padding: 16px;
  font-size: 15px;
  text-align: center;
}
.call-actions {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 75px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 0;
  justify-items: center;
}
.call-actions .act {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  font-size: 12px;
}
.call-actions .dot {
  height: 70px;
  width: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 26px;
}
.call-actions .hangup {
  background: #ff3b30;
}
.call-actions svg {
  width: 28px;
  height: 28px;
  stroke: white;
  fill: none;
  stroke-width: 2;
}
.call-actions .hangup svg {
  fill: #fff;
  stroke: none;
  transform: rotate(135deg);
}
.screen-label {
  color: #8f8f99;
  text-align: center;
  font-size: 13px;
  padding: 36px 25px;
  line-height: 1.6;
}
.settings-group {
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 16px 23px;
  background: #fff;
}
.settings-row {
  width: 100%;
  padding: 13px 15px;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  text-align: left;
}
.settings-row + .settings-row {
  border-top: 0.5px solid #dedee5;
}
.settings-row .setting-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #80809c;
  font-size: 16px;
}
.settings-row .right {
  margin-left: auto;
  color: #8e8e93;
  font-size: 13px;
}
.about-card {
  background: #fff;
  border-radius: 14px;
  margin: 18px 16px;
  padding: 20px 17px;
  text-align: center;
}
.about-card .javatar {
  margin: 0 auto 12px;
}
.about-card b {
  display: block;
  font-size: 20px;
}
.about-card small {
  display: block;
  margin: 6px auto;
  color: #8e8e93;
}
#ov {
  z-index: 64;
}
.banner {
  position: absolute;
  top: 53px;
  left: 8px;
  right: 8px;
  z-index: 68;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.banner .ncard {
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.19);
  background: rgba(246, 246, 252, 0.91);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.ncard .ni {
  background: #fff;
  width: 37px;
  height: 37px;
  border-radius: 10px;
  overflow: hidden;
}
.ncard .ni svg {
  width: 100%;
  height: 100%;
}
.photo-viewer {
  position: absolute;
  inset: 0;
  background: #0b0b0e;
  z-index: 10;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.photo-viewer header {
  padding: 62px 18px 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.photo-viewer header button {
  color: #fff;
  font-size: 17px;
}
.photo-viewer .photo-tile {
  flex: 1;
  max-height: 69%;
  margin: auto 0;
}
.photo-viewer footer {
  padding: 20px 24px 52px;
  text-align: center;
  font-size: 13px;
  color: #bdbdc8;
}
#project-note {
  position: fixed;
  right: 22px;
  bottom: 18px;
  background: #202331;
  color: #c0c4db;
  border: 1px solid #383c55;
  border-radius: 13px;
  padding: 12px 40px 12px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  z-index: 7;
  box-shadow: 0 14px 30px #0004;
}
#project-note strong {
  color: #fff;
  font-size: 16px;
  letter-spacing: 2px;
}
#project-note button {
  position: absolute;
  right: 10px;
  top: 7px;
  color: #9d9fb0;
  font-size: 22px;
}
@media (max-width: 1150px) {
  .desktop-info {
    display: none;
  }
  #phone {
    margin-left: 0;
  }
  #project-note {
    bottom: 14px;
    right: 14px;
  }
}
@media (max-width: 540px) {
  .desktop-info,
  .ambient {
    display: none;
  }
  #project-note {
    right: 8px;
    bottom: 46px;
    padding: 8px 29px 8px 10px;
    font-size: 10px;
    opacity: 0.9;
  }
  #project-note strong {
    font-size: 12px;
  }
  #project-note button {
    right: 7px;
    top: 3px;
  }
  .hgrid {
    top: 75px;
    left: 17px;
    right: 17px;
  }
  .dock {
    left: 12px;
    right: 12px;
  }
  .lk-time {
    font-size: min(25vw, 95px);
  }
}
@media (max-height: 750px) {
  #pinL {
    padding-top: 94px;
  }
  #pinL .pdots {
    margin: 17px 0 23px;
  }
  .pkeys {
    gap: 9px 25px;
  }
  .pk {
    width: 65px;
    height: 65px;
  }
  .pk b {
    font-size: 31px;
  }
  .lk-time {
    top: 100px;
  }
  .hgrid {
    top: 64px;
    row-gap: 13px;
  }
  .widget {
    padding: 12px;
  }
  .dock {
    height: 82px;
  }
  .home-meta {
    bottom: 108px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* Correct rounded clipping for inline SVG icons in the supplied source shell. */
.app .icon,
.app .icon .ic {
  display: block;
  overflow: hidden;
}
.app .icon .ic {
  border-radius: inherit;
}
#project-note {
  user-select: none;
}
@media (max-width: 540px) {
  #project-note {
    display: none;
  }
}
.weather-preview {
  background: linear-gradient(165deg, #1a549e, #5795d6) !important;
  color: #fff;
}

/* Preserve the PIN-screen appearance while keeping Emergency inert. */
#pinL .pbot button[data-emergency]:disabled {
  opacity: 1;
  cursor: default;
  -webkit-text-fill-color: currentColor;
}

body {
  background: linear-gradient(135deg, #273352, #4c4a70 55%, #192338);
}
.ni.notification-person {
  position: relative;
  overflow: visible;
  background: none;
}
.notification-person > img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.notification-app-mark {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #fff;
}
.notification-app-mark svg {
  width: 100%;
  height: 100%;
}

/* Uploaded wallpaper applies only while the lock/PIN layer is visible. */
#lockL {
  background: #000 url('../assets/lockscreen.jpg') center center / cover no-repeat;
}

/* Blur only the wallpaper behind PIN controls, including on iOS Safari. */
#pinL {
  background: rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
