.phone-screen {
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)),
    url("默认背景.jpg") center / cover no-repeat;
  background-color: #f5f4f2;
}

.status-bar {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  z-index: 5;
  padding: 2px 2px 5px;
  color: #555555;
  text-shadow: none;
}

.phone-screen .status-bar,
.phone-screen .status-bar span,
.phone-screen #status-time,
.phone-screen #status-battery {
  color: #555555 !important;
  text-shadow: none !important;
}

.app-grid-section {
  position: absolute;
  inset: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: calc(max(10px, env(safe-area-inset-top)) + 28px) 0 calc(68px + env(safe-area-inset-bottom, 0px)) 0;
  overflow: hidden;
  background: transparent;
}

.desktop-swiper {
  flex: 1;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  padding: 0;
  margin: 0;
  background: transparent;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-x;
}

.desktop-swiper::-webkit-scrollbar {
  display: none;
}

.desktop-page {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
  padding: 0 16px;
  background: transparent;
}

.desktop-grid {
  min-height: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 84px;
  gap: 14px 12px;
  align-content: start;
  padding: 8px 0 0;
  background: transparent;
}

.desktop-card {
  position: relative;
  min-width: 0;
  min-height: 0;
}

.desktop-card.size-1x1 {
  grid-column: span 1;
  grid-row: span 1;
}

.desktop-card.size-2x1 {
  grid-column: span 2;
  grid-row: span 1;
}

.desktop-card.size-2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

.desktop-panel-card {
  min-height: 0;
}

.desktop-hero-card {
  min-height: 0;
}

.desktop-hero {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 92px 244px 92px;
  column-gap: 0;
  align-items: center;
  justify-content: center;
  align-content: start;
  padding-top: 2px;
  transform: translateY(8px);
}

.desktop-hero-side {
  display: grid;
  gap: 18px;
  align-content: center;
}

.desktop-hero-side.left {
  justify-items: end;
  padding-right: 0;
  transform: translateX(12px);
}

.desktop-hero-side.right {
  justify-items: start;
  padding-left: 0;
  transform: translateX(-12px);
}

.desktop-hero-center {
  display: grid;
  gap: 4px;
  justify-items: center;
  align-content: center;
}

.desktop-hero-avatar-row {
  display: grid;
  grid-template-columns: repeat(2, 104px);
  gap: 2px;
  align-items: center;
  justify-content: center;
}

.desktop-hero-avatar {
  width: 104px;
  height: 104px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  background: rgba(255, 248, 252, 0.96);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
}

.desktop-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.desktop-hero-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1.35;
  color: #111111;
  text-align: center;
  padding: 8px;
}

.desktop-hero-badge-row {
  display: grid;
  grid-template-columns: repeat(2, 72px);
  gap: 32px;
  width: auto;
  margin-top: -8px;
  justify-content: center;
}

.desktop-hero-input,
.desktop-hero-badge {
  min-height: 38px;
}

.desktop-hero-input {
  width: 100%;
  max-width: 78px;
  min-width: 78px;
  padding-left: 8px;
  padding-right: 8px;
}

.desktop-hero-badge {
  min-height: 30px;
  border-radius: 12px;
  font-size: 11px;
  padding-top: 4px;
  padding-bottom: 4px;
  width: 72px;
}

.desktop-chat-card,
.desktop-showcase-card {
  min-height: 0;
}

.desktop-chat-panel {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: transparent;
  border: none;
  padding: 4px 2px;
  display: grid;
  align-content: center;
  gap: 14px;
  overflow: visible;
}

.desktop-chat-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.desktop-chat-row.self {
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
}

.desktop-chat-panel .desktop-chat-row:nth-child(2) {
  transform: translateX(-8px);
}

.desktop-chat-avatar {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.desktop-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.desktop-chat-avatar-placeholder {
  font-size: 12px;
  color: #111111;
  font-weight: 700;
}

.desktop-chat-bubble {
  height: 34px;
  min-height: 34px;
  border-radius: 14px;
  text-align: left;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 12px;
  padding-right: 12px;
  font-size: 12px;
  line-height: 1.1;
}

.desktop-chat-bubble.other {
  background: rgba(226, 232, 240, 0.72);
  color: #111111;
}

.desktop-chat-bubble.self {
  background: rgba(255, 255, 255, 0.96);
  color: #111111;
}

.desktop-showcase {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 12px;
  transform: scale(1.12);
  transform-origin: left center;
}

.desktop-showcase-polaroid {
  width: 96px;
  height: 128px;
  border: none;
  border-radius: 0;
  background: #ffffff;
  padding: 10px 10px 28px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.desktop-showcase-polaroid-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #eeeeee, #e4e4e4);
  overflow: hidden;
}

.desktop-showcase-polaroid-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.desktop-showcase-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #111111;
  font-size: 24px;
  font-weight: 700;
}

.desktop-showcase-record {
  width: 90px;
  height: 90px;
  margin-left: -34px;
  border: none;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.18) 18%, transparent 19%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.16) 0 14px, transparent 14px 100%),
    linear-gradient(135deg, #f6f6f6, #d8d8d8 55%, #cfcfcf);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    inset 0 -3px 8px rgba(0, 0, 0, 0.08),
    0 8px 18px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.desktop-showcase-record::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.18);
}

.desktop-showcase-record-center {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.72),
    inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.desktop-showcase-record-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.desktop-showcase-record-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #111111;
  font-size: 14px;
  font-weight: 700;
}

.desktop-panel {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 28px;
  background: rgba(255, 248, 252, 0.88);
  backdrop-filter: blur(12px) saturate(100%);
  -webkit-backdrop-filter: blur(12px) saturate(100%);
  border: 1px solid rgba(255, 214, 229, 0.8);
  box-shadow: none;
  overflow: hidden;
}

.desktop-panel-text-only {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.desktop-panel-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(255, 214, 229, 0.72);
  padding: 0;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  position: relative;
  box-shadow: none;
}

.desktop-panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.desktop-panel-image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: #9f4f73;
  background:
    linear-gradient(135deg, rgba(255, 247, 250, 0.98), rgba(255, 232, 240, 0.96)),
    linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.12));
}

.desktop-panel-content {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden;
}

.desktop-hanging-photos-card {
  min-height: 0;
  transform: translateY(-34px);
  z-index: 1;
}

.desktop-hanging-photos {
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.desktop-hanging-rope {
  display: none;
}

.desktop-hanging-rope::before,
.desktop-hanging-rope::after {
  content: "";
  position: absolute;
  top: 0;
  width: 24px;
  height: 14px;
  border-top: 2px solid rgba(192, 146, 164, 0.92);
  border-radius: 999px;
}

.desktop-hanging-rope::before {
  left: -10px;
  transform: rotate(20deg);
}

.desktop-hanging-rope::after {
  right: -10px;
  transform: rotate(-20deg);
}

.desktop-hanging-photo-list {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 4px;
  bottom: 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.desktop-hanging-photo-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.desktop-hanging-photo-item.photo-1 {
  margin-top: 14px;
  transform: rotate(-8deg);
}

.desktop-hanging-photo-item.photo-2 {
  margin-top: 6px;
  transform: rotate(2deg);
}

.desktop-hanging-photo-item.photo-3 {
  margin-top: 14px;
  transform: rotate(7deg);
}

.desktop-hanging-photo-clip {
  width: 14px;
  height: 18px;
  border-radius: 4px 4px 6px 6px;
  background: #f3b5c9;
  border: 1px solid rgba(181, 94, 128, 0.28);
  position: relative;
  z-index: 2;
  margin-bottom: -2px;
}

.desktop-hanging-photo-clip::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 4px;
  height: 5px;
  border-radius: 999px;
  border: 1px solid rgba(181, 94, 128, 0.38);
  background: rgba(255, 255, 255, 0.52);
}

.desktop-hanging-photo-frame {
  width: 100%;
  height: 132px;
  min-height: 132px;
  max-height: 132px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 0;
  padding: 8px 8px 18px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
  overflow: hidden;
  flex: 0 0 132px;
}

.desktop-hanging-photo-inner {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
  background: #fff6f9;
  border: none;
}

.desktop-hanging-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.desktop-hanging-photo-placeholder {
  border-radius: 0;
  font-size: 11px;
  line-height: 1.45;
}


.desktop-panel-row {
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 8px;
  overflow: hidden;
}

.desktop-panel-row.row-emoji {
  grid-template-columns: 44px minmax(0, 1fr);
}

.desktop-panel-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: #111111;
  font-size: 12px;
  line-height: 1.3;
  padding: 6px 10px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.desktop-hero-input,
.desktop-hero-badge,
.desktop-panel-input {
  text-overflow: ellipsis;
}

.desktop-panel-input::placeholder {
  color: rgba(17, 17, 17, 0.45);
}

.desktop-panel-input[readonly] {
  cursor: text;
}

.desktop-panel-input.is-editing {
  border-color: rgba(236, 151, 186, 0.72);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.desktop-panel-emoji-input {
  text-align: center;
  font-size: 20px;
  padding-left: 4px;
  padding-right: 4px;
}

.desktop-panel-remaining-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  border-radius: 16px;
  padding: 6px 10px;
  color: #111111;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.desktop-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  padding: 2px 2px 0;
  position: relative;
}

.desktop-page[data-page="1"] .desktop-app {
  gap: 6px;
}

.desktop-page[data-page="1"] .desktop-hero-input,
.desktop-page[data-page="1"] .desktop-hero-badge {
  border: none;
  background: transparent;
  box-shadow: none;
  color: #555555;
  padding-top: 2px;
  padding-bottom: 2px;
  line-height: 1.15;
}

.desktop-page[data-page="1"] .desktop-hero-input::placeholder,
.desktop-page[data-page="1"] .desktop-hero-badge::placeholder {
  color: rgba(85, 85, 85, 0.48);
}

.desktop-page[data-page="1"] .desktop-hero-input.is-editing,
.desktop-page[data-page="1"] .desktop-hero-badge.is-editing {
  border: 1px solid rgba(150, 150, 150, 0.5);
  background: rgba(255, 255, 255, 0.58);
  color: #555555;
}

.desktop-page[data-page="1"] .desktop-chat-bubble {
  height: 28px;
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 13px;
  box-shadow: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  padding-top: 4px;
  padding-bottom: 4px;
  line-height: 1;
}

.desktop-page[data-page="1"] .desktop-chat-bubble.other {
  width: calc(100% - 28px);
  justify-self: start;
  background: rgba(229, 229, 229, 0.92);
  color: #111111;
}

.desktop-page[data-page="1"] .desktop-chat-bubble.other.is-editing {
  border-color: rgba(160, 160, 160, 0.42);
  background: rgba(235, 235, 235, 0.98);
  color: #111111;
}

.desktop-page[data-page="1"] .desktop-chat-bubble.self {
  width: calc(100% - 28px);
  margin-left: 0;
  justify-self: end;
}

.desktop-page[data-page="1"] .desktop-chat-bubble.self.is-editing {
  border-color: rgba(150, 150, 150, 0.42);
  background: rgba(255, 255, 255, 0.98);
}

.desktop-page[data-page="1"] .desktop-card.size-1x1 {
  transform: translateY(-18px);
}

.desktop-page[data-page="1"] .desktop-chat-card {
  transform: translateY(-28px);
}

.desktop-page[data-page="1"] .desktop-showcase-card {
  transform: translateY(-26px);
}

.desktop-page[data-page="2"] .desktop-app {
  gap: 6px;
}

.desktop-page[data-page="2"] .desktop-card.size-1x1 {
  transform: translateY(-18px);
}

.desktop-page[data-page="2"] .desktop-grid > .desktop-card.size-1x1:nth-child(3),
.desktop-page[data-page="2"] .desktop-grid > .desktop-card.size-1x1:nth-child(4),
.desktop-page[data-page="2"] .desktop-grid > .desktop-card.size-1x1:nth-child(5),
.desktop-page[data-page="2"] .desktop-grid > .desktop-card.size-1x1:nth-child(6) {
  transform: translateY(-8px);
}

.desktop-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #555555;
  font-weight: 700;
  font-size: 16px;
  margin: 0 auto;
  box-shadow: none;
  overflow: hidden;
  position: relative;
  transform: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 246, 246, 0.96));
  border: 1.5px dashed rgba(150, 150, 150, 0.85);
}

.desktop-app-icon::after {
  content: none;
}

.desktop-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.desktop-app-name {
  font-size: 11px;
  line-height: 1.3;
  color: #111111;
  max-width: 100%;
  padding: 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: none;
}

.desktop-empty-area {
  width: 100%;
  height: 100%;
  min-height: 40px;
}

.dock {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 5;
  min-height: 58px;
  flex-shrink: 0;
  margin-top: 0;
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: none;
}

.dock-entry {
  position: relative;
  width: 52px;
  flex: 0 0 52px;
  min-width: 0;
}

.dock-app {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #555555;
  font-weight: 700;
  font-size: 16px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 246, 246, 0.96));
  border: 1.5px dashed rgba(150, 150, 150, 0.85);
  box-shadow: none;
  overflow: hidden;
}

.dock-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

.dock-name {
  display: none;
}

.dock-empty-hint {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
}

.lock-screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: max(28px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom)) 20px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.3)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #dbeafe, #c4b5fd 52%, #fbcfe8);
  color: #ffffff;
}

.lock-screen.visible {
  display: flex;
}

.lock-screen.auth-mode {
  color: #111827;
}

.lock-screen.local-mode {
  color: #ffffff;
}

.lock-screen-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 30px;
  text-align: center;
}

.lock-screen-clock {
  font-size: 52px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 8px 30px rgba(15, 23, 42, 0.25);
}

.lock-screen-date {
  font-size: 14px;
  opacity: 0.92;
  text-shadow: 0 4px 16px rgba(15, 23, 42, 0.24);
}

.lock-screen.auth-mode .lock-screen-clock,
.lock-screen.auth-mode .lock-screen-date {
  color: #111827;
  text-shadow: none;
}

.lock-screen.local-mode .lock-screen-clock,
.lock-screen.local-mode .lock-screen-date {
  color: #ffffff;
}

.lock-screen-card {
  width: min(100%, 360px);
  align-self: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 18px 18px 16px;
}

.lock-screen.auth-mode .lock-screen-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.lock-screen.local-mode .lock-screen-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.lock-screen-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.lock-screen.auth-mode .lock-screen-title {
  color: #111827;
}

.lock-screen.local-mode .lock-screen-title {
  color: #ffffff;
}

.lock-screen-hint {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
}

.lock-screen.auth-mode .lock-screen-hint {
  color: rgba(15, 23, 42, 0.72);
}

.lock-screen-input {
  width: 100%;
  margin-top: 14px;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  padding: 12px 14px;
  font-size: 16px;
  text-align: center;
  outline: none;
}

.lock-screen.auth-mode .lock-screen-input {
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.lock-screen-input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.lock-screen.auth-mode .lock-screen-input:focus {
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.lock-screen-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.lock-screen-btn {
  flex: 1;
  border: none;
  border-radius: 16px;
  padding: 11px 14px;
  font-size: 14px;
  cursor: pointer;
}

.lock-screen-btn.primary {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #ffffff;
}

.lock-screen.auth-mode .lock-screen-btn.primary {
  background: #111827;
  color: #ffffff;
}

.lock-screen-btn.soft {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.lock-screen.auth-mode .lock-screen-btn.soft {
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.lock-screen-status {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.94);
}

.lock-screen.auth-mode .lock-screen-status {
  color: rgba(15, 23, 42, 0.84);
}

.lock-screen-status.error {
  color: #ffe4e6;
}

.lock-screen.auth-mode .lock-screen-status.error {
  color: #b91c1c;
}

.lock-screen-status.success {
  color: #dcfce7;
}

.lock-screen.auth-mode .lock-screen-status.success {
  color: #166534;
}

.lock-screen-meta {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

.lock-screen.auth-mode .lock-screen-meta {
  color: rgba(15, 23, 42, 0.68);
}

.local-lock-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.local-lock-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  background: transparent;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.local-lock-dot.filled {
  background: #ffffff;
  transform: scale(1.05);
}

.local-lock-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.local-lock-key {
  min-height: 54px;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 700;
}

.local-lock-key.action {
  font-size: 14px;
  font-weight: 600;
}

.lock-screen.local-mode .local-lock-key {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lock-screen.auth-mode .local-lock-key {
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.hidden {
  display: none !important;
}

.desktop-locked .phone-screen,
.desktop-locked .home-indicator,
.desktop-locked .phone-notch {
  pointer-events: none;
}

.desktop-locked .lock-screen {
  pointer-events: auto;
}

.home-indicator {
  position: absolute;
  left: 50%;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  z-index: 6;
}

.desktop-panel-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.desktop-panel-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(102, 102, 102, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.desktop-panel-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  border-radius: 24px;
  background: rgba(252, 251, 249, 0.96);
  box-shadow: 0 10px 30px rgba(120, 120, 120, 0.08);
  border: 1px solid rgba(203, 203, 203, 0.72);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.desktop-panel-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #5f5a57;
  text-align: center;
}

.desktop-panel-modal-label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #7b7672;
}

.desktop-panel-modal-input {
  width: 100%;
  border: 1px solid rgba(204, 204, 204, 0.88);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #57524e;
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.desktop-panel-modal-input::placeholder {
  color: rgba(87, 82, 78, 0.48);
}

.desktop-panel-modal-input:focus {
  border-color: rgba(156, 156, 156, 0.92);
  box-shadow: 0 0 0 3px rgba(220, 220, 220, 0.32);
}

.desktop-panel-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.desktop-panel-modal-status {
  min-height: 18px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: #8c8680;
}

.desktop-panel-modal-status.error {
  color: #b91c1c;
}

.desktop-panel-modal-status.success {
  color: #166534;
}

.desktop-panel-modal-card .lock-screen-btn {
  font-size: 13px;
  font-weight: 700;
}

.desktop-panel-modal-card .lock-screen-btn.primary {
  background: linear-gradient(180deg, #8e8a86, #6e6965);
  color: #ffffff;
  border: 1px solid rgba(110, 105, 101, 0.82);
}

.desktop-panel-modal-card .lock-screen-btn.soft {
  background: rgba(255, 255, 255, 0.92);
  color: #66615d;
  border: 1px solid rgba(203, 203, 203, 0.88);
}

/* second page first-page-icon style override */
.desktop-page[data-page="2"] .desktop-panel-card,
.desktop-page[data-page="2"] .desktop-panel,
.desktop-page[data-page="2"] .desktop-panel-text-only,
.desktop-page[data-page="2"] .desktop-panel-content,
.desktop-page[data-page="2"] .desktop-panel-row,
.desktop-page[data-page="2"] .desktop-panel-remaining-value {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.desktop-page[data-page="2"] .desktop-panel-card {
  align-self: start;
  height: 210px;
  transform: translateY(-6px);
}

.desktop-page[data-page="2"] .desktop-panel {
  padding: 0;
  height: 210px;
}

.desktop-page[data-page="2"] .desktop-panel-input {
  color: #555555;
  background: transparent;
  border: none;
  box-shadow: none;
  padding-top: 1px;
  padding-bottom: 1px;
  line-height: 1.15;
}

.desktop-page[data-page="2"] .desktop-panel-content {
  grid-template-rows: 28px repeat(4, 26px) 28px 28px;
  gap: 1px;
  align-content: start;
  padding-top: 8px;
}

.desktop-page[data-page="2"] .desktop-panel-row.row-emoji {
  column-gap: 2px;
  min-height: 28px;
  align-items: center;
  margin-bottom: 0;
  transform: translateY(-6px);
}

.desktop-page[data-page="2"] .desktop-panel-content > .desktop-panel-input:nth-child(2),
.desktop-page[data-page="2"] .desktop-panel-content > .desktop-panel-input:nth-child(3),
.desktop-page[data-page="2"] .desktop-panel-content > .desktop-panel-input:nth-child(4) {
  margin-bottom: 0;
  transform: translateY(-6px);
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1.05;
}

.desktop-page[data-page="2"] .desktop-panel-emoji-input {
  transform: translateX(12px);
  font-size: 22px;
  line-height: 1;
  padding-top: 0;
  padding-bottom: 0;
  overflow: visible;
}

.desktop-page[data-page="2"] .desktop-panel-content > .desktop-panel-input:nth-child(5) {
  margin-top: 0;
}

.desktop-page[data-page="2"] .desktop-panel-content > .desktop-panel-remaining-value {
  margin-top: 0;
}

.desktop-page[data-page="2"] .desktop-panel-input::placeholder {
  color: rgba(85, 85, 85, 0.48);
}

.desktop-page[data-page="2"] .desktop-panel-input.is-editing {
  border-color: rgba(150, 150, 150, 0.55);
  background: rgba(255, 255, 255, 0.56);
}

.desktop-page[data-page="2"] .desktop-panel-remaining-value {
  color: #555555;
  background: transparent;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 13px;
  line-height: 1.1;
  justify-content: center;
  align-items: flex-start;
}

.desktop-page[data-page="2"] .desktop-app-icon {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 246, 246, 0.96));
  border: 1.5px dashed rgba(150, 150, 150, 0.85);
  color: #555555;
  box-shadow: none;
}

.desktop-page[data-page="2"] .desktop-app-name {
  color: #111111;
}

.desktop-page[data-page="2"] .desktop-badge-front-card {
  grid-column: 1 / span 2;
  grid-row: 3 / span 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transform: translateY(-18px);
  z-index: 1;
}

.desktop-page[data-page="2"] .desktop-badge-front {
  width: 156px;
  height: 156px;
  border: none;
  border-radius: 999px;
  padding: 8px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.99), rgba(248, 248, 248, 0.96) 34%, rgba(236, 236, 236, 0.95) 66%, rgba(210, 210, 210, 0.9) 100%);
  box-shadow:
    inset 0 2px 10px rgba(255, 255, 255, 0.98),
    inset 0 -5px 10px rgba(150, 150, 150, 0.1),
    0 10px 22px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  position: relative;
}

.desktop-page[data-page="2"] .desktop-badge-front::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.72),
    0 1px 2px rgba(160, 160, 160, 0.08);
  pointer-events: none;
}


.desktop-page[data-page="2"] .desktop-badge-front-inner {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, #f2f2f2, #e7e7e7);
  position: relative;
  box-shadow:
    inset 0 1px 3px rgba(255, 255, 255, 0.88),
    inset 0 -2px 6px rgba(120, 120, 120, 0.14);
}

.desktop-page[data-page="2"] .desktop-badge-front-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.desktop-page[data-page="2"] .desktop-badge-front-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(85, 85, 85, 0.72);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  padding: 12px;
}

.desktop-page[data-page="2"] .desktop-hanging-photos-card {
  transform: translateY(-26px);
}

.desktop-page[data-page="2"] .desktop-hanging-photos {
  border-radius: 26px;
  background: radial-gradient(circle at top center, rgba(255, 255, 255, 0.42), transparent 42%);
  position: relative;
}

.desktop-page[data-page="2"] .desktop-hanging-photos::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 8px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 24' preserveAspectRatio='none'%3E%3Cpath d='M2 10 C16 12 30 14 44 14 C52 14 58 14 64 14 C74 14 84 13 96 11 C110 9 124 7 138 4 C148 2 156 2 160 2 C168 2 178 3 192 6 C206 9 220 12 234 13 C246 14 256 14 266 14 C276 14 288 13 302 11 C310 10 316 10 318 10' fill='none' stroke='%23888888' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.95;
  z-index: 0;
  pointer-events: none;
}

.desktop-page[data-page="2"] .desktop-hanging-photo-list {
  left: 20px;
  right: 20px;
  top: 0;
  bottom: 0;
  gap: 2px;
  align-items: flex-start;
  justify-content: center;
  z-index: 1;
}

.desktop-page[data-page="2"] .desktop-hanging-photo-item {
  flex: 0 0 106px;
  height: 164px;
}

.desktop-page[data-page="2"] .desktop-hanging-photo-item.photo-1 {
  margin-top: 14px;
  transform: rotate(-4deg);
  z-index: 1;
}

.desktop-page[data-page="2"] .desktop-hanging-photo-item.photo-2 {
  margin-top: 0;
  transform: rotate(0deg);
  z-index: 2;
}

.desktop-page[data-page="2"] .desktop-hanging-photo-item.photo-3 {
  margin-top: 14px;
  transform: rotate(4deg);
  z-index: 1;
}

.desktop-page[data-page="2"] .desktop-hanging-photo-clip {
  width: 14px;
  height: 18px;
  border-radius: 4px 4px 6px 6px;
  background: #f0f0f0;
  border: 1px solid rgba(160, 160, 160, 0.18);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06);
  margin-bottom: -2px;
}

.desktop-page[data-page="2"] .desktop-hanging-photo-clip::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 4px;
  height: 5px;
  border-radius: 999px;
  border: 1px solid rgba(160, 160, 160, 0.22);
  background: rgba(255, 255, 255, 0.72);
}

.desktop-page[data-page="2"] .desktop-hanging-photo-frame {
  width: 100%;
  height: 146px;
  min-height: 146px;
  max-height: 146px;
  padding: 9px 9px 20px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

.desktop-page[data-page="2"] .desktop-hanging-photo-inner {
  background: linear-gradient(180deg, #eeeeee, #e4e4e4);
}

.desktop-page[data-page="2"] .desktop-hanging-photo-placeholder {
  color: rgba(17, 17, 17, 0.48);
  font-size: 11px;
  background: linear-gradient(180deg, #f0f0f0, #e8e8e8);
}
